MailchimpMarketing 3.0.8 → 3.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +53 -0
- data/MailchimpMarketing.gemspec +2 -2
- data/README.md +2 -2
- data/lib/MailchimpMarketing.rb +1 -1
- data/lib/MailchimpMarketing/api/activity_feed_api.rb +5 -10
- data/lib/MailchimpMarketing/api/authorized_apps_api.rb +7 -14
- data/lib/MailchimpMarketing/api/automations_api.rb +39 -78
- data/lib/MailchimpMarketing/api/batch_webhooks_api.rb +11 -22
- data/lib/MailchimpMarketing/api/batches_api.rb +9 -18
- data/lib/MailchimpMarketing/api/campaign_folders_api.rb +11 -22
- data/lib/MailchimpMarketing/api/campaigns_api.rb +45 -90
- data/lib/MailchimpMarketing/api/connected_sites_api.rb +11 -22
- data/lib/MailchimpMarketing/api/conversations_api.rb +11 -22
- data/lib/MailchimpMarketing/api/dashboard_api.rb +13 -26
- data/lib/MailchimpMarketing/api/ecommerce_api.rb +119 -238
- data/lib/MailchimpMarketing/api/external_auths_api.rb +7 -14
- data/lib/MailchimpMarketing/api/facebook_ads_api.rb +5 -10
- data/lib/MailchimpMarketing/api/file_manager_api.rb +23 -46
- data/lib/MailchimpMarketing/api/landing_pages_api.rb +17 -34
- data/lib/MailchimpMarketing/api/lists_api.rb +136 -268
- data/lib/MailchimpMarketing/api/ping_api.rb +3 -6
- data/lib/MailchimpMarketing/api/postcards_api.rb +3 -6
- data/lib/MailchimpMarketing/api/reporting_api.rb +13 -26
- data/lib/MailchimpMarketing/api/reports_api.rb +45 -90
- data/lib/MailchimpMarketing/api/root_api.rb +3 -6
- data/lib/MailchimpMarketing/api/search_campaigns_api.rb +3 -6
- data/lib/MailchimpMarketing/api/search_members_api.rb +3 -6
- data/lib/MailchimpMarketing/api/template_folders_api.rb +11 -22
- data/lib/MailchimpMarketing/api/templates_api.rb +13 -26
- data/lib/MailchimpMarketing/api/verified_domains_api.rb +11 -22
- data/lib/MailchimpMarketing/api_client.rb +17 -117
- data/lib/MailchimpMarketing/api_error.rb +1 -1
- data/lib/MailchimpMarketing/configuration.rb +1 -1
- data/lib/MailchimpMarketing/version.rb +2 -2
- metadata +6 -11
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 3.0.
|
6
|
+
OpenAPI spec version: 3.0.13
|
7
7
|
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
@@ -11,7 +11,6 @@ Swagger Codegen version: 2.4.12
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'uri'
|
14
|
-
require 'json'
|
15
14
|
|
16
15
|
module MailchimpMarketing
|
17
16
|
class ConnectedSitesApi
|
@@ -26,15 +25,13 @@ module MailchimpMarketing
|
|
26
25
|
fail ArgumentError, "Missing required param: 'connected_site_id'" if connected_site_id.nil?
|
27
26
|
|
28
27
|
query_params = {}
|
29
|
-
form_params = {}
|
30
28
|
post_body = nil
|
31
29
|
|
32
30
|
local_var_path = '/connected-sites/{connected_site_id}'.sub('{' + 'connected_site_id' + '}', connected_site_id.to_s)
|
33
|
-
data
|
31
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
34
32
|
:query_params => query_params,
|
35
|
-
:form_params => form_params,
|
36
33
|
:body => post_body)
|
37
|
-
return data
|
34
|
+
return data
|
38
35
|
end
|
39
36
|
|
40
37
|
# List connected sites
|
@@ -46,15 +43,13 @@ module MailchimpMarketing
|
|
46
43
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
47
44
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
48
45
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
49
|
-
form_params = {}
|
50
46
|
post_body = nil
|
51
47
|
|
52
48
|
local_var_path = '/connected-sites'
|
53
|
-
data
|
49
|
+
data = @api_client.call_api(:GET, local_var_path,
|
54
50
|
:query_params => query_params,
|
55
|
-
:form_params => form_params,
|
56
51
|
:body => post_body)
|
57
|
-
return data
|
52
|
+
return data
|
58
53
|
end
|
59
54
|
|
60
55
|
# Get connected site
|
@@ -64,15 +59,13 @@ module MailchimpMarketing
|
|
64
59
|
query_params = {}
|
65
60
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
66
61
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
67
|
-
form_params = {}
|
68
62
|
post_body = nil
|
69
63
|
|
70
64
|
local_var_path = '/connected-sites/{connected_site_id}'.sub('{' + 'connected_site_id' + '}', connected_site_id.to_s)
|
71
|
-
data
|
65
|
+
data = @api_client.call_api(:GET, local_var_path,
|
72
66
|
:query_params => query_params,
|
73
|
-
:form_params => form_params,
|
74
67
|
:body => post_body)
|
75
|
-
return data
|
68
|
+
return data
|
76
69
|
end
|
77
70
|
|
78
71
|
# Add connected site
|
@@ -80,15 +73,13 @@ module MailchimpMarketing
|
|
80
73
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
81
74
|
|
82
75
|
query_params = {}
|
83
|
-
form_params = {}
|
84
76
|
post_body = @api_client.object_to_http_body(body)
|
85
77
|
|
86
78
|
local_var_path = '/connected-sites'
|
87
|
-
data
|
79
|
+
data = @api_client.call_api(:POST, local_var_path,
|
88
80
|
:query_params => query_params,
|
89
|
-
:form_params => form_params,
|
90
81
|
:body => post_body)
|
91
|
-
return data
|
82
|
+
return data
|
92
83
|
end
|
93
84
|
|
94
85
|
# Verify connected site script
|
@@ -96,15 +87,13 @@ module MailchimpMarketing
|
|
96
87
|
fail ArgumentError, "Missing required param: 'connected_site_id'" if connected_site_id.nil?
|
97
88
|
|
98
89
|
query_params = {}
|
99
|
-
form_params = {}
|
100
90
|
post_body = nil
|
101
91
|
|
102
92
|
local_var_path = '/connected-sites/{connected_site_id}/actions/verify-script-installation'.sub('{' + 'connected_site_id' + '}', connected_site_id.to_s)
|
103
|
-
data
|
93
|
+
data = @api_client.call_api(:POST, local_var_path,
|
104
94
|
:query_params => query_params,
|
105
|
-
:form_params => form_params,
|
106
95
|
:body => post_body)
|
107
|
-
return data
|
96
|
+
return data
|
108
97
|
end
|
109
98
|
end
|
110
99
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 3.0.
|
6
|
+
OpenAPI spec version: 3.0.13
|
7
7
|
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
@@ -11,7 +11,6 @@ Swagger Codegen version: 2.4.12
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'uri'
|
14
|
-
require 'json'
|
15
14
|
|
16
15
|
module MailchimpMarketing
|
17
16
|
class ConversationsApi
|
@@ -34,15 +33,13 @@ module MailchimpMarketing
|
|
34
33
|
query_params[:'has_unread_messages'] = opts[:'has_unread_messages'] if !opts[:'has_unread_messages'].nil?
|
35
34
|
query_params[:'list_id'] = opts[:'list_id'] if !opts[:'list_id'].nil?
|
36
35
|
query_params[:'campaign_id'] = opts[:'campaign_id'] if !opts[:'campaign_id'].nil?
|
37
|
-
form_params = {}
|
38
36
|
post_body = nil
|
39
37
|
|
40
38
|
local_var_path = '/conversations'
|
41
|
-
data
|
39
|
+
data = @api_client.call_api(:GET, local_var_path,
|
42
40
|
:query_params => query_params,
|
43
|
-
:form_params => form_params,
|
44
41
|
:body => post_body)
|
45
|
-
return data
|
42
|
+
return data
|
46
43
|
end
|
47
44
|
|
48
45
|
# Get conversation
|
@@ -52,15 +49,13 @@ module MailchimpMarketing
|
|
52
49
|
query_params = {}
|
53
50
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
54
51
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
55
|
-
form_params = {}
|
56
52
|
post_body = nil
|
57
53
|
|
58
54
|
local_var_path = '/conversations/{conversation_id}'.sub('{' + 'conversation_id' + '}', conversation_id.to_s)
|
59
|
-
data
|
55
|
+
data = @api_client.call_api(:GET, local_var_path,
|
60
56
|
:query_params => query_params,
|
61
|
-
:form_params => form_params,
|
62
57
|
:body => post_body)
|
63
|
-
return data
|
58
|
+
return data
|
64
59
|
end
|
65
60
|
|
66
61
|
# List messages
|
@@ -74,15 +69,13 @@ module MailchimpMarketing
|
|
74
69
|
query_params[:'is_read'] = opts[:'is_read'] if !opts[:'is_read'].nil?
|
75
70
|
query_params[:'before_timestamp'] = opts[:'before_timestamp'] if !opts[:'before_timestamp'].nil?
|
76
71
|
query_params[:'since_timestamp'] = opts[:'since_timestamp'] if !opts[:'since_timestamp'].nil?
|
77
|
-
form_params = {}
|
78
72
|
post_body = nil
|
79
73
|
|
80
74
|
local_var_path = '/conversations/{conversation_id}/messages'.sub('{' + 'conversation_id' + '}', conversation_id.to_s)
|
81
|
-
data
|
75
|
+
data = @api_client.call_api(:GET, local_var_path,
|
82
76
|
:query_params => query_params,
|
83
|
-
:form_params => form_params,
|
84
77
|
:body => post_body)
|
85
|
-
return data
|
78
|
+
return data
|
86
79
|
end
|
87
80
|
|
88
81
|
# Get message
|
@@ -93,15 +86,13 @@ module MailchimpMarketing
|
|
93
86
|
query_params = {}
|
94
87
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
95
88
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
96
|
-
form_params = {}
|
97
89
|
post_body = nil
|
98
90
|
|
99
91
|
local_var_path = '/conversations/{conversation_id}/messages/{message_id}'.sub('{' + 'conversation_id' + '}', conversation_id.to_s).sub('{' + 'message_id' + '}', message_id.to_s)
|
100
|
-
data
|
92
|
+
data = @api_client.call_api(:GET, local_var_path,
|
101
93
|
:query_params => query_params,
|
102
|
-
:form_params => form_params,
|
103
94
|
:body => post_body)
|
104
|
-
return data
|
95
|
+
return data
|
105
96
|
end
|
106
97
|
|
107
98
|
# Post message
|
@@ -110,15 +101,13 @@ module MailchimpMarketing
|
|
110
101
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
111
102
|
|
112
103
|
query_params = {}
|
113
|
-
form_params = {}
|
114
104
|
post_body = @api_client.object_to_http_body(body)
|
115
105
|
|
116
106
|
local_var_path = '/conversations/{conversation_id}/messages'.sub('{' + 'conversation_id' + '}', conversation_id.to_s)
|
117
|
-
data
|
107
|
+
data = @api_client.call_api(:POST, local_var_path,
|
118
108
|
:query_params => query_params,
|
119
|
-
:form_params => form_params,
|
120
109
|
:body => post_body)
|
121
|
-
return data
|
110
|
+
return data
|
122
111
|
end
|
123
112
|
end
|
124
113
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 3.0.
|
6
|
+
OpenAPI spec version: 3.0.13
|
7
7
|
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
@@ -11,7 +11,6 @@ Swagger Codegen version: 2.4.12
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'uri'
|
14
|
-
require 'json'
|
15
14
|
|
16
15
|
module MailchimpMarketing
|
17
16
|
class DashboardApi
|
@@ -29,15 +28,13 @@ module MailchimpMarketing
|
|
29
28
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
30
29
|
query_params[:'platform'] = opts[:'platform'] if !opts[:'platform'].nil?
|
31
30
|
query_params[:'num'] = opts[:'num'] if !opts[:'num'].nil?
|
32
|
-
form_params = {}
|
33
31
|
post_body = nil
|
34
32
|
|
35
33
|
local_var_path = '/dashboard/ads'
|
36
|
-
data
|
34
|
+
data = @api_client.call_api(:GET, local_var_path,
|
37
35
|
:query_params => query_params,
|
38
|
-
:form_params => form_params,
|
39
36
|
:body => post_body)
|
40
|
-
return data
|
37
|
+
return data
|
41
38
|
end
|
42
39
|
|
43
40
|
# List dashboard audiences
|
@@ -46,15 +43,13 @@ module MailchimpMarketing
|
|
46
43
|
query_params = {}
|
47
44
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
48
45
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
49
|
-
form_params = {}
|
50
46
|
post_body = nil
|
51
47
|
|
52
48
|
local_var_path = '/dashboard/audiences'
|
53
|
-
data
|
49
|
+
data = @api_client.call_api(:GET, local_var_path,
|
54
50
|
:query_params => query_params,
|
55
|
-
:form_params => form_params,
|
56
51
|
:body => post_body)
|
57
|
-
return data
|
52
|
+
return data
|
58
53
|
end
|
59
54
|
|
60
55
|
# List dashboard charts
|
@@ -63,15 +58,13 @@ module MailchimpMarketing
|
|
63
58
|
query_params = {}
|
64
59
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
65
60
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
66
|
-
form_params = {}
|
67
61
|
post_body = nil
|
68
62
|
|
69
63
|
local_var_path = '/dashboard/charts'
|
70
|
-
data
|
64
|
+
data = @api_client.call_api(:GET, local_var_path,
|
71
65
|
:query_params => query_params,
|
72
|
-
:form_params => form_params,
|
73
66
|
:body => post_body)
|
74
|
-
return data
|
67
|
+
return data
|
75
68
|
end
|
76
69
|
|
77
70
|
# List dashboard ecommerce info
|
@@ -80,15 +73,13 @@ module MailchimpMarketing
|
|
80
73
|
query_params = {}
|
81
74
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
82
75
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
83
|
-
form_params = {}
|
84
76
|
post_body = nil
|
85
77
|
|
86
78
|
local_var_path = '/dashboard/ecommerce'
|
87
|
-
data
|
79
|
+
data = @api_client.call_api(:GET, local_var_path,
|
88
80
|
:query_params => query_params,
|
89
|
-
:form_params => form_params,
|
90
81
|
:body => post_body)
|
91
|
-
return data
|
82
|
+
return data
|
92
83
|
end
|
93
84
|
|
94
85
|
# List dashboard engagement info
|
@@ -97,15 +88,13 @@ module MailchimpMarketing
|
|
97
88
|
query_params = {}
|
98
89
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
99
90
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
100
|
-
form_params = {}
|
101
91
|
post_body = nil
|
102
92
|
|
103
93
|
local_var_path = '/dashboard/engagement'
|
104
|
-
data
|
94
|
+
data = @api_client.call_api(:GET, local_var_path,
|
105
95
|
:query_params => query_params,
|
106
|
-
:form_params => form_params,
|
107
96
|
:body => post_body)
|
108
|
-
return data
|
97
|
+
return data
|
109
98
|
end
|
110
99
|
|
111
100
|
# List dashboard homepage metrics
|
@@ -114,15 +103,13 @@ module MailchimpMarketing
|
|
114
103
|
query_params = {}
|
115
104
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
116
105
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
117
|
-
form_params = {}
|
118
106
|
post_body = nil
|
119
107
|
|
120
108
|
local_var_path = '/dashboard/homepage'
|
121
|
-
data
|
109
|
+
data = @api_client.call_api(:GET, local_var_path,
|
122
110
|
:query_params => query_params,
|
123
|
-
:form_params => form_params,
|
124
111
|
:body => post_body)
|
125
|
-
return data
|
112
|
+
return data
|
126
113
|
end
|
127
114
|
end
|
128
115
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
OpenAPI spec version: 3.0.
|
6
|
+
OpenAPI spec version: 3.0.13
|
7
7
|
Contact: apihelp@mailchimp.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.12
|
@@ -11,7 +11,6 @@ Swagger Codegen version: 2.4.12
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'uri'
|
14
|
-
require 'json'
|
15
14
|
|
16
15
|
module MailchimpMarketing
|
17
16
|
class EcommerceApi
|
@@ -26,15 +25,13 @@ module MailchimpMarketing
|
|
26
25
|
fail ArgumentError, "Missing required param: 'store_id'" if store_id.nil?
|
27
26
|
|
28
27
|
query_params = {}
|
29
|
-
form_params = {}
|
30
28
|
post_body = nil
|
31
29
|
|
32
30
|
local_var_path = '/ecommerce/stores/{store_id}'.sub('{' + 'store_id' + '}', store_id.to_s)
|
33
|
-
data
|
31
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
34
32
|
:query_params => query_params,
|
35
|
-
:form_params => form_params,
|
36
33
|
:body => post_body)
|
37
|
-
return data
|
34
|
+
return data
|
38
35
|
end
|
39
36
|
|
40
37
|
# Delete cart
|
@@ -43,15 +40,13 @@ module MailchimpMarketing
|
|
43
40
|
fail ArgumentError, "Missing required param: 'cart_id'" if cart_id.nil?
|
44
41
|
|
45
42
|
query_params = {}
|
46
|
-
form_params = {}
|
47
43
|
post_body = nil
|
48
44
|
|
49
45
|
local_var_path = '/ecommerce/stores/{store_id}/carts/{cart_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'cart_id' + '}', cart_id.to_s)
|
50
|
-
data
|
46
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
51
47
|
:query_params => query_params,
|
52
|
-
:form_params => form_params,
|
53
48
|
:body => post_body)
|
54
|
-
return data
|
49
|
+
return data
|
55
50
|
end
|
56
51
|
|
57
52
|
# Delete cart line item
|
@@ -61,15 +56,13 @@ module MailchimpMarketing
|
|
61
56
|
fail ArgumentError, "Missing required param: 'line_id'" if line_id.nil?
|
62
57
|
|
63
58
|
query_params = {}
|
64
|
-
form_params = {}
|
65
59
|
post_body = nil
|
66
60
|
|
67
61
|
local_var_path = '/ecommerce/stores/{store_id}/carts/{cart_id}/lines/{line_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'cart_id' + '}', cart_id.to_s).sub('{' + 'line_id' + '}', line_id.to_s)
|
68
|
-
data
|
62
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
69
63
|
:query_params => query_params,
|
70
|
-
:form_params => form_params,
|
71
64
|
:body => post_body)
|
72
|
-
return data
|
65
|
+
return data
|
73
66
|
end
|
74
67
|
|
75
68
|
# Delete customer
|
@@ -78,15 +71,13 @@ module MailchimpMarketing
|
|
78
71
|
fail ArgumentError, "Missing required param: 'customer_id'" if customer_id.nil?
|
79
72
|
|
80
73
|
query_params = {}
|
81
|
-
form_params = {}
|
82
74
|
post_body = nil
|
83
75
|
|
84
76
|
local_var_path = '/ecommerce/stores/{store_id}/customers/{customer_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'customer_id' + '}', customer_id.to_s)
|
85
|
-
data
|
77
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
86
78
|
:query_params => query_params,
|
87
|
-
:form_params => form_params,
|
88
79
|
:body => post_body)
|
89
|
-
return data
|
80
|
+
return data
|
90
81
|
end
|
91
82
|
|
92
83
|
# Delete order
|
@@ -95,15 +86,13 @@ module MailchimpMarketing
|
|
95
86
|
fail ArgumentError, "Missing required param: 'order_id'" if order_id.nil?
|
96
87
|
|
97
88
|
query_params = {}
|
98
|
-
form_params = {}
|
99
89
|
post_body = nil
|
100
90
|
|
101
91
|
local_var_path = '/ecommerce/stores/{store_id}/orders/{order_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'order_id' + '}', order_id.to_s)
|
102
|
-
data
|
92
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
103
93
|
:query_params => query_params,
|
104
|
-
:form_params => form_params,
|
105
94
|
:body => post_body)
|
106
|
-
return data
|
95
|
+
return data
|
107
96
|
end
|
108
97
|
|
109
98
|
# Delete order line item
|
@@ -113,15 +102,13 @@ module MailchimpMarketing
|
|
113
102
|
fail ArgumentError, "Missing required param: 'line_id'" if line_id.nil?
|
114
103
|
|
115
104
|
query_params = {}
|
116
|
-
form_params = {}
|
117
105
|
post_body = nil
|
118
106
|
|
119
107
|
local_var_path = '/ecommerce/stores/{store_id}/orders/{order_id}/lines/{line_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'order_id' + '}', order_id.to_s).sub('{' + 'line_id' + '}', line_id.to_s)
|
120
|
-
data
|
108
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
121
109
|
:query_params => query_params,
|
122
|
-
:form_params => form_params,
|
123
110
|
:body => post_body)
|
124
|
-
return data
|
111
|
+
return data
|
125
112
|
end
|
126
113
|
|
127
114
|
# Delete product
|
@@ -130,15 +117,13 @@ module MailchimpMarketing
|
|
130
117
|
fail ArgumentError, "Missing required param: 'product_id'" if product_id.nil?
|
131
118
|
|
132
119
|
query_params = {}
|
133
|
-
form_params = {}
|
134
120
|
post_body = nil
|
135
121
|
|
136
122
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s)
|
137
|
-
data
|
123
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
138
124
|
:query_params => query_params,
|
139
|
-
:form_params => form_params,
|
140
125
|
:body => post_body)
|
141
|
-
return data
|
126
|
+
return data
|
142
127
|
end
|
143
128
|
|
144
129
|
# Delete product image
|
@@ -148,15 +133,13 @@ module MailchimpMarketing
|
|
148
133
|
fail ArgumentError, "Missing required param: 'image_id'" if image_id.nil?
|
149
134
|
|
150
135
|
query_params = {}
|
151
|
-
form_params = {}
|
152
136
|
post_body = nil
|
153
137
|
|
154
138
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}/images/{image_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s).sub('{' + 'image_id' + '}', image_id.to_s)
|
155
|
-
data
|
139
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
156
140
|
:query_params => query_params,
|
157
|
-
:form_params => form_params,
|
158
141
|
:body => post_body)
|
159
|
-
return data
|
142
|
+
return data
|
160
143
|
end
|
161
144
|
|
162
145
|
# Delete product variant
|
@@ -166,15 +149,13 @@ module MailchimpMarketing
|
|
166
149
|
fail ArgumentError, "Missing required param: 'variant_id'" if variant_id.nil?
|
167
150
|
|
168
151
|
query_params = {}
|
169
|
-
form_params = {}
|
170
152
|
post_body = nil
|
171
153
|
|
172
154
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s).sub('{' + 'variant_id' + '}', variant_id.to_s)
|
173
|
-
data
|
155
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
174
156
|
:query_params => query_params,
|
175
|
-
:form_params => form_params,
|
176
157
|
:body => post_body)
|
177
|
-
return data
|
158
|
+
return data
|
178
159
|
end
|
179
160
|
|
180
161
|
# Delete promo code
|
@@ -184,15 +165,13 @@ module MailchimpMarketing
|
|
184
165
|
fail ArgumentError, "Missing required param: 'promo_code_id'" if promo_code_id.nil?
|
185
166
|
|
186
167
|
query_params = {}
|
187
|
-
form_params = {}
|
188
168
|
post_body = nil
|
189
169
|
|
190
170
|
local_var_path = '/ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes/{promo_code_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'promo_rule_id' + '}', promo_rule_id.to_s).sub('{' + 'promo_code_id' + '}', promo_code_id.to_s)
|
191
|
-
data
|
171
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
192
172
|
:query_params => query_params,
|
193
|
-
:form_params => form_params,
|
194
173
|
:body => post_body)
|
195
|
-
return data
|
174
|
+
return data
|
196
175
|
end
|
197
176
|
|
198
177
|
# Delete promo rule
|
@@ -201,30 +180,26 @@ module MailchimpMarketing
|
|
201
180
|
fail ArgumentError, "Missing required param: 'promo_rule_id'" if promo_rule_id.nil?
|
202
181
|
|
203
182
|
query_params = {}
|
204
|
-
form_params = {}
|
205
183
|
post_body = nil
|
206
184
|
|
207
185
|
local_var_path = '/ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'promo_rule_id' + '}', promo_rule_id.to_s)
|
208
|
-
data
|
186
|
+
data = @api_client.call_api(:DELETE, local_var_path,
|
209
187
|
:query_params => query_params,
|
210
|
-
:form_params => form_params,
|
211
188
|
:body => post_body)
|
212
|
-
return data
|
189
|
+
return data
|
213
190
|
end
|
214
191
|
|
215
192
|
# List e commerce api resources
|
216
193
|
def info(opts = {})
|
217
194
|
|
218
195
|
query_params = {}
|
219
|
-
form_params = {}
|
220
196
|
post_body = nil
|
221
197
|
|
222
198
|
local_var_path = '/ecommerce'
|
223
|
-
data
|
199
|
+
data = @api_client.call_api(:GET, local_var_path,
|
224
200
|
:query_params => query_params,
|
225
|
-
:form_params => form_params,
|
226
201
|
:body => post_body)
|
227
|
-
return data
|
202
|
+
return data
|
228
203
|
end
|
229
204
|
|
230
205
|
# List account orders
|
@@ -240,15 +215,13 @@ module MailchimpMarketing
|
|
240
215
|
query_params[:'outreach_id'] = opts[:'outreach_id'] if !opts[:'outreach_id'].nil?
|
241
216
|
query_params[:'customer_id'] = opts[:'customer_id'] if !opts[:'customer_id'].nil?
|
242
217
|
query_params[:'has_outreach'] = opts[:'has_outreach'] if !opts[:'has_outreach'].nil?
|
243
|
-
form_params = {}
|
244
218
|
post_body = nil
|
245
219
|
|
246
220
|
local_var_path = '/ecommerce/orders'
|
247
|
-
data
|
221
|
+
data = @api_client.call_api(:GET, local_var_path,
|
248
222
|
:query_params => query_params,
|
249
|
-
:form_params => form_params,
|
250
223
|
:body => post_body)
|
251
|
-
return data
|
224
|
+
return data
|
252
225
|
end
|
253
226
|
|
254
227
|
# List stores
|
@@ -260,15 +233,13 @@ module MailchimpMarketing
|
|
260
233
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
261
234
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
262
235
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
263
|
-
form_params = {}
|
264
236
|
post_body = nil
|
265
237
|
|
266
238
|
local_var_path = '/ecommerce/stores'
|
267
|
-
data
|
239
|
+
data = @api_client.call_api(:GET, local_var_path,
|
268
240
|
:query_params => query_params,
|
269
|
-
:form_params => form_params,
|
270
241
|
:body => post_body)
|
271
|
-
return data
|
242
|
+
return data
|
272
243
|
end
|
273
244
|
|
274
245
|
# Get store info
|
@@ -278,15 +249,13 @@ module MailchimpMarketing
|
|
278
249
|
query_params = {}
|
279
250
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
280
251
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
281
|
-
form_params = {}
|
282
252
|
post_body = nil
|
283
253
|
|
284
254
|
local_var_path = '/ecommerce/stores/{store_id}'.sub('{' + 'store_id' + '}', store_id.to_s)
|
285
|
-
data
|
255
|
+
data = @api_client.call_api(:GET, local_var_path,
|
286
256
|
:query_params => query_params,
|
287
|
-
:form_params => form_params,
|
288
257
|
:body => post_body)
|
289
|
-
return data
|
258
|
+
return data
|
290
259
|
end
|
291
260
|
|
292
261
|
# List carts
|
@@ -299,15 +268,13 @@ module MailchimpMarketing
|
|
299
268
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
300
269
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
301
270
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
302
|
-
form_params = {}
|
303
271
|
post_body = nil
|
304
272
|
|
305
273
|
local_var_path = '/ecommerce/stores/{store_id}/carts'.sub('{' + 'store_id' + '}', store_id.to_s)
|
306
|
-
data
|
274
|
+
data = @api_client.call_api(:GET, local_var_path,
|
307
275
|
:query_params => query_params,
|
308
|
-
:form_params => form_params,
|
309
276
|
:body => post_body)
|
310
|
-
return data
|
277
|
+
return data
|
311
278
|
end
|
312
279
|
|
313
280
|
# Get cart info
|
@@ -318,15 +285,13 @@ module MailchimpMarketing
|
|
318
285
|
query_params = {}
|
319
286
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
320
287
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
321
|
-
form_params = {}
|
322
288
|
post_body = nil
|
323
289
|
|
324
290
|
local_var_path = '/ecommerce/stores/{store_id}/carts/{cart_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'cart_id' + '}', cart_id.to_s)
|
325
|
-
data
|
291
|
+
data = @api_client.call_api(:GET, local_var_path,
|
326
292
|
:query_params => query_params,
|
327
|
-
:form_params => form_params,
|
328
293
|
:body => post_body)
|
329
|
-
return data
|
294
|
+
return data
|
330
295
|
end
|
331
296
|
|
332
297
|
# List cart line items
|
@@ -340,15 +305,13 @@ module MailchimpMarketing
|
|
340
305
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
341
306
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
342
307
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
343
|
-
form_params = {}
|
344
308
|
post_body = nil
|
345
309
|
|
346
310
|
local_var_path = '/ecommerce/stores/{store_id}/carts/{cart_id}/lines'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'cart_id' + '}', cart_id.to_s)
|
347
|
-
data
|
311
|
+
data = @api_client.call_api(:GET, local_var_path,
|
348
312
|
:query_params => query_params,
|
349
|
-
:form_params => form_params,
|
350
313
|
:body => post_body)
|
351
|
-
return data
|
314
|
+
return data
|
352
315
|
end
|
353
316
|
|
354
317
|
# Get cart line item
|
@@ -360,15 +323,13 @@ module MailchimpMarketing
|
|
360
323
|
query_params = {}
|
361
324
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
362
325
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
363
|
-
form_params = {}
|
364
326
|
post_body = nil
|
365
327
|
|
366
328
|
local_var_path = '/ecommerce/stores/{store_id}/carts/{cart_id}/lines/{line_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'cart_id' + '}', cart_id.to_s).sub('{' + 'line_id' + '}', line_id.to_s)
|
367
|
-
data
|
329
|
+
data = @api_client.call_api(:GET, local_var_path,
|
368
330
|
:query_params => query_params,
|
369
|
-
:form_params => form_params,
|
370
331
|
:body => post_body)
|
371
|
-
return data
|
332
|
+
return data
|
372
333
|
end
|
373
334
|
|
374
335
|
# List customers
|
@@ -382,15 +343,13 @@ module MailchimpMarketing
|
|
382
343
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
383
344
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
384
345
|
query_params[:'email_address'] = opts[:'email_address'] if !opts[:'email_address'].nil?
|
385
|
-
form_params = {}
|
386
346
|
post_body = nil
|
387
347
|
|
388
348
|
local_var_path = '/ecommerce/stores/{store_id}/customers'.sub('{' + 'store_id' + '}', store_id.to_s)
|
389
|
-
data
|
349
|
+
data = @api_client.call_api(:GET, local_var_path,
|
390
350
|
:query_params => query_params,
|
391
|
-
:form_params => form_params,
|
392
351
|
:body => post_body)
|
393
|
-
return data
|
352
|
+
return data
|
394
353
|
end
|
395
354
|
|
396
355
|
# Get customer info
|
@@ -401,15 +360,13 @@ module MailchimpMarketing
|
|
401
360
|
query_params = {}
|
402
361
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
403
362
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
404
|
-
form_params = {}
|
405
363
|
post_body = nil
|
406
364
|
|
407
365
|
local_var_path = '/ecommerce/stores/{store_id}/customers/{customer_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'customer_id' + '}', customer_id.to_s)
|
408
|
-
data
|
366
|
+
data = @api_client.call_api(:GET, local_var_path,
|
409
367
|
:query_params => query_params,
|
410
|
-
:form_params => form_params,
|
411
368
|
:body => post_body)
|
412
|
-
return data
|
369
|
+
return data
|
413
370
|
end
|
414
371
|
|
415
372
|
# List orders
|
@@ -426,15 +383,13 @@ module MailchimpMarketing
|
|
426
383
|
query_params[:'has_outreach'] = opts[:'has_outreach'] if !opts[:'has_outreach'].nil?
|
427
384
|
query_params[:'campaign_id'] = opts[:'campaign_id'] if !opts[:'campaign_id'].nil?
|
428
385
|
query_params[:'outreach_id'] = opts[:'outreach_id'] if !opts[:'outreach_id'].nil?
|
429
|
-
form_params = {}
|
430
386
|
post_body = nil
|
431
387
|
|
432
388
|
local_var_path = '/ecommerce/stores/{store_id}/orders'.sub('{' + 'store_id' + '}', store_id.to_s)
|
433
|
-
data
|
389
|
+
data = @api_client.call_api(:GET, local_var_path,
|
434
390
|
:query_params => query_params,
|
435
|
-
:form_params => form_params,
|
436
391
|
:body => post_body)
|
437
|
-
return data
|
392
|
+
return data
|
438
393
|
end
|
439
394
|
|
440
395
|
# Get order info
|
@@ -445,15 +400,13 @@ module MailchimpMarketing
|
|
445
400
|
query_params = {}
|
446
401
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
447
402
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
448
|
-
form_params = {}
|
449
403
|
post_body = nil
|
450
404
|
|
451
405
|
local_var_path = '/ecommerce/stores/{store_id}/orders/{order_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'order_id' + '}', order_id.to_s)
|
452
|
-
data
|
406
|
+
data = @api_client.call_api(:GET, local_var_path,
|
453
407
|
:query_params => query_params,
|
454
|
-
:form_params => form_params,
|
455
408
|
:body => post_body)
|
456
|
-
return data
|
409
|
+
return data
|
457
410
|
end
|
458
411
|
|
459
412
|
# List order line items
|
@@ -467,15 +420,13 @@ module MailchimpMarketing
|
|
467
420
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
468
421
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
469
422
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
470
|
-
form_params = {}
|
471
423
|
post_body = nil
|
472
424
|
|
473
425
|
local_var_path = '/ecommerce/stores/{store_id}/orders/{order_id}/lines'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'order_id' + '}', order_id.to_s)
|
474
|
-
data
|
426
|
+
data = @api_client.call_api(:GET, local_var_path,
|
475
427
|
:query_params => query_params,
|
476
|
-
:form_params => form_params,
|
477
428
|
:body => post_body)
|
478
|
-
return data
|
429
|
+
return data
|
479
430
|
end
|
480
431
|
|
481
432
|
# Get order line item
|
@@ -487,15 +438,13 @@ module MailchimpMarketing
|
|
487
438
|
query_params = {}
|
488
439
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
489
440
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
490
|
-
form_params = {}
|
491
441
|
post_body = nil
|
492
442
|
|
493
443
|
local_var_path = '/ecommerce/stores/{store_id}/orders/{order_id}/lines/{line_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'order_id' + '}', order_id.to_s).sub('{' + 'line_id' + '}', line_id.to_s)
|
494
|
-
data
|
444
|
+
data = @api_client.call_api(:GET, local_var_path,
|
495
445
|
:query_params => query_params,
|
496
|
-
:form_params => form_params,
|
497
446
|
:body => post_body)
|
498
|
-
return data
|
447
|
+
return data
|
499
448
|
end
|
500
449
|
|
501
450
|
# List product
|
@@ -510,15 +459,13 @@ module MailchimpMarketing
|
|
510
459
|
query_params[:'sort_field'] = opts[:'sort_field'] if !opts[:'sort_field'].nil?
|
511
460
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
512
461
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
513
|
-
form_params = {}
|
514
462
|
post_body = nil
|
515
463
|
|
516
464
|
local_var_path = '/ecommerce/stores/{store_id}/products'.sub('{' + 'store_id' + '}', store_id.to_s)
|
517
|
-
data
|
465
|
+
data = @api_client.call_api(:GET, local_var_path,
|
518
466
|
:query_params => query_params,
|
519
|
-
:form_params => form_params,
|
520
467
|
:body => post_body)
|
521
|
-
return data
|
468
|
+
return data
|
522
469
|
end
|
523
470
|
|
524
471
|
# Get product info
|
@@ -529,15 +476,13 @@ module MailchimpMarketing
|
|
529
476
|
query_params = {}
|
530
477
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
531
478
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
532
|
-
form_params = {}
|
533
479
|
post_body = nil
|
534
480
|
|
535
481
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s)
|
536
|
-
data
|
482
|
+
data = @api_client.call_api(:GET, local_var_path,
|
537
483
|
:query_params => query_params,
|
538
|
-
:form_params => form_params,
|
539
484
|
:body => post_body)
|
540
|
-
return data
|
485
|
+
return data
|
541
486
|
end
|
542
487
|
|
543
488
|
# List product images
|
@@ -551,15 +496,13 @@ module MailchimpMarketing
|
|
551
496
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
552
497
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
553
498
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
554
|
-
form_params = {}
|
555
499
|
post_body = nil
|
556
500
|
|
557
501
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}/images'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s)
|
558
|
-
data
|
502
|
+
data = @api_client.call_api(:GET, local_var_path,
|
559
503
|
:query_params => query_params,
|
560
|
-
:form_params => form_params,
|
561
504
|
:body => post_body)
|
562
|
-
return data
|
505
|
+
return data
|
563
506
|
end
|
564
507
|
|
565
508
|
# Get product image info
|
@@ -571,15 +514,13 @@ module MailchimpMarketing
|
|
571
514
|
query_params = {}
|
572
515
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
573
516
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
574
|
-
form_params = {}
|
575
517
|
post_body = nil
|
576
518
|
|
577
519
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}/images/{image_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s).sub('{' + 'image_id' + '}', image_id.to_s)
|
578
|
-
data
|
520
|
+
data = @api_client.call_api(:GET, local_var_path,
|
579
521
|
:query_params => query_params,
|
580
|
-
:form_params => form_params,
|
581
522
|
:body => post_body)
|
582
|
-
return data
|
523
|
+
return data
|
583
524
|
end
|
584
525
|
|
585
526
|
# List product variants
|
@@ -593,15 +534,13 @@ module MailchimpMarketing
|
|
593
534
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
594
535
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
595
536
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
596
|
-
form_params = {}
|
597
537
|
post_body = nil
|
598
538
|
|
599
539
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}/variants'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s)
|
600
|
-
data
|
540
|
+
data = @api_client.call_api(:GET, local_var_path,
|
601
541
|
:query_params => query_params,
|
602
|
-
:form_params => form_params,
|
603
542
|
:body => post_body)
|
604
|
-
return data
|
543
|
+
return data
|
605
544
|
end
|
606
545
|
|
607
546
|
# Get product variant info
|
@@ -613,15 +552,13 @@ module MailchimpMarketing
|
|
613
552
|
query_params = {}
|
614
553
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
615
554
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
616
|
-
form_params = {}
|
617
555
|
post_body = nil
|
618
556
|
|
619
557
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s).sub('{' + 'variant_id' + '}', variant_id.to_s)
|
620
|
-
data
|
558
|
+
data = @api_client.call_api(:GET, local_var_path,
|
621
559
|
:query_params => query_params,
|
622
|
-
:form_params => form_params,
|
623
560
|
:body => post_body)
|
624
|
-
return data
|
561
|
+
return data
|
625
562
|
end
|
626
563
|
|
627
564
|
# List promo codes
|
@@ -635,15 +572,13 @@ module MailchimpMarketing
|
|
635
572
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
636
573
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
637
574
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
638
|
-
form_params = {}
|
639
575
|
post_body = nil
|
640
576
|
|
641
577
|
local_var_path = '/ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes'.sub('{' + 'promo_rule_id' + '}', promo_rule_id.to_s).sub('{' + 'store_id' + '}', store_id.to_s)
|
642
|
-
data
|
578
|
+
data = @api_client.call_api(:GET, local_var_path,
|
643
579
|
:query_params => query_params,
|
644
|
-
:form_params => form_params,
|
645
580
|
:body => post_body)
|
646
|
-
return data
|
581
|
+
return data
|
647
582
|
end
|
648
583
|
|
649
584
|
# Get promo code
|
@@ -655,15 +590,13 @@ module MailchimpMarketing
|
|
655
590
|
query_params = {}
|
656
591
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
657
592
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
658
|
-
form_params = {}
|
659
593
|
post_body = nil
|
660
594
|
|
661
595
|
local_var_path = '/ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes/{promo_code_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'promo_rule_id' + '}', promo_rule_id.to_s).sub('{' + 'promo_code_id' + '}', promo_code_id.to_s)
|
662
|
-
data
|
596
|
+
data = @api_client.call_api(:GET, local_var_path,
|
663
597
|
:query_params => query_params,
|
664
|
-
:form_params => form_params,
|
665
598
|
:body => post_body)
|
666
|
-
return data
|
599
|
+
return data
|
667
600
|
end
|
668
601
|
|
669
602
|
# List promo rules
|
@@ -676,15 +609,13 @@ module MailchimpMarketing
|
|
676
609
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
677
610
|
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
678
611
|
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
679
|
-
form_params = {}
|
680
612
|
post_body = nil
|
681
613
|
|
682
614
|
local_var_path = '/ecommerce/stores/{store_id}/promo-rules'.sub('{' + 'store_id' + '}', store_id.to_s)
|
683
|
-
data
|
615
|
+
data = @api_client.call_api(:GET, local_var_path,
|
684
616
|
:query_params => query_params,
|
685
|
-
:form_params => form_params,
|
686
617
|
:body => post_body)
|
687
|
-
return data
|
618
|
+
return data
|
688
619
|
end
|
689
620
|
|
690
621
|
# Get promo rule
|
@@ -695,15 +626,13 @@ module MailchimpMarketing
|
|
695
626
|
query_params = {}
|
696
627
|
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil?
|
697
628
|
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :csv) if !opts[:'exclude_fields'].nil?
|
698
|
-
form_params = {}
|
699
629
|
post_body = nil
|
700
630
|
|
701
631
|
local_var_path = '/ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'promo_rule_id' + '}', promo_rule_id.to_s)
|
702
|
-
data
|
632
|
+
data = @api_client.call_api(:GET, local_var_path,
|
703
633
|
:query_params => query_params,
|
704
|
-
:form_params => form_params,
|
705
634
|
:body => post_body)
|
706
|
-
return data
|
635
|
+
return data
|
707
636
|
end
|
708
637
|
|
709
638
|
# Update store
|
@@ -712,15 +641,13 @@ module MailchimpMarketing
|
|
712
641
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
713
642
|
|
714
643
|
query_params = {}
|
715
|
-
form_params = {}
|
716
644
|
post_body = @api_client.object_to_http_body(body)
|
717
645
|
|
718
646
|
local_var_path = '/ecommerce/stores/{store_id}'.sub('{' + 'store_id' + '}', store_id.to_s)
|
719
|
-
data
|
647
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
720
648
|
:query_params => query_params,
|
721
|
-
:form_params => form_params,
|
722
649
|
:body => post_body)
|
723
|
-
return data
|
650
|
+
return data
|
724
651
|
end
|
725
652
|
|
726
653
|
# Update cart
|
@@ -730,15 +657,13 @@ module MailchimpMarketing
|
|
730
657
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
731
658
|
|
732
659
|
query_params = {}
|
733
|
-
form_params = {}
|
734
660
|
post_body = @api_client.object_to_http_body(body)
|
735
661
|
|
736
662
|
local_var_path = '/ecommerce/stores/{store_id}/carts/{cart_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'cart_id' + '}', cart_id.to_s)
|
737
|
-
data
|
663
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
738
664
|
:query_params => query_params,
|
739
|
-
:form_params => form_params,
|
740
665
|
:body => post_body)
|
741
|
-
return data
|
666
|
+
return data
|
742
667
|
end
|
743
668
|
|
744
669
|
# Update cart line item
|
@@ -749,15 +674,13 @@ module MailchimpMarketing
|
|
749
674
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
750
675
|
|
751
676
|
query_params = {}
|
752
|
-
form_params = {}
|
753
677
|
post_body = @api_client.object_to_http_body(body)
|
754
678
|
|
755
679
|
local_var_path = '/ecommerce/stores/{store_id}/carts/{cart_id}/lines/{line_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'cart_id' + '}', cart_id.to_s).sub('{' + 'line_id' + '}', line_id.to_s)
|
756
|
-
data
|
680
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
757
681
|
:query_params => query_params,
|
758
|
-
:form_params => form_params,
|
759
682
|
:body => post_body)
|
760
|
-
return data
|
683
|
+
return data
|
761
684
|
end
|
762
685
|
|
763
686
|
# Update customer
|
@@ -767,15 +690,13 @@ module MailchimpMarketing
|
|
767
690
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
768
691
|
|
769
692
|
query_params = {}
|
770
|
-
form_params = {}
|
771
693
|
post_body = @api_client.object_to_http_body(body)
|
772
694
|
|
773
695
|
local_var_path = '/ecommerce/stores/{store_id}/customers/{customer_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'customer_id' + '}', customer_id.to_s)
|
774
|
-
data
|
696
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
775
697
|
:query_params => query_params,
|
776
|
-
:form_params => form_params,
|
777
698
|
:body => post_body)
|
778
|
-
return data
|
699
|
+
return data
|
779
700
|
end
|
780
701
|
|
781
702
|
# Update order
|
@@ -785,15 +706,13 @@ module MailchimpMarketing
|
|
785
706
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
786
707
|
|
787
708
|
query_params = {}
|
788
|
-
form_params = {}
|
789
709
|
post_body = @api_client.object_to_http_body(body)
|
790
710
|
|
791
711
|
local_var_path = '/ecommerce/stores/{store_id}/orders/{order_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'order_id' + '}', order_id.to_s)
|
792
|
-
data
|
712
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
793
713
|
:query_params => query_params,
|
794
|
-
:form_params => form_params,
|
795
714
|
:body => post_body)
|
796
|
-
return data
|
715
|
+
return data
|
797
716
|
end
|
798
717
|
|
799
718
|
# Update order line item
|
@@ -804,15 +723,13 @@ module MailchimpMarketing
|
|
804
723
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
805
724
|
|
806
725
|
query_params = {}
|
807
|
-
form_params = {}
|
808
726
|
post_body = @api_client.object_to_http_body(body)
|
809
727
|
|
810
728
|
local_var_path = '/ecommerce/stores/{store_id}/orders/{order_id}/lines/{line_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'order_id' + '}', order_id.to_s).sub('{' + 'line_id' + '}', line_id.to_s)
|
811
|
-
data
|
729
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
812
730
|
:query_params => query_params,
|
813
|
-
:form_params => form_params,
|
814
731
|
:body => post_body)
|
815
|
-
return data
|
732
|
+
return data
|
816
733
|
end
|
817
734
|
|
818
735
|
# Update product
|
@@ -822,15 +739,13 @@ module MailchimpMarketing
|
|
822
739
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
823
740
|
|
824
741
|
query_params = {}
|
825
|
-
form_params = {}
|
826
742
|
post_body = @api_client.object_to_http_body(body)
|
827
743
|
|
828
744
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s)
|
829
|
-
data
|
745
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
830
746
|
:query_params => query_params,
|
831
|
-
:form_params => form_params,
|
832
747
|
:body => post_body)
|
833
|
-
return data
|
748
|
+
return data
|
834
749
|
end
|
835
750
|
|
836
751
|
# Update product image
|
@@ -841,15 +756,13 @@ module MailchimpMarketing
|
|
841
756
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
842
757
|
|
843
758
|
query_params = {}
|
844
|
-
form_params = {}
|
845
759
|
post_body = @api_client.object_to_http_body(body)
|
846
760
|
|
847
761
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}/images/{image_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s).sub('{' + 'image_id' + '}', image_id.to_s)
|
848
|
-
data
|
762
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
849
763
|
:query_params => query_params,
|
850
|
-
:form_params => form_params,
|
851
764
|
:body => post_body)
|
852
|
-
return data
|
765
|
+
return data
|
853
766
|
end
|
854
767
|
|
855
768
|
# Update product variant
|
@@ -860,15 +773,13 @@ module MailchimpMarketing
|
|
860
773
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
861
774
|
|
862
775
|
query_params = {}
|
863
|
-
form_params = {}
|
864
776
|
post_body = @api_client.object_to_http_body(body)
|
865
777
|
|
866
778
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s).sub('{' + 'variant_id' + '}', variant_id.to_s)
|
867
|
-
data
|
779
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
868
780
|
:query_params => query_params,
|
869
|
-
:form_params => form_params,
|
870
781
|
:body => post_body)
|
871
|
-
return data
|
782
|
+
return data
|
872
783
|
end
|
873
784
|
|
874
785
|
# Update promo code
|
@@ -879,15 +790,13 @@ module MailchimpMarketing
|
|
879
790
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
880
791
|
|
881
792
|
query_params = {}
|
882
|
-
form_params = {}
|
883
793
|
post_body = @api_client.object_to_http_body(body)
|
884
794
|
|
885
795
|
local_var_path = '/ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes/{promo_code_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'promo_rule_id' + '}', promo_rule_id.to_s).sub('{' + 'promo_code_id' + '}', promo_code_id.to_s)
|
886
|
-
data
|
796
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
887
797
|
:query_params => query_params,
|
888
|
-
:form_params => form_params,
|
889
798
|
:body => post_body)
|
890
|
-
return data
|
799
|
+
return data
|
891
800
|
end
|
892
801
|
|
893
802
|
# Update promo rule
|
@@ -897,15 +806,13 @@ module MailchimpMarketing
|
|
897
806
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
898
807
|
|
899
808
|
query_params = {}
|
900
|
-
form_params = {}
|
901
809
|
post_body = @api_client.object_to_http_body(body)
|
902
810
|
|
903
811
|
local_var_path = '/ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'promo_rule_id' + '}', promo_rule_id.to_s)
|
904
|
-
data
|
812
|
+
data = @api_client.call_api(:PATCH, local_var_path,
|
905
813
|
:query_params => query_params,
|
906
|
-
:form_params => form_params,
|
907
814
|
:body => post_body)
|
908
|
-
return data
|
815
|
+
return data
|
909
816
|
end
|
910
817
|
|
911
818
|
# Add store
|
@@ -913,15 +820,13 @@ module MailchimpMarketing
|
|
913
820
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
914
821
|
|
915
822
|
query_params = {}
|
916
|
-
form_params = {}
|
917
823
|
post_body = @api_client.object_to_http_body(body)
|
918
824
|
|
919
825
|
local_var_path = '/ecommerce/stores'
|
920
|
-
data
|
826
|
+
data = @api_client.call_api(:POST, local_var_path,
|
921
827
|
:query_params => query_params,
|
922
|
-
:form_params => form_params,
|
923
828
|
:body => post_body)
|
924
|
-
return data
|
829
|
+
return data
|
925
830
|
end
|
926
831
|
|
927
832
|
# Add cart
|
@@ -930,15 +835,13 @@ module MailchimpMarketing
|
|
930
835
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
931
836
|
|
932
837
|
query_params = {}
|
933
|
-
form_params = {}
|
934
838
|
post_body = @api_client.object_to_http_body(body)
|
935
839
|
|
936
840
|
local_var_path = '/ecommerce/stores/{store_id}/carts'.sub('{' + 'store_id' + '}', store_id.to_s)
|
937
|
-
data
|
841
|
+
data = @api_client.call_api(:POST, local_var_path,
|
938
842
|
:query_params => query_params,
|
939
|
-
:form_params => form_params,
|
940
843
|
:body => post_body)
|
941
|
-
return data
|
844
|
+
return data
|
942
845
|
end
|
943
846
|
|
944
847
|
# Add cart line item
|
@@ -948,15 +851,13 @@ module MailchimpMarketing
|
|
948
851
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
949
852
|
|
950
853
|
query_params = {}
|
951
|
-
form_params = {}
|
952
854
|
post_body = @api_client.object_to_http_body(body)
|
953
855
|
|
954
856
|
local_var_path = '/ecommerce/stores/{store_id}/carts/{cart_id}/lines'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'cart_id' + '}', cart_id.to_s)
|
955
|
-
data
|
857
|
+
data = @api_client.call_api(:POST, local_var_path,
|
956
858
|
:query_params => query_params,
|
957
|
-
:form_params => form_params,
|
958
859
|
:body => post_body)
|
959
|
-
return data
|
860
|
+
return data
|
960
861
|
end
|
961
862
|
|
962
863
|
# Add customer
|
@@ -965,15 +866,13 @@ module MailchimpMarketing
|
|
965
866
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
966
867
|
|
967
868
|
query_params = {}
|
968
|
-
form_params = {}
|
969
869
|
post_body = @api_client.object_to_http_body(body)
|
970
870
|
|
971
871
|
local_var_path = '/ecommerce/stores/{store_id}/customers'.sub('{' + 'store_id' + '}', store_id.to_s)
|
972
|
-
data
|
872
|
+
data = @api_client.call_api(:POST, local_var_path,
|
973
873
|
:query_params => query_params,
|
974
|
-
:form_params => form_params,
|
975
874
|
:body => post_body)
|
976
|
-
return data
|
875
|
+
return data
|
977
876
|
end
|
978
877
|
|
979
878
|
# Add order
|
@@ -982,15 +881,13 @@ module MailchimpMarketing
|
|
982
881
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
983
882
|
|
984
883
|
query_params = {}
|
985
|
-
form_params = {}
|
986
884
|
post_body = @api_client.object_to_http_body(body)
|
987
885
|
|
988
886
|
local_var_path = '/ecommerce/stores/{store_id}/orders'.sub('{' + 'store_id' + '}', store_id.to_s)
|
989
|
-
data
|
887
|
+
data = @api_client.call_api(:POST, local_var_path,
|
990
888
|
:query_params => query_params,
|
991
|
-
:form_params => form_params,
|
992
889
|
:body => post_body)
|
993
|
-
return data
|
890
|
+
return data
|
994
891
|
end
|
995
892
|
|
996
893
|
# Add order line item
|
@@ -1000,15 +897,13 @@ module MailchimpMarketing
|
|
1000
897
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
1001
898
|
|
1002
899
|
query_params = {}
|
1003
|
-
form_params = {}
|
1004
900
|
post_body = @api_client.object_to_http_body(body)
|
1005
901
|
|
1006
902
|
local_var_path = '/ecommerce/stores/{store_id}/orders/{order_id}/lines'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'order_id' + '}', order_id.to_s)
|
1007
|
-
data
|
903
|
+
data = @api_client.call_api(:POST, local_var_path,
|
1008
904
|
:query_params => query_params,
|
1009
|
-
:form_params => form_params,
|
1010
905
|
:body => post_body)
|
1011
|
-
return data
|
906
|
+
return data
|
1012
907
|
end
|
1013
908
|
|
1014
909
|
# Add product
|
@@ -1017,15 +912,13 @@ module MailchimpMarketing
|
|
1017
912
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
1018
913
|
|
1019
914
|
query_params = {}
|
1020
|
-
form_params = {}
|
1021
915
|
post_body = @api_client.object_to_http_body(body)
|
1022
916
|
|
1023
917
|
local_var_path = '/ecommerce/stores/{store_id}/products'.sub('{' + 'store_id' + '}', store_id.to_s)
|
1024
|
-
data
|
918
|
+
data = @api_client.call_api(:POST, local_var_path,
|
1025
919
|
:query_params => query_params,
|
1026
|
-
:form_params => form_params,
|
1027
920
|
:body => post_body)
|
1028
|
-
return data
|
921
|
+
return data
|
1029
922
|
end
|
1030
923
|
|
1031
924
|
# Add product image
|
@@ -1035,15 +928,13 @@ module MailchimpMarketing
|
|
1035
928
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
1036
929
|
|
1037
930
|
query_params = {}
|
1038
|
-
form_params = {}
|
1039
931
|
post_body = @api_client.object_to_http_body(body)
|
1040
932
|
|
1041
933
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}/images'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s)
|
1042
|
-
data
|
934
|
+
data = @api_client.call_api(:POST, local_var_path,
|
1043
935
|
:query_params => query_params,
|
1044
|
-
:form_params => form_params,
|
1045
936
|
:body => post_body)
|
1046
|
-
return data
|
937
|
+
return data
|
1047
938
|
end
|
1048
939
|
|
1049
940
|
# Add product variant
|
@@ -1053,15 +944,13 @@ module MailchimpMarketing
|
|
1053
944
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
1054
945
|
|
1055
946
|
query_params = {}
|
1056
|
-
form_params = {}
|
1057
947
|
post_body = @api_client.object_to_http_body(body)
|
1058
948
|
|
1059
949
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}/variants'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s)
|
1060
|
-
data
|
950
|
+
data = @api_client.call_api(:POST, local_var_path,
|
1061
951
|
:query_params => query_params,
|
1062
|
-
:form_params => form_params,
|
1063
952
|
:body => post_body)
|
1064
|
-
return data
|
953
|
+
return data
|
1065
954
|
end
|
1066
955
|
|
1067
956
|
# Add promo code
|
@@ -1071,15 +960,13 @@ module MailchimpMarketing
|
|
1071
960
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
1072
961
|
|
1073
962
|
query_params = {}
|
1074
|
-
form_params = {}
|
1075
963
|
post_body = @api_client.object_to_http_body(body)
|
1076
964
|
|
1077
965
|
local_var_path = '/ecommerce/stores/{store_id}/promo-rules/{promo_rule_id}/promo-codes'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'promo_rule_id' + '}', promo_rule_id.to_s)
|
1078
|
-
data
|
966
|
+
data = @api_client.call_api(:POST, local_var_path,
|
1079
967
|
:query_params => query_params,
|
1080
|
-
:form_params => form_params,
|
1081
968
|
:body => post_body)
|
1082
|
-
return data
|
969
|
+
return data
|
1083
970
|
end
|
1084
971
|
|
1085
972
|
# Add promo rule
|
@@ -1088,15 +975,13 @@ module MailchimpMarketing
|
|
1088
975
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
1089
976
|
|
1090
977
|
query_params = {}
|
1091
|
-
form_params = {}
|
1092
978
|
post_body = @api_client.object_to_http_body(body)
|
1093
979
|
|
1094
980
|
local_var_path = '/ecommerce/stores/{store_id}/promo-rules'.sub('{' + 'store_id' + '}', store_id.to_s)
|
1095
|
-
data
|
981
|
+
data = @api_client.call_api(:POST, local_var_path,
|
1096
982
|
:query_params => query_params,
|
1097
|
-
:form_params => form_params,
|
1098
983
|
:body => post_body)
|
1099
|
-
return data
|
984
|
+
return data
|
1100
985
|
end
|
1101
986
|
|
1102
987
|
# Add or update customer
|
@@ -1106,15 +991,13 @@ module MailchimpMarketing
|
|
1106
991
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
1107
992
|
|
1108
993
|
query_params = {}
|
1109
|
-
form_params = {}
|
1110
994
|
post_body = @api_client.object_to_http_body(body)
|
1111
995
|
|
1112
996
|
local_var_path = '/ecommerce/stores/{store_id}/customers/{customer_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'customer_id' + '}', customer_id.to_s)
|
1113
|
-
data
|
997
|
+
data = @api_client.call_api(:PUT, local_var_path,
|
1114
998
|
:query_params => query_params,
|
1115
|
-
:form_params => form_params,
|
1116
999
|
:body => post_body)
|
1117
|
-
return data
|
1000
|
+
return data
|
1118
1001
|
end
|
1119
1002
|
|
1120
1003
|
# Add or update product variant
|
@@ -1125,15 +1008,13 @@ module MailchimpMarketing
|
|
1125
1008
|
fail ArgumentError, "Missing required param: 'body'" if body.nil?
|
1126
1009
|
|
1127
1010
|
query_params = {}
|
1128
|
-
form_params = {}
|
1129
1011
|
post_body = @api_client.object_to_http_body(body)
|
1130
1012
|
|
1131
1013
|
local_var_path = '/ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id}'.sub('{' + 'store_id' + '}', store_id.to_s).sub('{' + 'product_id' + '}', product_id.to_s).sub('{' + 'variant_id' + '}', variant_id.to_s)
|
1132
|
-
data
|
1014
|
+
data = @api_client.call_api(:PUT, local_var_path,
|
1133
1015
|
:query_params => query_params,
|
1134
|
-
:form_params => form_params,
|
1135
1016
|
:body => post_body)
|
1136
|
-
return data
|
1017
|
+
return data
|
1137
1018
|
end
|
1138
1019
|
end
|
1139
1020
|
end
|