pub struct CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions {
pub interval: CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptionsInterval,
pub interval_count: Option<u64>,
pub name: Option<String>,
pub next_billing: CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptionsNextBilling,
pub reference: String,
}Expand description
Subscription details if the Checkout Session sets up a future subscription.
Fields§
§interval: CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptionsIntervalUnit of time between subscription charges.
interval_count: Option<u64>The number of intervals (specified in the interval attribute) between subscription charges.
For example, interval=month and interval_count=3 charges every 3 months.
name: Option<String>Name for subscription.
next_billing: CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptionsNextBillingDescribes the upcoming charge for this subscription.
reference: StringA non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
Implementations§
Source§impl CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
impl CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
pub fn new( interval: impl Into<CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptionsInterval>, next_billing: impl Into<CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptionsNextBilling>, reference: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
impl Clone for CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
Source§fn clone(&self) -> CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
fn clone(&self) -> CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
impl StructuralPartialEq for CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
impl RefUnwindSafe for CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
impl Send for CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
impl Sync for CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
impl Unpin for CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
impl UnsafeUnpin for CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
impl UnwindSafe for CreateCheckoutSessionPaymentMethodOptionsKlarnaSubscriptions
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