pub struct TransactionLineItemPreview {
pub price_id: Option<PriceID>,
pub quantity: i64,
pub tax_rate: String,
pub unit_totals: Totals,
pub totals: Totals,
pub product: ProductPreview,
pub proration: Option<Proration>,
}
Expand description
Information about line items for this transaction preview. Different from transaction preview items
as they include totals calculated by Paddle. Considered the source of truth for line item totals.
Fields§
§price_id: Option<PriceID>
Paddle ID for the price related to this transaction line item, prefixed with pri_
.
The value is null for custom prices being previewed.
quantity: i64
Quantity of this transaction line item.
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: ProductPreview
Represents a product (preview) entity.
proration: Option<Proration>
How proration was calculated for this item.
Trait Implementations§
Source§impl Clone for TransactionLineItemPreview
impl Clone for TransactionLineItemPreview
Source§fn clone(&self) -> TransactionLineItemPreview
fn clone(&self) -> TransactionLineItemPreview
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 TransactionLineItemPreview
impl Debug for TransactionLineItemPreview
Source§impl<'de> Deserialize<'de> for TransactionLineItemPreview
impl<'de> Deserialize<'de> for TransactionLineItemPreview
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 TransactionLineItemPreview
impl RefUnwindSafe for TransactionLineItemPreview
impl Send for TransactionLineItemPreview
impl Sync for TransactionLineItemPreview
impl Unpin for TransactionLineItemPreview
impl UnwindSafe for TransactionLineItemPreview
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