MailchimpMarketing 3.0.10 → 3.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/MailchimpMarketing.gemspec +1 -1
  3. data/README.md +2 -2
  4. data/lib/MailchimpMarketing.rb +1 -1
  5. data/lib/MailchimpMarketing/api/activity_feed_api.rb +5 -5
  6. data/lib/MailchimpMarketing/api/authorized_apps_api.rb +7 -7
  7. data/lib/MailchimpMarketing/api/automations_api.rb +39 -39
  8. data/lib/MailchimpMarketing/api/batch_webhooks_api.rb +11 -11
  9. data/lib/MailchimpMarketing/api/batches_api.rb +9 -9
  10. data/lib/MailchimpMarketing/api/campaign_folders_api.rb +11 -11
  11. data/lib/MailchimpMarketing/api/campaigns_api.rb +45 -45
  12. data/lib/MailchimpMarketing/api/connected_sites_api.rb +11 -11
  13. data/lib/MailchimpMarketing/api/conversations_api.rb +11 -11
  14. data/lib/MailchimpMarketing/api/dashboard_api.rb +13 -13
  15. data/lib/MailchimpMarketing/api/ecommerce_api.rb +119 -119
  16. data/lib/MailchimpMarketing/api/external_auths_api.rb +7 -7
  17. data/lib/MailchimpMarketing/api/facebook_ads_api.rb +5 -5
  18. data/lib/MailchimpMarketing/api/file_manager_api.rb +23 -23
  19. data/lib/MailchimpMarketing/api/landing_pages_api.rb +17 -17
  20. data/lib/MailchimpMarketing/api/lists_api.rb +133 -133
  21. data/lib/MailchimpMarketing/api/ping_api.rb +3 -3
  22. data/lib/MailchimpMarketing/api/postcards_api.rb +3 -3
  23. data/lib/MailchimpMarketing/api/reporting_api.rb +13 -13
  24. data/lib/MailchimpMarketing/api/reports_api.rb +45 -45
  25. data/lib/MailchimpMarketing/api/root_api.rb +3 -3
  26. data/lib/MailchimpMarketing/api/search_campaigns_api.rb +3 -3
  27. data/lib/MailchimpMarketing/api/search_members_api.rb +3 -3
  28. data/lib/MailchimpMarketing/api/template_folders_api.rb +11 -11
  29. data/lib/MailchimpMarketing/api/templates_api.rb +13 -13
  30. data/lib/MailchimpMarketing/api/verified_domains_api.rb +11 -11
  31. data/lib/MailchimpMarketing/api_client.rb +9 -7
  32. data/lib/MailchimpMarketing/api_error.rb +1 -1
  33. data/lib/MailchimpMarketing/configuration.rb +1 -1
  34. data/lib/MailchimpMarketing/version.rb +2 -2
  35. metadata +1 -1
@@ -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.10
6
+ OpenAPI spec version: 3.0.11
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
@@ -32,10 +32,10 @@ module MailchimpMarketing
32
32
  post_body = nil
33
33
 
34
34
  local_var_path = '/search-members'
35
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
35
+ data = @api_client.call_api(:GET, local_var_path,
36
36
  :query_params => query_params,
37
37
  :body => post_body)
38
- return data, status_code, headers
38
+ return data
39
39
  end
40
40
  end
41
41
  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.10
6
+ OpenAPI spec version: 3.0.11
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
@@ -28,10 +28,10 @@ module MailchimpMarketing
28
28
  post_body = nil
29
29
 
30
30
  local_var_path = '/template-folders/{folder_id}'.sub('{' + 'folder_id' + '}', folder_id.to_s)
31
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
31
+ data = @api_client.call_api(:DELETE, local_var_path,
32
32
  :query_params => query_params,
33
33
  :body => post_body)
34
- return data, status_code, headers
34
+ return data
35
35
  end
36
36
 
37
37
  # List template folders
@@ -46,10 +46,10 @@ module MailchimpMarketing
46
46
  post_body = nil
47
47
 
48
48
  local_var_path = '/template-folders'
49
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
49
+ data = @api_client.call_api(:GET, local_var_path,
50
50
  :query_params => query_params,
51
51
  :body => post_body)
52
- return data, status_code, headers
52
+ return data
53
53
  end
54
54
 
55
55
  # Get template folder
@@ -62,10 +62,10 @@ module MailchimpMarketing
62
62
  post_body = nil
63
63
 
64
64
  local_var_path = '/template-folders/{folder_id}'.sub('{' + 'folder_id' + '}', folder_id.to_s)
65
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
65
+ data = @api_client.call_api(:GET, local_var_path,
66
66
  :query_params => query_params,
67
67
  :body => post_body)
68
- return data, status_code, headers
68
+ return data
69
69
  end
70
70
 
71
71
  # Update template folder
@@ -77,10 +77,10 @@ module MailchimpMarketing
77
77
  post_body = @api_client.object_to_http_body(body)
78
78
 
79
79
  local_var_path = '/template-folders/{folder_id}'.sub('{' + 'folder_id' + '}', folder_id.to_s)
80
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
80
+ data = @api_client.call_api(:PATCH, local_var_path,
81
81
  :query_params => query_params,
82
82
  :body => post_body)
83
- return data, status_code, headers
83
+ return data
84
84
  end
85
85
 
86
86
  # Add template folder
@@ -91,10 +91,10 @@ module MailchimpMarketing
91
91
  post_body = @api_client.object_to_http_body(body)
92
92
 
93
93
  local_var_path = '/template-folders'
94
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
94
+ data = @api_client.call_api(:POST, local_var_path,
95
95
  :query_params => query_params,
96
96
  :body => post_body)
97
- return data, status_code, headers
97
+ return data
98
98
  end
99
99
  end
100
100
  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.10
6
+ OpenAPI spec version: 3.0.11
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
@@ -28,10 +28,10 @@ module MailchimpMarketing
28
28
  post_body = nil
29
29
 
30
30
  local_var_path = '/templates/{template_id}'.sub('{' + 'template_id' + '}', template_id.to_s)
31
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
31
+ data = @api_client.call_api(:DELETE, local_var_path,
32
32
  :query_params => query_params,
33
33
  :body => post_body)
34
- return data, status_code, headers
34
+ return data
35
35
  end
36
36
 
37
37
  # List templates
@@ -54,10 +54,10 @@ module MailchimpMarketing
54
54
  post_body = nil
55
55
 
56
56
  local_var_path = '/templates'
57
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
57
+ data = @api_client.call_api(:GET, local_var_path,
58
58
  :query_params => query_params,
59
59
  :body => post_body)
60
- return data, status_code, headers
60
+ return data
61
61
  end
62
62
 
63
63
  # Get template info
@@ -70,10 +70,10 @@ module MailchimpMarketing
70
70
  post_body = nil
71
71
 
72
72
  local_var_path = '/templates/{template_id}'.sub('{' + 'template_id' + '}', template_id.to_s)
73
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
73
+ data = @api_client.call_api(:GET, local_var_path,
74
74
  :query_params => query_params,
75
75
  :body => post_body)
76
- return data, status_code, headers
76
+ return data
77
77
  end
78
78
 
79
79
  # View default content
@@ -86,10 +86,10 @@ module MailchimpMarketing
86
86
  post_body = nil
87
87
 
88
88
  local_var_path = '/templates/{template_id}/default-content'.sub('{' + 'template_id' + '}', template_id.to_s)
89
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
89
+ data = @api_client.call_api(:GET, local_var_path,
90
90
  :query_params => query_params,
91
91
  :body => post_body)
92
- return data, status_code, headers
92
+ return data
93
93
  end
94
94
 
95
95
  # Update template
@@ -101,10 +101,10 @@ module MailchimpMarketing
101
101
  post_body = @api_client.object_to_http_body(body)
102
102
 
103
103
  local_var_path = '/templates/{template_id}'.sub('{' + 'template_id' + '}', template_id.to_s)
104
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
104
+ data = @api_client.call_api(:PATCH, local_var_path,
105
105
  :query_params => query_params,
106
106
  :body => post_body)
107
- return data, status_code, headers
107
+ return data
108
108
  end
109
109
 
110
110
  # Add template
@@ -115,10 +115,10 @@ module MailchimpMarketing
115
115
  post_body = @api_client.object_to_http_body(body)
116
116
 
117
117
  local_var_path = '/templates'
118
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
118
+ data = @api_client.call_api(:POST, local_var_path,
119
119
  :query_params => query_params,
120
120
  :body => post_body)
121
- return data, status_code, headers
121
+ return data
122
122
  end
123
123
  end
124
124
  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.10
6
+ OpenAPI spec version: 3.0.11
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
@@ -28,10 +28,10 @@ module MailchimpMarketing
28
28
  post_body = @api_client.object_to_http_body(body)
29
29
 
30
30
  local_var_path = '/verified-domains'
31
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
31
+ data = @api_client.call_api(:POST, local_var_path,
32
32
  :query_params => query_params,
33
33
  :body => post_body)
34
- return data, status_code, headers
34
+ return data
35
35
  end
36
36
 
37
37
  # Delete domain
@@ -42,10 +42,10 @@ module MailchimpMarketing
42
42
  post_body = nil
43
43
 
44
44
  local_var_path = '/verified-domains/{domain_name}'.sub('{' + 'domain_name' + '}', domain_name.to_s)
45
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
45
+ data = @api_client.call_api(:DELETE, local_var_path,
46
46
  :query_params => query_params,
47
47
  :body => post_body)
48
- return data, status_code, headers
48
+ return data
49
49
  end
50
50
 
51
51
  # Get domain info
@@ -56,10 +56,10 @@ module MailchimpMarketing
56
56
  post_body = nil
57
57
 
58
58
  local_var_path = '/verified-domains/{domain_name}'.sub('{' + 'domain_name' + '}', domain_name.to_s)
59
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
59
+ data = @api_client.call_api(:GET, local_var_path,
60
60
  :query_params => query_params,
61
61
  :body => post_body)
62
- return data, status_code, headers
62
+ return data
63
63
  end
64
64
 
65
65
  # List sending domains
@@ -69,10 +69,10 @@ module MailchimpMarketing
69
69
  post_body = nil
70
70
 
71
71
  local_var_path = '/verified-domains'
72
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
72
+ data = @api_client.call_api(:GET, local_var_path,
73
73
  :query_params => query_params,
74
74
  :body => post_body)
75
- return data, status_code, headers
75
+ return data
76
76
  end
77
77
 
78
78
  # Verify domain
@@ -84,10 +84,10 @@ module MailchimpMarketing
84
84
  post_body = @api_client.object_to_http_body(body)
85
85
 
86
86
  local_var_path = '/verified-domains/{domain_name}/actions/verify'.sub('{' + 'domain_name' + '}', domain_name.to_s)
87
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
87
+ data = @api_client.call_api(:POST, local_var_path,
88
88
  :query_params => query_params,
89
89
  :body => post_body)
90
- return data, status_code, headers
90
+ return data
91
91
  end
92
92
  end
93
93
  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.10
6
+ OpenAPI spec version: 3.0.11
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
@@ -69,13 +69,15 @@ module MailchimpMarketing
69
69
  res = conn.get(:query => opts[:query_params])
70
70
  end
71
71
 
72
- if res.status == 204
73
- return "success"
74
- elsif res.status == 200
75
- return JSON.parse(res.body)
76
- else
77
- return res.body
72
+ data = nil
73
+ data = JSON.parse(res.body) if res.status == 200
74
+ data = "success" if res.status == 204
75
+
76
+ if (!data)
77
+ fail ApiError.new(:status => res.status, :response_body => res.body)
78
78
  end
79
+
80
+ return data
79
81
  end
80
82
 
81
83
  # Convert object (array, hash, object, etc) to JSON string.
@@ -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.10
6
+ OpenAPI spec version: 3.0.11
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
@@ -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.10
6
+ OpenAPI spec version: 3.0.11
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
@@ -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.10
6
+ OpenAPI spec version: 3.0.11
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,5 +11,5 @@ Swagger Codegen version: 2.4.12
11
11
  =end
12
12
 
13
13
  module MailchimpMarketing
14
- VERSION = '3.0.10'
14
+ VERSION = '3.0.11'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: MailchimpMarketing
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.10
4
+ version: 3.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swagger-Codegen