pub struct UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions {
pub interval: UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptionsInterval,
pub interval_count: Option<u64>,
pub name: Option<String>,
pub next_billing: SubscriptionNextBillingParam,
pub reference: String,
}
Expand description
Subscription details if setting up or charging a subscription
Fields§
§interval: UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptionsInterval
Unit 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: SubscriptionNextBillingParam
Describes the upcoming charge for this subscription.
reference: String
A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
Implementations§
Source§impl UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions
impl UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions
pub fn new( interval: impl Into<UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptionsInterval>, next_billing: impl Into<SubscriptionNextBillingParam>, reference: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions
impl Clone for UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions
Source§fn clone(&self) -> UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions
fn clone(&self) -> UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions
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 moreAuto Trait Implementations§
impl Freeze for UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions
impl RefUnwindSafe for UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions
impl Send for UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions
impl Sync for UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions
impl Unpin for UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions
impl UnwindSafe for UpdateSetupIntentPaymentMethodOptionsKlarnaSubscriptions
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