Package com.stripe.model
Class PaymentAttemptRecord.Amount
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.PaymentAttemptRecord.Amount
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- PaymentAttemptRecord
A representation of an amount of money, consisting of an amount and a currency.
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThree-letter ISO currency code, in lowercase.getValue()A positive integer representing the amount in the currency's minor unit.inthashCode()voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidA positive integer representing the amount in the currency's minor unit.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Amount
public Amount()
-
-
Method Details
-
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getValue
A positive integer representing the amount in the currency's minor unit. For example,100can represent 1 USD or 100 JPY. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setValue
A positive integer representing the amount in the currency's minor unit. For example,100can represent 1 USD or 100 JPY. -
equals
-
canEqual
-
hashCode
public int hashCode()
-