Class: ChargeBee::WebhookEndpoint

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/webhook_endpoint.rb

Instance Attribute Summary collapse

Class Method Summary collapse

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_versionObject

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_typeObject

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

#disabledObject

Returns the value of attribute disabled.



4
5
6
# File 'lib/chargebee/models/webhook_endpoint.rb', line 4

def disabled
  @disabled
end

#enabled_eventsObject

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

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/chargebee/models/webhook_endpoint.rb', line 4

def id
  @id
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/chargebee/models/webhook_endpoint.rb', line 4

def name
  @name
end

#primary_urlObject

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_resourceObject

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

#urlObject

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 = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("webhook_endpoints"), params, env, headers,nil, false, jsonKeys, options)
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 = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("webhook_endpoints",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options)
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 = { 
  }
  options = {}
  Request.send_list_request('get', uri_path("webhook_endpoints"), params, env, headers,nil, false, jsonKeys, options)
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 = { 
  }
  options = {}
  Request.send('get', uri_path("webhook_endpoints",id.to_s), {}, env, headers,nil, false, jsonKeys, options)
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 = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("webhook_endpoints",id.to_s), params, env, headers,nil, false, jsonKeys, options)
end