growwer 1.0.1 → 1.0.2
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 +4 -4
- data/README.md +26 -26
- data/docs/AccountApi.md +0 -72
- data/docs/{OrdersApi.md → BuyerOrdersApi.md} +45 -45
- data/docs/{BuyerMoneyApi.md → BuyerWalletApi.md} +21 -21
- data/docs/CatalogueApi.md +2 -2
- data/docs/Error.md +2 -2
- data/docs/FilesApi.md +1 -1
- data/docs/GetMe200ResponseCatalogue.md +6 -2
- data/docs/SellerAccountApi.md +79 -0
- data/docs/{SellerMoneyApi.md → SellerWalletApi.md} +21 -21
- data/lib/growwer/api/account_api.rb +0 -79
- data/lib/growwer/api/{orders_api.rb → buyer_orders_api.rb} +62 -62
- data/lib/growwer/api/{buyer_money_api.rb → buyer_wallet_api.rb} +24 -24
- data/lib/growwer/api/catalogue_api.rb +4 -4
- data/lib/growwer/api/files_api.rb +2 -2
- data/lib/growwer/api/seller_account_api.rb +101 -0
- data/lib/growwer/api/{seller_money_api.rb → seller_wallet_api.rb} +24 -24
- data/lib/growwer/api_client.rb +1 -1
- data/lib/growwer/models/error.rb +1 -1
- data/lib/growwer/models/get_me200_response_catalogue.rb +69 -5
- data/lib/growwer/version.rb +1 -1
- data/lib/growwer.rb +4 -3
- data/spec/api/account_api_spec.rb +1 -14
- data/spec/api/{orders_api_spec.rb → buyer_orders_api_spec.rb} +13 -13
- data/spec/api/{buyer_money_api_spec.rb → buyer_wallet_api_spec.rb} +7 -7
- data/spec/api/seller_account_api_spec.rb +48 -0
- data/spec/api/{seller_money_api_spec.rb → seller_wallet_api_spec.rb} +7 -7
- metadata +17 -13
|
@@ -13,7 +13,7 @@ Generator version: 7.24.0
|
|
|
13
13
|
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module Growwer
|
|
16
|
-
class
|
|
16
|
+
class BuyerOrdersApi
|
|
17
17
|
attr_accessor :api_client
|
|
18
18
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
@@ -38,18 +38,18 @@ module Growwer
|
|
|
38
38
|
# @return [Array<(Order, Integer, Hash)>] Order data, response status code and response headers
|
|
39
39
|
def approve_order_with_http_info(id, idempotency_key, opts = {})
|
|
40
40
|
if @api_client.config.debugging
|
|
41
|
-
@api_client.config.logger.debug 'Calling API:
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: BuyerOrdersApi.approve_order ...'
|
|
42
42
|
end
|
|
43
43
|
# verify the required parameter 'id' is set
|
|
44
44
|
if @api_client.config.client_side_validation && id.nil?
|
|
45
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BuyerOrdersApi.approve_order"
|
|
46
46
|
end
|
|
47
47
|
# verify the required parameter 'idempotency_key' is set
|
|
48
48
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
49
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling BuyerOrdersApi.approve_order"
|
|
50
50
|
end
|
|
51
51
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 255
|
|
52
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling
|
|
52
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling BuyerOrdersApi.approve_order, the character length must be smaller than or equal to 255.'
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
# resource path
|
|
@@ -77,7 +77,7 @@ module Growwer
|
|
|
77
77
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
78
78
|
|
|
79
79
|
new_options = opts.merge(
|
|
80
|
-
:operation => :"
|
|
80
|
+
:operation => :"BuyerOrdersApi.approve_order",
|
|
81
81
|
:header_params => header_params,
|
|
82
82
|
:query_params => query_params,
|
|
83
83
|
:form_params => form_params,
|
|
@@ -88,7 +88,7 @@ module Growwer
|
|
|
88
88
|
|
|
89
89
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
90
90
|
if @api_client.config.debugging
|
|
91
|
-
@api_client.config.logger.debug "API called:
|
|
91
|
+
@api_client.config.logger.debug "API called: BuyerOrdersApi#approve_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
92
92
|
end
|
|
93
93
|
return data, status_code, headers
|
|
94
94
|
end
|
|
@@ -112,18 +112,18 @@ module Growwer
|
|
|
112
112
|
# @return [Array<(Order, Integer, Hash)>] Order data, response status code and response headers
|
|
113
113
|
def approve_order_draft_with_http_info(id, idempotency_key, opts = {})
|
|
114
114
|
if @api_client.config.debugging
|
|
115
|
-
@api_client.config.logger.debug 'Calling API:
|
|
115
|
+
@api_client.config.logger.debug 'Calling API: BuyerOrdersApi.approve_order_draft ...'
|
|
116
116
|
end
|
|
117
117
|
# verify the required parameter 'id' is set
|
|
118
118
|
if @api_client.config.client_side_validation && id.nil?
|
|
119
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
|
119
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BuyerOrdersApi.approve_order_draft"
|
|
120
120
|
end
|
|
121
121
|
# verify the required parameter 'idempotency_key' is set
|
|
122
122
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
123
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling
|
|
123
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling BuyerOrdersApi.approve_order_draft"
|
|
124
124
|
end
|
|
125
125
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 255
|
|
126
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling
|
|
126
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling BuyerOrdersApi.approve_order_draft, the character length must be smaller than or equal to 255.'
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
# resource path
|
|
@@ -151,7 +151,7 @@ module Growwer
|
|
|
151
151
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
152
152
|
|
|
153
153
|
new_options = opts.merge(
|
|
154
|
-
:operation => :"
|
|
154
|
+
:operation => :"BuyerOrdersApi.approve_order_draft",
|
|
155
155
|
:header_params => header_params,
|
|
156
156
|
:query_params => query_params,
|
|
157
157
|
:form_params => form_params,
|
|
@@ -162,7 +162,7 @@ module Growwer
|
|
|
162
162
|
|
|
163
163
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
164
164
|
if @api_client.config.debugging
|
|
165
|
-
@api_client.config.logger.debug "API called:
|
|
165
|
+
@api_client.config.logger.debug "API called: BuyerOrdersApi#approve_order_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
166
166
|
end
|
|
167
167
|
return data, status_code, headers
|
|
168
168
|
end
|
|
@@ -188,23 +188,23 @@ module Growwer
|
|
|
188
188
|
# @return [Array<(Order, Integer, Hash)>] Order data, response status code and response headers
|
|
189
189
|
def cancel_order_with_http_info(id, idempotency_key, order_action_reason, opts = {})
|
|
190
190
|
if @api_client.config.debugging
|
|
191
|
-
@api_client.config.logger.debug 'Calling API:
|
|
191
|
+
@api_client.config.logger.debug 'Calling API: BuyerOrdersApi.cancel_order ...'
|
|
192
192
|
end
|
|
193
193
|
# verify the required parameter 'id' is set
|
|
194
194
|
if @api_client.config.client_side_validation && id.nil?
|
|
195
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
|
195
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BuyerOrdersApi.cancel_order"
|
|
196
196
|
end
|
|
197
197
|
# verify the required parameter 'idempotency_key' is set
|
|
198
198
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
199
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling
|
|
199
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling BuyerOrdersApi.cancel_order"
|
|
200
200
|
end
|
|
201
201
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 255
|
|
202
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling
|
|
202
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling BuyerOrdersApi.cancel_order, the character length must be smaller than or equal to 255.'
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
# verify the required parameter 'order_action_reason' is set
|
|
206
206
|
if @api_client.config.client_side_validation && order_action_reason.nil?
|
|
207
|
-
fail ArgumentError, "Missing the required parameter 'order_action_reason' when calling
|
|
207
|
+
fail ArgumentError, "Missing the required parameter 'order_action_reason' when calling BuyerOrdersApi.cancel_order"
|
|
208
208
|
end
|
|
209
209
|
# resource path
|
|
210
210
|
local_var_path = '/api/v1/orders/{id}/cancel'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -236,7 +236,7 @@ module Growwer
|
|
|
236
236
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
237
237
|
|
|
238
238
|
new_options = opts.merge(
|
|
239
|
-
:operation => :"
|
|
239
|
+
:operation => :"BuyerOrdersApi.cancel_order",
|
|
240
240
|
:header_params => header_params,
|
|
241
241
|
:query_params => query_params,
|
|
242
242
|
:form_params => form_params,
|
|
@@ -247,7 +247,7 @@ module Growwer
|
|
|
247
247
|
|
|
248
248
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
249
249
|
if @api_client.config.debugging
|
|
250
|
-
@api_client.config.logger.debug "API called:
|
|
250
|
+
@api_client.config.logger.debug "API called: BuyerOrdersApi#cancel_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
251
251
|
end
|
|
252
252
|
return data, status_code, headers
|
|
253
253
|
end
|
|
@@ -271,19 +271,19 @@ module Growwer
|
|
|
271
271
|
# @return [Array<(Order, Integer, Hash)>] Order data, response status code and response headers
|
|
272
272
|
def create_order_with_http_info(idempotency_key, order_create_request, opts = {})
|
|
273
273
|
if @api_client.config.debugging
|
|
274
|
-
@api_client.config.logger.debug 'Calling API:
|
|
274
|
+
@api_client.config.logger.debug 'Calling API: BuyerOrdersApi.create_order ...'
|
|
275
275
|
end
|
|
276
276
|
# verify the required parameter 'idempotency_key' is set
|
|
277
277
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
278
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling
|
|
278
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling BuyerOrdersApi.create_order"
|
|
279
279
|
end
|
|
280
280
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 255
|
|
281
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling
|
|
281
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling BuyerOrdersApi.create_order, the character length must be smaller than or equal to 255.'
|
|
282
282
|
end
|
|
283
283
|
|
|
284
284
|
# verify the required parameter 'order_create_request' is set
|
|
285
285
|
if @api_client.config.client_side_validation && order_create_request.nil?
|
|
286
|
-
fail ArgumentError, "Missing the required parameter 'order_create_request' when calling
|
|
286
|
+
fail ArgumentError, "Missing the required parameter 'order_create_request' when calling BuyerOrdersApi.create_order"
|
|
287
287
|
end
|
|
288
288
|
# resource path
|
|
289
289
|
local_var_path = '/api/v1/orders'
|
|
@@ -315,7 +315,7 @@ module Growwer
|
|
|
315
315
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
316
316
|
|
|
317
317
|
new_options = opts.merge(
|
|
318
|
-
:operation => :"
|
|
318
|
+
:operation => :"BuyerOrdersApi.create_order",
|
|
319
319
|
:header_params => header_params,
|
|
320
320
|
:query_params => query_params,
|
|
321
321
|
:form_params => form_params,
|
|
@@ -326,7 +326,7 @@ module Growwer
|
|
|
326
326
|
|
|
327
327
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
328
328
|
if @api_client.config.debugging
|
|
329
|
-
@api_client.config.logger.debug "API called:
|
|
329
|
+
@api_client.config.logger.debug "API called: BuyerOrdersApi#create_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
330
330
|
end
|
|
331
331
|
return data, status_code, headers
|
|
332
332
|
end
|
|
@@ -348,11 +348,11 @@ module Growwer
|
|
|
348
348
|
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
349
349
|
def download_order_briefing_with_http_info(id, opts = {})
|
|
350
350
|
if @api_client.config.debugging
|
|
351
|
-
@api_client.config.logger.debug 'Calling API:
|
|
351
|
+
@api_client.config.logger.debug 'Calling API: BuyerOrdersApi.download_order_briefing ...'
|
|
352
352
|
end
|
|
353
353
|
# verify the required parameter 'id' is set
|
|
354
354
|
if @api_client.config.client_side_validation && id.nil?
|
|
355
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
|
355
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BuyerOrdersApi.download_order_briefing"
|
|
356
356
|
end
|
|
357
357
|
# resource path
|
|
358
358
|
local_var_path = '/api/v1/orders/{id}/briefing'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -378,7 +378,7 @@ module Growwer
|
|
|
378
378
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
379
379
|
|
|
380
380
|
new_options = opts.merge(
|
|
381
|
-
:operation => :"
|
|
381
|
+
:operation => :"BuyerOrdersApi.download_order_briefing",
|
|
382
382
|
:header_params => header_params,
|
|
383
383
|
:query_params => query_params,
|
|
384
384
|
:form_params => form_params,
|
|
@@ -389,7 +389,7 @@ module Growwer
|
|
|
389
389
|
|
|
390
390
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
391
391
|
if @api_client.config.debugging
|
|
392
|
-
@api_client.config.logger.debug "API called:
|
|
392
|
+
@api_client.config.logger.debug "API called: BuyerOrdersApi#download_order_briefing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
393
393
|
end
|
|
394
394
|
return data, status_code, headers
|
|
395
395
|
end
|
|
@@ -411,11 +411,11 @@ module Growwer
|
|
|
411
411
|
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
412
412
|
def download_order_draft_with_http_info(id, opts = {})
|
|
413
413
|
if @api_client.config.debugging
|
|
414
|
-
@api_client.config.logger.debug 'Calling API:
|
|
414
|
+
@api_client.config.logger.debug 'Calling API: BuyerOrdersApi.download_order_draft ...'
|
|
415
415
|
end
|
|
416
416
|
# verify the required parameter 'id' is set
|
|
417
417
|
if @api_client.config.client_side_validation && id.nil?
|
|
418
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
|
418
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BuyerOrdersApi.download_order_draft"
|
|
419
419
|
end
|
|
420
420
|
# resource path
|
|
421
421
|
local_var_path = '/api/v1/orders/{id}/draft'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -441,7 +441,7 @@ module Growwer
|
|
|
441
441
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
442
442
|
|
|
443
443
|
new_options = opts.merge(
|
|
444
|
-
:operation => :"
|
|
444
|
+
:operation => :"BuyerOrdersApi.download_order_draft",
|
|
445
445
|
:header_params => header_params,
|
|
446
446
|
:query_params => query_params,
|
|
447
447
|
:form_params => form_params,
|
|
@@ -452,7 +452,7 @@ module Growwer
|
|
|
452
452
|
|
|
453
453
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
454
454
|
if @api_client.config.debugging
|
|
455
|
-
@api_client.config.logger.debug "API called:
|
|
455
|
+
@api_client.config.logger.debug "API called: BuyerOrdersApi#download_order_draft\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
456
456
|
end
|
|
457
457
|
return data, status_code, headers
|
|
458
458
|
end
|
|
@@ -474,11 +474,11 @@ module Growwer
|
|
|
474
474
|
# @return [Array<(OrderEstimate, Integer, Hash)>] OrderEstimate data, response status code and response headers
|
|
475
475
|
def estimate_order_with_http_info(order_estimate_request, opts = {})
|
|
476
476
|
if @api_client.config.debugging
|
|
477
|
-
@api_client.config.logger.debug 'Calling API:
|
|
477
|
+
@api_client.config.logger.debug 'Calling API: BuyerOrdersApi.estimate_order ...'
|
|
478
478
|
end
|
|
479
479
|
# verify the required parameter 'order_estimate_request' is set
|
|
480
480
|
if @api_client.config.client_side_validation && order_estimate_request.nil?
|
|
481
|
-
fail ArgumentError, "Missing the required parameter 'order_estimate_request' when calling
|
|
481
|
+
fail ArgumentError, "Missing the required parameter 'order_estimate_request' when calling BuyerOrdersApi.estimate_order"
|
|
482
482
|
end
|
|
483
483
|
# resource path
|
|
484
484
|
local_var_path = '/api/v1/orders/estimate'
|
|
@@ -509,7 +509,7 @@ module Growwer
|
|
|
509
509
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
510
510
|
|
|
511
511
|
new_options = opts.merge(
|
|
512
|
-
:operation => :"
|
|
512
|
+
:operation => :"BuyerOrdersApi.estimate_order",
|
|
513
513
|
:header_params => header_params,
|
|
514
514
|
:query_params => query_params,
|
|
515
515
|
:form_params => form_params,
|
|
@@ -520,7 +520,7 @@ module Growwer
|
|
|
520
520
|
|
|
521
521
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
522
522
|
if @api_client.config.debugging
|
|
523
|
-
@api_client.config.logger.debug "API called:
|
|
523
|
+
@api_client.config.logger.debug "API called: BuyerOrdersApi#estimate_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
524
524
|
end
|
|
525
525
|
return data, status_code, headers
|
|
526
526
|
end
|
|
@@ -542,11 +542,11 @@ module Growwer
|
|
|
542
542
|
# @return [Array<(Order, Integer, Hash)>] Order data, response status code and response headers
|
|
543
543
|
def get_order_with_http_info(id, opts = {})
|
|
544
544
|
if @api_client.config.debugging
|
|
545
|
-
@api_client.config.logger.debug 'Calling API:
|
|
545
|
+
@api_client.config.logger.debug 'Calling API: BuyerOrdersApi.get_order ...'
|
|
546
546
|
end
|
|
547
547
|
# verify the required parameter 'id' is set
|
|
548
548
|
if @api_client.config.client_side_validation && id.nil?
|
|
549
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
|
549
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BuyerOrdersApi.get_order"
|
|
550
550
|
end
|
|
551
551
|
# resource path
|
|
552
552
|
local_var_path = '/api/v1/orders/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -572,7 +572,7 @@ module Growwer
|
|
|
572
572
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
573
573
|
|
|
574
574
|
new_options = opts.merge(
|
|
575
|
-
:operation => :"
|
|
575
|
+
:operation => :"BuyerOrdersApi.get_order",
|
|
576
576
|
:header_params => header_params,
|
|
577
577
|
:query_params => query_params,
|
|
578
578
|
:form_params => form_params,
|
|
@@ -583,7 +583,7 @@ module Growwer
|
|
|
583
583
|
|
|
584
584
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
585
585
|
if @api_client.config.debugging
|
|
586
|
-
@api_client.config.logger.debug "API called:
|
|
586
|
+
@api_client.config.logger.debug "API called: BuyerOrdersApi#get_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
587
587
|
end
|
|
588
588
|
return data, status_code, headers
|
|
589
589
|
end
|
|
@@ -617,22 +617,22 @@ module Growwer
|
|
|
617
617
|
# @return [Array<(ListOrders200Response, Integer, Hash)>] ListOrders200Response data, response status code and response headers
|
|
618
618
|
def list_orders_with_http_info(opts = {})
|
|
619
619
|
if @api_client.config.debugging
|
|
620
|
-
@api_client.config.logger.debug 'Calling API:
|
|
620
|
+
@api_client.config.logger.debug 'Calling API: BuyerOrdersApi.list_orders ...'
|
|
621
621
|
end
|
|
622
622
|
allowable_values = ["-createdAt", "updatedAt"]
|
|
623
623
|
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
|
624
624
|
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
|
625
625
|
end
|
|
626
626
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
627
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling
|
|
627
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BuyerOrdersApi.list_orders, must be smaller than or equal to 100.'
|
|
628
628
|
end
|
|
629
629
|
|
|
630
630
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
631
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling
|
|
631
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BuyerOrdersApi.list_orders, must be greater than or equal to 1.'
|
|
632
632
|
end
|
|
633
633
|
|
|
634
634
|
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
|
635
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling
|
|
635
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling BuyerOrdersApi.list_orders, must be greater than or equal to 0.'
|
|
636
636
|
end
|
|
637
637
|
|
|
638
638
|
# resource path
|
|
@@ -666,7 +666,7 @@ module Growwer
|
|
|
666
666
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
667
667
|
|
|
668
668
|
new_options = opts.merge(
|
|
669
|
-
:operation => :"
|
|
669
|
+
:operation => :"BuyerOrdersApi.list_orders",
|
|
670
670
|
:header_params => header_params,
|
|
671
671
|
:query_params => query_params,
|
|
672
672
|
:form_params => form_params,
|
|
@@ -677,7 +677,7 @@ module Growwer
|
|
|
677
677
|
|
|
678
678
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
679
679
|
if @api_client.config.debugging
|
|
680
|
-
@api_client.config.logger.debug "API called:
|
|
680
|
+
@api_client.config.logger.debug "API called: BuyerOrdersApi#list_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
681
681
|
end
|
|
682
682
|
return data, status_code, headers
|
|
683
683
|
end
|
|
@@ -703,23 +703,23 @@ module Growwer
|
|
|
703
703
|
# @return [Array<(Order, Integer, Hash)>] Order data, response status code and response headers
|
|
704
704
|
def request_order_draft_update_with_http_info(id, idempotency_key, order_action_reason, opts = {})
|
|
705
705
|
if @api_client.config.debugging
|
|
706
|
-
@api_client.config.logger.debug 'Calling API:
|
|
706
|
+
@api_client.config.logger.debug 'Calling API: BuyerOrdersApi.request_order_draft_update ...'
|
|
707
707
|
end
|
|
708
708
|
# verify the required parameter 'id' is set
|
|
709
709
|
if @api_client.config.client_side_validation && id.nil?
|
|
710
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
|
710
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BuyerOrdersApi.request_order_draft_update"
|
|
711
711
|
end
|
|
712
712
|
# verify the required parameter 'idempotency_key' is set
|
|
713
713
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
714
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling
|
|
714
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling BuyerOrdersApi.request_order_draft_update"
|
|
715
715
|
end
|
|
716
716
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 255
|
|
717
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling
|
|
717
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling BuyerOrdersApi.request_order_draft_update, the character length must be smaller than or equal to 255.'
|
|
718
718
|
end
|
|
719
719
|
|
|
720
720
|
# verify the required parameter 'order_action_reason' is set
|
|
721
721
|
if @api_client.config.client_side_validation && order_action_reason.nil?
|
|
722
|
-
fail ArgumentError, "Missing the required parameter 'order_action_reason' when calling
|
|
722
|
+
fail ArgumentError, "Missing the required parameter 'order_action_reason' when calling BuyerOrdersApi.request_order_draft_update"
|
|
723
723
|
end
|
|
724
724
|
# resource path
|
|
725
725
|
local_var_path = '/api/v1/orders/{id}/request-draft-update'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -751,7 +751,7 @@ module Growwer
|
|
|
751
751
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
752
752
|
|
|
753
753
|
new_options = opts.merge(
|
|
754
|
-
:operation => :"
|
|
754
|
+
:operation => :"BuyerOrdersApi.request_order_draft_update",
|
|
755
755
|
:header_params => header_params,
|
|
756
756
|
:query_params => query_params,
|
|
757
757
|
:form_params => form_params,
|
|
@@ -762,7 +762,7 @@ module Growwer
|
|
|
762
762
|
|
|
763
763
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
764
764
|
if @api_client.config.debugging
|
|
765
|
-
@api_client.config.logger.debug "API called:
|
|
765
|
+
@api_client.config.logger.debug "API called: BuyerOrdersApi#request_order_draft_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
766
766
|
end
|
|
767
767
|
return data, status_code, headers
|
|
768
768
|
end
|
|
@@ -788,23 +788,23 @@ module Growwer
|
|
|
788
788
|
# @return [Array<(Order, Integer, Hash)>] Order data, response status code and response headers
|
|
789
789
|
def request_order_update_with_http_info(id, idempotency_key, order_action_reason, opts = {})
|
|
790
790
|
if @api_client.config.debugging
|
|
791
|
-
@api_client.config.logger.debug 'Calling API:
|
|
791
|
+
@api_client.config.logger.debug 'Calling API: BuyerOrdersApi.request_order_update ...'
|
|
792
792
|
end
|
|
793
793
|
# verify the required parameter 'id' is set
|
|
794
794
|
if @api_client.config.client_side_validation && id.nil?
|
|
795
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
|
795
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BuyerOrdersApi.request_order_update"
|
|
796
796
|
end
|
|
797
797
|
# verify the required parameter 'idempotency_key' is set
|
|
798
798
|
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
799
|
-
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling
|
|
799
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling BuyerOrdersApi.request_order_update"
|
|
800
800
|
end
|
|
801
801
|
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 255
|
|
802
|
-
fail ArgumentError, 'invalid value for "idempotency_key" when calling
|
|
802
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling BuyerOrdersApi.request_order_update, the character length must be smaller than or equal to 255.'
|
|
803
803
|
end
|
|
804
804
|
|
|
805
805
|
# verify the required parameter 'order_action_reason' is set
|
|
806
806
|
if @api_client.config.client_side_validation && order_action_reason.nil?
|
|
807
|
-
fail ArgumentError, "Missing the required parameter 'order_action_reason' when calling
|
|
807
|
+
fail ArgumentError, "Missing the required parameter 'order_action_reason' when calling BuyerOrdersApi.request_order_update"
|
|
808
808
|
end
|
|
809
809
|
# resource path
|
|
810
810
|
local_var_path = '/api/v1/orders/{id}/request-update'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -836,7 +836,7 @@ module Growwer
|
|
|
836
836
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
837
837
|
|
|
838
838
|
new_options = opts.merge(
|
|
839
|
-
:operation => :"
|
|
839
|
+
:operation => :"BuyerOrdersApi.request_order_update",
|
|
840
840
|
:header_params => header_params,
|
|
841
841
|
:query_params => query_params,
|
|
842
842
|
:form_params => form_params,
|
|
@@ -847,7 +847,7 @@ module Growwer
|
|
|
847
847
|
|
|
848
848
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
849
849
|
if @api_client.config.debugging
|
|
850
|
-
@api_client.config.logger.debug "API called:
|
|
850
|
+
@api_client.config.logger.debug "API called: BuyerOrdersApi#request_order_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
851
851
|
end
|
|
852
852
|
return data, status_code, headers
|
|
853
853
|
end
|
|
@@ -13,7 +13,7 @@ Generator version: 7.24.0
|
|
|
13
13
|
require 'cgi'
|
|
14
14
|
|
|
15
15
|
module Growwer
|
|
16
|
-
class
|
|
16
|
+
class BuyerWalletApi
|
|
17
17
|
attr_accessor :api_client
|
|
18
18
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
@@ -36,11 +36,11 @@ module Growwer
|
|
|
36
36
|
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
37
37
|
def download_buyer_transaction_document_with_http_info(id, opts = {})
|
|
38
38
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: BuyerWalletApi.download_buyer_transaction_document ...'
|
|
40
40
|
end
|
|
41
41
|
# verify the required parameter 'id' is set
|
|
42
42
|
if @api_client.config.client_side_validation && id.nil?
|
|
43
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BuyerWalletApi.download_buyer_transaction_document"
|
|
44
44
|
end
|
|
45
45
|
# resource path
|
|
46
46
|
local_var_path = '/api/v1/wallets/buyer/transactions/{id}/document'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -66,7 +66,7 @@ module Growwer
|
|
|
66
66
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
67
67
|
|
|
68
68
|
new_options = opts.merge(
|
|
69
|
-
:operation => :"
|
|
69
|
+
:operation => :"BuyerWalletApi.download_buyer_transaction_document",
|
|
70
70
|
:header_params => header_params,
|
|
71
71
|
:query_params => query_params,
|
|
72
72
|
:form_params => form_params,
|
|
@@ -77,7 +77,7 @@ module Growwer
|
|
|
77
77
|
|
|
78
78
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
79
79
|
if @api_client.config.debugging
|
|
80
|
-
@api_client.config.logger.debug "API called:
|
|
80
|
+
@api_client.config.logger.debug "API called: BuyerWalletApi#download_buyer_transaction_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
81
81
|
end
|
|
82
82
|
return data, status_code, headers
|
|
83
83
|
end
|
|
@@ -97,7 +97,7 @@ module Growwer
|
|
|
97
97
|
# @return [Array<(GetBuyerWallet200Response, Integer, Hash)>] GetBuyerWallet200Response data, response status code and response headers
|
|
98
98
|
def get_buyer_wallet_with_http_info(opts = {})
|
|
99
99
|
if @api_client.config.debugging
|
|
100
|
-
@api_client.config.logger.debug 'Calling API:
|
|
100
|
+
@api_client.config.logger.debug 'Calling API: BuyerWalletApi.get_buyer_wallet ...'
|
|
101
101
|
end
|
|
102
102
|
# resource path
|
|
103
103
|
local_var_path = '/api/v1/wallets/buyer'
|
|
@@ -123,7 +123,7 @@ module Growwer
|
|
|
123
123
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
124
124
|
|
|
125
125
|
new_options = opts.merge(
|
|
126
|
-
:operation => :"
|
|
126
|
+
:operation => :"BuyerWalletApi.get_buyer_wallet",
|
|
127
127
|
:header_params => header_params,
|
|
128
128
|
:query_params => query_params,
|
|
129
129
|
:form_params => form_params,
|
|
@@ -134,7 +134,7 @@ module Growwer
|
|
|
134
134
|
|
|
135
135
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
136
136
|
if @api_client.config.debugging
|
|
137
|
-
@api_client.config.logger.debug "API called:
|
|
137
|
+
@api_client.config.logger.debug "API called: BuyerWalletApi#get_buyer_wallet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
138
138
|
end
|
|
139
139
|
return data, status_code, headers
|
|
140
140
|
end
|
|
@@ -156,11 +156,11 @@ module Growwer
|
|
|
156
156
|
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
157
157
|
def get_invoice_pdf_with_http_info(id, opts = {})
|
|
158
158
|
if @api_client.config.debugging
|
|
159
|
-
@api_client.config.logger.debug 'Calling API:
|
|
159
|
+
@api_client.config.logger.debug 'Calling API: BuyerWalletApi.get_invoice_pdf ...'
|
|
160
160
|
end
|
|
161
161
|
# verify the required parameter 'id' is set
|
|
162
162
|
if @api_client.config.client_side_validation && id.nil?
|
|
163
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling
|
|
163
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling BuyerWalletApi.get_invoice_pdf"
|
|
164
164
|
end
|
|
165
165
|
# resource path
|
|
166
166
|
local_var_path = '/api/v1/invoices/{id}/pdf'.sub('{id}', CGI.escape(id.to_s))
|
|
@@ -186,7 +186,7 @@ module Growwer
|
|
|
186
186
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
187
187
|
|
|
188
188
|
new_options = opts.merge(
|
|
189
|
-
:operation => :"
|
|
189
|
+
:operation => :"BuyerWalletApi.get_invoice_pdf",
|
|
190
190
|
:header_params => header_params,
|
|
191
191
|
:query_params => query_params,
|
|
192
192
|
:form_params => form_params,
|
|
@@ -197,7 +197,7 @@ module Growwer
|
|
|
197
197
|
|
|
198
198
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
199
199
|
if @api_client.config.debugging
|
|
200
|
-
@api_client.config.logger.debug "API called:
|
|
200
|
+
@api_client.config.logger.debug "API called: BuyerWalletApi#get_invoice_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
201
201
|
end
|
|
202
202
|
return data, status_code, headers
|
|
203
203
|
end
|
|
@@ -221,18 +221,18 @@ module Growwer
|
|
|
221
221
|
# @return [Array<(ListBuyerTransactions200Response, Integer, Hash)>] ListBuyerTransactions200Response data, response status code and response headers
|
|
222
222
|
def list_buyer_transactions_with_http_info(opts = {})
|
|
223
223
|
if @api_client.config.debugging
|
|
224
|
-
@api_client.config.logger.debug 'Calling API:
|
|
224
|
+
@api_client.config.logger.debug 'Calling API: BuyerWalletApi.list_buyer_transactions ...'
|
|
225
225
|
end
|
|
226
226
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
227
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling
|
|
227
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BuyerWalletApi.list_buyer_transactions, must be smaller than or equal to 100.'
|
|
228
228
|
end
|
|
229
229
|
|
|
230
230
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
231
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling
|
|
231
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BuyerWalletApi.list_buyer_transactions, must be greater than or equal to 1.'
|
|
232
232
|
end
|
|
233
233
|
|
|
234
234
|
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
|
235
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling
|
|
235
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling BuyerWalletApi.list_buyer_transactions, must be greater than or equal to 0.'
|
|
236
236
|
end
|
|
237
237
|
|
|
238
238
|
# resource path
|
|
@@ -261,7 +261,7 @@ module Growwer
|
|
|
261
261
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
262
262
|
|
|
263
263
|
new_options = opts.merge(
|
|
264
|
-
:operation => :"
|
|
264
|
+
:operation => :"BuyerWalletApi.list_buyer_transactions",
|
|
265
265
|
:header_params => header_params,
|
|
266
266
|
:query_params => query_params,
|
|
267
267
|
:form_params => form_params,
|
|
@@ -272,7 +272,7 @@ module Growwer
|
|
|
272
272
|
|
|
273
273
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
274
274
|
if @api_client.config.debugging
|
|
275
|
-
@api_client.config.logger.debug "API called:
|
|
275
|
+
@api_client.config.logger.debug "API called: BuyerWalletApi#list_buyer_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
276
276
|
end
|
|
277
277
|
return data, status_code, headers
|
|
278
278
|
end
|
|
@@ -296,18 +296,18 @@ module Growwer
|
|
|
296
296
|
# @return [Array<(ListInvoices200Response, Integer, Hash)>] ListInvoices200Response data, response status code and response headers
|
|
297
297
|
def list_invoices_with_http_info(opts = {})
|
|
298
298
|
if @api_client.config.debugging
|
|
299
|
-
@api_client.config.logger.debug 'Calling API:
|
|
299
|
+
@api_client.config.logger.debug 'Calling API: BuyerWalletApi.list_invoices ...'
|
|
300
300
|
end
|
|
301
301
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
302
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling
|
|
302
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BuyerWalletApi.list_invoices, must be smaller than or equal to 100.'
|
|
303
303
|
end
|
|
304
304
|
|
|
305
305
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
306
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling
|
|
306
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BuyerWalletApi.list_invoices, must be greater than or equal to 1.'
|
|
307
307
|
end
|
|
308
308
|
|
|
309
309
|
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
|
310
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling
|
|
310
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling BuyerWalletApi.list_invoices, must be greater than or equal to 0.'
|
|
311
311
|
end
|
|
312
312
|
|
|
313
313
|
# resource path
|
|
@@ -336,7 +336,7 @@ module Growwer
|
|
|
336
336
|
auth_names = opts[:debug_auth_names] || ['apiKey']
|
|
337
337
|
|
|
338
338
|
new_options = opts.merge(
|
|
339
|
-
:operation => :"
|
|
339
|
+
:operation => :"BuyerWalletApi.list_invoices",
|
|
340
340
|
:header_params => header_params,
|
|
341
341
|
:query_params => query_params,
|
|
342
342
|
:form_params => form_params,
|
|
@@ -347,7 +347,7 @@ module Growwer
|
|
|
347
347
|
|
|
348
348
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
349
349
|
if @api_client.config.debugging
|
|
350
|
-
@api_client.config.logger.debug "API called:
|
|
350
|
+
@api_client.config.logger.debug "API called: BuyerWalletApi#list_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
351
351
|
end
|
|
352
352
|
return data, status_code, headers
|
|
353
353
|
end
|