
Model.TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions 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.Ptsv2paymentsProcessingInformationJapanPaymentOptionsBonuses;
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;
import java.util.ArrayList;
import java.util.List;
/**
* TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions
*/
public class TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions {
@SerializedName("paymentMethod")
private String paymentMethod = null;
@SerializedName("terminalId")
private String terminalId = null;
@SerializedName("businessName")
private String businessName = null;
@SerializedName("businessNameKatakana")
private String businessNameKatakana = null;
@SerializedName("businessNameEnglish")
private String businessNameEnglish = null;
@SerializedName("bonuses")
private List bonuses = null;
@SerializedName("firstBillingMonth")
private String firstBillingMonth = null;
@SerializedName("numberOfInstallments")
private String numberOfInstallments = null;
@SerializedName("preApprovalType")
private String preApprovalType = null;
public TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions paymentMethod(String paymentMethod) {
this.paymentMethod = paymentMethod;
return this;
}
/**
* This value is a 2-digit code indicating the payment method. Use Payment Method Code value that applies to the tranasction. - 10 (One-time payment) - 21, 22, 23, 24 (Bonus(one-time)payment) - 61 (Installment payment) - 31, 32, 33, 34 (Integrated (Bonus + Installment)payment) - 80 (Revolving payment)
* @return paymentMethod
**/
@ApiModelProperty(value = "This value is a 2-digit code indicating the payment method. Use Payment Method Code value that applies to the tranasction. - 10 (One-time payment) - 21, 22, 23, 24 (Bonus(one-time)payment) - 61 (Installment payment) - 31, 32, 33, 34 (Integrated (Bonus + Installment)payment) - 80 (Revolving payment) ")
public String getPaymentMethod() {
return paymentMethod;
}
public void setPaymentMethod(String paymentMethod) {
this.paymentMethod = paymentMethod;
}
public TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions terminalId(String terminalId) {
this.terminalId = terminalId;
return this;
}
/**
* Unique Japan Credit Card Association (JCCA) terminal identifier. The difference between this field and the `pointOfSaleInformation.terminalID` field is that you can define `pointOfSaleInformation.terminalID`, but `processingInformation.japanPaymentOptions.terminalId` is defined by the JCCA and is used only in Japan. This field is supported only on CyberSource through VisaNet and JCN Gateway. Optional field.
* @return terminalId
**/
@ApiModelProperty(value = "Unique Japan Credit Card Association (JCCA) terminal identifier. The difference between this field and the `pointOfSaleInformation.terminalID` field is that you can define `pointOfSaleInformation.terminalID`, but `processingInformation.japanPaymentOptions.terminalId` is defined by the JCCA and is used only in Japan. This field is supported only on CyberSource through VisaNet and JCN Gateway. Optional field. ")
public String getTerminalId() {
return terminalId;
}
public void setTerminalId(String terminalId) {
this.terminalId = terminalId;
}
public TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions businessName(String businessName) {
this.businessName = businessName;
return this;
}
/**
* Business name in Japanese characters. This field is supported only on JCN Gateway and for the Sumitomo Mitsui Card Co. acquirer on CyberSource through VisaNet.
* @return businessName
**/
@ApiModelProperty(value = "Business name in Japanese characters. This field is supported only on JCN Gateway and for the Sumitomo Mitsui Card Co. acquirer on CyberSource through VisaNet. ")
public String getBusinessName() {
return businessName;
}
public void setBusinessName(String businessName) {
this.businessName = businessName;
}
public TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions businessNameKatakana(String businessNameKatakana) {
this.businessNameKatakana = businessNameKatakana;
return this;
}
/**
* Business name in Katakana characters. This field is supported only on JCN Gateway and for the Sumitomo Mitsui Card Co. acquirer on CyberSource through VisaNet.
* @return businessNameKatakana
**/
@ApiModelProperty(value = "Business name in Katakana characters. This field is supported only on JCN Gateway and for the Sumitomo Mitsui Card Co. acquirer on CyberSource through VisaNet. ")
public String getBusinessNameKatakana() {
return businessNameKatakana;
}
public void setBusinessNameKatakana(String businessNameKatakana) {
this.businessNameKatakana = businessNameKatakana;
}
public TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions businessNameEnglish(String businessNameEnglish) {
this.businessNameEnglish = businessNameEnglish;
return this;
}
/**
* Business name in English characters. This field is supported only on JCN Gateway and for the Sumitomo Mitsui Card Co. acquirer on CyberSource through VisaNet.
* @return businessNameEnglish
**/
@ApiModelProperty(value = "Business name in English characters. This field is supported only on JCN Gateway and for the Sumitomo Mitsui Card Co. acquirer on CyberSource through VisaNet. ")
public String getBusinessNameEnglish() {
return businessNameEnglish;
}
public void setBusinessNameEnglish(String businessNameEnglish) {
this.businessNameEnglish = businessNameEnglish;
}
public TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions bonuses(List bonuses) {
this.bonuses = bonuses;
return this;
}
public TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions addBonusesItem(Ptsv2paymentsProcessingInformationJapanPaymentOptionsBonuses bonusesItem) {
if (this.bonuses == null) {
this.bonuses = new ArrayList();
}
this.bonuses.add(bonusesItem);
return this;
}
/**
* An array of objects, each of which contains a bonus month and bonus amount. Length of bonuses array is equal to the number of bonuses. Max length = 6. In case of bonus month and amount not specified, null objects to be returned in the array. Example: bonuses : [ {\"month\": \"1\",\"amount\": \"200\"}, {\"month\": \"3\",\"amount\": \"2500\"}, null]
* @return bonuses
**/
@ApiModelProperty(value = "An array of objects, each of which contains a bonus month and bonus amount. Length of bonuses array is equal to the number of bonuses. Max length = 6. In case of bonus month and amount not specified, null objects to be returned in the array. Example: bonuses : [ {\"month\": \"1\",\"amount\": \"200\"}, {\"month\": \"3\",\"amount\": \"2500\"}, null] ")
public List getBonuses() {
return bonuses;
}
public void setBonuses(List bonuses) {
this.bonuses = bonuses;
}
public TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions firstBillingMonth(String firstBillingMonth) {
this.firstBillingMonth = firstBillingMonth;
return this;
}
/**
* Billing month in MM format.
* @return firstBillingMonth
**/
@ApiModelProperty(value = "Billing month in MM format. ")
public String getFirstBillingMonth() {
return firstBillingMonth;
}
public void setFirstBillingMonth(String firstBillingMonth) {
this.firstBillingMonth = firstBillingMonth;
}
public TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions numberOfInstallments(String numberOfInstallments) {
this.numberOfInstallments = numberOfInstallments;
return this;
}
/**
* Number of Installments.
* @return numberOfInstallments
**/
@ApiModelProperty(value = "Number of Installments. ")
public String getNumberOfInstallments() {
return numberOfInstallments;
}
public void setNumberOfInstallments(String numberOfInstallments) {
this.numberOfInstallments = numberOfInstallments;
}
public TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions preApprovalType(String preApprovalType) {
this.preApprovalType = preApprovalType;
return this;
}
/**
* This will contain the details of the kind of transaction that has been processe. Used only for Japan. Possible Values: - 0 = Normal (authorization with amount and clearing/settlement; data capture or paper draft) - 1 = Negative card authorization (authorization-only with 0 or 1 amount) - 2 = Reservation of authorization (authorization-only with amount) - 3 = Cancel transaction - 4 = Merchant-initiated reversal/refund transactions - 5 = Cancel reservation of authorization - 6 = Post authorization
* @return preApprovalType
**/
@ApiModelProperty(value = "This will contain the details of the kind of transaction that has been processe. Used only for Japan. Possible Values: - 0 = Normal (authorization with amount and clearing/settlement; data capture or paper draft) - 1 = Negative card authorization (authorization-only with 0 or 1 amount) - 2 = Reservation of authorization (authorization-only with amount) - 3 = Cancel transaction - 4 = Merchant-initiated reversal/refund transactions - 5 = Cancel reservation of authorization - 6 = Post authorization ")
public String getPreApprovalType() {
return preApprovalType;
}
public void setPreApprovalType(String preApprovalType) {
this.preApprovalType = preApprovalType;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions tssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions = (TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions) o;
return Objects.equals(this.paymentMethod, tssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.paymentMethod) &&
Objects.equals(this.terminalId, tssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.terminalId) &&
Objects.equals(this.businessName, tssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.businessName) &&
Objects.equals(this.businessNameKatakana, tssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.businessNameKatakana) &&
Objects.equals(this.businessNameEnglish, tssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.businessNameEnglish) &&
Objects.equals(this.bonuses, tssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.bonuses) &&
Objects.equals(this.firstBillingMonth, tssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.firstBillingMonth) &&
Objects.equals(this.numberOfInstallments, tssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.numberOfInstallments) &&
Objects.equals(this.preApprovalType, tssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions.preApprovalType);
}
@Override
public int hashCode() {
return Objects.hash(paymentMethod, terminalId, businessName, businessNameKatakana, businessNameEnglish, bonuses, firstBillingMonth, numberOfInstallments, preApprovalType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions {\n");
sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n");
sb.append(" terminalId: ").append(toIndentedString(terminalId)).append("\n");
sb.append(" businessName: ").append(toIndentedString(businessName)).append("\n");
sb.append(" businessNameKatakana: ").append(toIndentedString(businessNameKatakana)).append("\n");
sb.append(" businessNameEnglish: ").append(toIndentedString(businessNameEnglish)).append("\n");
sb.append(" bonuses: ").append(toIndentedString(bonuses)).append("\n");
sb.append(" firstBillingMonth: ").append(toIndentedString(firstBillingMonth)).append("\n");
sb.append(" numberOfInstallments: ").append(toIndentedString(numberOfInstallments)).append("\n");
sb.append(" preApprovalType: ").append(toIndentedString(preApprovalType)).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