public class Topup extends ApiResource implements MetadataStore<Topup>, BalanceTransactionSource
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Topup() |
Modifier and Type | Method and Description |
---|---|
Topup |
cancel()
Cancels a top-up.
|
Topup |
cancel(java.util.Map<java.lang.String,java.lang.Object> params)
Cancels a top-up.
|
Topup |
cancel(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Cancels a top-up.
|
Topup |
cancel(RequestOptions options)
Cancels a top-up.
|
Topup |
cancel(TopupCancelParams params)
Cancels a top-up.
|
Topup |
cancel(TopupCancelParams params,
RequestOptions options)
Cancels a top-up.
|
protected boolean |
canEqual(java.lang.Object other) |
static Topup |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Top up the balance of an account.
|
static Topup |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Top up the balance of an account.
|
static Topup |
create(TopupCreateParams params)
Top up the balance of an account.
|
static Topup |
create(TopupCreateParams params,
RequestOptions options)
Top up the balance of an account.
|
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmount()
Amount transferred.
|
java.lang.String |
getBalanceTransaction()
Get id of expandable `balanceTransaction` object.
|
BalanceTransaction |
getBalanceTransactionObject()
Get expanded `balanceTransaction`.
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getCurrency()
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
java.lang.String |
getDescription()
An arbitrary string attached to the object.
|
java.lang.Long |
getExpectedAvailabilityDate()
Date the funds are expected to arrive in your Stripe account for payouts.
|
java.lang.String |
getFailureCode()
Error code explaining reason for top-up failure if available (see [the errors
section](https://stripe.com/docs/api#errors) for a list of codes).
|
java.lang.String |
getFailureMessage()
Message to user further explaining reason for top-up failure if available.
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Boolean |
getLivemode()
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.String |
getObject()
String representing the object's type.
|
Source |
getSource() |
java.lang.String |
getStatementDescriptor()
Extra information about a top-up.
|
java.lang.String |
getStatus()
The status of the top-up is either `canceled`, `failed`, `pending`, `reversed`, or `succeeded`.
|
java.lang.String |
getTransferGroup()
A string that identifies this top-up as part of a group.
|
int |
hashCode() |
static TopupCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of top-ups.
|
static TopupCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of top-ups.
|
static TopupCollection |
list(TopupListParams params)
Returns a list of top-ups.
|
static TopupCollection |
list(TopupListParams params,
RequestOptions options)
Returns a list of top-ups.
|
static Topup |
retrieve(java.lang.String topup)
Retrieves the details of a top-up that has previously been created.
|
static Topup |
retrieve(java.lang.String topup,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the details of a top-up that has previously been created.
|
static Topup |
retrieve(java.lang.String topup,
RequestOptions options)
Retrieves the details of a top-up that has previously been created.
|
static Topup |
retrieve(java.lang.String topup,
TopupRetrieveParams params,
RequestOptions options)
Retrieves the details of a top-up that has previously been created.
|
void |
setAmount(java.lang.Long amount)
Amount transferred.
|
void |
setBalanceTransaction(java.lang.String id) |
void |
setBalanceTransactionObject(BalanceTransaction expandableObject) |
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setCurrency(java.lang.String currency)
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
void |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
void |
setExpectedAvailabilityDate(java.lang.Long expectedAvailabilityDate)
Date the funds are expected to arrive in your Stripe account for payouts.
|
void |
setFailureCode(java.lang.String failureCode)
Error code explaining reason for top-up failure if available (see [the errors
section](https://stripe.com/docs/api#errors) for a list of codes).
|
void |
setFailureMessage(java.lang.String failureMessage)
Message to user further explaining reason for top-up failure if available.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setSource(Source source) |
void |
setStatementDescriptor(java.lang.String statementDescriptor)
Extra information about a top-up.
|
void |
setStatus(java.lang.String status)
The status of the top-up is either `canceled`, `failed`, `pending`, `reversed`, or `succeeded`.
|
void |
setTransferGroup(java.lang.String transferGroup)
A string that identifies this top-up as part of a group.
|
Topup |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the metadata of a top-up.
|
Topup |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates the metadata of a top-up.
|
Topup |
update(TopupUpdateParams params)
Updates the metadata of a top-up.
|
Topup |
update(TopupUpdateParams params,
RequestOptions options)
Updates the metadata of a top-up.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getBalanceTransaction()
public void setBalanceTransaction(java.lang.String id)
public BalanceTransaction getBalanceTransactionObject()
public void setBalanceTransactionObject(BalanceTransaction expandableObject)
public static Topup create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static Topup create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static Topup create(TopupCreateParams params) throws StripeException
StripeException
public static Topup create(TopupCreateParams params, RequestOptions options) throws StripeException
StripeException
public static TopupCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static TopupCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static TopupCollection list(TopupListParams params) throws StripeException
StripeException
public static TopupCollection list(TopupListParams params, RequestOptions options) throws StripeException
StripeException
public static Topup retrieve(java.lang.String topup) throws StripeException
StripeException
public static Topup retrieve(java.lang.String topup, RequestOptions options) throws StripeException
StripeException
public static Topup retrieve(java.lang.String topup, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static Topup retrieve(java.lang.String topup, TopupRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public Topup update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
update
in interface MetadataStore<Topup>
StripeException
public Topup update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
update
in interface MetadataStore<Topup>
StripeException
public Topup update(TopupUpdateParams params) throws StripeException
StripeException
public Topup update(TopupUpdateParams params, RequestOptions options) throws StripeException
StripeException
public Topup cancel() throws StripeException
StripeException
public Topup cancel(RequestOptions options) throws StripeException
StripeException
public Topup cancel(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public Topup cancel(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public Topup cancel(TopupCancelParams params) throws StripeException
StripeException
public Topup cancel(TopupCancelParams params, RequestOptions options) throws StripeException
StripeException
public java.lang.Long getAmount()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getDescription()
public java.lang.Long getExpectedAvailabilityDate()
public java.lang.String getFailureCode()
public java.lang.String getFailureMessage()
public java.lang.Boolean getLivemode()
public java.lang.String getObject()
public Source getSource()
public java.lang.String getStatementDescriptor()
public java.lang.String getStatus()
public java.lang.String getTransferGroup()
public void setAmount(java.lang.Long amount)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setDescription(java.lang.String description)
public void setExpectedAvailabilityDate(java.lang.Long expectedAvailabilityDate)
public void setFailureCode(java.lang.String failureCode)
public void setFailureMessage(java.lang.String failureMessage)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
public void setSource(Source source)
public void setStatementDescriptor(java.lang.String statementDescriptor)
public void setStatus(java.lang.String status)
public void setTransferGroup(java.lang.String transferGroup)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<Topup>