pub struct TransactionTotalsAdjusted {
pub subtotal: String,
pub tax: String,
pub total: String,
pub grand_total: String,
pub fee: Option<String>,
pub earnings: Option<String>,
pub currency_code: CurrencyCode,
}
Expand description
Breakdown of the totals for a transaction after adjustments.
Fields§
§subtotal: String
Subtotal before discount, tax, and deductions. If an item, unit price multiplied by quantity.
tax: String
Total tax on the subtotal.
total: String
Total after tax.
grand_total: String
Total due after credits but before any payments.
fee: Option<String>
Total fee taken by Paddle for this transaction. null
until the transaction is completed
and the fee is processed.
earnings: Option<String>
Total earnings for this transaction. This is the total minus the Paddle fee.
null
until the transaction is completed
and the fee is processed.
currency_code: CurrencyCode
Supported three-letter ISO 4217 currency code.
Trait Implementations§
Source§impl Clone for TransactionTotalsAdjusted
impl Clone for TransactionTotalsAdjusted
Source§fn clone(&self) -> TransactionTotalsAdjusted
fn clone(&self) -> TransactionTotalsAdjusted
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TransactionTotalsAdjusted
impl Debug for TransactionTotalsAdjusted
Source§impl<'de> Deserialize<'de> for TransactionTotalsAdjusted
impl<'de> Deserialize<'de> for TransactionTotalsAdjusted
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
Auto Trait Implementations§
impl Freeze for TransactionTotalsAdjusted
impl RefUnwindSafe for TransactionTotalsAdjusted
impl Send for TransactionTotalsAdjusted
impl Sync for TransactionTotalsAdjusted
impl Unpin for TransactionTotalsAdjusted
impl UnwindSafe for TransactionTotalsAdjusted
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