Class: ChargeBee::WebhookEndpoint
- Defined in:
- lib/chargebee/models/webhook_endpoint.rb
Instance Attribute Summary collapse
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#chargebee_response_schema_type ⇒ Object
Returns the value of attribute chargebee_response_schema_type.
-
#disabled ⇒ Object
Returns the value of attribute disabled.
-
#enabled_events ⇒ Object
Returns the value of attribute enabled_events.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#primary_url ⇒ Object
Returns the value of attribute primary_url.
-
#send_card_resource ⇒ Object
Returns the value of attribute send_card_resource.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
-
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .delete(id, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .update(id, params = {}, env = nil, headers = {}) ⇒ Object
Methods inherited from Model
construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #respond_to_missing?, #to_s, uri_path
Constructor Details
This class inherits a constructor from ChargeBee::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ChargeBee::Model
Instance Attribute Details
#api_version ⇒ Object
Returns the value of attribute api_version.
4 5 6 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 4 def api_version @api_version end |
#chargebee_response_schema_type ⇒ Object
Returns the value of attribute chargebee_response_schema_type.
4 5 6 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 4 def chargebee_response_schema_type @chargebee_response_schema_type end |
#disabled ⇒ Object
Returns the value of attribute disabled.
4 5 6 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 4 def disabled @disabled end |
#enabled_events ⇒ Object
Returns the value of attribute enabled_events.
4 5 6 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 4 def enabled_events @enabled_events end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 4 def name @name end |
#primary_url ⇒ Object
Returns the value of attribute primary_url.
4 5 6 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 4 def primary_url @primary_url end |
#send_card_resource ⇒ Object
Returns the value of attribute send_card_resource.
4 5 6 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 4 def send_card_resource @send_card_resource end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 4 def url @url end |
Class Method Details
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
10 11 12 13 14 15 16 17 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 10 def self.create(params, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("webhook_endpoints"), params, env, headers,nil, false, jsonKeys, ) end |
.delete(id, env = nil, headers = {}) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 35 def self.delete(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("webhook_endpoints",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, ) end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
44 45 46 47 48 49 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 44 def self.list(params={}, env=nil, headers={}) jsonKeys = { } = {} Request.send_list_request('get', uri_path("webhook_endpoints"), params, env, headers,nil, false, jsonKeys, ) end |
.retrieve(id, env = nil, headers = {}) ⇒ Object
28 29 30 31 32 33 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 28 def self.retrieve(id, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("webhook_endpoints",id.to_s), {}, env, headers,nil, false, jsonKeys, ) end |
.update(id, params = {}, env = nil, headers = {}) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/chargebee/models/webhook_endpoint.rb', line 19 def self.update(id, params={}, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("webhook_endpoints",id.to_s), params, env, headers,nil, false, jsonKeys, ) end |