pub struct PriceCreate {Show 13 fields
pub id: PriceID,
pub description: String,
pub type: CatalogType,
pub name: Option<String>,
pub product_id: ProductID,
pub billing_cycle: Option<Duration>,
pub trial_period: Option<Duration>,
pub tax_mode: TaxMode,
pub unit_price: Money,
pub unit_price_overrides: Vec<UnitPriceOverride>,
pub quantity: PriceQuantity,
pub custom_data: Option<HashMap<String, String>>,
pub import_meta: ImportMeta,
}
Expand description
Represents a price entity when creating prices.
Fields§
§id: PriceID
Unique Paddle ID for this price, prefixed with pri_
.
description: String
Internal description for this price, not shown to customers. Typically notes for your team.
type: CatalogType
Type of item. Standard items are considered part of your catalog and are shown on the Paddle dashboard.
name: Option<String>
Name of this price, shown to customers at checkout and on invoices. Typically describes how often the related product bills.
product_id: ProductID
Unique Paddle ID for this product, prefixed with pro_
.
billing_cycle: Option<Duration>
How often this price should be charged. null
if price is non-recurring (one-time). If omitted, defaults to null
.
trial_period: Option<Duration>
Trial period for the product related to this price. The billing cycle begins once the trial period is over.
null
for no trial period. Requires billing_cycle
. If omitted, defaults to null
.
tax_mode: TaxMode
How tax is calculated for this price.
unit_price: Money
A base representation of monetary value unformatted in the lowest denomination with currency code.
unit_price_overrides: Vec<UnitPriceOverride>
List of unit price overrides. Use to override the base price with a custom price and currency for a country or group of countries.
quantity: PriceQuantity
§custom_data: Option<HashMap<String, String>>
Your own structured key-value data.
import_meta: ImportMeta
Import information for this entity. null
if this entity is not imported.
Trait Implementations§
Source§impl Clone for PriceCreate
impl Clone for PriceCreate
Source§fn clone(&self) -> PriceCreate
fn clone(&self) -> PriceCreate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more