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.
@@ -1,14 +1,14 @@
1
- # Growwer::BuyerMoneyApi
1
+ # Growwer::BuyerWalletApi
2
2
 
3
3
  All URIs are relative to *https://tool.growwer.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**download_buyer_transaction_document**](BuyerMoneyApi.md#download_buyer_transaction_document) | **GET** /api/v1/wallets/buyer/transactions/{id}/document | Download the document of a wallet movement |
8
- | [**get_buyer_wallet**](BuyerMoneyApi.md#get_buyer_wallet) | **GET** /api/v1/wallets/buyer | Get your buyer wallet |
9
- | [**get_invoice_pdf**](BuyerMoneyApi.md#get_invoice_pdf) | **GET** /api/v1/invoices/{id}/pdf | Download an invoice |
10
- | [**list_buyer_transactions**](BuyerMoneyApi.md#list_buyer_transactions) | **GET** /api/v1/wallets/buyer/transactions | List your buyer wallet movements |
11
- | [**list_invoices**](BuyerMoneyApi.md#list_invoices) | **GET** /api/v1/invoices | List your invoices |
7
+ | [**download_buyer_transaction_document**](BuyerWalletApi.md#download_buyer_transaction_document) | **GET** /api/v1/wallets/buyer/transactions/{id}/document | Download the document of a wallet movement |
8
+ | [**get_buyer_wallet**](BuyerWalletApi.md#get_buyer_wallet) | **GET** /api/v1/wallets/buyer | Get your buyer wallet |
9
+ | [**get_invoice_pdf**](BuyerWalletApi.md#get_invoice_pdf) | **GET** /api/v1/invoices/{id}/pdf | Download an invoice |
10
+ | [**list_buyer_transactions**](BuyerWalletApi.md#list_buyer_transactions) | **GET** /api/v1/wallets/buyer/transactions | List your buyer wallet movements |
11
+ | [**list_invoices**](BuyerWalletApi.md#list_invoices) | **GET** /api/v1/invoices | List your invoices |
12
12
 
13
13
 
14
14
  ## download_buyer_transaction_document
@@ -30,7 +30,7 @@ Growwer.configure do |config|
30
30
  config.access_token = 'YOUR_BEARER_TOKEN'
31
31
  end
32
32
 
33
- api_instance = Growwer::BuyerMoneyApi.new
33
+ api_instance = Growwer::BuyerWalletApi.new
34
34
  id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
35
35
 
36
36
  begin
@@ -38,7 +38,7 @@ begin
38
38
  result = api_instance.download_buyer_transaction_document(id)
39
39
  p result
40
40
  rescue Growwer::ApiError => e
41
- puts "Error when calling BuyerMoneyApi->download_buyer_transaction_document: #{e}"
41
+ puts "Error when calling BuyerWalletApi->download_buyer_transaction_document: #{e}"
42
42
  end
43
43
  ```
44
44
 
@@ -56,7 +56,7 @@ begin
56
56
  p headers # => { ... }
57
57
  p data # => File
58
58
  rescue Growwer::ApiError => e
59
- puts "Error when calling BuyerMoneyApi->download_buyer_transaction_document_with_http_info: #{e}"
59
+ puts "Error when calling BuyerWalletApi->download_buyer_transaction_document_with_http_info: #{e}"
60
60
  end
61
61
  ```
62
62
 
@@ -99,14 +99,14 @@ Growwer.configure do |config|
99
99
  config.access_token = 'YOUR_BEARER_TOKEN'
100
100
  end
101
101
 
102
- api_instance = Growwer::BuyerMoneyApi.new
102
+ api_instance = Growwer::BuyerWalletApi.new
103
103
 
104
104
  begin
105
105
  # Get your buyer wallet
106
106
  result = api_instance.get_buyer_wallet
107
107
  p result
108
108
  rescue Growwer::ApiError => e
109
- puts "Error when calling BuyerMoneyApi->get_buyer_wallet: #{e}"
109
+ puts "Error when calling BuyerWalletApi->get_buyer_wallet: #{e}"
110
110
  end
111
111
  ```
112
112
 
@@ -124,7 +124,7 @@ begin
124
124
  p headers # => { ... }
125
125
  p data # => <GetBuyerWallet200Response>
126
126
  rescue Growwer::ApiError => e
127
- puts "Error when calling BuyerMoneyApi->get_buyer_wallet_with_http_info: #{e}"
127
+ puts "Error when calling BuyerWalletApi->get_buyer_wallet_with_http_info: #{e}"
128
128
  end
129
129
  ```
130
130
 
@@ -165,7 +165,7 @@ Growwer.configure do |config|
165
165
  config.access_token = 'YOUR_BEARER_TOKEN'
166
166
  end
167
167
 
168
- api_instance = Growwer::BuyerMoneyApi.new
168
+ api_instance = Growwer::BuyerWalletApi.new
169
169
  id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
170
170
 
171
171
  begin
@@ -173,7 +173,7 @@ begin
173
173
  result = api_instance.get_invoice_pdf(id)
174
174
  p result
175
175
  rescue Growwer::ApiError => e
176
- puts "Error when calling BuyerMoneyApi->get_invoice_pdf: #{e}"
176
+ puts "Error when calling BuyerWalletApi->get_invoice_pdf: #{e}"
177
177
  end
178
178
  ```
179
179
 
@@ -191,7 +191,7 @@ begin
191
191
  p headers # => { ... }
192
192
  p data # => File
193
193
  rescue Growwer::ApiError => e
194
- puts "Error when calling BuyerMoneyApi->get_invoice_pdf_with_http_info: #{e}"
194
+ puts "Error when calling BuyerWalletApi->get_invoice_pdf_with_http_info: #{e}"
195
195
  end
196
196
  ```
197
197
 
@@ -234,7 +234,7 @@ Growwer.configure do |config|
234
234
  config.access_token = 'YOUR_BEARER_TOKEN'
235
235
  end
236
236
 
237
- api_instance = Growwer::BuyerMoneyApi.new
237
+ api_instance = Growwer::BuyerWalletApi.new
238
238
  opts = {
239
239
  limit: 56, # Integer | Movements per page, 1 to 100.
240
240
  offset: 56 # Integer | Movements to skip.
@@ -245,7 +245,7 @@ begin
245
245
  result = api_instance.list_buyer_transactions(opts)
246
246
  p result
247
247
  rescue Growwer::ApiError => e
248
- puts "Error when calling BuyerMoneyApi->list_buyer_transactions: #{e}"
248
+ puts "Error when calling BuyerWalletApi->list_buyer_transactions: #{e}"
249
249
  end
250
250
  ```
251
251
 
@@ -263,7 +263,7 @@ begin
263
263
  p headers # => { ... }
264
264
  p data # => <ListBuyerTransactions200Response>
265
265
  rescue Growwer::ApiError => e
266
- puts "Error when calling BuyerMoneyApi->list_buyer_transactions_with_http_info: #{e}"
266
+ puts "Error when calling BuyerWalletApi->list_buyer_transactions_with_http_info: #{e}"
267
267
  end
268
268
  ```
269
269
 
@@ -307,7 +307,7 @@ Growwer.configure do |config|
307
307
  config.access_token = 'YOUR_BEARER_TOKEN'
308
308
  end
309
309
 
310
- api_instance = Growwer::BuyerMoneyApi.new
310
+ api_instance = Growwer::BuyerWalletApi.new
311
311
  opts = {
312
312
  limit: 56, # Integer | Invoices per page, 1 to 100.
313
313
  offset: 56 # Integer | Invoices to skip.
@@ -318,7 +318,7 @@ begin
318
318
  result = api_instance.list_invoices(opts)
319
319
  p result
320
320
  rescue Growwer::ApiError => e
321
- puts "Error when calling BuyerMoneyApi->list_invoices: #{e}"
321
+ puts "Error when calling BuyerWalletApi->list_invoices: #{e}"
322
322
  end
323
323
  ```
324
324
 
@@ -336,7 +336,7 @@ begin
336
336
  p headers # => { ... }
337
337
  p data # => <ListInvoices200Response>
338
338
  rescue Growwer::ApiError => e
339
- puts "Error when calling BuyerMoneyApi->list_invoices_with_http_info: #{e}"
339
+ puts "Error when calling BuyerWalletApi->list_invoices_with_http_info: #{e}"
340
340
  end
341
341
  ```
342
342
 
data/docs/CatalogueApi.md CHANGED
@@ -164,7 +164,7 @@ nil (empty response body)
164
164
 
165
165
  Get a media
166
166
 
167
- One media of the catalogue: an active, public media. A media you have ordered is always readable, even if it has since left the catalogue, and is open to every account. Otherwise the catalogue is open to accounts with recent completed orders (see `catalogue.eligible` on GET /me), and the media counts towards the distinct medias the account may see per day (UTC). For the media's state in one of your projects, search the project with GET /projects/{id}/medias.
167
+ One media of the catalogue: an active, public media. A media you have ordered is always readable, even if it has since left the catalogue, and is open to every account. Otherwise the media counts towards the distinct medias the account may see per day (UTC): the full daily cap for accounts with recent completed orders, a smaller trial quota for other accounts (see `catalogue.eligible`, `catalogue.dailyCap` and `catalogue.remainingToday` on GET /me). For the media's state in one of your projects, search the project with GET /projects/{id}/medias.
168
168
 
169
169
  ### Examples
170
170
 
@@ -447,7 +447,7 @@ end
447
447
 
448
448
  Search the catalogue for a project
449
449
 
450
- The medias the catalogue offers for one of your projects, as the web lists them, with each media's state in the project. Filter with the parameters below, which all combine, or apply one of your saved filters with `savedFilterId` alone. The catalogue is open to accounts with recent completed orders (see `catalogue.eligible` on GET /me), and each account can see a limited number of distinct medias per day (UTC) across the catalogue operations; medias seen again the same day are free.
450
+ The medias the catalogue offers for one of your projects, as the web lists them, with each media's state in the project. Filter with the parameters below, which all combine, or apply one of your saved filters with `savedFilterId` alone. Each account can see a limited number of distinct medias per day (UTC) across the catalogue operations: the full daily cap for accounts with recent completed orders, as buyer or as seller, and a smaller trial quota for other accounts, which rises to the full cap after a completed order (see `catalogue.eligible`, `catalogue.dailyCap` and `catalogue.remainingToday` on GET /me). Medias seen again the same day are free.
451
451
 
452
452
  ### Examples
453
453
 
data/docs/Error.md CHANGED
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **code** | **String** | A stable, machine-readable error code. | |
8
8
  | **message** | **String** | A human-readable explanation. It may change. | |
9
- | **request_id** | **String** | The X-Request-Id of the call. Quote it when reporting a problem. | |
9
+ | **request_id** | **String** | UUID v4 generated per request, or the &#x60;X-Request-Id&#x60; you sent. Quote it when reporting a problem. | |
10
10
  | **details** | **Hash&lt;String, Object&gt;** | Extra data on some errors, such as the invalid fields of a validation_failed error. | [optional] |
11
11
 
12
12
  ## Example
@@ -17,7 +17,7 @@ require 'growwer'
17
17
  instance = Growwer::Error.new(
18
18
  code: unauthorized,
19
19
  message: null,
20
- request_id: null,
20
+ request_id: 9b2f6c1e-4d7a-4e3b-8a5f-2c1d0e9f7a64,
21
21
  details: null
22
22
  )
23
23
  ```
data/docs/FilesApi.md CHANGED
@@ -13,7 +13,7 @@ All URIs are relative to *https://tool.growwer.com*
13
13
 
14
14
  Upload a file
15
15
 
16
- Uploads a document (odt, doc, docx or txt, up to 8 MB) for a later write to reference by its `id`. A file belongs to you, can be used by one write, and expires 24 hours after it was uploaded; an expired or used file is answered like an unknown one.
16
+ Uploads a document (odt, doc, docx or txt, up to 8 MB) for a later write to reference by its `id`. A file belongs to you, can be used by one write, and expires 24 hours after it was uploaded; an expired or used file is answered like an unknown one. You may hold 20 files that no write has used yet and that have not expired. Past them it answers 429 `file_limit_reached`, with `details.limit` the number you may hold and `Retry-After` the seconds until the first of them expires; using one of them in a write frees its place at once. A file refused as invalid (422) is refused before they are counted, and a refused upload stores nothing.
17
17
 
18
18
  ### Examples
19
19
 
@@ -4,7 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **eligible** | **Boolean** | Whether the catalogue operations (tag Catalogue: searching a project&#39;s medias, flash offers and media details) are open to you. They are open to accounts with recent completed orders, as buyer or as seller; until then they answer 403 &#x60;catalogue_requires_recent_order&#x60;. A media you have ordered is always readable with GET /medias/{id}. | |
7
+ | **eligible** | **Boolean** | Whether you have the full daily cap of the catalogue operations (tag Catalogue: searching a project&#39;s medias, flash offers and media details). It is open to accounts with recent completed orders, as buyer or as seller; until then the catalogue answers within a smaller daily trial quota, which rises to the full cap after a completed order. A media you have ordered is always readable with GET /medias/{id} and counts against neither. | |
8
+ | **daily_cap** | **Integer** | How many distinct medias the catalogue operations show you per UTC day: the full cap when &#x60;eligible&#x60; is true, the trial quota otherwise. 0 means the catalogue answers 403 &#x60;catalogue_requires_recent_order&#x60; until you have a recent completed order. | |
9
+ | **remaining_today** | **Integer** | How many new distinct medias still fit in &#x60;dailyCap&#x60; today (UTC). Medias you have already seen today are free. Null when the count cannot be read right now; the catalogue operations then answer 503 until it can. | |
8
10
 
9
11
  ## Example
10
12
 
@@ -12,7 +14,9 @@
12
14
  require 'growwer'
13
15
 
14
16
  instance = Growwer::GetMe200ResponseCatalogue.new(
15
- eligible: null
17
+ eligible: null,
18
+ daily_cap: null,
19
+ remaining_today: null
16
20
  )
17
21
  ```
18
22
 
@@ -0,0 +1,79 @@
1
+ # Growwer::SellerAccountApi
2
+
3
+ All URIs are relative to *https://tool.growwer.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**put_seller_holiday**](SellerAccountApi.md#put_seller_holiday) | **PUT** /api/v1/seller/holiday | Set your holiday |
8
+
9
+
10
+ ## put_seller_holiday
11
+
12
+ > <PutSellerHoliday200Response> put_seller_holiday(idempotency_key, put_seller_holiday_request)
13
+
14
+ Set your holiday
15
+
16
+ Starts, changes or ends your holiday, as the holiday settings of your profile page do. While you are on holiday your medias take no orders. `endDate` is the day your holiday ends, at 00:00 of that day in Growwer's server time, and must be later than now; leave it out, or send null, for a holiday you end yourself. Ending the holiday takes no `endDate`. A holiday that already is as you ask is answered 200 without a change. A restricted seller account stays on holiday until the restriction is lifted, so any change is refused. Your holiday is also in GET /me.
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'growwer'
23
+ # setup authorization
24
+ Growwer.configure do |config|
25
+ # Configure Bearer authorization: apiKey
26
+ config.access_token = 'YOUR_BEARER_TOKEN'
27
+ end
28
+
29
+ api_instance = Growwer::SellerAccountApi.new
30
+ idempotency_key = 'idempotency_key_example' # String | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
31
+ put_seller_holiday_request = Growwer::PutSellerHolidayRequest.new({on_holiday: false}) # PutSellerHolidayRequest |
32
+
33
+ begin
34
+ # Set your holiday
35
+ result = api_instance.put_seller_holiday(idempotency_key, put_seller_holiday_request)
36
+ p result
37
+ rescue Growwer::ApiError => e
38
+ puts "Error when calling SellerAccountApi->put_seller_holiday: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the put_seller_holiday_with_http_info variant
43
+
44
+ This returns an Array which contains the response data, status code and headers.
45
+
46
+ > <Array(<PutSellerHoliday200Response>, Integer, Hash)> put_seller_holiday_with_http_info(idempotency_key, put_seller_holiday_request)
47
+
48
+ ```ruby
49
+ begin
50
+ # Set your holiday
51
+ data, status_code, headers = api_instance.put_seller_holiday_with_http_info(idempotency_key, put_seller_holiday_request)
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => <PutSellerHoliday200Response>
55
+ rescue Growwer::ApiError => e
56
+ puts "Error when calling SellerAccountApi->put_seller_holiday_with_http_info: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ | Name | Type | Description | Notes |
63
+ | ---- | ---- | ----------- | ----- |
64
+ | **idempotency_key** | **String** | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (&#x60;!&#x60; to &#x60;~&#x60;); any other value answers 400 &#x60;invalid_idempotency_key&#x60;. | |
65
+ | **put_seller_holiday_request** | [**PutSellerHolidayRequest**](PutSellerHolidayRequest.md) | | |
66
+
67
+ ### Return type
68
+
69
+ [**PutSellerHoliday200Response**](PutSellerHoliday200Response.md)
70
+
71
+ ### Authorization
72
+
73
+ [apiKey](../README.md#apiKey)
74
+
75
+ ### HTTP request headers
76
+
77
+ - **Content-Type**: application/json
78
+ - **Accept**: application/json
79
+
@@ -1,14 +1,14 @@
1
- # Growwer::SellerMoneyApi
1
+ # Growwer::SellerWalletApi
2
2
 
3
3
  All URIs are relative to *https://tool.growwer.com*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
- | [**download_seller_transaction_document**](SellerMoneyApi.md#download_seller_transaction_document) | **GET** /api/v1/wallets/seller/transactions/{id}/document | Download the document of a seller wallet movement |
8
- | [**download_withdrawal_invoice**](SellerMoneyApi.md#download_withdrawal_invoice) | **GET** /api/v1/withdrawals/{id}/invoice | Download the invoice of a withdrawal |
9
- | [**get_seller_wallet**](SellerMoneyApi.md#get_seller_wallet) | **GET** /api/v1/wallets/seller | Get your seller wallet |
10
- | [**list_seller_transactions**](SellerMoneyApi.md#list_seller_transactions) | **GET** /api/v1/wallets/seller/transactions | List your seller wallet movements |
11
- | [**list_withdrawals**](SellerMoneyApi.md#list_withdrawals) | **GET** /api/v1/withdrawals | List your withdrawals |
7
+ | [**download_seller_transaction_document**](SellerWalletApi.md#download_seller_transaction_document) | **GET** /api/v1/wallets/seller/transactions/{id}/document | Download the document of a seller wallet movement |
8
+ | [**download_withdrawal_invoice**](SellerWalletApi.md#download_withdrawal_invoice) | **GET** /api/v1/withdrawals/{id}/invoice | Download the invoice of a withdrawal |
9
+ | [**get_seller_wallet**](SellerWalletApi.md#get_seller_wallet) | **GET** /api/v1/wallets/seller | Get your seller wallet |
10
+ | [**list_seller_transactions**](SellerWalletApi.md#list_seller_transactions) | **GET** /api/v1/wallets/seller/transactions | List your seller wallet movements |
11
+ | [**list_withdrawals**](SellerWalletApi.md#list_withdrawals) | **GET** /api/v1/withdrawals | List your withdrawals |
12
12
 
13
13
 
14
14
  ## download_seller_transaction_document
@@ -30,7 +30,7 @@ Growwer.configure do |config|
30
30
  config.access_token = 'YOUR_BEARER_TOKEN'
31
31
  end
32
32
 
33
- api_instance = Growwer::SellerMoneyApi.new
33
+ api_instance = Growwer::SellerWalletApi.new
34
34
  id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
35
35
 
36
36
  begin
@@ -38,7 +38,7 @@ begin
38
38
  result = api_instance.download_seller_transaction_document(id)
39
39
  p result
40
40
  rescue Growwer::ApiError => e
41
- puts "Error when calling SellerMoneyApi->download_seller_transaction_document: #{e}"
41
+ puts "Error when calling SellerWalletApi->download_seller_transaction_document: #{e}"
42
42
  end
43
43
  ```
44
44
 
@@ -56,7 +56,7 @@ begin
56
56
  p headers # => { ... }
57
57
  p data # => File
58
58
  rescue Growwer::ApiError => e
59
- puts "Error when calling SellerMoneyApi->download_seller_transaction_document_with_http_info: #{e}"
59
+ puts "Error when calling SellerWalletApi->download_seller_transaction_document_with_http_info: #{e}"
60
60
  end
61
61
  ```
62
62
 
@@ -99,7 +99,7 @@ Growwer.configure do |config|
99
99
  config.access_token = 'YOUR_BEARER_TOKEN'
100
100
  end
101
101
 
102
- api_instance = Growwer::SellerMoneyApi.new
102
+ api_instance = Growwer::SellerWalletApi.new
103
103
  id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
104
104
 
105
105
  begin
@@ -107,7 +107,7 @@ begin
107
107
  result = api_instance.download_withdrawal_invoice(id)
108
108
  p result
109
109
  rescue Growwer::ApiError => e
110
- puts "Error when calling SellerMoneyApi->download_withdrawal_invoice: #{e}"
110
+ puts "Error when calling SellerWalletApi->download_withdrawal_invoice: #{e}"
111
111
  end
112
112
  ```
113
113
 
@@ -125,7 +125,7 @@ begin
125
125
  p headers # => { ... }
126
126
  p data # => File
127
127
  rescue Growwer::ApiError => e
128
- puts "Error when calling SellerMoneyApi->download_withdrawal_invoice_with_http_info: #{e}"
128
+ puts "Error when calling SellerWalletApi->download_withdrawal_invoice_with_http_info: #{e}"
129
129
  end
130
130
  ```
131
131
 
@@ -168,14 +168,14 @@ Growwer.configure do |config|
168
168
  config.access_token = 'YOUR_BEARER_TOKEN'
169
169
  end
170
170
 
171
- api_instance = Growwer::SellerMoneyApi.new
171
+ api_instance = Growwer::SellerWalletApi.new
172
172
 
173
173
  begin
174
174
  # Get your seller wallet
175
175
  result = api_instance.get_seller_wallet
176
176
  p result
177
177
  rescue Growwer::ApiError => e
178
- puts "Error when calling SellerMoneyApi->get_seller_wallet: #{e}"
178
+ puts "Error when calling SellerWalletApi->get_seller_wallet: #{e}"
179
179
  end
180
180
  ```
181
181
 
@@ -193,7 +193,7 @@ begin
193
193
  p headers # => { ... }
194
194
  p data # => <GetSellerWallet200Response>
195
195
  rescue Growwer::ApiError => e
196
- puts "Error when calling SellerMoneyApi->get_seller_wallet_with_http_info: #{e}"
196
+ puts "Error when calling SellerWalletApi->get_seller_wallet_with_http_info: #{e}"
197
197
  end
198
198
  ```
199
199
 
@@ -234,7 +234,7 @@ Growwer.configure do |config|
234
234
  config.access_token = 'YOUR_BEARER_TOKEN'
235
235
  end
236
236
 
237
- api_instance = Growwer::SellerMoneyApi.new
237
+ api_instance = Growwer::SellerWalletApi.new
238
238
  opts = {
239
239
  limit: 56, # Integer | Movements per page, 1 to 100.
240
240
  offset: 56 # Integer | Movements to skip.
@@ -245,7 +245,7 @@ begin
245
245
  result = api_instance.list_seller_transactions(opts)
246
246
  p result
247
247
  rescue Growwer::ApiError => e
248
- puts "Error when calling SellerMoneyApi->list_seller_transactions: #{e}"
248
+ puts "Error when calling SellerWalletApi->list_seller_transactions: #{e}"
249
249
  end
250
250
  ```
251
251
 
@@ -263,7 +263,7 @@ begin
263
263
  p headers # => { ... }
264
264
  p data # => <ListSellerTransactions200Response>
265
265
  rescue Growwer::ApiError => e
266
- puts "Error when calling SellerMoneyApi->list_seller_transactions_with_http_info: #{e}"
266
+ puts "Error when calling SellerWalletApi->list_seller_transactions_with_http_info: #{e}"
267
267
  end
268
268
  ```
269
269
 
@@ -307,7 +307,7 @@ Growwer.configure do |config|
307
307
  config.access_token = 'YOUR_BEARER_TOKEN'
308
308
  end
309
309
 
310
- api_instance = Growwer::SellerMoneyApi.new
310
+ api_instance = Growwer::SellerWalletApi.new
311
311
  opts = {
312
312
  state: 'started', # String | Only the withdrawals in one of these states, comma-separated: `started`, `approved`, `rejected`. An unknown state is refused with 422.
313
313
  limit: 56, # Integer | Withdrawals per page, 1 to 100.
@@ -319,7 +319,7 @@ begin
319
319
  result = api_instance.list_withdrawals(opts)
320
320
  p result
321
321
  rescue Growwer::ApiError => e
322
- puts "Error when calling SellerMoneyApi->list_withdrawals: #{e}"
322
+ puts "Error when calling SellerWalletApi->list_withdrawals: #{e}"
323
323
  end
324
324
  ```
325
325
 
@@ -337,7 +337,7 @@ begin
337
337
  p headers # => { ... }
338
338
  p data # => <ListWithdrawals200Response>
339
339
  rescue Growwer::ApiError => e
340
- puts "Error when calling SellerMoneyApi->list_withdrawals_with_http_info: #{e}"
340
+ puts "Error when calling SellerWalletApi->list_withdrawals_with_http_info: #{e}"
341
341
  end
342
342
  ```
343
343
 
@@ -132,84 +132,5 @@ module Growwer
132
132
  end
133
133
  return data, status_code, headers
134
134
  end
135
-
136
- # Set your holiday
137
- # Starts, changes or ends your holiday, as the holiday settings of your profile page do. While you are on holiday your medias take no orders. `endDate` is the day your holiday ends, at 00:00 of that day in Growwer's server time, and must be later than now; leave it out, or send null, for a holiday you end yourself. Ending the holiday takes no `endDate`. A holiday that already is as you ask is answered 200 without a change. A restricted seller account stays on holiday until the restriction is lifted, so any change is refused. Your holiday is also in GET /me.
138
- # @param idempotency_key [String] A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (&#x60;!&#x60; to &#x60;~&#x60;); any other value answers 400 &#x60;invalid_idempotency_key&#x60;.
139
- # @param put_seller_holiday_request [PutSellerHolidayRequest]
140
- # @param [Hash] opts the optional parameters
141
- # @return [PutSellerHoliday200Response]
142
- def put_seller_holiday(idempotency_key, put_seller_holiday_request, opts = {})
143
- data, _status_code, _headers = put_seller_holiday_with_http_info(idempotency_key, put_seller_holiday_request, opts)
144
- data
145
- end
146
-
147
- # Set your holiday
148
- # Starts, changes or ends your holiday, as the holiday settings of your profile page do. While you are on holiday your medias take no orders. &#x60;endDate&#x60; is the day your holiday ends, at 00:00 of that day in Growwer&#39;s server time, and must be later than now; leave it out, or send null, for a holiday you end yourself. Ending the holiday takes no &#x60;endDate&#x60;. A holiday that already is as you ask is answered 200 without a change. A restricted seller account stays on holiday until the restriction is lifted, so any change is refused. Your holiday is also in GET /me.
149
- # @param idempotency_key [String] A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (&#x60;!&#x60; to &#x60;~&#x60;); any other value answers 400 &#x60;invalid_idempotency_key&#x60;.
150
- # @param put_seller_holiday_request [PutSellerHolidayRequest]
151
- # @param [Hash] opts the optional parameters
152
- # @return [Array<(PutSellerHoliday200Response, Integer, Hash)>] PutSellerHoliday200Response data, response status code and response headers
153
- def put_seller_holiday_with_http_info(idempotency_key, put_seller_holiday_request, opts = {})
154
- if @api_client.config.debugging
155
- @api_client.config.logger.debug 'Calling API: AccountApi.put_seller_holiday ...'
156
- end
157
- # verify the required parameter 'idempotency_key' is set
158
- if @api_client.config.client_side_validation && idempotency_key.nil?
159
- fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling AccountApi.put_seller_holiday"
160
- end
161
- if @api_client.config.client_side_validation && idempotency_key.to_s.length > 255
162
- fail ArgumentError, 'invalid value for "idempotency_key" when calling AccountApi.put_seller_holiday, the character length must be smaller than or equal to 255.'
163
- end
164
-
165
- # verify the required parameter 'put_seller_holiday_request' is set
166
- if @api_client.config.client_side_validation && put_seller_holiday_request.nil?
167
- fail ArgumentError, "Missing the required parameter 'put_seller_holiday_request' when calling AccountApi.put_seller_holiday"
168
- end
169
- # resource path
170
- local_var_path = '/api/v1/seller/holiday'
171
-
172
- # query parameters
173
- query_params = opts[:query_params] || {}
174
-
175
- # header parameters
176
- header_params = opts[:header_params] || {}
177
- # HTTP header 'Accept' (if needed)
178
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
179
- # HTTP header 'Content-Type'
180
- content_type = @api_client.select_header_content_type(['application/json'])
181
- if !content_type.nil?
182
- header_params['Content-Type'] = content_type
183
- end
184
- header_params[:'Idempotency-Key'] = idempotency_key
185
-
186
- # form parameters
187
- form_params = opts[:form_params] || {}
188
-
189
- # http body (model)
190
- post_body = opts[:debug_body] || @api_client.object_to_http_body(put_seller_holiday_request)
191
-
192
- # return_type
193
- return_type = opts[:debug_return_type] || 'PutSellerHoliday200Response'
194
-
195
- # auth_names
196
- auth_names = opts[:debug_auth_names] || ['apiKey']
197
-
198
- new_options = opts.merge(
199
- :operation => :"AccountApi.put_seller_holiday",
200
- :header_params => header_params,
201
- :query_params => query_params,
202
- :form_params => form_params,
203
- :body => post_body,
204
- :auth_names => auth_names,
205
- :return_type => return_type
206
- )
207
-
208
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
209
- if @api_client.config.debugging
210
- @api_client.config.logger.debug "API called: AccountApi#put_seller_holiday\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
211
- end
212
- return data, status_code, headers
213
- end
214
135
  end
215
136
  end