Skip to content

Commit

Permalink
Add edge case function to remove schedule pause from a subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
bgervan committed Dec 29, 2023
1 parent 0d3d29c commit 2234a86
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions paddle_billing_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,15 @@ def update_subscription(
dict(data),
)

def unschedule_pause_from_subscription(
self, subscription_id: str
) -> SubscriptionResponse:
"""Remove a scheduled pause from a subscription"""
return self.patch(
self.endpoints.update_subscription.format(subscription_id=subscription_id),
{"scheduled_change": None},
)

def get_transaction_to_update_payment_method(
self, subscription_id: str
) -> TransactionResponse:
Expand Down

0 comments on commit 2234a86

Please sign in to comment.