Package io.voucherify.client.model
Class VouchersBalanceUpdateResponseBody
java.lang.Object
io.voucherify.client.model.VouchersBalanceUpdateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class VouchersBalanceUpdateResponseBody
extends Object
Response body schema for `vouchers/{code}/balance.`
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON.static enumThe type of the operation being performed.static enumThe type of voucher being modified. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of VouchersBalanceUpdateResponseBody given an JSON stringThe incremental amount added (positive integer) or subtracted (negative integer) to the current balance on the gift card or loyalty card.The balance after adding or subtracting a specified amount.The type of the object represented by JSON.The type of the operation being performed.Get relatedObjectgetTotal()Total income incurred over the lifespan of the gift card or loyalty card.getType()The type of voucher being modified.inthashCode()operationType(VouchersBalanceUpdateResponseBody.OperationTypeEnum operationType) relatedObject(VouchersBalanceUpdateResponseBodyRelatedObject relatedObject) voidvoidsetBalance(Integer balance) voidvoidvoidsetRelatedObject(VouchersBalanceUpdateResponseBodyRelatedObject relatedObject) voidvoidtoJson()Convert an instance of VouchersBalanceUpdateResponseBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
SERIALIZED_NAME_BALANCE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_OPERATION_TYPE
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_RELATED_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VouchersBalanceUpdateResponseBody
public VouchersBalanceUpdateResponseBody()
-
-
Method Details
-
amount
-
getAmount
The incremental amount added (positive integer) or subtracted (negative integer) to the current balance on the gift card or loyalty card. Value is multiplied by 100 to precisely represent 2 decimal places. For example, $100 amount is written as 10000.- Returns:
- amount
-
setAmount
-
total
-
getTotal
Total income incurred over the lifespan of the gift card or loyalty card.- Returns:
- total
-
setTotal
-
balance
-
getBalance
The balance after adding or subtracting a specified amount. Value is multiplied by 100 to precisely represent 2 decimal places. For example, $100 amount is written as 10000.- Returns:
- balance
-
setBalance
-
type
-
getType
The type of voucher being modified.- Returns:
- type
-
setType
-
operationType
public VouchersBalanceUpdateResponseBody operationType(VouchersBalanceUpdateResponseBody.OperationTypeEnum operationType) -
getOperationType
The type of the operation being performed.- Returns:
- operationType
-
setOperationType
-
_object
public VouchersBalanceUpdateResponseBody _object(VouchersBalanceUpdateResponseBody.ObjectEnum _object) -
getObject
The type of the object represented by JSON. Default is `balance`.- Returns:
- _object
-
setObject
-
getRelatedObject
Get relatedObject- Returns:
- relatedObject
-
setRelatedObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of VouchersBalanceUpdateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VouchersBalanceUpdateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to VouchersBalanceUpdateResponseBody
-
toJson
Convert an instance of VouchersBalanceUpdateResponseBody to an JSON string- Returns:
- JSON string
-