public class Transfer extends APIResource implements MetadataStore<Transfer>, HasId
APIResource.RequestMethod, APIResource.RequestTypeCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Transfer() |
| Modifier and Type | Method and Description |
|---|---|
static TransferCollection |
all(java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
Use the
list(Map) method instead.
This method will be removed in the next major version. |
static TransferCollection |
all(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Deprecated.
Use the
list(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
static TransferCollection |
all(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey)
Deprecated.
Use the
list(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
Transfer |
cancel()
Deprecated.
Use the {#link Payout#cancel()} method instead.
|
Transfer |
cancel(RequestOptions options)
Deprecated.
Use the {#link Payout#cancel(RequestOptions)} method instead.
|
Transfer |
cancel(java.lang.String apiKey)
Deprecated.
Use the
cancel(RequestOptions) method instead.
This method will be removed in the next major version. |
protected boolean |
canEqual(java.lang.Object other) |
static Transfer |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Create a transfer.
|
static Transfer |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Create a transfer.
|
static Transfer |
create(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey)
Deprecated.
Use the
create(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
boolean |
equals(java.lang.Object o) |
BankAccount |
getAccount()
Deprecated.
Prefer using the
bankAccount attribute instead. |
java.lang.Long |
getAmount() |
java.lang.Long |
getAmountReversed() |
java.lang.String |
getApplicationFee() |
java.lang.String |
getBalanceTransaction() |
BalanceTransaction |
getBalanceTransactionObject() |
BankAccount |
getBankAccount() |
java.lang.Long |
getCreated() |
java.lang.String |
getCurrency() |
java.lang.Long |
getDate() |
java.lang.String |
getDescription() |
java.lang.String |
getDestination() |
Account |
getDestinationObject() |
java.lang.String |
getDestinationPayment() |
Charge |
getDestinationPaymentObject() |
java.lang.String |
getFailureCode() |
java.lang.String |
getFailureMessage() |
java.lang.String |
getId() |
java.lang.Boolean |
getLivemode() |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata() |
java.lang.String |
getObject() |
java.util.List<java.lang.String> |
getOtherTransfers()
Deprecated.
Prefer using the
BalanceTransaction.list(java.util.Map<java.lang.String, java.lang.Object>) method instead. |
java.lang.String |
getRecipient()
Deprecated.
|
TransferReversalCollection |
getReversals()
Returns the
reversals list. |
java.lang.Boolean |
getReversed() |
java.lang.String |
getSourceTransaction() |
Charge |
getSourceTransactionObject() |
java.lang.String |
getSourceType() |
java.lang.String |
getStatementDescription()
Deprecated.
Prefer using the
statementDescriptor attribute instead. |
java.lang.String |
getStatementDescriptor() |
java.lang.String |
getStatus() |
Summary |
getSummary()
Deprecated.
Prefer using the
BalanceTransaction.list(java.util.Map<java.lang.String, java.lang.Object>) method instead. |
java.lang.String |
getTransferGroup() |
java.lang.String |
getType() |
int |
hashCode() |
static TransferCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
List all transfers.
|
static TransferCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
List all transfers.
|
static Transfer |
retrieve(java.lang.String id)
Retrive a transfer.
|
static Transfer |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrive a transfer.
|
static Transfer |
retrieve(java.lang.String id,
RequestOptions options)
Retrive a transfer.
|
static Transfer |
retrieve(java.lang.String id,
java.lang.String apiKey)
Deprecated.
Use the
retrieve(String, RequestOptions) method instead.
This method will be removed in the next major version. |
void |
setAccount(BankAccount account)
Deprecated.
Prefer using the
bankAccount attribute instead. |
void |
setAmount(java.lang.Long amount) |
void |
setAmountReversed(java.lang.Long amountReversed) |
void |
setApplicationFee(java.lang.String applicationFee) |
void |
setBalanceTransaction(java.lang.String balanceTransactionID) |
void |
setBalanceTransactionObject(BalanceTransaction c) |
void |
setBankAccount(BankAccount bankAccount) |
void |
setCreated(java.lang.Long created) |
void |
setCurrency(java.lang.String currency) |
void |
setDate(java.lang.Long date) |
void |
setDescription(java.lang.String description) |
void |
setDestination(java.lang.String destinationID) |
void |
setDestinationObject(Account c) |
void |
setDestinationPayment(java.lang.String destinationPaymentID) |
void |
setDestinationPaymentObject(Charge destinationPayment) |
void |
setFailureCode(java.lang.String failureCode) |
void |
setFailureMessage(java.lang.String failureMessage) |
void |
setId(java.lang.String id) |
void |
setLivemode(java.lang.Boolean livemode) |
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata) |
void |
setObject(java.lang.String object) |
void |
setOtherTransfers(java.util.List<java.lang.String> otherTransfers)
Deprecated.
Prefer using the
BalanceTransaction.list(java.util.Map<java.lang.String, java.lang.Object>) method instead. |
void |
setRecipient(java.lang.String recipient)
Deprecated.
|
void |
setReversals(TransferReversalCollection reversals) |
void |
setReversed(java.lang.Boolean reversed) |
void |
setSourceTransaction(java.lang.String sourceTransactionID) |
void |
setSourceTransactionObject(Charge sourceTransaction) |
void |
setSourceType(java.lang.String sourceType) |
void |
setStatementDescription(java.lang.String statementDescription)
Deprecated.
Prefer using the
statementDescriptor attribute instead. |
void |
setStatementDescriptor(java.lang.String statementDescriptor) |
void |
setStatus(java.lang.String status) |
void |
setSummary(Summary summary)
Deprecated.
Prefer using the
BalanceTransaction.list(java.util.Map<java.lang.String, java.lang.Object>) method instead. |
void |
setTransferGroup(java.lang.String transferGroup) |
void |
setType(java.lang.String type) |
TransferTransactionCollection |
transactions(java.util.Map<java.lang.String,java.lang.Object> params)
Deprecated.
Prefer using the
BalanceTransaction.list(Map) method with
the payout parameter. |
TransferTransactionCollection |
transactions(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Deprecated.
Prefer using the
BalanceTransaction.list(Map, RequestOptions) method with
the payout parameter. |
TransferTransactionCollection |
transactions(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey)
Deprecated.
Use the
transactions(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
Transfer |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Update a transfer.
|
Transfer |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Update a transfer.
|
Transfer |
update(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey)
Deprecated.
Use the
update(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, requestCollection, setExpandableFieldID, setStripeResponseGetter, singleClassURL, singleClassURL, subresourceURL, urlEncodeequals, getLastResponse, setLastResponse, toJson, toStringpublic java.lang.String getBalanceTransaction()
public void setBalanceTransaction(java.lang.String balanceTransactionID)
public BalanceTransaction getBalanceTransactionObject()
public void setBalanceTransactionObject(BalanceTransaction c)
public java.lang.String getDestination()
public void setDestination(java.lang.String destinationID)
public Account getDestinationObject()
public void setDestinationObject(Account c)
public java.lang.String getDestinationPayment()
public void setDestinationPayment(java.lang.String destinationPaymentID)
public Charge getDestinationPaymentObject()
public void setDestinationPaymentObject(Charge destinationPayment)
public TransferReversalCollection getReversals()
reversals list.reversals listpublic java.lang.String getSourceTransaction()
public void setSourceTransaction(java.lang.String sourceTransactionID)
public Charge getSourceTransactionObject()
public void setSourceTransactionObject(Charge sourceTransaction)
@Deprecated public static TransferCollection all(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
list(Map) method instead.
This method will be removed in the next major version.@Deprecated public static TransferCollection all(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
list(Map, RequestOptions) method instead.
This method will be removed in the next major version.@Deprecated public static TransferCollection all(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
list(Map, RequestOptions) method instead.
This method will be removed in the next major version.@Deprecated public Transfer cancel() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public Transfer cancel(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public Transfer cancel(java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
cancel(RequestOptions) method instead.
This method will be removed in the next major version.public static Transfer create(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Transfer create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Transfer create(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
create(Map, RequestOptions) method instead.
This method will be removed in the next major version.public static TransferCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static TransferCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Transfer retrieve(java.lang.String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Transfer retrieve(java.lang.String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Transfer retrieve(java.lang.String id, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
retrieve(String, RequestOptions) method instead.
This method will be removed in the next major version.public static Transfer retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public TransferTransactionCollection transactions(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
BalanceTransaction.list(Map) method with
the payout parameter.@Deprecated public TransferTransactionCollection transactions(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
BalanceTransaction.list(Map, RequestOptions) method with
the payout parameter.@Deprecated public TransferTransactionCollection transactions(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
transactions(Map, RequestOptions) method instead.
This method will be removed in the next major version.public Transfer update(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Transfer>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIExceptionpublic Transfer update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Transfer>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIException@Deprecated public Transfer update(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update(Map, RequestOptions) method instead.
This method will be removed in the next major version.public java.lang.String getObject()
public java.lang.Long getAmount()
public java.lang.Long getAmountReversed()
public java.lang.String getApplicationFee()
public BankAccount getBankAccount()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.Long getDate()
public java.lang.String getDescription()
public java.lang.String getFailureCode()
public java.lang.String getFailureMessage()
public java.lang.Boolean getLivemode()
public java.lang.Boolean getReversed()
public java.lang.String getSourceType()
public java.lang.String getStatementDescriptor()
public java.lang.String getStatus()
public java.lang.String getTransferGroup()
public java.lang.String getType()
@Deprecated public BankAccount getAccount()
bankAccount attribute instead.account attribute.account attribute@Deprecated public java.util.List<java.lang.String> getOtherTransfers()
BalanceTransaction.list(java.util.Map<java.lang.String, java.lang.Object>) method instead.other_transfers attribute.other_transfers attribute@Deprecated public java.lang.String getRecipient()
@Deprecated public java.lang.String getStatementDescription()
statementDescriptor attribute instead.statement_description attribute.statement_description attribute@Deprecated public Summary getSummary()
BalanceTransaction.list(java.util.Map<java.lang.String, java.lang.Object>) method instead.summary attribute.summary attributepublic void setId(java.lang.String id)
public void setObject(java.lang.String object)
public void setAmount(java.lang.Long amount)
public void setAmountReversed(java.lang.Long amountReversed)
public void setApplicationFee(java.lang.String applicationFee)
public void setBankAccount(BankAccount bankAccount)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setDate(java.lang.Long date)
public void setDescription(java.lang.String description)
public void setFailureCode(java.lang.String failureCode)
public void setFailureMessage(java.lang.String failureMessage)
public void setLivemode(java.lang.Boolean livemode)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setReversals(TransferReversalCollection reversals)
public void setReversed(java.lang.Boolean reversed)
public void setSourceType(java.lang.String sourceType)
public void setStatementDescriptor(java.lang.String statementDescriptor)
public void setStatus(java.lang.String status)
public void setTransferGroup(java.lang.String transferGroup)
public void setType(java.lang.String type)
@Deprecated public void setAccount(BankAccount account)
bankAccount attribute instead.account attribute.@Deprecated public void setOtherTransfers(java.util.List<java.lang.String> otherTransfers)
BalanceTransaction.list(java.util.Map<java.lang.String, java.lang.Object>) method instead.other_transfers attribute.@Deprecated public void setRecipient(java.lang.String recipient)
@Deprecated public void setStatementDescription(java.lang.String statementDescription)
statementDescriptor attribute instead.statement_description attribute.@Deprecated public void setSummary(Summary summary)
BalanceTransaction.list(java.util.Map<java.lang.String, java.lang.Object>) method instead.summary attribute.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata in interface MetadataStore<Transfer>