late-sdk 0.0.1569 → 0.0.1570
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 +5 -1
- data/lib/zernio-sdk/models/meta_lead_form_platform_data.rb +43 -2
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +1 -1
- data/spec/models/meta_lead_form_platform_data_spec.rb +12 -0
- data/zernio-sdk-0.0.1570.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.1569.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: 01e4c8aeaff0443216750e64d9808c143fde53513b76cccab2f856890652d3e1
|
|
4
|
+
data.tar.gz: 5de7b7f356edaaf99a6d23263d3fc168afbb024d8eab25e8ab8bc9a35d58f643
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a7c6b8991b46ea2e79eb32fd6d97b369164526a175cc565fde01e62293e8e8aeb29ff0c6f8cc89563269da58a1c38be5939747bf17fd843d5cf18da6ead3db7
|
|
7
|
+
data.tar.gz: 2ec8fe3c04c1a7aff60ac8c307e4cb8efb543831d9a844fd8ac4d23242e31488f9939dcf4f2e1e83eab5a1701a6f68bd47b485a48ae49e9b3b2bb8fed810af23
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
| **thank_you_title** | **String** | | [optional] |
|
|
12
12
|
| **thank_you_body** | **String** | | [optional] |
|
|
13
13
|
| **thank_you_button_text** | **String** | | [optional] |
|
|
14
|
-
| **thank_you_button_type** | **String** | Meta thank_you_page.button_type. Defaults to VIEW_WEBSITE. Meta rejects MESSAGE_BUSINESS on thank-you pages with (#100) This button type is not yet supported for Thank You Page. | [optional] |
|
|
14
|
+
| **thank_you_button_type** | **String** | Meta thank_you_page.button_type. Defaults to VIEW_WEBSITE. Case-insensitive, sent to Meta in uppercase. CALL_BUSINESS requires businessPhoneNumber and countryCode (a 400 otherwise). Meta rejects MESSAGE_BUSINESS on thank-you pages with (#100) This button type is not yet supported for Thank You Page. | [optional] |
|
|
15
|
+
| **business_phone_number** | **String** | International E.164 number the CALL_BUSINESS thank-you button dials (Meta thank_you_page.business_phone_number). It must start with + and the country calling code matching countryCode; spaces, dashes, dots and parentheses are stripped, and a local number such as 2025550123 is a 400. Required when thankYouButtonType is CALL_BUSINESS and a 400 with any other button type. Accepted only inside platformSpecificData: a top-level businessPhoneNumber is a 400. | [optional] |
|
|
16
|
+
| **country_code** | **String** | ISO 3166-1 alpha-2 country of businessPhoneNumber (Meta thank_you_page.country_code), sent in uppercase. Required when thankYouButtonType is CALL_BUSINESS and a 400 with any other button type. Accepted only inside platformSpecificData: a top-level countryCode is a 400. | [optional] |
|
|
15
17
|
| **thank_you_website_url** | **String** | | [optional] |
|
|
16
18
|
| **thank_you_enable_messenger** | **Boolean** | Sent as Meta thank_you_page.enable_messenger (boolean). Accepted only inside platformSpecificData: a top-level thankYouEnableMessenger is a 400. | [optional][default to false] |
|
|
17
19
|
| **is_optimized_for_quality** | **Boolean** | Set true for a higher-intent form (adds a review step before submit). | [optional] |
|
|
@@ -35,6 +37,8 @@ instance = Zernio::MetaLeadFormPlatformData.new(
|
|
|
35
37
|
thank_you_body: null,
|
|
36
38
|
thank_you_button_text: null,
|
|
37
39
|
thank_you_button_type: VIEW_WEBSITE,
|
|
40
|
+
business_phone_number: +12025550123,
|
|
41
|
+
country_code: US,
|
|
38
42
|
thank_you_website_url: null,
|
|
39
43
|
thank_you_enable_messenger: null,
|
|
40
44
|
is_optimized_for_quality: null,
|
|
@@ -29,9 +29,15 @@ module Zernio
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :thank_you_button_text
|
|
31
31
|
|
|
32
|
-
# Meta thank_you_page.button_type. Defaults to VIEW_WEBSITE. Meta rejects MESSAGE_BUSINESS on thank-you pages with (#100) This button type is not yet supported for Thank You Page.
|
|
32
|
+
# Meta thank_you_page.button_type. Defaults to VIEW_WEBSITE. Case-insensitive, sent to Meta in uppercase. CALL_BUSINESS requires businessPhoneNumber and countryCode (a 400 otherwise). Meta rejects MESSAGE_BUSINESS on thank-you pages with (#100) This button type is not yet supported for Thank You Page.
|
|
33
33
|
attr_accessor :thank_you_button_type
|
|
34
34
|
|
|
35
|
+
# International E.164 number the CALL_BUSINESS thank-you button dials (Meta thank_you_page.business_phone_number). It must start with + and the country calling code matching countryCode; spaces, dashes, dots and parentheses are stripped, and a local number such as 2025550123 is a 400. Required when thankYouButtonType is CALL_BUSINESS and a 400 with any other button type. Accepted only inside platformSpecificData: a top-level businessPhoneNumber is a 400.
|
|
36
|
+
attr_accessor :business_phone_number
|
|
37
|
+
|
|
38
|
+
# ISO 3166-1 alpha-2 country of businessPhoneNumber (Meta thank_you_page.country_code), sent in uppercase. Required when thankYouButtonType is CALL_BUSINESS and a 400 with any other button type. Accepted only inside platformSpecificData: a top-level countryCode is a 400.
|
|
39
|
+
attr_accessor :country_code
|
|
40
|
+
|
|
35
41
|
attr_accessor :thank_you_website_url
|
|
36
42
|
|
|
37
43
|
# Sent as Meta thank_you_page.enable_messenger (boolean). Accepted only inside platformSpecificData: a top-level thankYouEnableMessenger is a 400.
|
|
@@ -62,6 +68,8 @@ module Zernio
|
|
|
62
68
|
:'thank_you_body' => :'thankYouBody',
|
|
63
69
|
:'thank_you_button_text' => :'thankYouButtonText',
|
|
64
70
|
:'thank_you_button_type' => :'thankYouButtonType',
|
|
71
|
+
:'business_phone_number' => :'businessPhoneNumber',
|
|
72
|
+
:'country_code' => :'countryCode',
|
|
65
73
|
:'thank_you_website_url' => :'thankYouWebsiteUrl',
|
|
66
74
|
:'thank_you_enable_messenger' => :'thankYouEnableMessenger',
|
|
67
75
|
:'is_optimized_for_quality' => :'isOptimizedForQuality',
|
|
@@ -94,6 +102,8 @@ module Zernio
|
|
|
94
102
|
:'thank_you_body' => :'String',
|
|
95
103
|
:'thank_you_button_text' => :'String',
|
|
96
104
|
:'thank_you_button_type' => :'String',
|
|
105
|
+
:'business_phone_number' => :'String',
|
|
106
|
+
:'country_code' => :'String',
|
|
97
107
|
:'thank_you_website_url' => :'String',
|
|
98
108
|
:'thank_you_enable_messenger' => :'Boolean',
|
|
99
109
|
:'is_optimized_for_quality' => :'Boolean',
|
|
@@ -163,6 +173,14 @@ module Zernio
|
|
|
163
173
|
self.thank_you_button_type = attributes[:'thank_you_button_type']
|
|
164
174
|
end
|
|
165
175
|
|
|
176
|
+
if attributes.key?(:'business_phone_number')
|
|
177
|
+
self.business_phone_number = attributes[:'business_phone_number']
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if attributes.key?(:'country_code')
|
|
181
|
+
self.country_code = attributes[:'country_code']
|
|
182
|
+
end
|
|
183
|
+
|
|
166
184
|
if attributes.key?(:'thank_you_website_url')
|
|
167
185
|
self.thank_you_website_url = attributes[:'thank_you_website_url']
|
|
168
186
|
end
|
|
@@ -217,6 +235,11 @@ module Zernio
|
|
|
217
235
|
invalid_properties.push('invalid value for "privacy_policy_link_text", the character length must be smaller than or equal to 70.')
|
|
218
236
|
end
|
|
219
237
|
|
|
238
|
+
pattern = Regexp.new(/^[A-Za-z]{2}$/)
|
|
239
|
+
if !@country_code.nil? && @country_code !~ pattern
|
|
240
|
+
invalid_properties.push("invalid value for \"country_code\", must conform to the pattern #{pattern}.")
|
|
241
|
+
end
|
|
242
|
+
|
|
220
243
|
invalid_properties
|
|
221
244
|
end
|
|
222
245
|
|
|
@@ -227,6 +250,7 @@ module Zernio
|
|
|
227
250
|
return false if @questions.nil?
|
|
228
251
|
return false if @questions.length < 1
|
|
229
252
|
return false if !@privacy_policy_link_text.nil? && @privacy_policy_link_text.to_s.length > 70
|
|
253
|
+
return false if !@country_code.nil? && @country_code !~ Regexp.new(/^[A-Za-z]{2}$/)
|
|
230
254
|
true
|
|
231
255
|
end
|
|
232
256
|
|
|
@@ -258,6 +282,21 @@ module Zernio
|
|
|
258
282
|
@privacy_policy_link_text = privacy_policy_link_text
|
|
259
283
|
end
|
|
260
284
|
|
|
285
|
+
# Custom attribute writer method with validation
|
|
286
|
+
# @param [Object] country_code Value to be assigned
|
|
287
|
+
def country_code=(country_code)
|
|
288
|
+
if country_code.nil?
|
|
289
|
+
fail ArgumentError, 'country_code cannot be nil'
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
pattern = Regexp.new(/^[A-Za-z]{2}$/)
|
|
293
|
+
if country_code !~ pattern
|
|
294
|
+
fail ArgumentError, "invalid value for \"country_code\", must conform to the pattern #{pattern}."
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
@country_code = country_code
|
|
298
|
+
end
|
|
299
|
+
|
|
261
300
|
# Checks equality by comparing each attribute.
|
|
262
301
|
# @param [Object] Object to be compared
|
|
263
302
|
def ==(o)
|
|
@@ -271,6 +310,8 @@ module Zernio
|
|
|
271
310
|
thank_you_body == o.thank_you_body &&
|
|
272
311
|
thank_you_button_text == o.thank_you_button_text &&
|
|
273
312
|
thank_you_button_type == o.thank_you_button_type &&
|
|
313
|
+
business_phone_number == o.business_phone_number &&
|
|
314
|
+
country_code == o.country_code &&
|
|
274
315
|
thank_you_website_url == o.thank_you_website_url &&
|
|
275
316
|
thank_you_enable_messenger == o.thank_you_enable_messenger &&
|
|
276
317
|
is_optimized_for_quality == o.is_optimized_for_quality &&
|
|
@@ -290,7 +331,7 @@ module Zernio
|
|
|
290
331
|
# Calculates hash code according to all attributes.
|
|
291
332
|
# @return [Integer] Hash code
|
|
292
333
|
def hash
|
|
293
|
-
[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, thank_you_enable_messenger, is_optimized_for_quality, is_phone_sms_verify_enabled, block_display_for_non_targeted_viewer, question_page_custom_headline, context_card, custom_disclaimer].hash
|
|
334
|
+
[questions, privacy_policy_link_text, follow_up_action_url, locale, thank_you_title, thank_you_body, thank_you_button_text, thank_you_button_type, business_phone_number, country_code, thank_you_website_url, thank_you_enable_messenger, is_optimized_for_quality, is_phone_sms_verify_enabled, block_display_for_non_targeted_viewer, question_page_custom_headline, context_card, custom_disclaimer].hash
|
|
294
335
|
end
|
|
295
336
|
|
|
296
337
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED