pub struct TransactionLineItemWithId {
pub id: TransactionItemID,
pub price_id: PriceID,
pub quantity: i64,
pub proration: Option<Proration>,
pub tax_rate: String,
pub unit_totals: Totals,
pub totals: Totals,
pub product: Product,
}
Expand description
Information about line items for this transaction. Different from transaction items
as they include totals calculated by Paddle. Considered the source of truth for line item totals.
Fields§
§id: TransactionItemID
Unique Paddle ID for this transaction item, prefixed with txnitm_
.
price_id: PriceID
Unique Paddle ID for this price, prefixed with pri_
.
quantity: i64
Quantity of this transaction line item.
proration: Option<Proration>
How proration was calculated for this item. Populated when a transaction is created from a subscription change, where proration_billing_mode
was prorated_immediately
or prorated_next_billing_period
. Set automatically by Paddle.
tax_rate: String
Rate used to calculate tax for this transaction line item.
unit_totals: Totals
Breakdown of a charge in the lowest denomination of a currency (e.g. cents for USD).
totals: Totals
Breakdown of a charge in the lowest denomination of a currency (e.g. cents for USD).
product: Product
Represents a product entity.
Trait Implementations§
Source§impl Clone for TransactionLineItemWithId
impl Clone for TransactionLineItemWithId
Source§fn clone(&self) -> TransactionLineItemWithId
fn clone(&self) -> TransactionLineItemWithId
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more