storecove 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/storecove/api/invoice_submissions_api.rb +16 -16
- data/lib/storecove/api/shop_account_requests_api.rb +74 -74
- data/lib/storecove/api/shop_accounts_api.rb +100 -100
- data/lib/storecove/api/shops_api.rb +9 -9
- data/lib/storecove/models/invoice.rb +26 -43
- data/lib/storecove/models/invoice_line.rb +6 -6
- data/lib/storecove/models/invoice_recipient.rb +5 -16
- data/lib/storecove/models/invoice_recipient_preflight.rb +0 -10
- data/lib/storecove/models/invoice_submission_result.rb +8 -8
- data/lib/storecove/models/legal_entity.rb +1 -10
- data/lib/storecove/models/public_identifier.rb +1 -1
- data/lib/storecove/models/{shop_account_result.rb → shop_account.rb} +6 -9
- data/lib/storecove/models/shop_account_input.rb +0 -25
- data/lib/storecove/models/shop_account_update.rb +0 -3
- data/lib/storecove/version.rb +1 -1
- data/lib/storecove.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36fc9f5802137905431d6435bd31e016215a0d0d
|
4
|
+
data.tar.gz: d7c4151d65d2727e14bd105ac354fcc342ab10a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
28
|
-
data, _status_code, _headers =
|
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
|
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.
|
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.
|
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#
|
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
|
81
|
-
data, _status_code, _headers =
|
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
|
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.
|
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.
|
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#
|
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
|
-
#
|
23
|
-
#
|
24
|
-
# @param
|
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 [
|
27
|
-
def
|
28
|
-
data, _status_code, _headers =
|
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
|
-
#
|
33
|
-
#
|
34
|
-
# @param
|
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<(
|
37
|
-
def
|
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.
|
39
|
+
@api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.create_shop_account_request ..."
|
40
40
|
end
|
41
|
-
# verify the required parameter '
|
42
|
-
fail ArgumentError, "Missing the required parameter '
|
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 =
|
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(:
|
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 => '
|
68
|
+
:return_type => 'ShopAccountRequest')
|
70
69
|
if @api_client.config.debugging
|
71
|
-
@api_client.config.logger.debug "API called: ShopAccountRequestsApi#
|
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
|
-
#
|
77
|
-
#
|
78
|
-
# @param shop_account_request
|
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 [
|
81
|
-
def
|
82
|
-
|
83
|
-
return
|
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
|
-
#
|
87
|
-
#
|
88
|
-
# @param shop_account_request
|
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<(
|
91
|
-
def
|
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.
|
92
|
+
@api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.delete_shop_account_request ..."
|
94
93
|
end
|
95
|
-
# verify the required parameter '
|
96
|
-
fail ArgumentError, "Missing the required parameter '
|
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 =
|
113
|
+
post_body = nil
|
115
114
|
auth_names = ['Bearer']
|
116
|
-
data, status_code, headers = @api_client.call_api(:
|
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#
|
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
|
-
#
|
130
|
-
#
|
131
|
-
# @param
|
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 [
|
134
|
-
def
|
135
|
-
|
136
|
-
return
|
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
|
-
#
|
140
|
-
#
|
141
|
-
# @param
|
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<(
|
144
|
-
def
|
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.
|
144
|
+
@api_client.config.logger.debug "Calling API: ShopAccountRequestsApi.shop_account_request_index ..."
|
147
145
|
end
|
148
|
-
# verify the required parameter '
|
149
|
-
fail ArgumentError, "Missing the required parameter '
|
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
|
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(:
|
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#
|
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
|
187
|
-
data, _status_code, _headers =
|
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
|
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.
|
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.
|
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#
|
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
|
241
|
-
data, _status_code, _headers =
|
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
|
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.
|
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.
|
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.
|
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#
|
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
|