Module: CyberbizExpress::ExpressBase

Included in:
NinjaVan::Api
Defined in:
lib/cyberbiz_express/express_base.rb

Instance Method Summary collapse

Instance Method Details

#access_tokenObject

Raises:

  • (NoMethodError)


5
6
7
# File 'lib/cyberbiz_express/express_base.rb', line 5

def access_token
  raise(NoMethodError, "There is no access_token API for #{@tracking_company}")
end

#cancel_order(_tracking_number, _order_number, _shop_info, _reason) ⇒ Object

Raises:

  • (NoMethodError)


21
22
23
# File 'lib/cyberbiz_express/express_base.rb', line 21

def cancel_order(_tracking_number, _order_number, _shop_info, _reason)
  raise(NoMethodError, "There is no cancel_order API for #{@tracking_company}")
end

#estimate_fee(_order) ⇒ Object

Raises:

  • (NoMethodError)


9
10
11
# File 'lib/cyberbiz_express/express_base.rb', line 9

def estimate_fee(_order)
  raise(NoMethodError, "There is no estimate_fee API for #{@tracking_company}")
end

#reconcile(_file, _dry_run_mode, _options) ⇒ Object

Raises:

  • (NoMethodError)


29
30
31
# File 'lib/cyberbiz_express/express_base.rb', line 29

def reconcile(_file, _dry_run_mode, _options)
  raise(NoMethodError, "There is no reconcile API for #{@tracking_company}")
end

#submit_order(_order, _shipping_address, _shop, _options) ⇒ Object

Raises:

  • (NoMethodError)


13
14
15
# File 'lib/cyberbiz_express/express_base.rb', line 13

def submit_order(_order, _shipping_address, _shop, _options)
  raise(NoMethodError, "There is no submit_order API for #{@tracking_company}")
end

#track_status(_order) ⇒ Object

Raises:

  • (NoMethodError)


25
26
27
# File 'lib/cyberbiz_express/express_base.rb', line 25

def track_status(_order)
  raise(NoMethodError, "There is no track_status API for #{@tracking_company}")
end

#update_order(_order_number, _shipping_address) ⇒ Object

Raises:

  • (NoMethodError)


17
18
19
# File 'lib/cyberbiz_express/express_base.rb', line 17

def update_order(_order_number, _shipping_address)
  raise(NoMethodError, "There is no update_order API for #{@tracking_company}")
end