late-sdk 0.0.767 → 0.0.769
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/GetWhatsAppLibraryTemplate200ResponseTemplate.md +2 -0
- data/docs/WhatsAppTemplatesApi.md +8 -4
- data/lib/zernio-sdk/api/whats_app_templates_api.rb +3 -0
- data/lib/zernio-sdk/models/get_whats_app_library_template200_response_template.rb +12 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +2 -0
- data/spec/api/whats_app_templates_api_spec.rb +1 -0
- data/spec/models/get_whats_app_library_template200_response_template_spec.rb +6 -0
- data/zernio-sdk-0.0.769.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.767.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4becc9ae69049fa64403fb52b9f69bf5da818d3896e0ef6b49904c15a729e8a0
|
|
4
|
+
data.tar.gz: af3fbee82165e96b2db1a294f9ec65fe24d58d33d0c70e6f5c708bfa9329b10c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b491b36074085e1bfb2517b82a87c2f4a6b29a43e7d99d978b7c8979e93a824778c0721cddf2956dd516d12e85bcc939ce53c2509c8d414d1c8ef0d4e937161
|
|
7
|
+
data.tar.gz: d801eca1dc611d066dc4dc060bb95844a4605cf11b55c679fb005b55f86a7e42363800a178dc7a84a2e777ce42a8549bfbab5aad4b85ea2e4e455e3bd7a71bef
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
| **category** | **String** | | [optional] |
|
|
10
10
|
| **body** | **String** | | [optional] |
|
|
11
11
|
| **body_params** | **Array<String>** | | [optional] |
|
|
12
|
+
| **available_languages** | **Array<String>** | | [optional] |
|
|
12
13
|
| **buttons** | [**Array<GetWhatsAppLibraryTemplate200ResponseTemplateButtonsInner>**](GetWhatsAppLibraryTemplate200ResponseTemplateButtonsInner.md) | | [optional] |
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -22,6 +23,7 @@ instance = Zernio::GetWhatsAppLibraryTemplate200ResponseTemplate.new(
|
|
|
22
23
|
category: null,
|
|
23
24
|
body: null,
|
|
24
25
|
body_params: null,
|
|
26
|
+
available_languages: null,
|
|
25
27
|
buttons: null
|
|
26
28
|
)
|
|
27
29
|
```
|
|
@@ -9,7 +9,7 @@ All URIs are relative to *https://zernio.com/api*
|
|
|
9
9
|
|
|
10
10
|
## get_whats_app_library_template
|
|
11
11
|
|
|
12
|
-
> <GetWhatsAppLibraryTemplate200Response> get_whats_app_library_template(account_id, name)
|
|
12
|
+
> <GetWhatsAppLibraryTemplate200Response> get_whats_app_library_template(account_id, name, opts)
|
|
13
13
|
|
|
14
14
|
Look up a library template
|
|
15
15
|
|
|
@@ -29,10 +29,13 @@ end
|
|
|
29
29
|
api_instance = Zernio::WhatsAppTemplatesApi.new
|
|
30
30
|
account_id = 'account_id_example' # String | WhatsApp social account ID
|
|
31
31
|
name = 'name_example' # String | Exact library template name
|
|
32
|
+
opts = {
|
|
33
|
+
language: 'language_example' # String | Desired language variant (e.g. es, en_US). If the template is not offered in it, the first available variant is returned and named in the response language field.
|
|
34
|
+
}
|
|
32
35
|
|
|
33
36
|
begin
|
|
34
37
|
# Look up a library template
|
|
35
|
-
result = api_instance.get_whats_app_library_template(account_id, name)
|
|
38
|
+
result = api_instance.get_whats_app_library_template(account_id, name, opts)
|
|
36
39
|
p result
|
|
37
40
|
rescue Zernio::ApiError => e
|
|
38
41
|
puts "Error when calling WhatsAppTemplatesApi->get_whats_app_library_template: #{e}"
|
|
@@ -43,12 +46,12 @@ end
|
|
|
43
46
|
|
|
44
47
|
This returns an Array which contains the response data, status code and headers.
|
|
45
48
|
|
|
46
|
-
> <Array(<GetWhatsAppLibraryTemplate200Response>, Integer, Hash)> get_whats_app_library_template_with_http_info(account_id, name)
|
|
49
|
+
> <Array(<GetWhatsAppLibraryTemplate200Response>, Integer, Hash)> get_whats_app_library_template_with_http_info(account_id, name, opts)
|
|
47
50
|
|
|
48
51
|
```ruby
|
|
49
52
|
begin
|
|
50
53
|
# Look up a library template
|
|
51
|
-
data, status_code, headers = api_instance.get_whats_app_library_template_with_http_info(account_id, name)
|
|
54
|
+
data, status_code, headers = api_instance.get_whats_app_library_template_with_http_info(account_id, name, opts)
|
|
52
55
|
p status_code # => 2xx
|
|
53
56
|
p headers # => { ... }
|
|
54
57
|
p data # => <GetWhatsAppLibraryTemplate200Response>
|
|
@@ -63,6 +66,7 @@ end
|
|
|
63
66
|
| ---- | ---- | ----------- | ----- |
|
|
64
67
|
| **account_id** | **String** | WhatsApp social account ID | |
|
|
65
68
|
| **name** | **String** | Exact library template name | |
|
|
69
|
+
| **language** | **String** | Desired language variant (e.g. es, en_US). If the template is not offered in it, the first available variant is returned and named in the response language field. | [optional] |
|
|
66
70
|
|
|
67
71
|
### Return type
|
|
68
72
|
|
|
@@ -24,6 +24,7 @@ module Zernio
|
|
|
24
24
|
# @param account_id [String] WhatsApp social account ID
|
|
25
25
|
# @param name [String] Exact library template name
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @option opts [String] :language Desired language variant (e.g. es, en_US). If the template is not offered in it, the first available variant is returned and named in the response language field.
|
|
27
28
|
# @return [GetWhatsAppLibraryTemplate200Response]
|
|
28
29
|
def get_whats_app_library_template(account_id, name, opts = {})
|
|
29
30
|
data, _status_code, _headers = get_whats_app_library_template_with_http_info(account_id, name, opts)
|
|
@@ -35,6 +36,7 @@ module Zernio
|
|
|
35
36
|
# @param account_id [String] WhatsApp social account ID
|
|
36
37
|
# @param name [String] Exact library template name
|
|
37
38
|
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :language Desired language variant (e.g. es, en_US). If the template is not offered in it, the first available variant is returned and named in the response language field.
|
|
38
40
|
# @return [Array<(GetWhatsAppLibraryTemplate200Response, Integer, Hash)>] GetWhatsAppLibraryTemplate200Response data, response status code and response headers
|
|
39
41
|
def get_whats_app_library_template_with_http_info(account_id, name, opts = {})
|
|
40
42
|
if @api_client.config.debugging
|
|
@@ -55,6 +57,7 @@ module Zernio
|
|
|
55
57
|
query_params = opts[:query_params] || {}
|
|
56
58
|
query_params[:'accountId'] = account_id
|
|
57
59
|
query_params[:'name'] = name
|
|
60
|
+
query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil?
|
|
58
61
|
|
|
59
62
|
# header parameters
|
|
60
63
|
header_params = opts[:header_params] || {}
|
|
@@ -25,6 +25,8 @@ module Zernio
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :body_params
|
|
27
27
|
|
|
28
|
+
attr_accessor :available_languages
|
|
29
|
+
|
|
28
30
|
attr_accessor :buttons
|
|
29
31
|
|
|
30
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -35,6 +37,7 @@ module Zernio
|
|
|
35
37
|
:'category' => :'category',
|
|
36
38
|
:'body' => :'body',
|
|
37
39
|
:'body_params' => :'body_params',
|
|
40
|
+
:'available_languages' => :'availableLanguages',
|
|
38
41
|
:'buttons' => :'buttons'
|
|
39
42
|
}
|
|
40
43
|
end
|
|
@@ -57,6 +60,7 @@ module Zernio
|
|
|
57
60
|
:'category' => :'String',
|
|
58
61
|
:'body' => :'String',
|
|
59
62
|
:'body_params' => :'Array<String>',
|
|
63
|
+
:'available_languages' => :'Array<String>',
|
|
60
64
|
:'buttons' => :'Array<GetWhatsAppLibraryTemplate200ResponseTemplateButtonsInner>'
|
|
61
65
|
}
|
|
62
66
|
end
|
|
@@ -105,6 +109,12 @@ module Zernio
|
|
|
105
109
|
end
|
|
106
110
|
end
|
|
107
111
|
|
|
112
|
+
if attributes.key?(:'available_languages')
|
|
113
|
+
if (value = attributes[:'available_languages']).is_a?(Array)
|
|
114
|
+
self.available_languages = value
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
108
118
|
if attributes.key?(:'buttons')
|
|
109
119
|
if (value = attributes[:'buttons']).is_a?(Array)
|
|
110
120
|
self.buttons = value
|
|
@@ -137,6 +147,7 @@ module Zernio
|
|
|
137
147
|
category == o.category &&
|
|
138
148
|
body == o.body &&
|
|
139
149
|
body_params == o.body_params &&
|
|
150
|
+
available_languages == o.available_languages &&
|
|
140
151
|
buttons == o.buttons
|
|
141
152
|
end
|
|
142
153
|
|
|
@@ -149,7 +160,7 @@ module Zernio
|
|
|
149
160
|
# Calculates hash code according to all attributes.
|
|
150
161
|
# @return [Integer] Hash code
|
|
151
162
|
def hash
|
|
152
|
-
[name, language, category, body, body_params, buttons].hash
|
|
163
|
+
[name, language, category, body, body_params, available_languages, buttons].hash
|
|
153
164
|
end
|
|
154
165
|
|
|
155
166
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -31531,6 +31531,7 @@ paths:
|
|
|
31531
31531
|
parameters:
|
|
31532
31532
|
- { name: accountId, in: query, required: true, schema: { type: string }, description: WhatsApp social account ID }
|
|
31533
31533
|
- { name: name, in: query, required: true, schema: { type: string }, description: Exact library template name }
|
|
31534
|
+
- { name: language, in: query, required: false, schema: { type: string }, description: 'Desired language variant (e.g. es, en_US). If the template is not offered in it, the first available variant is returned and named in the response language field.' }
|
|
31534
31535
|
responses:
|
|
31535
31536
|
'200':
|
|
31536
31537
|
description: Library template (or null if no exact match)
|
|
@@ -31547,6 +31548,7 @@ paths:
|
|
|
31547
31548
|
category: { type: string }
|
|
31548
31549
|
body: { type: string }
|
|
31549
31550
|
body_params: { type: array, items: { type: string } }
|
|
31551
|
+
availableLanguages: { type: array, items: { type: string } }
|
|
31550
31552
|
buttons:
|
|
31551
31553
|
type: array
|
|
31552
31554
|
items:
|
|
@@ -38,6 +38,7 @@ describe 'WhatsAppTemplatesApi' do
|
|
|
38
38
|
# @param account_id WhatsApp social account ID
|
|
39
39
|
# @param name Exact library template name
|
|
40
40
|
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @option opts [String] :language Desired language variant (e.g. es, en_US). If the template is not offered in it, the first available variant is returned and named in the response language field.
|
|
41
42
|
# @return [GetWhatsAppLibraryTemplate200Response]
|
|
42
43
|
describe 'get_whats_app_library_template test' do
|
|
43
44
|
it 'should work' do
|
|
@@ -57,6 +57,12 @@ describe Zernio::GetWhatsAppLibraryTemplate200ResponseTemplate do
|
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
describe 'test attribute "available_languages"' do
|
|
61
|
+
it 'should work' do
|
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
60
66
|
describe 'test attribute "buttons"' do
|
|
61
67
|
it 'should work' do
|
|
62
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.769
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -5446,7 +5446,7 @@ files:
|
|
|
5446
5446
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
5447
5447
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
5448
5448
|
- spec/spec_helper.rb
|
|
5449
|
-
- zernio-sdk-0.0.
|
|
5449
|
+
- zernio-sdk-0.0.769.gem
|
|
5450
5450
|
- zernio-sdk.gemspec
|
|
5451
5451
|
homepage: https://openapi-generator.tech
|
|
5452
5452
|
licenses:
|
data/zernio-sdk-0.0.767.gem
DELETED
|
Binary file
|