Struct qcs_api_client_openapi::models::billing_price::BillingPrice
source · pub struct BillingPrice {
pub active: Option<bool>,
pub billing_scheme: Option<BillingPriceScheme>,
pub id: String,
pub object: Option<Object>,
pub price_type: Option<PriceType>,
pub product: Option<Box<BillingProduct>>,
pub recurring: Option<Box<BillingPriceRecurrence>>,
pub tiers: Option<Vec<BillingPriceTier>>,
pub tiers_mode: Option<BillingPriceTiersMode>,
pub unit_amount_decimal: Option<f64>,
}Fields§
§active: Option<bool>Whether the price can be used for new purchases.
billing_scheme: Option<BillingPriceScheme>§id: StringUnique identifier for the object.
object: Option<Object>String representing the object’s type. Objects of the same type share the same value.
price_type: Option<PriceType>One of one_time or recurring depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
product: Option<Box<BillingProduct>>§recurring: Option<Box<BillingPriceRecurrence>>§tiers: Option<Vec<BillingPriceTier>>Each element represents a pricing tier. This parameter requires billingScheme to be set to tiered. See also the documentation for billingScheme.
tiers_mode: Option<BillingPriceTiersMode>§unit_amount_decimal: Option<f64>The unit amount in currency to be charged. Only set if billingScheme=per_unit.
Implementations§
source§impl BillingPrice
impl BillingPrice
sourcepub fn new(id: String) -> BillingPrice
pub fn new(id: String) -> BillingPrice
The price schedule for a particular service applied to an invoice line item.
Trait Implementations§
source§impl Clone for BillingPrice
impl Clone for BillingPrice
source§fn clone(&self) -> BillingPrice
fn clone(&self) -> BillingPrice
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 Debug for BillingPrice
impl Debug for BillingPrice
source§impl Default for BillingPrice
impl Default for BillingPrice
source§fn default() -> BillingPrice
fn default() -> BillingPrice
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BillingPrice
impl<'de> Deserialize<'de> for BillingPrice
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
source§impl PartialEq<BillingPrice> for BillingPrice
impl PartialEq<BillingPrice> for BillingPrice
source§fn eq(&self, other: &BillingPrice) -> bool
fn eq(&self, other: &BillingPrice) -> bool
This method tests for
self and other values to be equal, and is used
by ==.