Constructors

Link copied to clipboard
public void Summary()
Constructs a new empty instance.
public void Summary(String json)
Constructs a new instance from the given JSON String.
public void Summary(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.
public void Summary(Summary src)
Constructs a new instance that is a deep copy of the source instance.

Types

Link copied to clipboard
public interface Constraints

Properties

Link copied to clipboard
public final static int CONTENTS_FILE_DESCRIPTOR
Link copied to clipboard
public final static Parcelable.Creator<Summary> CREATOR
Link copied to clipboard
Link copied to clipboard
public final static int PARCELABLE_WRITE_RETURN_VALUE

Functions

Link copied to clipboard
Clears the 'additionalChargeAmount' field, the 'has' method for this field will now return false
Clears the 'additionalChargeAmountWithoutInteracV1' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearAmountWithoutTips()
Clears the 'amountWithoutTips' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearChangeInAmount()
Clears the 'changeInAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'changeInNetQuantity' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearDriverTip()
Clears the 'driverTip' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearEndTimestamp()
Clears the 'endTimestamp' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearName()
Clears the 'name' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearNetQuantity()
Clears the 'netQuantity' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearNum()
Clears the 'num' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearSegmentLabel()
Clears the 'segmentLabel' field, the 'has' method for this field will now return false
Link copied to clipboard
Clears the 'serviceChargeAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearStartTimestamp()
Clears the 'startTimestamp' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearTaxAmount()
Clears the 'taxAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearTipAmount()
Clears the 'tipAmount' field, the 'has' method for this field will now return false
Link copied to clipboard
public void clearTipDetails()
Clears the 'tipDetails' field, the 'has' method for this field will now return false
Link copied to clipboard
public boolean containsChanges()
Returns true if this instance has any changes.
Link copied to clipboard
Create a copy of this instance that contains only fields that were set after the constructor was called.
Link copied to clipboard
public abstract int describeContents()
public final int describeContents()
Link copied to clipboard
Total additional charge amount paid minus the additional charge amount refunded.
Total additional charge amount paid minus the additional charge amount refunded.
Link copied to clipboard
public Long getAmount()
The amount paid or refunded.
Link copied to clipboard
The amount paid or refunded.
Link copied to clipboard
public final Bundle getBundle()
Gets a Bundle which can be used to get and set data attached to this instance.
Link copied to clipboard
Percent change in amount field for current period compared to previous period.
Link copied to clipboard
Percent change in net quantity field for current period compared to previous period.
Link copied to clipboard
public Long getDriverTip()
Tip amount classified as driver tip based on payment attribute value.
Link copied to clipboard
End of the time period for this summary
Link copied to clipboard
public String getId()
Link copied to clipboard
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.
Link copied to clipboard
public String getName()
Optional name field relevant in some scenarios, for example while storing name of line item for top 5 items sold
Link copied to clipboard
Optional field, total quantity of items sold
Link copied to clipboard
public Long getNum()
Link copied to clipboard
An identifier that may be used to align report segments across different merchants.
Link copied to clipboard
Link copied to clipboard
Beginning of the time period for this summary
Link copied to clipboard
public Long getTaxAmount()
Link copied to clipboard
public Long getTipAmount()
Tip amount will now include driver tip when applicable.
Link copied to clipboard
Array of summary objects.
Link copied to clipboard
public boolean hasAdditionalChargeAmount()
Checks whether the 'additionalChargeAmount' field has been set, however the value could be null
Checks whether the 'additionalChargeAmountWithoutInteracV1' field has been set, however the value could be null
Link copied to clipboard
public boolean hasAmount()
Checks whether the 'amount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasAmountWithoutTips()
Checks whether the 'amountWithoutTips' field has been set, however the value could be null
Link copied to clipboard
public boolean hasChangeInAmount()
Checks whether the 'changeInAmount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasChangeInNetQuantity()
Checks whether the 'changeInNetQuantity' field has been set, however the value could be null
Link copied to clipboard
public boolean hasDriverTip()
Checks whether the 'driverTip' field has been set, however the value could be null
Link copied to clipboard
public boolean hasEndTimestamp()
Checks whether the 'endTimestamp' field has been set, however the value could be null
Link copied to clipboard
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
Link copied to clipboard
public boolean hasName()
Checks whether the 'name' field has been set, however the value could be null
Link copied to clipboard
public boolean hasNetQuantity()
Checks whether the 'netQuantity' field has been set, however the value could be null
Link copied to clipboard
public boolean hasNum()
Checks whether the 'num' field has been set, however the value could be null
Link copied to clipboard
public boolean hasSegmentLabel()
Checks whether the 'segmentLabel' field has been set, however the value could be null
Link copied to clipboard
public boolean hasServiceChargeAmount()
Checks whether the 'serviceChargeAmount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasStartTimestamp()
Checks whether the 'startTimestamp' field has been set, however the value could be null
Link copied to clipboard
public boolean hasTaxAmount()
Checks whether the 'taxAmount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasTipAmount()
Checks whether the 'tipAmount' field has been set, however the value could be null
Link copied to clipboard
public boolean hasTipDetails()
Checks whether the 'tipDetails' field has been set, however the value could be null
Link copied to clipboard
public boolean isNotEmptyTipDetails()
Checks whether the 'tipDetails' field is set and is not null and is not empty
Link copied to clipboard
Checks whether the 'additionalChargeAmount' field is set and is not null
Checks whether the 'additionalChargeAmountWithoutInteracV1' field is set and is not null
Link copied to clipboard
public boolean isNotNullAmount()
Checks whether the 'amount' field is set and is not null
Link copied to clipboard
public boolean isNotNullAmountWithoutTips()
Checks whether the 'amountWithoutTips' field is set and is not null
Link copied to clipboard
public boolean isNotNullChangeInAmount()
Checks whether the 'changeInAmount' field is set and is not null
Link copied to clipboard
Checks whether the 'changeInNetQuantity' field is set and is not null
Link copied to clipboard
public boolean isNotNullDriverTip()
Checks whether the 'driverTip' field is set and is not null
Link copied to clipboard
public boolean isNotNullEndTimestamp()
Checks whether the 'endTimestamp' field is set and is not null
Link copied to clipboard
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
Link copied to clipboard
public boolean isNotNullName()
Checks whether the 'name' field is set and is not null
Link copied to clipboard
public boolean isNotNullNetQuantity()
Checks whether the 'netQuantity' field is set and is not null
Link copied to clipboard
public boolean isNotNullNum()
Checks whether the 'num' field is set and is not null
Link copied to clipboard
public boolean isNotNullSegmentLabel()
Checks whether the 'segmentLabel' field is set and is not null
Link copied to clipboard
Checks whether the 'serviceChargeAmount' field is set and is not null
Link copied to clipboard
public boolean isNotNullStartTimestamp()
Checks whether the 'startTimestamp' field is set and is not null
Link copied to clipboard
public boolean isNotNullTaxAmount()
Checks whether the 'taxAmount' field is set and is not null
Link copied to clipboard
public boolean isNotNullTipAmount()
Checks whether the 'tipAmount' field is set and is not null
Link copied to clipboard
public boolean isNotNullTipDetails()
Checks whether the 'tipDetails' field is set and is not null
Link copied to clipboard
public void mergeChanges(Summary src)
Copy all the changed fields from the given source to this instance.
Link copied to clipboard
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
Link copied to clipboard
public Summary setAdditionalChargeAmount(Long additionalChargeAmount)
Sets the field 'additionalChargeAmount'.
public Summary setAdditionalChargeAmountWithoutInteracV1(Long additionalChargeAmountWithoutInteracV1)
Sets the field 'additionalChargeAmountWithoutInteracV1'.
Link copied to clipboard
public Summary setAmount(Long amount)
Sets the field 'amount'.
Link copied to clipboard
public Summary setAmountWithoutTips(Long amountWithoutTips)
Sets the field 'amountWithoutTips'.
Link copied to clipboard
public Summary setChangeInAmount(Double changeInAmount)
Sets the field 'changeInAmount'.
Link copied to clipboard
public Summary setChangeInNetQuantity(Double changeInNetQuantity)
Sets the field 'changeInNetQuantity'.
Link copied to clipboard
public Summary setDriverTip(Long driverTip)
Sets the field 'driverTip'.
Link copied to clipboard
public Summary setEndTimestamp(Long endTimestamp)
Sets the field 'endTimestamp'.
Link copied to clipboard
public Summary setId(String id)
Sets the field 'id'.
Link copied to clipboard
public Summary setName(String name)
Sets the field 'name'.
Link copied to clipboard
public Summary setNetQuantity(Double netQuantity)
Sets the field 'netQuantity'.
Link copied to clipboard
public Summary setNum(Long num)
Sets the field 'num'.
Link copied to clipboard
public Summary setSegmentLabel(Integer segmentLabel)
Sets the field 'segmentLabel'.
Link copied to clipboard
public Summary setServiceChargeAmount(Long serviceChargeAmount)
Sets the field 'serviceChargeAmount'.
Link copied to clipboard
public Summary setStartTimestamp(Long startTimestamp)
Sets the field 'startTimestamp'.
Link copied to clipboard
public Summary setTaxAmount(Long taxAmount)
Sets the field 'taxAmount'.
Link copied to clipboard
public Summary setTipAmount(Long tipAmount)
Sets the field 'tipAmount'.
Link copied to clipboard
public Summary setTipDetails(List<Summary> tipDetails)
Sets the field 'tipDetails'.
Link copied to clipboard
public final String toString()
Link copied to clipboard
public void validate()
Link copied to clipboard
public abstract void writeToParcel(Parcel p, int p1)
public final void writeToParcel(Parcel dest, int flags)