storecove 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/storecove/api/invoice_submissions_api.rb +148 -0
- data/lib/storecove/api/shop_account_requests_api.rb +323 -0
- data/lib/storecove/api/shop_accounts_api.rb +376 -0
- data/lib/storecove/api/shops_api.rb +87 -0
- data/lib/storecove/api_client.rb +379 -0
- data/lib/storecove/api_error.rb +47 -0
- data/lib/storecove/configuration.rb +214 -0
- data/lib/storecove/models/accounting_cost_code.rb +298 -0
- data/lib/storecove/models/accounting_customer_party.rb +210 -0
- data/lib/storecove/models/country.rb +280 -0
- data/lib/storecove/models/currency_code.rb +209 -0
- data/lib/storecove/models/error_model.rb +208 -0
- data/lib/storecove/models/invoice_line.rb +327 -0
- data/lib/storecove/models/invoice_line_tax.rb +222 -0
- data/lib/storecove/models/invoice_recipient.rb +227 -0
- data/lib/storecove/models/invoice_recipient_preflight.rb +211 -0
- data/lib/storecove/models/invoice_submission.rb +321 -0
- data/lib/storecove/models/invoice_submission_invoice.rb +506 -0
- data/lib/storecove/models/invoice_submission_result.rb +200 -0
- data/lib/storecove/models/legal_entity.rb +264 -0
- data/lib/storecove/models/legal_entity_identifier.rb +217 -0
- data/lib/storecove/models/logos.rb +217 -0
- data/lib/storecove/models/party.rb +242 -0
- data/lib/storecove/models/party_address.rb +331 -0
- data/lib/storecove/models/party_contact.rb +218 -0
- data/lib/storecove/models/preflight_invoice_recipient_result.rb +233 -0
- data/lib/storecove/models/public_identifiers.rb +190 -0
- data/lib/storecove/models/public_identifiers_inner.rb +258 -0
- data/lib/storecove/models/shop.rb +237 -0
- data/lib/storecove/models/shop_account.rb +270 -0
- data/lib/storecove/models/shop_account_input.rb +244 -0
- data/lib/storecove/models/shop_account_request.rb +236 -0
- data/lib/storecove/models/shop_account_request_input.rb +235 -0
- data/lib/storecove/models/shop_account_request_update.rb +226 -0
- data/lib/storecove/models/shop_account_update.rb +220 -0
- data/lib/storecove/models/swagger-codegen +2799 -0
- data/lib/storecove/version.rb +26 -0
- data/lib/storecove.rb +82 -0
- data/storecove.gemspec +55 -0
- metadata +263 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3d9984fa7278af458ac5b6e18e18803556c89325
|
4
|
+
data.tar.gz: ae6e4fc328d6cf5c0218d0e75cb63ced4afd9476
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d74a07b6458d62b3089188aa2cdd78a2204b5871186a4645fbf0a3bdda6d005acb33f60bbf3835be9f50c5ed158b41c104ae5f2b85aa53f8b9bb1971269b2f37
|
7
|
+
data.tar.gz: 3d1c9be3c39f0d62fe49148fc799d5907b8a50cd8007b7a01d42500d7cd85693af64b6cb18724de5a73a4e98b62745f5ae8d9dc7687e8a1be86631f026f3b4a6
|
@@ -0,0 +1,148 @@
|
|
1
|
+
=begin
|
2
|
+
#Storecove API
|
3
|
+
|
4
|
+
#Storecove API
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: apisupport@storecove.nl
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require "uri"
|
25
|
+
|
26
|
+
module StorecoveApi
|
27
|
+
class InvoiceSubmissionsApi
|
28
|
+
attr_accessor :api_client
|
29
|
+
|
30
|
+
def initialize(api_client = ApiClient.default)
|
31
|
+
@api_client = api_client
|
32
|
+
end
|
33
|
+
|
34
|
+
# Submit a new invoice
|
35
|
+
# Submit an invoice for delivery. include::examples/invoice_submissions/post.adoc[]
|
36
|
+
# @param invoice_submission Invoice to submit
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [InvoiceSubmissionResult]
|
39
|
+
def create(invoice_submission, opts = {})
|
40
|
+
data, _status_code, _headers = create_with_http_info(invoice_submission, opts)
|
41
|
+
return data
|
42
|
+
end
|
43
|
+
|
44
|
+
# Submit a new invoice
|
45
|
+
# Submit an invoice for delivery. include::examples/invoice_submissions/post.adoc[]
|
46
|
+
# @param invoice_submission Invoice to submit
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @return [Array<(InvoiceSubmissionResult, Fixnum, Hash)>] InvoiceSubmissionResult data, response status code and response headers
|
49
|
+
def create_with_http_info(invoice_submission, opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug "Calling API: InvoiceSubmissionsApi.create ..."
|
52
|
+
end
|
53
|
+
# verify the required parameter 'invoice_submission' is set
|
54
|
+
fail ArgumentError, "Missing the required parameter 'invoice_submission' when calling InvoiceSubmissionsApi.create" if invoice_submission.nil?
|
55
|
+
# resource path
|
56
|
+
local_var_path = "/invoice_submissions".sub('{format}','json')
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = {}
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = {}
|
63
|
+
|
64
|
+
# HTTP header 'Accept' (if needed)
|
65
|
+
local_header_accept = ['application/json']
|
66
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
67
|
+
|
68
|
+
# HTTP header 'Content-Type'
|
69
|
+
local_header_content_type = ['application/json']
|
70
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
|
75
|
+
# http body (model)
|
76
|
+
post_body = @api_client.object_to_http_body(invoice_submission)
|
77
|
+
auth_names = ['Bearer']
|
78
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names,
|
84
|
+
:return_type => 'InvoiceSubmissionResult')
|
85
|
+
if @api_client.config.debugging
|
86
|
+
@api_client.config.logger.debug "API called: InvoiceSubmissionsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
|
91
|
+
# Preflight an invoice recipient
|
92
|
+
# Check whether Storecove can deliver an invoice for a list of ids. include::examples/invoice_submissions/post_preflight.adoc[]
|
93
|
+
# @param invoice_recipient_preflight The invoice recipient to preflight
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [PreflightInvoiceRecipientResult]
|
96
|
+
def preflight(invoice_recipient_preflight, opts = {})
|
97
|
+
data, _status_code, _headers = preflight_with_http_info(invoice_recipient_preflight, opts)
|
98
|
+
return data
|
99
|
+
end
|
100
|
+
|
101
|
+
# Preflight an invoice recipient
|
102
|
+
# Check whether Storecove can deliver an invoice for a list of ids. include::examples/invoice_submissions/post_preflight.adoc[]
|
103
|
+
# @param invoice_recipient_preflight The invoice recipient to preflight
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @return [Array<(PreflightInvoiceRecipientResult, Fixnum, Hash)>] PreflightInvoiceRecipientResult data, response status code and response headers
|
106
|
+
def preflight_with_http_info(invoice_recipient_preflight, opts = {})
|
107
|
+
if @api_client.config.debugging
|
108
|
+
@api_client.config.logger.debug "Calling API: InvoiceSubmissionsApi.preflight ..."
|
109
|
+
end
|
110
|
+
# verify the required parameter 'invoice_recipient_preflight' is set
|
111
|
+
fail ArgumentError, "Missing the required parameter 'invoice_recipient_preflight' when calling InvoiceSubmissionsApi.preflight" if invoice_recipient_preflight.nil?
|
112
|
+
# resource path
|
113
|
+
local_var_path = "/invoice_submissions/preflight".sub('{format}','json')
|
114
|
+
|
115
|
+
# query parameters
|
116
|
+
query_params = {}
|
117
|
+
|
118
|
+
# header parameters
|
119
|
+
header_params = {}
|
120
|
+
|
121
|
+
# HTTP header 'Accept' (if needed)
|
122
|
+
local_header_accept = ['application/json']
|
123
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
124
|
+
|
125
|
+
# HTTP header 'Content-Type'
|
126
|
+
local_header_content_type = ['application/json']
|
127
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
128
|
+
|
129
|
+
# form parameters
|
130
|
+
form_params = {}
|
131
|
+
|
132
|
+
# http body (model)
|
133
|
+
post_body = @api_client.object_to_http_body(invoice_recipient_preflight)
|
134
|
+
auth_names = ['Bearer']
|
135
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
136
|
+
:header_params => header_params,
|
137
|
+
:query_params => query_params,
|
138
|
+
:form_params => form_params,
|
139
|
+
:body => post_body,
|
140
|
+
:auth_names => auth_names,
|
141
|
+
:return_type => 'PreflightInvoiceRecipientResult')
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug "API called: InvoiceSubmissionsApi#preflight\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
|
+
end
|
145
|
+
return data, status_code, headers
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
@@ -0,0 +1,323 @@
|
|
1
|
+
=begin
|
2
|
+
#Storecove API
|
3
|
+
|
4
|
+
#Storecove API
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: apisupport@storecove.nl
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require "uri"
|
25
|
+
|
26
|
+
module StorecoveApi
|
27
|
+
class ShopAccountRequestsApi
|
28
|
+
attr_accessor :api_client
|
29
|
+
|
30
|
+
def initialize(api_client = ApiClient.default)
|
31
|
+
@api_client = api_client
|
32
|
+
end
|
33
|
+
|
34
|
+
# Get ShopAccountRequests
|
35
|
+
# Get all ShopAccountRequests
|
36
|
+
# @param external_user_id Filter by the external_user_id
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<ShopAccountRequest>]
|
39
|
+
def all(external_user_id, opts = {})
|
40
|
+
data, _status_code, _headers = all_with_http_info(external_user_id, opts)
|
41
|
+
return data
|
42
|
+
end
|
43
|
+
|
44
|
+
# Get ShopAccountRequests
|
45
|
+
# Get all ShopAccountRequests
|
46
|
+
# @param external_user_id Filter by the external_user_id
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @return [Array<(Array<ShopAccountRequest>, Fixnum, Hash)>] Array<ShopAccountRequest> data, response status code and response headers
|
49
|
+
def all_with_http_info(external_user_id, opts = {})
|
50
|
+
if @api_client.config.debugging
|
51
|
+
@api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.all ..."
|
52
|
+
end
|
53
|
+
# verify the required parameter 'external_user_id' is set
|
54
|
+
fail ArgumentError, "Missing the required parameter 'external_user_id' when calling ShopAccountRequestsApi.all" if external_user_id.nil?
|
55
|
+
# resource path
|
56
|
+
local_var_path = "/shop_account_requests".sub('{format}','json')
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = {}
|
60
|
+
query_params[:'external_user_id'] = external_user_id
|
61
|
+
|
62
|
+
# header parameters
|
63
|
+
header_params = {}
|
64
|
+
|
65
|
+
# HTTP header 'Accept' (if needed)
|
66
|
+
local_header_accept = ['application/json']
|
67
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
68
|
+
|
69
|
+
# HTTP header 'Content-Type'
|
70
|
+
local_header_content_type = ['application/json']
|
71
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
72
|
+
|
73
|
+
# form parameters
|
74
|
+
form_params = {}
|
75
|
+
|
76
|
+
# http body (model)
|
77
|
+
post_body = nil
|
78
|
+
auth_names = ['Bearer']
|
79
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
80
|
+
:header_params => header_params,
|
81
|
+
:query_params => query_params,
|
82
|
+
:form_params => form_params,
|
83
|
+
:body => post_body,
|
84
|
+
:auth_names => auth_names,
|
85
|
+
:return_type => 'Array<ShopAccountRequest>')
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: ShopAccountRequestsApi#all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
92
|
+
# Create ShopAccountRequest
|
93
|
+
# Create a new ShopAccountRequest
|
94
|
+
# @param shop_account_request ShopAccountRequest to add
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [ShopAccountRequest]
|
97
|
+
def create(shop_account_request, opts = {})
|
98
|
+
data, _status_code, _headers = create_with_http_info(shop_account_request, opts)
|
99
|
+
return data
|
100
|
+
end
|
101
|
+
|
102
|
+
# Create ShopAccountRequest
|
103
|
+
# Create a new ShopAccountRequest
|
104
|
+
# @param shop_account_request ShopAccountRequest to add
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<(ShopAccountRequest, Fixnum, Hash)>] ShopAccountRequest data, response status code and response headers
|
107
|
+
def create_with_http_info(shop_account_request, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.create ..."
|
110
|
+
end
|
111
|
+
# verify the required parameter 'shop_account_request' is set
|
112
|
+
fail ArgumentError, "Missing the required parameter 'shop_account_request' when calling ShopAccountRequestsApi.create" if shop_account_request.nil?
|
113
|
+
# resource path
|
114
|
+
local_var_path = "/shop_account_requests".sub('{format}','json')
|
115
|
+
|
116
|
+
# query parameters
|
117
|
+
query_params = {}
|
118
|
+
|
119
|
+
# header parameters
|
120
|
+
header_params = {}
|
121
|
+
|
122
|
+
# HTTP header 'Accept' (if needed)
|
123
|
+
local_header_accept = ['application/json']
|
124
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
125
|
+
|
126
|
+
# HTTP header 'Content-Type'
|
127
|
+
local_header_content_type = ['application/json']
|
128
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
129
|
+
|
130
|
+
# form parameters
|
131
|
+
form_params = {}
|
132
|
+
|
133
|
+
# http body (model)
|
134
|
+
post_body = @api_client.object_to_http_body(shop_account_request)
|
135
|
+
auth_names = ['Bearer']
|
136
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
137
|
+
:header_params => header_params,
|
138
|
+
:query_params => query_params,
|
139
|
+
:form_params => form_params,
|
140
|
+
:body => post_body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => 'ShopAccountRequest')
|
143
|
+
if @api_client.config.debugging
|
144
|
+
@api_client.config.logger.debug "API called: ShopAccountRequestsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
|
+
end
|
146
|
+
return data, status_code, headers
|
147
|
+
end
|
148
|
+
|
149
|
+
# Delete ShopAccountRequest
|
150
|
+
# Delete a specific ShopAccountRequest
|
151
|
+
# @param id shop_account_request id
|
152
|
+
# @param [Hash] opts the optional parameters
|
153
|
+
# @return [nil]
|
154
|
+
def destroy(id, opts = {})
|
155
|
+
destroy_with_http_info(id, opts)
|
156
|
+
return nil
|
157
|
+
end
|
158
|
+
|
159
|
+
# Delete ShopAccountRequest
|
160
|
+
# Delete a specific ShopAccountRequest
|
161
|
+
# @param id shop_account_request id
|
162
|
+
# @param [Hash] opts the optional parameters
|
163
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
164
|
+
def destroy_with_http_info(id, opts = {})
|
165
|
+
if @api_client.config.debugging
|
166
|
+
@api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.destroy ..."
|
167
|
+
end
|
168
|
+
# verify the required parameter 'id' is set
|
169
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountRequestsApi.destroy" if id.nil?
|
170
|
+
# resource path
|
171
|
+
local_var_path = "/shop_account_requests/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
172
|
+
|
173
|
+
# query parameters
|
174
|
+
query_params = {}
|
175
|
+
|
176
|
+
# header parameters
|
177
|
+
header_params = {}
|
178
|
+
|
179
|
+
# HTTP header 'Accept' (if needed)
|
180
|
+
local_header_accept = ['application/json']
|
181
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
182
|
+
|
183
|
+
# HTTP header 'Content-Type'
|
184
|
+
local_header_content_type = ['application/json']
|
185
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
186
|
+
|
187
|
+
# form parameters
|
188
|
+
form_params = {}
|
189
|
+
|
190
|
+
# http body (model)
|
191
|
+
post_body = nil
|
192
|
+
auth_names = ['Bearer']
|
193
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
194
|
+
:header_params => header_params,
|
195
|
+
:query_params => query_params,
|
196
|
+
:form_params => form_params,
|
197
|
+
:body => post_body,
|
198
|
+
:auth_names => auth_names)
|
199
|
+
if @api_client.config.debugging
|
200
|
+
@api_client.config.logger.debug "API called: ShopAccountRequestsApi#destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
201
|
+
end
|
202
|
+
return data, status_code, headers
|
203
|
+
end
|
204
|
+
|
205
|
+
# Show a specific ShopAccountRequest
|
206
|
+
# Show a specific ShopAccountRequest
|
207
|
+
# @param id shop_account_request id
|
208
|
+
# @param [Hash] opts the optional parameters
|
209
|
+
# @return [ShopAccountRequest]
|
210
|
+
def get(id, opts = {})
|
211
|
+
data, _status_code, _headers = get_with_http_info(id, opts)
|
212
|
+
return data
|
213
|
+
end
|
214
|
+
|
215
|
+
# Show a specific ShopAccountRequest
|
216
|
+
# Show a specific ShopAccountRequest
|
217
|
+
# @param id shop_account_request id
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @return [Array<(ShopAccountRequest, Fixnum, Hash)>] ShopAccountRequest data, response status code and response headers
|
220
|
+
def get_with_http_info(id, opts = {})
|
221
|
+
if @api_client.config.debugging
|
222
|
+
@api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.get ..."
|
223
|
+
end
|
224
|
+
# verify the required parameter 'id' is set
|
225
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountRequestsApi.get" if id.nil?
|
226
|
+
# resource path
|
227
|
+
local_var_path = "/shop_account_requests/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
228
|
+
|
229
|
+
# query parameters
|
230
|
+
query_params = {}
|
231
|
+
|
232
|
+
# header parameters
|
233
|
+
header_params = {}
|
234
|
+
|
235
|
+
# HTTP header 'Accept' (if needed)
|
236
|
+
local_header_accept = ['application/json']
|
237
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
238
|
+
|
239
|
+
# HTTP header 'Content-Type'
|
240
|
+
local_header_content_type = ['application/json']
|
241
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
242
|
+
|
243
|
+
# form parameters
|
244
|
+
form_params = {}
|
245
|
+
|
246
|
+
# http body (model)
|
247
|
+
post_body = nil
|
248
|
+
auth_names = ['Bearer']
|
249
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
250
|
+
:header_params => header_params,
|
251
|
+
:query_params => query_params,
|
252
|
+
:form_params => form_params,
|
253
|
+
:body => post_body,
|
254
|
+
:auth_names => auth_names,
|
255
|
+
:return_type => 'ShopAccountRequest')
|
256
|
+
if @api_client.config.debugging
|
257
|
+
@api_client.config.logger.debug "API called: ShopAccountRequestsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
258
|
+
end
|
259
|
+
return data, status_code, headers
|
260
|
+
end
|
261
|
+
|
262
|
+
# Update ShopAccountRequest
|
263
|
+
# Update a specific ShopAccountRequest
|
264
|
+
# @param id shop_account_request id
|
265
|
+
# @param shop_account_request ShopAccountRequest updates
|
266
|
+
# @param [Hash] opts the optional parameters
|
267
|
+
# @return [ShopAccountRequest]
|
268
|
+
def update(id, shop_account_request, opts = {})
|
269
|
+
data, _status_code, _headers = update_with_http_info(id, shop_account_request, opts)
|
270
|
+
return data
|
271
|
+
end
|
272
|
+
|
273
|
+
# Update ShopAccountRequest
|
274
|
+
# Update a specific ShopAccountRequest
|
275
|
+
# @param id shop_account_request id
|
276
|
+
# @param shop_account_request ShopAccountRequest updates
|
277
|
+
# @param [Hash] opts the optional parameters
|
278
|
+
# @return [Array<(ShopAccountRequest, Fixnum, Hash)>] ShopAccountRequest data, response status code and response headers
|
279
|
+
def update_with_http_info(id, shop_account_request, opts = {})
|
280
|
+
if @api_client.config.debugging
|
281
|
+
@api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.update ..."
|
282
|
+
end
|
283
|
+
# verify the required parameter 'id' is set
|
284
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ShopAccountRequestsApi.update" if id.nil?
|
285
|
+
# verify the required parameter 'shop_account_request' is set
|
286
|
+
fail ArgumentError, "Missing the required parameter 'shop_account_request' when calling ShopAccountRequestsApi.update" if shop_account_request.nil?
|
287
|
+
# resource path
|
288
|
+
local_var_path = "/shop_account_requests/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
|
289
|
+
|
290
|
+
# query parameters
|
291
|
+
query_params = {}
|
292
|
+
|
293
|
+
# header parameters
|
294
|
+
header_params = {}
|
295
|
+
|
296
|
+
# HTTP header 'Accept' (if needed)
|
297
|
+
local_header_accept = ['application/json']
|
298
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
299
|
+
|
300
|
+
# HTTP header 'Content-Type'
|
301
|
+
local_header_content_type = ['application/json']
|
302
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
303
|
+
|
304
|
+
# form parameters
|
305
|
+
form_params = {}
|
306
|
+
|
307
|
+
# http body (model)
|
308
|
+
post_body = @api_client.object_to_http_body(shop_account_request)
|
309
|
+
auth_names = ['Bearer']
|
310
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
311
|
+
:header_params => header_params,
|
312
|
+
:query_params => query_params,
|
313
|
+
:form_params => form_params,
|
314
|
+
:body => post_body,
|
315
|
+
:auth_names => auth_names,
|
316
|
+
:return_type => 'ShopAccountRequest')
|
317
|
+
if @api_client.config.debugging
|
318
|
+
@api_client.config.logger.debug "API called: ShopAccountRequestsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
319
|
+
end
|
320
|
+
return data, status_code, headers
|
321
|
+
end
|
322
|
+
end
|
323
|
+
end
|