Class: ChargeBee::OrganizationDetail

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/organization_detail.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

#address_line1 ⇒ Object

Returns the value of attribute address_line1.



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

def address_line1
  @address_line1
end

#address_line2 ⇒ Object

Returns the value of attribute address_line2.



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

def address_line2
  @address_line2
end

#address_line3 ⇒ Object

Returns the value of attribute address_line3.



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

def address_line3
  @address_line3
end

#business_entity_id ⇒ Object

Returns the value of attribute business_entity_id.



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

def business_entity_id
  @business_entity_id
end

#city ⇒ Object

Returns the value of attribute city.



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

def city
  @city
end

#country_code ⇒ Object

Returns the value of attribute country_code.



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

def country_code
  @country_code
end

#email ⇒ Object

Returns the value of attribute email.



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

def email
  @email
end

#fax ⇒ Object

Returns the value of attribute fax.



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

def fax
  @fax
end

#id ⇒ Object

Returns the value of attribute id.



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

def id
  @id
end

#is_vat_number_present ⇒ Object

Returns the value of attribute is_vat_number_present.



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

def is_vat_number_present
  @is_vat_number_present
end

#organization_name ⇒ Object

Returns the value of attribute organization_name.



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

def organization_name
  @organization_name
end

#phone ⇒ Object

Returns the value of attribute phone.



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

def phone
  @phone
end

#resource_version ⇒ Object

Returns the value of attribute resource_version.



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

def resource_version
  @resource_version
end

#state ⇒ Object

Returns the value of attribute state.



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

def state
  @state
end

#state_code ⇒ Object

Returns the value of attribute state_code.



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

def state_code
  @state_code
end

#updated_at ⇒ Object

Returns the value of attribute updated_at.



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

def updated_at
  @updated_at
end

#vat_number ⇒ Object

Returns the value of attribute vat_number.



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

def vat_number
  @vat_number
end

#website ⇒ Object

Returns the value of attribute website.



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

def website
  @website
end

#zip ⇒ Object

Returns the value of attribute zip.



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

def zip
  @zip
end

Class Method Details

.create(params, env = nil, headers = {}) ⇒ Object

OPERATIONS



11
12
13
14
15
16
17
18
# File 'lib/chargebee/models/organization_detail.rb', line 11

def self.create(params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("organization_details"), params, env, headers,nil, false, jsonKeys, options, "organizationDetail", "create")
end

.list(params = {}, env = nil, headers = {}) ⇒ Object



27
28
29
30
31
32
# File 'lib/chargebee/models/organization_detail.rb', line 27

def self.list(params={}, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send_list_request('get', uri_path("organization_details"), params, env, headers,nil, false, jsonKeys, options, "organizationDetail", "list")
end

.retrieve(id, env = nil, headers = {}) ⇒ Object



20
21
22
23
24
25
# File 'lib/chargebee/models/organization_detail.rb', line 20

def self.retrieve(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('get', uri_path("organization_details",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "organizationDetail", "retrieve")
end