
Model.Ptsv1pushfundstransferOrderInformationAmountDetails 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.Ptsv2paymentsOrderInformationAmountDetailsOctsurcharge;
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;
/**
* Ptsv1pushfundstransferOrderInformationAmountDetails
*/
public class Ptsv1pushfundstransferOrderInformationAmountDetails {
@SerializedName("totalAmount")
private String totalAmount = null;
@SerializedName("currency")
private String currency = null;
@SerializedName("sourceCurrency")
private String sourceCurrency = null;
@SerializedName("destinationCurrency")
private String destinationCurrency = null;
@SerializedName("surcharge")
private Ptsv2paymentsOrderInformationAmountDetailsOctsurcharge surcharge = null;
public Ptsv1pushfundstransferOrderInformationAmountDetails totalAmount(String totalAmount) {
this.totalAmount = totalAmount;
return this;
}
/**
* Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places.
* @return totalAmount
**/
@ApiModelProperty(required = true, value = "Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. ")
public String getTotalAmount() {
return totalAmount;
}
public void setTotalAmount(String totalAmount) {
this.totalAmount = totalAmount;
}
public Ptsv1pushfundstransferOrderInformationAmountDetails currency(String currency) {
this.currency = currency;
return this;
}
/**
* Use a 3-character alpha currency code for currency of the funds transfer. ISO standard currencies: http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf Currency must be supported by the processor.
* @return currency
**/
@ApiModelProperty(required = true, value = "Use a 3-character alpha currency code for currency of the funds transfer. ISO standard currencies: http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf Currency must be supported by the processor. ")
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public Ptsv1pushfundstransferOrderInformationAmountDetails sourceCurrency(String sourceCurrency) {
this.sourceCurrency = sourceCurrency;
return this;
}
/**
* Use a 3-character alpha currency code for source currency of the funds transfer. Supported for card and bank account based cross border funds transfers. ISO standard currencies: http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf
* @return sourceCurrency
**/
@ApiModelProperty(value = "Use a 3-character alpha currency code for source currency of the funds transfer. Supported for card and bank account based cross border funds transfers. ISO standard currencies: http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf ")
public String getSourceCurrency() {
return sourceCurrency;
}
public void setSourceCurrency(String sourceCurrency) {
this.sourceCurrency = sourceCurrency;
}
public Ptsv1pushfundstransferOrderInformationAmountDetails destinationCurrency(String destinationCurrency) {
this.destinationCurrency = destinationCurrency;
return this;
}
/**
* Use a 3-character alpha currency code for destination currency of the funds transfer. Supported for card and bank account based cross border funds transfers. ISO standard currencies: http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf
* @return destinationCurrency
**/
@ApiModelProperty(value = "Use a 3-character alpha currency code for destination currency of the funds transfer. Supported for card and bank account based cross border funds transfers. ISO standard currencies: http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf ")
public String getDestinationCurrency() {
return destinationCurrency;
}
public void setDestinationCurrency(String destinationCurrency) {
this.destinationCurrency = destinationCurrency;
}
public Ptsv1pushfundstransferOrderInformationAmountDetails surcharge(Ptsv2paymentsOrderInformationAmountDetailsOctsurcharge surcharge) {
this.surcharge = surcharge;
return this;
}
/**
* Get surcharge
* @return surcharge
**/
@ApiModelProperty(value = "")
public Ptsv2paymentsOrderInformationAmountDetailsOctsurcharge getSurcharge() {
return surcharge;
}
public void setSurcharge(Ptsv2paymentsOrderInformationAmountDetailsOctsurcharge surcharge) {
this.surcharge = surcharge;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Ptsv1pushfundstransferOrderInformationAmountDetails ptsv1pushfundstransferOrderInformationAmountDetails = (Ptsv1pushfundstransferOrderInformationAmountDetails) o;
return Objects.equals(this.totalAmount, ptsv1pushfundstransferOrderInformationAmountDetails.totalAmount) &&
Objects.equals(this.currency, ptsv1pushfundstransferOrderInformationAmountDetails.currency) &&
Objects.equals(this.sourceCurrency, ptsv1pushfundstransferOrderInformationAmountDetails.sourceCurrency) &&
Objects.equals(this.destinationCurrency, ptsv1pushfundstransferOrderInformationAmountDetails.destinationCurrency) &&
Objects.equals(this.surcharge, ptsv1pushfundstransferOrderInformationAmountDetails.surcharge);
}
@Override
public int hashCode() {
return Objects.hash(totalAmount, currency, sourceCurrency, destinationCurrency, surcharge);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Ptsv1pushfundstransferOrderInformationAmountDetails {\n");
if (totalAmount != null) sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n");
if (currency != null) sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
if (sourceCurrency != null) sb.append(" sourceCurrency: ").append(toIndentedString(sourceCurrency)).append("\n");
if (destinationCurrency != null) sb.append(" destinationCurrency: ").append(toIndentedString(destinationCurrency)).append("\n");
if (surcharge != null) sb.append(" surcharge: ").append(toIndentedString(surcharge)).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