public class ReportPaymentsV2Row extends GenericParcelable implements Validator, JSONifiable
Each instance of this represents a payment summary, a tender stats, a card type, or a DCC row in the payments report summary table. Only a subset of fields are populated in each section.
Modifier and Type | Class and Description |
---|---|
static interface |
ReportPaymentsV2Row.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ReportPaymentsV2Row> |
CREATOR |
static JSONifiable.Creator<ReportPaymentsV2Row> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
ReportPaymentsV2Row()
Constructs a new empty instance.
|
protected |
ReportPaymentsV2Row(boolean noInit)
Constructs a new empty instance.
|
|
ReportPaymentsV2Row(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.
|
|
ReportPaymentsV2Row(ReportPaymentsV2Row src)
Constructs a new instance that is a deep copy of the source instance.
|
|
ReportPaymentsV2Row(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCreditAmount()
Clears the 'creditAmount' field, the 'has' method for this field will now return false
|
void |
clearName()
Clears the 'name' field, the 'has' method for this field will now return false
|
void |
clearNet()
Clears the 'net' field, the 'has' method for this field will now return false
|
void |
clearNumTransactions()
Clears the 'numTransactions' field, the 'has' method for this field will now return false
|
void |
clearPaymentAmount()
Clears the 'paymentAmount' field, the 'has' method for this field will now return false
|
void |
clearRefundAmount()
Clears the 'refundAmount' field, the 'has' method for this field will now return false
|
void |
clearRefundAndCreditAmount()
Clears the 'refundAndCreditAmount' field, the 'has' method for this field will now return false
|
void |
clearRefundTipAmount()
Clears the 'refundTipAmount' field, the 'has' method for this field will now return false
|
void |
clearRevenueAmount()
Clears the 'revenueAmount' 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 |
clearTaxAmount()
Clears the 'taxAmount' field, the 'has' method for this field will now return false
|
void |
clearTender()
Clears the 'tender' 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.
|
ReportPaymentsV2Row |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getCreditAmount()
Total amount of manual refunds.
|
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 |
getName()
The name of the row, like Gross Online Payments, Credit Card, Master Card, etc.
|
Long |
getNet()
Revenue plus tax plus tips minus refunds minus manual refunds.
|
Long |
getNumTransactions()
Total number of transactions of this type.
|
Long |
getPaymentAmount()
Revenue plus tax.
|
Long |
getRefundAmount()
Total amount of refunds.
|
Long |
getRefundAndCreditAmount()
Total amount of refunds and manual refunds.
|
Long |
getRefundTipAmount()
Amount of tip that was refunded.
|
Long |
getRevenueAmount()
Revenue includes service charge.
|
Long |
getServiceChargeAmount()
Total amount of service charges.
|
Long |
getTaxAmount()
Total amount of taxes collected.
|
Tender |
getTender()
For card type sales, this is the parent tender type that this card type belongs to.
|
Long |
getTipAmount()
Total amount of tips.
|
boolean |
hasCreditAmount()
Checks whether the 'creditAmount' field has been set, however the value could be null
|
boolean |
hasName()
Checks whether the 'name' field has been set, however the value could be null
|
boolean |
hasNet()
Checks whether the 'net' field has been set, however the value could be null
|
boolean |
hasNumTransactions()
Checks whether the 'numTransactions' field has been set, however the value could be null
|
boolean |
hasPaymentAmount()
Checks whether the 'paymentAmount' field has been set, however the value could be null
|
boolean |
hasRefundAmount()
Checks whether the 'refundAmount' field has been set, however the value could be null
|
boolean |
hasRefundAndCreditAmount()
Checks whether the 'refundAndCreditAmount' field has been set, however the value could be null
|
boolean |
hasRefundTipAmount()
Checks whether the 'refundTipAmount' field has been set, however the value could be null
|
boolean |
hasRevenueAmount()
Checks whether the 'revenueAmount' 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 |
hasTaxAmount()
Checks whether the 'taxAmount' field has been set, however the value could be null
|
boolean |
hasTender()
Checks whether the 'tender' 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 |
isNotNullCreditAmount()
Checks whether the 'creditAmount' field is set and is not null
|
boolean |
isNotNullName()
Checks whether the 'name' field is set and is not null
|
boolean |
isNotNullNet()
Checks whether the 'net' field is set and is not null
|
boolean |
isNotNullNumTransactions()
Checks whether the 'numTransactions' field is set and is not null
|
boolean |
isNotNullPaymentAmount()
Checks whether the 'paymentAmount' field is set and is not null
|
boolean |
isNotNullRefundAmount()
Checks whether the 'refundAmount' field is set and is not null
|
boolean |
isNotNullRefundAndCreditAmount()
Checks whether the 'refundAndCreditAmount' field is set and is not null
|
boolean |
isNotNullRefundTipAmount()
Checks whether the 'refundTipAmount' field is set and is not null
|
boolean |
isNotNullRevenueAmount()
Checks whether the 'revenueAmount' field is set and is not null
|
boolean |
isNotNullServiceChargeAmount()
Checks whether the 'serviceChargeAmount' field is set and is not null
|
boolean |
isNotNullTaxAmount()
Checks whether the 'taxAmount' field is set and is not null
|
boolean |
isNotNullTender()
Checks whether the 'tender' field is set and is not null
|
boolean |
isNotNullTipAmount()
Checks whether the 'tipAmount' field is set and is not null
|
void |
mergeChanges(ReportPaymentsV2Row 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.
|
ReportPaymentsV2Row |
setCreditAmount(Long creditAmount)
Sets the field 'creditAmount'.
|
ReportPaymentsV2Row |
setName(String name)
Sets the field 'name'.
|
ReportPaymentsV2Row |
setNet(Long net)
Sets the field 'net'.
|
ReportPaymentsV2Row |
setNumTransactions(Long numTransactions)
Sets the field 'numTransactions'.
|
ReportPaymentsV2Row |
setPaymentAmount(Long paymentAmount)
Sets the field 'paymentAmount'.
|
ReportPaymentsV2Row |
setRefundAmount(Long refundAmount)
Sets the field 'refundAmount'.
|
ReportPaymentsV2Row |
setRefundAndCreditAmount(Long refundAndCreditAmount)
Sets the field 'refundAndCreditAmount'.
|
ReportPaymentsV2Row |
setRefundTipAmount(Long refundTipAmount)
Sets the field 'refundTipAmount'.
|
ReportPaymentsV2Row |
setRevenueAmount(Long revenueAmount)
Sets the field 'revenueAmount'.
|
ReportPaymentsV2Row |
setServiceChargeAmount(Long serviceChargeAmount)
Sets the field 'serviceChargeAmount'.
|
ReportPaymentsV2Row |
setTaxAmount(Long taxAmount)
Sets the field 'taxAmount'.
|
ReportPaymentsV2Row |
setTender(Tender tender)
Sets the field 'tender'.
|
ReportPaymentsV2Row |
setTipAmount(Long tipAmount)
Sets the field 'tipAmount'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<ReportPaymentsV2Row> CREATOR
public static final JSONifiable.Creator<ReportPaymentsV2Row> JSON_CREATOR
public ReportPaymentsV2Row()
protected ReportPaymentsV2Row(boolean noInit)
public ReportPaymentsV2Row(String json) throws IllegalArgumentException
IllegalArgumentException
public ReportPaymentsV2Row(JSONObject jsonObject)
public ReportPaymentsV2Row(ReportPaymentsV2Row src)
public String getName()
public Long getNumTransactions()
public Long getNet()
public Long getPaymentAmount()
public Long getRevenueAmount()
public Long getTaxAmount()
public Long getTipAmount()
public Long getRefundTipAmount()
public Long getServiceChargeAmount()
public Long getRefundAmount()
public Long getCreditAmount()
public Long getRefundAndCreditAmount()
public Tender getTender()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullName()
public boolean isNotNullNumTransactions()
public boolean isNotNullNet()
public boolean isNotNullPaymentAmount()
public boolean isNotNullRevenueAmount()
public boolean isNotNullTaxAmount()
public boolean isNotNullTipAmount()
public boolean isNotNullRefundTipAmount()
public boolean isNotNullServiceChargeAmount()
public boolean isNotNullRefundAmount()
public boolean isNotNullCreditAmount()
public boolean isNotNullRefundAndCreditAmount()
public boolean isNotNullTender()
public boolean hasName()
public boolean hasNumTransactions()
public boolean hasNet()
public boolean hasPaymentAmount()
public boolean hasRevenueAmount()
public boolean hasTaxAmount()
public boolean hasTipAmount()
public boolean hasRefundTipAmount()
public boolean hasServiceChargeAmount()
public boolean hasRefundAmount()
public boolean hasCreditAmount()
public boolean hasRefundAndCreditAmount()
public boolean hasTender()
public ReportPaymentsV2Row setName(String name)
public ReportPaymentsV2Row setNumTransactions(Long numTransactions)
public ReportPaymentsV2Row setNet(Long net)
public ReportPaymentsV2Row setPaymentAmount(Long paymentAmount)
public ReportPaymentsV2Row setRevenueAmount(Long revenueAmount)
public ReportPaymentsV2Row setTaxAmount(Long taxAmount)
public ReportPaymentsV2Row setTipAmount(Long tipAmount)
public ReportPaymentsV2Row setRefundTipAmount(Long refundTipAmount)
public ReportPaymentsV2Row setServiceChargeAmount(Long serviceChargeAmount)
public ReportPaymentsV2Row setRefundAmount(Long refundAmount)
public ReportPaymentsV2Row setCreditAmount(Long creditAmount)
public ReportPaymentsV2Row setRefundAndCreditAmount(Long refundAndCreditAmount)
public ReportPaymentsV2Row setTender(Tender tender)
public void clearName()
public void clearNumTransactions()
public void clearNet()
public void clearPaymentAmount()
public void clearRevenueAmount()
public void clearTaxAmount()
public void clearTipAmount()
public void clearRefundTipAmount()
public void clearServiceChargeAmount()
public void clearRefundAmount()
public void clearCreditAmount()
public void clearRefundAndCreditAmount()
public void clearTender()
public boolean containsChanges()
public void resetChangeLog()
public ReportPaymentsV2Row copyChanges()
public void mergeChanges(ReportPaymentsV2Row src)