com.safecharge.model.DynamicDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of safecharge-sdk-java Show documentation
Show all versions of safecharge-sdk-java Show documentation
SafeCharge’s REST API SDK for Java provides developer tools for accessing Safecharge's REST API. SafeCharge’s REST API is a simple,
easy to use, secure and stateless API, which enables online merchants and service providers to process consumer payments through SafeCharge’s
payment gateway. The API supports merchants of all levels of PCI certification, from their online and mobile merchant applications, and is
compatible with a large variety of payment options, i.e. payment cards, alternative payment methods, etc.
package com.safecharge.model;
import javax.validation.constraints.Size;
import com.safecharge.util.APIConstants;
/**
* Copyright (C) 2007-2017 SafeCharge International Group Limited.
*
* This class allows the merchant to define a dynamic descriptor for its name and phone number, which will appear in the payment statement.
*
*
* @author Nikola Dichev
* @since 2/14/2017
*/
public class DynamicDescriptor {
@Size(max = APIConstants.MERCHANT_DESCRIPTOR_NAME_MAX_LENGTH, message = "merchantName size must be up to 25 characters long!")
private String merchantName;
@Size(max = APIConstants.MERCHANT_DESCRIPTOR_PHONE_MAX_LENGTH, message = "merchantPhone size must be up to 13 characters long!")
private String merchantPhone;
public DynamicDescriptor() {
}
public DynamicDescriptor(String merchantName, String merchantPhone) {
this.merchantName = merchantName;
this.merchantPhone = merchantPhone;
}
public String getMerchantName() {
return merchantName;
}
public void setMerchantName(String merchantName) {
this.merchantName = merchantName;
}
public String getMerchantPhone() {
return merchantPhone;
}
public void setMerchantPhone(String merchantPhone) {
this.merchantPhone = merchantPhone;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy