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.The exchange rate used for this transaction, if applicable.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:tax_fund,adjustment,advance,advance_funding,anticipation_repayment,application_fee,application_fee_refund,charge,climate_order_purchase,climate_order_refund,connect_collection_transfer,contribution,inbound_transfer,inbound_transfer_reversal,issuing_authorization_hold,issuing_authorization_release,issuing_dispute,issuing_dispute_provisional_credit,issuing_dispute_provisional_credit_reversal,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,reserve_hold,reserve_release,stripe_fee,stripe_fx_fee,stripe_balance_payment_debit,stripe_balance_payment_debit_reversal,tax_fee,topup,topup_reversal,transfer,transfer_cancel,transfer_failure,transfer_refund, orfee_credit_funding.inthashCode()static BalanceTransactionCollectionlist(BalanceTransactionListParams params) Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on).static BalanceTransactionCollectionlist(BalanceTransactionListParams params, RequestOptions options) Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on).static BalanceTransactionCollectionReturns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on).static BalanceTransactionCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of transactions that have contributed to the Stripe account balance (for example, charges, transfers, and so on).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) The exchange rate used for this transaction, if applicable.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:tax_fund,adjustment,advance,advance_funding,anticipation_repayment,application_fee,application_fee_refund,charge,climate_order_purchase,climate_order_refund,connect_collection_transfer,contribution,inbound_transfer,inbound_transfer_reversal,issuing_authorization_hold,issuing_authorization_release,issuing_dispute,issuing_dispute_provisional_credit,issuing_dispute_provisional_credit_reversal,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,reserve_hold,reserve_release,stripe_fee,stripe_fx_fee,stripe_balance_payment_debit,stripe_balance_payment_debit_reversal,tax_fee,topup,topup_reversal,transfer,transfer_cancel,transfer_failure,transfer_refund, orfee_credit_funding.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, 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 (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first.The previous name of this endpoint was “Balance history,” and it 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 (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first.The previous name of this endpoint was “Balance history,” and it 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 (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first.The previous name of this endpoint was “Balance history,” and it 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 (for example, charges, transfers, and so on). The transactions return in sorted order, with the most recent transactions appearing first.The previous name of this endpoint was “Balance history,” and it 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, orrisk_reserved. -
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 for this transaction, if applicable. Multiplying the sourceamountby theexchange_rategives the destinationamount, both in their currencies' smallest units. For example,1000EUR cents converts to1234USD cents at1.234. For a zero-decimal currency such as JPY,1000JPY converts to640USD cents (6.40 USD) at0.64, equivalent to0.0064USD per JPY. For JPY to USD, the API multiplier is 100 times the whole-unit rate because JPY amounts use yen and USD amounts use cents. -
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:tax_fund,adjustment,advance,advance_funding,anticipation_repayment,application_fee,application_fee_refund,charge,climate_order_purchase,climate_order_refund,connect_collection_transfer,contribution,inbound_transfer,inbound_transfer_reversal,issuing_authorization_hold,issuing_authorization_release,issuing_dispute,issuing_dispute_provisional_credit,issuing_dispute_provisional_credit_reversal,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,reserve_hold,reserve_release,stripe_fee,stripe_fx_fee,stripe_balance_payment_debit,stripe_balance_payment_debit_reversal,tax_fee,topup,topup_reversal,transfer,transfer_cancel,transfer_failure,transfer_refund, orfee_credit_funding. 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,fee_credit_funding,inbound_transfer,inbound_transfer_reversal,issuing_authorization_hold,issuing_authorization_release,issuing_dispute,issuing_dispute_provisional_credit,issuing_dispute_provisional_credit_reversal,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_hold,reserve_release,reserve_transaction,reserved_funds,stripe_balance_payment_debit,stripe_balance_payment_debit_reversal,stripe_fee,stripe_fx_fee,tax_fee,tax_fund,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, orrisk_reserved. -
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 for this transaction, if applicable. Multiplying the sourceamountby theexchange_rategives the destinationamount, both in their currencies' smallest units. For example,1000EUR cents converts to1234USD cents at1.234. For a zero-decimal currency such as JPY,1000JPY converts to640USD cents (6.40 USD) at0.64, equivalent to0.0064USD per JPY. For JPY to USD, the API multiplier is 100 times the whole-unit rate because JPY amounts use yen and USD amounts use cents. -
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:tax_fund,adjustment,advance,advance_funding,anticipation_repayment,application_fee,application_fee_refund,charge,climate_order_purchase,climate_order_refund,connect_collection_transfer,contribution,inbound_transfer,inbound_transfer_reversal,issuing_authorization_hold,issuing_authorization_release,issuing_dispute,issuing_dispute_provisional_credit,issuing_dispute_provisional_credit_reversal,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,reserve_hold,reserve_release,stripe_fee,stripe_fx_fee,stripe_balance_payment_debit,stripe_balance_payment_debit_reversal,tax_fee,topup,topup_reversal,transfer,transfer_cancel,transfer_failure,transfer_refund, orfee_credit_funding. 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,fee_credit_funding,inbound_transfer,inbound_transfer_reversal,issuing_authorization_hold,issuing_authorization_release,issuing_dispute,issuing_dispute_provisional_credit,issuing_dispute_provisional_credit_reversal,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_hold,reserve_release,reserve_transaction,reserved_funds,stripe_balance_payment_debit,stripe_balance_payment_debit_reversal,stripe_fee,stripe_fx_fee,tax_fee,tax_fund,topup,topup_reversal,transfer,transfer_cancel,transfer_failure, ortransfer_refund. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-