Class: Recharge::Order

Inherits:
Object
  • Object
show all
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

Methods included from HTTPRequest::Count

count

Methods included from HTTPRequest::Get

get

Methods included from HTTPRequest::List

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(options = nil)
  super(convert_date_params(options, :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