late-sdk 0.0.768 → 0.0.770

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e94f9974d6131f44f791483e26a4db043d98ee85fabfa5c90f072adf04d74031
4
- data.tar.gz: 4b50679bf32de30aa83ee7b2ad2f7bab2a2499ea2d378899ef80a0e1ca050b7b
3
+ metadata.gz: e324b1299abbb9d6d347af381df90439000bad01687714f6e6d5eaf3b0ff64d8
4
+ data.tar.gz: bdcee9bd083e501981fae50520fe589737445984781ba13565e3a47e2ad30bd3
5
5
  SHA512:
6
- metadata.gz: 2267a71ee03e232066195448cd701d47bb0145d5fc2a43b7a86e3afd8896a69c6a0deef5d169679942c51b6d3d78e4eb234cb7fecbabc0e9ef7bc7cce64d46ca
7
- data.tar.gz: 4fa47ccefccdd3c2f4c769e6de2a3481be7940094d8fd9276b01eb8690f88083e53ca6ac9131692d6a34362f320a30126bba198d579b93be1bad76baf0db7fe7
6
+ metadata.gz: b5c8325d8b5ab86b522953eac4abf82e59a6cd666c0171cea1d192dc5676e3e0547a9ff3833ad4683e2b3d7d56c6b00147d8bd6ef7c02287dcb573d621b1d4f2
7
+ data.tar.gz: 19c19c02f64c58d1c68320e0fcc59a9dd415cdb36908d43d1bc3f7330c769befde02399a8e21b8eab023f4ec77c5794e45a9214634af9e328c0fe730bb5cecfc
@@ -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] || {}
@@ -118,7 +118,7 @@ module Zernio
118
118
  def valid?
119
119
  warn '[DEPRECATED] the `valid?` method is obsolete'
120
120
  return false if @platform.nil?
121
- platform_validator = EnumAttributeValidator.new('String', ["facebook", "instagram"])
121
+ platform_validator = EnumAttributeValidator.new('String', ["facebook", "instagram", "google"])
122
122
  return false unless platform_validator.valid?(@platform)
123
123
  true
124
124
  end
@@ -126,7 +126,7 @@ module Zernio
126
126
  # Custom attribute writer method checking allowed values (enum).
127
127
  # @param [Object] platform Object to be assigned
128
128
  def platform=(platform)
129
- validator = EnumAttributeValidator.new('String', ["facebook", "instagram"])
129
+ validator = EnumAttributeValidator.new('String', ["facebook", "instagram", "google"])
130
130
  unless validator.valid?(platform)
131
131
  fail ArgumentError, "invalid value for \"platform\", must be one of #{validator.allowable_values}."
132
132
  end
@@ -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
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.768'
14
+ VERSION = '0.0.770'
15
15
  end
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:
@@ -39607,7 +39609,7 @@ paths:
39607
39609
  x-resource-group: "ads"
39608
39610
  operationId: deleteAdCampaign
39609
39611
  tags: ["Ad Campaigns"]
39610
- x-platforms: ["meta", "tiktok"]
39612
+ x-platforms: ["meta", "tiktok", "google"]
39611
39613
  summary: Delete a campaign
39612
39614
  description: |
39613
39615
  Deletes the whole campaign on the platform, cascading to its ad sets
@@ -39633,7 +39635,7 @@ paths:
39633
39635
  type: object
39634
39636
  required: [platform]
39635
39637
  properties:
39636
- platform: { type: string, enum: [facebook, instagram] }
39638
+ platform: { type: string, enum: [facebook, instagram, google] }
39637
39639
  accountId: { type: string, description: "Zernio SocialAccount id owning the ad account. Required only to delete an EMPTY campaign (zero ads), which has no local Ad documents to resolve a token from." }
39638
39640
  responses:
39639
39641
  '200':
@@ -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
@@ -30,7 +30,7 @@ describe Zernio::DeleteAdCampaignRequest do
30
30
  describe 'test attribute "platform"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["facebook", "instagram"])
33
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["facebook", "instagram", "google"])
34
34
  # validator.allowable_values.each do |value|
35
35
  # expect { instance.platform = value }.not_to raise_error
36
36
  # end
@@ -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.768
4
+ version: 0.0.770
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.768.gem
5449
+ - zernio-sdk-0.0.770.gem
5450
5450
  - zernio-sdk.gemspec
5451
5451
  homepage: https://openapi-generator.tech
5452
5452
  licenses:
Binary file