com.adyen.model.nexo.Rebates Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adyen-java-api-library Show documentation
Show all versions of adyen-java-api-library Show documentation
Adyen API Client Library for Java
package com.adyen.model.nexo;
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")
protected BigDecimal totalRebate;
/**
* The Rebate label.
*/
@XmlElement(name = "RebateLabel")
protected String rebateLabel;
/**
* The Sale item rebate.
*/
@XmlElement(name = "SaleItemRebate")
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;
}
}