Package com.adyen.model.nexo
Class LoyaltyTransaction
- java.lang.Object
-
- com.adyen.model.nexo.LoyaltyTransaction
-
public class LoyaltyTransaction extends Object
Definition: Data related to the loyalty transaction.Java class for LoyaltyTransaction complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="LoyaltyTransaction"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="OriginalPOITransaction" type="{}OriginalPOITransaction" minOccurs="0"/> <element name="TransactionConditions" type="{}TransactionConditions" minOccurs="0"/> <element name="SaleItem" type="{}SaleItem" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="LoyaltyTransaction" use="required" type="{}LoyaltyTransactionType" /> <attribute name="Currency" type="{}ISOCurrency3A" /> <attribute name="TotalAmount" type="{}SimpleAmountType" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcurrencyThe Currency.protected LoyaltyTransactionTypeloyaltyTransactionTypeThe Loyalty transaction.protected OriginalPOITransactionoriginalPOITransactionThe Original poi transaction.protected List<SaleItem>saleItemThe Sale item.protected BigDecimaltotalAmountThe Total amount.protected TransactionConditionstransactionConditionsThe Transaction conditions.
-
Constructor Summary
Constructors Constructor Description LoyaltyTransaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCurrency()Gets the value of the currency property.LoyaltyTransactionTypegetLoyaltyTransactionType()Gets the value of the loyaltyTransactionType property.OriginalPOITransactiongetOriginalPOITransaction()Gets the value of the originalPOITransaction property.List<SaleItem>getSaleItem()Gets the value of the saleItem property.BigDecimalgetTotalAmount()Gets the value of the totalAmount property.TransactionConditionsgetTransactionConditions()Gets the value of the transactionConditions property.voidsetCurrency(String value)Sets the value of the currency property.voidsetLoyaltyTransactionType(LoyaltyTransactionType value)Sets the value of the loyaltyTransactionType property.voidsetOriginalPOITransaction(OriginalPOITransaction value)Sets the value of the originalPOITransaction property.voidsetTotalAmount(BigDecimal value)Sets the value of the totalAmount property.voidsetTransactionConditions(TransactionConditions value)Sets the value of the transactionConditions property.
-
-
-
Field Detail
-
originalPOITransaction
protected OriginalPOITransaction originalPOITransaction
The Original poi transaction.
-
transactionConditions
protected TransactionConditions transactionConditions
The Transaction conditions.
-
loyaltyTransactionType
protected LoyaltyTransactionType loyaltyTransactionType
The Loyalty transaction.
-
currency
protected String currency
The Currency.
-
totalAmount
protected BigDecimal totalAmount
The Total amount.
-
-
Method Detail
-
getOriginalPOITransaction
public OriginalPOITransaction getOriginalPOITransaction()
Gets the value of the originalPOITransaction property.- Returns:
- possible object is
OriginalPOITransaction
-
setOriginalPOITransaction
public void setOriginalPOITransaction(OriginalPOITransaction value)
Sets the value of the originalPOITransaction property.- Parameters:
value- allowed object isOriginalPOITransaction
-
getTransactionConditions
public TransactionConditions getTransactionConditions()
Gets the value of the transactionConditions property.- Returns:
- possible object is
TransactionConditions
-
setTransactionConditions
public void setTransactionConditions(TransactionConditions value)
Sets the value of the transactionConditions property.- Parameters:
value- allowed object isTransactionConditions
-
getSaleItem
public List<SaleItem> getSaleItem()
Gets the value of the saleItem property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the saleItem property.For example, to add a new item, do as follows:
getSaleItem().add(newItem);Objects of the following type(s) are allowed in the list
SaleItem- Returns:
- the sale item
-
getLoyaltyTransactionType
public LoyaltyTransactionType getLoyaltyTransactionType()
Gets the value of the loyaltyTransactionType property.- Returns:
- possible object is
LoyaltyTransactionType
-
setLoyaltyTransactionType
public void setLoyaltyTransactionType(LoyaltyTransactionType value)
Sets the value of the loyaltyTransactionType property.- Parameters:
value- allowed object isLoyaltyTransactionType
-
getCurrency
public String getCurrency()
Gets the value of the currency property.- Returns:
- possible object is
String
-
setCurrency
public void setCurrency(String value)
Sets the value of the currency property.- Parameters:
value- allowed object isString
-
getTotalAmount
public BigDecimal getTotalAmount()
Gets the value of the totalAmount property.- Returns:
- possible object is
BigDecimal
-
setTotalAmount
public void setTotalAmount(BigDecimal value)
Sets the value of the totalAmount property.- Parameters:
value- allowed object isBigDecimal
-
-