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 the operation being performed.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 or credits on the card after the transaction as affected by redemption or rollback.The type of the object represented by the JSON.The type of the operation being performed.Points added or subtracted in the transaction of a loyalty card.Get relatedObjectgetTotal()The number of all points or credits 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()operationType(VoucherTransactionDetailsBalance.OperationTypeEnum operationType) relatedObject(VoucherTransactionDetailsBalanceRelatedObject relatedObject) voidsetBalance(Integer balance) voidvoidvoidvoidsetRelatedObject(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_OPERATION_TYPE
- 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 or credits 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
Points added or subtracted in the transaction of a loyalty card.- Returns:
- points
-
setPoints
-
balance
-
getBalance
The available points or credits on the card after the transaction as affected by redemption or rollback.- Returns:
- balance
-
setBalance
-
operationType
public VoucherTransactionDetailsBalance operationType(VoucherTransactionDetailsBalance.OperationTypeEnum operationType) -
getOperationType
The type of the operation being performed. The operation type is `AUTOMATIC` if it is an automatic redemption.- Returns:
- operationType
-
setOperationType
-
getRelatedObject
Get relatedObject- Returns:
- relatedObject
-
setRelatedObject
-
equals
-
hashCode
public int 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
-