Class BalanceTransaction
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
Related guide: Balance transaction types
-
Nested Class Summary
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
Gross amount of this transaction (in cents (or local equivalent)).The date that the transaction's net funds 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.If applicable, this transaction uses an exchange rate.getFee()
Fees (in cents (or local equivalent)) paid for this transaction.Detailed breakdown of fees (in cents (or local equivalent)) paid for this transaction.getId()
Unique identifier for the object.getNet()
Net impact to a Stripe balance (in cents (or local equivalent)).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
.The transaction's net funds status in the Stripe balance, which are eitheravailable
orpending
.getType()
Transaction type:adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,climate_order_purchase
,climate_order_refund
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,obligation_outbound
,obligation_reversal_inbound
,payment
,payment_failure_refund
,payment_network_reserve_hold
,payment_network_reserve_release
,payment_refund
,payment_reversal
,payment_unreconciled
,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 this transaction (in cents (or local equivalent)).void
setAvailableOn
(Long availableOn) The date that the transaction's net funds 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) If applicable, this transaction uses an exchange rate.void
Fees (in cents (or local equivalent)) paid for this transaction.void
setFeeDetails
(List<BalanceTransaction.FeeDetail> feeDetails) Detailed breakdown of fees (in cents (or local equivalent)) paid for this transaction.void
Unique identifier for the object.void
Net impact to a Stripe balance (in cents (or local equivalent)).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
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
void
setSourceObject
(BalanceTransactionSource expandableObject) void
The transaction's net funds status in the Stripe balance, which are eitheravailable
orpending
.void
Transaction type:adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,climate_order_purchase
,climate_order_refund
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,obligation_outbound
,obligation_reversal_inbound
,payment
,payment_failure_refund
,payment_network_reserve_hold
,payment_network_reserve_release
,payment_refund
,payment_reversal
,payment_unreconciled
,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, 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
-
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
-
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
Gross amount of this transaction (in cents (or local equivalent)). A positive value represents funds charged to another party, and a negative value represents funds sent to another party. -
getAvailableOn
The date that the transaction's net funds 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
If applicable, this transaction uses an exchange rate. If money converts from currency A to currency B, then theamount
in currency A, multipled by theexchange_rate
, equals theamount
in currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntent'samount
is1000
andcurrency
iseur
. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction'samount
is1234
, itscurrency
isusd
, and theexchange_rate
is1.234
. -
getFee
Fees (in cents (or local equivalent)) paid for this transaction. Represented as a positive integer when assessed. -
getFeeDetails
Detailed breakdown of fees (in cents (or local equivalent)) paid for this transaction. -
getNet
Net impact to a Stripe balance (in cents (or local equivalent)). A positive value represents incrementing a Stripe balance, and a negative value decrementing a Stripe balance. You can calculate the net impact of a transaction on a balance byamount
-fee
-
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
The transaction's net funds status in the Stripe balance, which are eitheravailable
orpending
. -
getType
Transaction type:adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,climate_order_purchase
,climate_order_refund
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,obligation_outbound
,obligation_reversal_inbound
,payment
,payment_failure_refund
,payment_network_reserve_hold
,payment_network_reserve_release
,payment_refund
,payment_reversal
,payment_unreconciled
,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. To classify transactions for accounting purposes, considerreporting_category
instead.One of
adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,climate_order_purchase
,climate_order_refund
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,obligation_outbound
,obligation_reversal_inbound
,payment
,payment_failure_refund
,payment_network_reserve_hold
,payment_network_reserve_release
,payment_refund
,payment_reversal
,payment_unreconciled
,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 this transaction (in cents (or local equivalent)). A positive value represents funds charged to another party, and a negative value represents funds sent to another party. -
setAvailableOn
The date that the transaction's net funds 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
If applicable, this transaction uses an exchange rate. If money converts from currency A to currency B, then theamount
in currency A, multipled by theexchange_rate
, equals theamount
in currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntent'samount
is1000
andcurrency
iseur
. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction'samount
is1234
, itscurrency
isusd
, and theexchange_rate
is1.234
. -
setFee
Fees (in cents (or local equivalent)) paid for this transaction. Represented as a positive integer when assessed. -
setFeeDetails
Detailed breakdown of fees (in cents (or local equivalent)) paid for this transaction. -
setId
Unique identifier for the object. -
setNet
Net impact to a Stripe balance (in cents (or local equivalent)). A positive value represents incrementing a Stripe balance, and a negative value decrementing a Stripe balance. You can calculate the net impact of a transaction on a balance byamount
-fee
-
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
The transaction's net funds status in the Stripe balance, which are eitheravailable
orpending
. -
setType
Transaction type:adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,climate_order_purchase
,climate_order_refund
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,obligation_outbound
,obligation_reversal_inbound
,payment
,payment_failure_refund
,payment_network_reserve_hold
,payment_network_reserve_release
,payment_refund
,payment_reversal
,payment_unreconciled
,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. To classify transactions for accounting purposes, considerreporting_category
instead.One of
adjustment
,advance
,advance_funding
,anticipation_repayment
,application_fee
,application_fee_refund
,charge
,climate_order_purchase
,climate_order_refund
,connect_collection_transfer
,contribution
,issuing_authorization_hold
,issuing_authorization_release
,issuing_dispute
,issuing_transaction
,obligation_outbound
,obligation_reversal_inbound
,payment
,payment_failure_refund
,payment_network_reserve_hold
,payment_network_reserve_release
,payment_refund
,payment_reversal
,payment_unreconciled
,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.
-