growwer 1.0.1 → 1.1.0

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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -27
  3. data/docs/AccountApi.md +0 -72
  4. data/docs/{OrdersApi.md → BuyerOrdersApi.md} +45 -45
  5. data/docs/{BuyerMoneyApi.md → BuyerWalletApi.md} +21 -21
  6. data/docs/CatalogueApi.md +6 -6
  7. data/docs/CreateSellerMediaRequest.md +38 -0
  8. data/docs/CreateSellerMediaRequestPostOffer.md +24 -0
  9. data/docs/Error.md +2 -2
  10. data/docs/FilesApi.md +1 -1
  11. data/docs/GetMe200ResponseCatalogue.md +6 -2
  12. data/docs/ManagedServicesApi.md +2 -2
  13. data/docs/ProjectCatalogueMediaAllOfProject.md +3 -1
  14. data/docs/ProjectCatalogueMediaAllOfProjectAiKeywords.md +20 -0
  15. data/docs/SellerAccountApi.md +79 -0
  16. data/docs/SellerMedia.md +2 -0
  17. data/docs/SellerMediaPostOffer.md +7 -1
  18. data/docs/SellerMediasApi.md +148 -5
  19. data/docs/{SellerMoneyApi.md → SellerWalletApi.md} +21 -21
  20. data/docs/UpdateSellerMediaRequest.md +2 -0
  21. data/docs/UpdateSellerMediaRequestPostOffer.md +8 -2
  22. data/lib/growwer/api/account_api.rb +0 -79
  23. data/lib/growwer/api/{orders_api.rb → buyer_orders_api.rb} +62 -62
  24. data/lib/growwer/api/{buyer_money_api.rb → buyer_wallet_api.rb} +24 -24
  25. data/lib/growwer/api/catalogue_api.rb +8 -8
  26. data/lib/growwer/api/files_api.rb +2 -2
  27. data/lib/growwer/api/managed_services_api.rb +4 -4
  28. data/lib/growwer/api/seller_account_api.rb +101 -0
  29. data/lib/growwer/api/seller_medias_api.rb +157 -4
  30. data/lib/growwer/api/{seller_money_api.rb → seller_wallet_api.rb} +24 -24
  31. data/lib/growwer/api_client.rb +1 -1
  32. data/lib/growwer/models/create_seller_media_request.rb +447 -0
  33. data/lib/growwer/models/create_seller_media_request_post_offer.rb +273 -0
  34. data/lib/growwer/models/error.rb +1 -1
  35. data/lib/growwer/models/get_me200_response_catalogue.rb +69 -5
  36. data/lib/growwer/models/project_catalogue_media_all_of_project.rb +34 -5
  37. data/lib/growwer/models/project_catalogue_media_all_of_project_ai_keywords.rb +211 -0
  38. data/lib/growwer/models/seller_media.rb +29 -1
  39. data/lib/growwer/models/seller_media_post_offer.rb +99 -1
  40. data/lib/growwer/models/update_seller_media_request.rb +44 -1
  41. data/lib/growwer/models/update_seller_media_request_post_offer.rb +96 -12
  42. data/lib/growwer/version.rb +1 -1
  43. data/lib/growwer.rb +7 -3
  44. data/spec/api/account_api_spec.rb +1 -14
  45. data/spec/api/{orders_api_spec.rb → buyer_orders_api_spec.rb} +13 -13
  46. data/spec/api/{buyer_money_api_spec.rb → buyer_wallet_api_spec.rb} +7 -7
  47. data/spec/api/seller_account_api_spec.rb +48 -0
  48. data/spec/api/{seller_money_api_spec.rb → seller_wallet_api_spec.rb} +7 -7
  49. data/spec/models/create_seller_media_request_post_offer_spec.rb +62 -0
  50. data/spec/models/create_seller_media_request_spec.rb +100 -0
  51. data/spec/models/project_catalogue_media_all_of_project_ai_keywords_spec.rb +46 -0
  52. metadata +30 -14
@@ -5,9 +5,11 @@ All URIs are relative to *https://tool.growwer.com*
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**apply_seller_media_competitive_fees**](SellerMediasApi.md#apply_seller_media_competitive_fees) | **POST** /api/v1/seller/medias/{id}/apply-competitive-fees | Set the competitive fees Growwer suggests |
8
+ | [**create_seller_media**](SellerMediasApi.md#create_seller_media) | **POST** /api/v1/seller/medias | Register a media you sell on |
9
+ | [**delete_seller_media**](SellerMediasApi.md#delete_seller_media) | **DELETE** /api/v1/seller/medias/{id} | Delete a media you sell on |
8
10
  | [**get_seller_media**](SellerMediasApi.md#get_seller_media) | **GET** /api/v1/seller/medias/{id} | Get a media you sell on |
9
11
  | [**list_seller_medias**](SellerMediasApi.md#list_seller_medias) | **GET** /api/v1/seller/medias | List the medias you sell on |
10
- | [**update_seller_media**](SellerMediasApi.md#update_seller_media) | **PATCH** /api/v1/seller/medias/{id} | Edit the fees of a media you sell on |
12
+ | [**update_seller_media**](SellerMediasApi.md#update_seller_media) | **PATCH** /api/v1/seller/medias/{id} | Edit the offer of a media you sell on |
11
13
 
12
14
 
13
15
  ## apply_seller_media_competitive_fees
@@ -81,6 +83,147 @@ end
81
83
  - **Accept**: application/json
82
84
 
83
85
 
86
+ ## create_seller_media
87
+
88
+ > <SellerMedia> create_seller_media(idempotency_key, create_seller_media_request)
89
+
90
+ Register a media you sell on
91
+
92
+ Registers one of your medias, as the media create page does. The media is created with `state: pending_review` and Growwer reviews it in the background, as for a media registered on the web; GET /seller/medias/{id} shows its state. - `rootUrl` is the media's root URL; `typology` is `blog` or `press`. - `country` and `language` take the codes GET /vocabulary publishes; `topics` and `bannedTopics` take its topic ids, at most 100 each, and no topic may be both; `bannedTopics` left out bans none. - `postOffer.pricingOptions` lists every link type you offer for sponsored posts, at least one. Each option needs at least one fee, and every option must offer the same sides (written by you, written by the buyer or Growwer), as the page requires. Each fee is at least 1 EUR, sent in cents. - `postOffer.maximumLinks` is how many links a sponsored post may hold, 1 to 4; `postOffer.advertisingLabellingPolicy` whether posts are labelled as advertising, `never` when left out; `postOffer.promotedSocialNetworks` the social networks posts are promoted on, none when left out. - `linkAdditionOffer.pricingOptions` lists the link types you offer for adding a link to an existing article; left out, `null` or an empty list offers none. - `extraServices` lists the extra services you offer, none when left out. It is sent at the top level, although GET /seller/medias/{id} reads it inside `postOffer`. - `acceptMediaPublishingTerms` and `declareMediaOwnership` must be `true`: they accept the media publishing terms and declare that you own or manage the media, as the page's checkboxes do, and are recorded as your consents for the media. A media registered already, by you or by anyone else, is refused with 409 `media_already_registered`, and each such refusal counts toward a daily limit of refusals (429 `media_duplicate_limit_reached` once reached); medias not registered yet are never limited by it. To register many medias, call this operation once per media, each call with its own `Idempotency-Key` and its own answer (201, 409, 422 or 429); there is no batch operation. The request limits apply to the loop as to any calls (600 requests per minute per user and 300 per key), and each 409 `media_already_registered` counts toward the daily limit of refusals as it does for a single call. Retry a call that got no answer with its same `Idempotency-Key`, as for any write.
93
+
94
+ ### Examples
95
+
96
+ ```ruby
97
+ require 'time'
98
+ require 'growwer'
99
+ # setup authorization
100
+ Growwer.configure do |config|
101
+ # Configure Bearer authorization: apiKey
102
+ config.access_token = 'YOUR_BEARER_TOKEN'
103
+ end
104
+
105
+ api_instance = Growwer::SellerMediasApi.new
106
+ 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`.
107
+ create_seller_media_request = Growwer::CreateSellerMediaRequest.new({root_url: 'https://www.example.com', typology: 'blog', country: 'ES', language: 'es', topics: [37], post_offer: Growwer::CreateSellerMediaRequestPostOffer.new({pricing_options: [Growwer::UpdateSellerMediaRequestPostOfferPricingOptionsInner.new({link_type: 'dofollow'})], maximum_links: 37}), accept_media_publishing_terms: false, declare_media_ownership: false}) # CreateSellerMediaRequest |
108
+
109
+ begin
110
+ # Register a media you sell on
111
+ result = api_instance.create_seller_media(idempotency_key, create_seller_media_request)
112
+ p result
113
+ rescue Growwer::ApiError => e
114
+ puts "Error when calling SellerMediasApi->create_seller_media: #{e}"
115
+ end
116
+ ```
117
+
118
+ #### Using the create_seller_media_with_http_info variant
119
+
120
+ This returns an Array which contains the response data, status code and headers.
121
+
122
+ > <Array(<SellerMedia>, Integer, Hash)> create_seller_media_with_http_info(idempotency_key, create_seller_media_request)
123
+
124
+ ```ruby
125
+ begin
126
+ # Register a media you sell on
127
+ data, status_code, headers = api_instance.create_seller_media_with_http_info(idempotency_key, create_seller_media_request)
128
+ p status_code # => 2xx
129
+ p headers # => { ... }
130
+ p data # => <SellerMedia>
131
+ rescue Growwer::ApiError => e
132
+ puts "Error when calling SellerMediasApi->create_seller_media_with_http_info: #{e}"
133
+ end
134
+ ```
135
+
136
+ ### Parameters
137
+
138
+ | Name | Type | Description | Notes |
139
+ | ---- | ---- | ----------- | ----- |
140
+ | **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;. | |
141
+ | **create_seller_media_request** | [**CreateSellerMediaRequest**](CreateSellerMediaRequest.md) | | |
142
+
143
+ ### Return type
144
+
145
+ [**SellerMedia**](SellerMedia.md)
146
+
147
+ ### Authorization
148
+
149
+ [apiKey](../README.md#apiKey)
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: application/json
154
+ - **Accept**: application/json
155
+
156
+
157
+ ## delete_seller_media
158
+
159
+ > delete_seller_media(id, idempotency_key)
160
+
161
+ Delete a media you sell on
162
+
163
+ Deletes one of your medias, in any state, as the media delete button does. The media must have no order in progress: close or reject its orders first. The API never cancels an order for you, and an order placed while the delete runs is refused, never cancelled. What goes with the media, as on the web: - A running flash offer ends with it, and its managed-service proposals are deleted. - Its finished orders stay, with the media's URL; they read `media.id` null. - Buyers' favourites and discards of the domain stay, as they are kept by domain. - The catalogue search drops the media shortly after the 204, as the search index updates asynchronously. Repeating the call with the same `Idempotency-Key` answers the same 204 with `Idempotent-Replayed: true`; a new key after the delete answers 404.
164
+
165
+ ### Examples
166
+
167
+ ```ruby
168
+ require 'time'
169
+ require 'growwer'
170
+ # setup authorization
171
+ Growwer.configure do |config|
172
+ # Configure Bearer authorization: apiKey
173
+ config.access_token = 'YOUR_BEARER_TOKEN'
174
+ end
175
+
176
+ api_instance = Growwer::SellerMediasApi.new
177
+ id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
178
+ 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`.
179
+
180
+ begin
181
+ # Delete a media you sell on
182
+ api_instance.delete_seller_media(id, idempotency_key)
183
+ rescue Growwer::ApiError => e
184
+ puts "Error when calling SellerMediasApi->delete_seller_media: #{e}"
185
+ end
186
+ ```
187
+
188
+ #### Using the delete_seller_media_with_http_info variant
189
+
190
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
191
+
192
+ > <Array(nil, Integer, Hash)> delete_seller_media_with_http_info(id, idempotency_key)
193
+
194
+ ```ruby
195
+ begin
196
+ # Delete a media you sell on
197
+ data, status_code, headers = api_instance.delete_seller_media_with_http_info(id, idempotency_key)
198
+ p status_code # => 2xx
199
+ p headers # => { ... }
200
+ p data # => nil
201
+ rescue Growwer::ApiError => e
202
+ puts "Error when calling SellerMediasApi->delete_seller_media_with_http_info: #{e}"
203
+ end
204
+ ```
205
+
206
+ ### Parameters
207
+
208
+ | Name | Type | Description | Notes |
209
+ | ---- | ---- | ----------- | ----- |
210
+ | **id** | **String** | | |
211
+ | **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;. | |
212
+
213
+ ### Return type
214
+
215
+ nil (empty response body)
216
+
217
+ ### Authorization
218
+
219
+ [apiKey](../README.md#apiKey)
220
+
221
+ ### HTTP request headers
222
+
223
+ - **Content-Type**: Not defined
224
+ - **Accept**: application/json
225
+
226
+
84
227
  ## get_seller_media
85
228
 
86
229
  > <SellerMedia> get_seller_media(id)
@@ -231,9 +374,9 @@ end
231
374
 
232
375
  > <SellerMedia> update_seller_media(id, idempotency_key, update_seller_media_request)
233
376
 
234
- Edit the fees of a media you sell on
377
+ Edit the offer of a media you sell on
235
378
 
236
- Sets the fees of one of your medias, as the media edit page saves them. Send only the sections you change: a section you send replaces that section wholly, a section you leave out stays as it is. - `postOffer.pricingOptions` lists every link type you offer for sponsored posts, at least one. A link type you leave out is no longer offered. Each option needs at least one fee, and every option must offer the same sides (written by you, written by the buyer or Growwer), as the page requires. Each fee is at least 1 EUR. - `linkAdditionOffer.pricingOptions` lists the link types you offer for adding a link to an existing article; `null` or an empty list stops offering link additions. - `extraServices` is the full list of extra services you offer; an empty list removes them all. The fees are your base fees, the ones GET /seller/medias/{id} returns: while a flash offer runs, its discount keeps applying on top of them, and `currentCost` shows the result. `currentCost` may be sent back as read and is ignored. Characteristics, topics and comments are not edited here. As on the page, a change of the post offer's price may cancel the managed-service proposals accepted for the media whose price it changes, and raising the price above the best competitor's tells Growwer's support team. A restricted seller account may edit its fees.
379
+ Sets the fees, extra services, typology and post offer characteristics of one of your medias, as the media edit page saves them. Send only the fields you change: a field you send replaces that field wholly, a field you leave out stays as it is, inside `postOffer` too (sending only `postOffer.maximumLinks` keeps your fees). - `typology` is `blog` or `press`. - `postOffer.pricingOptions` lists every link type you offer for sponsored posts, at least one. A link type you leave out is no longer offered. Each option needs at least one fee, and every option must offer the same sides (written by you, written by the buyer or Growwer), as the page requires. Each fee is at least 1 EUR. - `postOffer.maximumLinks` is how many links a sponsored post may hold, 1 to 4; `postOffer.advertisingLabellingPolicy` whether posts are labelled as advertising (`always` or `never`); `postOffer.promotedSocialNetworks` the full list of social networks posts are promoted on, each once (an empty list for none). - `linkAdditionOffer.pricingOptions` lists the link types you offer for adding a link to an existing article; `null` or an empty list stops offering link additions. - `extraServices` is the full list of extra services you offer; an empty list removes them all. It is sent at the top level, although GET /seller/medias/{id} reads it inside `postOffer`. The fees are your base fees, the ones GET /seller/medias/{id} returns: while a flash offer runs, its discount keeps applying on top of them, and `currentCost` shows the result. `currentCost` may be sent back as read and is ignored. Country, language, topics and comments are not edited here. As on the page, a change of the post offer's price may cancel the managed-service proposals accepted for the media whose price it changes, and raising the price above the best competitor's tells Growwer's support team. A restricted seller account may edit its offer.
237
380
 
238
381
  ### Examples
239
382
 
@@ -252,7 +395,7 @@ idempotency_key = 'idempotency_key_example' # String | A new key for each write,
252
395
  update_seller_media_request = Growwer::UpdateSellerMediaRequest.new # UpdateSellerMediaRequest |
253
396
 
254
397
  begin
255
- # Edit the fees of a media you sell on
398
+ # Edit the offer of a media you sell on
256
399
  result = api_instance.update_seller_media(id, idempotency_key, update_seller_media_request)
257
400
  p result
258
401
  rescue Growwer::ApiError => e
@@ -268,7 +411,7 @@ This returns an Array which contains the response data, status code and headers.
268
411
 
269
412
  ```ruby
270
413
  begin
271
- # Edit the fees of a media you sell on
414
+ # Edit the offer of a media you sell on
272
415
  data, status_code, headers = api_instance.update_seller_media_with_http_info(id, idempotency_key, update_seller_media_request)
273
416
  p status_code # => 2xx
274
417
  p headers # => { ... }
@@ -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
 
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **typology** | **String** | | [optional] |
7
8
  | **post_offer** | [**UpdateSellerMediaRequestPostOffer**](UpdateSellerMediaRequestPostOffer.md) | | [optional] |
8
9
  | **link_addition_offer** | [**UpdateSellerMediaRequestLinkAdditionOffer**](UpdateSellerMediaRequestLinkAdditionOffer.md) | | [optional] |
9
10
  | **extra_services** | [**Array&lt;UpdateSellerMediaRequestExtraServicesInner&gt;**](UpdateSellerMediaRequestExtraServicesInner.md) | | [optional] |
@@ -14,6 +15,7 @@
14
15
  require 'growwer'
15
16
 
16
17
  instance = Growwer::UpdateSellerMediaRequest.new(
18
+ typology: null,
17
19
  post_offer: null,
18
20
  link_addition_offer: null,
19
21
  extra_services: null
@@ -4,7 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **pricing_options** | [**Array&lt;UpdateSellerMediaRequestPostOfferPricingOptionsInner&gt;**](UpdateSellerMediaRequestPostOfferPricingOptionsInner.md) | | |
7
+ | **pricing_options** | [**Array&lt;UpdateSellerMediaRequestPostOfferPricingOptionsInner&gt;**](UpdateSellerMediaRequestPostOfferPricingOptionsInner.md) | | [optional] |
8
+ | **maximum_links** | **Integer** | | [optional] |
9
+ | **advertising_labelling_policy** | **String** | | [optional] |
10
+ | **promoted_social_networks** | **Array&lt;String&gt;** | | [optional] |
8
11
 
9
12
  ## Example
10
13
 
@@ -12,7 +15,10 @@
12
15
  require 'growwer'
13
16
 
14
17
  instance = Growwer::UpdateSellerMediaRequestPostOffer.new(
15
- pricing_options: null
18
+ pricing_options: null,
19
+ maximum_links: null,
20
+ advertising_labelling_policy: null,
21
+ promoted_social_networks: null
16
22
  )
17
23
  ```
18
24
 
@@ -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