Mercurial Hosting > luan
comparison stripe/src/luan/modules/stripe/Stripe.luan @ 452:56c23aa70045 0.7
Add cancel_subscription() function to Stripe customer.
author | Hugo Teixeira <hugo.tech@gmail.com> |
---|---|
date | Tue, 05 May 2015 18:15:21 -0300 |
parents | 7fd9f1b7b878 |
children | 92c3d22745b8 |
comparison
equal
deleted
inserted
replaced
451:d62c35a5cd6b | 452:56c23aa70045 |
---|---|
29 meta.get.id = java_customer.getId | 29 meta.get.id = java_customer.getId |
30 | 30 |
31 function meta.get.subscription_status() | 31 function meta.get.subscription_status() |
32 local s = subscription() | 32 local s = subscription() |
33 return s and s.getStatus() | 33 return s and s.getStatus() |
34 end | |
35 | |
36 function this.cancel_subscription() | |
37 local s = subscription() | |
38 s and s.cancel(nil) | |
34 end | 39 end |
35 | 40 |
36 return this | 41 return this |
37 end | 42 end |
38 | 43 |