Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
public final class MerchantAccount {

/**
* The unique identifier of the merchant account.
* The merchant's unique identifier for the customer's account.
* [Optional]
*/
private String id;
Expand All @@ -37,34 +37,35 @@ public final class MerchantAccount {
private LocalDate lastModified;

/**
* Indicates whether this is a returning customer.
* Specifies if the customer is a returning customer.
* [Optional]
*/
private Boolean returningCustomer;

/**
* The date of the customer's first transaction with the merchant.
* The date of the customer's first transaction.
* [Optional]
* Format: yyyy-MM-dd
*/
private LocalDate firstTransactionDate;

/**
* The date of the customer's most recent transaction with the merchant.
* The date of the customer's most recent transaction.
* [Optional]
* Format: yyyy-MM-dd
*/
private LocalDate lastTransactionDate;

/**
* The total number of orders the customer has placed with the merchant.
* The total number of orders made by the customer.
* [Optional]
*/
private Integer totalOrderCount;

/**
* The amount of the customer's last payment with the merchant.
* The payment amount of the customer's most recent transaction.
* The specification types this as a number (example 55.99); the API currently stores it as an integer.
* [Optional]
*/
private Long lastPaymentAmount;
private Double lastPaymentAmount;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.util.List;

/**
* Order information for payment setup
* The customer's order details.
*/
@Data
@Builder
Expand All @@ -19,23 +19,27 @@
public final class Order {

/**
* The items included in the order
* A list of items in the order.
* [Optional]
*/
private List<PaymentContextsItems> items;

/**
* The shipping information for the order
* The customer's shipping details.
* [Optional]
*/
private ShippingDetails shipping;

/**
* Information about sub-merchants involved in the order
* The details of the sub-merchants.
* [Optional]
*/
private List<OrderSubMerchant> subMerchants;

/**
* &gt;= 0
* The discount amount applied to the order
* The discount amount the merchant applied to the transaction.
* [Optional]
* min 0
*/
private Long discountAmount;

Expand All @@ -48,33 +52,37 @@ public final class Order {
/**
* The total shipping amount for the order.
* [Optional]
* &gt;= 0
* min 0
*/
private Long shippingAmount;

/**
* The total surcharge amount for the order.
* [Optional]
* &gt;= 0
* Format: int64
* min 0
*/
private Long surchargeAmount;

/**
* The total tax amount for the order.
* [Optional]
* &gt;= 0
* min 0
*/
private Long taxAmount;

/**
* The total tipping amount for the order.
* [Optional]
* &gt;= 0
* Format: int64
* min 0
*/
private Long tippingAmount;

/**
* The amount allocations representing the sub-entities on whose behalf the payment is processed
* The sub-entities that the payment is being processed on behalf of.
* [Optional]
* min 1 item, max 50 items
*/
private List<PaymentSetupAmountAllocation> amountAllocations;
}
}
Loading
Loading