Class: Razorpay::Addon
Overview
Addon API allows you to fetch and delete subscription-addons with Razorpay
Instance Attribute Summary
Attributes inherited from Entity
Class Method Summary collapse
Methods inherited from Entity
#initialize, #method_missing, #respond_to_missing?, #to_json, #with_a_bang
Constructor Details
This class inherits a constructor from Razorpay::Entity
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Razorpay::Entity
Class Method Details
.create(subscription_id, options) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/razorpay/addon.rb', line 16 def self.create(subscription_id, ) r = request # POST /addons is not supported # Addon creation endpoint is: # POST subscriptions/{sub_id}/addons r.request :post, "/subscriptions/#{subscription_id}/addons", end |
.fetch(id) ⇒ Object
12 13 14 |
# File 'lib/razorpay/addon.rb', line 12 def self.fetch(id) request.fetch id end |