All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ingenico.connect.gateway.sdk.java.domain.metadata.ShoppingCartExtension Maven / Gradle / Ivy

Go to download

SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API

There is a newer version: 6.47.0
Show newest version
package com.ingenico.connect.gateway.sdk.java.domain.metadata;

public class ShoppingCartExtension {

	private final String creator;
	private final String name;
	private final String version;
	private final String extensionId;

	public ShoppingCartExtension(String creator, String name, String version) {
		if (creator == null || creator.trim().isEmpty()) {
			throw new IllegalArgumentException("creator is required");
		}
		if (name == null || name.trim().isEmpty()) {
			throw new IllegalArgumentException("name is required");
		}
		if (version == null || version.trim().isEmpty()) {
			throw new IllegalArgumentException("version is required");
		}
		this.creator = creator;
		this.name = name;
		this.version = version;
		this.extensionId = null;
	}

	public ShoppingCartExtension(String creator, String name, String version, String extensionId) {
		if (creator == null || creator.trim().isEmpty()) {
			throw new IllegalArgumentException("creator is required");
		}
		if (name == null || name.trim().isEmpty()) {
			throw new IllegalArgumentException("name is required");
		}
		if (version == null || version.trim().isEmpty()) {
			throw new IllegalArgumentException("version is required");
		}
		if (extensionId == null || extensionId.trim().isEmpty()) {
			throw new IllegalArgumentException("extensionId is required");
		}
		this.creator = creator;
		this.name = name;
		this.version = version;
		this.extensionId = extensionId;
	}

	public String getCreator() {
		return creator;
	}

	public String getName() {
		return name;
	}

	public String getVersion() {
		return version;
	}

	public String getExtensionId() {
		return extensionId;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy