public class Authorization extends ApiResource implements BalanceTransactionSource, MetadataStore<Authorization>
Modifier and Type | Class and Description |
---|---|
static class |
Authorization.RequestHistory |
static class |
Authorization.VerificationData |
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Authorization() |
Modifier and Type | Method and Description |
---|---|
Authorization |
approve()
Approves a pending Issuing
Authorization object. |
Authorization |
approve(AuthorizationApproveParams params)
Approves a pending Issuing
Authorization object. |
Authorization |
approve(AuthorizationApproveParams params,
RequestOptions options)
Approves a pending Issuing
Authorization object. |
Authorization |
approve(java.util.Map<java.lang.String,java.lang.Object> params)
Approves a pending Issuing
Authorization object. |
Authorization |
approve(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Approves a pending Issuing
Authorization object. |
Authorization |
approve(RequestOptions options)
Approves a pending Issuing
Authorization object. |
protected boolean |
canEqual(java.lang.Object other) |
Authorization |
decline()
Declines a pending Issuing
Authorization object. |
Authorization |
decline(AuthorizationDeclineParams params)
Declines a pending Issuing
Authorization object. |
Authorization |
decline(AuthorizationDeclineParams params,
RequestOptions options)
Declines a pending Issuing
Authorization object. |
Authorization |
decline(java.util.Map<java.lang.String,java.lang.Object> params)
Declines a pending Issuing
Authorization object. |
Authorization |
decline(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Declines a pending Issuing
Authorization object. |
Authorization |
decline(RequestOptions options)
Declines a pending Issuing
Authorization object. |
boolean |
equals(java.lang.Object o) |
java.lang.Boolean |
getApproved()
Whether the authorization has been approved.
|
java.lang.String |
getAuthorizationMethod()
How the card details were provided.
|
java.lang.Long |
getAuthorizedAmount()
The amount that has been authorized.
|
java.lang.String |
getAuthorizedCurrency()
The currency that was presented to the cardholder for the authorization.
|
java.util.List<BalanceTransaction> |
getBalanceTransactions() |
Card |
getCard() |
java.lang.String |
getCardholder()
Get id of expandable `cardholder` object.
|
Cardholder |
getCardholderObject()
Get expanded `cardholder`.
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.Long |
getHeldAmount()
The amount the authorization is expected to be in `held_currency`.
|
java.lang.String |
getHeldCurrency()
The currency of the [held
amount](https://stripe.com/docs/api#issuing_authorization_object-held_amount).
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Boolean |
getIsHeldAmountControllable() |
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.
|
MerchantData |
getMerchantData() |
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.
|
java.lang.Long |
getPendingAuthorizedAmount()
The amount the user is requesting to be authorized.
|
java.lang.Long |
getPendingHeldAmount()
The additional amount Stripe will hold if the authorization is approved.
|
java.util.List<Authorization.RequestHistory> |
getRequestHistory() |
java.lang.String |
getStatus()
One of `pending`, `reversed`, or `closed`.
|
java.util.List<Transaction> |
getTransactions() |
Authorization.VerificationData |
getVerificationData() |
java.lang.String |
getWalletProvider()
What, if any, digital wallet was used for this authorization.
|
int |
hashCode() |
static AuthorizationCollection |
list(AuthorizationListParams params)
Returns a list of Issuing
Authorization objects. |
static AuthorizationCollection |
list(AuthorizationListParams params,
RequestOptions options)
Returns a list of Issuing
Authorization objects. |
static AuthorizationCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of Issuing
Authorization objects. |
static AuthorizationCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of Issuing
Authorization objects. |
static Authorization |
retrieve(java.lang.String authorization)
Retrieves an Issuing
Authorization object. |
static Authorization |
retrieve(java.lang.String authorization,
AuthorizationRetrieveParams params,
RequestOptions options)
Retrieves an Issuing
Authorization object. |
static Authorization |
retrieve(java.lang.String authorization,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves an Issuing
Authorization object. |
static Authorization |
retrieve(java.lang.String authorization,
RequestOptions options)
Retrieves an Issuing
Authorization object. |
void |
setApproved(java.lang.Boolean approved)
Whether the authorization has been approved.
|
void |
setAuthorizationMethod(java.lang.String authorizationMethod)
How the card details were provided.
|
void |
setAuthorizedAmount(java.lang.Long authorizedAmount)
The amount that has been authorized.
|
void |
setAuthorizedCurrency(java.lang.String authorizedCurrency)
The currency that was presented to the cardholder for the authorization.
|
void |
setBalanceTransactions(java.util.List<BalanceTransaction> balanceTransactions) |
void |
setCard(Card card) |
void |
setCardholder(java.lang.String id) |
void |
setCardholderObject(Cardholder expandableObject) |
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setHeldAmount(java.lang.Long heldAmount)
The amount the authorization is expected to be in `held_currency`.
|
void |
setHeldCurrency(java.lang.String heldCurrency)
The currency of the [held
amount](https://stripe.com/docs/api#issuing_authorization_object-held_amount).
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setIsHeldAmountControllable(java.lang.Boolean isHeldAmountControllable) |
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 |
setMerchantData(MerchantData merchantData) |
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 |
setPendingAuthorizedAmount(java.lang.Long pendingAuthorizedAmount)
The amount the user is requesting to be authorized.
|
void |
setPendingHeldAmount(java.lang.Long pendingHeldAmount)
The additional amount Stripe will hold if the authorization is approved.
|
void |
setRequestHistory(java.util.List<Authorization.RequestHistory> requestHistory) |
void |
setStatus(java.lang.String status)
One of `pending`, `reversed`, or `closed`.
|
void |
setTransactions(java.util.List<Transaction> transactions) |
void |
setVerificationData(Authorization.VerificationData verificationData) |
void |
setWalletProvider(java.lang.String walletProvider)
What, if any, digital wallet was used for this authorization.
|
Authorization |
update(AuthorizationUpdateParams params)
Updates the specified Issuing
Authorization object by setting the values of the
parameters passed. |
Authorization |
update(AuthorizationUpdateParams params,
RequestOptions options)
Updates the specified Issuing
Authorization object by setting the values of the
parameters passed. |
Authorization |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the specified Issuing
Authorization object by setting the values of the
parameters passed. |
Authorization |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates the specified Issuing
Authorization object by setting the values of the
parameters passed. |
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, setLastResponse, toJson, toString
public java.lang.String getCardholder()
public void setCardholder(java.lang.String id)
public Cardholder getCardholderObject()
public void setCardholderObject(Cardholder expandableObject)
public static AuthorizationCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Authorization
objects. The objects are sorted in
descending order by creation date, with the most recently created object appearing first.StripeException
public static AuthorizationCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Authorization
objects. The objects are sorted in
descending order by creation date, with the most recently created object appearing first.StripeException
public static AuthorizationCollection list(AuthorizationListParams params) throws StripeException
Authorization
objects. The objects are sorted in
descending order by creation date, with the most recently created object appearing first.StripeException
public static AuthorizationCollection list(AuthorizationListParams params, RequestOptions options) throws StripeException
Authorization
objects. The objects are sorted in
descending order by creation date, with the most recently created object appearing first.StripeException
public static Authorization retrieve(java.lang.String authorization) throws StripeException
Authorization
object.StripeException
public static Authorization retrieve(java.lang.String authorization, RequestOptions options) throws StripeException
Authorization
object.StripeException
public static Authorization retrieve(java.lang.String authorization, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Authorization
object.StripeException
public static Authorization retrieve(java.lang.String authorization, AuthorizationRetrieveParams params, RequestOptions options) throws StripeException
Authorization
object.StripeException
public Authorization update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Authorization
object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.update
in interface MetadataStore<Authorization>
StripeException
public Authorization update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Authorization
object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.update
in interface MetadataStore<Authorization>
StripeException
public Authorization update(AuthorizationUpdateParams params) throws StripeException
Authorization
object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.StripeException
public Authorization update(AuthorizationUpdateParams params, RequestOptions options) throws StripeException
Authorization
object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.StripeException
public Authorization approve() throws StripeException
Authorization
object.StripeException
public Authorization approve(RequestOptions options) throws StripeException
Authorization
object.StripeException
public Authorization approve(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Authorization
object.StripeException
public Authorization approve(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Authorization
object.StripeException
public Authorization approve(AuthorizationApproveParams params) throws StripeException
Authorization
object.StripeException
public Authorization approve(AuthorizationApproveParams params, RequestOptions options) throws StripeException
Authorization
object.StripeException
public Authorization decline() throws StripeException
Authorization
object.StripeException
public Authorization decline(RequestOptions options) throws StripeException
Authorization
object.StripeException
public Authorization decline(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Authorization
object.StripeException
public Authorization decline(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Authorization
object.StripeException
public Authorization decline(AuthorizationDeclineParams params) throws StripeException
Authorization
object.StripeException
public Authorization decline(AuthorizationDeclineParams params, RequestOptions options) throws StripeException
Authorization
object.StripeException
public java.lang.Boolean getApproved()
public java.lang.String getAuthorizationMethod()
public java.lang.Long getAuthorizedAmount()
public java.lang.String getAuthorizedCurrency()
public java.util.List<BalanceTransaction> getBalanceTransactions()
public Card getCard()
public java.lang.Long getCreated()
public java.lang.Long getHeldAmount()
public java.lang.String getHeldCurrency()
public java.lang.Boolean getIsHeldAmountControllable()
public java.lang.Boolean getLivemode()
public MerchantData getMerchantData()
public java.lang.String getObject()
public java.lang.Long getPendingAuthorizedAmount()
public java.lang.Long getPendingHeldAmount()
public java.util.List<Authorization.RequestHistory> getRequestHistory()
public java.lang.String getStatus()
public java.util.List<Transaction> getTransactions()
public Authorization.VerificationData getVerificationData()
public java.lang.String getWalletProvider()
public void setApproved(java.lang.Boolean approved)
public void setAuthorizationMethod(java.lang.String authorizationMethod)
public void setAuthorizedAmount(java.lang.Long authorizedAmount)
public void setAuthorizedCurrency(java.lang.String authorizedCurrency)
public void setBalanceTransactions(java.util.List<BalanceTransaction> balanceTransactions)
public void setCard(Card card)
public void setCreated(java.lang.Long created)
public void setHeldAmount(java.lang.Long heldAmount)
public void setHeldCurrency(java.lang.String heldCurrency)
public void setId(java.lang.String id)
public void setIsHeldAmountControllable(java.lang.Boolean isHeldAmountControllable)
public void setLivemode(java.lang.Boolean livemode)
public void setMerchantData(MerchantData merchantData)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
public void setPendingAuthorizedAmount(java.lang.Long pendingAuthorizedAmount)
public void setPendingHeldAmount(java.lang.Long pendingHeldAmount)
public void setRequestHistory(java.util.List<Authorization.RequestHistory> requestHistory)
public void setStatus(java.lang.String status)
public void setTransactions(java.util.List<Transaction> transactions)
public void setVerificationData(Authorization.VerificationData verificationData)
public void setWalletProvider(java.lang.String walletProvider)
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<Authorization>