Struct stripe::BalanceTransaction [−][src]
The resource representing a Stripe "BalanceTransaction".
For more details see https://stripe.com/docs/api/balance_transactions/object.
Fields
id: BalanceTransactionId
Unique identifier for the object.
amount: i64
Gross amount of the transaction, in %s.
available_on: Timestamp
The date the transaction's net funds will become available in the Stripe balance.
created: Timestamp
Time at which the object was created.
Measured in seconds since the Unix epoch.
currency: Currency
Three-letter ISO currency code, in lowercase.
Must be a supported currency.
description: Option<String>
An arbitrary string attached to the object.
Often useful for displaying to users.
exchange_rate: Option<f64>
The exchange rate used, if applicable, for this transaction.
Specifically, if money was converted from currency A to currency B, then the amount
in currency A, times exchange_rate
, would be the amount
in currency B.
For example, suppose you charged a customer 10.00 EUR.
Then the PaymentIntent's amount
would be 1000
and currency
would be eur
.
Suppose this was converted into 12.34 USD in your Stripe account.
Then the BalanceTransaction's amount
would be 1234
, currency
would be usd
, and exchange_rate
would be 1.234
.
fee: i64
Fees (in %s) paid for this transaction.
fee_details: Vec<Fee>
Detailed breakdown of fees (in %s) paid for this transaction.
net: i64
Net amount of the transaction, in %s.
reporting_category: String
Learn more about how reporting categories can help you understand balance transactions from an accounting perspective.
source: Option<Expandable<BalanceTransactionSource>>
The Stripe object to which this transaction is related.
status: BalanceTransactionStatus
If the transaction's net funds are available in the Stripe balance yet.
Either available
or pending
.
type_: BalanceTransactionType
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
, or transfer_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 consider reporting_category
instead.
Implementations
impl BalanceTransaction
[src]
pub fn list(
client: &Client,
params: ListBalanceTransactions<'_>
) -> Response<List<BalanceTransaction>>
[src]
client: &Client,
params: ListBalanceTransactions<'_>
) -> Response<List<BalanceTransaction>>
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
.
pub fn retrieve(
client: &Client,
id: &BalanceTransactionId,
expand: &[&str]
) -> Response<BalanceTransaction>
[src]
client: &Client,
id: &BalanceTransactionId,
expand: &[&str]
) -> Response<BalanceTransaction>
Retrieves the balance transaction with the given ID.
Note that this endpoint previously used the path /v1/balance/history/:id
.
Trait Implementations
impl Clone for BalanceTransaction
[src]
fn clone(&self) -> BalanceTransaction
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BalanceTransaction
[src]
impl<'de> Deserialize<'de> for BalanceTransaction
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Object for BalanceTransaction
[src]
type Id = BalanceTransactionId
The canonical id type for this object.
fn id(&self) -> Self::Id
[src]
fn object(&self) -> &'static str
[src]
impl Serialize for BalanceTransaction
[src]
Auto Trait Implementations
impl RefUnwindSafe for BalanceTransaction
[src]
impl Send for BalanceTransaction
[src]
impl Sync for BalanceTransaction
[src]
impl Unpin for BalanceTransaction
[src]
impl UnwindSafe for BalanceTransaction
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,