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



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(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



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