pub struct PaymentSessionBalances {
pub capturable: Option<String>,
pub captured: Option<String>,
pub refundable: Option<String>,
pub refunded: Option<String>,
}Expand description
Running totals tracking how funds move through the session. All amounts are decimal representations denominated in the session’s asset.
JSON schema
{
"description": "Running totals tracking how funds move through the session. All amounts are decimal representations denominated in the session's `asset`.",
"examples": [
{
"capturable": "1.00",
"captured": "0",
"refundable": "0",
"refunded": "0"
}
],
"type": "object",
"properties": {
"capturable": {
"description": "Authorized funds not yet captured or voided. Decreases with each capture or void.",
"examples": [
"1.00"
],
"type": "string"
},
"captured": {
"description": "Total funds captured across all captures.",
"examples": [
"0"
],
"type": "string"
},
"refundable": {
"description": "Captured funds not yet refunded. Equals `captured` minus `refunded`.",
"examples": [
"0"
],
"type": "string"
},
"refunded": {
"description": "Total funds refunded across all refunds.",
"examples": [
"0"
],
"type": "string"
}
}
}Fields§
§capturable: Option<String>Authorized funds not yet captured or voided. Decreases with each capture or void.
captured: Option<String>Total funds captured across all captures.
refundable: Option<String>Captured funds not yet refunded. Equals captured minus refunded.
refunded: Option<String>Total funds refunded across all refunds.
Implementations§
Source§impl PaymentSessionBalances
impl PaymentSessionBalances
pub fn builder() -> PaymentSessionBalances
Trait Implementations§
Source§impl Clone for PaymentSessionBalances
impl Clone for PaymentSessionBalances
Source§impl Debug for PaymentSessionBalances
impl Debug for PaymentSessionBalances
Source§impl Default for PaymentSessionBalances
impl Default for PaymentSessionBalances
Source§impl<'de> Deserialize<'de> for PaymentSessionBalances
impl<'de> Deserialize<'de> for PaymentSessionBalances
Source§fn 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
Source§impl From<&PaymentSessionBalances> for PaymentSessionBalances
impl From<&PaymentSessionBalances> for PaymentSessionBalances
Source§fn from(value: &PaymentSessionBalances) -> Self
fn from(value: &PaymentSessionBalances) -> Self
Converts to this type from the input type.
Source§impl From<PaymentSessionBalances> for PaymentSessionBalances
impl From<PaymentSessionBalances> for PaymentSessionBalances
Source§fn from(value: PaymentSessionBalances) -> Self
fn from(value: PaymentSessionBalances) -> Self
Converts to this type from the input type.
Source§impl Serialize for PaymentSessionBalances
impl Serialize for PaymentSessionBalances
Source§impl TryFrom<PaymentSessionBalances> for PaymentSessionBalances
impl TryFrom<PaymentSessionBalances> for PaymentSessionBalances
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PaymentSessionBalances) -> Result<Self, ConversionError>
fn try_from(value: PaymentSessionBalances) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PaymentSessionBalances
impl RefUnwindSafe for PaymentSessionBalances
impl Send for PaymentSessionBalances
impl Sync for PaymentSessionBalances
impl Unpin for PaymentSessionBalances
impl UnsafeUnpin for PaymentSessionBalances
impl UnwindSafe for PaymentSessionBalances
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more