@Immutable @VisibleForTesting(visibility=PRIVATE) public static final class OrderJsonFactory.JsonKeys extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BALANCE
Required field parsed as a
MonetaryValue model. |
static String |
BUNDLE_CLOSED_AT
Optional string field parsed as a date.
|
static String |
BUNDLE_DESCRIPTOR
Required String field value describing the bundle.
|
static String |
CONTRIBUTION
Optional field parsed as a
MonetaryValue model. |
static String |
CONTRIBUTION_TARGET_NAME
Optional field parsed as a String, containing the name of the contribution target.
|
static String |
CREATED_AT
Required string field parsed as a date.
|
static String |
CREDIT_APPLIED
Required string field parsed as a
MonetaryValue
model. |
static String |
CREDIT_EARNED
Required string field parsed as a
MonetaryValue
model. |
static String |
LOCATION_EXTENDED_ADDRESS
Optional String field containing the extended location address.
|
static String |
LOCATION_LOCALITY
Required String field containing the location locality.
|
static String |
LOCATION_NAME
Optional String field containing the location name if different from the merchant name.
|
static String |
LOCATION_POSTAL_CODE
Required String field containing the location postal code.
|
static String |
LOCATION_REGION
Required String field containing the location region.
|
static String |
LOCATION_STREET_ADDRESS
Required String field containing the location street address.
|
static String |
LOCATION_WEB_SERVICE_ID
Required integer field containing the location web service ID.
|
static String |
MERCHANT_NAME
Required String field containing the merchant name.
|
static String |
MERCHANT_WEB_SERVICE_ID
Required integer field containing the merchant web service ID.
|
static String |
MODEL_ROOT
The key under which this model can be nested.
|
static String |
REFUNDED_AT
Optional String field parsed as a date.
|
static String |
SPEND
Required String field containing the spend amount.
|
static String |
TIP
Required String field containing the tip amount.
|
static String |
TOTAL
Required String field containing the total.
|
static String |
TRANSACTED_AT
Required String field containing the date this was transacted at.
|
static String |
UUID
The globally-unique ID for this order.
|
@JsonValueType(value=JSON_OBJECT) public static final String MODEL_ROOT
@JsonValueType(value=INT) public static final String BALANCE
MonetaryValue
model.Order.getBalanceAmount()
,
Constant Field Values@JsonValueType(value=STRING) public static final String BUNDLE_CLOSED_AT
Order.getBundleClosedAt()
,
Constant Field Values@JsonValueType(value=STRING) public static final String BUNDLE_DESCRIPTOR
Order.getBundleDescriptor()
,
Constant Field Values@JsonValueType(value=INT) public static final String CONTRIBUTION
MonetaryValue
model.@JsonValueType(value=STRING) public static final String CONTRIBUTION_TARGET_NAME
@JsonValueType(value=STRING) public static final String CREATED_AT
Order.getCreatedAt()
,
Constant Field Values@JsonValueType(value=INT) public static final String CREDIT_APPLIED
MonetaryValue
model.@JsonValueType(value=INT) public static final String CREDIT_EARNED
MonetaryValue
model.@JsonValueType(value=STRING) public static final String LOCATION_EXTENDED_ADDRESS
@JsonValueType(value=STRING) public static final String LOCATION_LOCALITY
Order.getLocationLocality()
,
Constant Field Values@JsonValueType(value=STRING) public static final String LOCATION_NAME
Order.getLocationName()
,
Constant Field Values@JsonValueType(value=LONG) public static final String LOCATION_WEB_SERVICE_ID
@JsonValueType(value=STRING) public static final String LOCATION_POSTAL_CODE
@JsonValueType(value=STRING) public static final String LOCATION_REGION
Order.getLocationRegion()
,
Constant Field Values@JsonValueType(value=STRING) public static final String LOCATION_STREET_ADDRESS
@JsonValueType(value=STRING) public static final String MERCHANT_NAME
Order.getMerchantName()
,
Constant Field Values@JsonValueType(value=LONG) public static final String MERCHANT_WEB_SERVICE_ID
@JsonValueType(value=STRING) public static final String REFUNDED_AT
@JsonValueType(value=INT) public static final String SPEND
MonetaryValue
.Order.getSpendAmount()
,
Constant Field Values@JsonValueType(value=INT) public static final String TIP
MonetaryValue
.Order.getTipAmount()
,
Constant Field Values@JsonValueType(value=INT) public static final String TOTAL
MonetaryValue
.Order.getTotalAmount()
,
Constant Field Values@JsonValueType(value=STRING) public static final String TRANSACTED_AT
Order.getTransactedAt()
,
Constant Field Values@JsonValueType(value=STRING) public static final String UUID