Package software.xdev.brevo.model
Class Order
java.lang.Object
software.xdev.brevo.model.Order
Order
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCouponsItem(String couponsItem) addProductsItem(OrderProductsInner productsItem) amount(BigDecimal amount) billing(OrderBilling billing) booleanTotal amount of the order, including all shipping expenses, tax and the price of items.Get billingCoupons applied to the order.Event occurrence UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when order is actually created.getEmail()Email of the contact, Mandatory if \"phone\" field is not passed in \"billing\" parameter.getId()Unique ID of the order.Get productsState of the order.Event updated UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when the status of the order is actually changed/updated.inthashCode()products(List<OrderProductsInner> products) voidsetAmount(BigDecimal amount) voidsetBilling(OrderBilling billing) voidsetCoupons(List<String> coupons) voidsetCreatedAt(String createdAt) voidvoidvoidsetProducts(List<OrderProductsInner> products) voidvoidsetUpdatedAt(String updatedAt) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_AMOUNT
- See Also:
-
JSON_PROPERTY_PRODUCTS
- See Also:
-
JSON_PROPERTY_EMAIL
- See Also:
-
JSON_PROPERTY_BILLING
- See Also:
-
JSON_PROPERTY_COUPONS
- See Also:
-
-
Constructor Details
-
Order
public Order()
-
-
Method Details
-
id
-
getId
Unique ID of the order.- Returns:
- id
-
setId
-
createdAt
-
getCreatedAt
Event occurrence UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when order is actually created.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Event updated UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when the status of the order is actually changed/updated.- Returns:
- updatedAt
-
setUpdatedAt
-
status
-
getStatus
State of the order.- Returns:
- status
-
setStatus
-
amount
-
getAmount
Total amount of the order, including all shipping expenses, tax and the price of items.- Returns:
- amount
-
setAmount
-
products
-
addProductsItem
-
getProducts
Get products- Returns:
- products
-
setProducts
-
email
-
getEmail
Email of the contact, Mandatory if \"phone\" field is not passed in \"billing\" parameter.- Returns:
-
setEmail
-
billing
-
getBilling
Get billing- Returns:
- billing
-
setBilling
-
coupons
-
addCouponsItem
-
getCoupons
Coupons applied to the order. Stored case insensitive.- Returns:
- coupons
-
setCoupons
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-