Package io.voucherify.client.model
Class VouchersBalanceUpdateRequestBody
java.lang.Object
io.voucherify.client.model.VouchersBalanceUpdateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class VouchersBalanceUpdateRequestBody
extends Object
Request body schema for `vouchers/{code}/balance`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of VouchersBalanceUpdateRequestBody given an JSON stringThe incremental amount to be added to or removed from the current balance on the gift card or loyalty card.Reason why the transaction occurred.The merchant's transaction ID if it is different from the Voucherify transaction ID.inthashCode()voidvoidvoidsetSourceId(String sourceId) toJson()Convert an instance of VouchersBalanceUpdateRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VouchersBalanceUpdateRequestBody
public VouchersBalanceUpdateRequestBody()
-
-
Method Details
-
amount
-
getAmount
The incremental amount to be added to or removed from 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. To remove balance, simply add a minus sign before the value, i.e. to remove $20, use -2000.- Returns:
- amount
-
setAmount
-
sourceId
-
getSourceId
The merchant's transaction ID if it is different from the Voucherify transaction ID. It is really useful in case of an integration between multiple systems. It can be a transaction ID from a CRM system, database or 3rd-party service.- Returns:
- sourceId
-
setSourceId
-
reason
-
getReason
Reason why the transaction occurred.- Returns:
- reason
-
setReason
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of VouchersBalanceUpdateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VouchersBalanceUpdateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to VouchersBalanceUpdateRequestBody
-
toJson
Convert an instance of VouchersBalanceUpdateRequestBody to an JSON string- Returns:
- JSON string
-