pub struct AdjustmentTotals {
pub subtotal: String,
pub tax: String,
pub total: String,
pub fee: String,
pub earnings: String,
pub currency_code: CurrencyCode,
}Expand description
Breakdown of the total for an adjustment.
Fields§
§subtotal: StringTotal before tax. For tax adjustments, the value is 0.
tax: StringTotal tax on the subtotal.
total: StringTotal after tax.
fee: StringTotal fee taken by Paddle for this adjustment.
earnings: StringTotal earnings. This is the subtotal minus the Paddle fee. For tax adjustments, this value is negative, which means a positive effect in the transaction earnings. This is because the fee is originally calculated from the transaction total, so if a tax adjustment is made, then the fee portion of it is returned.
currency_code: CurrencyCodeSupported three-letter ISO 4217 currency code.
Trait Implementations§
Source§impl Clone for AdjustmentTotals
impl Clone for AdjustmentTotals
Source§fn clone(&self) -> AdjustmentTotals
fn clone(&self) -> AdjustmentTotals
Returns a copy 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 AdjustmentTotals
impl Debug for AdjustmentTotals
Source§impl<'de> Deserialize<'de> for AdjustmentTotals
impl<'de> Deserialize<'de> for AdjustmentTotals
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 AdjustmentTotals
impl RefUnwindSafe for AdjustmentTotals
impl Send for AdjustmentTotals
impl Sync for AdjustmentTotals
impl Unpin for AdjustmentTotals
impl UnwindSafe for AdjustmentTotals
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