pub struct Price {Show 16 fields
pub id: PriceID,
pub product_id: ProductID,
pub description: String,
pub type: CatalogType,
pub name: Option<String>,
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 status: Status,
pub custom_data: Option<Value>,
pub import_meta: Option<ImportMeta>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}
Expand description
Represents a price entity.
Fields§
§id: PriceID
Unique Paddle ID for this price, prefixed with pri_
.
product_id: ProductID
Unique Paddle ID for this product, prefixed with pro_
.
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.
billing_cycle: Option<Duration>
How often this price should be charged. null
if price is non-recurring (one-time).
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
.
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
§status: Status
Whether this entity can be used in Paddle.
custom_data: Option<Value>
Your own structured key-value data.
import_meta: Option<ImportMeta>
Import information for this entity. null
if this entity is not imported.
created_at: DateTime<Utc>
RFC 3339 datetime string of when this entity was created. Set automatically by Paddle.
updated_at: DateTime<Utc>
RFC 3339 datetime string of when this entity was updated. Set automatically by Paddle.