Class: ChargeBee::Order

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

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #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

#batch_idObject

Returns the value of attribute batch_id.



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

def batch_id
  @batch_id
end

#created_atObject

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#created_byObject

Returns the value of attribute created_by.



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

def created_by
  @created_by
end

#fulfillment_statusObject

Returns the value of attribute fulfillment_status.



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

def fulfillment_status
  @fulfillment_status
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#invoice_idObject

Returns the value of attribute invoice_id.



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

def invoice_id
  @invoice_id
end

#noteObject

Returns the value of attribute note.



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

def note
  @note
end

#reference_idObject

Returns the value of attribute reference_id.



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

def reference_id
  @reference_id
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#status_update_atObject

Returns the value of attribute status_update_at.



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

def status_update_at
  @status_update_at
end

#tracking_idObject

Returns the value of attribute tracking_id.



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

def tracking_id
  @tracking_id
end

Class Method Details

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

OPERATIONS




10
11
12
# File 'lib/chargebee/models/order.rb', line 10

def self.create(params, env=nil, headers={})
  Request.send('post', uri_path("orders"), params, env, headers)
end

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



22
23
24
# File 'lib/chargebee/models/order.rb', line 22

def self.list(params={}, env=nil, headers={})
  Request.send_list_request('get', uri_path("orders"), params, env, headers)
end

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



26
27
28
# File 'lib/chargebee/models/order.rb', line 26

def self.orders_for_invoice(id, params={}, env=nil, headers={})
  Request.send('get', uri_path("invoices",id.to_s,"orders"), params, env, headers)
end

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



18
19
20
# File 'lib/chargebee/models/order.rb', line 18

def self.retrieve(id, env=nil, headers={})
  Request.send('get', uri_path("orders",id.to_s), {}, env, headers)
end

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



14
15
16
# File 'lib/chargebee/models/order.rb', line 14

def self.update(id, params={}, env=nil, headers={})
  Request.send('post', uri_path("orders",id.to_s), params, env, headers)
end