Package com.stripe.model.issuing
Class Transaction
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.issuing.Transaction
- All Implemented Interfaces:
BalanceTransactionSource
,HasId
,MetadataStore<Transaction>
,StripeActiveObject
,StripeObjectInterface
public class Transaction
extends ApiResource
implements MetadataStore<Transaction>, BalanceTransactionSource
Any use of an issued card that results in funds
entering or leaving your Stripe account, such as a completed purchase or refund, is represented
by an Issuing
Transaction
object.
Related guide: Issued card transactions
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
The unit cost of the item in cents.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The transaction amount, which will be reflected in your balance.Detailed breakdown of amount components.Get ID of expandableauthorization
object.Get expandedauthorization
.Get ID of expandablebalanceTransaction
object.Get expandedbalanceTransaction
.getCard()
Get ID of expandablecard
object.Get ID of expandablecardholder
object.Get expandedcardholder
.Get expandedcard
.Time at which the object was created.Three-letter ISO currency code, in lowercase.Get ID of expandabledispute
object.Get expandeddispute
.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.The amount that the merchant will receive, denominated inmerchant_currency
and in the smallest currency unit.The currency with which the merchant is taking payment.Set of key-value pairs that you can attach to an object.Details about the transaction, such as processing dates, set by the card network.String representing the object's type.Additional purchase information that is optionally provided by the merchant.getToken()
Get ID of expandabletoken
object.Get expandedtoken
.Treasury details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accountsgetType()
The nature of the transaction.The digital wallet used for this transaction.int
hashCode()
static TransactionCollection
list
(TransactionListParams params) Returns a list of IssuingTransaction
objects.static TransactionCollection
list
(TransactionListParams params, RequestOptions options) Returns a list of IssuingTransaction
objects.static TransactionCollection
Returns a list of IssuingTransaction
objects.static TransactionCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of IssuingTransaction
objects.static Transaction
Retrieves an IssuingTransaction
object.static Transaction
retrieve
(String transaction, RequestOptions options) Retrieves an IssuingTransaction
object.static Transaction
retrieve
(String transaction, TransactionRetrieveParams params, RequestOptions options) Retrieves an IssuingTransaction
object.static Transaction
Retrieves an IssuingTransaction
object.void
The transaction amount, which will be reflected in your balance.void
setAmountDetails
(Transaction.AmountDetails amountDetails) Detailed breakdown of amount components.void
void
setAuthorizationObject
(Authorization expandableObject) void
void
setBalanceTransactionObject
(BalanceTransaction expandableObject) void
void
setCardholder
(String id) void
setCardholderObject
(Cardholder expandableObject) void
setCardObject
(Card expandableObject) void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setDispute
(String id) void
setDisputeObject
(Dispute expandableObject) void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMerchantAmount
(Long merchantAmount) The amount that the merchant will receive, denominated inmerchant_currency
and in the smallest currency unit.void
setMerchantCurrency
(String merchantCurrency) The currency with which the merchant is taking payment.void
setMerchantData
(Transaction.MerchantData merchantData) void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
setNetworkData
(Transaction.NetworkData networkData) Details about the transaction, such as processing dates, set by the card network.void
String representing the object's type.void
setPurchaseDetails
(Transaction.PurchaseDetails purchaseDetails) Additional purchase information that is optionally provided by the merchant.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
void
setTokenObject
(Token expandableObject) void
setTreasury
(Transaction.Treasury treasury) Treasury details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accountsvoid
The nature of the transaction.void
The digital wallet used for this transaction.update
(TransactionUpdateParams params) Updates the specified IssuingTransaction
object by setting the values of the parameters passed.update
(TransactionUpdateParams params, RequestOptions options) Updates the specified IssuingTransaction
object by setting the values of the parameters passed.Updates the specified IssuingTransaction
object by setting the values of the parameters passed.update
(Map<String, Object> params, RequestOptions options) Updates the specified IssuingTransaction
object by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
Methods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
Transaction
public Transaction()
-
-
Method Details
-
getAuthorization
Get ID of expandableauthorization
object. -
setAuthorization
-
getAuthorizationObject
Get expandedauthorization
. -
setAuthorizationObject
-
getBalanceTransaction
Get ID of expandablebalanceTransaction
object. -
setBalanceTransaction
-
getBalanceTransactionObject
Get expandedbalanceTransaction
. -
setBalanceTransactionObject
-
getCard
Get ID of expandablecard
object. -
setCard
-
getCardObject
Get expandedcard
. -
setCardObject
-
getCardholder
Get ID of expandablecardholder
object. -
setCardholder
-
getCardholderObject
Get expandedcardholder
. -
setCardholderObject
-
getDispute
Get ID of expandabledispute
object. -
setDispute
-
getDisputeObject
Get expandeddispute
. -
setDisputeObject
-
getToken
Get ID of expandabletoken
object. -
setToken
-
getTokenObject
Get expandedtoken
. -
setTokenObject
-
list
Returns a list of IssuingTransaction
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static TransactionCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of IssuingTransaction
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
Returns a list of IssuingTransaction
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
list
public static TransactionCollection list(TransactionListParams params, RequestOptions options) throws StripeException Returns a list of IssuingTransaction
objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.- Throws:
StripeException
-
retrieve
Retrieves an IssuingTransaction
object.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(String transaction, RequestOptions options) throws StripeException Retrieves an IssuingTransaction
object.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(String transaction, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an IssuingTransaction
object.- Throws:
StripeException
-
retrieve
public static Transaction retrieve(String transaction, TransactionRetrieveParams params, RequestOptions options) throws StripeException Retrieves an IssuingTransaction
object.- Throws:
StripeException
-
update
Updates the specified IssuingTransaction
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
update
in interfaceMetadataStore<Transaction>
- Throws:
StripeException
-
update
Updates the specified IssuingTransaction
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Specified by:
update
in interfaceMetadataStore<Transaction>
- Throws:
StripeException
-
update
Updates the specified IssuingTransaction
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
public Transaction update(TransactionUpdateParams params, RequestOptions options) throws StripeException Updates the specified IssuingTransaction
object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
getTestHelpers
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAmount
The transaction amount, which will be reflected in your balance. This amount is in your currency and in the smallest currency unit. -
getAmountDetails
Detailed breakdown of amount components. These amounts are denominated incurrency
and in the smallest currency unit. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getMerchantAmount
The amount that the merchant will receive, denominated inmerchant_currency
and in the smallest currency unit. It will be different fromamount
if the merchant is taking payment in a different currency. -
getMerchantCurrency
The currency with which the merchant is taking payment. -
getMerchantData
-
getNetworkData
Details about the transaction, such as processing dates, set by the card network. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.transaction
. -
getPurchaseDetails
Additional purchase information that is optionally provided by the merchant. -
getTreasury
Treasury details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts -
getType
The nature of the transaction.One of
capture
, orrefund
. -
getWallet
The digital wallet used for this transaction. One ofapple_pay
,google_pay
, orsamsung_pay
. -
setAmount
The transaction amount, which will be reflected in your balance. This amount is in your currency and in the smallest currency unit. -
setAmountDetails
Detailed breakdown of amount components. These amounts are denominated incurrency
and in the smallest currency unit. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMerchantAmount
The amount that the merchant will receive, denominated inmerchant_currency
and in the smallest currency unit. It will be different fromamount
if the merchant is taking payment in a different currency. -
setMerchantCurrency
The currency with which the merchant is taking payment. -
setMerchantData
-
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setNetworkData
Details about the transaction, such as processing dates, set by the card network. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.transaction
. -
setPurchaseDetails
Additional purchase information that is optionally provided by the merchant. -
setTreasury
Treasury details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts -
setType
The nature of the transaction.One of
capture
, orrefund
. -
setWallet
The digital wallet used for this transaction. One ofapple_pay
,google_pay
, orsamsung_pay
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadata
in interfaceMetadataStore<Transaction>
-