pub struct CreatePriceRecurring {
pub aggregate_usage: Option<CreatePriceRecurringAggregateUsage>,
pub interval: CreatePriceRecurringInterval,
pub interval_count: Option<u64>,
pub trial_period_days: Option<u32>,
pub usage_type: Option<CreatePriceRecurringUsageType>,
}
Fields§
§aggregate_usage: Option<CreatePriceRecurringAggregateUsage>
Specifies a usage aggregation strategy for prices of usage_type=metered
.
Defaults to sum
.
interval: CreatePriceRecurringInterval
Specifies billing frequency.
Either day
, week
, month
or year
.
interval_count: Option<u64>
The number of intervals between subscription billings.
For example, interval=month
and interval_count=3
bills every 3 months.
Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
trial_period_days: Option<u32>
Default number of trial days when subscribing a customer to this price using trial_from_plan=true
.
usage_type: Option<CreatePriceRecurringUsageType>
Configures how the quantity per period should be determined.
Can be either metered
or licensed
.
licensed
automatically bills the quantity
set when adding it to a subscription.
metered
aggregates the total usage based on usage records.
Defaults to licensed
.
Trait Implementations§
source§impl Clone for CreatePriceRecurring
impl Clone for CreatePriceRecurring
source§fn clone(&self) -> CreatePriceRecurring
fn clone(&self) -> CreatePriceRecurring
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 CreatePriceRecurring
impl Debug for CreatePriceRecurring
source§impl Default for CreatePriceRecurring
impl Default for CreatePriceRecurring
source§fn default() -> CreatePriceRecurring
fn default() -> CreatePriceRecurring
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreatePriceRecurring
impl<'de> Deserialize<'de> for CreatePriceRecurring
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 CreatePriceRecurring
impl Send for CreatePriceRecurring
impl Sync for CreatePriceRecurring
impl Unpin for CreatePriceRecurring
impl UnwindSafe for CreatePriceRecurring
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