public class Level3LineItem extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
Level3LineItem.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Level3LineItem> |
CREATOR |
static JSONifiable.Creator<Level3LineItem> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
Level3LineItem()
Constructs a new empty instance.
|
protected |
Level3LineItem(boolean noInit)
Constructs a new empty instance.
|
|
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(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.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCommodityCode()
Clears the 'commodityCode' field, the 'has' method for this field will now return false
|
void |
clearDiscountAmount()
Clears the 'discountAmount' field, the 'has' method for this field will now return false
|
void |
clearDiscountRate()
Clears the 'discountRate' field, the 'has' method for this field will now return false
|
void |
clearItemDescription()
Clears the 'itemDescription' field, the 'has' method for this field will now return false
|
void |
clearItemTaxRate1()
Clears the 'itemTaxRate1' field, the 'has' method for this field will now return false
|
void |
clearProductCode()
Clears the 'productCode' field, the 'has' method for this field will now return false
|
void |
clearQuantity()
Clears the 'quantity' field, the 'has' method for this field will now return false
|
void |
clearTaxAmount()
Clears the 'taxAmount' field, the 'has' method for this field will now return false
|
void |
clearTaxAmount1()
Clears the 'taxAmount1' field, the 'has' method for this field will now return false
|
void |
clearTaxAmount1TaxId()
Clears the 'taxAmount1TaxId' field, the 'has' method for this field will now return false
|
void |
clearTaxAmountIndicator()
Clears the 'taxAmountIndicator' field, the 'has' method for this field will now return false
|
void |
clearTaxType1()
Clears the 'taxType1' field, the 'has' method for this field will now return false
|
void |
clearTaxTypeIdentifier()
Clears the 'taxTypeIdentifier' field, the 'has' method for this field will now return false
|
void |
clearUnitCost()
Clears the 'unitCost' field, the 'has' method for this field will now return false
|
void |
clearUnitOfMeasure()
Clears the 'unitOfMeasure' field, the 'has' method for this field will now return false
|
boolean |
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 code
|
Long |
getDiscountAmount()
Item discount
|
Long |
getDiscountRate()
Line item discount rate
|
protected GenericClient |
getGenericClient() |
String |
getItemDescription()
Level3 - Line Item Merchandise Description, upto 26 characters
|
Long |
getItemTaxRate1()
Specific tax rate in relationship to a type of tax collected
|
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.
|
String |
getProductCode()
Item product code
|
Long |
getQuantity()
Line item quantity
|
Long |
getTaxAmount()
Item Local Tax Amount
|
Long |
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 amount
|
TaxTypeIdentifier |
getTaxTypeIdentifier()
Other Tax Type Identifier
|
Long |
getUnitCost()
Line item price
|
String |
getUnitOfMeasure()
Line item unit of measure
|
boolean |
hasCommodityCode()
Checks whether the 'commodityCode' field has been set, however the value could be null
|
boolean |
hasDiscountAmount()
Checks whether the 'discountAmount' field has been set, however the value could be null
|
boolean |
hasDiscountRate()
Checks whether the 'discountRate' field has been set, however the value could be null
|
boolean |
hasItemDescription()
Checks whether the 'itemDescription' field has been set, however the value could be null
|
boolean |
hasItemTaxRate1()
Checks whether the 'itemTaxRate1' field has been set, however the value could be null
|
boolean |
hasProductCode()
Checks whether the 'productCode' field has been set, however the value could be null
|
boolean |
hasQuantity()
Checks whether the 'quantity' field has been set, however the value could be null
|
boolean |
hasTaxAmount()
Checks whether the 'taxAmount' field has been set, however the value could be null
|
boolean |
hasTaxAmount1()
Checks whether the 'taxAmount1' field has been set, however the value could be null
|
boolean |
hasTaxAmount1TaxId()
Checks whether the 'taxAmount1TaxId' field has been set, however the value could be null
|
boolean |
hasTaxAmountIndicator()
Checks whether the 'taxAmountIndicator' field has been set, however the value could be null
|
boolean |
hasTaxType1()
Checks whether the 'taxType1' field has been set, however the value could be null
|
boolean |
hasTaxTypeIdentifier()
Checks whether the 'taxTypeIdentifier' field has been set, however the value could be null
|
boolean |
hasUnitCost()
Checks whether the 'unitCost' field has been set, however the value could be null
|
boolean |
hasUnitOfMeasure()
Checks whether the 'unitOfMeasure' field has been set, however the value could be null
|
boolean |
isNotNullCommodityCode()
Checks whether the 'commodityCode' field is set and is not null
|
boolean |
isNotNullDiscountAmount()
Checks whether the 'discountAmount' field is set and is not null
|
boolean |
isNotNullDiscountRate()
Checks whether the 'discountRate' field is set and is not null
|
boolean |
isNotNullItemDescription()
Checks whether the 'itemDescription' field is set and is not null
|
boolean |
isNotNullItemTaxRate1()
Checks whether the 'itemTaxRate1' field is set and is not null
|
boolean |
isNotNullProductCode()
Checks whether the 'productCode' field is set and is not null
|
boolean |
isNotNullQuantity()
Checks whether the 'quantity' field is set and is not null
|
boolean |
isNotNullTaxAmount()
Checks whether the 'taxAmount' field is set and is not null
|
boolean |
isNotNullTaxAmount1()
Checks whether the 'taxAmount1' field is set and is not null
|
boolean |
isNotNullTaxAmount1TaxId()
Checks whether the 'taxAmount1TaxId' field is set and is not null
|
boolean |
isNotNullTaxAmountIndicator()
Checks whether the 'taxAmountIndicator' field is set and is not null
|
boolean |
isNotNullTaxType1()
Checks whether the 'taxType1' field is set and is not null
|
boolean |
isNotNullTaxTypeIdentifier()
Checks whether the 'taxTypeIdentifier' field is set and is not null
|
boolean |
isNotNullUnitCost()
Checks whether the 'unitCost' field is set and is not null
|
boolean |
isNotNullUnitOfMeasure()
Checks whether the 'unitOfMeasure' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<Level3LineItem> CREATOR
public static final JSONifiable.Creator<Level3LineItem> JSON_CREATOR
public Level3LineItem()
protected Level3LineItem(boolean noInit)
public Level3LineItem(String json) throws IllegalArgumentException
IllegalArgumentException
public Level3LineItem(JSONObject jsonObject)
public Level3LineItem(Level3LineItem src)
public String getItemDescription()
public String getProductCode()
public Long getUnitCost()
public Long getQuantity()
public Long getDiscountAmount()
public Long getTaxAmount()
public String getUnitOfMeasure()
public String getCommodityCode()
public Long getDiscountRate()
public Long getTaxAmount1()
public String getTaxType1()
public Long getItemTaxRate1()
public String getTaxAmount1TaxId()
public Boolean getTaxAmountIndicator()
public TaxTypeIdentifier getTaxTypeIdentifier()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullItemDescription()
public boolean isNotNullProductCode()
public boolean isNotNullUnitCost()
public boolean isNotNullQuantity()
public boolean isNotNullDiscountAmount()
public boolean isNotNullTaxAmount()
public boolean isNotNullUnitOfMeasure()
public boolean isNotNullCommodityCode()
public boolean isNotNullDiscountRate()
public boolean isNotNullTaxAmount1()
public boolean isNotNullTaxType1()
public boolean isNotNullItemTaxRate1()
public boolean isNotNullTaxAmount1TaxId()
public boolean isNotNullTaxAmountIndicator()
public boolean isNotNullTaxTypeIdentifier()
public boolean hasItemDescription()
public boolean hasProductCode()
public boolean hasUnitCost()
public boolean hasQuantity()
public boolean hasDiscountAmount()
public boolean hasTaxAmount()
public boolean hasUnitOfMeasure()
public boolean hasCommodityCode()
public boolean hasDiscountRate()
public boolean hasTaxAmount1()
public boolean hasTaxType1()
public boolean hasItemTaxRate1()
public boolean hasTaxAmount1TaxId()
public boolean hasTaxAmountIndicator()
public boolean hasTaxTypeIdentifier()
public Level3LineItem setItemDescription(String itemDescription)
public Level3LineItem setProductCode(String productCode)
public Level3LineItem setUnitCost(Long unitCost)
public Level3LineItem setQuantity(Long quantity)
public Level3LineItem setDiscountAmount(Long discountAmount)
public Level3LineItem setTaxAmount(Long taxAmount)
public Level3LineItem setUnitOfMeasure(String unitOfMeasure)
public Level3LineItem setCommodityCode(String commodityCode)
public Level3LineItem setDiscountRate(Long discountRate)
public Level3LineItem setTaxAmount1(Long taxAmount1)
public Level3LineItem setTaxType1(String taxType1)
public Level3LineItem setItemTaxRate1(Long itemTaxRate1)
public Level3LineItem setTaxAmount1TaxId(String taxAmount1TaxId)
public Level3LineItem setTaxAmountIndicator(Boolean taxAmountIndicator)
public Level3LineItem setTaxTypeIdentifier(TaxTypeIdentifier taxTypeIdentifier)
public void clearItemDescription()
public void clearProductCode()
public void clearUnitCost()
public void clearQuantity()
public void clearDiscountAmount()
public void clearTaxAmount()
public void clearUnitOfMeasure()
public void clearCommodityCode()
public void clearDiscountRate()
public void clearTaxAmount1()
public void clearTaxType1()
public void clearItemTaxRate1()
public void clearTaxAmount1TaxId()
public void clearTaxAmountIndicator()
public void clearTaxTypeIdentifier()
public boolean containsChanges()
public void resetChangeLog()
public Level3LineItem copyChanges()
public void mergeChanges(Level3LineItem src)