Package io.voucherify.client.model
Class VoucherTransactionDetailsBalance
java.lang.Object
io.voucherify.client.model.VoucherTransactionDetailsBalance
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class VoucherTransactionDetailsBalance
extends Object
Contains information on how the balance was affected by the transaction.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by the JSON.static enumThe type of voucher whose balance is being adjusted due to the transaction. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of VoucherTransactionDetailsBalance given an JSON stringThe available points on the card after the transaction as affected by redemption or rollback.The type of the object represented by the JSON.Points added or subtracted in the transaction.Get relatedObjectgetTotal()The number of all points accumulated on the card as affected by add or subtract operations.getType()The type of voucher whose balance is being adjusted due to the transaction.inthashCode()relatedObject(VoucherTransactionDetailsBalanceRelatedObject relatedObject) voidsetBalance(Integer balance) voidvoidvoidsetRelatedObject(VoucherTransactionDetailsBalanceRelatedObject relatedObject) voidvoidtoJson()Convert an instance of VoucherTransactionDetailsBalance to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_POINTS
- See Also:
-
SERIALIZED_NAME_BALANCE
- See Also:
-
SERIALIZED_NAME_RELATED_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VoucherTransactionDetailsBalance
public VoucherTransactionDetailsBalance()
-
-
Method Details
-
type
-
getType
The type of voucher whose balance is being adjusted due to the transaction.- Returns:
- type
-
setType
-
total
-
getTotal
The number of all points accumulated on the card as affected by add or subtract operations.- Returns:
- total
-
setTotal
-
_object
public VoucherTransactionDetailsBalance _object(VoucherTransactionDetailsBalance.ObjectEnum _object) -
getObject
The type of the object represented by the JSON.- Returns:
- _object
-
setObject
-
points
-
getPoints
-
setPoints
-
balance
-
getBalance
The available points on the card after the transaction as affected by redemption or rollback.- Returns:
- balance
-
setBalance
-
getRelatedObject
Get relatedObject- Returns:
- relatedObject
-
setRelatedObject
-
equals
-
hashCode
-
toString
-
fromJson
Create an instance of VoucherTransactionDetailsBalance given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VoucherTransactionDetailsBalance
- Throws:
IOException- if the JSON string is invalid with respect to VoucherTransactionDetailsBalance
-
toJson
Convert an instance of VoucherTransactionDetailsBalance to an JSON string- Returns:
- JSON string
-