Struct stripe::generated::checkout::checkout_session::CreateCheckoutSessionLineItemsPriceData
source · pub struct CreateCheckoutSessionLineItemsPriceData {
pub currency: Currency,
pub product: Option<String>,
pub product_data: Option<CreateCheckoutSessionLineItemsPriceDataProductData>,
pub recurring: Option<CreateCheckoutSessionLineItemsPriceDataRecurring>,
pub tax_behavior: Option<CreateCheckoutSessionLineItemsPriceDataTaxBehavior>,
pub unit_amount: Option<i64>,
pub unit_amount_decimal: Option<String>,
}Fields§
§currency: CurrencyThree-letter ISO currency code, in lowercase.
Must be a supported currency.
product: Option<String>The ID of the product that this price will belong to.
One of product or product_data is required.
product_data: Option<CreateCheckoutSessionLineItemsPriceDataProductData>Data used to generate a new product object inline.
One of product or product_data is required.
recurring: Option<CreateCheckoutSessionLineItemsPriceDataRecurring>The recurring components of a price such as interval and interval_count.
tax_behavior: Option<CreateCheckoutSessionLineItemsPriceDataTaxBehavior>Specifies whether the price is considered inclusive of taxes or exclusive of taxes.
One of inclusive, exclusive, or unspecified.
Once specified as either inclusive or exclusive, it cannot be changed.
unit_amount: Option<i64>A non-negative integer in cents (or local equivalent) representing how much to charge.
One of unit_amount or unit_amount_decimal is required.
unit_amount_decimal: Option<String>Same as unit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places.
Only one of unit_amount and unit_amount_decimal can be set.
Trait Implementations§
source§impl Clone for CreateCheckoutSessionLineItemsPriceData
impl Clone for CreateCheckoutSessionLineItemsPriceData
source§fn clone(&self) -> CreateCheckoutSessionLineItemsPriceData
fn clone(&self) -> CreateCheckoutSessionLineItemsPriceData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more