late-sdk 0.0.689 → 0.0.690
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/MetaLeadFormPlatformData.md +1 -5
- data/lib/zernio-sdk/models/meta_lead_form_platform_data.rb +2 -53
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +1 -3
- data/spec/models/meta_lead_form_platform_data_spec.rb +0 -16
- data/zernio-sdk-0.0.690.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.689.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: 4489d0c507f3d38fec9b2a37431974b9f46cdd3d4b1bf90515a70a36cbba8871
|
|
4
|
+
data.tar.gz: 2d992d7b5b7c13a1756281fd353a065c90a027ac7085830035e8afd7f9ebdb58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6615a350d3c26e4ce22ec63eb6d98d2e18b4aaefcde031cb0acc543aed830fcf2e109080cc33bfd1d84a9fd231724d2cb88d731846f4b9c10584fffc76b547f
|
|
7
|
+
data.tar.gz: a884e66a2bf5f944cecf3f6476f26d8fcfb65f44736b380cb3845c0ad85b25ab42b3a7a298c8a66f5905817ed3b02c71643a1b335f916c531d657079dde137c5
|
|
@@ -13,10 +13,8 @@
|
|
|
13
13
|
| **thank_you_button_text** | **String** | | [optional] |
|
|
14
14
|
| **thank_you_button_type** | **String** | | [optional] |
|
|
15
15
|
| **thank_you_website_url** | **String** | | [optional] |
|
|
16
|
-
| **is_optimized_for_quality** | **Boolean** |
|
|
17
|
-
| **form_type** | **String** | | [optional] |
|
|
16
|
+
| **is_optimized_for_quality** | **Boolean** | Set true for a higher-intent form (adds a review step before submit). | [optional] |
|
|
18
17
|
| **block_display_for_non_targeted_viewer** | **Boolean** | | [optional] |
|
|
19
|
-
| **allow_organic_lead_gen** | **Boolean** | | [optional] |
|
|
20
18
|
| **question_page_custom_headline** | **String** | | [optional] |
|
|
21
19
|
| **context_card** | [**MetaLeadFormPlatformDataContextCard**](MetaLeadFormPlatformDataContextCard.md) | | [optional] |
|
|
22
20
|
|
|
@@ -36,9 +34,7 @@ instance = Zernio::MetaLeadFormPlatformData.new(
|
|
|
36
34
|
thank_you_button_type: VIEW_WEBSITE,
|
|
37
35
|
thank_you_website_url: null,
|
|
38
36
|
is_optimized_for_quality: null,
|
|
39
|
-
form_type: null,
|
|
40
37
|
block_display_for_non_targeted_viewer: null,
|
|
41
|
-
allow_organic_lead_gen: null,
|
|
42
38
|
question_page_custom_headline: null,
|
|
43
39
|
context_card: null
|
|
44
40
|
)
|
|
@@ -33,40 +33,15 @@ module Zernio
|
|
|
33
33
|
|
|
34
34
|
attr_accessor :thank_you_website_url
|
|
35
35
|
|
|
36
|
+
# Set true for a higher-intent form (adds a review step before submit).
|
|
36
37
|
attr_accessor :is_optimized_for_quality
|
|
37
38
|
|
|
38
|
-
attr_accessor :form_type
|
|
39
|
-
|
|
40
39
|
attr_accessor :block_display_for_non_targeted_viewer
|
|
41
40
|
|
|
42
|
-
attr_accessor :allow_organic_lead_gen
|
|
43
|
-
|
|
44
41
|
attr_accessor :question_page_custom_headline
|
|
45
42
|
|
|
46
43
|
attr_accessor :context_card
|
|
47
44
|
|
|
48
|
-
class EnumAttributeValidator
|
|
49
|
-
attr_reader :datatype
|
|
50
|
-
attr_reader :allowable_values
|
|
51
|
-
|
|
52
|
-
def initialize(datatype, allowable_values)
|
|
53
|
-
@allowable_values = allowable_values.map do |value|
|
|
54
|
-
case datatype.to_s
|
|
55
|
-
when /Integer/i
|
|
56
|
-
value.to_i
|
|
57
|
-
when /Float/i
|
|
58
|
-
value.to_f
|
|
59
|
-
else
|
|
60
|
-
value
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
def valid?(value)
|
|
66
|
-
!value || allowable_values.include?(value)
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
|
|
70
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
71
46
|
def self.attribute_map
|
|
72
47
|
{
|
|
@@ -80,9 +55,7 @@ module Zernio
|
|
|
80
55
|
:'thank_you_button_type' => :'thankYouButtonType',
|
|
81
56
|
:'thank_you_website_url' => :'thankYouWebsiteUrl',
|
|
82
57
|
:'is_optimized_for_quality' => :'isOptimizedForQuality',
|
|
83
|
-
:'form_type' => :'formType',
|
|
84
58
|
:'block_display_for_non_targeted_viewer' => :'blockDisplayForNonTargetedViewer',
|
|
85
|
-
:'allow_organic_lead_gen' => :'allowOrganicLeadGen',
|
|
86
59
|
:'question_page_custom_headline' => :'questionPageCustomHeadline',
|
|
87
60
|
:'context_card' => :'contextCard'
|
|
88
61
|
}
|
|
@@ -111,9 +84,7 @@ module Zernio
|
|
|
111
84
|
:'thank_you_button_type' => :'String',
|
|
112
85
|
:'thank_you_website_url' => :'String',
|
|
113
86
|
:'is_optimized_for_quality' => :'Boolean',
|
|
114
|
-
:'form_type' => :'String',
|
|
115
87
|
:'block_display_for_non_targeted_viewer' => :'Boolean',
|
|
116
|
-
:'allow_organic_lead_gen' => :'Boolean',
|
|
117
88
|
:'question_page_custom_headline' => :'String',
|
|
118
89
|
:'context_card' => :'MetaLeadFormPlatformDataContextCard'
|
|
119
90
|
}
|
|
@@ -185,18 +156,10 @@ module Zernio
|
|
|
185
156
|
self.is_optimized_for_quality = attributes[:'is_optimized_for_quality']
|
|
186
157
|
end
|
|
187
158
|
|
|
188
|
-
if attributes.key?(:'form_type')
|
|
189
|
-
self.form_type = attributes[:'form_type']
|
|
190
|
-
end
|
|
191
|
-
|
|
192
159
|
if attributes.key?(:'block_display_for_non_targeted_viewer')
|
|
193
160
|
self.block_display_for_non_targeted_viewer = attributes[:'block_display_for_non_targeted_viewer']
|
|
194
161
|
end
|
|
195
162
|
|
|
196
|
-
if attributes.key?(:'allow_organic_lead_gen')
|
|
197
|
-
self.allow_organic_lead_gen = attributes[:'allow_organic_lead_gen']
|
|
198
|
-
end
|
|
199
|
-
|
|
200
163
|
if attributes.key?(:'question_page_custom_headline')
|
|
201
164
|
self.question_page_custom_headline = attributes[:'question_page_custom_headline']
|
|
202
165
|
end
|
|
@@ -233,8 +196,6 @@ module Zernio
|
|
|
233
196
|
return false if @questions.nil?
|
|
234
197
|
return false if @questions.length < 1
|
|
235
198
|
return false if !@privacy_policy_link_text.nil? && @privacy_policy_link_text.to_s.length > 70
|
|
236
|
-
form_type_validator = EnumAttributeValidator.new('String', ["MORE_VOLUME", "HIGHER_INTENT", "RICH_CREATIVE"])
|
|
237
|
-
return false unless form_type_validator.valid?(@form_type)
|
|
238
199
|
true
|
|
239
200
|
end
|
|
240
201
|
|
|
@@ -266,16 +227,6 @@ module Zernio
|
|
|
266
227
|
@privacy_policy_link_text = privacy_policy_link_text
|
|
267
228
|
end
|
|
268
229
|
|
|
269
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
270
|
-
# @param [Object] form_type Object to be assigned
|
|
271
|
-
def form_type=(form_type)
|
|
272
|
-
validator = EnumAttributeValidator.new('String', ["MORE_VOLUME", "HIGHER_INTENT", "RICH_CREATIVE"])
|
|
273
|
-
unless validator.valid?(form_type)
|
|
274
|
-
fail ArgumentError, "invalid value for \"form_type\", must be one of #{validator.allowable_values}."
|
|
275
|
-
end
|
|
276
|
-
@form_type = form_type
|
|
277
|
-
end
|
|
278
|
-
|
|
279
230
|
# Checks equality by comparing each attribute.
|
|
280
231
|
# @param [Object] Object to be compared
|
|
281
232
|
def ==(o)
|
|
@@ -291,9 +242,7 @@ module Zernio
|
|
|
291
242
|
thank_you_button_type == o.thank_you_button_type &&
|
|
292
243
|
thank_you_website_url == o.thank_you_website_url &&
|
|
293
244
|
is_optimized_for_quality == o.is_optimized_for_quality &&
|
|
294
|
-
form_type == o.form_type &&
|
|
295
245
|
block_display_for_non_targeted_viewer == o.block_display_for_non_targeted_viewer &&
|
|
296
|
-
allow_organic_lead_gen == o.allow_organic_lead_gen &&
|
|
297
246
|
question_page_custom_headline == o.question_page_custom_headline &&
|
|
298
247
|
context_card == o.context_card
|
|
299
248
|
end
|
|
@@ -307,7 +256,7 @@ module Zernio
|
|
|
307
256
|
# Calculates hash code according to all attributes.
|
|
308
257
|
# @return [Integer] Hash code
|
|
309
258
|
def hash
|
|
310
|
-
[questions, privacy_policy_link_text, follow_up_action_url, locale, thank_you_title, thank_you_body, thank_you_button_text, thank_you_button_type, thank_you_website_url, is_optimized_for_quality,
|
|
259
|
+
[questions, privacy_policy_link_text, follow_up_action_url, locale, thank_you_title, thank_you_body, thank_you_button_text, thank_you_button_type, thank_you_website_url, is_optimized_for_quality, block_display_for_non_targeted_viewer, question_page_custom_headline, context_card].hash
|
|
311
260
|
end
|
|
312
261
|
|
|
313
262
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -40676,10 +40676,8 @@ paths:
|
|
|
40676
40676
|
thankYouButtonText: { type: string }
|
|
40677
40677
|
thankYouButtonType: { type: string, example: VIEW_WEBSITE }
|
|
40678
40678
|
thankYouWebsiteUrl: { type: string, format: uri }
|
|
40679
|
-
isOptimizedForQuality: { type: boolean }
|
|
40680
|
-
formType: { type: string, enum: [MORE_VOLUME, HIGHER_INTENT, RICH_CREATIVE] }
|
|
40679
|
+
isOptimizedForQuality: { type: boolean, description: 'Set true for a higher-intent form (adds a review step before submit).' }
|
|
40681
40680
|
blockDisplayForNonTargetedViewer: { type: boolean }
|
|
40682
|
-
allowOrganicLeadGen: { type: boolean }
|
|
40683
40681
|
questionPageCustomHeadline: { type: string }
|
|
40684
40682
|
contextCard:
|
|
40685
40683
|
type: object
|
|
@@ -87,28 +87,12 @@ describe Zernio::MetaLeadFormPlatformData do
|
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
-
describe 'test attribute "form_type"' do
|
|
91
|
-
it 'should work' do
|
|
92
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["MORE_VOLUME", "HIGHER_INTENT", "RICH_CREATIVE"])
|
|
94
|
-
# validator.allowable_values.each do |value|
|
|
95
|
-
# expect { instance.form_type = value }.not_to raise_error
|
|
96
|
-
# end
|
|
97
|
-
end
|
|
98
|
-
end
|
|
99
|
-
|
|
100
90
|
describe 'test attribute "block_display_for_non_targeted_viewer"' do
|
|
101
91
|
it 'should work' do
|
|
102
92
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
103
93
|
end
|
|
104
94
|
end
|
|
105
95
|
|
|
106
|
-
describe 'test attribute "allow_organic_lead_gen"' do
|
|
107
|
-
it 'should work' do
|
|
108
|
-
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
|
|
112
96
|
describe 'test attribute "question_page_custom_headline"' do
|
|
113
97
|
it 'should work' do
|
|
114
98
|
# 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.690
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -5018,7 +5018,7 @@ files:
|
|
|
5018
5018
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
5019
5019
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
5020
5020
|
- spec/spec_helper.rb
|
|
5021
|
-
- zernio-sdk-0.0.
|
|
5021
|
+
- zernio-sdk-0.0.690.gem
|
|
5022
5022
|
- zernio-sdk.gemspec
|
|
5023
5023
|
homepage: https://openapi-generator.tech
|
|
5024
5024
|
licenses:
|
data/zernio-sdk-0.0.689.gem
DELETED
|
Binary file
|