Package model

Class AdditionalPurchaseDataItemDataInner


  • @Generated("org.openapitools.codegen.languages.JavaClientCodegen")
    public class AdditionalPurchaseDataItemDataInner
    extends Object
    AdditionalPurchaseDataItemDataInner
    • Constructor Detail

      • AdditionalPurchaseDataItemDataInner

        public AdditionalPurchaseDataItemDataInner()
    • Method Detail

      • getAmountExcludingSalesTax

        @Nullable
        public Long getAmountExcludingSalesTax()
        Total cost in cents of the line item excluding tax.
        Returns:
        amountExcludingSalesTax
      • setAmountExcludingSalesTax

        public void setAmountExcludingSalesTax​(Long amountExcludingSalesTax)
      • getAmountIncludingSalesTax

        @Nullable
        public Long getAmountIncludingSalesTax()
        Total cost in cents of the line item including tax.
        Returns:
        amountIncludingSalesTax
      • setAmountIncludingSalesTax

        public void setAmountIncludingSalesTax​(Long amountIncludingSalesTax)
      • getCommodityCode

        @Nullable
        public String getCommodityCode()
        A commodity code is a numeric code representing a particular product or service as defined by the National Institute of Governmental Purchasing. The code can be 3, 5, 7, or 11 digits in length. The longer the code the more granular the description of the product/service. (max 12 characters).
        Returns:
        commodityCode
      • setCommodityCode

        public void setCommodityCode​(String commodityCode)
      • getCostPerUnit

        @Nullable
        public Long getCostPerUnit()
        The price in cents of one unit of the item purchased
        Returns:
        costPerUnit
      • setCostPerUnit

        public void setCostPerUnit​(Long costPerUnit)
      • getItemDescription

        @Nullable
        public String getItemDescription()
        Required when `item_data` is supplied (max 25 characters)
        Returns:
        itemDescription
      • setItemDescription

        public void setItemDescription​(String itemDescription)
      • getItemDiscountAmount

        @Nullable
        public Long getItemDiscountAmount()
        Item discount amount in cents
        Returns:
        itemDiscountAmount
      • setItemDiscountAmount

        public void setItemDiscountAmount​(Long itemDiscountAmount)
      • getMerchantProductCode

        @Nullable
        public String getMerchantProductCode()
        Merchant defined product code (max 12 characters).
        Returns:
        merchantProductCode
      • setMerchantProductCode

        public void setMerchantProductCode​(String merchantProductCode)
      • getQuantity

        @Nullable
        public Long getQuantity()
        The number of items purchased. Must be greater than 0.
        Returns:
        quantity
      • setQuantity

        public void setQuantity​(Long quantity)
      • getUnitOfMeasure

        @Nullable
        public String getUnitOfMeasure()
        The unit of measure of the purchased item (max 3 characters).
        Returns:
        unitOfMeasure
      • setUnitOfMeasure

        public void setUnitOfMeasure​(String unitOfMeasure)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to AdditionalPurchaseDataItemDataInner
      • fromJson

        public static AdditionalPurchaseDataItemDataInner fromJson​(String jsonString)
                                                            throws IOException
        Create an instance of AdditionalPurchaseDataItemDataInner given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of AdditionalPurchaseDataItemDataInner
        Throws:
        IOException - if the JSON string is invalid with respect to AdditionalPurchaseDataItemDataInner
      • toJson

        public String toJson()
        Convert an instance of AdditionalPurchaseDataItemDataInner to an JSON string
        Returns:
        JSON string