Package io.voucherify.client.model
Class CustomerSummaryOrders
java.lang.Object
io.voucherify.client.model.CustomerSummaryOrders
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CustomerSummaryOrders
extends Object
CustomerSummaryOrders
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaverageAmount(Integer averageAmount) booleanstatic CustomerSummaryOrdersCreate an instance of CustomerSummaryOrders given an JSON stringAverage amount spent on orders.Amount spent on last order.Timestamp representing the date and time of the customer's last order in ISO 8601 format.The total amount spent by the customer.Total number of orders made by the customer.inthashCode()lastOrderAmount(Integer lastOrderAmount) lastOrderDate(OffsetDateTime lastOrderDate) voidsetAverageAmount(Integer averageAmount) voidsetLastOrderAmount(Integer lastOrderAmount) voidsetLastOrderDate(OffsetDateTime lastOrderDate) voidsetTotalAmount(Integer totalAmount) voidsetTotalCount(Integer totalCount) toJson()Convert an instance of CustomerSummaryOrders to an JSON stringtoString()totalAmount(Integer totalAmount) totalCount(Integer totalCount)
-
Field Details
-
SERIALIZED_NAME_TOTAL_AMOUNT
- See Also:
-
SERIALIZED_NAME_TOTAL_COUNT
- See Also:
-
SERIALIZED_NAME_AVERAGE_AMOUNT
- See Also:
-
SERIALIZED_NAME_LAST_ORDER_AMOUNT
- See Also:
-
SERIALIZED_NAME_LAST_ORDER_DATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CustomerSummaryOrders
public CustomerSummaryOrders()
-
-
Method Details
-
totalAmount
-
getTotalAmount
The total amount spent by the customer. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`.- Returns:
- totalAmount
-
setTotalAmount
-
totalCount
-
getTotalCount
Total number of orders made by the customer.- Returns:
- totalCount
-
setTotalCount
-
averageAmount
-
getAverageAmount
Average amount spent on orders. `total_amount` ÷ `total_count`. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`.- Returns:
- averageAmount
-
setAverageAmount
-
lastOrderAmount
-
getLastOrderAmount
Amount spent on last order. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`.- Returns:
- lastOrderAmount
-
setLastOrderAmount
-
lastOrderDate
-
getLastOrderDate
Timestamp representing the date and time of the customer's last order in ISO 8601 format.- Returns:
- lastOrderDate
-
setLastOrderDate
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CustomerSummaryOrders given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CustomerSummaryOrders
- Throws:
IOException- if the JSON string is invalid with respect to CustomerSummaryOrders
-
toJson
Convert an instance of CustomerSummaryOrders to an JSON string- Returns:
- JSON string
-