Package io.voucherify.client.model
Class RedemptionsRedeemRequestBody
java.lang.Object
io.voucherify.client.model.RedemptionsRedeemRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedemptionsRedeemRequestBody
extends Object
Response body schema for **POST** `v1/redemptions`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRedeemablesItem(RedemptionsRedeemRequestBodyRedeemablesItem redeemablesItem) booleanstatic RedemptionsRedeemRequestBodyCreate an instance of RedemptionsRedeemRequestBody given an JSON stringGet customerA set of key/value pairs that you can attach to a redemption object.Get optionsgetOrder()Get orderGet redeemablesGet sessionIs correspondent to Customer's source_idinthashCode()redeemables(List<RedemptionsRedeemRequestBodyRedeemablesItem> redeemables) voidsetCustomer(Customer customer) voidsetMetadata(Object metadata) voidvoidvoidsetRedeemables(List<RedemptionsRedeemRequestBodyRedeemablesItem> redeemables) voidsetSession(Session session) voidsetTrackingId(String trackingId) toJson()Convert an instance of RedemptionsRedeemRequestBody to an JSON stringtoString()trackingId(String trackingId)
-
Field Details
-
SERIALIZED_NAME_OPTIONS
- See Also:
-
SERIALIZED_NAME_REDEEMABLES
- See Also:
-
SERIALIZED_NAME_ORDER
- See Also:
-
SERIALIZED_NAME_CUSTOMER
- See Also:
-
SERIALIZED_NAME_SESSION
- See Also:
-
SERIALIZED_NAME_TRACKING_ID
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedemptionsRedeemRequestBody
public RedemptionsRedeemRequestBody()
-
-
Method Details
-
options
-
getOptions
Get options- Returns:
- options
-
setOptions
-
redeemables
public RedemptionsRedeemRequestBody redeemables(List<RedemptionsRedeemRequestBodyRedeemablesItem> redeemables) -
addRedeemablesItem
public RedemptionsRedeemRequestBody addRedeemablesItem(RedemptionsRedeemRequestBodyRedeemablesItem redeemablesItem) -
getRedeemables
Get redeemables- Returns:
- redeemables
-
setRedeemables
-
order
-
getOrder
Get order- Returns:
- order
-
setOrder
-
customer
-
getCustomer
Get customer- Returns:
- customer
-
setCustomer
-
session
-
getSession
Get session- Returns:
- session
-
setSession
-
trackingId
-
getTrackingId
Is correspondent to Customer's source_id- Returns:
- trackingId
-
setTrackingId
-
metadata
-
getMetadata
A set of key/value pairs that you can attach to a redemption object. It can be useful for storing additional information about the redemption in a structured format.- Returns:
- metadata
-
setMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RedemptionsRedeemRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedemptionsRedeemRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to RedemptionsRedeemRequestBody
-
toJson
Convert an instance of RedemptionsRedeemRequestBody to an JSON string- Returns:
- JSON string
-