Module: EPlat::Client::DefaultRequestArgs

Extended by:
ActiveSupport::Concern
Included in:
EPlat::Client
Defined in:
lib/e_plat/client/default_request_args.rb

Instance Method Summary collapse

Instance Method Details

#metafield_default_request_argsObject



44
45
46
47
48
49
50
51
52
53
# File 'lib/e_plat/client/default_request_args.rb', line 44

def metafield_default_request_args
	case platform
	when :shopify
		{}
	when :bigcommerce
		{}
	when :woocommerce
		{}
	end
end

#order_default_request_argsObject



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/e_plat/client/default_request_args.rb', line 31

def order_default_request_args
	case platform
	when :shopify
		{}
	when :bigcommerce
		{
			"include" => "consignments.line_items"
		}
	when :woocommerce
		{}
	end
end

#product_default_request_argsObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/e_plat/client/default_request_args.rb', line 7

def product_default_request_args
	case platform
	when :shopify
		{}
	when :bigcommerce
		{
			"include" => "variants,images,options,custom_fields"
		}
	when :woocommerce
		{}
	end
end

#variant_default_request_argsObject



20
21
22
23
24
25
26
27
28
29
# File 'lib/e_plat/client/default_request_args.rb', line 20

def variant_default_request_args
	case platform
	when :shopify
		{}
	when :bigcommerce
		{}
	when :woocommerce
		{}
	end
end