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
364 365 366 367 |
# File 'lib/recharge/classes.rb', line 364 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
360 361 362 |
# File 'lib/recharge/classes.rb', line 360 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
369 370 371 372 373 |
# File 'lib/recharge/classes.rb', line 369 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 |