Class: Pay::Purchasekit::Subscription
- Inherits:
-
Subscription
- Object
- Subscription
- Pay::Purchasekit::Subscription
- Defined in:
- app/models/pay/purchasekit/subscription.rb
Instance Method Summary collapse
- #cancel(**options) ⇒ Object
- #cancel_now!(**options) ⇒ Object
- #change_quantity(quantity, **options) ⇒ Object
- #pause(**options) ⇒ Object
- #paused? ⇒ Boolean
- #resume ⇒ Object
- #swap(plan, **options) ⇒ Object
Instance Method Details
#cancel(**options) ⇒ Object
4 5 6 |
# File 'app/models/pay/purchasekit/subscription.rb', line 4 def cancel(**) raise Pay::Purchasekit::Error, "Cancel through App Store or Google Play." end |
#cancel_now!(**options) ⇒ Object
8 9 10 |
# File 'app/models/pay/purchasekit/subscription.rb', line 8 def cancel_now!(**) raise Pay::Purchasekit::Error, "Cancel through App Store or Google Play." end |
#change_quantity(quantity, **options) ⇒ Object
20 21 22 |
# File 'app/models/pay/purchasekit/subscription.rb', line 20 def change_quantity(quantity, **) raise Pay::Purchasekit::Error, "Quantity changes not supported for in-app purchases." end |
#pause(**options) ⇒ Object
28 29 30 |
# File 'app/models/pay/purchasekit/subscription.rb', line 28 def pause(**) raise Pay::Purchasekit::Error, "Pause through App Store or Google Play." end |
#paused? ⇒ Boolean
24 25 26 |
# File 'app/models/pay/purchasekit/subscription.rb', line 24 def paused? false end |
#resume ⇒ Object
12 13 14 |
# File 'app/models/pay/purchasekit/subscription.rb', line 12 def resume raise Pay::Purchasekit::Error, "Resume through App Store or Google Play." end |
#swap(plan, **options) ⇒ Object
16 17 18 |
# File 'app/models/pay/purchasekit/subscription.rb', line 16 def swap(plan, **) raise Pay::Purchasekit::Error, "Change plans through App Store or Google Play." end |