Class: Pay::Purchasekit::Subscription

Inherits:
Subscription
  • Object
show all
Defined in:
app/models/pay/purchasekit/subscription.rb

Instance Method Summary collapse

Instance Method Details

#cancel(**options) ⇒ Object



4
5
6
# File 'app/models/pay/purchasekit/subscription.rb', line 4

def cancel(**options)
  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!(**options)
  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, **options)
  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(**options)
  raise Pay::Purchasekit::Error, "Pause through App Store or Google Play."
end

#paused?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'app/models/pay/purchasekit/subscription.rb', line 24

def paused?
  false
end

#resumeObject



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, **options)
  raise Pay::Purchasekit::Error, "Change plans through App Store or Google Play."
end