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

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_orderObject



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_productsObject



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_productsObject



22
23
24
# File 'lib/shopify_sales_channel/integrations.rb', line 22

def count_products
  return self.class.count_products(self)
end

#get_access_tokenObject



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_orderObject



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_detailsObject



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_webhooksObject



14
15
16
# File 'lib/shopify_sales_channel/integrations.rb', line 14

def set_webhooks
  return self.class.get_store_details(self)
end

#sync_ordersObject



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