public class Transfer extends ApiResource implements MetadataStore<Transfer>, BalanceTransactionSource
ApiResource.RequestMethod
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Transfer() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
static Transfer |
create(java.util.Map<java.lang.String,java.lang.Object> params)
To send funds from your Stripe account to a connected account, you create a new transfer
object.
|
static Transfer |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
To send funds from your Stripe account to a connected account, you create a new transfer
object.
|
static Transfer |
create(TransferCreateParams params)
To send funds from your Stripe account to a connected account, you create a new transfer
object.
|
static Transfer |
create(TransferCreateParams params,
RequestOptions options)
To send funds from your Stripe account to a connected account, you create a new transfer
object.
|
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmount()
Amount in %s to be transferred.
|
java.lang.Long |
getAmountReversed()
Amount in %s reversed (can be less than the amount attribute on the transfer if a partial
reversal was issued).
|
java.lang.String |
getBalanceTransaction()
Get ID of expandable
balanceTransaction object. |
BalanceTransaction |
getBalanceTransactionObject()
Get expanded
balanceTransaction . |
java.lang.Long |
getCreated()
Time that this record of the transfer was first created.
|
java.lang.String |
getCurrency()
Three-letter ISO currency code,
in lowercase.
|
java.lang.String |
getDescription()
An arbitrary string attached to the object.
|
java.lang.String |
getDestination()
Get ID of expandable
destination object. |
Account |
getDestinationObject()
Get expanded
destination . |
java.lang.String |
getDestinationPayment()
Get ID of expandable
destinationPayment object. |
Charge |
getDestinationPaymentObject()
Get expanded
destinationPayment . |
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.
|
TransferReversalCollection |
getReversals()
A list of reversals that have been applied to the transfer.
|
java.lang.Boolean |
getReversed()
Whether the transfer has been fully reversed.
|
java.lang.String |
getSourceTransaction()
Get ID of expandable
sourceTransaction object. |
Charge |
getSourceTransactionObject()
Get expanded
sourceTransaction . |
java.lang.String |
getSourceType()
The source balance this transfer came from.
|
java.lang.String |
getTransferGroup()
A string that identifies this transaction as part of a group.
|
int |
hashCode() |
static TransferCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of existing transfers sent to connected accounts.
|
static TransferCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of existing transfers sent to connected accounts.
|
static TransferCollection |
list(TransferListParams params)
Returns a list of existing transfers sent to connected accounts.
|
static TransferCollection |
list(TransferListParams params,
RequestOptions options)
Returns a list of existing transfers sent to connected accounts.
|
static Transfer |
retrieve(java.lang.String transfer)
Retrieves the details of an existing transfer.
|
static Transfer |
retrieve(java.lang.String transfer,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the details of an existing transfer.
|
static Transfer |
retrieve(java.lang.String transfer,
RequestOptions options)
Retrieves the details of an existing transfer.
|
static Transfer |
retrieve(java.lang.String transfer,
TransferRetrieveParams params,
RequestOptions options)
Retrieves the details of an existing transfer.
|
void |
setAmount(java.lang.Long amount)
Amount in %s to be transferred.
|
void |
setAmountReversed(java.lang.Long amountReversed)
Amount in %s reversed (can be less than the amount attribute on the transfer if a partial
reversal was issued).
|
void |
setBalanceTransaction(java.lang.String id) |
void |
setBalanceTransactionObject(BalanceTransaction expandableObject) |
void |
setCreated(java.lang.Long created)
Time that this record of the transfer was first created.
|
void |
setCurrency(java.lang.String currency)
Three-letter ISO currency code,
in lowercase.
|
void |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
void |
setDestination(java.lang.String id) |
void |
setDestinationObject(Account expandableObject) |
void |
setDestinationPayment(java.lang.String id) |
void |
setDestinationPaymentObject(Charge expandableObject) |
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 |
setReversals(TransferReversalCollection reversals)
A list of reversals that have been applied to the transfer.
|
void |
setReversed(java.lang.Boolean reversed)
Whether the transfer has been fully reversed.
|
void |
setSourceTransaction(java.lang.String id) |
void |
setSourceTransactionObject(Charge expandableObject) |
void |
setSourceType(java.lang.String sourceType)
The source balance this transfer came from.
|
void |
setTransferGroup(java.lang.String transferGroup)
A string that identifies this transaction as part of a group.
|
Transfer |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the specified transfer by setting the values of the parameters passed.
|
Transfer |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates the specified transfer by setting the values of the parameters passed.
|
Transfer |
update(TransferUpdateParams params)
Updates the specified transfer by setting the values of the parameters passed.
|
Transfer |
update(TransferUpdateParams params,
RequestOptions options)
Updates the specified transfer by setting the values of the parameters passed.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLastResponse, setLastResponse
public java.lang.String getBalanceTransaction()
balanceTransaction
object.public void setBalanceTransaction(java.lang.String id)
public BalanceTransaction getBalanceTransactionObject()
balanceTransaction
.public void setBalanceTransactionObject(BalanceTransaction expandableObject)
public java.lang.String getDestination()
destination
object.public void setDestination(java.lang.String id)
public Account getDestinationObject()
destination
.public void setDestinationObject(Account expandableObject)
public java.lang.String getDestinationPayment()
destinationPayment
object.public void setDestinationPayment(java.lang.String id)
public Charge getDestinationPaymentObject()
destinationPayment
.public void setDestinationPaymentObject(Charge expandableObject)
public java.lang.String getSourceTransaction()
sourceTransaction
object.public void setSourceTransaction(java.lang.String id)
public Charge getSourceTransactionObject()
sourceTransaction
.public void setSourceTransactionObject(Charge expandableObject)
public static Transfer create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static Transfer create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static Transfer create(TransferCreateParams params) throws StripeException
StripeException
public static Transfer create(TransferCreateParams params, RequestOptions options) throws StripeException
StripeException
public static TransferCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static TransferCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static TransferCollection list(TransferListParams params) throws StripeException
StripeException
public static TransferCollection list(TransferListParams params, RequestOptions options) throws StripeException
StripeException
public static Transfer retrieve(java.lang.String transfer) throws StripeException
StripeException
public static Transfer retrieve(java.lang.String transfer, RequestOptions options) throws StripeException
StripeException
public static Transfer retrieve(java.lang.String transfer, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static Transfer retrieve(java.lang.String transfer, TransferRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public Transfer update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
This request accepts only metadata as an argument.
update
in interface MetadataStore<Transfer>
StripeException
public Transfer update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
This request accepts only metadata as an argument.
update
in interface MetadataStore<Transfer>
StripeException
public Transfer update(TransferUpdateParams params) throws StripeException
This request accepts only metadata as an argument.
StripeException
public Transfer update(TransferUpdateParams params, RequestOptions options) throws StripeException
This request accepts only metadata as an argument.
StripeException
public java.lang.Long getAmount()
public java.lang.Long getAmountReversed()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getDescription()
public java.lang.Boolean getLivemode()
true
if the object exists in live mode or the value false
if the
object exists in test mode.public java.lang.String getObject()
Equal to transfer
.
public TransferReversalCollection getReversals()
public java.lang.Boolean getReversed()
public java.lang.String getSourceType()
card
, fpx
, or bank_account
.public java.lang.String getTransferGroup()
public void setAmount(java.lang.Long amount)
public void setAmountReversed(java.lang.Long amountReversed)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setDescription(java.lang.String description)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
true
if the object exists in live mode or the value false
if the
object exists in test mode.public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
Equal to transfer
.
public void setReversals(TransferReversalCollection reversals)
public void setReversed(java.lang.Boolean reversed)
public void setSourceType(java.lang.String sourceType)
card
, fpx
, or bank_account
.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<Transfer>