pub struct Balance {
pub available: Vec<BalanceAmount>,
pub connect_reserved: Option<Vec<BalanceAmount>>,
pub instant_available: Option<Vec<BalanceAmount>>,
pub issuing: Option<BalanceDetail>,
pub livemode: bool,
pub pending: Vec<BalanceAmount>,
}
Expand description
The resource representing a Stripe “Balance”.
Fields
available: Vec<BalanceAmount>
Funds that are available to be transferred or paid out, whether automatically by Stripe or explicitly via the Transfers API or Payouts API.
The available balance for each currency and payment type can be found in the source_types
property.
connect_reserved: Option<Vec<BalanceAmount>>
Funds held due to negative balances on connected Custom accounts.
The connect reserve balance for each currency and payment type can be found in the source_types
property.
instant_available: Option<Vec<BalanceAmount>>
Funds that can be paid out using Instant Payouts.
issuing: Option<BalanceDetail>
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
pending: Vec<BalanceAmount>
Funds that are not yet available in the balance, due to the 7-day rolling pay cycle.
The pending balance for each currency, and for each payment type, can be found in the source_types
property.
Implementations
sourceimpl Balance
impl Balance
sourcepub fn list(
client: &Client,
params: &ListBalances<'_>
) -> Response<List<Balance>>
pub fn list(
client: &Client,
params: &ListBalances<'_>
) -> Response<List<Balance>>
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
.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Balance
impl<'de> Deserialize<'de> for Balance
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Balance
impl Send for Balance
impl Sync for Balance
impl Unpin for Balance
impl UnwindSafe for Balance
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more