dyspatch_client 4.0.0 → 5.0.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 (51) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +8 -8
  4. data/docs/DraftsApi.md +22 -22
  5. data/docs/LocalizationMetaRead.md +7 -5
  6. data/docs/LocalizationRead.md +5 -3
  7. data/docs/LocalizationsApi.md +3 -3
  8. data/docs/TemplatesApi.md +6 -6
  9. data/dyspatch_client.gemspec +4 -4
  10. data/lib/dyspatch_client.rb +3 -3
  11. data/lib/dyspatch_client/api/drafts_api.rb +28 -26
  12. data/lib/dyspatch_client/api/localizations_api.rb +7 -7
  13. data/lib/dyspatch_client/api/templates_api.rb +10 -10
  14. data/lib/dyspatch_client/api_client.rb +3 -3
  15. data/lib/dyspatch_client/api_error.rb +3 -3
  16. data/lib/dyspatch_client/configuration.rb +3 -3
  17. data/lib/dyspatch_client/models/api_error.rb +3 -3
  18. data/lib/dyspatch_client/models/compiled_read.rb +3 -3
  19. data/lib/dyspatch_client/models/cursor.rb +3 -3
  20. data/lib/dyspatch_client/models/draft_meta_read.rb +3 -3
  21. data/lib/dyspatch_client/models/draft_read.rb +3 -3
  22. data/lib/dyspatch_client/models/drafts_read.rb +3 -3
  23. data/lib/dyspatch_client/models/inline_object.rb +3 -3
  24. data/lib/dyspatch_client/models/localization_key_read.rb +3 -3
  25. data/lib/dyspatch_client/models/localization_meta_read.rb +35 -23
  26. data/lib/dyspatch_client/models/localization_read.rb +26 -14
  27. data/lib/dyspatch_client/models/template_meta_read.rb +3 -3
  28. data/lib/dyspatch_client/models/template_read.rb +3 -3
  29. data/lib/dyspatch_client/models/templates_read.rb +3 -3
  30. data/lib/dyspatch_client/version.rb +4 -4
  31. data/spec/api/drafts_api_spec.rb +11 -11
  32. data/spec/api/localizations_api_spec.rb +3 -3
  33. data/spec/api/templates_api_spec.rb +4 -4
  34. data/spec/api_client_spec.rb +2 -2
  35. data/spec/configuration_spec.rb +13 -11
  36. data/spec/integration_spec.rb +1 -1
  37. data/spec/models/api_error_spec.rb +2 -2
  38. data/spec/models/compiled_read_spec.rb +2 -2
  39. data/spec/models/cursor_spec.rb +2 -2
  40. data/spec/models/draft_meta_read_spec.rb +2 -2
  41. data/spec/models/draft_read_spec.rb +2 -2
  42. data/spec/models/drafts_read_spec.rb +2 -2
  43. data/spec/models/inline_object_spec.rb +2 -2
  44. data/spec/models/localization_key_read_spec.rb +2 -2
  45. data/spec/models/localization_meta_read_spec.rb +12 -6
  46. data/spec/models/localization_read_spec.rb +9 -3
  47. data/spec/models/template_meta_read_spec.rb +2 -2
  48. data/spec/models/template_read_spec.rb +2 -2
  49. data/spec/models/templates_read_spec.rb +2 -2
  50. data/spec/spec_helper.rb +2 -2
  51. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 506b511bcf51b01de550903e22b0ce4758c7a6a8b1bb3796deaa599d140e5f9d
4
- data.tar.gz: d78408ecc189018bdf49924b5708fdbabc42d2687efa8271d355828bf04aafa6
3
+ metadata.gz: 3f994478c30fa482f42dc091a09002d4170676e42e285f02a71e2da570129562
4
+ data.tar.gz: fff7e8579eedf7772ac2ca6f9456f790a47374259af94475e2730de5c74d6a0c
5
5
  SHA512:
6
- metadata.gz: 9f0b7a4e848cabaaff65d1f0ad7d9d431df3faa38c357e6baf951cddcd5e2c43155969c6c4e12fcd61aeaa89f6a93d820289f7343a77bd854d10d3b378307f59
7
- data.tar.gz: 5d687adb4d35a9477fa9a9fe687f7c5433fabcf6be3cf0db92bf9603c7c3f7de848011951f47581dbc298da7ba8c45ad0233fb0638422dafaf6210a9f1a43623
6
+ metadata.gz: 8ce4334bdf4a25b8751e38c16bf80bec065e8940bc64bae791126caa0b0bd6881588aba90abd258805396467a88c251087ed251dcc19e4676a260d119c9cd063
7
+ data.tar.gz: 9a98320876eb34ab3aa725d1e9fd6ee19766009128b1677804c8e1cdcf92bcb2e65821984f9bb37e6a569ffad385883a2261a1016e5060cc8096ee5cf594acbc
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.0.0'
6
+ gem 'rake', '~> 12.3.3'
7
7
  gem 'pry-byebug'
8
8
  gem 'rubocop', '~> 0.66.0'
9
9
  end
data/README.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
4
4
 
5
- - API version: 2019.10
6
- - Package version: 4.0.0
5
+ - API version: 2020.04
6
+ - Package version: 5.0.0
7
7
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
8
8
 
9
9
  For more information, please visit [https://docs.dyspatch.io](https://docs.dyspatch.io)
@@ -43,21 +43,21 @@ gem build dyspatch_client.gemspec
43
43
  Then either install the gem locally:
44
44
 
45
45
  ```shell
46
- gem install ./dyspatch_client-3.0.1.gem
46
+ gem install ./dyspatch_client-5.0.0.gem
47
47
  ```
48
- (for development, run `gem install --dev ./dyspatch_client-3.0.1.gem` to install the development dependencies)
48
+ (for development, run `gem install --dev ./dyspatch_client-5.0.0.gem` to install the development dependencies)
49
49
 
50
50
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
51
51
 
52
52
  Finally add this to the Gemfile:
53
53
 
54
- gem 'dyspatch_client', '~> 3.0.1'
54
+ gem 'dyspatch_client', '~> 5.0.0'
55
55
 
56
56
  ### Install from Git
57
57
 
58
- If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
58
+ If the Ruby gem is hosted at a git repository: https://github.com/getdyspatch/dyspatch-ruby, then add the following in the Gemfile:
59
59
 
60
- gem 'dyspatch_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
60
+ gem 'dyspatch_client', :git => 'https://github.com/getdyspatch/dyspatch-ruby.git'
61
61
 
62
62
  ### Include the Ruby code directly
63
63
 
@@ -86,7 +86,7 @@ end
86
86
  api_instance = DyspatchClient::DraftsApi.new
87
87
  draft_id = 'draft_id_example' # String | A draft ID
88
88
  language_id = 'language_id_example' # String | A language ID (eg: en-US)
89
- accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
89
+ accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
90
90
 
91
91
  begin
92
92
  #Remove a localization
@@ -39,7 +39,7 @@ end
39
39
  api_instance = DyspatchClient::DraftsApi.new
40
40
  draft_id = 'draft_id_example' # String | A draft ID
41
41
  language_id = 'language_id_example' # String | A language ID (eg: en-US)
42
- accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
42
+ accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
43
43
 
44
44
  begin
45
45
  #Remove a localization
@@ -56,7 +56,7 @@ Name | Type | Description | Notes
56
56
  ------------- | ------------- | ------------- | -------------
57
57
  **draft_id** | **String**| A draft ID |
58
58
  **language_id** | **String**| A language ID (eg: en-US) |
59
- **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\" |
59
+ **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
60
60
 
61
61
  ### Return type
62
62
 
@@ -96,7 +96,7 @@ end
96
96
  api_instance = DyspatchClient::DraftsApi.new
97
97
  draft_id = 'draft_id_example' # String | A draft ID
98
98
  target_language = 'target_language_example' # String | The type of templating language to compile as. Should only be used for visual templates.
99
- accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
99
+ accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
100
100
 
101
101
  begin
102
102
  #Get Draft by ID
@@ -114,7 +114,7 @@ Name | Type | Description | Notes
114
114
  ------------- | ------------- | ------------- | -------------
115
115
  **draft_id** | **String**| A draft ID |
116
116
  **target_language** | **String**| The type of templating language to compile as. Should only be used for visual templates. |
117
- **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\" |
117
+ **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
118
118
 
119
119
  ### Return type
120
120
 
@@ -127,7 +127,7 @@ Name | Type | Description | Notes
127
127
  ### HTTP request headers
128
128
 
129
129
  - **Content-Type**: Not defined
130
- - **Accept**: application/vnd.dyspatch.2019.10+json, */*
130
+ - **Accept**: application/vnd.dyspatch.2020.04+json, */*
131
131
 
132
132
 
133
133
  ## get_draft_localization_keys
@@ -136,7 +136,7 @@ Name | Type | Description | Notes
136
136
 
137
137
  Get localization keys
138
138
 
139
- Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2019.10+json` to get a JSON object, or `text/vnd.dyspatch.2019.10+x-gettext-translation` to get the POT file.
139
+ Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2020.04+json` to get a JSON object, or `text/vnd.dyspatch.2020.04+x-gettext-translation` to get the POT file.
140
140
 
141
141
  ### Example
142
142
 
@@ -153,7 +153,7 @@ end
153
153
 
154
154
  api_instance = DyspatchClient::DraftsApi.new
155
155
  draft_id = 'draft_id_example' # String | A draft ID
156
- accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
156
+ accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
157
157
 
158
158
  begin
159
159
  #Get localization keys
@@ -170,7 +170,7 @@ end
170
170
  Name | Type | Description | Notes
171
171
  ------------- | ------------- | ------------- | -------------
172
172
  **draft_id** | **String**| A draft ID |
173
- **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\" |
173
+ **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
174
174
 
175
175
  ### Return type
176
176
 
@@ -183,7 +183,7 @@ Name | Type | Description | Notes
183
183
  ### HTTP request headers
184
184
 
185
185
  - **Content-Type**: Not defined
186
- - **Accept**: application/vnd.dyspatch.2019.10+json, text/vnd.dyspatch.2019.10+x-gettext-translation
186
+ - **Accept**: application/vnd.dyspatch.2020.04+json, text/vnd.dyspatch.2020.04+x-gettext-translation
187
187
 
188
188
 
189
189
  ## get_drafts
@@ -208,7 +208,7 @@ DyspatchClient.configure do |config|
208
208
  end
209
209
 
210
210
  api_instance = DyspatchClient::DraftsApi.new
211
- accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
211
+ accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
212
212
  opts = {
213
213
  cursor: 'cursor_example', # String | A cursor value used to retrieve a specific page from a paginated result set.
214
214
  status: 'status_example' # String | Filter the list of drafts by a particular status
@@ -228,7 +228,7 @@ end
228
228
 
229
229
  Name | Type | Description | Notes
230
230
  ------------- | ------------- | ------------- | -------------
231
- **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\" |
231
+ **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
232
232
  **cursor** | **String**| A cursor value used to retrieve a specific page from a paginated result set. | [optional]
233
233
  **status** | **String**| Filter the list of drafts by a particular status | [optional]
234
234
 
@@ -243,7 +243,7 @@ Name | Type | Description | Notes
243
243
  ### HTTP request headers
244
244
 
245
245
  - **Content-Type**: Not defined
246
- - **Accept**: application/vnd.dyspatch.2019.10+json, */*
246
+ - **Accept**: application/vnd.dyspatch.2020.04+json, */*
247
247
 
248
248
 
249
249
  ## get_localization_for_draft
@@ -269,7 +269,7 @@ end
269
269
 
270
270
  api_instance = DyspatchClient::DraftsApi.new
271
271
  draft_id = 'draft_id_example' # String | A draft ID
272
- accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
272
+ accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
273
273
 
274
274
  begin
275
275
  #Get localizations on a draft
@@ -286,7 +286,7 @@ end
286
286
  Name | Type | Description | Notes
287
287
  ------------- | ------------- | ------------- | -------------
288
288
  **draft_id** | **String**| A draft ID |
289
- **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\" |
289
+ **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
290
290
 
291
291
  ### Return type
292
292
 
@@ -299,7 +299,7 @@ Name | Type | Description | Notes
299
299
  ### HTTP request headers
300
300
 
301
301
  - **Content-Type**: Not defined
302
- - **Accept**: application/vnd.dyspatch.2019.10+json
302
+ - **Accept**: application/vnd.dyspatch.2020.04+json
303
303
 
304
304
 
305
305
  ## save_localization
@@ -326,7 +326,7 @@ end
326
326
  api_instance = DyspatchClient::DraftsApi.new
327
327
  draft_id = 'draft_id_example' # String | A draft ID
328
328
  language_id = 'language_id_example' # String | A language ID (eg: en-US)
329
- accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
329
+ accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
330
330
  inline_object = DyspatchClient::InlineObject.new # InlineObject |
331
331
 
332
332
  begin
@@ -344,7 +344,7 @@ Name | Type | Description | Notes
344
344
  ------------- | ------------- | ------------- | -------------
345
345
  **draft_id** | **String**| A draft ID |
346
346
  **language_id** | **String**| A language ID (eg: en-US) |
347
- **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\" |
347
+ **accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
348
348
  **inline_object** | [**InlineObject**](InlineObject.md)| |
349
349
 
350
350
  ### Return type
@@ -385,7 +385,7 @@ end
385
385
  api_instance = DyspatchClient::DraftsApi.new
386
386
  draft_id = 'draft_id_example' # String | A draft ID
387
387
  language_id = 'language_id_example' # String | A language ID (eg: en-US)
388
- accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
388
+ accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
389
389
  request_body = {'key' => 'request_body_example'} # Hash<String, String> |
390
390
 
391
391
  begin
@@ -403,7 +403,7 @@ Name | Type | Description | Notes
403
403
  ------------- | ------------- | ------------- | -------------
404
404
  **draft_id** | **String**| A draft ID |
405
405
  **language_id** | **String**| A language ID (eg: en-US) |
406
- **accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot; |
406
+ **accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot; |
407
407
  **request_body** | [**Hash&lt;String, String&gt;**](String.md)| |
408
408
 
409
409
  ### Return type
@@ -417,7 +417,7 @@ nil (empty response body)
417
417
  ### HTTP request headers
418
418
 
419
419
  - **Content-Type**: application/json
420
- - **Accept**: Not defined
420
+ - **Accept**: */*
421
421
 
422
422
 
423
423
  ## submit_draft_for_approval
@@ -443,7 +443,7 @@ end
443
443
 
444
444
  api_instance = DyspatchClient::DraftsApi.new
445
445
  draft_id = 'draft_id_example' # String | A draft ID
446
- accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
446
+ accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
447
447
 
448
448
  begin
449
449
  #Submit the draft for approval
@@ -459,7 +459,7 @@ end
459
459
  Name | Type | Description | Notes
460
460
  ------------- | ------------- | ------------- | -------------
461
461
  **draft_id** | **String**| A draft ID |
462
- **accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot; |
462
+ **accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot; |
463
463
 
464
464
  ### Return type
465
465
 
@@ -4,20 +4,22 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **localization** | **String** | An opaque, unique identifier for a localization | [optional]
8
- **language** | **String** | A language identifier comprised of a language and a country identifier. See [supported languages](https://docs.dyspatch.io/localization/supported_languages/). | [optional]
7
+ **id** | **String** | An opaque, unique identifier for a localization | [optional]
9
8
  **name** | **String** | The user-specified name of a localization | [optional]
10
9
  **url** | **String** | The API url for a specific localization | [optional]
10
+ **locale_group** | **String** | the locale group this localization belongs to, if this field is empty the localization does not belong to any locale group | [optional]
11
+ **languages** | **Array&lt;String&gt;** | a list of locale codes that are available in the localization. See [supported languages](https://docs.dyspatch.io/localization/supported_languages/) for an exhaustive list of locale codes. | [optional]
11
12
 
12
13
  ## Code Sample
13
14
 
14
15
  ```ruby
15
16
  require 'DyspatchClient'
16
17
 
17
- instance = DyspatchClient::LocalizationMetaRead.new(localization: loc_g3L7Cw6Hp5wUaf395LehwK,
18
- language: en-US,
18
+ instance = DyspatchClient::LocalizationMetaRead.new(id: loc_g3L7Cw6Hp5wUaf395LehwK,
19
19
  name: English (US),
20
- url: /localizations/loc_g3L7Cw6Hp5wUaf395LehwK)
20
+ url: /localizations/loc_g3L7Cw6Hp5wUaf395LehwK,
21
+ locale_group: lgr_alka38ajla301,
22
+ languages: null)
21
23
  ```
22
24
 
23
25
 
@@ -5,13 +5,14 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **id** | **String** | An opaque, unique identifier for a localization | [optional]
8
- **language** | **String** | A language identifier comprised of a language and a country identifier. See [supported languages](https://docs.dyspatch.io/localization/supported_languages/). | [optional]
8
+ **languages** | **Array&lt;String&gt;** | a list of locale codes that are available in the localization. See [supported languages](https://docs.dyspatch.io/localization/supported_languages/) for an exhaustive list of locale codes. | [optional]
9
9
  **url** | **String** | The API url for a specific localization | [optional]
10
10
  **template** | **String** | An opaque, unique identifier for a template | [optional]
11
11
  **compiled** | [**CompiledRead**](CompiledRead.md) | | [optional]
12
12
  **created_at** | **DateTime** | The time of initial creation | [optional]
13
13
  **updated_at** | **DateTime** | The time of last update | [optional]
14
14
  **name** | **String** | The user-specified name of a localization | [optional]
15
+ **locale_group** | **String** | the locale group this localization belongs to, if this field is empty the localization does not belong to any locale group | [optional]
15
16
 
16
17
  ## Code Sample
17
18
 
@@ -19,13 +20,14 @@ Name | Type | Description | Notes
19
20
  require 'DyspatchClient'
20
21
 
21
22
  instance = DyspatchClient::LocalizationRead.new(id: loc_g3L7Cw6Hp5wUaf395LehwK,
22
- language: en-US,
23
+ languages: null,
23
24
  url: /localizations/loc_g3L7Cw6Hp5wUaf395LehwK,
24
25
  template: tem_g3L7Cw6Hp5wU,
25
26
  compiled: null,
26
27
  created_at: null,
27
28
  updated_at: null,
28
- name: English (US))
29
+ name: English (US),
30
+ locale_group: lgr_alka38ajla301)
29
31
  ```
30
32
 
31
33
 
@@ -32,7 +32,7 @@ end
32
32
  api_instance = DyspatchClient::LocalizationsApi.new
33
33
  localization_id = 'localization_id_example' # String | A localization ID
34
34
  target_language = 'target_language_example' # String | The type of templating language to compile as. Should only be used for visual templates.
35
- accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
35
+ accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
36
36
 
37
37
  begin
38
38
  #Get Localization Object by ID
@@ -50,7 +50,7 @@ Name | Type | Description | Notes
50
50
  ------------- | ------------- | ------------- | -------------
51
51
  **localization_id** | **String**| A localization ID |
52
52
  **target_language** | **String**| The type of templating language to compile as. Should only be used for visual templates. |
53
- **accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot; |
53
+ **accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot; |
54
54
 
55
55
  ### Return type
56
56
 
@@ -63,5 +63,5 @@ Name | Type | Description | Notes
63
63
  ### HTTP request headers
64
64
 
65
65
  - **Content-Type**: Not defined
66
- - **Accept**: application/vnd.dyspatch.2019.10+json, */*
66
+ - **Accept**: application/vnd.dyspatch.2020.04+json, */*
67
67
 
@@ -33,7 +33,7 @@ end
33
33
  api_instance = DyspatchClient::TemplatesApi.new
34
34
  template_id = 'template_id_example' # String | A template ID
35
35
  target_language = 'target_language_example' # String | The type of templating language to compile as. Should only be used for visual templates.
36
- accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
36
+ accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
37
37
 
38
38
  begin
39
39
  #Get Template by ID
@@ -51,7 +51,7 @@ Name | Type | Description | Notes
51
51
  ------------- | ------------- | ------------- | -------------
52
52
  **template_id** | **String**| A template ID |
53
53
  **target_language** | **String**| The type of templating language to compile as. Should only be used for visual templates. |
54
- **accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot; |
54
+ **accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot; |
55
55
 
56
56
  ### Return type
57
57
 
@@ -64,7 +64,7 @@ Name | Type | Description | Notes
64
64
  ### HTTP request headers
65
65
 
66
66
  - **Content-Type**: Not defined
67
- - **Accept**: application/vnd.dyspatch.2019.10+json, */*
67
+ - **Accept**: application/vnd.dyspatch.2020.04+json, */*
68
68
 
69
69
 
70
70
  ## get_templates
@@ -89,7 +89,7 @@ DyspatchClient.configure do |config|
89
89
  end
90
90
 
91
91
  api_instance = DyspatchClient::TemplatesApi.new
92
- accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2019.10\", set the value to \"application/vnd.dyspatch.2019.10+json\"
92
+ accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
93
93
  opts = {
94
94
  cursor: 'cursor_example' # String | A cursor value used to retrieve a specific page from a paginated result set.
95
95
  }
@@ -108,7 +108,7 @@ end
108
108
 
109
109
  Name | Type | Description | Notes
110
110
  ------------- | ------------- | ------------- | -------------
111
- **accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot; |
111
+ **accept** | **String**| A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot; |
112
112
  **cursor** | **String**| A cursor value used to retrieve a specific page from a paginated result set. | [optional]
113
113
 
114
114
  ### Return type
@@ -122,5 +122,5 @@ Name | Type | Description | Notes
122
122
  ### HTTP request headers
123
123
 
124
124
  - **Content-Type**: Not defined
125
- - **Accept**: application/vnd.dyspatch.2019.10+json, */*
125
+ - **Accept**: application/vnd.dyspatch.2020.04+json, */*
126
126
 
@@ -3,12 +3,12 @@
3
3
  =begin
4
4
  #Dyspatch API
5
5
 
6
- ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
6
+ ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
7
7
 
8
- The version of the OpenAPI document: 2019.10
8
+ The version of the OpenAPI document: 2020.04
9
9
  Contact: support@dyspatch.io
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.2.3-SNAPSHOT
11
+ OpenAPI Generator version: 4.2.2
12
12
 
13
13
  =end
14
14
 
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.email = ["support@dyspatch.io"]
24
24
  s.homepage = "https://www.dyspatch.io"
25
25
  s.summary = "Dyspatch is an email production platform that helps teams create and change emails faster. See https://www.dyspatch.io for more information."
26
- s.description = "# Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) "
26
+ s.description = "# Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby) "
27
27
  s.license = 'Apache-2.0'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Dyspatch API
3
3
 
4
- ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
4
+ ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
5
5
 
6
- The version of the OpenAPI document: 2019.10
6
+ The version of the OpenAPI document: 2020.04
7
7
  Contact: support@dyspatch.io
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Dyspatch API
3
3
 
4
- ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
4
+ ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
5
5
 
6
- The version of the OpenAPI document: 2019.10
6
+ The version of the OpenAPI document: 2020.04
7
7
  Contact: support@dyspatch.io
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2
10
10
 
11
11
  =end
12
12
 
@@ -23,7 +23,7 @@ module DyspatchClient
23
23
  # Deletes the localization with the given language ID if it exists
24
24
  # @param draft_id [String] A draft ID
25
25
  # @param language_id [String] A language ID (eg: en-US)
26
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
26
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @return [nil]
29
29
  def delete_localization(draft_id, language_id, accept, opts = {})
@@ -35,7 +35,7 @@ module DyspatchClient
35
35
  # Deletes the localization with the given language ID if it exists
36
36
  # @param draft_id [String] A draft ID
37
37
  # @param language_id [String] A language ID (eg: en-US)
38
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
38
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
41
41
  def delete_localization_with_http_info(draft_id, language_id, accept, opts = {})
@@ -96,7 +96,7 @@ module DyspatchClient
96
96
  # Gets a draft object with the matching ID. The \"compiled\" field will contain the template in the default, unlocalized form.
97
97
  # @param draft_id [String] A draft ID
98
98
  # @param target_language [String] The type of templating language to compile as. Should only be used for visual templates.
99
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
99
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
100
100
  # @param [Hash] opts the optional parameters
101
101
  # @return [DraftRead]
102
102
  def get_draft_by_id(draft_id, target_language, accept, opts = {})
@@ -108,7 +108,7 @@ module DyspatchClient
108
108
  # Gets a draft object with the matching ID. The \&quot;compiled\&quot; field will contain the template in the default, unlocalized form.
109
109
  # @param draft_id [String] A draft ID
110
110
  # @param target_language [String] The type of templating language to compile as. Should only be used for visual templates.
111
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
111
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
112
112
  # @param [Hash] opts the optional parameters
113
113
  # @return [Array<(DraftRead, Integer, Hash)>] DraftRead data, response status code and response headers
114
114
  def get_draft_by_id_with_http_info(draft_id, target_language, accept, opts = {})
@@ -124,7 +124,7 @@ module DyspatchClient
124
124
  fail ArgumentError, "Missing the required parameter 'target_language' when calling DraftsApi.get_draft_by_id"
125
125
  end
126
126
  # verify enum value
127
- allowable_values = ["html", "handlebars", "ampscript", "freemarker", "cheetah"]
127
+ allowable_values = ["html", "handlebars", "ampscript", "freemarker", "cheetah", "jinja"]
128
128
  if @api_client.config.client_side_validation && !allowable_values.include?(target_language)
129
129
  fail ArgumentError, "invalid value for \"target_language\", must be one of #{allowable_values}"
130
130
  end
@@ -142,7 +142,7 @@ module DyspatchClient
142
142
  # header parameters
143
143
  header_params = opts[:header_params] || {}
144
144
  # HTTP header 'Accept' (if needed)
145
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.2019.10+json', '*/*'])
145
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.2020.04+json', '*/*'])
146
146
  header_params[:'Accept'] = accept
147
147
 
148
148
  # form parameters
@@ -174,9 +174,9 @@ module DyspatchClient
174
174
  end
175
175
 
176
176
  # Get localization keys
177
- # Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2019.10+json` to get a JSON object, or `text/vnd.dyspatch.2019.10+x-gettext-translation` to get the POT file.
177
+ # Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2020.04+json` to get a JSON object, or `text/vnd.dyspatch.2020.04+x-gettext-translation` to get the POT file.
178
178
  # @param draft_id [String] A draft ID
179
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
179
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
180
180
  # @param [Hash] opts the optional parameters
181
181
  # @return [Array<LocalizationKeyRead>]
182
182
  def get_draft_localization_keys(draft_id, accept, opts = {})
@@ -185,9 +185,9 @@ module DyspatchClient
185
185
  end
186
186
 
187
187
  # Get localization keys
188
- # Returns the list of values that need to be translated for the draft. Set the &#x60;Accept&#x60; header to &#x60;application/vnd.dyspatch.2019.10+json&#x60; to get a JSON object, or &#x60;text/vnd.dyspatch.2019.10+x-gettext-translation&#x60; to get the POT file.
188
+ # Returns the list of values that need to be translated for the draft. Set the &#x60;Accept&#x60; header to &#x60;application/vnd.dyspatch.2020.04+json&#x60; to get a JSON object, or &#x60;text/vnd.dyspatch.2020.04+x-gettext-translation&#x60; to get the POT file.
189
189
  # @param draft_id [String] A draft ID
190
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
190
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
191
191
  # @param [Hash] opts the optional parameters
192
192
  # @return [Array<(Array<LocalizationKeyRead>, Integer, Hash)>] Array<LocalizationKeyRead> data, response status code and response headers
193
193
  def get_draft_localization_keys_with_http_info(draft_id, accept, opts = {})
@@ -211,7 +211,7 @@ module DyspatchClient
211
211
  # header parameters
212
212
  header_params = opts[:header_params] || {}
213
213
  # HTTP header 'Accept' (if needed)
214
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.2019.10+json', 'text/vnd.dyspatch.2019.10+x-gettext-translation'])
214
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.2020.04+json', 'text/vnd.dyspatch.2020.04+x-gettext-translation'])
215
215
  header_params[:'Accept'] = accept
216
216
 
217
217
  # form parameters
@@ -244,7 +244,7 @@ module DyspatchClient
244
244
 
245
245
  # List Drafts
246
246
  # Returns all drafts for your organization.
247
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
247
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
248
248
  # @param [Hash] opts the optional parameters
249
249
  # @option opts [String] :cursor A cursor value used to retrieve a specific page from a paginated result set.
250
250
  # @option opts [String] :status Filter the list of drafts by a particular status
@@ -256,7 +256,7 @@ module DyspatchClient
256
256
 
257
257
  # List Drafts
258
258
  # Returns all drafts for your organization.
259
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
259
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
260
260
  # @param [Hash] opts the optional parameters
261
261
  # @option opts [String] :cursor A cursor value used to retrieve a specific page from a paginated result set.
262
262
  # @option opts [String] :status Filter the list of drafts by a particular status
@@ -284,7 +284,7 @@ module DyspatchClient
284
284
  # header parameters
285
285
  header_params = opts[:header_params] || {}
286
286
  # HTTP header 'Accept' (if needed)
287
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.2019.10+json', '*/*'])
287
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.2020.04+json', '*/*'])
288
288
  header_params[:'Accept'] = accept
289
289
 
290
290
  # form parameters
@@ -318,7 +318,7 @@ module DyspatchClient
318
318
  # Get localizations on a draft
319
319
  # Returns localization metadata for the draft
320
320
  # @param draft_id [String] A draft ID
321
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
321
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
322
322
  # @param [Hash] opts the optional parameters
323
323
  # @return [Array<LocalizationMetaRead>]
324
324
  def get_localization_for_draft(draft_id, accept, opts = {})
@@ -329,7 +329,7 @@ module DyspatchClient
329
329
  # Get localizations on a draft
330
330
  # Returns localization metadata for the draft
331
331
  # @param draft_id [String] A draft ID
332
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
332
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
333
333
  # @param [Hash] opts the optional parameters
334
334
  # @return [Array<(Array<LocalizationMetaRead>, Integer, Hash)>] Array<LocalizationMetaRead> data, response status code and response headers
335
335
  def get_localization_for_draft_with_http_info(draft_id, accept, opts = {})
@@ -353,7 +353,7 @@ module DyspatchClient
353
353
  # header parameters
354
354
  header_params = opts[:header_params] || {}
355
355
  # HTTP header 'Accept' (if needed)
356
- header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.2019.10+json'])
356
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.2020.04+json'])
357
357
  header_params[:'Accept'] = accept
358
358
 
359
359
  # form parameters
@@ -388,7 +388,7 @@ module DyspatchClient
388
388
  # Inserts a localization or sets the name on an existing localization that already uses the languageId
389
389
  # @param draft_id [String] A draft ID
390
390
  # @param language_id [String] A language ID (eg: en-US)
391
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
391
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
392
392
  # @param inline_object [InlineObject]
393
393
  # @param [Hash] opts the optional parameters
394
394
  # @return [nil]
@@ -401,7 +401,7 @@ module DyspatchClient
401
401
  # Inserts a localization or sets the name on an existing localization that already uses the languageId
402
402
  # @param draft_id [String] A draft ID
403
403
  # @param language_id [String] A language ID (eg: en-US)
404
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
404
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
405
405
  # @param inline_object [InlineObject]
406
406
  # @param [Hash] opts the optional parameters
407
407
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -469,7 +469,7 @@ module DyspatchClient
469
469
  # Completely replaces any existing translations for the given language with those provided in request body. Variables embedded in keys or values are expected to be in the format `%(my_variable)s` and will automatically convert to the correct Dyspatch format depending on the type of template. Accepts key/value pairs in JSON format or in gettext PO file format. For JSON set `Content-Type` header to `application/json`. For gettext PO format set `Content-Type` header to `text/x-gettext-translation`.
470
470
  # @param draft_id [String] A draft ID
471
471
  # @param language_id [String] A language ID (eg: en-US)
472
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
472
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
473
473
  # @param request_body [Hash<String, String>]
474
474
  # @param [Hash] opts the optional parameters
475
475
  # @return [nil]
@@ -482,7 +482,7 @@ module DyspatchClient
482
482
  # Completely replaces any existing translations for the given language with those provided in request body. Variables embedded in keys or values are expected to be in the format &#x60;%(my_variable)s&#x60; and will automatically convert to the correct Dyspatch format depending on the type of template. Accepts key/value pairs in JSON format or in gettext PO file format. For JSON set &#x60;Content-Type&#x60; header to &#x60;application/json&#x60;. For gettext PO format set &#x60;Content-Type&#x60; header to &#x60;text/x-gettext-translation&#x60;.
483
483
  # @param draft_id [String] A draft ID
484
484
  # @param language_id [String] A language ID (eg: en-US)
485
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
485
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
486
486
  # @param request_body [Hash<String, String>]
487
487
  # @param [Hash] opts the optional parameters
488
488
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -514,6 +514,8 @@ module DyspatchClient
514
514
 
515
515
  # header parameters
516
516
  header_params = opts[:header_params] || {}
517
+ # HTTP header 'Accept' (if needed)
518
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
517
519
  # HTTP header 'Content-Type'
518
520
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
519
521
  header_params[:'Accept'] = accept
@@ -549,7 +551,7 @@ module DyspatchClient
549
551
  # Submit the draft for approval
550
552
  # Moves the draft into submitted state.
551
553
  # @param draft_id [String] A draft ID
552
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
554
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
553
555
  # @param [Hash] opts the optional parameters
554
556
  # @return [nil]
555
557
  def submit_draft_for_approval(draft_id, accept, opts = {})
@@ -560,7 +562,7 @@ module DyspatchClient
560
562
  # Submit the draft for approval
561
563
  # Moves the draft into submitted state.
562
564
  # @param draft_id [String] A draft ID
563
- # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2019.10\&quot;, set the value to \&quot;application/vnd.dyspatch.2019.10+json\&quot;
565
+ # @param accept [String] A version of the API that should be used for the request. For example, to use version \&quot;2020.04\&quot;, set the value to \&quot;application/vnd.dyspatch.2020.04+json\&quot;
564
566
  # @param [Hash] opts the optional parameters
565
567
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
566
568
  def submit_draft_for_approval_with_http_info(draft_id, accept, opts = {})