public class MoneyLike extends GoPayResponse
| Constructor | Description |
|---|---|
MoneyLike(BigInteger amount,
String currency) |
| Modifier and Type | Method | Description |
|---|---|---|
org.joda.money.Money |
asJodaMoney() |
Convert this instance to its Joda Money equivalent
|
int |
compareTo(MoneyLike other) |
Compares this to another instance of MoneyLike
|
boolean |
equals(Object obj) |
|
BigInteger |
getAmount() |
|
String |
getCurrency() |
|
MoneyLike |
minus(BigInteger amountToSubtract) |
Subtraction operation.
|
MoneyLike |
minus(MoneyLike other) |
Subtraction operation between two instances of MoneyLike
|
MoneyLike |
plus(BigInteger amountToAdd) |
Addition operation.
|
MoneyLike |
plus(MoneyLike other) |
Addition operation between two instances of MoneyLike.
|
getIdempotencyStatus, setIdempotencyStatuspublic MoneyLike(BigInteger amount, String currency)
public BigInteger getAmount()
public String getCurrency()
public org.joda.money.Money asJodaMoney()
public int compareTo(MoneyLike other) throws SDKException
other - SDKException - if the currencies differ.public MoneyLike plus(BigInteger amountToAdd)
amountToAdd - public MoneyLike plus(MoneyLike other) throws SDKException
other - SDKException - if the currencies differ.public MoneyLike minus(BigInteger amountToSubtract)
amountToSubtract - public MoneyLike minus(MoneyLike other) throws SDKException
other - SDKException - if the currencies differ.Copyright © 2018 The Apache Software Foundation. All rights reserved.