storecove 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 834edd140649c7cfd52e4b3a7370fe669cb78381
4
- data.tar.gz: fe79d3e6113675c2e7e98962070201efdd210f88
3
+ metadata.gz: 36fc9f5802137905431d6435bd31e016215a0d0d
4
+ data.tar.gz: d7c4151d65d2727e14bd105ac354fcc342ab10a0
5
5
  SHA512:
6
- metadata.gz: 962117535ff1a3eb88b81221cb6b32c8dd251ec66389de25de9a1689c881374d59c2047509ba47589337c951950dc04f3845ac1870ffb445e1bcabac7b93c0f2
7
- data.tar.gz: ddb0edd99d2831ed7835440e37c93419449693f5d8804da0f592823438d580302127799d3b29247e42c77aba475be23dbe4168f15c4ffeffe40b4aa840942ff8
6
+ metadata.gz: c60dcfbe3faea36b2a91011a686bb68d70e51145118696f9032897183ca7a9830534dfab18a5627c4cc95fd9ca65a917e1696e3e003fa827cad3e2bf3b9e57ed
7
+ data.tar.gz: 0fea6b7f705cf07ab1fdf2d31363f2878f5507db02e8e45e2e1bff78d5d3c0d46e813ca409bc0dbfe449bdc453b0392d5dd03597d829b67c129bde1dec095e21
@@ -19,27 +19,27 @@ module StorecoveApi
19
19
  @api_client = api_client
20
20
  end
21
21
 
22
+ #
22
23
  # Submit a new invoice
23
- # Submit an invoice for delivery. include::examples/invoice_submissions/create.adoc[]
24
24
  # @param invoice_submission Invoice to submit
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [InvoiceSubmissionResult]
27
- def create(invoice_submission, opts = {})
28
- data, _status_code, _headers = create_with_http_info(invoice_submission, opts)
27
+ def create_invoice_submission(invoice_submission, opts = {})
28
+ data, _status_code, _headers = create_invoice_submission_with_http_info(invoice_submission, opts)
29
29
  return data
30
30
  end
31
31
 
32
+ #
32
33
  # Submit a new invoice
33
- # Submit an invoice for delivery. include::examples/invoice_submissions/create.adoc[]
34
34
  # @param invoice_submission Invoice to submit
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(InvoiceSubmissionResult, Fixnum, Hash)>] InvoiceSubmissionResult data, response status code and response headers
37
- def create_with_http_info(invoice_submission, opts = {})
37
+ def create_invoice_submission_with_http_info(invoice_submission, opts = {})
38
38
  if @api_client.config.debugging
39
- @api_client.config.logger.debug "Calling API: InvoiceSubmissionsApi.create ..."
39
+ @api_client.config.logger.debug "Calling API: InvoiceSubmissionsApi.create_invoice_submission ..."
40
40
  end
41
41
  # verify the required parameter 'invoice_submission' is set
42
- fail ArgumentError, "Missing the required parameter 'invoice_submission' when calling InvoiceSubmissionsApi.create" if invoice_submission.nil?
42
+ fail ArgumentError, "Missing the required parameter 'invoice_submission' when calling InvoiceSubmissionsApi.create_invoice_submission" if invoice_submission.nil?
43
43
  # resource path
44
44
  local_var_path = "/invoice_submissions".sub('{format}','json')
45
45
 
@@ -67,32 +67,32 @@ module StorecoveApi
67
67
  :auth_names => auth_names,
68
68
  :return_type => 'InvoiceSubmissionResult')
69
69
  if @api_client.config.debugging
70
- @api_client.config.logger.debug "API called: InvoiceSubmissionsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ @api_client.config.logger.debug "API called: InvoiceSubmissionsApi#create_invoice_submission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
71
71
  end
72
72
  return data, status_code, headers
73
73
  end
74
74
 
75
+ #
75
76
  # Preflight an invoice recipient
76
- # Check whether Storecove can deliver an invoice for a list of ids. include::examples/invoice_submissions/preflight.adoc[]
77
77
  # @param invoice_recipient_preflight The invoice recipient to preflight
78
78
  # @param [Hash] opts the optional parameters
79
79
  # @return [PreflightInvoiceRecipientResult]
80
- def preflight(invoice_recipient_preflight, opts = {})
81
- data, _status_code, _headers = preflight_with_http_info(invoice_recipient_preflight, opts)
80
+ def preflight_invoice_recipient(invoice_recipient_preflight, opts = {})
81
+ data, _status_code, _headers = preflight_invoice_recipient_with_http_info(invoice_recipient_preflight, opts)
82
82
  return data
83
83
  end
84
84
 
85
+ #
85
86
  # Preflight an invoice recipient
86
- # Check whether Storecove can deliver an invoice for a list of ids. include::examples/invoice_submissions/preflight.adoc[]
87
87
  # @param invoice_recipient_preflight The invoice recipient to preflight
88
88
  # @param [Hash] opts the optional parameters
89
89
  # @return [Array<(PreflightInvoiceRecipientResult, Fixnum, Hash)>] PreflightInvoiceRecipientResult data, response status code and response headers
90
- def preflight_with_http_info(invoice_recipient_preflight, opts = {})
90
+ def preflight_invoice_recipient_with_http_info(invoice_recipient_preflight, opts = {})
91
91
  if @api_client.config.debugging
92
- @api_client.config.logger.debug "Calling API: InvoiceSubmissionsApi.preflight ..."
92
+ @api_client.config.logger.debug "Calling API: InvoiceSubmissionsApi.preflight_invoice_recipient ..."
93
93
  end
94
94
  # verify the required parameter 'invoice_recipient_preflight' is set
95
- fail ArgumentError, "Missing the required parameter 'invoice_recipient_preflight' when calling InvoiceSubmissionsApi.preflight" if invoice_recipient_preflight.nil?
95
+ fail ArgumentError, "Missing the required parameter 'invoice_recipient_preflight' when calling InvoiceSubmissionsApi.preflight_invoice_recipient" if invoice_recipient_preflight.nil?
96
96
  # resource path
97
97
  local_var_path = "/invoice_submissions/preflight".sub('{format}','json')
98
98
 
@@ -120,7 +120,7 @@ module StorecoveApi
120
120
  :auth_names => auth_names,
121
121
  :return_type => 'PreflightInvoiceRecipientResult')
122
122
  if @api_client.config.debugging
123
- @api_client.config.logger.debug "API called: InvoiceSubmissionsApi#preflight\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
123
+ @api_client.config.logger.debug "API called: InvoiceSubmissionsApi#preflight_invoice_recipient\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
124
124
  end
125
125
  return data, status_code, headers
126
126
  end
@@ -19,33 +19,32 @@ module StorecoveApi
19
19
  @api_client = api_client
20
20
  end
21
21
 
22
- # Get ShopAccountRequests
23
- # Get all ShopAccountRequests
24
- # @param external_user_id Filter by the external_user_id
22
+ # Create a new ShopAccountRequest
23
+ # Create a new ShopAccountRequest
24
+ # @param shop_account_request ShopAccountRequest to add
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [Array<ShopAccountRequest>]
27
- def all(external_user_id, opts = {})
28
- data, _status_code, _headers = all_with_http_info(external_user_id, opts)
26
+ # @return [ShopAccountRequest]
27
+ def create_shop_account_request(shop_account_request, opts = {})
28
+ data, _status_code, _headers = create_shop_account_request_with_http_info(shop_account_request, opts)
29
29
  return data
30
30
  end
31
31
 
32
- # Get ShopAccountRequests
33
- # Get all ShopAccountRequests
34
- # @param external_user_id Filter by the external_user_id
32
+ # Create a new ShopAccountRequest
33
+ # Create a new ShopAccountRequest
34
+ # @param shop_account_request ShopAccountRequest to add
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(Array<ShopAccountRequest>, Fixnum, Hash)>] Array<ShopAccountRequest> data, response status code and response headers
37
- def all_with_http_info(external_user_id, opts = {})
36
+ # @return [Array<(ShopAccountRequest, Fixnum, Hash)>] ShopAccountRequest data, response status code and response headers
37
+ def create_shop_account_request_with_http_info(shop_account_request, opts = {})
38
38
  if @api_client.config.debugging
39
- @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.all ..."
39
+ @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.create_shop_account_request ..."
40
40
  end
41
- # verify the required parameter 'external_user_id' is set
42
- fail ArgumentError, "Missing the required parameter 'external_user_id' when calling ShopAccountRequestsApi.all" if external_user_id.nil?
41
+ # verify the required parameter 'shop_account_request' is set
42
+ fail ArgumentError, "Missing the required parameter 'shop_account_request' when calling ShopAccountRequestsApi.create_shop_account_request" if shop_account_request.nil?
43
43
  # resource path
44
44
  local_var_path = "/shop_account_requests".sub('{format}','json')
45
45
 
46
46
  # query parameters
47
47
  query_params = {}
48
- query_params[:'external_user_id'] = external_user_id
49
48
 
50
49
  # header parameters
51
50
  header_params = {}
@@ -58,44 +57,44 @@ module StorecoveApi
58
57
  form_params = {}
59
58
 
60
59
  # http body (model)
61
- post_body = nil
60
+ post_body = @api_client.object_to_http_body(shop_account_request)
62
61
  auth_names = ['Bearer']
63
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
62
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
64
63
  :header_params => header_params,
65
64
  :query_params => query_params,
66
65
  :form_params => form_params,
67
66
  :body => post_body,
68
67
  :auth_names => auth_names,
69
- :return_type => 'Array<ShopAccountRequest>')
68
+ :return_type => 'ShopAccountRequest')
70
69
  if @api_client.config.debugging
71
- @api_client.config.logger.debug "API called: ShopAccountRequestsApi#all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ @api_client.config.logger.debug "API called: ShopAccountRequestsApi#create_shop_account_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
72
71
  end
73
72
  return data, status_code, headers
74
73
  end
75
74
 
76
- # Create ShopAccountRequest
77
- # Create a new ShopAccountRequest
78
- # @param shop_account_request ShopAccountRequest to add
75
+ # Delete a specific ShopAccountRequest
76
+ # Delete a specific ShopAccountRequest
77
+ # @param id shop_account_request id
79
78
  # @param [Hash] opts the optional parameters
80
- # @return [ShopAccountRequest]
81
- def create(shop_account_request, opts = {})
82
- data, _status_code, _headers = create_with_http_info(shop_account_request, opts)
83
- return data
79
+ # @return [nil]
80
+ def delete_shop_account_request(id, opts = {})
81
+ delete_shop_account_request_with_http_info(id, opts)
82
+ return nil
84
83
  end
85
84
 
86
- # Create ShopAccountRequest
87
- # Create a new ShopAccountRequest
88
- # @param shop_account_request ShopAccountRequest to add
85
+ # Delete a specific ShopAccountRequest
86
+ # Delete a specific ShopAccountRequest
87
+ # @param id shop_account_request id
89
88
  # @param [Hash] opts the optional parameters
90
- # @return [Array<(ShopAccountRequest, Fixnum, Hash)>] ShopAccountRequest data, response status code and response headers
91
- def create_with_http_info(shop_account_request, opts = {})
89
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
90
+ def delete_shop_account_request_with_http_info(id, opts = {})
92
91
  if @api_client.config.debugging
93
- @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.create ..."
92
+ @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.delete_shop_account_request ..."
94
93
  end
95
- # verify the required parameter 'shop_account_request' is set
96
- fail ArgumentError, "Missing the required parameter 'shop_account_request' when calling ShopAccountRequestsApi.create" if shop_account_request.nil?
94
+ # verify the required parameter 'id' is set
95
+ fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountRequestsApi.delete_shop_account_request" if id.nil?
97
96
  # resource path
98
- local_var_path = "/shop_account_requests".sub('{format}','json')
97
+ local_var_path = "/shop_account_requests/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
99
98
 
100
99
  # query parameters
101
100
  query_params = {}
@@ -111,47 +110,47 @@ module StorecoveApi
111
110
  form_params = {}
112
111
 
113
112
  # http body (model)
114
- post_body = @api_client.object_to_http_body(shop_account_request)
113
+ post_body = nil
115
114
  auth_names = ['Bearer']
116
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
115
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
117
116
  :header_params => header_params,
118
117
  :query_params => query_params,
119
118
  :form_params => form_params,
120
119
  :body => post_body,
121
- :auth_names => auth_names,
122
- :return_type => 'ShopAccountRequest')
120
+ :auth_names => auth_names)
123
121
  if @api_client.config.debugging
124
- @api_client.config.logger.debug "API called: ShopAccountRequestsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
+ @api_client.config.logger.debug "API called: ShopAccountRequestsApi#delete_shop_account_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
125
123
  end
126
124
  return data, status_code, headers
127
125
  end
128
126
 
129
- # Delete ShopAccountRequest
130
- # Delete a specific ShopAccountRequest
131
- # @param id shop_account_request id
127
+ # Get all ShopAccountRequests
128
+ # Get all ShopAccountRequests
129
+ # @param external_user_id Filter by the external_user_id
132
130
  # @param [Hash] opts the optional parameters
133
- # @return [nil]
134
- def destroy(id, opts = {})
135
- destroy_with_http_info(id, opts)
136
- return nil
131
+ # @return [Array<ShopAccountRequest>]
132
+ def shop_account_request_index(external_user_id, opts = {})
133
+ data, _status_code, _headers = shop_account_request_index_with_http_info(external_user_id, opts)
134
+ return data
137
135
  end
138
136
 
139
- # Delete ShopAccountRequest
140
- # Delete a specific ShopAccountRequest
141
- # @param id shop_account_request id
137
+ # Get all ShopAccountRequests
138
+ # Get all ShopAccountRequests
139
+ # @param external_user_id Filter by the external_user_id
142
140
  # @param [Hash] opts the optional parameters
143
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
144
- def destroy_with_http_info(id, opts = {})
141
+ # @return [Array<(Array<ShopAccountRequest>, Fixnum, Hash)>] Array<ShopAccountRequest> data, response status code and response headers
142
+ def shop_account_request_index_with_http_info(external_user_id, opts = {})
145
143
  if @api_client.config.debugging
146
- @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.destroy ..."
144
+ @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.shop_account_request_index ..."
147
145
  end
148
- # verify the required parameter 'id' is set
149
- fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountRequestsApi.destroy" if id.nil?
146
+ # verify the required parameter 'external_user_id' is set
147
+ fail ArgumentError, "Missing the required parameter 'external_user_id' when calling ShopAccountRequestsApi.shop_account_request_index" if external_user_id.nil?
150
148
  # resource path
151
- local_var_path = "/shop_account_requests/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
149
+ local_var_path = "/shop_account_requests".sub('{format}','json')
152
150
 
153
151
  # query parameters
154
152
  query_params = {}
153
+ query_params[:'external_user_id'] = external_user_id
155
154
 
156
155
  # header parameters
157
156
  header_params = {}
@@ -166,14 +165,15 @@ module StorecoveApi
166
165
  # http body (model)
167
166
  post_body = nil
168
167
  auth_names = ['Bearer']
169
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
168
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
170
169
  :header_params => header_params,
171
170
  :query_params => query_params,
172
171
  :form_params => form_params,
173
172
  :body => post_body,
174
- :auth_names => auth_names)
173
+ :auth_names => auth_names,
174
+ :return_type => 'Array<ShopAccountRequest>')
175
175
  if @api_client.config.debugging
176
- @api_client.config.logger.debug "API called: ShopAccountRequestsApi#destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
+ @api_client.config.logger.debug "API called: ShopAccountRequestsApi#shop_account_request_index\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
177
177
  end
178
178
  return data, status_code, headers
179
179
  end
@@ -183,8 +183,8 @@ module StorecoveApi
183
183
  # @param id shop_account_request id
184
184
  # @param [Hash] opts the optional parameters
185
185
  # @return [ShopAccountRequest]
186
- def get(id, opts = {})
187
- data, _status_code, _headers = get_with_http_info(id, opts)
186
+ def show_shop_account_request(id, opts = {})
187
+ data, _status_code, _headers = show_shop_account_request_with_http_info(id, opts)
188
188
  return data
189
189
  end
190
190
 
@@ -193,12 +193,12 @@ module StorecoveApi
193
193
  # @param id shop_account_request id
194
194
  # @param [Hash] opts the optional parameters
195
195
  # @return [Array<(ShopAccountRequest, Fixnum, Hash)>] ShopAccountRequest data, response status code and response headers
196
- def get_with_http_info(id, opts = {})
196
+ def show_shop_account_request_with_http_info(id, opts = {})
197
197
  if @api_client.config.debugging
198
- @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.get ..."
198
+ @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.show_shop_account_request ..."
199
199
  end
200
200
  # verify the required parameter 'id' is set
201
- fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountRequestsApi.get" if id.nil?
201
+ fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountRequestsApi.show_shop_account_request" if id.nil?
202
202
  # resource path
203
203
  local_var_path = "/shop_account_requests/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
204
204
 
@@ -226,36 +226,36 @@ module StorecoveApi
226
226
  :auth_names => auth_names,
227
227
  :return_type => 'ShopAccountRequest')
228
228
  if @api_client.config.debugging
229
- @api_client.config.logger.debug "API called: ShopAccountRequestsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
229
+ @api_client.config.logger.debug "API called: ShopAccountRequestsApi#show_shop_account_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
230
230
  end
231
231
  return data, status_code, headers
232
232
  end
233
233
 
234
- # Update ShopAccountRequest
234
+ # Update a specific ShopAccountRequest
235
235
  # Update a specific ShopAccountRequest
236
236
  # @param id shop_account_request id
237
237
  # @param shop_account_request ShopAccountRequest updates
238
238
  # @param [Hash] opts the optional parameters
239
239
  # @return [ShopAccountRequest]
240
- def update(id, shop_account_request, opts = {})
241
- data, _status_code, _headers = update_with_http_info(id, shop_account_request, opts)
240
+ def update_shop_account_request(id, shop_account_request, opts = {})
241
+ data, _status_code, _headers = update_shop_account_request_with_http_info(id, shop_account_request, opts)
242
242
  return data
243
243
  end
244
244
 
245
- # Update ShopAccountRequest
245
+ # Update a specific ShopAccountRequest
246
246
  # Update a specific ShopAccountRequest
247
247
  # @param id shop_account_request id
248
248
  # @param shop_account_request ShopAccountRequest updates
249
249
  # @param [Hash] opts the optional parameters
250
250
  # @return [Array<(ShopAccountRequest, Fixnum, Hash)>] ShopAccountRequest data, response status code and response headers
251
- def update_with_http_info(id, shop_account_request, opts = {})
251
+ def update_shop_account_request_with_http_info(id, shop_account_request, opts = {})
252
252
  if @api_client.config.debugging
253
- @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.update ..."
253
+ @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.update_shop_account_request ..."
254
254
  end
255
255
  # verify the required parameter 'id' is set
256
- fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountRequestsApi.update" if id.nil?
256
+ fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountRequestsApi.update_shop_account_request" if id.nil?
257
257
  # verify the required parameter 'shop_account_request' is set
258
- fail ArgumentError, "Missing the required parameter 'shop_account_request' when calling ShopAccountRequestsApi.update" if shop_account_request.nil?
258
+ fail ArgumentError, "Missing the required parameter 'shop_account_request' when calling ShopAccountRequestsApi.update_shop_account_request" if shop_account_request.nil?
259
259
  # resource path
260
260
  local_var_path = "/shop_account_requests/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
261
261
 
@@ -283,7 +283,7 @@ module StorecoveApi
283
283
  :auth_names => auth_names,
284
284
  :return_type => 'ShopAccountRequest')
285
285
  if @api_client.config.debugging
286
- @api_client.config.logger.debug "API called: ShopAccountRequestsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
286
+ @api_client.config.logger.debug "API called: ShopAccountRequestsApi#update_shop_account_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
287
287
  end
288
288
  return data, status_code, headers
289
289
  end