public class Transaction extends ApiResource implements MetadataStore<Transaction>, BalanceTransactionSource
| Modifier and Type | Class and Description |
|---|---|
static class |
Transaction.AmountDetails |
static class |
Transaction.PurchaseDetails |
ApiResource.RequestMethodCHARSET, GSONPRETTY_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()
The transaction amount, which will be reflected in your balance.
|
Transaction.AmountDetails |
getAmountDetails()
Detailed breakdown of amount components.
|
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,
in lowercase.
|
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()
The amount that the merchant will receive, denominated in
merchant_currency and in the
smallest currency unit. |
java.lang.String |
getMerchantCurrency()
The currency with which the merchant is taking payment.
|
Authorization.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.
|
Transaction.PurchaseDetails |
getPurchaseDetails()
Additional purchase information that is optionally provided by the merchant.
|
java.lang.String |
getType()
The nature of the transaction.
|
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)
The transaction amount, which will be reflected in your balance.
|
void |
setAmountDetails(Transaction.AmountDetails amountDetails)
Detailed breakdown of amount components.
|
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,
in lowercase.
|
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)
The amount that the merchant will receive, denominated in
merchant_currency and in the
smallest currency unit. |
void |
setMerchantCurrency(java.lang.String merchantCurrency)
The currency with which the merchant is taking payment.
|
void |
setMerchantData(Authorization.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 |
setPurchaseDetails(Transaction.PurchaseDetails purchaseDetails)
Additional purchase information that is optionally provided by the merchant.
|
void |
setType(java.lang.String type)
The nature of the transaction.
|
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, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdequals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLastResponse, setLastResponsepublic java.lang.String getAuthorization()
authorization object.public void setAuthorization(java.lang.String id)
public Authorization getAuthorizationObject()
authorization.public void setAuthorizationObject(Authorization expandableObject)
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 getCard()
card object.public void setCard(java.lang.String id)
public Card getCardObject()
card.public void setCardObject(Card expandableObject)
public java.lang.String getCardholder()
cardholder object.public void setCardholder(java.lang.String id)
public Cardholder getCardholderObject()
cardholder.public void setCardholderObject(Cardholder 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.StripeExceptionpublic 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.StripeExceptionpublic 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.StripeExceptionpublic 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.StripeExceptionpublic static Transaction retrieve(java.lang.String transaction) throws StripeException
Transaction object.StripeExceptionpublic static Transaction retrieve(java.lang.String transaction, RequestOptions options) throws StripeException
Transaction object.StripeExceptionpublic static Transaction retrieve(java.lang.String transaction, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Transaction object.StripeExceptionpublic static Transaction retrieve(java.lang.String transaction, TransactionRetrieveParams params, RequestOptions options) throws StripeException
Transaction object.StripeExceptionpublic 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>StripeExceptionpublic 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>StripeExceptionpublic Transaction update(TransactionUpdateParams params) throws StripeException
Transaction object by setting the values of the
parameters passed. Any parameters not provided will be left unchanged.StripeExceptionpublic 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.StripeExceptionpublic java.lang.Long getAmount()
public Transaction.AmountDetails getAmountDetails()
currency and
in the smallest currency unit.public java.lang.Long getCreated()
public java.lang.String getCurrency()
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.Long getMerchantAmount()
merchant_currency and in the
smallest currency unit. It will
be different from amount if the merchant is taking payment in a different currency.public java.lang.String getMerchantCurrency()
public Authorization.MerchantData getMerchantData()
public java.lang.String getObject()
Equal to issuing.transaction.
public Transaction.PurchaseDetails getPurchaseDetails()
public java.lang.String getType()
One of capture, or refund.
public void setAmount(java.lang.Long amount)
public void setAmountDetails(Transaction.AmountDetails amountDetails)
currency and
in the smallest currency unit.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)
true if the object exists in live mode or the value false if the
object exists in test mode.public void setMerchantAmount(java.lang.Long merchantAmount)
merchant_currency and in the
smallest currency unit. It will
be different from amount if the merchant is taking payment in a different currency.public void setMerchantCurrency(java.lang.String merchantCurrency)
public void setMerchantData(Authorization.MerchantData merchantData)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
Equal to issuing.transaction.
public void setPurchaseDetails(Transaction.PurchaseDetails purchaseDetails)
public void setType(java.lang.String type)
One of capture, or refund.
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.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata in interface MetadataStore<Transaction>