pub struct CreateCheckoutSessionLineItems {
pub adjustable_quantity: Option<CreateCheckoutSessionLineItemsAdjustableQuantity>,
pub dynamic_tax_rates: Option<Vec<String>>,
pub price: Option<String>,
pub price_data: Option<CreateCheckoutSessionLineItemsPriceData>,
pub quantity: Option<u64>,
pub tax_rates: Option<Vec<String>>,
}
Fields§
§adjustable_quantity: Option<CreateCheckoutSessionLineItemsAdjustableQuantity>
When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
dynamic_tax_rates: Option<Vec<String>>
The tax rates that will be applied to this line item depending on the customer’s billing/shipping address.
We currently support the following countries: US, GB, AU, and all countries in the EU.
price: Option<String>
§price_data: Option<CreateCheckoutSessionLineItemsPriceData>
Data used to generate a new Price object inline.
One of price
or price_data
is required.
quantity: Option<u64>
The quantity of the line item being purchased.
Quantity should not be defined when recurring.usage_type=metered
.
tax_rates: Option<Vec<String>>
The tax rates which apply to this line item.
Trait Implementations§
source§impl Clone for CreateCheckoutSessionLineItems
impl Clone for CreateCheckoutSessionLineItems
source§fn clone(&self) -> CreateCheckoutSessionLineItems
fn clone(&self) -> CreateCheckoutSessionLineItems
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 Default for CreateCheckoutSessionLineItems
impl Default for CreateCheckoutSessionLineItems
source§fn default() -> CreateCheckoutSessionLineItems
fn default() -> CreateCheckoutSessionLineItems
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateCheckoutSessionLineItems
impl<'de> Deserialize<'de> for CreateCheckoutSessionLineItems
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
Auto Trait Implementations§
impl RefUnwindSafe for CreateCheckoutSessionLineItems
impl Send for CreateCheckoutSessionLineItems
impl Sync for CreateCheckoutSessionLineItems
impl Unpin for CreateCheckoutSessionLineItems
impl UnwindSafe for CreateCheckoutSessionLineItems
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more