Skip to content

Commit

Permalink
Merge pull request #199 from websideproject/dev
Browse files Browse the repository at this point in the history
Add edge case function to remove schedule pause from a subscription
  • Loading branch information
bgervan authored Dec 29, 2023
2 parents 9268f86 + 2234a86 commit 2337a32
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 2337a32

Please sign in to comment.