com.adyen.model.nexo.LoyaltyRequest 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.util.ArrayList;
import java.util.List;
/**
* Definition: Content of the Loyalty Request messageType. -- Usage: It conveys Information related to the Loyalty transaction to process
*
* Java class for LoyaltyRequest complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="LoyaltyRequest">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="SaleData" type="{}SaleData"/>
* <element name="LoyaltyTransaction" type="{}LoyaltyTransaction"/>
* <element name="LoyaltyData" type="{}LoyaltyData" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LoyaltyRequest", propOrder = {
"saleData",
"loyaltyTransaction",
"loyaltyData"
})
public class LoyaltyRequest {
/**
* The Sale data.
*/
@XmlElement(name = "SaleData", required = true)
@Schema(description = "Data related to the Sale System.")
protected SaleData saleData;
/**
* The Loyalty transaction.
*/
@XmlElement(name = "LoyaltyTransaction", required = true)
@Schema(description = "Data related to the loyalty transaction.")
protected LoyaltyTransaction loyaltyTransaction;
/**
* The Loyalty data.
*/
@XmlElement(name = "LoyaltyData")
@Schema(description = "Data related to a Loyalty program or account.")
protected List loyaltyData;
/**
* Gets the value of the saleData property.
*
* @return possible object is {@link SaleData }
*/
public SaleData getSaleData() {
return saleData;
}
/**
* Sets the value of the saleData property.
*
* @param value allowed object is {@link SaleData }
*/
public void setSaleData(SaleData value) {
this.saleData = value;
}
/**
* Gets the value of the loyaltyTransaction property.
*
* @return possible object is {@link LoyaltyTransaction }
*/
public LoyaltyTransaction getLoyaltyTransaction() {
return loyaltyTransaction;
}
/**
* Sets the value of the loyaltyTransaction property.
*
* @param value allowed object is {@link LoyaltyTransaction }
*/
public void setLoyaltyTransaction(LoyaltyTransaction value) {
this.loyaltyTransaction = value;
}
/**
* Gets the value of the loyaltyData 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 loyaltyData property.
*
*
* For example, to add a new item, do as follows:
*
* getLoyaltyData().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link LoyaltyData }
*
* @return the loyalty data
*/
public List getLoyaltyData() {
if (loyaltyData == null) {
loyaltyData = new ArrayList<>();
}
return this.loyaltyData;
}
}