Class BalanceTransaction
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.BalanceTransaction
-
- All Implemented Interfaces:
HasId,StripeObjectInterface
public class BalanceTransaction extends ApiResource implements HasId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBalanceTransaction.Fee-
Nested 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 Constructor Description BalanceTransaction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.LonggetAmount()Gross amount of the transaction, in %s.java.lang.LonggetAvailableOn()The date the transaction's net funds will become available in the Stripe balance.java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetCurrency()Three-letter ISO currency code, in lowercase.java.lang.StringgetDescription()An arbitrary string attached to the object.java.math.BigDecimalgetExchangeRate()The exchange rate used, if applicable, for this transaction.java.lang.LonggetFee()Fees (in %s) paid for this transaction.java.util.List<BalanceTransaction.Fee>getFeeDetails()Detailed breakdown of fees (in %s) paid for this transaction.java.lang.StringgetId()Unique identifier for the object.java.lang.LonggetNet()Net amount of the transaction, in %s.java.lang.StringgetObject()String representing the object's type.java.lang.StringgetReportingCategory()Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.java.lang.StringgetSource()Get ID of expandablesourceobject.BalanceTransactionSourcegetSourceObject()Get expandedsource.java.lang.StringgetStatus()If the transaction's net funds are available in the Stripe balance yet.java.lang.StringgetType()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 BalanceTransactionCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params)Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth).static BalanceTransactionCollectionlist(java.util.Map<java.lang.String,java.lang.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 BalanceTransactionretrieve(java.lang.String id)Retrieves the balance transaction with the given ID.static BalanceTransactionretrieve(java.lang.String id, RequestOptions options)Retrieves the balance transaction with the given ID.static BalanceTransactionretrieve(java.lang.String id, BalanceTransactionRetrieveParams params, RequestOptions options)Retrieves the balance transaction with the given ID.static BalanceTransactionretrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Retrieves the balance transaction with the given ID.voidsetAmount(java.lang.Long amount)Gross amount of the transaction, in %s.voidsetAvailableOn(java.lang.Long availableOn)The date the transaction's net funds will become available in the Stripe balance.voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetCurrency(java.lang.String currency)Three-letter ISO currency code, in lowercase.voidsetDescription(java.lang.String description)An arbitrary string attached to the object.voidsetExchangeRate(java.math.BigDecimal exchangeRate)The exchange rate used, if applicable, for this transaction.voidsetFee(java.lang.Long fee)Fees (in %s) paid for this transaction.voidsetFeeDetails(java.util.List<BalanceTransaction.Fee> feeDetails)Detailed breakdown of fees (in %s) paid for this transaction.voidsetId(java.lang.String id)Unique identifier for the object.voidsetNet(java.lang.Long net)Net amount of the transaction, in %s.voidsetObject(java.lang.String object)String representing the object's type.voidsetReportingCategory(java.lang.String reportingCategory)Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.voidsetSource(java.lang.String id)voidsetSourceObject(BalanceTransactionSource expandableObject)voidsetStatus(java.lang.String status)If the transaction's net funds are available in the Stripe balance yet.voidsetType(java.lang.String type)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, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getSource
public java.lang.String getSource()
Get ID of expandablesourceobject.
-
setSource
public void setSource(java.lang.String id)
-
getSourceObject
public BalanceTransactionSource getSourceObject()
Get expandedsource.
-
setSourceObject
public void setSourceObject(BalanceTransactionSource expandableObject)
-
list
public static BalanceTransactionCollection list(java.util.Map<java.lang.String,java.lang.Object> 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(java.util.Map<java.lang.String,java.lang.Object> 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
-
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
public static BalanceTransaction retrieve(java.lang.String id) throws StripeException
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(java.lang.String id, 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
-
retrieve
public static BalanceTransaction retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> 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
-
retrieve
public static BalanceTransaction retrieve(java.lang.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
public java.lang.Long getAmount()
Gross amount of the transaction, in %s.
-
getAvailableOn
public java.lang.Long getAvailableOn()
The date the transaction's net funds will become available in the Stripe balance.
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getCurrency
public java.lang.String getCurrency()
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
getDescription
public java.lang.String getDescription()
An arbitrary string attached to the object. Often useful for displaying to users.
-
getExchangeRate
public java.math.BigDecimal 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
public java.lang.Long getFee()
Fees (in %s) paid for this transaction.
-
getFeeDetails
public java.util.List<BalanceTransaction.Fee> getFeeDetails()
Detailed breakdown of fees (in %s) paid for this transaction.
-
getNet
public java.lang.Long getNet()
Net amount of the transaction, in %s.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
balance_transaction.
-
getReportingCategory
public java.lang.String getReportingCategory()
Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.
-
getStatus
public java.lang.String getStatus()
If the transaction's net funds are available in the Stripe balance yet. Eitheravailableorpending.
-
getType
public java.lang.String 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
public void setAmount(java.lang.Long amount)
Gross amount of the transaction, in %s.
-
setAvailableOn
public void setAvailableOn(java.lang.Long availableOn)
The date the transaction's net funds will become available in the Stripe balance.
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setCurrency
public void setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
setDescription
public void setDescription(java.lang.String description)
An arbitrary string attached to the object. Often useful for displaying to users.
-
setExchangeRate
public void setExchangeRate(java.math.BigDecimal exchangeRate)
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
public void setFee(java.lang.Long fee)
Fees (in %s) paid for this transaction.
-
setFeeDetails
public void setFeeDetails(java.util.List<BalanceTransaction.Fee> feeDetails)
Detailed breakdown of fees (in %s) paid for this transaction.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setNet
public void setNet(java.lang.Long net)
Net amount of the transaction, in %s.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
balance_transaction.
-
setReportingCategory
public void setReportingCategory(java.lang.String reportingCategory)
Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.
-
setStatus
public void setStatus(java.lang.String status)
If the transaction's net funds are available in the Stripe balance yet. Eitheravailableorpending.
-
setType
public void setType(java.lang.String type)
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
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-