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

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

There is a newer version: 28.4.0
Show newest version
package com.adyen.model.nexo;

import com.adyen.model.terminal.SaleToAcquirerData;
import com.adyen.serializer.SaleToAcquirerDataSerializer;
import com.google.gson.annotations.JsonAdapter;

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.util.ArrayList;
import java.util.List;


/**
 * Definition: Data related to the Sale System. -- Usage: Data associated to the Sale System, with a particular value during the processing of the payment by the POI, including the cards acquisition.
 *
 * 

Java class for SaleData complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="SaleData">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="SaleTransactionID" type="{}TransactionIdentification"/>
 *         <element name="SaleTerminalData" type="{}SaleTerminalData" minOccurs="0"/>
 *         <element name="SponsoredMerchant" type="{}SponsoredMerchant" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="SaleToPOIData" type="{}SaleToPOIData" minOccurs="0"/>
 *         <element name="SaleToAcquirerData" type="{}SaleToAcquirerData" minOccurs="0"/>
 *         <element name="SaleToIssuerData" type="{}SaleToIssuerData" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="OperatorID" type="{}OperatorID" />
 *       <attribute name="OperatorLanguage" type="{}ISOLanguage2A" />
 *       <attribute name="ShiftNumber" type="{}ShiftNumber" />
 *       <attribute name="SaleReferenceID" type="{}SaleReferenceID" />
 *       <attribute name="TokenRequested" type="{}TokenRequestedType" />
 *       <attribute name="CustomerOrderID" type="{}CustomerOrderID" />
 *       <attribute name="CustomerOrderReq" type="{}CustomerOrderReq" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SaleData", propOrder = { "saleTransactionID", "saleTerminalData", "sponsoredMerchant", "saleToPOIData", "saleToAcquirerData", "saleToIssuerData" }) public class SaleData { /** * The Sale transaction id. */ @XmlElement(name = "SaleTransactionID", required = true) protected TransactionIdentification saleTransactionID; /** * The Sale terminal data. */ @XmlElement(name = "SaleTerminalData") protected SaleTerminalData saleTerminalData; /** * The Sponsored merchant. */ @XmlElement(name = "SponsoredMerchant") protected List sponsoredMerchant; /** * The Sale to poi data. */ @XmlElement(name = "SaleToPOIData") protected String saleToPOIData; /** * The Sale to acquirer data. */ @XmlElement(name = "SaleToAcquirerData") @JsonAdapter(SaleToAcquirerDataSerializer.class) protected SaleToAcquirerData saleToAcquirerData; /** * The Sale to issuer data. */ @XmlElement(name = "SaleToIssuerData") protected SaleToIssuerData saleToIssuerData; /** * The Operator id. */ @XmlAttribute(name = "OperatorID") protected String operatorID; /** * The Operator language. */ @XmlAttribute(name = "OperatorLanguage") protected String operatorLanguage; /** * The Shift number. */ @XmlAttribute(name = "ShiftNumber") protected String shiftNumber; /** * The Sale reference id. */ @XmlAttribute(name = "SaleReferenceID") protected String saleReferenceID; /** * The Token requested. */ @XmlAttribute(name = "TokenRequestedType") protected TokenRequestedType tokenRequestedType; /** * The Customer order id. */ @XmlAttribute(name = "CustomerOrderID") protected String customerOrderID; /** * The Customer order req. */ @XmlAttribute(name = "CustomerOrderReq") protected List customerOrderReq; public SaleData() { saleToAcquirerData = new SaleToAcquirerData(); } /** * Gets the value of the saleTransactionID property. * * @return possible object is {@link TransactionIdentification } */ public TransactionIdentification getSaleTransactionID() { return saleTransactionID; } /** * Sets the value of the saleTransactionID property. * * @param value allowed object is {@link TransactionIdentification } */ public void setSaleTransactionID(TransactionIdentification value) { saleTransactionID = value; } /** * Gets the value of the saleTerminalData property. * * @return possible object is {@link SaleTerminalData } */ public SaleTerminalData getSaleTerminalData() { return saleTerminalData; } /** * Sets the value of the saleTerminalData property. * * @param value allowed object is {@link SaleTerminalData } */ public void setSaleTerminalData(SaleTerminalData value) { saleTerminalData = value; } /** * Gets the value of the sponsoredMerchant 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 sponsoredMerchant property. *

*

* For example, to add a new item, do as follows: *

     *    getSponsoredMerchant().add(newItem);
     * 
*

*

*

* Objects of the following type(s) are allowed in the list * {@link SponsoredMerchant } * * @return the sponsored merchant */ public List getSponsoredMerchant() { if (sponsoredMerchant == null) { sponsoredMerchant = new ArrayList<>(); } return sponsoredMerchant; } /** * Gets the value of the saleToPOIData property. * * @return possible object is {@link String } */ public String getSaleToPOIData() { return saleToPOIData; } /** * Sets the value of the saleToPOIData property. * * @param value allowed object is {@link String } */ public void setSaleToPOIData(String value) { saleToPOIData = value; } /** * Gets the value of the saleToAcquirerData property. * * @return possible object is {@link String } */ public SaleToAcquirerData getSaleToAcquirerData() { return saleToAcquirerData; } /** * Sets the value of the saleToAcquirerData property. * * @param value allowed object is {@link String } */ public void setSaleToAcquirerData(SaleToAcquirerData value) { saleToAcquirerData = value; } /** * Gets the value of the saleToIssuerData property. * * @return possible object is {@link SaleToIssuerData } */ public SaleToIssuerData getSaleToIssuerData() { return saleToIssuerData; } /** * Sets the value of the saleToIssuerData property. * * @param value allowed object is {@link SaleToIssuerData } */ public void setSaleToIssuerData(SaleToIssuerData value) { saleToIssuerData = value; } /** * Gets the value of the operatorID property. * * @return possible object is {@link String } */ public String getOperatorID() { return operatorID; } /** * Sets the value of the operatorID property. * * @param value allowed object is {@link String } */ public void setOperatorID(String value) { operatorID = value; } /** * Gets the value of the operatorLanguage property. * * @return possible object is {@link String } */ public String getOperatorLanguage() { return operatorLanguage; } /** * Sets the value of the operatorLanguage property. * * @param value allowed object is {@link String } */ public void setOperatorLanguage(String value) { operatorLanguage = value; } /** * Gets the value of the shiftNumber property. * * @return possible object is {@link String } */ public String getShiftNumber() { return shiftNumber; } /** * Sets the value of the shiftNumber property. * * @param value allowed object is {@link String } */ public void setShiftNumber(String value) { shiftNumber = value; } /** * Gets the value of the saleReferenceID property. * * @return possible object is {@link String } */ public String getSaleReferenceID() { return saleReferenceID; } /** * Sets the value of the saleReferenceID property. * * @param value allowed object is {@link String } */ public void setSaleReferenceID(String value) { saleReferenceID = value; } /** * Gets the value of the tokenRequestedType property. * * @return possible object is {@link TokenRequestedType } */ public TokenRequestedType getTokenRequestedType() { return tokenRequestedType; } /** * Sets the value of the tokenRequestedType property. * * @param value allowed object is {@link TokenRequestedType } */ public void setTokenRequestedType(TokenRequestedType value) { tokenRequestedType = value; } /** * Gets the value of the customerOrderID property. * * @return possible object is {@link String } */ public String getCustomerOrderID() { return customerOrderID; } /** * Sets the value of the customerOrderID property. * * @param value allowed object is {@link String } */ public void setCustomerOrderID(String value) { customerOrderID = value; } /** * Gets the value of the customerOrderReq 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 customerOrderReq property. *

*

* For example, to add a new item, do as follows: *

     *    getCustomerOrderReq().add(newItem);
     * 
*

*

*

* Objects of the following type(s) are allowed in the list * {@link CustomerOrderReqType } * * @return the customer order req */ public List getCustomerOrderReq() { if (customerOrderReq == null) { customerOrderReq = new ArrayList<>(); } return customerOrderReq; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy