public class PurchaseCardL2 extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
PurchaseCardL2.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<PurchaseCardL2> |
CREATOR |
static JSONifiable.Creator<PurchaseCardL2> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
PurchaseCardL2()
Constructs a new empty instance.
|
protected |
PurchaseCardL2(boolean noInit)
Constructs a new empty instance.
|
|
PurchaseCardL2(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.
|
|
PurchaseCardL2(PurchaseCardL2 src)
Constructs a new instance that is a deep copy of the source instance.
|
|
PurchaseCardL2(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearDestinationCountryCode()
Clears the 'destinationCountryCode' field, the 'has' method for this field will now return false
|
void |
clearDestinationPostalCode()
Clears the 'destinationPostalCode' 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 |
clearDutyAmount()
Clears the 'dutyAmount' field, the 'has' method for this field will now return false
|
void |
clearFreightAmount()
Clears the 'freightAmount' field, the 'has' method for this field will now return false
|
void |
clearMerchantTaxId()
Clears the 'merchantTaxId' field, the 'has' method for this field will now return false
|
void |
clearPcOrderNumber()
Clears the 'pcOrderNumber' field, the 'has' method for this field will now return false
|
void |
clearProductDescription()
Clears the 'productDescription' field, the 'has' method for this field will now return false
|
void |
clearPurchaseIdentifier()
Clears the 'purchaseIdentifier' field, the 'has' method for this field will now return false
|
void |
clearShipFromPostalCode()
Clears the 'shipFromPostalCode' 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 |
clearTaxIndicator()
Clears the 'taxIndicator' field, the 'has' method for this field will now return false
|
void |
clearVatTaxAmount()
Clears the 'vatTaxAmount' field, the 'has' method for this field will now return false
|
void |
clearVatTaxRate()
Clears the 'vatTaxRate' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
PurchaseCardL2 |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
String |
getDestinationCountryCode()
Destination country code.
|
String |
getDestinationPostalCode()
Destination postal code.
|
Long |
getDiscountAmount()
Applied discount amount.
|
Long |
getDutyAmount()
Duty amount.
|
Long |
getFreightAmount()
Freight amount.
|
protected GenericClient |
getGenericClient() |
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 |
getMerchantTaxId()
Merchant tax id.
|
String |
getPcOrderNumber()
Purchase card customer code.
|
String |
getProductDescription()
Description of the product.
|
String |
getPurchaseIdentifier()
Purchase identifier for customer/merchant.
|
String |
getShipFromPostalCode()
Ship from postal code.
|
Long |
getTaxAmount()
Sales tax amount.
|
PcTaxIndicator |
getTaxIndicator()
Taxable status
|
Long |
getVatTaxAmount()
Tax amount for freight/shipping.
|
Integer |
getVatTaxRate()
Tax rate on freight/shipping amount.
|
boolean |
hasDestinationCountryCode()
Checks whether the 'destinationCountryCode' field has been set, however the value could be null
|
boolean |
hasDestinationPostalCode()
Checks whether the 'destinationPostalCode' 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 |
hasDutyAmount()
Checks whether the 'dutyAmount' field has been set, however the value could be null
|
boolean |
hasFreightAmount()
Checks whether the 'freightAmount' field has been set, however the value could be null
|
boolean |
hasMerchantTaxId()
Checks whether the 'merchantTaxId' field has been set, however the value could be null
|
boolean |
hasPcOrderNumber()
Checks whether the 'pcOrderNumber' field has been set, however the value could be null
|
boolean |
hasProductDescription()
Checks whether the 'productDescription' field has been set, however the value could be null
|
boolean |
hasPurchaseIdentifier()
Checks whether the 'purchaseIdentifier' field has been set, however the value could be null
|
boolean |
hasShipFromPostalCode()
Checks whether the 'shipFromPostalCode' 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 |
hasTaxIndicator()
Checks whether the 'taxIndicator' field has been set, however the value could be null
|
boolean |
hasVatTaxAmount()
Checks whether the 'vatTaxAmount' field has been set, however the value could be null
|
boolean |
hasVatTaxRate()
Checks whether the 'vatTaxRate' field has been set, however the value could be null
|
boolean |
isNotNullDestinationCountryCode()
Checks whether the 'destinationCountryCode' field is set and is not null
|
boolean |
isNotNullDestinationPostalCode()
Checks whether the 'destinationPostalCode' field is set and is not null
|
boolean |
isNotNullDiscountAmount()
Checks whether the 'discountAmount' field is set and is not null
|
boolean |
isNotNullDutyAmount()
Checks whether the 'dutyAmount' field is set and is not null
|
boolean |
isNotNullFreightAmount()
Checks whether the 'freightAmount' field is set and is not null
|
boolean |
isNotNullMerchantTaxId()
Checks whether the 'merchantTaxId' field is set and is not null
|
boolean |
isNotNullPcOrderNumber()
Checks whether the 'pcOrderNumber' field is set and is not null
|
boolean |
isNotNullProductDescription()
Checks whether the 'productDescription' field is set and is not null
|
boolean |
isNotNullPurchaseIdentifier()
Checks whether the 'purchaseIdentifier' field is set and is not null
|
boolean |
isNotNullShipFromPostalCode()
Checks whether the 'shipFromPostalCode' field is set and is not null
|
boolean |
isNotNullTaxAmount()
Checks whether the 'taxAmount' field is set and is not null
|
boolean |
isNotNullTaxIndicator()
Checks whether the 'taxIndicator' field is set and is not null
|
boolean |
isNotNullVatTaxAmount()
Checks whether the 'vatTaxAmount' field is set and is not null
|
boolean |
isNotNullVatTaxRate()
Checks whether the 'vatTaxRate' field is set and is not null
|
void |
mergeChanges(PurchaseCardL2 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.
|
PurchaseCardL2 |
setDestinationCountryCode(String destinationCountryCode)
Sets the field 'destinationCountryCode'.
|
PurchaseCardL2 |
setDestinationPostalCode(String destinationPostalCode)
Sets the field 'destinationPostalCode'.
|
PurchaseCardL2 |
setDiscountAmount(Long discountAmount)
Sets the field 'discountAmount'.
|
PurchaseCardL2 |
setDutyAmount(Long dutyAmount)
Sets the field 'dutyAmount'.
|
PurchaseCardL2 |
setFreightAmount(Long freightAmount)
Sets the field 'freightAmount'.
|
PurchaseCardL2 |
setMerchantTaxId(String merchantTaxId)
Sets the field 'merchantTaxId'.
|
PurchaseCardL2 |
setPcOrderNumber(String pcOrderNumber)
Sets the field 'pcOrderNumber'.
|
PurchaseCardL2 |
setProductDescription(String productDescription)
Sets the field 'productDescription'.
|
PurchaseCardL2 |
setPurchaseIdentifier(String purchaseIdentifier)
Sets the field 'purchaseIdentifier'.
|
PurchaseCardL2 |
setShipFromPostalCode(String shipFromPostalCode)
Sets the field 'shipFromPostalCode'.
|
PurchaseCardL2 |
setTaxAmount(Long taxAmount)
Sets the field 'taxAmount'.
|
PurchaseCardL2 |
setTaxIndicator(PcTaxIndicator taxIndicator)
Sets the field 'taxIndicator'.
|
PurchaseCardL2 |
setVatTaxAmount(Long vatTaxAmount)
Sets the field 'vatTaxAmount'.
|
PurchaseCardL2 |
setVatTaxRate(Integer vatTaxRate)
Sets the field 'vatTaxRate'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<PurchaseCardL2> CREATOR
public static final JSONifiable.Creator<PurchaseCardL2> JSON_CREATOR
public PurchaseCardL2()
protected PurchaseCardL2(boolean noInit)
public PurchaseCardL2(String json) throws IllegalArgumentException
IllegalArgumentException
public PurchaseCardL2(JSONObject jsonObject)
public PurchaseCardL2(PurchaseCardL2 src)
public Long getTaxAmount()
public PcTaxIndicator getTaxIndicator()
public Long getVatTaxAmount()
public Integer getVatTaxRate()
public String getPurchaseIdentifier()
public String getPcOrderNumber()
public Long getDiscountAmount()
public Long getFreightAmount()
public Long getDutyAmount()
public String getDestinationPostalCode()
public String getShipFromPostalCode()
public String getDestinationCountryCode()
public String getMerchantTaxId()
public String getProductDescription()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullTaxAmount()
public boolean isNotNullTaxIndicator()
public boolean isNotNullVatTaxAmount()
public boolean isNotNullVatTaxRate()
public boolean isNotNullPurchaseIdentifier()
public boolean isNotNullPcOrderNumber()
public boolean isNotNullDiscountAmount()
public boolean isNotNullFreightAmount()
public boolean isNotNullDutyAmount()
public boolean isNotNullDestinationPostalCode()
public boolean isNotNullShipFromPostalCode()
public boolean isNotNullDestinationCountryCode()
public boolean isNotNullMerchantTaxId()
public boolean isNotNullProductDescription()
public boolean hasTaxAmount()
public boolean hasTaxIndicator()
public boolean hasVatTaxAmount()
public boolean hasVatTaxRate()
public boolean hasPurchaseIdentifier()
public boolean hasPcOrderNumber()
public boolean hasDiscountAmount()
public boolean hasFreightAmount()
public boolean hasDutyAmount()
public boolean hasDestinationPostalCode()
public boolean hasShipFromPostalCode()
public boolean hasDestinationCountryCode()
public boolean hasMerchantTaxId()
public boolean hasProductDescription()
public PurchaseCardL2 setTaxAmount(Long taxAmount)
public PurchaseCardL2 setTaxIndicator(PcTaxIndicator taxIndicator)
public PurchaseCardL2 setVatTaxAmount(Long vatTaxAmount)
public PurchaseCardL2 setVatTaxRate(Integer vatTaxRate)
public PurchaseCardL2 setPurchaseIdentifier(String purchaseIdentifier)
public PurchaseCardL2 setPcOrderNumber(String pcOrderNumber)
public PurchaseCardL2 setDiscountAmount(Long discountAmount)
public PurchaseCardL2 setFreightAmount(Long freightAmount)
public PurchaseCardL2 setDutyAmount(Long dutyAmount)
public PurchaseCardL2 setDestinationPostalCode(String destinationPostalCode)
public PurchaseCardL2 setShipFromPostalCode(String shipFromPostalCode)
public PurchaseCardL2 setDestinationCountryCode(String destinationCountryCode)
public PurchaseCardL2 setMerchantTaxId(String merchantTaxId)
public PurchaseCardL2 setProductDescription(String productDescription)
public void clearTaxAmount()
public void clearTaxIndicator()
public void clearVatTaxAmount()
public void clearVatTaxRate()
public void clearPurchaseIdentifier()
public void clearPcOrderNumber()
public void clearDiscountAmount()
public void clearFreightAmount()
public void clearDutyAmount()
public void clearDestinationPostalCode()
public void clearShipFromPostalCode()
public void clearDestinationCountryCode()
public void clearMerchantTaxId()
public void clearProductDescription()
public boolean containsChanges()
public void resetChangeLog()
public PurchaseCardL2 copyChanges()
public void mergeChanges(PurchaseCardL2 src)