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.getId()Unique ID of the order.Get identifiersMeta data of order to store additional detal such as custom message, customer type, source.Get productsState of the order.ID of store where the order is placedEvent updated UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when the status of the order is actually changed/updated.inthashCode()identifiers(OrderIdentifiers identifiers) metaInfo(Map<String, OrderMetaInfoValue> metaInfo) products(List<OrderProductsInner> products) putMetaInfoItem(String key, OrderMetaInfoValue metaInfoItem) voidsetAmount(BigDecimal amount) voidsetBilling(OrderBilling billing) voidsetCoupons(List<String> coupons) voidsetCreatedAt(String createdAt) voidvoidsetIdentifiers(OrderIdentifiers identifiers) voidsetMetaInfo(Map<String, OrderMetaInfoValue> metaInfo) voidsetProducts(List<OrderProductsInner> products) voidvoidsetStoreId(String storeId) voidsetUpdatedAt(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_STORE_ID
- See Also:
-
JSON_PROPERTY_IDENTIFIERS
- See Also:
-
JSON_PROPERTY_PRODUCTS
- See Also:
-
JSON_PROPERTY_BILLING
- See Also:
-
JSON_PROPERTY_COUPONS
- See Also:
-
JSON_PROPERTY_META_INFO
- 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
-
storeId
-
getStoreId
ID of store where the order is placed- Returns:
- storeId
-
setStoreId
-
identifiers
-
getIdentifiers
Get identifiers- Returns:
- identifiers
-
setIdentifiers
-
products
-
addProductsItem
-
getProducts
Get products- Returns:
- products
-
setProducts
-
billing
-
getBilling
Get billing- Returns:
- billing
-
setBilling
-
coupons
-
addCouponsItem
-
getCoupons
Coupons applied to the order. Stored case insensitive.- Returns:
- coupons
-
setCoupons
-
metaInfo
-
putMetaInfoItem
-
getMetaInfo
Meta data of order to store additional detal such as custom message, customer type, source.- Returns:
- metaInfo
-
setMetaInfo
-
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
-