
Model.Ptsv2billingagreementsMerchantInformation Maven / Gradle / Ivy
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package Model;
import java.util.Objects;
import java.util.Arrays;
import Model.Ptsv2billingagreementsMerchantInformationMerchantDescriptor;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Ptsv2billingagreementsMerchantInformation
*/
public class Ptsv2billingagreementsMerchantInformation {
@SerializedName("merchantDescriptor")
private Ptsv2billingagreementsMerchantInformationMerchantDescriptor merchantDescriptor = null;
@SerializedName("categoryCode")
private Integer categoryCode = null;
@SerializedName("administrativeArea")
private String administrativeArea = null;
@SerializedName("transactionLocalDateTime")
private String transactionLocalDateTime = null;
@SerializedName("cancelUrl")
private String cancelUrl = null;
@SerializedName("successUrl")
private String successUrl = null;
@SerializedName("failureUrl")
private String failureUrl = null;
public Ptsv2billingagreementsMerchantInformation merchantDescriptor(Ptsv2billingagreementsMerchantInformationMerchantDescriptor merchantDescriptor) {
this.merchantDescriptor = merchantDescriptor;
return this;
}
/**
* Get merchantDescriptor
* @return merchantDescriptor
**/
@ApiModelProperty(value = "")
public Ptsv2billingagreementsMerchantInformationMerchantDescriptor getMerchantDescriptor() {
return merchantDescriptor;
}
public void setMerchantDescriptor(Ptsv2billingagreementsMerchantInformationMerchantDescriptor merchantDescriptor) {
this.merchantDescriptor = merchantDescriptor;
}
public Ptsv2billingagreementsMerchantInformation categoryCode(Integer categoryCode) {
this.categoryCode = categoryCode;
return this;
}
/**
* The value for this field is a four-digit number that the payment card industry uses to classify merchants into market segments. A payment card company assigned one or more of these values to your business when you started accepting the payment card company's cards. When you do not include this field in your request, CyberSource uses the value in your CyberSource account. #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR4 - Position: 150-153 - Field: Merchant Category Code
* maximum: 9999
* @return categoryCode
**/
@ApiModelProperty(value = "The value for this field is a four-digit number that the payment card industry uses to classify merchants into market segments. A payment card company assigned one or more of these values to your business when you started accepting the payment card company's cards. When you do not include this field in your request, CyberSource uses the value in your CyberSource account. #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR4 - Position: 150-153 - Field: Merchant Category Code ")
public Integer getCategoryCode() {
return categoryCode;
}
public void setCategoryCode(Integer categoryCode) {
this.categoryCode = categoryCode;
}
public Ptsv2billingagreementsMerchantInformation administrativeArea(String administrativeArea) {
this.administrativeArea = administrativeArea;
return this;
}
/**
* The state where the merchant is located. #### PIN debit State code or region code for your business. Use the Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf) This value might be displayed on the cardholder's statement. When you do not include this value in your PIN debit request, the merchant name from your account is used. **Important** This value must consist of English characters. **Note** This field is supported only for businesses located in the U.S. or Canada. Optional field for PIN debit credit or PIN debit purchase.
* @return administrativeArea
**/
@ApiModelProperty(value = "The state where the merchant is located. #### PIN debit State code or region code for your business. Use the Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf) This value might be displayed on the cardholder's statement. When you do not include this value in your PIN debit request, the merchant name from your account is used. **Important** This value must consist of English characters. **Note** This field is supported only for businesses located in the U.S. or Canada. Optional field for PIN debit credit or PIN debit purchase. ")
public String getAdministrativeArea() {
return administrativeArea;
}
public void setAdministrativeArea(String administrativeArea) {
this.administrativeArea = administrativeArea;
}
public Ptsv2billingagreementsMerchantInformation transactionLocalDateTime(String transactionLocalDateTime) {
this.transactionLocalDateTime = transactionLocalDateTime;
return this;
}
/**
* Date and time at your physical location. Format: `YYYYMMDDhhmmss`, where: - `YYYY` = year - `MM` = month - `DD` = day - `hh` = hour - `mm` = minutes - `ss` = seconds #### Used by **Authorization** Required for these processors: - American Express Direct - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - SIX Optional for all other processors.
* @return transactionLocalDateTime
**/
@ApiModelProperty(value = "Date and time at your physical location. Format: `YYYYMMDDhhmmss`, where: - `YYYY` = year - `MM` = month - `DD` = day - `hh` = hour - `mm` = minutes - `ss` = seconds #### Used by **Authorization** Required for these processors: - American Express Direct - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - SIX Optional for all other processors. ")
public String getTransactionLocalDateTime() {
return transactionLocalDateTime;
}
public void setTransactionLocalDateTime(String transactionLocalDateTime) {
this.transactionLocalDateTime = transactionLocalDateTime;
}
public Ptsv2billingagreementsMerchantInformation cancelUrl(String cancelUrl) {
this.cancelUrl = cancelUrl;
return this;
}
/**
* URL to which the customer is directed if they fail to sign the mandate. #### SEPA Required for Create Mandate and Update Mandate #### BACS Required for Create Mandate
* @return cancelUrl
**/
@ApiModelProperty(value = "URL to which the customer is directed if they fail to sign the mandate. #### SEPA Required for Create Mandate and Update Mandate #### BACS Required for Create Mandate ")
public String getCancelUrl() {
return cancelUrl;
}
public void setCancelUrl(String cancelUrl) {
this.cancelUrl = cancelUrl;
}
public Ptsv2billingagreementsMerchantInformation successUrl(String successUrl) {
this.successUrl = successUrl;
return this;
}
/**
* URL to which the customer is directed if they fail to sign the mandate. #### SEPA Required for Create Mandate and Update Mandate #### BACS Required for Create Mandate
* @return successUrl
**/
@ApiModelProperty(value = "URL to which the customer is directed if they fail to sign the mandate. #### SEPA Required for Create Mandate and Update Mandate #### BACS Required for Create Mandate ")
public String getSuccessUrl() {
return successUrl;
}
public void setSuccessUrl(String successUrl) {
this.successUrl = successUrl;
}
public Ptsv2billingagreementsMerchantInformation failureUrl(String failureUrl) {
this.failureUrl = failureUrl;
return this;
}
/**
* URL to which the customer is directed if they fail to sign the mandate. #### SEPA Required for Create Mandate and Update Mandate #### BACS Required for Create Mandate
* @return failureUrl
**/
@ApiModelProperty(value = "URL to which the customer is directed if they fail to sign the mandate. #### SEPA Required for Create Mandate and Update Mandate #### BACS Required for Create Mandate ")
public String getFailureUrl() {
return failureUrl;
}
public void setFailureUrl(String failureUrl) {
this.failureUrl = failureUrl;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Ptsv2billingagreementsMerchantInformation ptsv2billingagreementsMerchantInformation = (Ptsv2billingagreementsMerchantInformation) o;
return Objects.equals(this.merchantDescriptor, ptsv2billingagreementsMerchantInformation.merchantDescriptor) &&
Objects.equals(this.categoryCode, ptsv2billingagreementsMerchantInformation.categoryCode) &&
Objects.equals(this.administrativeArea, ptsv2billingagreementsMerchantInformation.administrativeArea) &&
Objects.equals(this.transactionLocalDateTime, ptsv2billingagreementsMerchantInformation.transactionLocalDateTime) &&
Objects.equals(this.cancelUrl, ptsv2billingagreementsMerchantInformation.cancelUrl) &&
Objects.equals(this.successUrl, ptsv2billingagreementsMerchantInformation.successUrl) &&
Objects.equals(this.failureUrl, ptsv2billingagreementsMerchantInformation.failureUrl);
}
@Override
public int hashCode() {
return Objects.hash(merchantDescriptor, categoryCode, administrativeArea, transactionLocalDateTime, cancelUrl, successUrl, failureUrl);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Ptsv2billingagreementsMerchantInformation {\n");
if (merchantDescriptor != null) sb.append(" merchantDescriptor: ").append(toIndentedString(merchantDescriptor)).append("\n");
if (categoryCode != null) sb.append(" categoryCode: ").append(toIndentedString(categoryCode)).append("\n");
if (administrativeArea != null) sb.append(" administrativeArea: ").append(toIndentedString(administrativeArea)).append("\n");
if (transactionLocalDateTime != null) sb.append(" transactionLocalDateTime: ").append(toIndentedString(transactionLocalDateTime)).append("\n");
if (cancelUrl != null) sb.append(" cancelUrl: ").append(toIndentedString(cancelUrl)).append("\n");
if (successUrl != null) sb.append(" successUrl: ").append(toIndentedString(successUrl)).append("\n");
if (failureUrl != null) sb.append(" failureUrl: ").append(toIndentedString(failureUrl)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
// return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy