late-sdk 0.0.93 → 0.0.95
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/CreateWhatsAppTemplateRequest.md +1 -1
- data/docs/WhatsAppApi.md +1 -1
- data/docs/WhatsAppHeaderComponentExample.md +1 -1
- data/docs/WhatsAppTemplateButton.md +2 -2
- data/docs/WhatsAppTemplateComponent.md +4 -4
- data/lib/late-sdk/models/create_whats_app_template_request.rb +1 -1
- data/lib/late-sdk/models/create_whats_app_template_request_library_template_button_inputs_inner.rb +2 -2
- data/lib/late-sdk/models/whats_app_body_component.rb +2 -2
- data/lib/late-sdk/models/whats_app_buttons_component.rb +2 -2
- data/lib/late-sdk/models/whats_app_footer_component.rb +2 -2
- data/lib/late-sdk/models/whats_app_header_component.rb +4 -4
- data/lib/late-sdk/models/whats_app_header_component_example.rb +1 -1
- data/lib/late-sdk/models/whats_app_template_button.rb +6 -11
- data/lib/late-sdk/models/whats_app_template_component.rb +4 -4
- data/lib/late-sdk/version.rb +1 -1
- data/openapi.yaml +26 -28
- data/spec/models/create_whats_app_template_request_library_template_button_inputs_inner_spec.rb +1 -1
- data/spec/models/whats_app_body_component_spec.rb +1 -1
- data/spec/models/whats_app_buttons_component_spec.rb +1 -1
- data/spec/models/whats_app_footer_component_spec.rb +1 -1
- data/spec/models/whats_app_header_component_spec.rb +2 -2
- data/spec/models/whats_app_template_button_spec.rb +2 -2
- data/zernio-sdk-0.0.95.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.93.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: 905d4e1c58f5b2710ba9bc81c0531fb385b9b0d423f469bd797ecf6fa0f3e219
|
|
4
|
+
data.tar.gz: 7f0677bf41376693b4732af908519a922b9c335e84bf32d5061eb9f6c3226a33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1748471bd7113bac81109dd192d3bae70e98d795fb6abd5ca4b20e997f631dd6caabd5933f60cbaf470a93c8ed348babc257b9191cf35dcca72457b09e974f61
|
|
7
|
+
data.tar.gz: 0cc0cd4330849c056ffddf56f8f8ad0f604c161441dadd3a4c0e27e5b00a0c501f2fd4c93a0297b26dfcf5d5039e44f3bbe24448740dbc70366260a66a4b3589
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
| **name** | **String** | Template name (lowercase, letters/numbers/underscores, must start with a letter) | |
|
|
9
9
|
| **category** | **String** | Template category | |
|
|
10
10
|
| **language** | **String** | Template language code (e.g., en_US) | |
|
|
11
|
-
| **components** | [**Array<WhatsAppTemplateComponent>**](WhatsAppTemplateComponent.md) | Template components (
|
|
11
|
+
| **components** | [**Array<WhatsAppTemplateComponent>**](WhatsAppTemplateComponent.md) | Template components (header, body, footer, buttons). Required for custom templates, omit when using library_template_name. | [optional] |
|
|
12
12
|
| **library_template_name** | **String** | Name of a pre-built template from Meta's template library (e.g., \"appointment_reminder\", \"auto_pay_reminder_1\", \"address_update\"). When provided, the template is pre-approved by Meta with no review wait. Omit `components` when using this field. | [optional] |
|
|
13
13
|
| **library_template_body_inputs** | **Object** | Optional body customizations for library templates. Available options depend on the template (e.g., add_contact_number, add_learn_more_link, add_security_recommendation, add_track_package_link, code_expiration_minutes). | [optional] |
|
|
14
14
|
| **library_template_button_inputs** | [**Array<CreateWhatsAppTemplateRequestLibraryTemplateButtonInputsInner>**](CreateWhatsAppTemplateRequestLibraryTemplateButtonInputsInner.md) | Optional button customizations for library templates. Each item specifies button type and configuration (e.g., URL, phone number, quick reply). | [optional] |
|
data/docs/WhatsAppApi.md
CHANGED
|
@@ -2975,7 +2975,7 @@ end
|
|
|
2975
2975
|
|
|
2976
2976
|
api_instance = Late::WhatsAppApi.new
|
|
2977
2977
|
template_name = 'template_name_example' # String | Template name
|
|
2978
|
-
update_whats_app_template_request = Late::UpdateWhatsAppTemplateRequest.new({account_id: 'account_id_example', components: [Late::WhatsAppBodyComponent.new({type: '
|
|
2978
|
+
update_whats_app_template_request = Late::UpdateWhatsAppTemplateRequest.new({account_id: 'account_id_example', components: [Late::WhatsAppBodyComponent.new({type: 'body', text: 'text_example'})]}) # UpdateWhatsAppTemplateRequest |
|
|
2979
2979
|
|
|
2980
2980
|
begin
|
|
2981
2981
|
# Update template
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **header_text** | **Array<String>** | Sample values for header text variables | [optional] |
|
|
8
|
-
| **header_handle** | **Array<String>** | When the header format is a media type (
|
|
8
|
+
| **header_handle** | **Array<String>** | When the header format is a media type (image, video, gif, document), provide a public URL here. Zernio will download and upload it to WhatsApp on your behalf, replacing it with the internal file handle before creating the template. | [optional] |
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
| **text** | **String** | | |
|
|
9
9
|
| **url** | **String** | Required when type is URL | [optional] |
|
|
10
10
|
| **example** | **Array<String>** | Example values for URL suffix variables | [optional] |
|
|
11
|
-
| **phone_number** | **String** | Required when type is
|
|
12
|
-
| **otp_type** | **String** | Required when type is
|
|
11
|
+
| **phone_number** | **String** | Required when type is phone_number | [optional] |
|
|
12
|
+
| **otp_type** | **String** | Required when type is otp | [optional] |
|
|
13
13
|
| **autofill_text** | **String** | | [optional] |
|
|
14
14
|
| **package_name** | **String** | | [optional] |
|
|
15
15
|
| **signature_hash** | **String** | | [optional] |
|
|
@@ -46,10 +46,10 @@ require 'late-sdk'
|
|
|
46
46
|
Late::WhatsAppTemplateComponent.openapi_discriminator_mapping
|
|
47
47
|
# =>
|
|
48
48
|
# {
|
|
49
|
-
# :'
|
|
50
|
-
# :'
|
|
51
|
-
# :'
|
|
52
|
-
# :'
|
|
49
|
+
# :'body' => :'WhatsAppBodyComponent',
|
|
50
|
+
# :'buttons' => :'WhatsAppButtonsComponent',
|
|
51
|
+
# :'footer' => :'WhatsAppFooterComponent',
|
|
52
|
+
# :'header' => :'WhatsAppHeaderComponent'
|
|
53
53
|
# }
|
|
54
54
|
```
|
|
55
55
|
|
|
@@ -27,7 +27,7 @@ module Late
|
|
|
27
27
|
# Template language code (e.g., en_US)
|
|
28
28
|
attr_accessor :language
|
|
29
29
|
|
|
30
|
-
# Template components (
|
|
30
|
+
# Template components (header, body, footer, buttons). Required for custom templates, omit when using library_template_name.
|
|
31
31
|
attr_accessor :components
|
|
32
32
|
|
|
33
33
|
# Name of a pre-built template from Meta's template library (e.g., \"appointment_reminder\", \"auto_pay_reminder_1\", \"address_update\"). When provided, the template is pre-approved by Meta with no review wait. Omit `components` when using this field.
|
data/lib/late-sdk/models/create_whats_app_template_request_library_template_button_inputs_inner.rb
CHANGED
|
@@ -118,7 +118,7 @@ module Late
|
|
|
118
118
|
# @return true if the model is valid
|
|
119
119
|
def valid?
|
|
120
120
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
121
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
121
|
+
type_validator = EnumAttributeValidator.new('String', ["quick_reply", "url", "phone_number"])
|
|
122
122
|
return false unless type_validator.valid?(@type)
|
|
123
123
|
true
|
|
124
124
|
end
|
|
@@ -126,7 +126,7 @@ module Late
|
|
|
126
126
|
# Custom attribute writer method checking allowed values (enum).
|
|
127
127
|
# @param [Object] type Object to be assigned
|
|
128
128
|
def type=(type)
|
|
129
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
129
|
+
validator = EnumAttributeValidator.new('String', ["quick_reply", "url", "phone_number"])
|
|
130
130
|
unless validator.valid?(type)
|
|
131
131
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
132
132
|
end
|
|
@@ -141,7 +141,7 @@ module Late
|
|
|
141
141
|
def valid?
|
|
142
142
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
143
143
|
return false if @type.nil?
|
|
144
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
144
|
+
type_validator = EnumAttributeValidator.new('String', ["body"])
|
|
145
145
|
return false unless type_validator.valid?(@type)
|
|
146
146
|
return false if @text.nil?
|
|
147
147
|
true
|
|
@@ -150,7 +150,7 @@ module Late
|
|
|
150
150
|
# Custom attribute writer method checking allowed values (enum).
|
|
151
151
|
# @param [Object] type Object to be assigned
|
|
152
152
|
def type=(type)
|
|
153
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
153
|
+
validator = EnumAttributeValidator.new('String', ["body"])
|
|
154
154
|
unless validator.valid?(type)
|
|
155
155
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
156
156
|
end
|
|
@@ -129,7 +129,7 @@ module Late
|
|
|
129
129
|
def valid?
|
|
130
130
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
131
131
|
return false if @type.nil?
|
|
132
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
132
|
+
type_validator = EnumAttributeValidator.new('String', ["buttons"])
|
|
133
133
|
return false unless type_validator.valid?(@type)
|
|
134
134
|
return false if @buttons.nil?
|
|
135
135
|
return false if @buttons.length < 1
|
|
@@ -139,7 +139,7 @@ module Late
|
|
|
139
139
|
# Custom attribute writer method checking allowed values (enum).
|
|
140
140
|
# @param [Object] type Object to be assigned
|
|
141
141
|
def type=(type)
|
|
142
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
142
|
+
validator = EnumAttributeValidator.new('String', ["buttons"])
|
|
143
143
|
unless validator.valid?(type)
|
|
144
144
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
145
145
|
end
|
|
@@ -131,7 +131,7 @@ module Late
|
|
|
131
131
|
def valid?
|
|
132
132
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
133
133
|
return false if @type.nil?
|
|
134
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
134
|
+
type_validator = EnumAttributeValidator.new('String', ["footer"])
|
|
135
135
|
return false unless type_validator.valid?(@type)
|
|
136
136
|
return false if !@code_expiration_minutes.nil? && @code_expiration_minutes < 1
|
|
137
137
|
true
|
|
@@ -140,7 +140,7 @@ module Late
|
|
|
140
140
|
# Custom attribute writer method checking allowed values (enum).
|
|
141
141
|
# @param [Object] type Object to be assigned
|
|
142
142
|
def type=(type)
|
|
143
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
143
|
+
validator = EnumAttributeValidator.new('String', ["footer"])
|
|
144
144
|
unless validator.valid?(type)
|
|
145
145
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
146
146
|
end
|
|
@@ -140,10 +140,10 @@ module Late
|
|
|
140
140
|
def valid?
|
|
141
141
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
142
142
|
return false if @type.nil?
|
|
143
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
143
|
+
type_validator = EnumAttributeValidator.new('String', ["header"])
|
|
144
144
|
return false unless type_validator.valid?(@type)
|
|
145
145
|
return false if @format.nil?
|
|
146
|
-
format_validator = EnumAttributeValidator.new('String', ["
|
|
146
|
+
format_validator = EnumAttributeValidator.new('String', ["text", "image", "video", "gif", "document", "location"])
|
|
147
147
|
return false unless format_validator.valid?(@format)
|
|
148
148
|
true
|
|
149
149
|
end
|
|
@@ -151,7 +151,7 @@ module Late
|
|
|
151
151
|
# Custom attribute writer method checking allowed values (enum).
|
|
152
152
|
# @param [Object] type Object to be assigned
|
|
153
153
|
def type=(type)
|
|
154
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
154
|
+
validator = EnumAttributeValidator.new('String', ["header"])
|
|
155
155
|
unless validator.valid?(type)
|
|
156
156
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
157
157
|
end
|
|
@@ -161,7 +161,7 @@ module Late
|
|
|
161
161
|
# Custom attribute writer method checking allowed values (enum).
|
|
162
162
|
# @param [Object] format Object to be assigned
|
|
163
163
|
def format=(format)
|
|
164
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
164
|
+
validator = EnumAttributeValidator.new('String', ["text", "image", "video", "gif", "document", "location"])
|
|
165
165
|
unless validator.valid?(format)
|
|
166
166
|
fail ArgumentError, "invalid value for \"format\", must be one of #{validator.allowable_values}."
|
|
167
167
|
end
|
|
@@ -18,7 +18,7 @@ module Late
|
|
|
18
18
|
# Sample values for header text variables
|
|
19
19
|
attr_accessor :header_text
|
|
20
20
|
|
|
21
|
-
# When the header format is a media type (
|
|
21
|
+
# When the header format is a media type (image, video, gif, document), provide a public URL here. Zernio will download and upload it to WhatsApp on your behalf, replacing it with the internal file handle before creating the template.
|
|
22
22
|
attr_accessor :header_handle
|
|
23
23
|
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -25,10 +25,10 @@ module Late
|
|
|
25
25
|
# Example values for URL suffix variables
|
|
26
26
|
attr_accessor :example
|
|
27
27
|
|
|
28
|
-
# Required when type is
|
|
28
|
+
# Required when type is phone_number
|
|
29
29
|
attr_accessor :phone_number
|
|
30
30
|
|
|
31
|
-
# Required when type is
|
|
31
|
+
# Required when type is otp
|
|
32
32
|
attr_accessor :otp_type
|
|
33
33
|
|
|
34
34
|
attr_accessor :autofill_text
|
|
@@ -125,11 +125,6 @@ module Late
|
|
|
125
125
|
])
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
-
# discriminator's property name in OpenAPI v3
|
|
129
|
-
def self.openapi_discriminator_name
|
|
130
|
-
:'type'
|
|
131
|
-
end
|
|
132
|
-
|
|
133
128
|
# Initializes the object
|
|
134
129
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
135
130
|
def initialize(attributes = {})
|
|
@@ -230,10 +225,10 @@ module Late
|
|
|
230
225
|
def valid?
|
|
231
226
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
232
227
|
return false if @type.nil?
|
|
233
|
-
type_validator = EnumAttributeValidator.new('String', ["
|
|
228
|
+
type_validator = EnumAttributeValidator.new('String', ["quick_reply", "url", "phone_number", "otp", "flow", "mpm", "catalog"])
|
|
234
229
|
return false unless type_validator.valid?(@type)
|
|
235
230
|
return false if @text.nil?
|
|
236
|
-
otp_type_validator = EnumAttributeValidator.new('String', ["
|
|
231
|
+
otp_type_validator = EnumAttributeValidator.new('String', ["copy_code", "one_tap", "zero_tap"])
|
|
237
232
|
return false unless otp_type_validator.valid?(@otp_type)
|
|
238
233
|
true
|
|
239
234
|
end
|
|
@@ -241,7 +236,7 @@ module Late
|
|
|
241
236
|
# Custom attribute writer method checking allowed values (enum).
|
|
242
237
|
# @param [Object] type Object to be assigned
|
|
243
238
|
def type=(type)
|
|
244
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
239
|
+
validator = EnumAttributeValidator.new('String', ["quick_reply", "url", "phone_number", "otp", "flow", "mpm", "catalog"])
|
|
245
240
|
unless validator.valid?(type)
|
|
246
241
|
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
|
247
242
|
end
|
|
@@ -261,7 +256,7 @@ module Late
|
|
|
261
256
|
# Custom attribute writer method checking allowed values (enum).
|
|
262
257
|
# @param [Object] otp_type Object to be assigned
|
|
263
258
|
def otp_type=(otp_type)
|
|
264
|
-
validator = EnumAttributeValidator.new('String', ["
|
|
259
|
+
validator = EnumAttributeValidator.new('String', ["copy_code", "one_tap", "zero_tap"])
|
|
265
260
|
unless validator.valid?(otp_type)
|
|
266
261
|
fail ArgumentError, "invalid value for \"otp_type\", must be one of #{validator.allowable_values}."
|
|
267
262
|
end
|
|
@@ -34,10 +34,10 @@ module Late
|
|
|
34
34
|
# Discriminator's mapping (OpenAPI v3)
|
|
35
35
|
def openapi_discriminator_mapping
|
|
36
36
|
{
|
|
37
|
-
:'
|
|
38
|
-
:'
|
|
39
|
-
:'
|
|
40
|
-
:'
|
|
37
|
+
:'body' => :'WhatsAppBodyComponent',
|
|
38
|
+
:'buttons' => :'WhatsAppButtonsComponent',
|
|
39
|
+
:'footer' => :'WhatsAppFooterComponent',
|
|
40
|
+
:'header' => :'WhatsAppHeaderComponent'
|
|
41
41
|
}
|
|
42
42
|
end
|
|
43
43
|
|
data/lib/late-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -315,7 +315,7 @@ components:
|
|
|
315
315
|
properties:
|
|
316
316
|
type:
|
|
317
317
|
type: string
|
|
318
|
-
enum: [
|
|
318
|
+
enum: [quick_reply, url, phone_number, otp, flow, mpm, catalog]
|
|
319
319
|
text:
|
|
320
320
|
type: string
|
|
321
321
|
url:
|
|
@@ -328,11 +328,11 @@ components:
|
|
|
328
328
|
description: Example values for URL suffix variables
|
|
329
329
|
phone_number:
|
|
330
330
|
type: string
|
|
331
|
-
description: Required when type is
|
|
331
|
+
description: Required when type is phone_number
|
|
332
332
|
otp_type:
|
|
333
333
|
type: string
|
|
334
|
-
enum: [
|
|
335
|
-
description: Required when type is
|
|
334
|
+
enum: [copy_code, one_tap, zero_tap]
|
|
335
|
+
description: Required when type is otp
|
|
336
336
|
autofill_text:
|
|
337
337
|
type: string
|
|
338
338
|
package_name:
|
|
@@ -349,8 +349,6 @@ components:
|
|
|
349
349
|
type: string
|
|
350
350
|
navigate_screen:
|
|
351
351
|
type: string
|
|
352
|
-
discriminator:
|
|
353
|
-
propertyName: type
|
|
354
352
|
WhatsAppTemplateComponent:
|
|
355
353
|
oneOf:
|
|
356
354
|
- $ref: '#/components/schemas/WhatsAppHeaderComponent'
|
|
@@ -360,20 +358,20 @@ components:
|
|
|
360
358
|
discriminator:
|
|
361
359
|
propertyName: type
|
|
362
360
|
mapping:
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
361
|
+
header: '#/components/schemas/WhatsAppHeaderComponent'
|
|
362
|
+
body: '#/components/schemas/WhatsAppBodyComponent'
|
|
363
|
+
footer: '#/components/schemas/WhatsAppFooterComponent'
|
|
364
|
+
buttons: '#/components/schemas/WhatsAppButtonsComponent'
|
|
367
365
|
WhatsAppHeaderComponent:
|
|
368
366
|
type: object
|
|
369
367
|
required: [type, format]
|
|
370
368
|
properties:
|
|
371
369
|
type:
|
|
372
370
|
type: string
|
|
373
|
-
enum: [
|
|
371
|
+
enum: [header]
|
|
374
372
|
format:
|
|
375
373
|
type: string
|
|
376
|
-
enum: [
|
|
374
|
+
enum: [text, image, video, gif, document, location]
|
|
377
375
|
text:
|
|
378
376
|
type: string
|
|
379
377
|
description: Header text (may include {{1}} variable). Used when format is TEXT.
|
|
@@ -391,14 +389,14 @@ components:
|
|
|
391
389
|
items:
|
|
392
390
|
type: string
|
|
393
391
|
format: uri
|
|
394
|
-
description: When the header format is a media type (
|
|
392
|
+
description: When the header format is a media type (image, video, gif, document), provide a public URL here. Zernio will download and upload it to WhatsApp on your behalf, replacing it with the internal file handle before creating the template.
|
|
395
393
|
WhatsAppBodyComponent:
|
|
396
394
|
type: object
|
|
397
395
|
required: [type, text]
|
|
398
396
|
properties:
|
|
399
397
|
type:
|
|
400
398
|
type: string
|
|
401
|
-
enum: [
|
|
399
|
+
enum: [body]
|
|
402
400
|
text:
|
|
403
401
|
type: string
|
|
404
402
|
description: Body text with optional {{n}} variables
|
|
@@ -420,7 +418,7 @@ components:
|
|
|
420
418
|
properties:
|
|
421
419
|
type:
|
|
422
420
|
type: string
|
|
423
|
-
enum: [
|
|
421
|
+
enum: [footer]
|
|
424
422
|
text:
|
|
425
423
|
type: string
|
|
426
424
|
description: Static footer text
|
|
@@ -434,7 +432,7 @@ components:
|
|
|
434
432
|
properties:
|
|
435
433
|
type:
|
|
436
434
|
type: string
|
|
437
|
-
enum: [
|
|
435
|
+
enum: [buttons]
|
|
438
436
|
buttons:
|
|
439
437
|
type: array
|
|
440
438
|
minItems: 1
|
|
@@ -14163,7 +14161,7 @@ paths:
|
|
|
14163
14161
|
description: Template language code (e.g., en_US)
|
|
14164
14162
|
components:
|
|
14165
14163
|
type: array
|
|
14166
|
-
description: "Template components (
|
|
14164
|
+
description: "Template components (header, body, footer, buttons). Required for custom templates, omit when using library_template_name."
|
|
14167
14165
|
minItems: 1
|
|
14168
14166
|
items:
|
|
14169
14167
|
$ref: '#/components/schemas/WhatsAppTemplateComponent'
|
|
@@ -14189,7 +14187,7 @@ paths:
|
|
|
14189
14187
|
properties:
|
|
14190
14188
|
type:
|
|
14191
14189
|
type: string
|
|
14192
|
-
enum: [
|
|
14190
|
+
enum: [quick_reply, url, phone_number]
|
|
14193
14191
|
url:
|
|
14194
14192
|
type: object
|
|
14195
14193
|
properties:
|
|
@@ -14205,19 +14203,19 @@ paths:
|
|
|
14205
14203
|
category: "UTILITY"
|
|
14206
14204
|
language: "en_US"
|
|
14207
14205
|
components:
|
|
14208
|
-
- type: "
|
|
14209
|
-
format: "
|
|
14206
|
+
- type: "header"
|
|
14207
|
+
format: "image"
|
|
14210
14208
|
example:
|
|
14211
14209
|
header_handle: ["https://example.com/header.jpg"]
|
|
14212
|
-
- type: "
|
|
14210
|
+
- type: "body"
|
|
14213
14211
|
text: "Your order {{1}} has been confirmed. Expected delivery: {{2}}"
|
|
14214
14212
|
example:
|
|
14215
14213
|
body_text: [["ORD-12345", "March 31"]]
|
|
14216
|
-
- type: "
|
|
14214
|
+
- type: "footer"
|
|
14217
14215
|
text: "Thank you for your purchase"
|
|
14218
|
-
- type: "
|
|
14216
|
+
- type: "buttons"
|
|
14219
14217
|
buttons:
|
|
14220
|
-
- type: "
|
|
14218
|
+
- type: "quick_reply"
|
|
14221
14219
|
text: "Track Order"
|
|
14222
14220
|
library:
|
|
14223
14221
|
summary: Library template (pre-approved, no review)
|
|
@@ -14228,7 +14226,7 @@ paths:
|
|
|
14228
14226
|
language: "en_US"
|
|
14229
14227
|
library_template_name: "appointment_reminder"
|
|
14230
14228
|
library_template_button_inputs:
|
|
14231
|
-
- type: "
|
|
14229
|
+
- type: "url"
|
|
14232
14230
|
url:
|
|
14233
14231
|
base_url: "https://myapp.com/appointments/{{1}}"
|
|
14234
14232
|
responses:
|
|
@@ -14336,13 +14334,13 @@ paths:
|
|
|
14336
14334
|
example:
|
|
14337
14335
|
accountId: "507f1f77bcf86cd799439011"
|
|
14338
14336
|
components:
|
|
14339
|
-
- type: "
|
|
14337
|
+
- type: "body"
|
|
14340
14338
|
text: "Updated: Your order {{1}} is confirmed. Delivery by {{2}}"
|
|
14341
14339
|
example:
|
|
14342
14340
|
body_text: [["ORD-12345", "April 1"]]
|
|
14343
|
-
- type: "
|
|
14341
|
+
- type: "buttons"
|
|
14344
14342
|
buttons:
|
|
14345
|
-
- type: "
|
|
14343
|
+
- type: "quick_reply"
|
|
14346
14344
|
text: "Track Order"
|
|
14347
14345
|
responses:
|
|
14348
14346
|
'200':
|
data/spec/models/create_whats_app_template_request_library_template_button_inputs_inner_spec.rb
CHANGED
|
@@ -30,7 +30,7 @@ describe Late::CreateWhatsAppTemplateRequestLibraryTemplateButtonInputsInner do
|
|
|
30
30
|
describe 'test attribute "type"' 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', ["
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["quick_reply", "url", "phone_number"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.type = value }.not_to raise_error
|
|
36
36
|
# end
|
|
@@ -30,7 +30,7 @@ describe Late::WhatsAppBodyComponent do
|
|
|
30
30
|
describe 'test attribute "type"' 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', ["
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["body"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.type = value }.not_to raise_error
|
|
36
36
|
# end
|
|
@@ -30,7 +30,7 @@ describe Late::WhatsAppButtonsComponent do
|
|
|
30
30
|
describe 'test attribute "type"' 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', ["
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["buttons"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.type = value }.not_to raise_error
|
|
36
36
|
# end
|
|
@@ -30,7 +30,7 @@ describe Late::WhatsAppFooterComponent do
|
|
|
30
30
|
describe 'test attribute "type"' 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', ["
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["footer"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.type = value }.not_to raise_error
|
|
36
36
|
# end
|
|
@@ -30,7 +30,7 @@ describe Late::WhatsAppHeaderComponent do
|
|
|
30
30
|
describe 'test attribute "type"' 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', ["
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["header"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.type = value }.not_to raise_error
|
|
36
36
|
# end
|
|
@@ -40,7 +40,7 @@ describe Late::WhatsAppHeaderComponent do
|
|
|
40
40
|
describe 'test attribute "format"' do
|
|
41
41
|
it 'should work' do
|
|
42
42
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
43
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["text", "image", "video", "gif", "document", "location"])
|
|
44
44
|
# validator.allowable_values.each do |value|
|
|
45
45
|
# expect { instance.format = value }.not_to raise_error
|
|
46
46
|
# end
|
|
@@ -30,7 +30,7 @@ describe Late::WhatsAppTemplateButton do
|
|
|
30
30
|
describe 'test attribute "type"' 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', ["
|
|
33
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["quick_reply", "url", "phone_number", "otp", "flow", "mpm", "catalog"])
|
|
34
34
|
# validator.allowable_values.each do |value|
|
|
35
35
|
# expect { instance.type = value }.not_to raise_error
|
|
36
36
|
# end
|
|
@@ -64,7 +64,7 @@ describe Late::WhatsAppTemplateButton do
|
|
|
64
64
|
describe 'test attribute "otp_type"' do
|
|
65
65
|
it 'should work' do
|
|
66
66
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["
|
|
67
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["copy_code", "one_tap", "zero_tap"])
|
|
68
68
|
# validator.allowable_values.each do |value|
|
|
69
69
|
# expect { instance.otp_type = value }.not_to raise_error
|
|
70
70
|
# end
|
|
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.95
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -2247,7 +2247,7 @@ files:
|
|
|
2247
2247
|
- spec/models/you_tube_scope_missing_response_scope_status_spec.rb
|
|
2248
2248
|
- spec/models/you_tube_scope_missing_response_spec.rb
|
|
2249
2249
|
- spec/spec_helper.rb
|
|
2250
|
-
- zernio-sdk-0.0.
|
|
2250
|
+
- zernio-sdk-0.0.95.gem
|
|
2251
2251
|
homepage: https://openapi-generator.tech
|
|
2252
2252
|
licenses:
|
|
2253
2253
|
- Unlicense
|
data/zernio-sdk-0.0.93.gem
DELETED
|
Binary file
|