pub struct ReleaseSubscriptionSchedule { /* private fields */ }
Expand description
Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place.
A schedule can only be released if its status is not_started
or active
.
If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription
property and set the subscription’s ID to the released_subscription
property.
Implementations§
Source§impl ReleaseSubscriptionSchedule
impl ReleaseSubscriptionSchedule
Sourcepub fn new(schedule: impl Into<SubscriptionScheduleId>) -> Self
pub fn new(schedule: impl Into<SubscriptionScheduleId>) -> Self
Construct a new ReleaseSubscriptionSchedule
.
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 preserve_cancel_date(self, preserve_cancel_date: impl Into<bool>) -> Self
pub fn preserve_cancel_date(self, preserve_cancel_date: impl Into<bool>) -> Self
Keep any cancellation on the subscription that the schedule has set
Source§impl ReleaseSubscriptionSchedule
impl ReleaseSubscriptionSchedule
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 ReleaseSubscriptionSchedule
impl Clone for ReleaseSubscriptionSchedule
Source§fn clone(&self) -> ReleaseSubscriptionSchedule
fn clone(&self) -> ReleaseSubscriptionSchedule
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 ReleaseSubscriptionSchedule
impl Debug for ReleaseSubscriptionSchedule
Source§impl StripeRequest for ReleaseSubscriptionSchedule
impl StripeRequest for ReleaseSubscriptionSchedule
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 ReleaseSubscriptionSchedule
impl RefUnwindSafe for ReleaseSubscriptionSchedule
impl Send for ReleaseSubscriptionSchedule
impl Sync for ReleaseSubscriptionSchedule
impl Unpin for ReleaseSubscriptionSchedule
impl UnwindSafe for ReleaseSubscriptionSchedule
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