pub struct ResumeSubscription { /* private fields */ }Expand description
停止もしくはキャンセル状態(status=canceled or paused)の定期課金を再開させます。.
トライアル期間中であればトライアル状態(status=trial)で再開します。
再開時の current_period_end が過去の日時の場合、トライアル期間内でなければ支払いが行われ、その時点が周期の開始として設定されます。.
支払いの失敗により停止していた場合などは、 current_period_end は支払い失敗時の値になるため、必ず過去の日時がセットされます。.
再開時の支払いに失敗すると、定期課金は再開されません。 この場合は、有効なカードを顧客のデフォルトカードにセットしてから、再度定期課金の再開を行ってください。.
Implementations§
Source§impl ResumeSubscription
impl ResumeSubscription
Sourcepub fn trial_end(self, trial_end: impl Into<ResumeSubscriptionTrialEnd>) -> Self
pub fn trial_end(self, trial_end: impl Into<ResumeSubscriptionTrialEnd>) -> Self
リクエスト時より未来のタイムスタンプ(5年後まで) or 文字列 now が指定可能です。.
Source§impl ResumeSubscription
impl ResumeSubscription
Sourcepub async fn send<C: PayjpClient>(
&self,
client: &C,
) -> Result<<Self as PayjpRequest>::Output, C::Err>
pub async fn send<C: PayjpClient>( &self, client: &C, ) -> Result<<Self as PayjpRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: BlockingClient>(
&self,
client: &C,
) -> Result<<Self as PayjpRequest>::Output, C::Err>
pub fn send_blocking<C: BlockingClient>( &self, client: &C, ) -> Result<<Self as PayjpRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for ResumeSubscription
impl Clone for ResumeSubscription
Source§fn clone(&self) -> ResumeSubscription
fn clone(&self) -> ResumeSubscription
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 ResumeSubscription
impl Debug for ResumeSubscription
Source§impl PayjpRequest for ResumeSubscription
impl PayjpRequest for ResumeSubscription
Source§type Output = Subscription
type Output = Subscription
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) -> CustomizablePayjpRequest<Self::Output>
fn customize(&self) -> CustomizablePayjpRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for ResumeSubscription
impl RefUnwindSafe for ResumeSubscription
impl Send for ResumeSubscription
impl Sync for ResumeSubscription
impl Unpin for ResumeSubscription
impl UnwindSafe for ResumeSubscription
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