storecove 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/lib/storecove/api/invoice_submissions_api.rb +5 -5
  3. data/lib/storecove/api/shop_account_requests_api.rb +54 -54
  4. data/lib/storecove/api/shop_accounts_api.rb +67 -67
  5. data/lib/storecove/api/shops_api.rb +5 -5
  6. data/lib/storecove/api_client.rb +1 -1
  7. data/lib/storecove/api_error.rb +1 -1
  8. data/lib/storecove/configuration.rb +1 -1
  9. data/lib/storecove/models/accounting_cost_code.rb +1 -1
  10. data/lib/storecove/models/accounting_customer_party.rb +1 -1
  11. data/lib/storecove/models/address.rb +1 -1
  12. data/lib/storecove/models/contact.rb +1 -1
  13. data/lib/storecove/models/country.rb +1 -1
  14. data/lib/storecove/models/currency_code.rb +1 -1
  15. data/lib/storecove/models/error_model.rb +1 -1
  16. data/lib/storecove/models/invoice.rb +44 -27
  17. data/lib/storecove/models/invoice_line.rb +7 -7
  18. data/lib/storecove/models/invoice_recipient.rb +17 -6
  19. data/lib/storecove/models/invoice_recipient_preflight.rb +11 -1
  20. data/lib/storecove/models/invoice_submission.rb +1 -1
  21. data/lib/storecove/models/invoice_submission_result.rb +9 -9
  22. data/lib/storecove/models/legal_entity.rb +11 -2
  23. data/lib/storecove/models/legal_entity_identifier.rb +1 -1
  24. data/lib/storecove/models/logos.rb +1 -1
  25. data/lib/storecove/models/party.rb +1 -1
  26. data/lib/storecove/models/preflight_invoice_recipient_result.rb +1 -1
  27. data/lib/storecove/models/public_identifier.rb +2 -2
  28. data/lib/storecove/models/public_identifiers.rb +1 -1
  29. data/lib/storecove/models/shop.rb +1 -1
  30. data/lib/storecove/models/shop_account_input.rb +26 -1
  31. data/lib/storecove/models/shop_account_request_input.rb +26 -1
  32. data/lib/storecove/models/{shop_account_request.rb → shop_account_request_result.rb} +2 -7
  33. data/lib/storecove/models/shop_account_request_update.rb +1 -1
  34. data/lib/storecove/models/{shop_account.rb → shop_account_result.rb} +10 -7
  35. data/lib/storecove/models/shop_account_update.rb +4 -1
  36. data/lib/storecove/models/tax.rb +1 -1
  37. data/lib/storecove/version.rb +2 -2
  38. data/lib/storecove.rb +3 -3
  39. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36fc9f5802137905431d6435bd31e016215a0d0d
4
- data.tar.gz: d7c4151d65d2727e14bd105ac354fcc342ab10a0
3
+ metadata.gz: ed4638ad2093a59ab20ad55f34a3dcd018691f76
4
+ data.tar.gz: 86c1195c801247c22444dae8cf462e939f4a129c
5
5
  SHA512:
6
- metadata.gz: c60dcfbe3faea36b2a91011a686bb68d70e51145118696f9032897183ca7a9830534dfab18a5627c4cc95fd9ca65a917e1696e3e003fa827cad3e2bf3b9e57ed
7
- data.tar.gz: 0fea6b7f705cf07ab1fdf2d31363f2878f5507db02e8e45e2e1bff78d5d3c0d46e813ca409bc0dbfe449bdc453b0392d5dd03597d829b67c129bde1dec095e21
6
+ metadata.gz: 678b79389ea30bd78facbb788e6907749e261d2467646e382f5c49d1366567ecdebec2647e660ea609dc9da2ee72ac01b5d919d67ff4cf0f36d1e550ac06788e
7
+ data.tar.gz: aaed7f28c7769e3c8feeaac2c669bd265026d232dd552b2f3bf567cf099ac3e9b4cbc13cb89b3da4c407103bfc5e902c9bcd1813b97a275a216ff7b83ac83f3a
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Storecove API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.1
7
7
  Contact: apisupport@storecove.nl
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -19,8 +19,8 @@ module StorecoveApi
19
19
  @api_client = api_client
20
20
  end
21
21
 
22
- #
23
22
  # Submit a new invoice
23
+ # Submit an invoice for delivery. include::examples/invoice_submissions/create_invoice_submission/tabs.adoc[]
24
24
  # @param invoice_submission Invoice to submit
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [InvoiceSubmissionResult]
@@ -29,8 +29,8 @@ module StorecoveApi
29
29
  return data
30
30
  end
31
31
 
32
- #
33
32
  # Submit a new invoice
33
+ # Submit an invoice for delivery. include::examples/invoice_submissions/create_invoice_submission/tabs.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
@@ -72,8 +72,8 @@ module StorecoveApi
72
72
  return data, status_code, headers
73
73
  end
74
74
 
75
- #
76
75
  # Preflight an invoice recipient
76
+ # Check whether Storecove can deliver an invoice for a list of ids. include::examples/invoice_submissions/preflight_invoice_recipient/tabs.adoc[]
77
77
  # @param invoice_recipient_preflight The invoice recipient to preflight
78
78
  # @param [Hash] opts the optional parameters
79
79
  # @return [PreflightInvoiceRecipientResult]
@@ -82,8 +82,8 @@ module StorecoveApi
82
82
  return data
83
83
  end
84
84
 
85
- #
86
85
  # Preflight an invoice recipient
86
+ # Check whether Storecove can deliver an invoice for a list of ids. include::examples/invoice_submissions/preflight_invoice_recipient/tabs.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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Storecove API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.1
7
7
  Contact: apisupport@storecove.nl
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -19,21 +19,21 @@ module StorecoveApi
19
19
  @api_client = api_client
20
20
  end
21
21
 
22
- # Create a new ShopAccountRequest
23
- # Create a new ShopAccountRequest
22
+ # Create ShopAccountRequest
23
+ # Create a new ShopAccountRequest include::examples/shop_account_requests/create_shop_account_request/tabs.adoc[]
24
24
  # @param shop_account_request ShopAccountRequest to add
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [ShopAccountRequest]
26
+ # @return [ShopAccountRequestResult]
27
27
  def create_shop_account_request(shop_account_request, opts = {})
28
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
- # Create a new ShopAccountRequest
33
- # Create a new ShopAccountRequest
32
+ # Create ShopAccountRequest
33
+ # Create a new ShopAccountRequest include::examples/shop_account_requests/create_shop_account_request/tabs.adoc[]
34
34
  # @param shop_account_request ShopAccountRequest to add
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(ShopAccountRequest, Fixnum, Hash)>] ShopAccountRequest data, response status code and response headers
36
+ # @return [Array<(ShopAccountRequestResult, Fixnum, Hash)>] ShopAccountRequestResult data, response status code and response headers
37
37
  def create_shop_account_request_with_http_info(shop_account_request, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.create_shop_account_request ..."
@@ -65,15 +65,15 @@ module StorecoveApi
65
65
  :form_params => form_params,
66
66
  :body => post_body,
67
67
  :auth_names => auth_names,
68
- :return_type => 'ShopAccountRequest')
68
+ :return_type => 'ShopAccountRequestResult')
69
69
  if @api_client.config.debugging
70
70
  @api_client.config.logger.debug "API called: ShopAccountRequestsApi#create_shop_account_request\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
- # Delete a specific ShopAccountRequest
76
- # Delete a specific ShopAccountRequest
75
+ # Delete ShopAccountRequest
76
+ # Delete a specific ShopAccountRequest include::examples/shop_account_requests/delete_shop_account_request/tabs.adoc[]
77
77
  # @param id shop_account_request id
78
78
  # @param [Hash] opts the optional parameters
79
79
  # @return [nil]
@@ -82,8 +82,8 @@ module StorecoveApi
82
82
  return nil
83
83
  end
84
84
 
85
- # Delete a specific ShopAccountRequest
86
- # Delete a specific ShopAccountRequest
85
+ # Delete ShopAccountRequest
86
+ # Delete a specific ShopAccountRequest include::examples/shop_account_requests/delete_shop_account_request/tabs.adoc[]
87
87
  # @param id shop_account_request id
88
88
  # @param [Hash] opts the optional parameters
89
89
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
@@ -124,33 +124,32 @@ module StorecoveApi
124
124
  return data, status_code, headers
125
125
  end
126
126
 
127
- # Get all ShopAccountRequests
128
- # Get all ShopAccountRequests
129
- # @param external_user_id Filter by the external_user_id
127
+ # Get ShopAccountRequest
128
+ # Show a specific ShopAccountRequest include::examples/shop_account_requests/get_shop_account_request/tabs.adoc[]
129
+ # @param id shop_account_request id
130
130
  # @param [Hash] opts the optional parameters
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)
131
+ # @return [ShopAccountRequestResult]
132
+ def get_shop_account_request(id, opts = {})
133
+ data, _status_code, _headers = get_shop_account_request_with_http_info(id, opts)
134
134
  return data
135
135
  end
136
136
 
137
- # Get all ShopAccountRequests
138
- # Get all ShopAccountRequests
139
- # @param external_user_id Filter by the external_user_id
137
+ # Get ShopAccountRequest
138
+ # Show a specific ShopAccountRequest include::examples/shop_account_requests/get_shop_account_request/tabs.adoc[]
139
+ # @param id shop_account_request id
140
140
  # @param [Hash] opts the optional parameters
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 = {})
141
+ # @return [Array<(ShopAccountRequestResult, Fixnum, Hash)>] ShopAccountRequestResult data, response status code and response headers
142
+ def get_shop_account_request_with_http_info(id, opts = {})
143
143
  if @api_client.config.debugging
144
- @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.shop_account_request_index ..."
144
+ @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.get_shop_account_request ..."
145
145
  end
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?
146
+ # verify the required parameter 'id' is set
147
+ fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountRequestsApi.get_shop_account_request" if id.nil?
148
148
  # resource path
149
- local_var_path = "/shop_account_requests".sub('{format}','json')
149
+ local_var_path = "/shop_account_requests/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
150
150
 
151
151
  # query parameters
152
152
  query_params = {}
153
- query_params[:'external_user_id'] = external_user_id
154
153
 
155
154
  # header parameters
156
155
  header_params = {}
@@ -171,39 +170,40 @@ module StorecoveApi
171
170
  :form_params => form_params,
172
171
  :body => post_body,
173
172
  :auth_names => auth_names,
174
- :return_type => 'Array<ShopAccountRequest>')
173
+ :return_type => 'ShopAccountRequestResult')
175
174
  if @api_client.config.debugging
176
- @api_client.config.logger.debug "API called: ShopAccountRequestsApi#shop_account_request_index\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
175
+ @api_client.config.logger.debug "API called: ShopAccountRequestsApi#get_shop_account_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
177
176
  end
178
177
  return data, status_code, headers
179
178
  end
180
179
 
181
- # Show a specific ShopAccountRequest
182
- # Show a specific ShopAccountRequest
183
- # @param id shop_account_request id
180
+ # Get ShopAccountRequests
181
+ # Retrieve all active ShopAccountRequests for one of your entities. include::examples/shop_account_requests/shop_account_requests_index/tabs.adoc[]
182
+ # @param external_user_id Filter by the external_user_id
184
183
  # @param [Hash] opts the optional parameters
185
- # @return [ShopAccountRequest]
186
- def show_shop_account_request(id, opts = {})
187
- data, _status_code, _headers = show_shop_account_request_with_http_info(id, opts)
184
+ # @return [Array<ShopAccountRequestResult>]
185
+ def shop_account_requests_index(external_user_id, opts = {})
186
+ data, _status_code, _headers = shop_account_requests_index_with_http_info(external_user_id, opts)
188
187
  return data
189
188
  end
190
189
 
191
- # Show a specific ShopAccountRequest
192
- # Show a specific ShopAccountRequest
193
- # @param id shop_account_request id
190
+ # Get ShopAccountRequests
191
+ # Retrieve all active ShopAccountRequests for one of your entities. include::examples/shop_account_requests/shop_account_requests_index/tabs.adoc[]
192
+ # @param external_user_id Filter by the external_user_id
194
193
  # @param [Hash] opts the optional parameters
195
- # @return [Array<(ShopAccountRequest, Fixnum, Hash)>] ShopAccountRequest data, response status code and response headers
196
- def show_shop_account_request_with_http_info(id, opts = {})
194
+ # @return [Array<(Array<ShopAccountRequestResult>, Fixnum, Hash)>] Array<ShopAccountRequestResult> data, response status code and response headers
195
+ def shop_account_requests_index_with_http_info(external_user_id, opts = {})
197
196
  if @api_client.config.debugging
198
- @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.show_shop_account_request ..."
197
+ @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.shop_account_requests_index ..."
199
198
  end
200
- # verify the required parameter 'id' is set
201
- fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountRequestsApi.show_shop_account_request" if id.nil?
199
+ # verify the required parameter 'external_user_id' is set
200
+ fail ArgumentError, "Missing the required parameter 'external_user_id' when calling ShopAccountRequestsApi.shop_account_requests_index" if external_user_id.nil?
202
201
  # resource path
203
- local_var_path = "/shop_account_requests/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
202
+ local_var_path = "/shop_account_requests".sub('{format}','json')
204
203
 
205
204
  # query parameters
206
205
  query_params = {}
206
+ query_params[:'external_user_id'] = external_user_id
207
207
 
208
208
  # header parameters
209
209
  header_params = {}
@@ -224,30 +224,30 @@ module StorecoveApi
224
224
  :form_params => form_params,
225
225
  :body => post_body,
226
226
  :auth_names => auth_names,
227
- :return_type => 'ShopAccountRequest')
227
+ :return_type => 'Array<ShopAccountRequestResult>')
228
228
  if @api_client.config.debugging
229
- @api_client.config.logger.debug "API called: ShopAccountRequestsApi#show_shop_account_request\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
229
+ @api_client.config.logger.debug "API called: ShopAccountRequestsApi#shop_account_requests_index\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 a specific ShopAccountRequest
235
- # Update a specific ShopAccountRequest
234
+ # Update ShopAccountRequest
235
+ # Update a specific ShopAccountRequest include::examples/shop_account_requests/update_shop_account_request/tabs.adoc[]
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
- # @return [ShopAccountRequest]
239
+ # @return [ShopAccountRequestResult]
240
240
  def update_shop_account_request(id, shop_account_request, opts = {})
241
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 a specific ShopAccountRequest
246
- # Update a specific ShopAccountRequest
245
+ # Update ShopAccountRequest
246
+ # Update a specific ShopAccountRequest include::examples/shop_account_requests/update_shop_account_request/tabs.adoc[]
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
- # @return [Array<(ShopAccountRequest, Fixnum, Hash)>] ShopAccountRequest data, response status code and response headers
250
+ # @return [Array<(ShopAccountRequestResult, Fixnum, Hash)>] ShopAccountRequestResult data, response status code and response headers
251
251
  def update_shop_account_request_with_http_info(id, shop_account_request, opts = {})
252
252
  if @api_client.config.debugging
253
253
  @api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.update_shop_account_request ..."
@@ -281,7 +281,7 @@ module StorecoveApi
281
281
  :form_params => form_params,
282
282
  :body => post_body,
283
283
  :auth_names => auth_names,
284
- :return_type => 'ShopAccountRequest')
284
+ :return_type => 'ShopAccountRequestResult')
285
285
  if @api_client.config.debugging
286
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Storecove API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.1
7
7
  Contact: apisupport@storecove.nl
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -19,21 +19,21 @@ module StorecoveApi
19
19
  @api_client = api_client
20
20
  end
21
21
 
22
- # Create a new ShopAccount
23
- # Create a new ShopAccount
22
+ # Create ShopAccount
23
+ # Create a new ShopAccount. include::examples/shop_accounts/create_shop_account/tabs.adoc[]
24
24
  # @param shop_account ShopAccount to add
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [ShopAccount]
26
+ # @return [ShopAccountResult]
27
27
  def create_shop_account(shop_account, opts = {})
28
28
  data, _status_code, _headers = create_shop_account_with_http_info(shop_account, opts)
29
29
  return data
30
30
  end
31
31
 
32
- # Create a new ShopAccount
33
- # Create a new ShopAccount
32
+ # Create ShopAccount
33
+ # Create a new ShopAccount. include::examples/shop_accounts/create_shop_account/tabs.adoc[]
34
34
  # @param shop_account ShopAccount to add
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(ShopAccount, Fixnum, Hash)>] ShopAccount data, response status code and response headers
36
+ # @return [Array<(ShopAccountResult, Fixnum, Hash)>] ShopAccountResult data, response status code and response headers
37
37
  def create_shop_account_with_http_info(shop_account, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug "Calling API: ShopAccountsApi.create_shop_account ..."
@@ -65,15 +65,15 @@ module StorecoveApi
65
65
  :form_params => form_params,
66
66
  :body => post_body,
67
67
  :auth_names => auth_names,
68
- :return_type => 'ShopAccount')
68
+ :return_type => 'ShopAccountResult')
69
69
  if @api_client.config.debugging
70
70
  @api_client.config.logger.debug "API called: ShopAccountsApi#create_shop_account\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
- # Delete a specific ShopAccount
76
- # Delete a specific ShopAccount
75
+ # Delete ShopAccount
76
+ # Delete a specific ShopAccount. include::examples/shop_accounts/delete_shop_account/tabs.adoc[]
77
77
  # @param id shop_account id
78
78
  # @param [Hash] opts the optional parameters
79
79
  # @return [nil]
@@ -82,8 +82,8 @@ module StorecoveApi
82
82
  return nil
83
83
  end
84
84
 
85
- # Delete a specific ShopAccount
86
- # Delete a specific ShopAccount
85
+ # Delete ShopAccount
86
+ # Delete a specific ShopAccount. include::examples/shop_accounts/delete_shop_account/tabs.adoc[]
87
87
  # @param id shop_account id
88
88
  # @param [Hash] opts the optional parameters
89
89
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
@@ -124,25 +124,29 @@ module StorecoveApi
124
124
  return data, status_code, headers
125
125
  end
126
126
 
127
- # Get ShopAccounts with authorization failures
128
- # Get ShopAccounts with authorization failures
127
+ # Get ShopAccount
128
+ # Get a specific ShopAccount. include::examples/shop_accounts/get_shop_account/tabs.adoc[]
129
+ # @param id shop_account id
129
130
  # @param [Hash] opts the optional parameters
130
- # @return [Array<ShopAccount>]
131
- def shop_accounts_auth_failures(opts = {})
132
- data, _status_code, _headers = shop_accounts_auth_failures_with_http_info(opts)
131
+ # @return [ShopAccountResult]
132
+ def get_shop_account(id, opts = {})
133
+ data, _status_code, _headers = get_shop_account_with_http_info(id, opts)
133
134
  return data
134
135
  end
135
136
 
136
- # Get ShopAccounts with authorization failures
137
- # Get ShopAccounts with authorization failures
137
+ # Get ShopAccount
138
+ # Get a specific ShopAccount. include::examples/shop_accounts/get_shop_account/tabs.adoc[]
139
+ # @param id shop_account id
138
140
  # @param [Hash] opts the optional parameters
139
- # @return [Array<(Array<ShopAccount>, Fixnum, Hash)>] Array<ShopAccount> data, response status code and response headers
140
- def shop_accounts_auth_failures_with_http_info(opts = {})
141
+ # @return [Array<(ShopAccountResult, Fixnum, Hash)>] ShopAccountResult data, response status code and response headers
142
+ def get_shop_account_with_http_info(id, opts = {})
141
143
  if @api_client.config.debugging
142
- @api_client.config.logger.debug "Calling API: ShopAccountsApi.shop_accounts_auth_failures ..."
144
+ @api_client.config.logger.debug "Calling API: ShopAccountsApi.get_shop_account ..."
143
145
  end
146
+ # verify the required parameter 'id' is set
147
+ fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountsApi.get_shop_account" if id.nil?
144
148
  # resource path
145
- local_var_path = "/shop_accounts/auth_failures".sub('{format}','json')
149
+ local_var_path = "/shop_accounts/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
146
150
 
147
151
  # query parameters
148
152
  query_params = {}
@@ -166,40 +170,35 @@ module StorecoveApi
166
170
  :form_params => form_params,
167
171
  :body => post_body,
168
172
  :auth_names => auth_names,
169
- :return_type => 'Array<ShopAccount>')
173
+ :return_type => 'ShopAccountResult')
170
174
  if @api_client.config.debugging
171
- @api_client.config.logger.debug "API called: ShopAccountsApi#shop_accounts_auth_failures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
175
+ @api_client.config.logger.debug "API called: ShopAccountsApi#get_shop_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
172
176
  end
173
177
  return data, status_code, headers
174
178
  end
175
179
 
176
- # Get all ShopAccounts
177
- # Get all ShopAccounts
178
- # @param external_user_id Filter by the external_user_id
180
+ # Get ShopAccounts with authorization failures
181
+ # Get ShopAccounts with authorization failures. include::examples/shop_accounts/shop_accounts_auth_failures/tabs.adoc[]
179
182
  # @param [Hash] opts the optional parameters
180
- # @return [Array<ShopAccount>]
181
- def shop_accounts_index(external_user_id, opts = {})
182
- data, _status_code, _headers = shop_accounts_index_with_http_info(external_user_id, opts)
183
+ # @return [Array<ShopAccountResult>]
184
+ def shop_accounts_auth_failures(opts = {})
185
+ data, _status_code, _headers = shop_accounts_auth_failures_with_http_info(opts)
183
186
  return data
184
187
  end
185
188
 
186
- # Get all ShopAccounts
187
- # Get all ShopAccounts
188
- # @param external_user_id Filter by the external_user_id
189
+ # Get ShopAccounts with authorization failures
190
+ # Get ShopAccounts with authorization failures. include::examples/shop_accounts/shop_accounts_auth_failures/tabs.adoc[]
189
191
  # @param [Hash] opts the optional parameters
190
- # @return [Array<(Array<ShopAccount>, Fixnum, Hash)>] Array<ShopAccount> data, response status code and response headers
191
- def shop_accounts_index_with_http_info(external_user_id, opts = {})
192
+ # @return [Array<(Array<ShopAccountResult>, Fixnum, Hash)>] Array<ShopAccountResult> data, response status code and response headers
193
+ def shop_accounts_auth_failures_with_http_info(opts = {})
192
194
  if @api_client.config.debugging
193
- @api_client.config.logger.debug "Calling API: ShopAccountsApi.shop_accounts_index ..."
195
+ @api_client.config.logger.debug "Calling API: ShopAccountsApi.shop_accounts_auth_failures ..."
194
196
  end
195
- # verify the required parameter 'external_user_id' is set
196
- fail ArgumentError, "Missing the required parameter 'external_user_id' when calling ShopAccountsApi.shop_accounts_index" if external_user_id.nil?
197
197
  # resource path
198
- local_var_path = "/shop_accounts".sub('{format}','json')
198
+ local_var_path = "/shop_accounts/auth_failures".sub('{format}','json')
199
199
 
200
200
  # query parameters
201
201
  query_params = {}
202
- query_params[:'external_user_id'] = external_user_id
203
202
 
204
203
  # header parameters
205
204
  header_params = {}
@@ -220,39 +219,40 @@ module StorecoveApi
220
219
  :form_params => form_params,
221
220
  :body => post_body,
222
221
  :auth_names => auth_names,
223
- :return_type => 'Array<ShopAccount>')
222
+ :return_type => 'Array<ShopAccountResult>')
224
223
  if @api_client.config.debugging
225
- @api_client.config.logger.debug "API called: ShopAccountsApi#shop_accounts_index\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
224
+ @api_client.config.logger.debug "API called: ShopAccountsApi#shop_accounts_auth_failures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
226
225
  end
227
226
  return data, status_code, headers
228
227
  end
229
228
 
230
- # Show a specific ShopAccount
231
- # Show a specific ShopAccount
232
- # @param id shop_account id
229
+ # Get ShopAccounts for an entity
230
+ # Retrieve all active ShopAccounts for one of your entities. include::examples/shop_accounts/shop_accounts_index/tabs.adoc[]
231
+ # @param external_user_id Filter by the external_user_id
233
232
  # @param [Hash] opts the optional parameters
234
- # @return [ShopAccount]
235
- def show_shop_account(id, opts = {})
236
- data, _status_code, _headers = show_shop_account_with_http_info(id, opts)
233
+ # @return [Array<ShopAccountResult>]
234
+ def shop_accounts_index(external_user_id, opts = {})
235
+ data, _status_code, _headers = shop_accounts_index_with_http_info(external_user_id, opts)
237
236
  return data
238
237
  end
239
238
 
240
- # Show a specific ShopAccount
241
- # Show a specific ShopAccount
242
- # @param id shop_account id
239
+ # Get ShopAccounts for an entity
240
+ # Retrieve all active ShopAccounts for one of your entities. include::examples/shop_accounts/shop_accounts_index/tabs.adoc[]
241
+ # @param external_user_id Filter by the external_user_id
243
242
  # @param [Hash] opts the optional parameters
244
- # @return [Array<(ShopAccount, Fixnum, Hash)>] ShopAccount data, response status code and response headers
245
- def show_shop_account_with_http_info(id, opts = {})
243
+ # @return [Array<(Array<ShopAccountResult>, Fixnum, Hash)>] Array<ShopAccountResult> data, response status code and response headers
244
+ def shop_accounts_index_with_http_info(external_user_id, opts = {})
246
245
  if @api_client.config.debugging
247
- @api_client.config.logger.debug "Calling API: ShopAccountsApi.show_shop_account ..."
246
+ @api_client.config.logger.debug "Calling API: ShopAccountsApi.shop_accounts_index ..."
248
247
  end
249
- # verify the required parameter 'id' is set
250
- fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountsApi.show_shop_account" if id.nil?
248
+ # verify the required parameter 'external_user_id' is set
249
+ fail ArgumentError, "Missing the required parameter 'external_user_id' when calling ShopAccountsApi.shop_accounts_index" if external_user_id.nil?
251
250
  # resource path
252
- local_var_path = "/shop_accounts/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
251
+ local_var_path = "/shop_accounts".sub('{format}','json')
253
252
 
254
253
  # query parameters
255
254
  query_params = {}
255
+ query_params[:'external_user_id'] = external_user_id
256
256
 
257
257
  # header parameters
258
258
  header_params = {}
@@ -273,30 +273,30 @@ module StorecoveApi
273
273
  :form_params => form_params,
274
274
  :body => post_body,
275
275
  :auth_names => auth_names,
276
- :return_type => 'ShopAccount')
276
+ :return_type => 'Array<ShopAccountResult>')
277
277
  if @api_client.config.debugging
278
- @api_client.config.logger.debug "API called: ShopAccountsApi#show_shop_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
278
+ @api_client.config.logger.debug "API called: ShopAccountsApi#shop_accounts_index\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
279
279
  end
280
280
  return data, status_code, headers
281
281
  end
282
282
 
283
- # Update a specific ShopAccount
284
- # Update a specific ShopAccount
283
+ # Update ShopAccount
284
+ # Update a specific ShopAccount. include::examples/shop_accounts/update_shop_account/tabs.adoc[]
285
285
  # @param id shop_account id
286
286
  # @param shop_account ShopAccount updates
287
287
  # @param [Hash] opts the optional parameters
288
- # @return [ShopAccount]
288
+ # @return [ShopAccountResult]
289
289
  def update_shop_account(id, shop_account, opts = {})
290
290
  data, _status_code, _headers = update_shop_account_with_http_info(id, shop_account, opts)
291
291
  return data
292
292
  end
293
293
 
294
- # Update a specific ShopAccount
295
- # Update a specific ShopAccount
294
+ # Update ShopAccount
295
+ # Update a specific ShopAccount. include::examples/shop_accounts/update_shop_account/tabs.adoc[]
296
296
  # @param id shop_account id
297
297
  # @param shop_account ShopAccount updates
298
298
  # @param [Hash] opts the optional parameters
299
- # @return [Array<(ShopAccount, Fixnum, Hash)>] ShopAccount data, response status code and response headers
299
+ # @return [Array<(ShopAccountResult, Fixnum, Hash)>] ShopAccountResult data, response status code and response headers
300
300
  def update_shop_account_with_http_info(id, shop_account, opts = {})
301
301
  if @api_client.config.debugging
302
302
  @api_client.config.logger.debug "Calling API: ShopAccountsApi.update_shop_account ..."
@@ -330,7 +330,7 @@ module StorecoveApi
330
330
  :form_params => form_params,
331
331
  :body => post_body,
332
332
  :auth_names => auth_names,
333
- :return_type => 'ShopAccount')
333
+ :return_type => 'ShopAccountResult')
334
334
  if @api_client.config.debugging
335
335
  @api_client.config.logger.debug "API called: ShopAccountsApi#update_shop_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
336
336
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Storecove API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.1
7
7
  Contact: apisupport@storecove.nl
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -19,8 +19,8 @@ module StorecoveApi
19
19
  @api_client = api_client
20
20
  end
21
21
 
22
- # Get all shops
23
- # Get all shops
22
+ # Get Shops
23
+ # Get all available shops. include::examples/shops/shops_index/tabs.adoc[]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [Array<Shop>]
26
26
  def shops_index(opts = {})
@@ -28,8 +28,8 @@ module StorecoveApi
28
28
  return data
29
29
  end
30
30
 
31
- # Get all shops
32
- # Get all shops
31
+ # Get Shops
32
+ # Get all available shops. include::examples/shops/shops_index/tabs.adoc[]
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(Array<Shop>, Fixnum, Hash)>] Array<Shop> data, response status code and response headers
35
35
  def shops_index_with_http_info(opts = {})
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Storecove API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.1
7
7
  Contact: apisupport@storecove.nl
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Storecove API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.1
7
7
  Contact: apisupport@storecove.nl
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Storecove API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.1
7
7
  Contact: apisupport@storecove.nl
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Storecove API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.1
7
7
  Contact: apisupport@storecove.nl
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Storecove API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.1
7
7
  Contact: apisupport@storecove.nl
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Storecove API
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.1
7
7
  Contact: apisupport@storecove.nl
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9