MailchimpTransactional 1.0.9 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: 1.0.9
6
+ OpenAPI spec version: 1.0.11
7
7
  Contact: apihelp@mandrill.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.4.12
@@ -16,45 +16,17 @@ module MailchimpTransactional
16
16
  class MetadataApi
17
17
  attr_accessor :api_client
18
18
 
19
- attr_accessor :api_key
20
-
21
- def initialize(api_key = '', api_client = ApiClient.default)
22
- @api_key = api_key
19
+ def initialize(api_client = ApiClient.default)
23
20
  @api_client = api_client
24
21
  end
25
- # Add metadata field
26
- # Add a new custom metadata field to be indexed for the account.
27
- # @param body
28
- # @param [Hash] opts the optional parameters
29
- # @return [InlineResponse20034]
30
- def add(body = {}, opts = {})
31
- data = add_with_http_info(body, opts)
32
- data
33
- end
34
22
 
35
23
  # Add metadata field
36
24
  # Add a new custom metadata field to be indexed for the account.
37
25
  # @param body
38
26
  # @param [Hash] opts the optional parameters
39
27
  # @return [Array<(InlineResponse20034, Fixnum, Hash)>] InlineResponse20034 data, response status code and response headers
40
- def add_with_http_info(body, opts = {})
41
- # add api key to request body
42
- body[:key] = @api_key
43
-
44
- # resource path
45
- local_var_path = '/metadata/add'
46
-
47
- # http body (model)
48
- data = @api_client.call_api(:POST, local_var_path, :body => body)
49
- return data
50
- end
51
- # Delete metadata field
52
- # Delete an existing custom metadata field. Deletion isn't instataneous, and /metadata/list will continue to return the field until the asynchronous deletion process is complete.
53
- # @param body
54
- # @param [Hash] opts the optional parameters
55
- # @return [InlineResponse20036]
56
- def delete(body = {}, opts = {})
57
- data = delete_with_http_info(body, opts)
28
+ def add(body = {})
29
+ data = @api_client.call_api(:POST, '/metadata/add', body)
58
30
  data
59
31
  end
60
32
 
@@ -63,24 +35,8 @@ module MailchimpTransactional
63
35
  # @param body
64
36
  # @param [Hash] opts the optional parameters
65
37
  # @return [Array<(InlineResponse20036, Fixnum, Hash)>] InlineResponse20036 data, response status code and response headers
66
- def delete_with_http_info(body, opts = {})
67
- # add api key to request body
68
- body[:key] = @api_key
69
-
70
- # resource path
71
- local_var_path = '/metadata/delete'
72
-
73
- # http body (model)
74
- data = @api_client.call_api(:POST, local_var_path, :body => body)
75
- return data
76
- end
77
- # List metadata fields
78
- # Get the list of custom metadata fields indexed for the account.
79
- # @param body
80
- # @param [Hash] opts the optional parameters
81
- # @return [Array<InlineResponse20033>]
82
- def list(body = {}, opts = {})
83
- data = list_with_http_info(body, opts)
38
+ def delete(body = {})
39
+ data = @api_client.call_api(:POST, '/metadata/delete', body)
84
40
  data
85
41
  end
86
42
 
@@ -89,24 +45,8 @@ module MailchimpTransactional
89
45
  # @param body
90
46
  # @param [Hash] opts the optional parameters
91
47
  # @return [Array<(Array<InlineResponse20033>, Fixnum, Hash)>] Array<InlineResponse20033> data, response status code and response headers
92
- def list_with_http_info(body, opts = {})
93
- # add api key to request body
94
- body[:key] = @api_key
95
-
96
- # resource path
97
- local_var_path = '/metadata/list'
98
-
99
- # http body (model)
100
- data = @api_client.call_api(:POST, local_var_path, :body => body)
101
- return data
102
- end
103
- # Update metadata field
104
- # Update an existing custom metadata field.
105
- # @param body
106
- # @param [Hash] opts the optional parameters
107
- # @return [InlineResponse20035]
108
- def update(body = {}, opts = {})
109
- data = update_with_http_info(body, opts)
48
+ def list(body = {})
49
+ data = @api_client.call_api(:POST, '/metadata/list', body)
110
50
  data
111
51
  end
112
52
 
@@ -115,16 +55,9 @@ module MailchimpTransactional
115
55
  # @param body
116
56
  # @param [Hash] opts the optional parameters
117
57
  # @return [Array<(InlineResponse20035, Fixnum, Hash)>] InlineResponse20035 data, response status code and response headers
118
- def update_with_http_info(body, opts = {})
119
- # add api key to request body
120
- body[:key] = @api_key
121
-
122
- # resource path
123
- local_var_path = '/metadata/update'
124
-
125
- # http body (model)
126
- data = @api_client.call_api(:POST, local_var_path, :body => body)
127
- return data
58
+ def update(body = {})
59
+ data = @api_client.call_api(:POST, '/metadata/update', body)
60
+ data
128
61
  end
129
62
  end
130
63
  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: 1.0.9
6
+ OpenAPI spec version: 1.0.11
7
7
  Contact: apihelp@mandrill.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.4.12
@@ -16,45 +16,17 @@ module MailchimpTransactional
16
16
  class RejectsApi
17
17
  attr_accessor :api_client
18
18
 
19
- attr_accessor :api_key
20
-
21
- def initialize(api_key = '', api_client = ApiClient.default)
22
- @api_key = api_key
19
+ def initialize(api_client = ApiClient.default)
23
20
  @api_client = api_client
24
21
  end
25
- # Add email to blacklist
26
- # Adds an email to your email rejection blacklist. Addresses that you add manually will never expire and there is no reputation penalty for removing them from your blacklist. Attempting to blacklist an address that has been whitelisted will have no effect.
27
- # @param body
28
- # @param [Hash] opts the optional parameters
29
- # @return [InlineResponse20037]
30
- def add(body = {}, opts = {})
31
- data = add_with_http_info(body, opts)
32
- data
33
- end
34
22
 
35
23
  # Add email to blacklist
36
24
  # Adds an email to your email rejection blacklist. Addresses that you add manually will never expire and there is no reputation penalty for removing them from your blacklist. Attempting to blacklist an address that has been whitelisted will have no effect.
37
25
  # @param body
38
26
  # @param [Hash] opts the optional parameters
39
27
  # @return [Array<(InlineResponse20037, Fixnum, Hash)>] InlineResponse20037 data, response status code and response headers
40
- def add_with_http_info(body, opts = {})
41
- # add api key to request body
42
- body[:key] = @api_key
43
-
44
- # resource path
45
- local_var_path = '/rejects/add'
46
-
47
- # http body (model)
48
- data = @api_client.call_api(:POST, local_var_path, :body => body)
49
- return data
50
- end
51
- # Delete email from blacklist
52
- # Deletes an email rejection. There is no limit to how many rejections you can remove from your blacklist, but keep in mind that each deletion has an affect on your reputation.
53
- # @param body
54
- # @param [Hash] opts the optional parameters
55
- # @return [InlineResponse20039]
56
- def delete(body = {}, opts = {})
57
- data = delete_with_http_info(body, opts)
28
+ def add(body = {})
29
+ data = @api_client.call_api(:POST, '/rejects/add', body)
58
30
  data
59
31
  end
60
32
 
@@ -63,24 +35,8 @@ module MailchimpTransactional
63
35
  # @param body
64
36
  # @param [Hash] opts the optional parameters
65
37
  # @return [Array<(InlineResponse20039, Fixnum, Hash)>] InlineResponse20039 data, response status code and response headers
66
- def delete_with_http_info(body, opts = {})
67
- # add api key to request body
68
- body[:key] = @api_key
69
-
70
- # resource path
71
- local_var_path = '/rejects/delete'
72
-
73
- # http body (model)
74
- data = @api_client.call_api(:POST, local_var_path, :body => body)
75
- return data
76
- end
77
- # List blacklisted emails
78
- # Retrieves your email rejection blacklist. You can provide an email address to limit the results. Returns up to 1000 results. By default, entries that have expired are excluded from the results; set include_expired to true to include them.
79
- # @param body
80
- # @param [Hash] opts the optional parameters
81
- # @return [Array<InlineResponse20038>]
82
- def list(body = {}, opts = {})
83
- data = list_with_http_info(body, opts)
38
+ def delete(body = {})
39
+ data = @api_client.call_api(:POST, '/rejects/delete', body)
84
40
  data
85
41
  end
86
42
 
@@ -89,16 +45,9 @@ module MailchimpTransactional
89
45
  # @param body
90
46
  # @param [Hash] opts the optional parameters
91
47
  # @return [Array<(Array<InlineResponse20038>, Fixnum, Hash)>] Array<InlineResponse20038> data, response status code and response headers
92
- def list_with_http_info(body, opts = {})
93
- # add api key to request body
94
- body[:key] = @api_key
95
-
96
- # resource path
97
- local_var_path = '/rejects/list'
98
-
99
- # http body (model)
100
- data = @api_client.call_api(:POST, local_var_path, :body => body)
101
- return data
48
+ def list(body = {})
49
+ data = @api_client.call_api(:POST, '/rejects/list', body)
50
+ data
102
51
  end
103
52
  end
104
53
  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: 1.0.9
6
+ OpenAPI spec version: 1.0.11
7
7
  Contact: apihelp@mandrill.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.4.12
@@ -16,45 +16,17 @@ module MailchimpTransactional
16
16
  class SendersApi
17
17
  attr_accessor :api_client
18
18
 
19
- attr_accessor :api_key
20
-
21
- def initialize(api_key = '', api_client = ApiClient.default)
22
- @api_key = api_key
19
+ def initialize(api_client = ApiClient.default)
23
20
  @api_client = api_client
24
21
  end
25
- # Add sender domain
26
- # Adds a sender domain to your account. Sender domains are added automatically as you send, but you can use this call to add them ahead of time.
27
- # @param body
28
- # @param [Hash] opts the optional parameters
29
- # @return [InlineResponse20042]
30
- def add_domain(body = {}, opts = {})
31
- data = add_domain_with_http_info(body, opts)
32
- data
33
- end
34
22
 
35
23
  # Add sender domain
36
24
  # Adds a sender domain to your account. Sender domains are added automatically as you send, but you can use this call to add them ahead of time.
37
25
  # @param body
38
26
  # @param [Hash] opts the optional parameters
39
27
  # @return [Array<(InlineResponse20042, Fixnum, Hash)>] InlineResponse20042 data, response status code and response headers
40
- def add_domain_with_http_info(body, opts = {})
41
- # add api key to request body
42
- body[:key] = @api_key
43
-
44
- # resource path
45
- local_var_path = '/senders/add-domain'
46
-
47
- # http body (model)
48
- data = @api_client.call_api(:POST, local_var_path, :body => body)
49
- return data
50
- end
51
- # Check domain settings
52
- # Checks the SPF and DKIM settings for a domain. If you haven't already added this domain to your account, it will be added automatically.
53
- # @param body
54
- # @param [Hash] opts the optional parameters
55
- # @return [InlineResponse20043]
56
- def check_domain(body = {}, opts = {})
57
- data = check_domain_with_http_info(body, opts)
28
+ def add_domain(body = {})
29
+ data = @api_client.call_api(:POST, '/senders/add-domain', body)
58
30
  data
59
31
  end
60
32
 
@@ -63,24 +35,8 @@ module MailchimpTransactional
63
35
  # @param body
64
36
  # @param [Hash] opts the optional parameters
65
37
  # @return [Array<(InlineResponse20043, Fixnum, Hash)>] InlineResponse20043 data, response status code and response headers
66
- def check_domain_with_http_info(body, opts = {})
67
- # add api key to request body
68
- body[:key] = @api_key
69
-
70
- # resource path
71
- local_var_path = '/senders/check-domain'
72
-
73
- # http body (model)
74
- data = @api_client.call_api(:POST, local_var_path, :body => body)
75
- return data
76
- end
77
- # List sender domains
78
- # Returns the sender domains that have been added to this account.
79
- # @param body
80
- # @param [Hash] opts the optional parameters
81
- # @return [Array<InlineResponse20041>]
82
- def domains(body = {}, opts = {})
83
- data = domains_with_http_info(body, opts)
38
+ def check_domain(body = {})
39
+ data = @api_client.call_api(:POST, '/senders/check-domain', body)
84
40
  data
85
41
  end
86
42
 
@@ -89,24 +45,8 @@ module MailchimpTransactional
89
45
  # @param body
90
46
  # @param [Hash] opts the optional parameters
91
47
  # @return [Array<(Array<InlineResponse20041>, Fixnum, Hash)>] Array<InlineResponse20041> data, response status code and response headers
92
- def domains_with_http_info(body, opts = {})
93
- # add api key to request body
94
- body[:key] = @api_key
95
-
96
- # resource path
97
- local_var_path = '/senders/domains'
98
-
99
- # http body (model)
100
- data = @api_client.call_api(:POST, local_var_path, :body => body)
101
- return data
102
- end
103
- # Get sender info
104
- # Return more detailed information about a single sender, including aggregates of recent stats.
105
- # @param body
106
- # @param [Hash] opts the optional parameters
107
- # @return [InlineResponse20045]
108
- def info(body = {}, opts = {})
109
- data = info_with_http_info(body, opts)
48
+ def domains(body = {})
49
+ data = @api_client.call_api(:POST, '/senders/domains', body)
110
50
  data
111
51
  end
112
52
 
@@ -115,24 +55,8 @@ module MailchimpTransactional
115
55
  # @param body
116
56
  # @param [Hash] opts the optional parameters
117
57
  # @return [Array<(InlineResponse20045, Fixnum, Hash)>] InlineResponse20045 data, response status code and response headers
118
- def info_with_http_info(body, opts = {})
119
- # add api key to request body
120
- body[:key] = @api_key
121
-
122
- # resource path
123
- local_var_path = '/senders/info'
124
-
125
- # http body (model)
126
- data = @api_client.call_api(:POST, local_var_path, :body => body)
127
- return data
128
- end
129
- # List account senders
130
- # Return the senders that have tried to use this account.
131
- # @param body
132
- # @param [Hash] opts the optional parameters
133
- # @return [Array<InlineResponse20040>]
134
- def list(body = {}, opts = {})
135
- data = list_with_http_info(body, opts)
58
+ def info(body = {})
59
+ data = @api_client.call_api(:POST, '/senders/info', body)
136
60
  data
137
61
  end
138
62
 
@@ -141,24 +65,8 @@ module MailchimpTransactional
141
65
  # @param body
142
66
  # @param [Hash] opts the optional parameters
143
67
  # @return [Array<(Array<InlineResponse20040>, Fixnum, Hash)>] Array<InlineResponse20040> data, response status code and response headers
144
- def list_with_http_info(body, opts = {})
145
- # add api key to request body
146
- body[:key] = @api_key
147
-
148
- # resource path
149
- local_var_path = '/senders/list'
150
-
151
- # http body (model)
152
- data = @api_client.call_api(:POST, local_var_path, :body => body)
153
- return data
154
- end
155
- # View sender history
156
- # Return the recent history (hourly stats for the last 30 days) for a sender.
157
- # @param body
158
- # @param [Hash] opts the optional parameters
159
- # @return [Array<InlineResponse20046>]
160
- def time_series(body = {}, opts = {})
161
- data = time_series_with_http_info(body, opts)
68
+ def list(body = {})
69
+ data = @api_client.call_api(:POST, '/senders/list', body)
162
70
  data
163
71
  end
164
72
 
@@ -167,24 +75,8 @@ module MailchimpTransactional
167
75
  # @param body
168
76
  # @param [Hash] opts the optional parameters
169
77
  # @return [Array<(Array<InlineResponse20046>, Fixnum, Hash)>] Array<InlineResponse20046> data, response status code and response headers
170
- def time_series_with_http_info(body, opts = {})
171
- # add api key to request body
172
- body[:key] = @api_key
173
-
174
- # resource path
175
- local_var_path = '/senders/time-series'
176
-
177
- # http body (model)
178
- data = @api_client.call_api(:POST, local_var_path, :body => body)
179
- return data
180
- end
181
- # Verify domain
182
- # Sends a verification email in order to verify ownership of a domain. Domain verification is a required step to confirm ownership of a domain. Once a domain has been verified in a Transactional API account, other accounts may not have their messages signed by that domain unless they also verify the domain. This prevents other Transactional API accounts from sending mail signed by your domain.
183
- # @param body
184
- # @param [Hash] opts the optional parameters
185
- # @return [InlineResponse20044]
186
- def verify_domain(body = {}, opts = {})
187
- data = verify_domain_with_http_info(body, opts)
78
+ def time_series(body = {})
79
+ data = @api_client.call_api(:POST, '/senders/time-series', body)
188
80
  data
189
81
  end
190
82
 
@@ -193,16 +85,9 @@ module MailchimpTransactional
193
85
  # @param body
194
86
  # @param [Hash] opts the optional parameters
195
87
  # @return [Array<(InlineResponse20044, Fixnum, Hash)>] InlineResponse20044 data, response status code and response headers
196
- def verify_domain_with_http_info(body, opts = {})
197
- # add api key to request body
198
- body[:key] = @api_key
199
-
200
- # resource path
201
- local_var_path = '/senders/verify-domain'
202
-
203
- # http body (model)
204
- data = @api_client.call_api(:POST, local_var_path, :body => body)
205
- return data
88
+ def verify_domain(body = {})
89
+ data = @api_client.call_api(:POST, '/senders/verify-domain', body)
90
+ data
206
91
  end
207
92
  end
208
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: 1.0.9
6
+ OpenAPI spec version: 1.0.11
7
7
  Contact: apihelp@mandrill.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.4.12
@@ -16,45 +16,17 @@ module MailchimpTransactional
16
16
  class SubaccountsApi
17
17
  attr_accessor :api_client
18
18
 
19
- attr_accessor :api_key
20
-
21
- def initialize(api_key = '', api_client = ApiClient.default)
22
- @api_key = api_key
19
+ def initialize(api_client = ApiClient.default)
23
20
  @api_client = api_client
24
21
  end
25
- # Add subaccount
26
- # Add a new subaccount.
27
- # @param body
28
- # @param [Hash] opts the optional parameters
29
- # @return [InlineResponse20048]
30
- def add(body = {}, opts = {})
31
- data = add_with_http_info(body, opts)
32
- data
33
- end
34
22
 
35
23
  # Add subaccount
36
24
  # Add a new subaccount.
37
25
  # @param body
38
26
  # @param [Hash] opts the optional parameters
39
27
  # @return [Array<(InlineResponse20048, Fixnum, Hash)>] InlineResponse20048 data, response status code and response headers
40
- def add_with_http_info(body, opts = {})
41
- # add api key to request body
42
- body[:key] = @api_key
43
-
44
- # resource path
45
- local_var_path = '/subaccounts/add'
46
-
47
- # http body (model)
48
- data = @api_client.call_api(:POST, local_var_path, :body => body)
49
- return data
50
- end
51
- # Delete subaccount
52
- # Delete an existing subaccount. Any email related to the subaccount will be saved, but stats will be removed and any future sending calls to this subaccount will fail.
53
- # @param body
54
- # @param [Hash] opts the optional parameters
55
- # @return [InlineResponse20051]
56
- def delete(body = {}, opts = {})
57
- data = delete_with_http_info(body, opts)
28
+ def add(body = {})
29
+ data = @api_client.call_api(:POST, '/subaccounts/add', body)
58
30
  data
59
31
  end
60
32
 
@@ -63,24 +35,8 @@ module MailchimpTransactional
63
35
  # @param body
64
36
  # @param [Hash] opts the optional parameters
65
37
  # @return [Array<(InlineResponse20051, Fixnum, Hash)>] InlineResponse20051 data, response status code and response headers
66
- def delete_with_http_info(body, opts = {})
67
- # add api key to request body
68
- body[:key] = @api_key
69
-
70
- # resource path
71
- local_var_path = '/subaccounts/delete'
72
-
73
- # http body (model)
74
- data = @api_client.call_api(:POST, local_var_path, :body => body)
75
- return data
76
- end
77
- # Get subaccount info
78
- # Given the ID of an existing subaccount, return the data about it.
79
- # @param body
80
- # @param [Hash] opts the optional parameters
81
- # @return [InlineResponse20049]
82
- def info(body = {}, opts = {})
83
- data = info_with_http_info(body, opts)
38
+ def delete(body = {})
39
+ data = @api_client.call_api(:POST, '/subaccounts/delete', body)
84
40
  data
85
41
  end
86
42
 
@@ -89,24 +45,8 @@ module MailchimpTransactional
89
45
  # @param body
90
46
  # @param [Hash] opts the optional parameters
91
47
  # @return [Array<(InlineResponse20049, Fixnum, Hash)>] InlineResponse20049 data, response status code and response headers
92
- def info_with_http_info(body, opts = {})
93
- # add api key to request body
94
- body[:key] = @api_key
95
-
96
- # resource path
97
- local_var_path = '/subaccounts/info'
98
-
99
- # http body (model)
100
- data = @api_client.call_api(:POST, local_var_path, :body => body)
101
- return data
102
- end
103
- # List subaccounts
104
- # Get the list of subaccounts defined for the account, optionally filtered by a prefix.
105
- # @param body
106
- # @param [Hash] opts the optional parameters
107
- # @return [Array<InlineResponse20047>]
108
- def list(body = {}, opts = {})
109
- data = list_with_http_info(body, opts)
48
+ def info(body = {})
49
+ data = @api_client.call_api(:POST, '/subaccounts/info', body)
110
50
  data
111
51
  end
112
52
 
@@ -115,24 +55,8 @@ module MailchimpTransactional
115
55
  # @param body
116
56
  # @param [Hash] opts the optional parameters
117
57
  # @return [Array<(Array<InlineResponse20047>, Fixnum, Hash)>] Array<InlineResponse20047> data, response status code and response headers
118
- def list_with_http_info(body, opts = {})
119
- # add api key to request body
120
- body[:key] = @api_key
121
-
122
- # resource path
123
- local_var_path = '/subaccounts/list'
124
-
125
- # http body (model)
126
- data = @api_client.call_api(:POST, local_var_path, :body => body)
127
- return data
128
- end
129
- # Pause subaccount
130
- # Pause a subaccount's sending. Any future emails delivered to this subaccount will be queued for a maximum of 3 days until the subaccount is resumed.
131
- # @param body
132
- # @param [Hash] opts the optional parameters
133
- # @return [InlineResponse20052]
134
- def pause(body = {}, opts = {})
135
- data = pause_with_http_info(body, opts)
58
+ def list(body = {})
59
+ data = @api_client.call_api(:POST, '/subaccounts/list', body)
136
60
  data
137
61
  end
138
62
 
@@ -141,24 +65,8 @@ module MailchimpTransactional
141
65
  # @param body
142
66
  # @param [Hash] opts the optional parameters
143
67
  # @return [Array<(InlineResponse20052, Fixnum, Hash)>] InlineResponse20052 data, response status code and response headers
144
- def pause_with_http_info(body, opts = {})
145
- # add api key to request body
146
- body[:key] = @api_key
147
-
148
- # resource path
149
- local_var_path = '/subaccounts/pause'
150
-
151
- # http body (model)
152
- data = @api_client.call_api(:POST, local_var_path, :body => body)
153
- return data
154
- end
155
- # Resume subaccount
156
- # Resume a paused subaccount's sending.
157
- # @param body
158
- # @param [Hash] opts the optional parameters
159
- # @return [InlineResponse20053]
160
- def resume(body = {}, opts = {})
161
- data = resume_with_http_info(body, opts)
68
+ def pause(body = {})
69
+ data = @api_client.call_api(:POST, '/subaccounts/pause', body)
162
70
  data
163
71
  end
164
72
 
@@ -167,24 +75,8 @@ module MailchimpTransactional
167
75
  # @param body
168
76
  # @param [Hash] opts the optional parameters
169
77
  # @return [Array<(InlineResponse20053, Fixnum, Hash)>] InlineResponse20053 data, response status code and response headers
170
- def resume_with_http_info(body, opts = {})
171
- # add api key to request body
172
- body[:key] = @api_key
173
-
174
- # resource path
175
- local_var_path = '/subaccounts/resume'
176
-
177
- # http body (model)
178
- data = @api_client.call_api(:POST, local_var_path, :body => body)
179
- return data
180
- end
181
- # Update subaccount
182
- # Update an existing subaccount.
183
- # @param body
184
- # @param [Hash] opts the optional parameters
185
- # @return [InlineResponse20050]
186
- def update(body = {}, opts = {})
187
- data = update_with_http_info(body, opts)
78
+ def resume(body = {})
79
+ data = @api_client.call_api(:POST, '/subaccounts/resume', body)
188
80
  data
189
81
  end
190
82
 
@@ -193,16 +85,9 @@ module MailchimpTransactional
193
85
  # @param body
194
86
  # @param [Hash] opts the optional parameters
195
87
  # @return [Array<(InlineResponse20050, Fixnum, Hash)>] InlineResponse20050 data, response status code and response headers
196
- def update_with_http_info(body, opts = {})
197
- # add api key to request body
198
- body[:key] = @api_key
199
-
200
- # resource path
201
- local_var_path = '/subaccounts/update'
202
-
203
- # http body (model)
204
- data = @api_client.call_api(:POST, local_var_path, :body => body)
205
- return data
88
+ def update(body = {})
89
+ data = @api_client.call_api(:POST, '/subaccounts/update', body)
90
+ data
206
91
  end
207
92
  end
208
93
  end