class ShipHero::Api
Attributes
api_key[RW]
Public Class Methods
new(api_key)
click to toggle source
# File lib/ship_hero/api.rb, line 11 def initialize(api_key) @api_key = api_key end
Public Instance Methods
create_order(request)
click to toggle source
# File lib/ship_hero/api.rb, line 30 def create_order(request) ShipHero::Services::OrderService.new(@api_key).create_order(request) end
create_order_historye(request)
click to toggle source
# File lib/ship_hero/api.rb, line 36 def create_order_historye(request) ShipHero::Services::OrderService.new(@api_key).create_order_historye(request) end
create_product(request)
click to toggle source
# File lib/ship_hero/api.rb, line 19 def create_product(request) ShipHero::Services::ProductService.new(@api_key).create_product(request) end
create_shipment(request)
click to toggle source
# File lib/ship_hero/api.rb, line 44 def create_shipment(request) ShipHero::Services::ShipmentService.new(@api_key).create_shipment(request) end
get_order(request)
click to toggle source
# File lib/ship_hero/api.rb, line 27 def get_order(request) ShipHero::Services::OrderService.new(@api_key).get_order(request) end
get_orders(request)
click to toggle source
get_products(request)
click to toggle source
get_shipments(request)
click to toggle source
get_webhooks()
click to toggle source
register_webhook(request)
click to toggle source
# File lib/ship_hero/api.rb, line 52 def register_webhook(request) ShipHero::Services::WebhookService.new(@api_key).register_webhook(request) end
unregister_webhook(request)
click to toggle source
# File lib/ship_hero/api.rb, line 55 def unregister_webhook(request) ShipHero::Services::WebhookService.new(@api_key).unregister_webhook(request) end
update_order(request)
click to toggle source
# File lib/ship_hero/api.rb, line 33 def update_order(request) ShipHero::Services::OrderService.new(@api_key).update_order(request) end