Class: ChargeBee::Order
Instance Attribute Summary collapse
-
#batch_id ⇒ Object
Returns the value of attribute batch_id.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#created_by ⇒ Object
Returns the value of attribute created_by.
-
#fulfillment_status ⇒ Object
Returns the value of attribute fulfillment_status.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invoice_id ⇒ Object
Returns the value of attribute invoice_id.
-
#note ⇒ Object
Returns the value of attribute note.
-
#reference_id ⇒ Object
Returns the value of attribute reference_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_update_at ⇒ Object
Returns the value of attribute status_update_at.
-
#tracking_id ⇒ Object
Returns the value of attribute tracking_id.
Class Method Summary collapse
-
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .list(params = {}, env = nil, headers = {}) ⇒ Object
- .orders_for_invoice(id, params = {}, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .update(id, params = {}, env = nil, headers = {}) ⇒ Object
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_id ⇒ Object
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_at ⇒ Object
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_by ⇒ Object
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_status ⇒ Object
Returns the value of attribute fulfillment_status.
4 5 6 |
# File 'lib/chargebee/models/order.rb', line 4 def fulfillment_status @fulfillment_status end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/order.rb', line 4 def id @id end |
#invoice_id ⇒ Object
Returns the value of attribute invoice_id.
4 5 6 |
# File 'lib/chargebee/models/order.rb', line 4 def invoice_id @invoice_id end |
#note ⇒ Object
Returns the value of attribute note.
4 5 6 |
# File 'lib/chargebee/models/order.rb', line 4 def note @note end |
#reference_id ⇒ Object
Returns the value of attribute reference_id.
4 5 6 |
# File 'lib/chargebee/models/order.rb', line 4 def reference_id @reference_id end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/chargebee/models/order.rb', line 4 def status @status end |
#status_update_at ⇒ Object
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_id ⇒ Object
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 |