Class BalanceTransaction
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
Related guide: Balance transaction types
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about FeeDetail, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanGross amount of this transaction (in cents (or local equivalent)).The date that the transaction's net funds become available in the Stripe balance.The balance that this transaction impacts.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 expandablesourceobject.Get expandedsource.The transaction's net funds status in the Stripe balance, which are eitheravailableorpending.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,payout_minimum_balance_hold,payout_minimum_balance_release,refund,refund_failure,reserve_transaction,reserved_funds,stripe_fee,stripe_fx_fee,stripe_balance_payment_debit,stripe_balance_payment_debit_reversal,tax_fee,topup,topup_reversal,transfer,transfer_cancel,transfer_failure, ortransfer_refund.inthashCode()static BalanceTransactionCollectionlist(BalanceTransactionListParams params) Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth).static BalanceTransactionCollectionlist(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 BalanceTransactionCollectionReturns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth).static BalanceTransactionCollectionlist(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 BalanceTransactionRetrieves the balance transaction with the given ID.static BalanceTransactionretrieve(String id, RequestOptions options) Retrieves the balance transaction with the given ID.static BalanceTransactionretrieve(String id, BalanceTransactionRetrieveParams params, RequestOptions options) Retrieves the balance transaction with the given ID.static BalanceTransactionRetrieves the balance transaction with the given ID.voidGross amount of this transaction (in cents (or local equivalent)).voidsetAvailableOn(Long availableOn) The date that the transaction's net funds become available in the Stripe balance.voidsetBalanceType(String balanceType) The balance that this transaction impacts.voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetDescription(String description) An arbitrary string attached to the object.voidsetExchangeRate(BigDecimal exchangeRate) If applicable, this transaction uses an exchange rate.voidFees (in cents (or local equivalent)) paid for this transaction.voidsetFeeDetails(List<BalanceTransaction.FeeDetail> feeDetails) Detailed breakdown of fees (in cents (or local equivalent)) paid for this transaction.voidUnique identifier for the object.voidNet impact to a Stripe balance (in cents (or local equivalent)).voidString representing the object's type.voidsetReportingCategory(String reportingCategory) Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidvoidsetSourceObject(BalanceTransactionSource expandableObject) voidThe transaction's net funds status in the Stripe balance, which are eitheravailableorpending.voidTransaction 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,payout_minimum_balance_hold,payout_minimum_balance_release,refund,refund_failure,reserve_transaction,reserved_funds,stripe_fee,stripe_fx_fee,stripe_balance_payment_debit,stripe_balance_payment_debit_reversal,tax_fee,topup,topup_reversal,transfer,transfer_cancel,transfer_failure, ortransfer_refund.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
BalanceTransaction
public BalanceTransaction()
-
-
Method Details
-
getSource
Get ID of expandablesourceobject. -
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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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. -
getBalanceType
The balance that this transaction impacts.One of
issuing,payments,refund_and_dispute_prefunding, ortransit. -
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 theamountin currency A, multipled by theexchange_rate, equals theamountin currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntent'samountis1000andcurrencyiseur. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction'samountis1234, itscurrencyisusd, and theexchange_rateis1.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 eitheravailableorpending. -
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,payout_minimum_balance_hold,payout_minimum_balance_release,refund,refund_failure,reserve_transaction,reserved_funds,stripe_fee,stripe_fx_fee,stripe_balance_payment_debit,stripe_balance_payment_debit_reversal,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_categoryinstead.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,payout_minimum_balance_hold,payout_minimum_balance_release,refund,refund_failure,reserve_transaction,reserved_funds,stripe_balance_payment_debit,stripe_balance_payment_debit_reversal,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. -
setBalanceType
The balance that this transaction impacts.One of
issuing,payments,refund_and_dispute_prefunding, ortransit. -
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 theamountin currency A, multipled by theexchange_rate, equals theamountin currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntent'samountis1000andcurrencyiseur. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction'samountis1234, itscurrencyisusd, and theexchange_rateis1.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 eitheravailableorpending. -
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,payout_minimum_balance_hold,payout_minimum_balance_release,refund,refund_failure,reserve_transaction,reserved_funds,stripe_fee,stripe_fx_fee,stripe_balance_payment_debit,stripe_balance_payment_debit_reversal,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_categoryinstead.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,payout_minimum_balance_hold,payout_minimum_balance_release,refund,refund_failure,reserve_transaction,reserved_funds,stripe_balance_payment_debit,stripe_balance_payment_debit_reversal,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.
-