com.adyen.model.nexo.LoyaltyTransaction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adyen-java-api-library Show documentation
Show all versions of adyen-java-api-library Show documentation
Adyen API Client Library for Java
package com.adyen.model.nexo;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* 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>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LoyaltyTransaction", propOrder = {
"originalPOITransaction",
"transactionConditions",
"saleItem"
})
public class LoyaltyTransaction {
/**
* The Original poi transaction.
*/
@XmlElement(name = "OriginalPOITransaction")
protected OriginalPOITransaction originalPOITransaction;
/**
* The Transaction conditions.
*/
@XmlElement(name = "TransactionConditions")
protected TransactionConditions transactionConditions;
/**
* The Sale item.
*/
@XmlElement(name = "SaleItem")
protected List saleItem;
/**
* The Loyalty transaction.
*/
@XmlAttribute(name = "LoyaltyTransactionType", required = true)
protected LoyaltyTransactionType loyaltyTransactionType;
/**
* The Currency.
*/
@XmlAttribute(name = "Currency")
protected String currency;
/**
* The Total amount.
*/
@XmlAttribute(name = "TotalAmount")
protected BigDecimal totalAmount;
/**
* Gets the value of the originalPOITransaction property.
*
* @return possible object is {@link OriginalPOITransaction }
*/
public OriginalPOITransaction getOriginalPOITransaction() {
return originalPOITransaction;
}
/**
* Sets the value of the originalPOITransaction property.
*
* @param value allowed object is {@link OriginalPOITransaction }
*/
public void setOriginalPOITransaction(OriginalPOITransaction value) {
this.originalPOITransaction = value;
}
/**
* Gets the value of the transactionConditions property.
*
* @return possible object is {@link TransactionConditions }
*/
public TransactionConditions getTransactionConditions() {
return transactionConditions;
}
/**
* Sets the value of the transactionConditions property.
*
* @param value allowed object is {@link TransactionConditions }
*/
public void setTransactionConditions(TransactionConditions value) {
this.transactionConditions = value;
}
/**
* 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 set
method 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
* {@link SaleItem }
*
* @return the sale item
*/
public List getSaleItem() {
if (saleItem == null) {
saleItem = new ArrayList<>();
}
return this.saleItem;
}
/**
* Gets the value of the loyaltyTransactionType property.
*
* @return possible object is {@link LoyaltyTransactionType }
*/
public LoyaltyTransactionType getLoyaltyTransactionType() {
return loyaltyTransactionType;
}
/**
* Sets the value of the loyaltyTransactionType property.
*
* @param value allowed object is {@link LoyaltyTransactionType }
*/
public void setLoyaltyTransactionType(LoyaltyTransactionType value) {
this.loyaltyTransactionType = value;
}
/**
* Gets the value of the currency property.
*
* @return possible object is {@link String }
*/
public String getCurrency() {
return currency;
}
/**
* Sets the value of the currency property.
*
* @param value allowed object is {@link String }
*/
public void setCurrency(String value) {
this.currency = value;
}
/**
* Gets the value of the totalAmount property.
*
* @return possible object is {@link BigDecimal }
*/
public BigDecimal getTotalAmount() {
return totalAmount;
}
/**
* Sets the value of the totalAmount property.
*
* @param value allowed object is {@link BigDecimal }
*/
public void setTotalAmount(BigDecimal value) {
this.totalAmount = value;
}
}