All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adyen.model.nexo.LoyaltyTransaction Maven / Gradle / Ivy

package com.adyen.model.nexo;

import io.swagger.v3.oas.annotations.media.Schema;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
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") @Schema(description = "Identification of a previous POI transaction. --Rule: if LoyaltyTransactionType is \"AwardRefund\", \"RebateRefund\" or \"RedemptionRefund\"") protected OriginalPOITransaction originalPOITransaction; /** * The Transaction conditions. */ @XmlElement(name = "TransactionConditions") @Schema(description = "Conditions on which the transaction must be processed. --Rule: If one data element is present") protected TransactionConditions transactionConditions; /** * The Sale item. */ @XmlElement(name = "SaleItem") @Schema(description = "Sale items of a transaction.") protected List saleItem; /** * The Loyalty transaction. */ @XmlElement(name = "LoyaltyTransactionType", required = true) @Schema(description = "Type of loyalty transaction.") protected LoyaltyTransactionType loyaltyTransactionType; /** * The Currency. */ @XmlElement(name = "Currency") @Schema(description = "Currency of a monetary amount.") protected String currency; /** * The Total amount. */ @XmlElement(name = "TotalAmount") @Schema(description = "Amount of a transaction.") 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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy