Skip to content

Commit dde4731

Browse files
author
MartinMikita
committed
Add subscription.cancel() method.
1 parent 12c1a66 commit dde4731

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: flask_fastspring.py

+4
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,10 @@ def synchronize(self):
218218
self.data = data
219219
return True
220220

221+
def cancel(self, immediately=True):
222+
return current_app.extensions['fastspring'].cancel_subscription(
223+
self.subscription_id, immediately=immediately)
224+
221225

222226
class APIError(Exception):
223227

0 commit comments

Comments
 (0)