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

com.adyen.model.nexo.CurrencyConversion 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.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) @Schema(description = "Amount after a currency conversion.") protected Amount convertedAmount; /** * The Commission. */ @XmlElement(name = "Commission") @Schema(description = "Commission for a service. --Rule: Commission of the conversion.") protected BigDecimal commission; /** * The Declaration. */ @XmlElement(name = "Declaration") @Schema(description = "Declaration to present to the customer or the cashier for validation. --Rule: If a declaration has to be presented to the customer") protected String declaration; /** * The Customer approved flag. */ @XmlElement(name = "CustomerApprovedFlag") @Schema(description = "Notify if the customer has approved something.") protected Boolean customerApprovedFlag; /** * The Rate. */ @XmlElement(name = "Rate") @Schema(description = "Rate of currency conversion. --Rule: Conversion rate of the target currency against the source currency.") protected BigDecimal rate; /** * The Markup. */ @XmlElement(name = "Markup") @Schema(description = "Markup of an amount in percentage. --Rule: Markup of the conversion.") 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