public class GiftCardTransaction extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
GiftCardTransaction.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<GiftCardTransaction> |
CREATOR |
static JSONifiable.Creator<GiftCardTransaction> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
GiftCardTransaction()
Constructs a new empty instance.
|
protected |
GiftCardTransaction(boolean noInit)
Constructs a new empty instance.
|
|
GiftCardTransaction(GiftCardTransaction src)
Constructs a new instance that is a deep copy of the source instance.
|
|
GiftCardTransaction(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.
|
|
GiftCardTransaction(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return false
|
void |
clearCard()
Clears the 'card' field, the 'has' method for this field will now return false
|
void |
clearEmployeeId()
Clears the 'employeeId' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearIgnorePayment()
Clears the 'ignorePayment' field, the 'has' method for this field will now return false
|
void |
clearLineItems()
Clears the 'lineItems' field, the 'has' method for this field will now return false
|
void |
clearOrderId()
Clears the 'orderId' field, the 'has' method for this field will now return false
|
void |
clearPaymentIds()
Clears the 'paymentIds' field, the 'has' method for this field will now return false
|
void |
clearServiceChargeAmount()
Clears the 'serviceChargeAmount' field, the 'has' method for this field will now return false
|
void |
clearSuppressPayment()
Clears the 'suppressPayment' field, the 'has' method for this field will now return false
|
void |
clearTaxableAmountRates()
Clears the 'taxableAmountRates' 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 |
clearTipAmount()
Clears the 'tipAmount' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
GiftCardTransaction |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getAmount()
Transaction Amount
|
GiftCard |
getCard()
Gift Card
|
String |
getEmployeeId() |
protected GenericClient |
getGenericClient() |
String |
getId()
UUID
|
Boolean |
getIgnorePayment() |
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.
|
List<LineItemPayment> |
getLineItems()
Payments that were made for this line item
|
String |
getOrderId() |
List<String> |
getPaymentIds() |
ServiceChargeAmount |
getServiceChargeAmount() |
Boolean |
getSuppressPayment() |
List<TaxableAmountRate> |
getTaxableAmountRates() |
Long |
getTaxAmount()
Tax Amount
|
Long |
getTipAmount()
Tip Amount
|
boolean |
hasAmount()
Checks whether the 'amount' field has been set, however the value could be null
|
boolean |
hasCard()
Checks whether the 'card' field has been set, however the value could be null
|
boolean |
hasEmployeeId()
Checks whether the 'employeeId' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasIgnorePayment()
Checks whether the 'ignorePayment' field has been set, however the value could be null
|
boolean |
hasLineItems()
Checks whether the 'lineItems' field has been set, however the value could be null
|
boolean |
hasOrderId()
Checks whether the 'orderId' field has been set, however the value could be null
|
boolean |
hasPaymentIds()
Checks whether the 'paymentIds' field has been set, however the value could be null
|
boolean |
hasServiceChargeAmount()
Checks whether the 'serviceChargeAmount' field has been set, however the value could be null
|
boolean |
hasSuppressPayment()
Checks whether the 'suppressPayment' field has been set, however the value could be null
|
boolean |
hasTaxableAmountRates()
Checks whether the 'taxableAmountRates' 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 |
hasTipAmount()
Checks whether the 'tipAmount' field has been set, however the value could be null
|
boolean |
isNotEmptyLineItems()
Checks whether the 'lineItems' field is set and is not null and is not empty
|
boolean |
isNotEmptyPaymentIds()
Checks whether the 'paymentIds' field is set and is not null and is not empty
|
boolean |
isNotEmptyTaxableAmountRates()
Checks whether the 'taxableAmountRates' field is set and is not null and is not empty
|
boolean |
isNotNullAmount()
Checks whether the 'amount' field is set and is not null
|
boolean |
isNotNullCard()
Checks whether the 'card' field is set and is not null
|
boolean |
isNotNullEmployeeId()
Checks whether the 'employeeId' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullIgnorePayment()
Checks whether the 'ignorePayment' field is set and is not null
|
boolean |
isNotNullLineItems()
Checks whether the 'lineItems' field is set and is not null
|
boolean |
isNotNullOrderId()
Checks whether the 'orderId' field is set and is not null
|
boolean |
isNotNullPaymentIds()
Checks whether the 'paymentIds' field is set and is not null
|
boolean |
isNotNullServiceChargeAmount()
Checks whether the 'serviceChargeAmount' field is set and is not null
|
boolean |
isNotNullSuppressPayment()
Checks whether the 'suppressPayment' field is set and is not null
|
boolean |
isNotNullTaxableAmountRates()
Checks whether the 'taxableAmountRates' field is set and is not null
|
boolean |
isNotNullTaxAmount()
Checks whether the 'taxAmount' field is set and is not null
|
boolean |
isNotNullTipAmount()
Checks whether the 'tipAmount' field is set and is not null
|
void |
mergeChanges(GiftCardTransaction 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.
|
GiftCardTransaction |
setAmount(Long amount)
Sets the field 'amount'.
|
GiftCardTransaction |
setCard(GiftCard card)
Sets the field 'card'.
|
GiftCardTransaction |
setEmployeeId(String employeeId)
Sets the field 'employeeId'.
|
GiftCardTransaction |
setId(String id)
Sets the field 'id'.
|
GiftCardTransaction |
setIgnorePayment(Boolean ignorePayment)
Sets the field 'ignorePayment'.
|
GiftCardTransaction |
setLineItems(List<LineItemPayment> lineItems)
Sets the field 'lineItems'.
|
GiftCardTransaction |
setOrderId(String orderId)
Sets the field 'orderId'.
|
GiftCardTransaction |
setPaymentIds(List<String> paymentIds)
Sets the field 'paymentIds'.
|
GiftCardTransaction |
setServiceChargeAmount(ServiceChargeAmount serviceChargeAmount)
Sets the field 'serviceChargeAmount'.
|
GiftCardTransaction |
setSuppressPayment(Boolean suppressPayment)
Sets the field 'suppressPayment'.
|
GiftCardTransaction |
setTaxableAmountRates(List<TaxableAmountRate> taxableAmountRates)
Sets the field 'taxableAmountRates'.
|
GiftCardTransaction |
setTaxAmount(Long taxAmount)
Sets the field 'taxAmount'.
|
GiftCardTransaction |
setTipAmount(Long tipAmount)
Sets the field 'tipAmount'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<GiftCardTransaction> CREATOR
public static final JSONifiable.Creator<GiftCardTransaction> JSON_CREATOR
public GiftCardTransaction()
protected GiftCardTransaction(boolean noInit)
public GiftCardTransaction(String json) throws IllegalArgumentException
IllegalArgumentException
public GiftCardTransaction(JSONObject jsonObject)
public GiftCardTransaction(GiftCardTransaction src)
public String getId()
public Long getAmount()
public Long getTaxAmount()
public Long getTipAmount()
public String getOrderId()
public GiftCard getCard()
public Boolean getIgnorePayment()
public ServiceChargeAmount getServiceChargeAmount()
public List<TaxableAmountRate> getTaxableAmountRates()
public List<LineItemPayment> getLineItems()
public String getEmployeeId()
public Boolean getSuppressPayment()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullAmount()
public boolean isNotNullTaxAmount()
public boolean isNotNullTipAmount()
public boolean isNotNullOrderId()
public boolean isNotNullCard()
public boolean isNotNullPaymentIds()
public boolean isNotEmptyPaymentIds()
public boolean isNotNullIgnorePayment()
public boolean isNotNullServiceChargeAmount()
public boolean isNotNullTaxableAmountRates()
public boolean isNotEmptyTaxableAmountRates()
public boolean isNotNullLineItems()
public boolean isNotEmptyLineItems()
public boolean isNotNullEmployeeId()
public boolean isNotNullSuppressPayment()
public boolean hasId()
public boolean hasAmount()
public boolean hasTaxAmount()
public boolean hasTipAmount()
public boolean hasOrderId()
public boolean hasCard()
public boolean hasPaymentIds()
public boolean hasIgnorePayment()
public boolean hasServiceChargeAmount()
public boolean hasTaxableAmountRates()
public boolean hasLineItems()
public boolean hasEmployeeId()
public boolean hasSuppressPayment()
public GiftCardTransaction setId(String id)
public GiftCardTransaction setAmount(Long amount)
public GiftCardTransaction setTaxAmount(Long taxAmount)
public GiftCardTransaction setTipAmount(Long tipAmount)
public GiftCardTransaction setOrderId(String orderId)
public GiftCardTransaction setCard(GiftCard card)
public GiftCardTransaction setPaymentIds(List<String> paymentIds)
public GiftCardTransaction setIgnorePayment(Boolean ignorePayment)
public GiftCardTransaction setServiceChargeAmount(ServiceChargeAmount serviceChargeAmount)
public GiftCardTransaction setTaxableAmountRates(List<TaxableAmountRate> taxableAmountRates)
public GiftCardTransaction setLineItems(List<LineItemPayment> lineItems)
public GiftCardTransaction setEmployeeId(String employeeId)
public GiftCardTransaction setSuppressPayment(Boolean suppressPayment)
public void clearId()
public void clearAmount()
public void clearTaxAmount()
public void clearTipAmount()
public void clearOrderId()
public void clearCard()
public void clearPaymentIds()
public void clearIgnorePayment()
public void clearServiceChargeAmount()
public void clearTaxableAmountRates()
public void clearLineItems()
public void clearEmployeeId()
public void clearSuppressPayment()
public boolean containsChanges()
public void resetChangeLog()
public GiftCardTransaction copyChanges()
public void mergeChanges(GiftCardTransaction src)