HasId, HasSourceTypeData, MetadataStore<ExternalAccount>public class Source extends ExternalAccount implements HasSourceTypeData
| Modifier and Type | Class | Description |
|---|---|---|
static class |
Source.CodeVerificationFlow |
|
static class |
Source.Owner |
|
static class |
Source.ReceiverFlow |
|
static class |
Source.RedirectFlow |
ApiResource.RequestMethod, ApiResource.RequestTypeCHARSET, GSONPRETTY_PRINT_GSON| Constructor | Description |
|---|---|
Source() |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
canEqual(java.lang.Object other) |
|
static Source |
create(java.util.Map<java.lang.String,java.lang.Object> params) |
Create a source.
|
static Source |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Create a source.
|
Source |
delete(RequestOptions options) |
Source objects cannot be deleted.
|
Source |
detach() |
Detach a source.
|
Source |
detach(java.util.Map<java.lang.String,java.lang.Object> params) |
Detach a source.
|
Source |
detach(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Detach a source.
|
boolean |
equals(java.lang.Object o) |
|
java.lang.Long |
getAmount() |
|
java.lang.String |
getClientSecret() |
|
Source.CodeVerificationFlow |
getCodeVerification() |
|
java.lang.Long |
getCreated() |
|
java.lang.String |
getCurrency() |
|
java.lang.String |
getFlow() |
|
java.lang.Boolean |
getLivemode() |
|
Source.Owner |
getOwner() |
|
Source.ReceiverFlow |
getReceiver() |
|
Source.RedirectFlow |
getRedirect() |
|
java.lang.String |
getSourceInstanceUrl() |
|
java.lang.String |
getStatementDescriptor() |
|
java.lang.String |
getStatus() |
|
java.lang.String |
getType() |
|
java.util.Map<java.lang.String,java.lang.String> |
getTypeData() |
|
java.lang.String |
getUsage() |
|
int |
hashCode() |
|
static Source |
retrieve(java.lang.String id) |
Retrieve a source.
|
static Source |
retrieve(java.lang.String id,
RequestOptions options) |
Retrieve a source.
|
static Source |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Retrieve a source.
|
void |
setAmount(java.lang.Long amount) |
|
void |
setClientSecret(java.lang.String clientSecret) |
|
void |
setCodeVerification(Source.CodeVerificationFlow codeVerification) |
|
void |
setCreated(java.lang.Long created) |
|
void |
setCurrency(java.lang.String currency) |
|
void |
setFlow(java.lang.String flow) |
|
void |
setLivemode(java.lang.Boolean livemode) |
|
void |
setOwner(Source.Owner owner) |
|
void |
setReceiver(Source.ReceiverFlow receiver) |
|
void |
setRedirect(Source.RedirectFlow redirect) |
|
void |
setStatementDescriptor(java.lang.String statementDescriptor) |
|
void |
setStatus(java.lang.String status) |
|
void |
setType(java.lang.String type) |
|
void |
setTypeData(java.util.Map<java.lang.String,java.lang.String> typeData) |
|
void |
setUsage(java.lang.String usage) |
|
SourceTransactionCollection |
sourceTransactions(java.util.Map<java.lang.String,java.lang.Object> params) |
Retrieve a source's transactions.
|
SourceTransactionCollection |
sourceTransactions(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Retrieve a source's transactions.
|
Source |
update(java.util.Map<java.lang.String,java.lang.Object> params) |
Update a source.
|
Source |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Update a source.
|
Source |
verify(java.util.Map<java.lang.String,java.lang.Object> params) |
Verify a source.
|
Source |
verify(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Verify a source.
|
classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncodedelete, getAccount, getCustomer, getId, getInstanceUrl, getMetadata, getObject, setAccount, setCustomer, setId, setMetadata, setObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, getLastResponse, setLastResponse, toJson, toStringpublic java.lang.String getSourceInstanceUrl()
throws InvalidRequestException
InvalidRequestExceptionpublic static Source create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeExceptionpublic static Source create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeExceptionpublic Source delete(RequestOptions options) throws StripeException
InvalidRequestException. Call detach() to detach the source from a
customer object.delete in class ExternalAccountStripeExceptionpublic Source detach() throws StripeException
StripeExceptionpublic Source detach(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeExceptionpublic Source detach(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeExceptionpublic static Source retrieve(java.lang.String id) throws StripeException
StripeExceptionpublic static Source retrieve(java.lang.String id, RequestOptions options) throws StripeException
StripeExceptionpublic static Source retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeExceptionpublic SourceTransactionCollection sourceTransactions(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeExceptionpublic SourceTransactionCollection sourceTransactions(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeExceptionpublic Source update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
update in interface MetadataStore<ExternalAccount>update in class ExternalAccountStripeExceptionpublic Source update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
update in interface MetadataStore<ExternalAccount>update in class ExternalAccountStripeExceptionpublic Source verify(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
verify in class ExternalAccountStripeExceptionpublic Source verify(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
verify in class ExternalAccountparams - request parametersoptions - request optionsStripeExceptionpublic java.lang.Long getAmount()
public java.lang.String getClientSecret()
public Source.CodeVerificationFlow getCodeVerification()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getFlow()
public java.lang.Boolean getLivemode()
public Source.Owner getOwner()
public Source.ReceiverFlow getReceiver()
public Source.RedirectFlow getRedirect()
public java.lang.String getStatementDescriptor()
public java.lang.String getStatus()
public java.lang.String getType()
public java.lang.String getUsage()
public void setAmount(java.lang.Long amount)
public void setClientSecret(java.lang.String clientSecret)
public void setCodeVerification(Source.CodeVerificationFlow codeVerification)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setFlow(java.lang.String flow)
public void setLivemode(java.lang.Boolean livemode)
public void setOwner(Source.Owner owner)
public void setReceiver(Source.ReceiverFlow receiver)
public void setRedirect(Source.RedirectFlow redirect)
public void setStatementDescriptor(java.lang.String statementDescriptor)
public void setStatus(java.lang.String status)
public void setType(java.lang.String type)
public void setUsage(java.lang.String usage)
public boolean equals(java.lang.Object o)
equals in class ExternalAccountprotected boolean canEqual(java.lang.Object other)
canEqual in class ExternalAccountpublic int hashCode()
hashCode in class ExternalAccountpublic java.util.Map<java.lang.String,java.lang.String> getTypeData()
getTypeData in interface HasSourceTypeDatapublic void setTypeData(java.util.Map<java.lang.String,java.lang.String> typeData)
setTypeData in interface HasSourceTypeData