
com.mangopay.core.Money Maven / Gradle / Ivy
package com.mangopay.core;
import com.google.gson.annotations.SerializedName;
import com.mangopay.core.enumerations.CurrencyIso;
/**
* Class represents money value with currency.
*/
public class Money extends Dto {
/**
* Currency code in ISO 4217 standard.
*/
@SerializedName("Currency")
private CurrencyIso currency;
/**
* The currency amount of money, in cents
*/
@SerializedName("Amount")
private int amount;
public Money(CurrencyIso currency, int amount) {
this.currency = currency;
this.amount = amount;
}
public Money() {
}
public CurrencyIso getCurrency() {
return currency;
}
public int getAmount() {
return amount;
}
public Money setCurrency(CurrencyIso currency) {
this.currency = currency;
return this;
}
public Money setAmount(int amount) {
this.amount = amount;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy