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

com.adyen.model.nexo.PaymentRequest 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 Payment Request messageType. -- Usage: It conveys Information related to the Payment transaction to process
 *
 * 

Java class for PaymentRequest complex type. * *

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

 * <complexType name="PaymentRequest">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="SaleData" type="{}SaleData"/>
 *         <element name="PaymentTransaction" type="{}PaymentTransaction"/>
 *         <element name="PaymentData" type="{}PaymentData" minOccurs="0"/>
 *         <element name="LoyaltyData" type="{}LoyaltyData" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "PaymentRequest", propOrder = { "saleData", "paymentTransaction", "paymentData", "loyaltyData" }) public class PaymentRequest { /** * The Sale data. */ @XmlElement(name = "SaleData", required = true) @Schema(description = "Data related to the Sale System.") protected SaleData saleData; /** * The Payment transaction. */ @XmlElement(name = "PaymentTransaction", required = true) @Schema(description = "Data related to the payment and loyalty transaction.") protected PaymentTransaction paymentTransaction; /** * The Payment data. */ @XmlElement(name = "PaymentData") @Schema(description = "Data related to the payment transaction. --Rule: If one data element is present") protected PaymentData paymentData; /** * The Loyalty data. */ @XmlElement(name = "LoyaltyData") @Schema(description = "Data related to a Loyalty program or account. --Rule: Loyalty cards used with the payment transaction and read by the Sale System") 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 paymentTransaction property. * * @return possible object is {@link PaymentTransaction } */ public PaymentTransaction getPaymentTransaction() { return paymentTransaction; } /** * Sets the value of the paymentTransaction property. * * @param value allowed object is {@link PaymentTransaction } */ public void setPaymentTransaction(PaymentTransaction value) { this.paymentTransaction = value; } /** * Gets the value of the paymentData property. * * @return possible object is {@link PaymentData } */ public PaymentData getPaymentData() { return paymentData; } /** * Sets the value of the paymentData property. * * @param value allowed object is {@link PaymentData } */ public void setPaymentData(PaymentData value) { this.paymentData = 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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy