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

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

There is a newer version: 38.1.0
Show newest version
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: Content of the Reversal Response messageType. -- Usage: It conveys Information related to the reversal processed by the POI System.
 *
 * 

Java class for ReversalResponse complex type. * *

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

 * <complexType name="ReversalResponse">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="Response" type="{}Response"/>
 *         <element name="POIData" type="{}POIData" minOccurs="0"/>
 *         <element name="OriginalPOITransaction" type="{}OriginalPOITransaction" minOccurs="0"/>
 *         <element name="PaymentReceipt" type="{}PaymentReceipt" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="ReversedAmount" type="{}SimpleAmountType" />
 *       <attribute name="CustomerOrderID" type="{}CustomerOrderID" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ReversalResponse", propOrder = { "response", "poiData", "originalPOITransaction", "paymentReceipt" }) public class ReversalResponse { /** * The Response. */ @XmlElement(name = "Response", required = true) @Schema(description = "Result of a message request processing.") protected Response response; /** * The Poi data. */ @XmlElement(name = "POIData") @Schema(description = "Data related to the POI System. --Rule: If Result is Success") protected POIData poiData; /** * The Original poi transaction. */ @XmlElement(name = "OriginalPOITransaction") @Schema(description = "Identification of a previous POI transaction. --Rule: Present if POITransactionID absent in the request") protected OriginalPOITransaction originalPOITransaction; /** * The Payment receipt. */ @XmlElement(name = "PaymentReceipt") @Schema(description = "Customer or Merchant payment receipt. --Rule: If Basic profile implementation with no printer on the POI.") protected List paymentReceipt; /** * The Reversed amount. */ @XmlElement(name = "ReversedAmount") @Schema(description = "Amount of the payment or loyalty to reverse.. --Rule: Copy") protected BigDecimal reversedAmount; /** * The Customer order id. */ @XmlElement(name = "CustomerOrderID") @Schema(description = "Customer order attached to a card, recorded in the POI system. --Rule: If the reversal is performed inside a customer order.") protected String customerOrderID; /** * Gets the value of the response property. * * @return possible object is {@link Response } */ public Response getResponse() { return response; } /** * Sets the value of the response property. * * @param value allowed object is {@link Response } */ public void setResponse(Response value) { this.response = value; } /** * Gets the value of the poiData property. * * @return possible object is {@link POIData } */ public POIData getPOIData() { return poiData; } /** * Sets the value of the poiData property. * * @param value allowed object is {@link POIData } */ public void setPOIData(POIData value) { this.poiData = value; } /** * 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 paymentReceipt 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 paymentReceipt property. *

*

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

     *    getPaymentReceipt().add(newItem);
     * 
*

*

*

* Objects of the following type(s) are allowed in the list * {@link PaymentReceipt } * * @return the payment receipt */ public List getPaymentReceipt() { if (paymentReceipt == null) { paymentReceipt = new ArrayList<>(); } return this.paymentReceipt; } /** * Gets the value of the reversedAmount property. * * @return possible object is {@link BigDecimal } */ public BigDecimal getReversedAmount() { return reversedAmount; } /** * Sets the value of the reversedAmount property. * * @param value allowed object is {@link BigDecimal } */ public void setReversedAmount(BigDecimal value) { this.reversedAmount = 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) { this.customerOrderID = value; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy