Class: Recharge::Order
- Inherits:
-
Object
- Object
- Recharge::Order
- Extended by:
- HTTPRequest::Count, HTTPRequest::Get, HTTPRequest::List
- Defined in:
- lib/recharge/classes.rb
Constant Summary collapse
- PATH =
"/orders".freeze
- SINGLE =
"order".freeze
- COLLECTION =
"orders".freeze
Class Method Summary collapse
- .change_date(id, date) ⇒ Object
- .count(options = nil) ⇒ Object
- .update_shopify_variant(id, old_variant_id, new_varient_id) ⇒ Object
Methods included from HTTPRequest::Count
Methods included from HTTPRequest::Get
Methods included from HTTPRequest::List
Class Method Details
.change_date(id, date) ⇒ Object
508 509 510 511 |
# File 'lib/recharge/classes.rb', line 508 def self.change_date(id, date) id_required!(id) instance(POST(join(id, "change_date"), :shipping_date => date_param(date))) end |
.count(options = nil) ⇒ Object
504 505 506 |
# File 'lib/recharge/classes.rb', line 504 def self.count( = nil) super(convert_date_params(, :created_at_max, :created_at_min, :date_min, :date_max)) end |
.update_shopify_variant(id, old_variant_id, new_varient_id) ⇒ Object
513 514 515 516 517 |
# File 'lib/recharge/classes.rb', line 513 def self.update_shopify_variant(id, old_variant_id, new_varient_id) id_required!(id) path = join(id, "update_shopify_variant", old_variant_id) instance(POST(path, :new_shopify_variant_id => new_varient_id)) end |