@Immutable @LevelUpApi(contract=PUBLIC) public final class Order extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Order.OrderBuilder |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<Order> |
CREATOR
Implements the
Parcelable interface. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
Order(MonetaryValue balanceAmount,
String bundleClosedAt,
String bundleDescriptor,
MonetaryValue contributionAmount,
String contributionTargetName,
String createdAt,
MonetaryValue creditAppliedAmount,
MonetaryValue creditEarnedAmount,
String locationExtendedAddress,
String locationLocality,
String locationName,
String locationPostalCode,
String locationRegion,
String locationStreetAddress,
Long locationWebServiceId,
String merchantName,
Long merchantWebServiceId,
String refundedAt,
MonetaryValue spendAmount,
MonetaryValue tipAmount,
MonetaryValue totalAmount,
String transactedAt,
String uuid) |
Modifier and Type | Method and Description |
---|---|
static Order.OrderBuilder |
builder() |
int |
describeContents() |
boolean |
equals(Object o) |
MonetaryValue |
getBalanceAmount()
The total spent after credit was applied (i.e.: how much was charged to the user's card).
|
String |
getBundleClosedAt()
The time the bundle containing this order closed (or null if it's still open).
|
String |
getBundleDescriptor()
The descriptor (or the best guess at) that this order will show up as on the user's payment
statement.
|
MonetaryValue |
getContributionAmount()
The amount contributed to the user's chosen contribution target.
|
String |
getContributionTargetName()
The name of the user's chosen contribution target.
|
String |
getCreatedAt()
The date and time the order was created in the database.
|
MonetaryValue |
getCreditAppliedAmount()
The sum of all credit used to fund the order.
|
MonetaryValue |
getCreditEarnedAmount()
Credit earned by this purchase (e.g.
|
String |
getLocationExtendedAddress()
The order's
Location 's extended address. |
String |
getLocationLocality()
The locality (city) of this order's
Location . |
String |
getLocationName()
The name of the order's location, if different from the merchant name.
|
String |
getLocationPostalCode()
The postal code for this order's
Location . |
String |
getLocationRegion()
The region (state in the US) for this order's
Location . |
String |
getLocationStreetAddress()
The address of this order's
Location . |
Long |
getLocationWebServiceId()
The web service ID of the
Location where the order was placed. |
String |
getMerchantName()
The name of the merchant where the order took place.
|
Long |
getMerchantWebServiceId()
The web service ID of the merchant where this order took place.
|
String |
getRefundedAt()
The timestamp when the order was refunded (if it was refunded).
|
MonetaryValue |
getSpendAmount()
The amount of the transaction before tip.
|
MonetaryValue |
getTipAmount()
The amount the user tipped.
|
MonetaryValue |
getTotalAmount()
Total amount (spend+tip) before any credit was applied.
|
String |
getTransactedAt()
The date and time the user placed the order.
|
String |
getUuid()
The globally-unique ID (UUID) for this order.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<Order> CREATOR
Parcelable
interface.public Order(MonetaryValue balanceAmount, String bundleClosedAt, String bundleDescriptor, MonetaryValue contributionAmount, String contributionTargetName, String createdAt, MonetaryValue creditAppliedAmount, MonetaryValue creditEarnedAmount, String locationExtendedAddress, String locationLocality, String locationName, String locationPostalCode, String locationRegion, String locationStreetAddress, Long locationWebServiceId, String merchantName, Long merchantWebServiceId, String refundedAt, MonetaryValue spendAmount, MonetaryValue tipAmount, MonetaryValue totalAmount, String transactedAt, String uuid)
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
public static Order.OrderBuilder builder()
public MonetaryValue getBalanceAmount()
public String getBundleClosedAt()
public String getBundleDescriptor()
public MonetaryValue getContributionAmount()
public String getContributionTargetName()
public String getCreatedAt()
transactedAt
for the
date and time the order was placed.public MonetaryValue getCreditAppliedAmount()
public MonetaryValue getCreditEarnedAmount()
public String getLocationExtendedAddress()
Location
's extended address.public String getLocationLocality()
Location
.public String getLocationName()
public String getLocationPostalCode()
Location
.public String getLocationRegion()
Location
.public String getLocationStreetAddress()
Location
.public Long getLocationWebServiceId()
Location
where the order was placed.public String getMerchantName()
public Long getMerchantWebServiceId()
public String getRefundedAt()
public MonetaryValue getSpendAmount()
public MonetaryValue getTipAmount()
public MonetaryValue getTotalAmount()
public String getTransactedAt()
public String getUuid()