Package com.adyen.model.nexo
Class LoyaltyAmount
- java.lang.Object
-
- com.adyen.model.nexo.LoyaltyAmount
-
public class LoyaltyAmount extends Object
Definition: Amount of a loyalty account. -- Usage: An awarded amount or an amount to redeem to the loyalty account might be sent in the Payment request messageType. The amount to apply on the requested loyalty service, if not computed from the TotalAmount of the Loyalty request messageType. TheJava class for LoyaltyAmount complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="LoyaltyAmount"> <simpleContent> <extension base="Decimal"> <attribute name="LoyaltyUnit" type="{}LoyaltyUnitType" default="Point" /> <attribute name="Currency" type="{}ISOCurrency3A" /> </extension> </simpleContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcurrencyThe Currency.protected LoyaltyUnitTypeloyaltyUnitThe Loyalty unit.protected BigDecimalvalueThe Value.
-
Constructor Summary
Constructors Constructor Description LoyaltyAmount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCurrency()Gets the value of the currency property.LoyaltyUnitTypegetLoyaltyUnit()Gets the value of the loyaltyUnit property.BigDecimalgetValue()Gets the value of the value property.voidsetCurrency(String value)Sets the value of the currency property.voidsetLoyaltyUnit(LoyaltyUnitType value)Sets the value of the loyaltyUnit property.voidsetValue(BigDecimal value)Sets the value of the value property.
-
-
-
Field Detail
-
value
protected BigDecimal value
The Value.
-
loyaltyUnit
protected LoyaltyUnitType loyaltyUnit
The Loyalty unit.
-
currency
protected String currency
The Currency.
-
-
Method Detail
-
getValue
public BigDecimal getValue()
Gets the value of the value property.- Returns:
- possible object is
BigDecimal
-
setValue
public void setValue(BigDecimal value)
Sets the value of the value property.- Parameters:
value- allowed object isBigDecimal
-
getLoyaltyUnit
public LoyaltyUnitType getLoyaltyUnit()
Gets the value of the loyaltyUnit property.- Returns:
- possible object is
LoyaltyUnitType
-
setLoyaltyUnit
public void setLoyaltyUnit(LoyaltyUnitType value)
Sets the value of the loyaltyUnit property.- Parameters:
value- allowed object isLoyaltyUnitType
-
getCurrency
public String getCurrency()
Gets the value of the currency property.- Returns:
- possible object is
String
-
-