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

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

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

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.math.BigDecimal;


/**
 * Definition: Information related to a currency conversion -- Usage: A currency conversion occurred in the payment, and the merchant needs to know information related to this conversion (e.g. to print on the sale receipt)
 *
 * 

Java class for CurrencyConversion complex type. * *

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

 * <complexType name="CurrencyConversion">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="ConvertedAmount" type="{}Amount"/>
 *         <element name="Commission" type="{}SimpleAmountType" minOccurs="0"/>
 *         <element name="Declaration" type="{}Declaration" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="CustomerApprovedFlag" type="{}CustomerApprovedFlag" default="true" />
 *       <attribute name="Rate" type="{}Rate" />
 *       <attribute name="Markup" type="{}Markup" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CurrencyConversion", propOrder = { "convertedAmount", "commission", "declaration" }) public class CurrencyConversion { /** * The Converted amount. */ @XmlElement(name = "ConvertedAmount", required = true) protected Amount convertedAmount; /** * The Commission. */ @XmlElement(name = "Commission") protected BigDecimal commission; /** * The Declaration. */ @XmlElement(name = "Declaration") protected String declaration; /** * The Customer approved flag. */ @XmlAttribute(name = "CustomerApprovedFlag") protected Boolean customerApprovedFlag; /** * The Rate. */ @XmlAttribute(name = "Rate") protected BigDecimal rate; /** * The Markup. */ @XmlAttribute(name = "Markup") protected BigDecimal markup; /** * Gets the value of the convertedAmount property. * * @return possible object is {@link Amount } */ public Amount getConvertedAmount() { return convertedAmount; } /** * Sets the value of the convertedAmount property. * * @param value allowed object is {@link Amount } */ public void setConvertedAmount(Amount value) { this.convertedAmount = value; } /** * Gets the value of the commission property. * * @return possible object is {@link BigDecimal } */ public BigDecimal getCommission() { return commission; } /** * Sets the value of the commission property. * * @param value allowed object is {@link BigDecimal } */ public void setCommission(BigDecimal value) { this.commission = value; } /** * Gets the value of the declaration property. * * @return possible object is {@link String } */ public String getDeclaration() { return declaration; } /** * Sets the value of the declaration property. * * @param value allowed object is {@link String } */ public void setDeclaration(String value) { this.declaration = value; } /** * Gets the value of the customerApprovedFlag property. * * @return possible object is {@link Boolean } */ public boolean isCustomerApprovedFlag() { if (customerApprovedFlag == null) { return true; } else { return customerApprovedFlag; } } /** * Sets the value of the customerApprovedFlag property. * * @param value allowed object is {@link Boolean } */ public void setCustomerApprovedFlag(Boolean value) { this.customerApprovedFlag = value; } /** * Gets the value of the rate property. * * @return possible object is {@link BigDecimal } */ public BigDecimal getRate() { return rate; } /** * Sets the value of the rate property. * * @param value allowed object is {@link BigDecimal } */ public void setRate(BigDecimal value) { this.rate = value; } /** * Gets the value of the markup property. * * @return possible object is {@link BigDecimal } */ public BigDecimal getMarkup() { return markup; } /** * Sets the value of the markup property. * * @param value allowed object is {@link BigDecimal } */ public void setMarkup(BigDecimal value) { this.markup = value; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy