pub struct TransactionTotals {
pub subtotal: String,
pub discount: String,
pub tax: String,
pub total: String,
pub credit: String,
pub credit_to_balance: String,
pub balance: String,
pub grand_total: String,
pub fee: Option<String>,
pub earnings: Option<String>,
pub currency_code: CurrencyCode,
}Expand description
Breakdown of the total for a transaction. These numbers can be negative when dealing with subscription updates that result in credit.
Fields§
§subtotal: StringSubtotal before discount, tax, and deductions. If an item, unit price multiplied by quantity.
discount: StringTotal discount as a result of any discounts applied.
Except for percentage discounts, Paddle applies tax to discounts based on the line item price.tax_mode. If price.tax_mode for a line item is internal, Paddle removes tax from the discount applied.
tax: StringTotal tax on the subtotal.
total: StringTotal after discount and tax.
credit: StringTotal credit applied to this transaction. This includes credits applied using a customer’s credit balance and adjustments to a billed transaction.
credit_to_balance: StringAdditional credit generated from negative details.line_items. This credit is added to the customer balance.
balance: StringTotal due on a transaction after credits and any payments.
grand_total: StringTotal due on a transaction 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: CurrencyCodeThree-letter ISO 4217 currency code of the currency used for this transaction.
Trait Implementations§
Source§impl Clone for TransactionTotals
impl Clone for TransactionTotals
Source§fn clone(&self) -> TransactionTotals
fn clone(&self) -> TransactionTotals
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more