
Model.Ptsv2intentsOrderInformationAmountDetails 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 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;
/**
* Ptsv2intentsOrderInformationAmountDetails
*/
public class Ptsv2intentsOrderInformationAmountDetails {
@SerializedName("totalAmount")
private String totalAmount = null;
@SerializedName("currency")
private String currency = null;
@SerializedName("discountAmount")
private String discountAmount = null;
@SerializedName("shippingAmount")
private String shippingAmount = null;
@SerializedName("shippingDiscountAmount")
private String shippingDiscountAmount = null;
@SerializedName("taxAmount")
private String taxAmount = null;
@SerializedName("insuranceAmount")
private String insuranceAmount = null;
@SerializedName("dutyAmount")
private String dutyAmount = null;
public Ptsv2intentsOrderInformationAmountDetails 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 you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places
* @return totalAmount
**/
@ApiModelProperty(value = "Grand total for the order. This value cannot be negative. You can include a decimal point (.), but you cannot include any 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 Ptsv2intentsOrderInformationAmountDetails currency(String currency) {
this.currency = currency;
return this;
}
/**
* Currency used for the order
* @return currency
**/
@ApiModelProperty(value = "Currency used for the order ")
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public Ptsv2intentsOrderInformationAmountDetails discountAmount(String discountAmount) {
this.discountAmount = discountAmount;
return this;
}
/**
* Discount amount for the transaction.
* @return discountAmount
**/
@ApiModelProperty(value = "Discount amount for the transaction. ")
public String getDiscountAmount() {
return discountAmount;
}
public void setDiscountAmount(String discountAmount) {
this.discountAmount = discountAmount;
}
public Ptsv2intentsOrderInformationAmountDetails shippingAmount(String shippingAmount) {
this.shippingAmount = shippingAmount;
return this;
}
/**
* Aggregate shipping charges for the transactions.
* @return shippingAmount
**/
@ApiModelProperty(value = "Aggregate shipping charges for the transactions. ")
public String getShippingAmount() {
return shippingAmount;
}
public void setShippingAmount(String shippingAmount) {
this.shippingAmount = shippingAmount;
}
public Ptsv2intentsOrderInformationAmountDetails shippingDiscountAmount(String shippingDiscountAmount) {
this.shippingDiscountAmount = shippingDiscountAmount;
return this;
}
/**
* Shipping discount amount for the transaction.
* @return shippingDiscountAmount
**/
@ApiModelProperty(value = "Shipping discount amount for the transaction. ")
public String getShippingDiscountAmount() {
return shippingDiscountAmount;
}
public void setShippingDiscountAmount(String shippingDiscountAmount) {
this.shippingDiscountAmount = shippingDiscountAmount;
}
public Ptsv2intentsOrderInformationAmountDetails taxAmount(String taxAmount) {
this.taxAmount = taxAmount;
return this;
}
/**
* Total tax amount.
* @return taxAmount
**/
@ApiModelProperty(value = "Total tax amount. ")
public String getTaxAmount() {
return taxAmount;
}
public void setTaxAmount(String taxAmount) {
this.taxAmount = taxAmount;
}
public Ptsv2intentsOrderInformationAmountDetails insuranceAmount(String insuranceAmount) {
this.insuranceAmount = insuranceAmount;
return this;
}
/**
* Amount being charged for the insurance fee.
* @return insuranceAmount
**/
@ApiModelProperty(value = "Amount being charged for the insurance fee. ")
public String getInsuranceAmount() {
return insuranceAmount;
}
public void setInsuranceAmount(String insuranceAmount) {
this.insuranceAmount = insuranceAmount;
}
public Ptsv2intentsOrderInformationAmountDetails dutyAmount(String dutyAmount) {
this.dutyAmount = dutyAmount;
return this;
}
/**
* Amount being charged as duty amount.
* @return dutyAmount
**/
@ApiModelProperty(value = "Amount being charged as duty amount. ")
public String getDutyAmount() {
return dutyAmount;
}
public void setDutyAmount(String dutyAmount) {
this.dutyAmount = dutyAmount;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Ptsv2intentsOrderInformationAmountDetails ptsv2intentsOrderInformationAmountDetails = (Ptsv2intentsOrderInformationAmountDetails) o;
return Objects.equals(this.totalAmount, ptsv2intentsOrderInformationAmountDetails.totalAmount) &&
Objects.equals(this.currency, ptsv2intentsOrderInformationAmountDetails.currency) &&
Objects.equals(this.discountAmount, ptsv2intentsOrderInformationAmountDetails.discountAmount) &&
Objects.equals(this.shippingAmount, ptsv2intentsOrderInformationAmountDetails.shippingAmount) &&
Objects.equals(this.shippingDiscountAmount, ptsv2intentsOrderInformationAmountDetails.shippingDiscountAmount) &&
Objects.equals(this.taxAmount, ptsv2intentsOrderInformationAmountDetails.taxAmount) &&
Objects.equals(this.insuranceAmount, ptsv2intentsOrderInformationAmountDetails.insuranceAmount) &&
Objects.equals(this.dutyAmount, ptsv2intentsOrderInformationAmountDetails.dutyAmount);
}
@Override
public int hashCode() {
return Objects.hash(totalAmount, currency, discountAmount, shippingAmount, shippingDiscountAmount, taxAmount, insuranceAmount, dutyAmount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Ptsv2intentsOrderInformationAmountDetails {\n");
if (totalAmount != null) sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n");
if (currency != null) sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
if (discountAmount != null) sb.append(" discountAmount: ").append(toIndentedString(discountAmount)).append("\n");
if (shippingAmount != null) sb.append(" shippingAmount: ").append(toIndentedString(shippingAmount)).append("\n");
if (shippingDiscountAmount != null) sb.append(" shippingDiscountAmount: ").append(toIndentedString(shippingDiscountAmount)).append("\n");
if (taxAmount != null) sb.append(" taxAmount: ").append(toIndentedString(taxAmount)).append("\n");
if (insuranceAmount != null) sb.append(" insuranceAmount: ").append(toIndentedString(insuranceAmount)).append("\n");
if (dutyAmount != null) sb.append(" dutyAmount: ").append(toIndentedString(dutyAmount)).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