Package io.voucherify.client.model
Class LoyaltyCardTransactionDetailsBalance
java.lang.Object
io.voucherify.client.model.LoyaltyCardTransactionDetailsBalance
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltyCardTransactionDetailsBalance
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 LoyaltyCardTransactionDetailsBalance 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()relatedObject(LoyaltyCardTransactionDetailsBalanceRelatedObject relatedObject) voidsetBalance(Integer balance) voidvoidvoidvoidvoidvoidtoJson()Convert an instance of LoyaltyCardTransactionDetailsBalance 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
-
LoyaltyCardTransactionDetailsBalance
public LoyaltyCardTransactionDetailsBalance()
-
-
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 LoyaltyCardTransactionDetailsBalance _object(LoyaltyCardTransactionDetailsBalance.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 LoyaltyCardTransactionDetailsBalance operationType(LoyaltyCardTransactionDetailsBalance.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 LoyaltyCardTransactionDetailsBalance given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltyCardTransactionDetailsBalance
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltyCardTransactionDetailsBalance
-
toJson
Convert an instance of LoyaltyCardTransactionDetailsBalance to an JSON string- Returns:
- JSON string
-