Package io.voucherify.client.model
Class RedemptionsGetResponseBodyOrder
java.lang.Object
io.voucherify.client.model.RedemptionsGetResponseBodyOrder
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedemptionsGetResponseBodyOrder
extends Object
RedemptionsGetResponseBodyOrder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON.static enumThe order status. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItemsItem(OrderCalculatedItem itemsItem) appliedDiscountAmount(Integer appliedDiscountAmount) createdAt(OffsetDateTime createdAt) customerId(String customerId) discountAmount(Integer discountAmount) booleanCreate an instance of RedemptionsGetResponseBodyOrder given an JSON stringA positive integer in the smallest currency unit (e.g.This field shows the order-level discount applied.Timestamp representing the date and time when the order was created.Get customerUnique customer ID of the customer making the purchase.Sum of all order-level discounts applied to the order.getId()Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request.A positive integer in the smallest currency unit (e.g.getItems()Array of items applied to the order.Sum of all product-specific discounts applied in a particular request.Sum of all product-specific discounts applied to the order.A set of custom key/value pairs that you can attach to an order.The type of the object represented by JSON.Get redemptionsGet referrerUnique referrer ID.Unique source ID of an existing order that will be linked to the redemption of this request.The order status.Order amount after undoing all the discounts through the rollback redemption.Sum of all order-level AND all product-specific discounts applied in a particular request.Sum of all order-level AND all product-specific discounts applied to the order.Timestamp representing the date and time when the order was last updated in ISO 8601 format.inthashCode()initialAmount(Integer initialAmount) items(List<OrderCalculatedItem> items) itemsAppliedDiscountAmount(Integer itemsAppliedDiscountAmount) itemsDiscountAmount(Integer itemsDiscountAmount) putRedemptionsItem(String key, OrderRedemptionsEntry redemptionsItem) redemptions(Map<String, OrderRedemptionsEntry> redemptions) referrerId(String referrerId) voidvoidsetAppliedDiscountAmount(Integer appliedDiscountAmount) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetCustomerId(String customerId) voidsetDiscountAmount(Integer discountAmount) voidvoidsetInitialAmount(Integer initialAmount) voidsetItems(List<OrderCalculatedItem> items) voidsetItemsAppliedDiscountAmount(Integer itemsAppliedDiscountAmount) voidsetItemsDiscountAmount(Integer itemsDiscountAmount) voidsetMetadata(Object metadata) voidvoidsetRedemptions(Map<String, OrderRedemptionsEntry> redemptions) voidvoidsetReferrerId(String referrerId) voidsetSourceId(String sourceId) voidvoidsetTotalAmount(Integer totalAmount) voidsetTotalAppliedDiscountAmount(Integer totalAppliedDiscountAmount) voidsetTotalDiscountAmount(Integer totalDiscountAmount) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of RedemptionsGetResponseBodyOrder to an JSON stringtoString()totalAmount(Integer totalAmount) totalAppliedDiscountAmount(Integer totalAppliedDiscountAmount) totalDiscountAmount(Integer totalDiscountAmount) updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_INITIAL_AMOUNT
- See Also:
-
SERIALIZED_NAME_DISCOUNT_AMOUNT
- See Also:
-
SERIALIZED_NAME_ITEMS_DISCOUNT_AMOUNT
- See Also:
-
SERIALIZED_NAME_TOTAL_DISCOUNT_AMOUNT
- See Also:
-
SERIALIZED_NAME_TOTAL_AMOUNT
- See Also:
-
SERIALIZED_NAME_APPLIED_DISCOUNT_AMOUNT
- See Also:
-
SERIALIZED_NAME_ITEMS_APPLIED_DISCOUNT_AMOUNT
- See Also:
-
SERIALIZED_NAME_TOTAL_APPLIED_DISCOUNT_AMOUNT
- See Also:
-
SERIALIZED_NAME_ITEMS
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_CUSTOMER_ID
- See Also:
-
SERIALIZED_NAME_REFERRER_ID
- See Also:
-
SERIALIZED_NAME_CUSTOMER
- See Also:
-
SERIALIZED_NAME_REFERRER
- See Also:
-
SERIALIZED_NAME_REDEMPTIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedemptionsGetResponseBodyOrder
public RedemptionsGetResponseBodyOrder()
-
-
Method Details
-
id
-
getId
Unique ID assigned by Voucherify of an existing order that will be linked to the redemption of this request.- Returns:
- id
-
setId
-
sourceId
-
getSourceId
Unique source ID of an existing order that will be linked to the redemption of this request.- Returns:
- sourceId
-
setSourceId
-
status
-
getStatus
The order status.- Returns:
- status
-
setStatus
-
amount
-
getAmount
A positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the total amount of the order. This is the sum of the order items' amounts.- Returns:
- amount
-
setAmount
-
initialAmount
-
getInitialAmount
A positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the total amount of the order. This is the sum of the order items' amounts.- Returns:
- initialAmount
-
setInitialAmount
-
discountAmount
-
getDiscountAmount
Sum of all order-level discounts applied to the order.- Returns:
- discountAmount
-
setDiscountAmount
-
itemsDiscountAmount
-
getItemsDiscountAmount
Sum of all product-specific discounts applied to the order.- Returns:
- itemsDiscountAmount
-
setItemsDiscountAmount
-
totalDiscountAmount
-
getTotalDiscountAmount
Sum of all order-level AND all product-specific discounts applied to the order.- Returns:
- totalDiscountAmount
-
setTotalDiscountAmount
-
totalAmount
-
getTotalAmount
Order amount after undoing all the discounts through the rollback redemption.- Returns:
- totalAmount
-
setTotalAmount
-
appliedDiscountAmount
-
getAppliedDiscountAmount
This field shows the order-level discount applied.- Returns:
- appliedDiscountAmount
-
setAppliedDiscountAmount
-
itemsAppliedDiscountAmount
public RedemptionsGetResponseBodyOrder itemsAppliedDiscountAmount(Integer itemsAppliedDiscountAmount) -
getItemsAppliedDiscountAmount
Sum of all product-specific discounts applied in a particular request. `sum(items, i => i.applied_discount_amount)`- Returns:
- itemsAppliedDiscountAmount
-
setItemsAppliedDiscountAmount
-
totalAppliedDiscountAmount
public RedemptionsGetResponseBodyOrder totalAppliedDiscountAmount(Integer totalAppliedDiscountAmount) -
getTotalAppliedDiscountAmount
Sum of all order-level AND all product-specific discounts applied in a particular request. `total_applied_discount_amount` = `applied_discount_amount` + `items_applied_discount_amount`- Returns:
- totalAppliedDiscountAmount
-
setTotalAppliedDiscountAmount
-
items
-
addItemsItem
-
getItems
Array of items applied to the order. It can include up 500 items.- Returns:
- items
-
setItems
-
metadata
-
getMetadata
A set of custom key/value pairs that you can attach to an order. It can be useful for storing additional information about the order in a structured format. It can be used to define business validation rules or discount formulas.- Returns:
- metadata
-
setMetadata
-
_object
-
getObject
The type of the object represented by JSON.- Returns:
- _object
-
setObject
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the order was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the order was last updated in ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
customerId
-
getCustomerId
Unique customer ID of the customer making the purchase.- Returns:
- customerId
-
setCustomerId
-
referrerId
-
getReferrerId
Unique referrer ID.- Returns:
- referrerId
-
setReferrerId
-
customer
-
getCustomer
Get customer- Returns:
- customer
-
setCustomer
-
referrer
-
getReferrer
Get referrer- Returns:
- referrer
-
setReferrer
-
redemptions
-
putRedemptionsItem
public RedemptionsGetResponseBodyOrder putRedemptionsItem(String key, OrderRedemptionsEntry redemptionsItem) -
getRedemptions
Get redemptions- Returns:
- redemptions
-
setRedemptions
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RedemptionsGetResponseBodyOrder given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedemptionsGetResponseBodyOrder
- Throws:
IOException- if the JSON string is invalid with respect to RedemptionsGetResponseBodyOrder
-
toJson
Convert an instance of RedemptionsGetResponseBodyOrder to an JSON string- Returns:
- JSON string
-