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 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 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(LoyaltyCardTransactionDetailsBalanceRelatedObject relatedObject) voidsetBalance(Integer balance) voidvoidvoidvoidvoidtoJson()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_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 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
-
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 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
-