pub struct CreateSubscriptionPendingInvoiceItemInterval {
pub interval: CreateSubscriptionPendingInvoiceItemIntervalInterval,
pub interval_count: Option<u64>,
}
Expand description
Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling Create an invoice for the given subscription at the specified interval.
Fields§
§interval: CreateSubscriptionPendingInvoiceItemIntervalInterval
Specifies invoicing frequency. Either day
, week
, month
or year
.
interval_count: Option<u64>
The number of intervals between invoices.
For example, interval=month
and interval_count=3
bills every 3 months.
Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
Implementations§
Source§impl CreateSubscriptionPendingInvoiceItemInterval
impl CreateSubscriptionPendingInvoiceItemInterval
pub fn new( interval: impl Into<CreateSubscriptionPendingInvoiceItemIntervalInterval>, ) -> Self
Trait Implementations§
Source§impl Clone for CreateSubscriptionPendingInvoiceItemInterval
impl Clone for CreateSubscriptionPendingInvoiceItemInterval
Source§fn clone(&self) -> CreateSubscriptionPendingInvoiceItemInterval
fn clone(&self) -> CreateSubscriptionPendingInvoiceItemInterval
Returns a duplicate 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 moreimpl Copy for CreateSubscriptionPendingInvoiceItemInterval
Auto Trait Implementations§
impl Freeze for CreateSubscriptionPendingInvoiceItemInterval
impl RefUnwindSafe for CreateSubscriptionPendingInvoiceItemInterval
impl Send for CreateSubscriptionPendingInvoiceItemInterval
impl Sync for CreateSubscriptionPendingInvoiceItemInterval
impl Unpin for CreateSubscriptionPendingInvoiceItemInterval
impl UnwindSafe for CreateSubscriptionPendingInvoiceItemInterval
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