Class BalanceTransaction
- All Implemented Interfaces:
HasId
,StripeObjectInterface
Related guide: Balance Transaction Types.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Gross amount of the transaction, in %s.The date the transaction's net funds will become available in the Stripe balance.Time at which the object was created.Three-letter ISO currency code, in lowercase.An arbitrary string attached to the object.The exchange rate used, if applicable, for this transaction.getFee()
Fees (in %s) paid for this transaction.Detailed breakdown of fees (in %s) paid for this transaction.getId()
Unique identifier for the object.getNet()
Net amount of the transaction, in %s.String representing the object's type.Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.Get ID of expandablesource
object.Get expandedsource
.If the transaction's net funds are available in the Stripe balance yet.getType()
Transaction type:adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,payment
,payment_failure_refund
,payment_refund
,payout
,payout_cancel
,payout_failure
,refund
,refund_failure
,reserve_transaction
,reserved_funds
,stripe_fee
,stripe_fx_fee
,tax_fee
,topup
,topup_reversal
,transfer
,transfer_cancel
,transfer_failure
, ortransfer_refund
.int
hashCode()
static BalanceTransactionCollection
list
(BalanceTransactionListParams params) Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth).static BalanceTransactionCollection
list
(BalanceTransactionListParams params, RequestOptions options) Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth).static BalanceTransactionCollection
Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth).static BalanceTransactionCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth).static BalanceTransaction
Retrieves the balance transaction with the given ID.static BalanceTransaction
retrieve
(String id, RequestOptions options) Retrieves the balance transaction with the given ID.static BalanceTransaction
retrieve
(String id, BalanceTransactionRetrieveParams params, RequestOptions options) Retrieves the balance transaction with the given ID.static BalanceTransaction
Retrieves the balance transaction with the given ID.void
Gross amount of the transaction, in %s.void
setAvailableOn
(Long availableOn) The date the transaction's net funds will become available in the Stripe balance.void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setDescription
(String description) An arbitrary string attached to the object.void
setExchangeRate
(BigDecimal exchangeRate) The exchange rate used, if applicable, for this transaction.void
Fees (in %s) paid for this transaction.void
setFeeDetails
(List<BalanceTransaction.FeeDetail> feeDetails) Detailed breakdown of fees (in %s) paid for this transaction.void
Unique identifier for the object.void
Net amount of the transaction, in %s.void
String representing the object's type.void
setReportingCategory
(String reportingCategory) Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.void
void
setSourceObject
(BalanceTransactionSource expandableObject) void
If the transaction's net funds are available in the Stripe balance yet.void
Transaction type:adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,payment
,payment_failure_refund
,payment_refund
,payout
,payout_cancel
,payout_failure
,refund
,refund_failure
,reserve_transaction
,reserved_funds
,stripe_fee
,stripe_fx_fee
,tax_fee
,topup
,topup_reversal
,transfer
,transfer_cancel
,transfer_failure
, ortransfer_refund
.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, fullUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
BalanceTransaction
public BalanceTransaction()
-
-
Method Details
-
getSource
Get ID of expandablesource
object. -
setSource
-
getSourceObject
Get expandedsource
. -
setSourceObject
-
list
Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.Note that this endpoint was previously called “Balance history” and used the path
/v1/balance/history
.- Throws:
StripeException
-
list
public static BalanceTransactionCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.Note that this endpoint was previously called “Balance history” and used the path
/v1/balance/history
.- Throws:
StripeException
-
list
public static BalanceTransactionCollection list(BalanceTransactionListParams params) throws StripeException Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.Note that this endpoint was previously called “Balance history” and used the path
/v1/balance/history
.- Throws:
StripeException
-
list
public static BalanceTransactionCollection list(BalanceTransactionListParams params, RequestOptions options) throws StripeException Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.Note that this endpoint was previously called “Balance history” and used the path
/v1/balance/history
.- Throws:
StripeException
-
retrieve
Retrieves the balance transaction with the given ID.Note that this endpoint previously used the path
/v1/balance/history/:id
.- Throws:
StripeException
-
retrieve
Retrieves the balance transaction with the given ID.Note that this endpoint previously used the path
/v1/balance/history/:id
.- Throws:
StripeException
-
retrieve
public static BalanceTransaction retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the balance transaction with the given ID.Note that this endpoint previously used the path
/v1/balance/history/:id
.- Throws:
StripeException
-
retrieve
public static BalanceTransaction retrieve(String id, BalanceTransactionRetrieveParams params, RequestOptions options) throws StripeException Retrieves the balance transaction with the given ID.Note that this endpoint previously used the path
/v1/balance/history/:id
.- Throws:
StripeException
-
getAmount
Gross amount of the transaction, in %s. -
getAvailableOn
The date the transaction's net funds will become available in the Stripe balance. -
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. -
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
getExchangeRate
The exchange rate used, if applicable, for this transaction. Specifically, if money was converted from currency A to currency B, then theamount
in currency A, timesexchange_rate
, would be theamount
in currency B. For example, suppose you charged a customer 10.00 EUR. Then the PaymentIntent'samount
would be1000
andcurrency
would beeur
. Suppose this was converted into 12.34 USD in your Stripe account. Then the BalanceTransaction'samount
would be1234
,currency
would beusd
, andexchange_rate
would be1.234
. -
getFee
Fees (in %s) paid for this transaction. -
getFeeDetails
Detailed breakdown of fees (in %s) paid for this transaction. -
getNet
Net amount of the transaction, in %s. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
balance_transaction
. -
getReportingCategory
Learn more about how reporting categories can help you understand balance transactions from an accounting perspective. -
getStatus
If the transaction's net funds are available in the Stripe balance yet. Eitheravailable
orpending
. -
getType
Transaction type:adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,payment
,payment_failure_refund
,payment_refund
,payout
,payout_cancel
,payout_failure
,refund
,refund_failure
,reserve_transaction
,reserved_funds
,stripe_fee
,stripe_fx_fee
,tax_fee
,topup
,topup_reversal
,transfer
,transfer_cancel
,transfer_failure
, ortransfer_refund
. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to considerreporting_category
instead.One of
adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,payment
,payment_failure_refund
,payment_refund
,payout
,payout_cancel
,payout_failure
,refund
,refund_failure
,reserve_transaction
,reserved_funds
,stripe_fee
,stripe_fx_fee
,tax_fee
,topup
,topup_reversal
,transfer
,transfer_cancel
,transfer_failure
, ortransfer_refund
. -
setAmount
Gross amount of the transaction, in %s. -
setAvailableOn
The date the transaction's net funds will become available in the Stripe balance. -
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. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
setExchangeRate
The exchange rate used, if applicable, for this transaction. Specifically, if money was converted from currency A to currency B, then theamount
in currency A, timesexchange_rate
, would be theamount
in currency B. For example, suppose you charged a customer 10.00 EUR. Then the PaymentIntent'samount
would be1000
andcurrency
would beeur
. Suppose this was converted into 12.34 USD in your Stripe account. Then the BalanceTransaction'samount
would be1234
,currency
would beusd
, andexchange_rate
would be1.234
. -
setFee
Fees (in %s) paid for this transaction. -
setFeeDetails
Detailed breakdown of fees (in %s) paid for this transaction. -
setId
Unique identifier for the object. -
setNet
Net amount of the transaction, in %s. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
balance_transaction
. -
setReportingCategory
Learn more about how reporting categories can help you understand balance transactions from an accounting perspective. -
setStatus
If the transaction's net funds are available in the Stripe balance yet. Eitheravailable
orpending
. -
setType
Transaction type:adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,payment
,payment_failure_refund
,payment_refund
,payout
,payout_cancel
,payout_failure
,refund
,refund_failure
,reserve_transaction
,reserved_funds
,stripe_fee
,stripe_fx_fee
,tax_fee
,topup
,topup_reversal
,transfer
,transfer_cancel
,transfer_failure
, ortransfer_refund
. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to considerreporting_category
instead.One of
adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,payment
,payment_failure_refund
,payment_refund
,payout
,payout_cancel
,payout_failure
,refund
,refund_failure
,reserve_transaction
,reserved_funds
,stripe_fee
,stripe_fx_fee
,tax_fee
,topup
,topup_reversal
,transfer
,transfer_cancel
,transfer_failure
, ortransfer_refund
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-