
Model.Ptsv2paymentsidrefundsOrderInformationLineItems 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.Ptsv2paymentsOrderInformationAmountDetailsTaxDetails;
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;
/**
* Ptsv2paymentsidrefundsOrderInformationLineItems
*/
public class Ptsv2paymentsidrefundsOrderInformationLineItems {
@SerializedName("productCode")
private String productCode = null;
@SerializedName("productName")
private String productName = null;
@SerializedName("productSku")
private String productSku = null;
@SerializedName("quantity")
private Integer quantity = null;
@SerializedName("unitPrice")
private String unitPrice = null;
@SerializedName("unitOfMeasure")
private String unitOfMeasure = null;
@SerializedName("totalAmount")
private String totalAmount = null;
@SerializedName("taxAmount")
private String taxAmount = null;
@SerializedName("taxRate")
private String taxRate = null;
@SerializedName("taxAppliedAfterDiscount")
private String taxAppliedAfterDiscount = null;
@SerializedName("taxStatusIndicator")
private String taxStatusIndicator = null;
@SerializedName("taxTypeCode")
private String taxTypeCode = null;
@SerializedName("amountIncludesTax")
private Boolean amountIncludesTax = null;
@SerializedName("typeOfSupply")
private String typeOfSupply = null;
@SerializedName("commodityCode")
private String commodityCode = null;
@SerializedName("discountAmount")
private String discountAmount = null;
@SerializedName("discountApplied")
private Boolean discountApplied = null;
@SerializedName("discountRate")
private String discountRate = null;
@SerializedName("invoiceNumber")
private String invoiceNumber = null;
@SerializedName("taxDetails")
private List taxDetails = null;
public Ptsv2paymentsidrefundsOrderInformationLineItems productCode(String productCode) {
this.productCode = productCode;
return this;
}
/**
* Type of product. The value for this field is used to identify the product category (electronic, handling, physical, service, or shipping). The default value is `default`. If you are performing an authorization transaction (`processingOptions.capture` is set to `false`), and you set this field to a value other than `default` or one of the values related to shipping and/or handling, then `orderInformation.lineItems[].quantity`, `orderInformation.lineItems[].productName`, and `orderInformation.lineItems[].productSku` fields are required. Optional field. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. The Product Codes for the tax service are located in the Cybersource Tax Codes guide. Contact Customer Support to request the guide. If you don't send a tax service Product Code in your tax request, product-based rules or exemptions will not be applied and the transaction will default to fully taxable in the locations where you've indicated you need to collect tax [by way of nexus, no nexus, or seller registration number fields].
* @return productCode
**/
@ApiModelProperty(value = "Type of product. The value for this field is used to identify the product category (electronic, handling, physical, service, or shipping). The default value is `default`. If you are performing an authorization transaction (`processingOptions.capture` is set to `false`), and you set this field to a value other than `default` or one of the values related to shipping and/or handling, then `orderInformation.lineItems[].quantity`, `orderInformation.lineItems[].productName`, and `orderInformation.lineItems[].productSku` fields are required. Optional field. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. The Product Codes for the tax service are located in the Cybersource Tax Codes guide. Contact Customer Support to request the guide. If you don't send a tax service Product Code in your tax request, product-based rules or exemptions will not be applied and the transaction will default to fully taxable in the locations where you've indicated you need to collect tax [by way of nexus, no nexus, or seller registration number fields]. ")
public String getProductCode() {
return productCode;
}
public void setProductCode(String productCode) {
this.productCode = productCode;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems productName(String productName) {
this.productName = productName;
return this;
}
/**
* For an authorization or capture transaction (`processingOptions.capture` is `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not `default` or one of the other values that are related to shipping and/or handling. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes.
* @return productName
**/
@ApiModelProperty(value = "For an authorization or capture transaction (`processingOptions.capture` is `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not `default` or one of the other values that are related to shipping and/or handling. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. ")
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems productSku(String productSku) {
this.productSku = productSku;
return this;
}
/**
* Product identifier code. Also known as the Stock Keeping Unit (SKU) code for the product. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not set to **default** or one of the other values that are related to shipping and/or handling. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not `default` or one of the values related to shipping and/or handling.
* @return productSku
**/
@ApiModelProperty(value = "Product identifier code. Also known as the Stock Keeping Unit (SKU) code for the product. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not set to **default** or one of the other values that are related to shipping and/or handling. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not `default` or one of the values related to shipping and/or handling. ")
public String getProductSku() {
return productSku;
}
public void setProductSku(String productSku) {
this.productSku = productSku;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems quantity(Integer quantity) {
this.quantity = quantity;
return this;
}
/**
* Number of units for this order. Must be a non-negative integer. The default is `1`. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not `default` or one of the other values related to shipping and/or handling. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes.
* minimum: 1
* maximum: 999999999
* @return quantity
**/
@ApiModelProperty(value = "Number of units for this order. Must be a non-negative integer. The default is `1`. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not `default` or one of the other values related to shipping and/or handling. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. ")
public Integer getQuantity() {
return quantity;
}
public void setQuantity(Integer quantity) {
this.quantity = quantity;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems unitPrice(String unitPrice) {
this.unitPrice = unitPrice;
return this;
}
/**
* Per-item price of the product. This value for this field cannot be negative. You must include either this field or the request-level field `orderInformation.amountDetails.totalAmount` in your request. You can include a decimal point (.), but you cannot include any other special characters. The value is truncated to the correct number of decimal places. #### DCC with a Third-Party Provider Set this field to the converted amount that was returned by the DCC provider. You must include either the 1st line item in the order and this field, or the request-level field `orderInformation.amountDetails.totalAmount` in your request. #### Tax Calculation Required field for U.S., Canadian, international and value added taxes. #### Zero Amount Authorizations If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. #### Maximum Field Lengths For GPN and JCN Gateway: Decimal (10) All other processors: Decimal (15)
* @return unitPrice
**/
@ApiModelProperty(value = "Per-item price of the product. This value for this field cannot be negative. You must include either this field or the request-level field `orderInformation.amountDetails.totalAmount` in your request. You can include a decimal point (.), but you cannot include any other special characters. The value is truncated to the correct number of decimal places. #### DCC with a Third-Party Provider Set this field to the converted amount that was returned by the DCC provider. You must include either the 1st line item in the order and this field, or the request-level field `orderInformation.amountDetails.totalAmount` in your request. #### Tax Calculation Required field for U.S., Canadian, international and value added taxes. #### Zero Amount Authorizations If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. #### Maximum Field Lengths For GPN and JCN Gateway: Decimal (10) All other processors: Decimal (15) ")
public String getUnitPrice() {
return unitPrice;
}
public void setUnitPrice(String unitPrice) {
this.unitPrice = unitPrice;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems unitOfMeasure(String unitOfMeasure) {
this.unitOfMeasure = unitOfMeasure;
return this;
}
/**
* Unit of measure, or unit of measure code, for the item.
* @return unitOfMeasure
**/
@ApiModelProperty(value = "Unit of measure, or unit of measure code, for the item. ")
public String getUnitOfMeasure() {
return unitOfMeasure;
}
public void setUnitOfMeasure(String unitOfMeasure) {
this.unitOfMeasure = unitOfMeasure;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems totalAmount(String totalAmount) {
this.totalAmount = totalAmount;
return this;
}
/**
* Total amount for the item. Normally calculated as the unit price times quantity. When `orderInformation.lineItems[].productCode` is \"gift_card\", this is the purchase amount total for prepaid gift cards in major units. Example: 123.45 USD = 123
* @return totalAmount
**/
@ApiModelProperty(value = "Total amount for the item. Normally calculated as the unit price times quantity. When `orderInformation.lineItems[].productCode` is \"gift_card\", this is the purchase amount total for prepaid gift cards in major units. Example: 123.45 USD = 123 ")
public String getTotalAmount() {
return totalAmount;
}
public void setTotalAmount(String totalAmount) {
this.totalAmount = totalAmount;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems taxAmount(String taxAmount) {
this.taxAmount = taxAmount;
return this;
}
/**
* Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. Optional field. #### Airlines processing Tax portion of the order amount. This value cannot exceed 99999999999999 (fourteen 9s). Format: English characters only. Optional request field for a line item. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. Note if you send this field in your tax request, the value in the field will override the tax engine
* @return taxAmount
**/
@ApiModelProperty(value = "Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. Optional field. #### Airlines processing Tax portion of the order amount. This value cannot exceed 99999999999999 (fourteen 9s). Format: English characters only. Optional request field for a line item. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. Note if you send this field in your tax request, the value in the field will override the tax engine ")
public String getTaxAmount() {
return taxAmount;
}
public void setTaxAmount(String taxAmount) {
this.taxAmount = taxAmount;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems taxRate(String taxRate) {
this.taxRate = taxRate;
return this;
}
/**
* Tax rate applied to the item. **Visa**: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). **Mastercard**: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%).
* @return taxRate
**/
@ApiModelProperty(value = "Tax rate applied to the item. **Visa**: Valid range is 0.01 to 0.99 (1% to 99%, with only whole percentage values accepted; values with additional decimal places will be truncated). **Mastercard**: Valid range is 0.00001 to 0.99999 (0.001% to 99.999%). ")
public String getTaxRate() {
return taxRate;
}
public void setTaxRate(String taxRate) {
this.taxRate = taxRate;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems taxAppliedAfterDiscount(String taxAppliedAfterDiscount) {
this.taxAppliedAfterDiscount = taxAppliedAfterDiscount;
return this;
}
/**
* Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field.
* @return taxAppliedAfterDiscount
**/
@ApiModelProperty(value = "Flag to indicate how you handle discount at the line item level. - 0: no line level discount provided - 1: tax was calculated on the post-discount line item total - 2: tax was calculated on the pre-discount line item total `Note` Visa will inset 0 (zero) if an invalid value is included in this field. This field relates to the value in the _lineItems[].discountAmount_ field. ")
public String getTaxAppliedAfterDiscount() {
return taxAppliedAfterDiscount;
}
public void setTaxAppliedAfterDiscount(String taxAppliedAfterDiscount) {
this.taxAppliedAfterDiscount = taxAppliedAfterDiscount;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems taxStatusIndicator(String taxStatusIndicator) {
this.taxStatusIndicator = taxStatusIndicator;
return this;
}
/**
* Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax
* @return taxStatusIndicator
**/
@ApiModelProperty(value = "Flag to indicate whether tax is exempted or not included. - 0: tax not included - 1: tax included - 2: transaction is not subject to tax ")
public String getTaxStatusIndicator() {
return taxStatusIndicator;
}
public void setTaxStatusIndicator(String taxStatusIndicator) {
this.taxStatusIndicator = taxStatusIndicator;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems taxTypeCode(String taxTypeCode) {
this.taxTypeCode = taxTypeCode;
return this;
}
/**
* Type of tax being applied to the item. #### FDC Nashville Global - `alternate_tax_type_applied` - `alternate_tax_type_identifier` #### Worldpay VAP - `alternate_tax_type_identifier` #### RBS WorldPay Atlanta - `tax_type_applied` #### TSYS Acquiring Solutions - `tax_type_applied` - `local_tax_indicator` #### Chase Paymentech Solutions - `tax_type_applied` #### Elavon Americas - `local_tax_indicator` #### FDC Compass - `tax_type_applied` #### OmniPay Direct - `local_tax_indicator`
* @return taxTypeCode
**/
@ApiModelProperty(value = "Type of tax being applied to the item. #### FDC Nashville Global - `alternate_tax_type_applied` - `alternate_tax_type_identifier` #### Worldpay VAP - `alternate_tax_type_identifier` #### RBS WorldPay Atlanta - `tax_type_applied` #### TSYS Acquiring Solutions - `tax_type_applied` - `local_tax_indicator` #### Chase Paymentech Solutions - `tax_type_applied` #### Elavon Americas - `local_tax_indicator` #### FDC Compass - `tax_type_applied` #### OmniPay Direct - `local_tax_indicator` ")
public String getTaxTypeCode() {
return taxTypeCode;
}
public void setTaxTypeCode(String taxTypeCode) {
this.taxTypeCode = taxTypeCode;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems amountIncludesTax(Boolean amountIncludesTax) {
this.amountIncludesTax = amountIncludesTax;
return this;
}
/**
* Flag that indicates whether the tax amount is included in the Line Item Total. Possible values: - **true** - **false**
* @return amountIncludesTax
**/
@ApiModelProperty(value = "Flag that indicates whether the tax amount is included in the Line Item Total. Possible values: - **true** - **false** ")
public Boolean AmountIncludesTax() {
return amountIncludesTax;
}
public void setAmountIncludesTax(Boolean amountIncludesTax) {
this.amountIncludesTax = amountIncludesTax;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems typeOfSupply(String typeOfSupply) {
this.typeOfSupply = typeOfSupply;
return this;
}
/**
* Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services
* @return typeOfSupply
**/
@ApiModelProperty(value = "Flag to indicate whether the purchase is categorized as goods or services. Possible values: - 00: goods - 01: services ")
public String getTypeOfSupply() {
return typeOfSupply;
}
public void setTypeOfSupply(String typeOfSupply) {
this.typeOfSupply = typeOfSupply;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems commodityCode(String commodityCode) {
this.commodityCode = commodityCode;
return this;
}
/**
* Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes.
* @return commodityCode
**/
@ApiModelProperty(value = "Commodity code or International description code used to classify the item. Contact your acquirer for a list of codes. ")
public String getCommodityCode() {
return commodityCode;
}
public void setCommodityCode(String commodityCode) {
this.commodityCode = commodityCode;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems discountAmount(String discountAmount) {
this.discountAmount = discountAmount;
return this;
}
/**
* Discount applied to the item.
* @return discountAmount
**/
@ApiModelProperty(value = "Discount applied to the item.")
public String getDiscountAmount() {
return discountAmount;
}
public void setDiscountAmount(String discountAmount) {
this.discountAmount = discountAmount;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems discountApplied(Boolean discountApplied) {
this.discountApplied = discountApplied;
return this;
}
/**
* Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. Possible values: - **true** - **false**
* @return discountApplied
**/
@ApiModelProperty(value = "Flag that indicates whether the amount is discounted. If you do not provide a value but you set Discount Amount to a value greater than zero, then CyberSource sets this field to **true**. Possible values: - **true** - **false** ")
public Boolean DiscountApplied() {
return discountApplied;
}
public void setDiscountApplied(Boolean discountApplied) {
this.discountApplied = discountApplied;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems discountRate(String discountRate) {
this.discountRate = discountRate;
return this;
}
/**
* Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%)
* @return discountRate
**/
@ApiModelProperty(value = "Rate the item is discounted. Maximum of 2 decimal places. Example 5.25 (=5.25%) ")
public String getDiscountRate() {
return discountRate;
}
public void setDiscountRate(String discountRate) {
this.discountRate = discountRate;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems invoiceNumber(String invoiceNumber) {
this.invoiceNumber = invoiceNumber;
return this;
}
/**
* Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items.
* @return invoiceNumber
**/
@ApiModelProperty(value = "Field to support an invoice number for a transaction. You must specify the number of line items that will include an invoice number. By default, the first line item will include an invoice number field. The invoice number field can be included for up to 10 line items. ")
public String getInvoiceNumber() {
return invoiceNumber;
}
public void setInvoiceNumber(String invoiceNumber) {
this.invoiceNumber = invoiceNumber;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems taxDetails(List taxDetails) {
this.taxDetails = taxDetails;
return this;
}
public Ptsv2paymentsidrefundsOrderInformationLineItems addTaxDetailsItem(Ptsv2paymentsOrderInformationAmountDetailsTaxDetails taxDetailsItem) {
if (this.taxDetails == null) {
this.taxDetails = new ArrayList();
}
this.taxDetails.add(taxDetailsItem);
return this;
}
/**
* Get taxDetails
* @return taxDetails
**/
@ApiModelProperty(value = "")
public List getTaxDetails() {
return taxDetails;
}
public void setTaxDetails(List taxDetails) {
this.taxDetails = taxDetails;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Ptsv2paymentsidrefundsOrderInformationLineItems ptsv2paymentsidrefundsOrderInformationLineItems = (Ptsv2paymentsidrefundsOrderInformationLineItems) o;
return Objects.equals(this.productCode, ptsv2paymentsidrefundsOrderInformationLineItems.productCode) &&
Objects.equals(this.productName, ptsv2paymentsidrefundsOrderInformationLineItems.productName) &&
Objects.equals(this.productSku, ptsv2paymentsidrefundsOrderInformationLineItems.productSku) &&
Objects.equals(this.quantity, ptsv2paymentsidrefundsOrderInformationLineItems.quantity) &&
Objects.equals(this.unitPrice, ptsv2paymentsidrefundsOrderInformationLineItems.unitPrice) &&
Objects.equals(this.unitOfMeasure, ptsv2paymentsidrefundsOrderInformationLineItems.unitOfMeasure) &&
Objects.equals(this.totalAmount, ptsv2paymentsidrefundsOrderInformationLineItems.totalAmount) &&
Objects.equals(this.taxAmount, ptsv2paymentsidrefundsOrderInformationLineItems.taxAmount) &&
Objects.equals(this.taxRate, ptsv2paymentsidrefundsOrderInformationLineItems.taxRate) &&
Objects.equals(this.taxAppliedAfterDiscount, ptsv2paymentsidrefundsOrderInformationLineItems.taxAppliedAfterDiscount) &&
Objects.equals(this.taxStatusIndicator, ptsv2paymentsidrefundsOrderInformationLineItems.taxStatusIndicator) &&
Objects.equals(this.taxTypeCode, ptsv2paymentsidrefundsOrderInformationLineItems.taxTypeCode) &&
Objects.equals(this.amountIncludesTax, ptsv2paymentsidrefundsOrderInformationLineItems.amountIncludesTax) &&
Objects.equals(this.typeOfSupply, ptsv2paymentsidrefundsOrderInformationLineItems.typeOfSupply) &&
Objects.equals(this.commodityCode, ptsv2paymentsidrefundsOrderInformationLineItems.commodityCode) &&
Objects.equals(this.discountAmount, ptsv2paymentsidrefundsOrderInformationLineItems.discountAmount) &&
Objects.equals(this.discountApplied, ptsv2paymentsidrefundsOrderInformationLineItems.discountApplied) &&
Objects.equals(this.discountRate, ptsv2paymentsidrefundsOrderInformationLineItems.discountRate) &&
Objects.equals(this.invoiceNumber, ptsv2paymentsidrefundsOrderInformationLineItems.invoiceNumber) &&
Objects.equals(this.taxDetails, ptsv2paymentsidrefundsOrderInformationLineItems.taxDetails);
}
@Override
public int hashCode() {
return Objects.hash(productCode, productName, productSku, quantity, unitPrice, unitOfMeasure, totalAmount, taxAmount, taxRate, taxAppliedAfterDiscount, taxStatusIndicator, taxTypeCode, amountIncludesTax, typeOfSupply, commodityCode, discountAmount, discountApplied, discountRate, invoiceNumber, taxDetails);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Ptsv2paymentsidrefundsOrderInformationLineItems {\n");
if (productCode != null) sb.append(" productCode: ").append(toIndentedString(productCode)).append("\n");
if (productName != null) sb.append(" productName: ").append(toIndentedString(productName)).append("\n");
if (productSku != null) sb.append(" productSku: ").append(toIndentedString(productSku)).append("\n");
if (quantity != null) sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
if (unitPrice != null) sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n");
if (unitOfMeasure != null) sb.append(" unitOfMeasure: ").append(toIndentedString(unitOfMeasure)).append("\n");
if (totalAmount != null) sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n");
if (taxAmount != null) sb.append(" taxAmount: ").append(toIndentedString(taxAmount)).append("\n");
if (taxRate != null) sb.append(" taxRate: ").append(toIndentedString(taxRate)).append("\n");
if (taxAppliedAfterDiscount != null) sb.append(" taxAppliedAfterDiscount: ").append(toIndentedString(taxAppliedAfterDiscount)).append("\n");
if (taxStatusIndicator != null) sb.append(" taxStatusIndicator: ").append(toIndentedString(taxStatusIndicator)).append("\n");
if (taxTypeCode != null) sb.append(" taxTypeCode: ").append(toIndentedString(taxTypeCode)).append("\n");
if (amountIncludesTax != null) sb.append(" amountIncludesTax: ").append(toIndentedString(amountIncludesTax)).append("\n");
if (typeOfSupply != null) sb.append(" typeOfSupply: ").append(toIndentedString(typeOfSupply)).append("\n");
if (commodityCode != null) sb.append(" commodityCode: ").append(toIndentedString(commodityCode)).append("\n");
if (discountAmount != null) sb.append(" discountAmount: ").append(toIndentedString(discountAmount)).append("\n");
if (discountApplied != null) sb.append(" discountApplied: ").append(toIndentedString(discountApplied)).append("\n");
if (discountRate != null) sb.append(" discountRate: ").append(toIndentedString(discountRate)).append("\n");
if (invoiceNumber != null) sb.append(" invoiceNumber: ").append(toIndentedString(invoiceNumber)).append("\n");
if (taxDetails != null) sb.append(" taxDetails: ").append(toIndentedString(taxDetails)).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