Package model
Class AdditionalPurchaseDataItemDataInner
java.lang.Object
model.AdditionalPurchaseDataItemDataInner
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2022-06-24T13:03:18.088665-07:00[America/Los_Angeles]")
public class AdditionalPurchaseDataItemDataInner
extends Object
AdditionalPurchaseDataItemDataInner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionamountExcludingSalesTax(Long amountExcludingSalesTax) amountIncludingSalesTax(Long amountIncludingSalesTax) commodityCode(String commodityCode) costPerUnit(Long costPerUnit) booleanCreate an instance of AdditionalPurchaseDataItemDataInner given an JSON stringTotal cost in cents of the line item excluding tax.Total cost in cents of the line item including tax.A commodity code is a numeric code representing a particular product or service as defined by the National Institute of Governmental Purchasing.The price in cents of one unit of the item purchasedRequired when `item_data` is supplied (max 25 characters)Item discount amount in centsMerchant defined product code (max 12 characters).The number of items purchased.The unit of measure of the purchased item (max 3 characters).inthashCode()itemDescription(String itemDescription) itemDiscountAmount(Long itemDiscountAmount) merchantProductCode(String merchantProductCode) voidsetAmountExcludingSalesTax(Long amountExcludingSalesTax) voidsetAmountIncludingSalesTax(Long amountIncludingSalesTax) voidsetCommodityCode(String commodityCode) voidsetCostPerUnit(Long costPerUnit) voidsetItemDescription(String itemDescription) voidsetItemDiscountAmount(Long itemDiscountAmount) voidsetMerchantProductCode(String merchantProductCode) voidsetQuantity(Long quantity) voidsetUnitOfMeasure(String unitOfMeasure) toJson()Convert an instance of AdditionalPurchaseDataItemDataInner to an JSON stringtoString()unitOfMeasure(String unitOfMeasure) static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AMOUNT_EXCLUDING_SALES_TAX
- See Also:
-
SERIALIZED_NAME_AMOUNT_INCLUDING_SALES_TAX
- See Also:
-
SERIALIZED_NAME_COMMODITY_CODE
- See Also:
-
SERIALIZED_NAME_COST_PER_UNIT
- See Also:
-
SERIALIZED_NAME_ITEM_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_ITEM_DISCOUNT_AMOUNT
- See Also:
-
SERIALIZED_NAME_MERCHANT_PRODUCT_CODE
- See Also:
-
SERIALIZED_NAME_QUANTITY
- See Also:
-
SERIALIZED_NAME_UNIT_OF_MEASURE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AdditionalPurchaseDataItemDataInner
public AdditionalPurchaseDataItemDataInner()
-
-
Method Details
-
amountExcludingSalesTax
-
getAmountExcludingSalesTax
Total cost in cents of the line item excluding tax.- Returns:
- amountExcludingSalesTax
-
setAmountExcludingSalesTax
-
amountIncludingSalesTax
-
getAmountIncludingSalesTax
Total cost in cents of the line item including tax.- Returns:
- amountIncludingSalesTax
-
setAmountIncludingSalesTax
-
commodityCode
-
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
-
costPerUnit
-
getCostPerUnit
The price in cents of one unit of the item purchased- Returns:
- costPerUnit
-
setCostPerUnit
-
itemDescription
-
getItemDescription
Required when `item_data` is supplied (max 25 characters)- Returns:
- itemDescription
-
setItemDescription
-
itemDiscountAmount
-
getItemDiscountAmount
Item discount amount in cents- Returns:
- itemDiscountAmount
-
setItemDiscountAmount
-
merchantProductCode
-
getMerchantProductCode
Merchant defined product code (max 12 characters).- Returns:
- merchantProductCode
-
setMerchantProductCode
-
quantity
-
getQuantity
The number of items purchased. Must be greater than 0.- Returns:
- quantity
-
setQuantity
-
unitOfMeasure
-
getUnitOfMeasure
The unit of measure of the purchased item (max 3 characters).- Returns:
- unitOfMeasure
-
setUnitOfMeasure
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
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
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
Convert an instance of AdditionalPurchaseDataItemDataInner to an JSON string- Returns:
- JSON string
-