Class: ChargeBee::Customer
- Defined in:
- lib/chargebee/models/customer.rb
Defined Under Namespace
Classes: BillingAddress
Instance Attribute Summary collapse
-
#auto_collection ⇒ Object
Returns the value of attribute auto_collection.
-
#billing_address ⇒ Object
Returns the value of attribute billing_address.
-
#card_status ⇒ Object
Returns the value of attribute card_status.
-
#company ⇒ Object
Returns the value of attribute company.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#vat_number ⇒ Object
Returns the value of attribute vat_number.
Class Method Summary collapse
-
.create(params = {}, env = nil) ⇒ Object
OPERATIONS ———–.
- .list(params = {}, env = nil) ⇒ Object
- .retrieve(id, env = nil) ⇒ Object
- .update(id, params = {}, env = nil) ⇒ Object
- .update_billing_info(id, params = {}, env = nil) ⇒ Object
Methods inherited from Model
construct, #initialize, #inspect, #load, #method_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
#auto_collection ⇒ Object
Returns the value of attribute auto_collection.
8 9 10 |
# File 'lib/chargebee/models/customer.rb', line 8 def auto_collection @auto_collection end |
#billing_address ⇒ Object
Returns the value of attribute billing_address.
8 9 10 |
# File 'lib/chargebee/models/customer.rb', line 8 def billing_address @billing_address end |
#card_status ⇒ Object
Returns the value of attribute card_status.
8 9 10 |
# File 'lib/chargebee/models/customer.rb', line 8 def card_status @card_status end |
#company ⇒ Object
Returns the value of attribute company.
8 9 10 |
# File 'lib/chargebee/models/customer.rb', line 8 def company @company end |
#created_at ⇒ Object
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/chargebee/models/customer.rb', line 8 def created_at @created_at end |
#email ⇒ Object
Returns the value of attribute email.
8 9 10 |
# File 'lib/chargebee/models/customer.rb', line 8 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
8 9 10 |
# File 'lib/chargebee/models/customer.rb', line 8 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/chargebee/models/customer.rb', line 8 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
8 9 10 |
# File 'lib/chargebee/models/customer.rb', line 8 def last_name @last_name end |
#phone ⇒ Object
Returns the value of attribute phone.
8 9 10 |
# File 'lib/chargebee/models/customer.rb', line 8 def phone @phone end |
#vat_number ⇒ Object
Returns the value of attribute vat_number.
8 9 10 |
# File 'lib/chargebee/models/customer.rb', line 8 def vat_number @vat_number end |
Class Method Details
.create(params = {}, env = nil) ⇒ Object
OPERATIONS
14 15 16 |
# File 'lib/chargebee/models/customer.rb', line 14 def self.create(params={}, env=nil) Request.send('post', uri_path("customers"), params, env) end |
.list(params = {}, env = nil) ⇒ Object
18 19 20 |
# File 'lib/chargebee/models/customer.rb', line 18 def self.list(params={}, env=nil) Request.send('get', uri_path("customers"), params, env) end |
.retrieve(id, env = nil) ⇒ Object
22 23 24 |
# File 'lib/chargebee/models/customer.rb', line 22 def self.retrieve(id, env=nil) Request.send('get', uri_path("customers",id.to_s), {}, env) end |