pub struct Price {Show 16 fields
pub created_at: DateTime<Utc>,
pub modified_at: Option<DateTime<Utc>>,
pub id: Uuid,
pub amount_type: AmountType,
pub is_archived: bool,
pub product_id: Uuid,
pub type: PriceType,
pub price_currency: Option<String>,
pub price_amount: Option<u32>,
pub minimum_amount: Option<u32>,
pub maximum_amount: Option<u32>,
pub preset_amount: Option<u32>,
pub unit_amount: Option<String>,
pub cap_amount: Option<u32>,
pub meter_id: Option<Uuid>,
pub meter: Option<PriceMeter>,
}Fields§
§created_at: DateTime<Utc>Creation timestamp of the object.
modified_at: Option<DateTime<Utc>>Last modification timestamp of the object.
id: UuidThe ID of the price.
amount_type: AmountType§is_archived: boolWhether the price is archived and no longer available.
product_id: UuidThe ID of the product owning the price.
type: PriceType§price_currency: Option<String>The currency. Not required for amount_type: Free.
price_amount: Option<u32>The price in cents. Only for amount_type: Fixed.
minimum_amount: Option<u32>The minimum amount the customer can pay. Only for amount_type: Custom.
maximum_amount: Option<u32>The maximum amount the customer can pay. Only for amount_type: Custom.
preset_amount: Option<u32>The initial amount shown to the customer. Only for amount_type: Custom.
unit_amount: Option<String>The price per unit in cents. Only for amount_type: MeteredUnit.
cap_amount: Option<u32>The maximum amount in cents that can be charged, regardless of the number of units consumed. Only for amount_type: MeteredUnit.
meter_id: Option<Uuid>The ID of the meter associated to the price. Only for amount_type: MeteredUnit.
meter: Option<PriceMeter>The meter associated to the price. Only for amount_type: MeteredUnit.