Package com.clover.sdk.v3.payments
Class PurchaseCardL2
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.PurchaseCardL2
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class PurchaseCardL2 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
PurchaseCardL2.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<PurchaseCardL2>
CREATOR
static JSONifiable.Creator<PurchaseCardL2>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description PurchaseCardL2()
Constructs a new empty instance.protected
PurchaseCardL2(boolean noInit)
Constructs a new empty instance.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.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearDestinationCountryCode()
Clears the 'destinationCountryCode' field, the 'has' method for this field will now return falsevoid
clearDestinationPostalCode()
Clears the 'destinationPostalCode' 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
clearDutyAmount()
Clears the 'dutyAmount' field, the 'has' method for this field will now return falsevoid
clearFreightAmount()
Clears the 'freightAmount' field, the 'has' method for this field will now return falsevoid
clearMerchantTaxId()
Clears the 'merchantTaxId' field, the 'has' method for this field will now return falsevoid
clearPcOrderNumber()
Clears the 'pcOrderNumber' field, the 'has' method for this field will now return falsevoid
clearProductDescription()
Clears the 'productDescription' field, the 'has' method for this field will now return falsevoid
clearPurchaseIdentifier()
Clears the 'purchaseIdentifier' field, the 'has' method for this field will now return falsevoid
clearShipFromPostalCode()
Clears the 'shipFromPostalCode' 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
clearTaxIndicator()
Clears the 'taxIndicator' field, the 'has' method for this field will now return falsevoid
clearVatTaxAmount()
Clears the 'vatTaxAmount' field, the 'has' method for this field will now return falsevoid
clearVatTaxRate()
Clears the 'vatTaxRate' field, the 'has' method for this field will now return falseboolean
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 statusLong
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 nullboolean
hasDestinationPostalCode()
Checks whether the 'destinationPostalCode' 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
hasDutyAmount()
Checks whether the 'dutyAmount' field has been set, however the value could be nullboolean
hasFreightAmount()
Checks whether the 'freightAmount' field has been set, however the value could be nullboolean
hasMerchantTaxId()
Checks whether the 'merchantTaxId' field has been set, however the value could be nullboolean
hasPcOrderNumber()
Checks whether the 'pcOrderNumber' field has been set, however the value could be nullboolean
hasProductDescription()
Checks whether the 'productDescription' field has been set, however the value could be nullboolean
hasPurchaseIdentifier()
Checks whether the 'purchaseIdentifier' field has been set, however the value could be nullboolean
hasShipFromPostalCode()
Checks whether the 'shipFromPostalCode' 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
hasTaxIndicator()
Checks whether the 'taxIndicator' field has been set, however the value could be nullboolean
hasVatTaxAmount()
Checks whether the 'vatTaxAmount' field has been set, however the value could be nullboolean
hasVatTaxRate()
Checks whether the 'vatTaxRate' field has been set, however the value could be nullboolean
isNotNullDestinationCountryCode()
Checks whether the 'destinationCountryCode' field is set and is not nullboolean
isNotNullDestinationPostalCode()
Checks whether the 'destinationPostalCode' field is set and is not nullboolean
isNotNullDiscountAmount()
Checks whether the 'discountAmount' field is set and is not nullboolean
isNotNullDutyAmount()
Checks whether the 'dutyAmount' field is set and is not nullboolean
isNotNullFreightAmount()
Checks whether the 'freightAmount' field is set and is not nullboolean
isNotNullMerchantTaxId()
Checks whether the 'merchantTaxId' field is set and is not nullboolean
isNotNullPcOrderNumber()
Checks whether the 'pcOrderNumber' field is set and is not nullboolean
isNotNullProductDescription()
Checks whether the 'productDescription' field is set and is not nullboolean
isNotNullPurchaseIdentifier()
Checks whether the 'purchaseIdentifier' field is set and is not nullboolean
isNotNullShipFromPostalCode()
Checks whether the 'shipFromPostalCode' field is set and is not nullboolean
isNotNullTaxAmount()
Checks whether the 'taxAmount' field is set and is not nullboolean
isNotNullTaxIndicator()
Checks whether the 'taxIndicator' field is set and is not nullboolean
isNotNullVatTaxAmount()
Checks whether the 'vatTaxAmount' field is set and is not nullboolean
isNotNullVatTaxRate()
Checks whether the 'vatTaxRate' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<PurchaseCardL2> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<PurchaseCardL2> JSON_CREATOR
-
-
Constructor Detail
-
PurchaseCardL2
public PurchaseCardL2()
Constructs a new empty instance.
-
PurchaseCardL2
protected PurchaseCardL2(boolean noInit)
Constructs a new empty instance.
-
PurchaseCardL2
public PurchaseCardL2(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
PurchaseCardL2
public 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
public PurchaseCardL2(PurchaseCardL2 src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getTaxAmount
public Long getTaxAmount()
Sales tax amount.
-
getTaxIndicator
public PcTaxIndicator getTaxIndicator()
Taxable status
-
getVatTaxAmount
public Long getVatTaxAmount()
Tax amount for freight/shipping.
-
getVatTaxRate
public Integer getVatTaxRate()
Tax rate on freight/shipping amount.
-
getPurchaseIdentifier
public String getPurchaseIdentifier()
Purchase identifier for customer/merchant.
-
getPcOrderNumber
public String getPcOrderNumber()
Purchase card customer code.
-
getDiscountAmount
public Long getDiscountAmount()
Applied discount amount.
-
getFreightAmount
public Long getFreightAmount()
Freight amount.
-
getDutyAmount
public Long getDutyAmount()
Duty amount.
-
getDestinationPostalCode
public String getDestinationPostalCode()
Destination postal code.
-
getShipFromPostalCode
public String getShipFromPostalCode()
Ship from postal code.
-
getDestinationCountryCode
public String getDestinationCountryCode()
Destination country code.
-
getMerchantTaxId
public String getMerchantTaxId()
Merchant tax id.
-
getProductDescription
public String getProductDescription()
Description of the product.
-
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
-
isNotNullTaxAmount
public boolean isNotNullTaxAmount()
Checks whether the 'taxAmount' field is set and is not null
-
isNotNullTaxIndicator
public boolean isNotNullTaxIndicator()
Checks whether the 'taxIndicator' field is set and is not null
-
isNotNullVatTaxAmount
public boolean isNotNullVatTaxAmount()
Checks whether the 'vatTaxAmount' field is set and is not null
-
isNotNullVatTaxRate
public boolean isNotNullVatTaxRate()
Checks whether the 'vatTaxRate' field is set and is not null
-
isNotNullPurchaseIdentifier
public boolean isNotNullPurchaseIdentifier()
Checks whether the 'purchaseIdentifier' field is set and is not null
-
isNotNullPcOrderNumber
public boolean isNotNullPcOrderNumber()
Checks whether the 'pcOrderNumber' field is set and is not null
-
isNotNullDiscountAmount
public boolean isNotNullDiscountAmount()
Checks whether the 'discountAmount' field is set and is not null
-
isNotNullFreightAmount
public boolean isNotNullFreightAmount()
Checks whether the 'freightAmount' field is set and is not null
-
isNotNullDutyAmount
public boolean isNotNullDutyAmount()
Checks whether the 'dutyAmount' field is set and is not null
-
isNotNullDestinationPostalCode
public boolean isNotNullDestinationPostalCode()
Checks whether the 'destinationPostalCode' field is set and is not null
-
isNotNullShipFromPostalCode
public boolean isNotNullShipFromPostalCode()
Checks whether the 'shipFromPostalCode' field is set and is not null
-
isNotNullDestinationCountryCode
public boolean isNotNullDestinationCountryCode()
Checks whether the 'destinationCountryCode' field is set and is not null
-
isNotNullMerchantTaxId
public boolean isNotNullMerchantTaxId()
Checks whether the 'merchantTaxId' field is set and is not null
-
isNotNullProductDescription
public boolean isNotNullProductDescription()
Checks whether the 'productDescription' field is set and is not null
-
hasTaxAmount
public boolean hasTaxAmount()
Checks whether the 'taxAmount' field has been set, however the value could be null
-
hasTaxIndicator
public boolean hasTaxIndicator()
Checks whether the 'taxIndicator' field has been set, however the value could be null
-
hasVatTaxAmount
public boolean hasVatTaxAmount()
Checks whether the 'vatTaxAmount' field has been set, however the value could be null
-
hasVatTaxRate
public boolean hasVatTaxRate()
Checks whether the 'vatTaxRate' field has been set, however the value could be null
-
hasPurchaseIdentifier
public boolean hasPurchaseIdentifier()
Checks whether the 'purchaseIdentifier' field has been set, however the value could be null
-
hasPcOrderNumber
public boolean hasPcOrderNumber()
Checks whether the 'pcOrderNumber' 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
-
hasFreightAmount
public boolean hasFreightAmount()
Checks whether the 'freightAmount' field has been set, however the value could be null
-
hasDutyAmount
public boolean hasDutyAmount()
Checks whether the 'dutyAmount' field has been set, however the value could be null
-
hasDestinationPostalCode
public boolean hasDestinationPostalCode()
Checks whether the 'destinationPostalCode' field has been set, however the value could be null
-
hasShipFromPostalCode
public boolean hasShipFromPostalCode()
Checks whether the 'shipFromPostalCode' field has been set, however the value could be null
-
hasDestinationCountryCode
public boolean hasDestinationCountryCode()
Checks whether the 'destinationCountryCode' field has been set, however the value could be null
-
hasMerchantTaxId
public boolean hasMerchantTaxId()
Checks whether the 'merchantTaxId' field has been set, however the value could be null
-
hasProductDescription
public boolean hasProductDescription()
Checks whether the 'productDescription' field has been set, however the value could be null
-
setTaxAmount
public PurchaseCardL2 setTaxAmount(Long taxAmount)
Sets the field 'taxAmount'.
-
setTaxIndicator
public PurchaseCardL2 setTaxIndicator(PcTaxIndicator taxIndicator)
Sets the field 'taxIndicator'.
-
setVatTaxAmount
public PurchaseCardL2 setVatTaxAmount(Long vatTaxAmount)
Sets the field 'vatTaxAmount'.
-
setVatTaxRate
public PurchaseCardL2 setVatTaxRate(Integer vatTaxRate)
Sets the field 'vatTaxRate'.
-
setPurchaseIdentifier
public PurchaseCardL2 setPurchaseIdentifier(String purchaseIdentifier)
Sets the field 'purchaseIdentifier'.
-
setPcOrderNumber
public PurchaseCardL2 setPcOrderNumber(String pcOrderNumber)
Sets the field 'pcOrderNumber'.
-
setDiscountAmount
public PurchaseCardL2 setDiscountAmount(Long discountAmount)
Sets the field 'discountAmount'.
-
setFreightAmount
public PurchaseCardL2 setFreightAmount(Long freightAmount)
Sets the field 'freightAmount'.
-
setDutyAmount
public PurchaseCardL2 setDutyAmount(Long dutyAmount)
Sets the field 'dutyAmount'.
-
setDestinationPostalCode
public PurchaseCardL2 setDestinationPostalCode(String destinationPostalCode)
Sets the field 'destinationPostalCode'.
-
setShipFromPostalCode
public PurchaseCardL2 setShipFromPostalCode(String shipFromPostalCode)
Sets the field 'shipFromPostalCode'.
-
setDestinationCountryCode
public PurchaseCardL2 setDestinationCountryCode(String destinationCountryCode)
Sets the field 'destinationCountryCode'.
-
setMerchantTaxId
public PurchaseCardL2 setMerchantTaxId(String merchantTaxId)
Sets the field 'merchantTaxId'.
-
setProductDescription
public PurchaseCardL2 setProductDescription(String productDescription)
Sets the field 'productDescription'.
-
clearTaxAmount
public void clearTaxAmount()
Clears the 'taxAmount' field, the 'has' method for this field will now return false
-
clearTaxIndicator
public void clearTaxIndicator()
Clears the 'taxIndicator' field, the 'has' method for this field will now return false
-
clearVatTaxAmount
public void clearVatTaxAmount()
Clears the 'vatTaxAmount' field, the 'has' method for this field will now return false
-
clearVatTaxRate
public void clearVatTaxRate()
Clears the 'vatTaxRate' field, the 'has' method for this field will now return false
-
clearPurchaseIdentifier
public void clearPurchaseIdentifier()
Clears the 'purchaseIdentifier' field, the 'has' method for this field will now return false
-
clearPcOrderNumber
public void clearPcOrderNumber()
Clears the 'pcOrderNumber' 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
-
clearFreightAmount
public void clearFreightAmount()
Clears the 'freightAmount' field, the 'has' method for this field will now return false
-
clearDutyAmount
public void clearDutyAmount()
Clears the 'dutyAmount' field, the 'has' method for this field will now return false
-
clearDestinationPostalCode
public void clearDestinationPostalCode()
Clears the 'destinationPostalCode' field, the 'has' method for this field will now return false
-
clearShipFromPostalCode
public void clearShipFromPostalCode()
Clears the 'shipFromPostalCode' field, the 'has' method for this field will now return false
-
clearDestinationCountryCode
public void clearDestinationCountryCode()
Clears the 'destinationCountryCode' field, the 'has' method for this field will now return false
-
clearMerchantTaxId
public void clearMerchantTaxId()
Clears the 'merchantTaxId' field, the 'has' method for this field will now return false
-
clearProductDescription
public void clearProductDescription()
Clears the 'productDescription' 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 PurchaseCardL2 copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(PurchaseCardL2 src)
Copy all the changed fields from the given source to this instance.
-
-