All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.GBSEcom.model.PurchaseCardsLevel3LineItems Maven / Gradle / Ivy

Go to download

Java SDK to be used with a First Data Gateway account. This SDK has been created and packaged to offer the easiest way to integrate your application into the First Data Gateway. This SDK gives you the ability to run transactions such as sales, preauthorizations, postauthorizations, credits, voids, and returns; transaction inquiries; setting up scheduled payments and much more.

There is a newer version: 1.15.0
Show newest version
/*
 * Payment Gateway API Specification.
 * The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
 *
 * The version of the OpenAPI document: 21.2.0.20210406.001
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.github.GBSEcom.model;

import java.util.Objects;
import java.util.Arrays;
import com.github.GBSEcom.model.AdditionalAmountRate;
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.math.BigDecimal;

/**
 * PurchaseCardsLevel3LineItems
 */

public class PurchaseCardsLevel3LineItems {
  public static final String SERIALIZED_NAME_COMMODITY_CODE = "commodityCode";
  @SerializedName(SERIALIZED_NAME_COMMODITY_CODE)
  private String commodityCode;

  public static final String SERIALIZED_NAME_PRODUCT_CODE = "productCode";
  @SerializedName(SERIALIZED_NAME_PRODUCT_CODE)
  private String productCode;

  public static final String SERIALIZED_NAME_DESCRIPTION = "description";
  @SerializedName(SERIALIZED_NAME_DESCRIPTION)
  private String description;

  public static final String SERIALIZED_NAME_QUANTITY = "quantity";
  @SerializedName(SERIALIZED_NAME_QUANTITY)
  private Integer quantity;

  public static final String SERIALIZED_NAME_UNIT_MEASURE = "unitMeasure";
  @SerializedName(SERIALIZED_NAME_UNIT_MEASURE)
  private String unitMeasure;

  public static final String SERIALIZED_NAME_UNIT_PRICE = "unitPrice";
  @SerializedName(SERIALIZED_NAME_UNIT_PRICE)
  private BigDecimal unitPrice;

  public static final String SERIALIZED_NAME_VAT_AMOUNT_AND_RATE = "vatAmountAndRate";
  @SerializedName(SERIALIZED_NAME_VAT_AMOUNT_AND_RATE)
  private AdditionalAmountRate vatAmountAndRate;

  public static final String SERIALIZED_NAME_DISCOUNT_AMOUNT_AND_RATE = "discountAmountAndRate";
  @SerializedName(SERIALIZED_NAME_DISCOUNT_AMOUNT_AND_RATE)
  private AdditionalAmountRate discountAmountAndRate;

  public static final String SERIALIZED_NAME_LINE_ITEM_TOTAL = "lineItemTotal";
  @SerializedName(SERIALIZED_NAME_LINE_ITEM_TOTAL)
  private BigDecimal lineItemTotal;


  public PurchaseCardsLevel3LineItems commodityCode(String commodityCode) {
    
    this.commodityCode = commodityCode;
    return this;
  }

   /**
   * The commodity code used to classify the item purchased.
   * @return commodityCode
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "ab12", value = "The commodity code used to classify the item purchased.")

  public String getCommodityCode() {
    return commodityCode;
  }



  public void setCommodityCode(String commodityCode) {
    this.commodityCode = commodityCode;
  }


  public PurchaseCardsLevel3LineItems productCode(String productCode) {
    
    this.productCode = productCode;
    return this;
  }

   /**
   * Merchant product identifier/the Universal Product Code (UPC) of the item purchased.
   * @return productCode
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "0001212120888", value = "Merchant product identifier/the Universal Product Code (UPC) of the item purchased.")

  public String getProductCode() {
    return productCode;
  }



  public void setProductCode(String productCode) {
    this.productCode = productCode;
  }


  public PurchaseCardsLevel3LineItems description(String description) {
    
    this.description = description;
    return this;
  }

   /**
   * The description.
   * @return description
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "Dinner and movie", value = "The description.")

  public String getDescription() {
    return description;
  }



  public void setDescription(String description) {
    this.description = description;
  }


  public PurchaseCardsLevel3LineItems quantity(Integer quantity) {
    
    this.quantity = quantity;
    return this;
  }

   /**
   * The quantity.
   * minimum: 1
   * @return quantity
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "5", value = "The quantity.")

  public Integer getQuantity() {
    return quantity;
  }



  public void setQuantity(Integer quantity) {
    this.quantity = quantity;
  }


  public PurchaseCardsLevel3LineItems unitMeasure(String unitMeasure) {
    
    this.unitMeasure = unitMeasure;
    return this;
  }

   /**
   * The unit of measure.
   * @return unitMeasure
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "25", value = "The unit of measure.")

  public String getUnitMeasure() {
    return unitMeasure;
  }



  public void setUnitMeasure(String unitMeasure) {
    this.unitMeasure = unitMeasure;
  }


  public PurchaseCardsLevel3LineItems unitPrice(BigDecimal unitPrice) {
    
    this.unitPrice = unitPrice;
    return this;
  }

   /**
   * Rate amount in 3 decimal 12 bytes total digit.
   * @return unitPrice
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "30.075", value = "Rate amount in 3 decimal 12 bytes total digit.")

  public BigDecimal getUnitPrice() {
    return unitPrice;
  }



  public void setUnitPrice(BigDecimal unitPrice) {
    this.unitPrice = unitPrice;
  }


  public PurchaseCardsLevel3LineItems vatAmountAndRate(AdditionalAmountRate vatAmountAndRate) {
    
    this.vatAmountAndRate = vatAmountAndRate;
    return this;
  }

   /**
   * Get vatAmountAndRate
   * @return vatAmountAndRate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public AdditionalAmountRate getVatAmountAndRate() {
    return vatAmountAndRate;
  }



  public void setVatAmountAndRate(AdditionalAmountRate vatAmountAndRate) {
    this.vatAmountAndRate = vatAmountAndRate;
  }


  public PurchaseCardsLevel3LineItems discountAmountAndRate(AdditionalAmountRate discountAmountAndRate) {
    
    this.discountAmountAndRate = discountAmountAndRate;
    return this;
  }

   /**
   * Get discountAmountAndRate
   * @return discountAmountAndRate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public AdditionalAmountRate getDiscountAmountAndRate() {
    return discountAmountAndRate;
  }



  public void setDiscountAmountAndRate(AdditionalAmountRate discountAmountAndRate) {
    this.discountAmountAndRate = discountAmountAndRate;
  }


  public PurchaseCardsLevel3LineItems lineItemTotal(BigDecimal lineItemTotal) {
    
    this.lineItemTotal = lineItemTotal;
    return this;
  }

   /**
   * Rate amount in 3 decimal 12 bytes total digit.
   * @return lineItemTotal
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "39.075", value = "Rate amount in 3 decimal 12 bytes total digit.")

  public BigDecimal getLineItemTotal() {
    return lineItemTotal;
  }



  public void setLineItemTotal(BigDecimal lineItemTotal) {
    this.lineItemTotal = lineItemTotal;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PurchaseCardsLevel3LineItems purchaseCardsLevel3LineItems = (PurchaseCardsLevel3LineItems) o;
    return Objects.equals(this.commodityCode, purchaseCardsLevel3LineItems.commodityCode) &&
        Objects.equals(this.productCode, purchaseCardsLevel3LineItems.productCode) &&
        Objects.equals(this.description, purchaseCardsLevel3LineItems.description) &&
        Objects.equals(this.quantity, purchaseCardsLevel3LineItems.quantity) &&
        Objects.equals(this.unitMeasure, purchaseCardsLevel3LineItems.unitMeasure) &&
        Objects.equals(this.unitPrice, purchaseCardsLevel3LineItems.unitPrice) &&
        Objects.equals(this.vatAmountAndRate, purchaseCardsLevel3LineItems.vatAmountAndRate) &&
        Objects.equals(this.discountAmountAndRate, purchaseCardsLevel3LineItems.discountAmountAndRate) &&
        Objects.equals(this.lineItemTotal, purchaseCardsLevel3LineItems.lineItemTotal);
  }

  @Override
  public int hashCode() {
    return Objects.hash(commodityCode, productCode, description, quantity, unitMeasure, unitPrice, vatAmountAndRate, discountAmountAndRate, lineItemTotal);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PurchaseCardsLevel3LineItems {\n");
    sb.append("    commodityCode: ").append(toIndentedString(commodityCode)).append("\n");
    sb.append("    productCode: ").append(toIndentedString(productCode)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    quantity: ").append(toIndentedString(quantity)).append("\n");
    sb.append("    unitMeasure: ").append(toIndentedString(unitMeasure)).append("\n");
    sb.append("    unitPrice: ").append(toIndentedString(unitPrice)).append("\n");
    sb.append("    vatAmountAndRate: ").append(toIndentedString(vatAmountAndRate)).append("\n");
    sb.append("    discountAmountAndRate: ").append(toIndentedString(discountAmountAndRate)).append("\n");
    sb.append("    lineItemTotal: ").append(toIndentedString(lineItemTotal)).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