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

com.mangopay.entities.ConversionRate Maven / Gradle / Ivy

There is a newer version: 2.42.0
Show newest version
package com.mangopay.entities;

import com.google.gson.annotations.SerializedName;
import com.mangopay.core.Dto;

import java.util.ArrayList;

public class ConversionRate extends Dto {

    /**
     * The sell currency – the currency of the wallet to be debited.
     */
    @SerializedName("DebitedCurrency")
    public String debitedCurrency;

    /**
     * The buy currency – the currency of the wallet to be credited.
     */
    @SerializedName("CreditedCurrency")
    public String creditedCurrency;

    /**
     * The market rate plus Mangopay's commission,
     * charged during the platform's billing cycle. This is an indicative rate.
     */
    @SerializedName("ClientRate")
    public String clientRate;

    /**
     * The rate used for the conversion, excluding Mangopay's commission.
     */
    @SerializedName("MarketRate")
    public String marketRate;

    public String getDebitedCurrency() {
        return debitedCurrency;
    }

    public void setDebitedCurrency(String debitedCurrency) {
        this.debitedCurrency = debitedCurrency;
    }

    public String getCreditedCurrency() {
        return creditedCurrency;
    }

    public void setCreditedCurrency(String creditedCurrency) {
        this.creditedCurrency = creditedCurrency;
    }

    public String getClientRate() {
        return clientRate;
    }

    public void setClientRate(String clientRate) {
        this.clientRate = clientRate;
    }

    public String getMarketRate() {
        return marketRate;
    }

    public void setMarketRate(String marketRate) {
        this.marketRate = marketRate;
    }

    @Override
    public ArrayList getReadOnlyProperties() {
        ArrayList result = super.getReadOnlyProperties();

        result.add("ClientRate");
        result.add("MarketRate");

        return result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy