Package com.clover.sdk.v3.payments
Class Level3LineItem
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.Level3LineItem
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class Level3LineItem extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Level3LineItem.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<Level3LineItem>
CREATOR
static JSONifiable.Creator<Level3LineItem>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description Level3LineItem()
Constructs a new empty instance.protected
Level3LineItem(boolean noInit)
Constructs a new empty instance.Level3LineItem(Level3LineItem src)
Constructs a new instance that is a deep copy of the source instance.Level3LineItem(String json)
Constructs a new instance from the given JSON String.Level3LineItem(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCommodityCode()
Clears the 'commodityCode' field, the 'has' method for this field will now return falsevoid
clearDiscountAmount()
Clears the 'discountAmount' field, the 'has' method for this field will now return falsevoid
clearDiscountRate()
Clears the 'discountRate' field, the 'has' method for this field will now return falsevoid
clearItemDescription()
Clears the 'itemDescription' field, the 'has' method for this field will now return falsevoid
clearItemTaxRate1()
Clears the 'itemTaxRate1' field, the 'has' method for this field will now return falsevoid
clearProductCode()
Clears the 'productCode' field, the 'has' method for this field will now return falsevoid
clearQuantity()
Clears the 'quantity' field, the 'has' method for this field will now return falsevoid
clearTaxAmount()
Clears the 'taxAmount' field, the 'has' method for this field will now return falsevoid
clearTaxAmount1()
Clears the 'taxAmount1' field, the 'has' method for this field will now return falsevoid
clearTaxAmount1TaxId()
Clears the 'taxAmount1TaxId' field, the 'has' method for this field will now return falsevoid
clearTaxAmountIndicator()
Clears the 'taxAmountIndicator' field, the 'has' method for this field will now return falsevoid
clearTaxType1()
Clears the 'taxType1' field, the 'has' method for this field will now return falsevoid
clearTaxTypeIdentifier()
Clears the 'taxTypeIdentifier' field, the 'has' method for this field will now return falsevoid
clearUnitCost()
Clears the 'unitCost' field, the 'has' method for this field will now return falsevoid
clearUnitOfMeasure()
Clears the 'unitOfMeasure' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.Level3LineItem
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.String
getCommodityCode()
Line item commodity codeLong
getDiscountAmount()
Item discountLong
getDiscountRate()
Line item discount rateprotected GenericClient
getGenericClient()
String
getItemDescription()
Level3 - Line Item Merchandise Description, upto 26 charactersLong
getItemTaxRate1()
Specific tax rate in relationship to a type of tax collectedJSONObject
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.String
getProductCode()
Item product codeLong
getQuantity()
Line item quantityLong
getTaxAmount()
Item Local Tax AmountLong
getTaxAmount1()
Specific tax amount collected in relationship to a type of tax (MasterCard) OR VAT or other tax amount.(Visa)String
getTaxAmount1TaxId()
Identification number used by the card acceptor with the tax authority in relationship to a specific tax amount (MasterCard)Boolean
getTaxAmountIndicator()
Tax Included in total purchase amount (Y/N)String
getTaxType1()
Indicator used to further define tax categories of other tax amountTaxTypeIdentifier
getTaxTypeIdentifier()
Other Tax Type IdentifierLong
getUnitCost()
Line item priceString
getUnitOfMeasure()
Line item unit of measureboolean
hasCommodityCode()
Checks whether the 'commodityCode' field has been set, however the value could be nullboolean
hasDiscountAmount()
Checks whether the 'discountAmount' field has been set, however the value could be nullboolean
hasDiscountRate()
Checks whether the 'discountRate' field has been set, however the value could be nullboolean
hasItemDescription()
Checks whether the 'itemDescription' field has been set, however the value could be nullboolean
hasItemTaxRate1()
Checks whether the 'itemTaxRate1' field has been set, however the value could be nullboolean
hasProductCode()
Checks whether the 'productCode' field has been set, however the value could be nullboolean
hasQuantity()
Checks whether the 'quantity' field has been set, however the value could be nullboolean
hasTaxAmount()
Checks whether the 'taxAmount' field has been set, however the value could be nullboolean
hasTaxAmount1()
Checks whether the 'taxAmount1' field has been set, however the value could be nullboolean
hasTaxAmount1TaxId()
Checks whether the 'taxAmount1TaxId' field has been set, however the value could be nullboolean
hasTaxAmountIndicator()
Checks whether the 'taxAmountIndicator' field has been set, however the value could be nullboolean
hasTaxType1()
Checks whether the 'taxType1' field has been set, however the value could be nullboolean
hasTaxTypeIdentifier()
Checks whether the 'taxTypeIdentifier' field has been set, however the value could be nullboolean
hasUnitCost()
Checks whether the 'unitCost' field has been set, however the value could be nullboolean
hasUnitOfMeasure()
Checks whether the 'unitOfMeasure' field has been set, however the value could be nullboolean
isNotNullCommodityCode()
Checks whether the 'commodityCode' field is set and is not nullboolean
isNotNullDiscountAmount()
Checks whether the 'discountAmount' field is set and is not nullboolean
isNotNullDiscountRate()
Checks whether the 'discountRate' field is set and is not nullboolean
isNotNullItemDescription()
Checks whether the 'itemDescription' field is set and is not nullboolean
isNotNullItemTaxRate1()
Checks whether the 'itemTaxRate1' field is set and is not nullboolean
isNotNullProductCode()
Checks whether the 'productCode' field is set and is not nullboolean
isNotNullQuantity()
Checks whether the 'quantity' field is set and is not nullboolean
isNotNullTaxAmount()
Checks whether the 'taxAmount' field is set and is not nullboolean
isNotNullTaxAmount1()
Checks whether the 'taxAmount1' field is set and is not nullboolean
isNotNullTaxAmount1TaxId()
Checks whether the 'taxAmount1TaxId' field is set and is not nullboolean
isNotNullTaxAmountIndicator()
Checks whether the 'taxAmountIndicator' field is set and is not nullboolean
isNotNullTaxType1()
Checks whether the 'taxType1' field is set and is not nullboolean
isNotNullTaxTypeIdentifier()
Checks whether the 'taxTypeIdentifier' field is set and is not nullboolean
isNotNullUnitCost()
Checks whether the 'unitCost' field is set and is not nullboolean
isNotNullUnitOfMeasure()
Checks whether the 'unitOfMeasure' field is set and is not nullvoid
mergeChanges(Level3LineItem src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.Level3LineItem
setCommodityCode(String commodityCode)
Sets the field 'commodityCode'.Level3LineItem
setDiscountAmount(Long discountAmount)
Sets the field 'discountAmount'.Level3LineItem
setDiscountRate(Long discountRate)
Sets the field 'discountRate'.Level3LineItem
setItemDescription(String itemDescription)
Sets the field 'itemDescription'.Level3LineItem
setItemTaxRate1(Long itemTaxRate1)
Sets the field 'itemTaxRate1'.Level3LineItem
setProductCode(String productCode)
Sets the field 'productCode'.Level3LineItem
setQuantity(Long quantity)
Sets the field 'quantity'.Level3LineItem
setTaxAmount(Long taxAmount)
Sets the field 'taxAmount'.Level3LineItem
setTaxAmount1(Long taxAmount1)
Sets the field 'taxAmount1'.Level3LineItem
setTaxAmount1TaxId(String taxAmount1TaxId)
Sets the field 'taxAmount1TaxId'.Level3LineItem
setTaxAmountIndicator(Boolean taxAmountIndicator)
Sets the field 'taxAmountIndicator'.Level3LineItem
setTaxType1(String taxType1)
Sets the field 'taxType1'.Level3LineItem
setTaxTypeIdentifier(TaxTypeIdentifier taxTypeIdentifier)
Sets the field 'taxTypeIdentifier'.Level3LineItem
setUnitCost(Long unitCost)
Sets the field 'unitCost'.Level3LineItem
setUnitOfMeasure(String unitOfMeasure)
Sets the field 'unitOfMeasure'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<Level3LineItem> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<Level3LineItem> JSON_CREATOR
-
-
Constructor Detail
-
Level3LineItem
public Level3LineItem()
Constructs a new empty instance.
-
Level3LineItem
protected Level3LineItem(boolean noInit)
Constructs a new empty instance.
-
Level3LineItem
public Level3LineItem(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
Level3LineItem
public Level3LineItem(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Level3LineItem
public Level3LineItem(Level3LineItem src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getItemDescription
public String getItemDescription()
Level3 - Line Item Merchandise Description, upto 26 characters
-
getProductCode
public String getProductCode()
Item product code
-
getUnitCost
public Long getUnitCost()
Line item price
-
getQuantity
public Long getQuantity()
Line item quantity
-
getDiscountAmount
public Long getDiscountAmount()
Item discount
-
getTaxAmount
public Long getTaxAmount()
Item Local Tax Amount
-
getUnitOfMeasure
public String getUnitOfMeasure()
Line item unit of measure
-
getCommodityCode
public String getCommodityCode()
Line item commodity code
-
getDiscountRate
public Long getDiscountRate()
Line item discount rate
-
getTaxAmount1
public Long getTaxAmount1()
Specific tax amount collected in relationship to a type of tax (MasterCard) OR VAT or other tax amount.(Visa)
-
getTaxType1
public String getTaxType1()
Indicator used to further define tax categories of other tax amount
-
getItemTaxRate1
public Long getItemTaxRate1()
Specific tax rate in relationship to a type of tax collected
-
getTaxAmount1TaxId
public String getTaxAmount1TaxId()
Identification number used by the card acceptor with the tax authority in relationship to a specific tax amount (MasterCard)
-
getTaxAmountIndicator
public Boolean getTaxAmountIndicator()
Tax Included in total purchase amount (Y/N)
-
getTaxTypeIdentifier
public TaxTypeIdentifier getTaxTypeIdentifier()
Other Tax Type Identifier
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public JSONObject getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullItemDescription
public boolean isNotNullItemDescription()
Checks whether the 'itemDescription' field is set and is not null
-
isNotNullProductCode
public boolean isNotNullProductCode()
Checks whether the 'productCode' field is set and is not null
-
isNotNullUnitCost
public boolean isNotNullUnitCost()
Checks whether the 'unitCost' field is set and is not null
-
isNotNullQuantity
public boolean isNotNullQuantity()
Checks whether the 'quantity' field is set and is not null
-
isNotNullDiscountAmount
public boolean isNotNullDiscountAmount()
Checks whether the 'discountAmount' field is set and is not null
-
isNotNullTaxAmount
public boolean isNotNullTaxAmount()
Checks whether the 'taxAmount' field is set and is not null
-
isNotNullUnitOfMeasure
public boolean isNotNullUnitOfMeasure()
Checks whether the 'unitOfMeasure' field is set and is not null
-
isNotNullCommodityCode
public boolean isNotNullCommodityCode()
Checks whether the 'commodityCode' field is set and is not null
-
isNotNullDiscountRate
public boolean isNotNullDiscountRate()
Checks whether the 'discountRate' field is set and is not null
-
isNotNullTaxAmount1
public boolean isNotNullTaxAmount1()
Checks whether the 'taxAmount1' field is set and is not null
-
isNotNullTaxType1
public boolean isNotNullTaxType1()
Checks whether the 'taxType1' field is set and is not null
-
isNotNullItemTaxRate1
public boolean isNotNullItemTaxRate1()
Checks whether the 'itemTaxRate1' field is set and is not null
-
isNotNullTaxAmount1TaxId
public boolean isNotNullTaxAmount1TaxId()
Checks whether the 'taxAmount1TaxId' field is set and is not null
-
isNotNullTaxAmountIndicator
public boolean isNotNullTaxAmountIndicator()
Checks whether the 'taxAmountIndicator' field is set and is not null
-
isNotNullTaxTypeIdentifier
public boolean isNotNullTaxTypeIdentifier()
Checks whether the 'taxTypeIdentifier' field is set and is not null
-
hasItemDescription
public boolean hasItemDescription()
Checks whether the 'itemDescription' field has been set, however the value could be null
-
hasProductCode
public boolean hasProductCode()
Checks whether the 'productCode' field has been set, however the value could be null
-
hasUnitCost
public boolean hasUnitCost()
Checks whether the 'unitCost' field has been set, however the value could be null
-
hasQuantity
public boolean hasQuantity()
Checks whether the 'quantity' field has been set, however the value could be null
-
hasDiscountAmount
public boolean hasDiscountAmount()
Checks whether the 'discountAmount' field has been set, however the value could be null
-
hasTaxAmount
public boolean hasTaxAmount()
Checks whether the 'taxAmount' field has been set, however the value could be null
-
hasUnitOfMeasure
public boolean hasUnitOfMeasure()
Checks whether the 'unitOfMeasure' field has been set, however the value could be null
-
hasCommodityCode
public boolean hasCommodityCode()
Checks whether the 'commodityCode' field has been set, however the value could be null
-
hasDiscountRate
public boolean hasDiscountRate()
Checks whether the 'discountRate' field has been set, however the value could be null
-
hasTaxAmount1
public boolean hasTaxAmount1()
Checks whether the 'taxAmount1' field has been set, however the value could be null
-
hasTaxType1
public boolean hasTaxType1()
Checks whether the 'taxType1' field has been set, however the value could be null
-
hasItemTaxRate1
public boolean hasItemTaxRate1()
Checks whether the 'itemTaxRate1' field has been set, however the value could be null
-
hasTaxAmount1TaxId
public boolean hasTaxAmount1TaxId()
Checks whether the 'taxAmount1TaxId' field has been set, however the value could be null
-
hasTaxAmountIndicator
public boolean hasTaxAmountIndicator()
Checks whether the 'taxAmountIndicator' field has been set, however the value could be null
-
hasTaxTypeIdentifier
public boolean hasTaxTypeIdentifier()
Checks whether the 'taxTypeIdentifier' field has been set, however the value could be null
-
setItemDescription
public Level3LineItem setItemDescription(String itemDescription)
Sets the field 'itemDescription'.
-
setProductCode
public Level3LineItem setProductCode(String productCode)
Sets the field 'productCode'.
-
setUnitCost
public Level3LineItem setUnitCost(Long unitCost)
Sets the field 'unitCost'.
-
setQuantity
public Level3LineItem setQuantity(Long quantity)
Sets the field 'quantity'.
-
setDiscountAmount
public Level3LineItem setDiscountAmount(Long discountAmount)
Sets the field 'discountAmount'.
-
setTaxAmount
public Level3LineItem setTaxAmount(Long taxAmount)
Sets the field 'taxAmount'.
-
setUnitOfMeasure
public Level3LineItem setUnitOfMeasure(String unitOfMeasure)
Sets the field 'unitOfMeasure'.
-
setCommodityCode
public Level3LineItem setCommodityCode(String commodityCode)
Sets the field 'commodityCode'.
-
setDiscountRate
public Level3LineItem setDiscountRate(Long discountRate)
Sets the field 'discountRate'.
-
setTaxAmount1
public Level3LineItem setTaxAmount1(Long taxAmount1)
Sets the field 'taxAmount1'.
-
setTaxType1
public Level3LineItem setTaxType1(String taxType1)
Sets the field 'taxType1'.
-
setItemTaxRate1
public Level3LineItem setItemTaxRate1(Long itemTaxRate1)
Sets the field 'itemTaxRate1'.
-
setTaxAmount1TaxId
public Level3LineItem setTaxAmount1TaxId(String taxAmount1TaxId)
Sets the field 'taxAmount1TaxId'.
-
setTaxAmountIndicator
public Level3LineItem setTaxAmountIndicator(Boolean taxAmountIndicator)
Sets the field 'taxAmountIndicator'.
-
setTaxTypeIdentifier
public Level3LineItem setTaxTypeIdentifier(TaxTypeIdentifier taxTypeIdentifier)
Sets the field 'taxTypeIdentifier'.
-
clearItemDescription
public void clearItemDescription()
Clears the 'itemDescription' field, the 'has' method for this field will now return false
-
clearProductCode
public void clearProductCode()
Clears the 'productCode' field, the 'has' method for this field will now return false
-
clearUnitCost
public void clearUnitCost()
Clears the 'unitCost' field, the 'has' method for this field will now return false
-
clearQuantity
public void clearQuantity()
Clears the 'quantity' field, the 'has' method for this field will now return false
-
clearDiscountAmount
public void clearDiscountAmount()
Clears the 'discountAmount' field, the 'has' method for this field will now return false
-
clearTaxAmount
public void clearTaxAmount()
Clears the 'taxAmount' field, the 'has' method for this field will now return false
-
clearUnitOfMeasure
public void clearUnitOfMeasure()
Clears the 'unitOfMeasure' field, the 'has' method for this field will now return false
-
clearCommodityCode
public void clearCommodityCode()
Clears the 'commodityCode' field, the 'has' method for this field will now return false
-
clearDiscountRate
public void clearDiscountRate()
Clears the 'discountRate' field, the 'has' method for this field will now return false
-
clearTaxAmount1
public void clearTaxAmount1()
Clears the 'taxAmount1' field, the 'has' method for this field will now return false
-
clearTaxType1
public void clearTaxType1()
Clears the 'taxType1' field, the 'has' method for this field will now return false
-
clearItemTaxRate1
public void clearItemTaxRate1()
Clears the 'itemTaxRate1' field, the 'has' method for this field will now return false
-
clearTaxAmount1TaxId
public void clearTaxAmount1TaxId()
Clears the 'taxAmount1TaxId' field, the 'has' method for this field will now return false
-
clearTaxAmountIndicator
public void clearTaxAmountIndicator()
Clears the 'taxAmountIndicator' field, the 'has' method for this field will now return false
-
clearTaxTypeIdentifier
public void clearTaxTypeIdentifier()
Clears the 'taxTypeIdentifier' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public Level3LineItem copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(Level3LineItem src)
Copy all the changed fields from the given source to this instance.
-
-