pub struct TransactionPreviewCreate {
pub customer_id: CustomerID,
pub currency_code: CurrencyCode,
pub discount_id: DiscountID,
pub ignore_trials: bool,
pub items: Vec<SubscriptionChargeItem>,
}
Expand description
Represents a transaction entity when previewing.
Fields§
§customer_id: CustomerID
Paddle ID of the customer that this transaction preview is for, prefixed with ctm_
.
currency_code: CurrencyCode
Supported three-letter ISO 4217 currency code.
discount_id: DiscountID
Paddle ID of the discount applied to this transaction preview, prefixed with dsc_
.
ignore_trials: bool
Whether trials should be ignored for transaction preview calculations.
By default, recurring items with trials are considered to have a zero charge when previewing. Set to true
to disable this.
items: Vec<SubscriptionChargeItem>
List of items to preview charging for. You can preview charging for items that you’ve added to your catalog by passing the Paddle ID of an existing price entity, or you can preview charging for non-catalog items by passing a price object.
Non-catalog items can be for existing products, or you can pass a product object as part of your price to preview charging for a non-catalog product.
Trait Implementations§
Source§impl Clone for TransactionPreviewCreate
impl Clone for TransactionPreviewCreate
Source§fn clone(&self) -> TransactionPreviewCreate
fn clone(&self) -> TransactionPreviewCreate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more