pub struct CancelSubscriptionSchedule { /* private fields */ }
Expand description
Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription).
A subscription schedule can only be canceled if its status is not_started
or active
.
Implementations§
Source§impl CancelSubscriptionSchedule
impl CancelSubscriptionSchedule
Sourcepub fn new(schedule: impl Into<SubscriptionScheduleId>) -> Self
pub fn new(schedule: impl Into<SubscriptionScheduleId>) -> Self
Construct a new CancelSubscriptionSchedule
.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn invoice_now(self, invoice_now: impl Into<bool>) -> Self
pub fn invoice_now(self, invoice_now: impl Into<bool>) -> Self
If the subscription schedule is active
, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items.
Defaults to true
.
Source§impl CancelSubscriptionSchedule
impl CancelSubscriptionSchedule
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for CancelSubscriptionSchedule
impl Clone for CancelSubscriptionSchedule
Source§fn clone(&self) -> CancelSubscriptionSchedule
fn clone(&self) -> CancelSubscriptionSchedule
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 moreSource§impl Debug for CancelSubscriptionSchedule
impl Debug for CancelSubscriptionSchedule
Source§impl StripeRequest for CancelSubscriptionSchedule
impl StripeRequest for CancelSubscriptionSchedule
Source§type Output = SubscriptionSchedule
type Output = SubscriptionSchedule
The data returned from the eventual API call.
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for CancelSubscriptionSchedule
impl RefUnwindSafe for CancelSubscriptionSchedule
impl Send for CancelSubscriptionSchedule
impl Sync for CancelSubscriptionSchedule
impl Unpin for CancelSubscriptionSchedule
impl UnwindSafe for CancelSubscriptionSchedule
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