public class Transaction extends ApiResource implements MetadataStore<Transaction>, BalanceTransactionSource
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Transaction() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmount() |
java.lang.String |
getAuthorization()
Get id of expandable `authorization` object.
|
Authorization |
getAuthorizationObject()
Get expanded `authorization`.
|
java.lang.String |
getBalanceTransaction()
Get id of expandable `balanceTransaction` object.
|
BalanceTransaction |
getBalanceTransactionObject()
Get expanded `balanceTransaction`.
|
java.lang.String |
getCard()
Get id of expandable `card` object.
|
java.lang.String |
getCardholder()
Get id of expandable `cardholder` object.
|
Cardholder |
getCardholderObject()
Get expanded `cardholder`.
|
Card |
getCardObject()
Get expanded `card`.
|
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 |
getDispute()
Get id of expandable `dispute` object.
|
Dispute |
getDisputeObject()
Get expanded `dispute`.
|
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.lang.Long |
getMerchantAmount() |
java.lang.String |
getMerchantCurrency() |
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.String |
getType()
One of `capture`, `refund`, `cash_withdrawal`, `refund_reversal`, `dispute`, or `dispute_loss`.
|
int |
hashCode() |
static TransactionCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of Issuing
Transaction objects. |
static TransactionCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of Issuing
Transaction objects. |
static TransactionCollection |
list(TransactionListParams params)
Returns a list of Issuing
Transaction objects. |
static TransactionCollection |
list(TransactionListParams params,
RequestOptions options)
Returns a list of Issuing
Transaction objects. |
static Transaction |
retrieve(java.lang.String transaction)
Retrieves an Issuing
Transaction object. |
static Transaction |
retrieve(java.lang.String transaction,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves an Issuing
Transaction object. |
static Transaction |
retrieve(java.lang.String transaction,
RequestOptions options)
Retrieves an Issuing
Transaction object. |
static Transaction |
retrieve(java.lang.String transaction,
TransactionRetrieveParams params,
RequestOptions options)
Retrieves an Issuing
Transaction object. |
void |
setAmount(java.lang.Long amount) |
void |
setAuthorization(java.lang.String id) |
void |
setAuthorizationObject(Authorization expandableObject) |
void |
setBalanceTransaction(java.lang.String id) |
void |
setBalanceTransactionObject(BalanceTransaction expandableObject) |
void |
setCard(java.lang.String id) |
void |
setCardholder(java.lang.String id) |
void |
setCardholderObject(Cardholder expandableObject) |
void |
setCardObject(Card 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 |
setDispute(java.lang.String id) |
void |
setDisputeObject(Dispute 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 |
setMerchantAmount(java.lang.Long merchantAmount) |
void |
setMerchantCurrency(java.lang.String merchantCurrency) |
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 |
setType(java.lang.String type)
One of `capture`, `refund`, `cash_withdrawal`, `refund_reversal`, `dispute`, or `dispute_loss`.
|
Transaction |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the specified Issuing
Transaction object by setting the values of the
parameters passed. |
Transaction |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates the specified Issuing
Transaction object by setting the values of the
parameters passed. |
Transaction |
update(TransactionUpdateParams params)
Updates the specified Issuing
Transaction object by setting the values of the
parameters passed. |
Transaction |
update(TransactionUpdateParams params,
RequestOptions options)
Updates the specified Issuing
Transaction 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, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getAuthorization()
public void setAuthorization(java.lang.String id)
public Authorization getAuthorizationObject()
public void setAuthorizationObject(Authorization expandableObject)
public java.lang.String getBalanceTransaction()
public void setBalanceTransaction(java.lang.String id)
public BalanceTransaction getBalanceTransactionObject()
public void setBalanceTransactionObject(BalanceTransaction expandableObject)
public java.lang.String getCard()
public void setCard(java.lang.String id)
public Card getCardObject()
public void setCardObject(Card expandableObject)
public java.lang.String getCardholder()
public void setCardholder(java.lang.String id)
public Cardholder getCardholderObject()
public void setCardholderObject(Cardholder expandableObject)
public java.lang.String getDispute()
public void setDispute(java.lang.String id)
public Dispute getDisputeObject()
public void setDisputeObject(Dispute expandableObject)
public static TransactionCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Transaction
objects. The objects are sorted in
descending order by creation date, with the most recently created object appearing first.StripeException
public static TransactionCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Transaction
objects. The objects are sorted in
descending order by creation date, with the most recently created object appearing first.StripeException
public static TransactionCollection list(TransactionListParams params) throws StripeException
Transaction
objects. The objects are sorted in
descending order by creation date, with the most recently created object appearing first.StripeException
public static TransactionCollection list(TransactionListParams params, RequestOptions options) throws StripeException
Transaction
objects. The objects are sorted in
descending order by creation date, with the most recently created object appearing first.StripeException
public static Transaction retrieve(java.lang.String transaction) throws StripeException
Transaction
object.StripeException
public static Transaction retrieve(java.lang.String transaction, RequestOptions options) throws StripeException
Transaction
object.StripeException
public static Transaction retrieve(java.lang.String transaction, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Transaction
object.StripeException
public static Transaction retrieve(java.lang.String transaction, TransactionRetrieveParams params, RequestOptions options) throws StripeException
Transaction
object.StripeException
public Transaction update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Transaction
object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.update
in interface MetadataStore<Transaction>
StripeException
public Transaction update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Transaction
object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.update
in interface MetadataStore<Transaction>
StripeException
public Transaction update(TransactionUpdateParams params) throws StripeException
Transaction
object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.StripeException
public Transaction update(TransactionUpdateParams params, RequestOptions options) throws StripeException
Transaction
object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.StripeException
public java.lang.Long getAmount()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.Boolean getLivemode()
public java.lang.Long getMerchantAmount()
public java.lang.String getMerchantCurrency()
public MerchantData getMerchantData()
public java.lang.String getObject()
public java.lang.String getType()
public void setAmount(java.lang.Long amount)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
public void setMerchantAmount(java.lang.Long merchantAmount)
public void setMerchantCurrency(java.lang.String merchantCurrency)
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 setType(java.lang.String type)
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<Transaction>