Class: Razorpay::Addon
Overview
Addon API allows you to fetch and delete subscription-addons with Razorpay
Instance Attribute Summary
Attributes inherited from Entity
#attributes
Class Method Summary
collapse
Methods inherited from Entity
#initialize, #method_missing, #respond_to_missing?, #to_json, #with_a_bang
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Razorpay::Entity
Class Method Details
.all(options = {}) ⇒ Object
16
17
18
|
# File 'lib/razorpay/addon.rb', line 16
def self.all(options = {})
request.all options
end
|
.create(subscription_id, options) ⇒ Object
20
21
22
23
24
25
26
|
# File 'lib/razorpay/addon.rb', line 20
def self.create(subscription_id, options)
r = request
r.request :post, "/subscriptions/#{subscription_id}/addons", options
end
|
.delete(id) ⇒ Object
28
29
30
|
# File 'lib/razorpay/addon.rb', line 28
def self.delete(id)
request.delete id
end
|
.fetch(id) ⇒ Object
12
13
14
|
# File 'lib/razorpay/addon.rb', line 12
def self.fetch(id)
request.fetch id
end
|
.request ⇒ Object
8
9
10
|
# File 'lib/razorpay/addon.rb', line 8
def self.request
Razorpay::Request.new('addons')
end
|