Sha256: b1ff6a90ec03a3c3ba645f47dcbd7c3bac6fd25394f22cc2b90af3f8ee304457

Contents?: true

Size: 523 Bytes

Versions: 16

Compression:

Stored size: 523 Bytes

Contents

module ChargeBee
  class Customer < Model

  attr_accessor :id, :first_name, :last_name, :email, :company, :created_at, :card_status

  # OPERATIONS
  #-----------
    
  def self.list(params={}, env=nil)
    Request.send('get', "/customers", params, env)
  end    

  def self.retrieve(id, env=nil)
    Request.send('get', "/customers/#{id.to_s}", {}, env)
  end    

  def self.update(id, params={}, env=nil)
    Request.send('post', "/customers/#{id.to_s}", params, env)
  end    

  end # ~Customer
end # ~ChargeBee    

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
chargebee-1.1.6 lib/chargebee/models/customer.rb
chargebee-1.1.5 lib/chargebee/models/customer.rb
chargebee-1.1.4 lib/chargebee/models/customer.rb
chargebee-1.1.3 lib/chargebee/models/customer.rb
chargebee-1.1.2 lib/chargebee/models/customer.rb
chargebee-1.1.1 lib/chargebee/models/customer.rb
chargebee-1.1.0 lib/chargebee/models/customer.rb
chargebee-1.0.9 lib/chargebee/models/customer.rb
chargebee-1.0.8 lib/chargebee/models/customer.rb
chargebee-1.0.7 lib/chargebee/models/customer.rb
chargebee-1.0.6 lib/chargebee/models/customer.rb
chargebee-1.0.5 lib/chargebee/models/customer.rb
chargebee-1.0.4 lib/chargebee/models/customer.rb
chargebee-1.0.3 lib/chargebee/models/customer.rb
chargebee-1.0.2 lib/chargebee/models/customer.rb
chargebee-1.0.0 lib/chargebee/models/customer.rb