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

com.adyen.model.nexo.Rebates 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: Rebate form to an award;
 *
 * 

Java class for Rebates complex type. * *

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

 * <complexType name="Rebates">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="TotalRebate" type="{}SimpleAmountType" minOccurs="0"/>
 *         <element name="RebateLabel" type="{}RebateLabel" minOccurs="0"/>
 *         <element name="SaleItemRebate" type="{}SaleItemRebate" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Rebates", propOrder = { "totalRebate", "rebateLabel", "saleItemRebate" }) public class Rebates { /** * The Total rebate. */ @XmlElement(name = "TotalRebate") @Schema(description = "The global awarded amount that is not attached to an item. --Rule: If rebate on the total amount for this loyalty program") protected BigDecimal totalRebate; /** * The Rebate label. */ @XmlElement(name = "RebateLabel") @Schema(description = "Short text to qualify a rebate on an line item. --Rule: If provided by the Acquirer") protected String rebateLabel; /** * The Sale item rebate. */ @XmlElement(name = "SaleItemRebate") @Schema(description = "The awarded amount that is attached to an item as a rebate. --Rule: only items with rebate (identified by ItemID)") protected List saleItemRebate; /** * Gets the value of the totalRebate property. * * @return possible object is {@link BigDecimal } */ public BigDecimal getTotalRebate() { return totalRebate; } /** * Sets the value of the totalRebate property. * * @param value allowed object is {@link BigDecimal } */ public void setTotalRebate(BigDecimal value) { this.totalRebate = value; } /** * Gets the value of the rebateLabel property. * * @return possible object is {@link String } */ public String getRebateLabel() { return rebateLabel; } /** * Sets the value of the rebateLabel property. * * @param value allowed object is {@link String } */ public void setRebateLabel(String value) { this.rebateLabel = value; } /** * Gets the value of the saleItemRebate 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 saleItemRebate property. *

*

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

     *    getSaleItemRebate().add(newItem);
     * 
*

*

*

* Objects of the following type(s) are allowed in the list * {@link SaleItemRebate } * * @return the sale item rebate */ public List getSaleItemRebate() { if (saleItemRebate == null) { saleItemRebate = new ArrayList<>(); } return this.saleItemRebate; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy