Package io.voucherify.client.model
Class RedemptionsRollbacksCreateRequestBody
java.lang.Object
io.voucherify.client.model.RedemptionsRollbacksCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedemptionsRollbacksCreateRequestBody
extends Object
Request body schema for **POST** `v1/redemptions/{parentRedemptionId}/rollbacks`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of RedemptionsRollbacksCreateRequestBody given an JSON stringGet customerA set of key/value pairs that you can send in the request body to update **redemption** metadata.getOrder()Get orderReason for the rollback.Customer's `source_id`.inthashCode()voidsetCustomer(Customer customer) voidsetMetadata(Object metadata) voidvoidvoidsetTrackingId(String trackingId) toJson()Convert an instance of RedemptionsRollbacksCreateRequestBody to an JSON stringtoString()trackingId(String trackingId)
-
Field Details
-
SERIALIZED_NAME_REASON
- See Also:
-
SERIALIZED_NAME_TRACKING_ID
- See Also:
-
SERIALIZED_NAME_CUSTOMER
- See Also:
-
SERIALIZED_NAME_ORDER
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedemptionsRollbacksCreateRequestBody
public RedemptionsRollbacksCreateRequestBody()
-
-
Method Details
-
reason
-
getReason
Reason for the rollback.- Returns:
- reason
-
setReason
-
trackingId
-
getTrackingId
Customer's `source_id`.- Returns:
- trackingId
-
setTrackingId
-
customer
-
getCustomer
Get customer- Returns:
- customer
-
setCustomer
-
order
-
getOrder
Get order- Returns:
- order
-
setOrder
-
metadata
-
getMetadata
A set of key/value pairs that you can send in the request body to update **redemption** metadata.- Returns:
- metadata
-
setMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RedemptionsRollbacksCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedemptionsRollbacksCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to RedemptionsRollbacksCreateRequestBody
-
toJson
Convert an instance of RedemptionsRollbacksCreateRequestBody to an JSON string- Returns:
- JSON string
-