Module: ShopifySalesChannel::Integrations
- Included in:
- Store
- Defined in:
- lib/shopify_sales_channel/integrations.rb
Defined Under Namespace
Modules: Shopify
Class Method Summary collapse
Instance Method Summary collapse
- #add_tag_to_order ⇒ Object
- #check_products ⇒ Object
- #count_products ⇒ Object
- #get_access_token ⇒ Object
- #get_order ⇒ Object
- #get_store_details ⇒ Object
- #set_webhooks ⇒ Object
- #sync_orders ⇒ Object
Class Method Details
.included(sub_klass) ⇒ Object
2 3 4 |
# File 'lib/shopify_sales_channel/integrations.rb', line 2 def self.included(sub_klass) sub_klass.extend ShopifySalesChannel::Integrations::Shopify end |
Instance Method Details
#add_tag_to_order ⇒ Object
35 36 37 |
# File 'lib/shopify_sales_channel/integrations.rb', line 35 def add_tag_to_order return self.class.add_tag_to_order(self, self.order_no, self.data["tag"]) end |
#check_products ⇒ Object
27 28 29 |
# File 'lib/shopify_sales_channel/integrations.rb', line 27 def check_products return self.class.check_products(self, self.data["orders"]) end |
#count_products ⇒ Object
22 23 24 |
# File 'lib/shopify_sales_channel/integrations.rb', line 22 def count_products return self.class.count_products(self) end |
#get_access_token ⇒ Object
6 7 8 |
# File 'lib/shopify_sales_channel/integrations.rb', line 6 def get_access_token return self.class.get_access_token(code, url) end |
#get_order ⇒ Object
31 32 33 |
# File 'lib/shopify_sales_channel/integrations.rb', line 31 def get_order return self.class.get_order(self, self.order_no) end |
#get_store_details ⇒ Object
10 11 12 |
# File 'lib/shopify_sales_channel/integrations.rb', line 10 def get_store_details return self.class.get_store_details(access_token, url) end |
#set_webhooks ⇒ Object
14 15 16 |
# File 'lib/shopify_sales_channel/integrations.rb', line 14 def set_webhooks return self.class.get_store_details(self) end |
#sync_orders ⇒ Object
18 19 20 |
# File 'lib/shopify_sales_channel/integrations.rb', line 18 def sync_orders return self.class.sync_orders(self, self.data["orders"], self.data["country"]) end |