pub struct SubscriptionTransactionDetailsPreviewItem {
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
SubscriptionTransactionDetailsPreview requires same fields as TransactionLineItemPreview but proration is optional
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 SubscriptionTransactionDetailsPreviewItem
impl Clone for SubscriptionTransactionDetailsPreviewItem
Source§fn clone(&self) -> SubscriptionTransactionDetailsPreviewItem
fn clone(&self) -> SubscriptionTransactionDetailsPreviewItem
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<'de> Deserialize<'de> for SubscriptionTransactionDetailsPreviewItem
impl<'de> Deserialize<'de> for SubscriptionTransactionDetailsPreviewItem
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 SubscriptionTransactionDetailsPreviewItem
impl RefUnwindSafe for SubscriptionTransactionDetailsPreviewItem
impl Send for SubscriptionTransactionDetailsPreviewItem
impl Sync for SubscriptionTransactionDetailsPreviewItem
impl Unpin for SubscriptionTransactionDetailsPreviewItem
impl UnwindSafe for SubscriptionTransactionDetailsPreviewItem
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