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, GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanGross 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 expandablesourceobject.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.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 the transaction, in %s.voidsetAvailableOn(Long availableOn) The date the transaction's net funds will become available in the Stripe balance.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, if applicable, for this transaction.voidFees (in %s) paid for this transaction.voidsetFeeDetails(List<BalanceTransaction.FeeDetail> feeDetails) Detailed breakdown of fees (in %s) paid for this transaction.voidUnique identifier for the object.voidNet amount of the transaction, in %s.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.voidvoidsetSourceObject(BalanceTransactionSource expandableObject) voidIf the transaction's net funds are available in the Stripe balance yet.voidTransaction 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, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
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
-
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 theamountin currency A, timesexchange_rate, would be theamountin currency B. For example, suppose you charged a customer 10.00 EUR. Then the PaymentIntent'samountwould be1000andcurrencywould beeur. Suppose this was converted into 12.34 USD in your Stripe account. Then the BalanceTransaction'samountwould be1234,currencywould beusd, andexchange_ratewould 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. Eitheravailableorpending. -
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_categoryinstead.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 theamountin currency A, timesexchange_rate, would be theamountin currency B. For example, suppose you charged a customer 10.00 EUR. Then the PaymentIntent'samountwould be1000andcurrencywould beeur. Suppose this was converted into 12.34 USD in your Stripe account. Then the BalanceTransaction'samountwould be1234,currencywould beusd, andexchange_ratewould 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. Eitheravailableorpending. -
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_categoryinstead.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.
-