late-sdk 0.0.68 → 0.0.69
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/README.md +62 -0
- data/docs/AddBroadcastRecipientsRequest.md +20 -0
- data/docs/BroadcastsApi.md +699 -0
- data/docs/BulkCreateContactsRequest.md +24 -0
- data/docs/BulkCreateContactsRequestContactsInner.md +28 -0
- data/docs/CommentAutomationsApi.md +428 -0
- data/docs/ContactsApi.md +500 -0
- data/docs/CreateBroadcastRequest.md +32 -0
- data/docs/CreateBroadcastRequestMessage.md +20 -0
- data/docs/CreateBroadcastRequestMessageAttachmentsInner.md +22 -0
- data/docs/CreateBroadcastRequestSegmentFilters.md +20 -0
- data/docs/CreateBroadcastRequestTemplate.md +22 -0
- data/docs/CreateCommentAutomationRequest.md +36 -0
- data/docs/CreateContactRequest.md +38 -0
- data/docs/CreateCustomFieldRequest.md +26 -0
- data/docs/CreateSequenceRequest.md +32 -0
- data/docs/CreateSequenceRequestStepsInner.md +24 -0
- data/docs/CreateSequenceRequestStepsInnerMessage.md +18 -0
- data/docs/CustomFieldsApi.md +419 -0
- data/docs/EnrollContactsRequest.md +20 -0
- data/docs/ListCommentAutomations200Response.md +20 -0
- data/docs/ListCommentAutomations200ResponseAutomationsInner.md +42 -0
- data/docs/ListCommentAutomations200ResponseAutomationsInnerStats.md +24 -0
- data/docs/ScheduleBroadcastRequest.md +18 -0
- data/docs/SequencesApi.md +697 -0
- data/docs/SetContactFieldValueRequest.md +18 -0
- data/docs/UpdateCommentAutomationRequest.md +28 -0
- data/docs/UpdateContactRequest.md +32 -0
- data/docs/UpdateCustomFieldRequest.md +20 -0
- data/docs/WhatsAppApi.md +25 -25
- data/lib/late-sdk/api/broadcasts_api.rb +689 -0
- data/lib/late-sdk/api/comment_automations_api.rb +420 -0
- data/lib/late-sdk/api/contacts_api.rb +503 -0
- data/lib/late-sdk/api/custom_fields_api.rb +424 -0
- data/lib/late-sdk/api/sequences_api.rb +681 -0
- data/lib/late-sdk/api/whats_app_api.rb +50 -50
- data/lib/late-sdk/models/add_broadcast_recipients_request.rb +160 -0
- data/lib/late-sdk/models/bulk_create_contacts_request.rb +253 -0
- data/lib/late-sdk/models/bulk_create_contacts_request_contacts_inner.rb +228 -0
- data/lib/late-sdk/models/create_broadcast_request.rb +302 -0
- data/lib/late-sdk/models/create_broadcast_request_message.rb +158 -0
- data/lib/late-sdk/models/create_broadcast_request_message_attachments_inner.rb +165 -0
- data/lib/late-sdk/models/create_broadcast_request_segment_filters.rb +158 -0
- data/lib/late-sdk/models/create_broadcast_request_template.rb +168 -0
- data/lib/late-sdk/models/create_comment_automation_request.rb +359 -0
- data/lib/late-sdk/models/create_contact_request.rb +276 -0
- data/lib/late-sdk/models/create_custom_field_request.rb +262 -0
- data/lib/late-sdk/models/create_sequence_request.rb +308 -0
- data/lib/late-sdk/models/create_sequence_request_steps_inner.rb +208 -0
- data/lib/late-sdk/models/create_sequence_request_steps_inner_message.rb +147 -0
- data/lib/late-sdk/models/enroll_contacts_request.rb +178 -0
- data/lib/late-sdk/models/list_comment_automations200_response.rb +158 -0
- data/lib/late-sdk/models/list_comment_automations200_response_automations_inner.rb +303 -0
- data/lib/late-sdk/models/list_comment_automations200_response_automations_inner_stats.rb +174 -0
- data/lib/late-sdk/models/schedule_broadcast_request.rb +164 -0
- data/lib/late-sdk/models/set_contact_field_value_request.rb +150 -0
- data/lib/late-sdk/models/update_comment_automation_request.rb +228 -0
- data/lib/late-sdk/models/update_contact_request.rb +212 -0
- data/lib/late-sdk/models/update_custom_field_request.rb +158 -0
- data/lib/late-sdk/version.rb +1 -1
- data/lib/late-sdk.rb +28 -0
- data/openapi.yaml +809 -13
- data/spec/api/broadcasts_api_spec.rb +154 -0
- data/spec/api/comment_automations_api_spec.rb +108 -0
- data/spec/api/contacts_api_spec.rb +122 -0
- data/spec/api/custom_fields_api_spec.rb +105 -0
- data/spec/api/sequences_api_spec.rb +153 -0
- data/spec/api/whats_app_api_spec.rb +25 -25
- data/spec/models/add_broadcast_recipients_request_spec.rb +42 -0
- data/spec/models/bulk_create_contacts_request_contacts_inner_spec.rb +66 -0
- data/spec/models/bulk_create_contacts_request_spec.rb +54 -0
- data/spec/models/create_broadcast_request_message_attachments_inner_spec.rb +48 -0
- data/spec/models/create_broadcast_request_message_spec.rb +42 -0
- data/spec/models/create_broadcast_request_segment_filters_spec.rb +42 -0
- data/spec/models/create_broadcast_request_spec.rb +82 -0
- data/spec/models/create_broadcast_request_template_spec.rb +48 -0
- data/spec/models/create_comment_automation_request_spec.rb +94 -0
- data/spec/models/create_contact_request_spec.rb +96 -0
- data/spec/models/create_custom_field_request_spec.rb +64 -0
- data/spec/models/create_sequence_request_spec.rb +82 -0
- data/spec/models/create_sequence_request_steps_inner_message_spec.rb +36 -0
- data/spec/models/create_sequence_request_steps_inner_spec.rb +54 -0
- data/spec/models/enroll_contacts_request_spec.rb +42 -0
- data/spec/models/list_comment_automations200_response_automations_inner_spec.rb +116 -0
- data/spec/models/list_comment_automations200_response_automations_inner_stats_spec.rb +54 -0
- data/spec/models/list_comment_automations200_response_spec.rb +42 -0
- data/spec/models/schedule_broadcast_request_spec.rb +36 -0
- data/spec/models/set_contact_field_value_request_spec.rb +36 -0
- data/spec/models/update_comment_automation_request_spec.rb +70 -0
- data/spec/models/update_contact_request_spec.rb +78 -0
- data/spec/models/update_custom_field_request_spec.rb +42 -0
- data/zernio-sdk-0.0.69.gem +0 -0
- metadata +114 -2
- data/zernio-sdk-0.0.68.gem +0 -0
|
@@ -34,7 +34,7 @@ describe 'WhatsAppApi' do
|
|
|
34
34
|
|
|
35
35
|
# unit tests for add_whats_app_broadcast_recipients
|
|
36
36
|
# Add recipients
|
|
37
|
-
# Add recipients to a draft broadcast. Maximum 1000 recipients per request. Duplicate phone numbers are automatically skipped.
|
|
37
|
+
# **Deprecated.** Use `POST /v1/broadcasts/{id}/recipients` instead. Add recipients to a draft broadcast. Maximum 1000 recipients per request. Duplicate phone numbers are automatically skipped.
|
|
38
38
|
# @param broadcast_id Broadcast ID
|
|
39
39
|
# @param add_whats_app_broadcast_recipients_request
|
|
40
40
|
# @param [Hash] opts the optional parameters
|
|
@@ -47,7 +47,7 @@ describe 'WhatsAppApi' do
|
|
|
47
47
|
|
|
48
48
|
# unit tests for bulk_delete_whats_app_contacts
|
|
49
49
|
# Bulk delete contacts
|
|
50
|
-
# Permanently delete multiple contacts at once (max 500 per request).
|
|
50
|
+
# **Deprecated.** Use `DELETE /v1/contacts/{id}` for individual deletes instead. Permanently delete multiple contacts at once (max 500 per request).
|
|
51
51
|
# @param bulk_delete_whats_app_contacts_request
|
|
52
52
|
# @param [Hash] opts the optional parameters
|
|
53
53
|
# @return [BulkDeleteWhatsAppContacts200Response]
|
|
@@ -59,7 +59,7 @@ describe 'WhatsAppApi' do
|
|
|
59
59
|
|
|
60
60
|
# unit tests for bulk_update_whats_app_contacts
|
|
61
61
|
# Bulk update contacts
|
|
62
|
-
# Perform bulk operations on multiple contacts (max 500 per request). Supported actions: addTags, removeTags, addGroups, removeGroups, optIn, optOut, block, unblock.
|
|
62
|
+
# **Deprecated.** Use `PATCH /v1/contacts/{id}` for individual updates instead. Perform bulk operations on multiple contacts (max 500 per request). Supported actions: addTags, removeTags, addGroups, removeGroups, optIn, optOut, block, unblock.
|
|
63
63
|
# @param bulk_update_whats_app_contacts_request
|
|
64
64
|
# @param [Hash] opts the optional parameters
|
|
65
65
|
# @return [BulkUpdateWhatsAppContacts200Response]
|
|
@@ -71,7 +71,7 @@ describe 'WhatsAppApi' do
|
|
|
71
71
|
|
|
72
72
|
# unit tests for cancel_whats_app_broadcast_schedule
|
|
73
73
|
# Cancel scheduled broadcast
|
|
74
|
-
# Cancel a scheduled broadcast and return it to draft status. Only broadcasts in scheduled status can be cancelled.
|
|
74
|
+
# **Deprecated.** Use `POST /v1/broadcasts/{id}/cancel` instead. Cancel a scheduled broadcast and return it to draft status. Only broadcasts in scheduled status can be cancelled.
|
|
75
75
|
# @param broadcast_id Broadcast ID
|
|
76
76
|
# @param [Hash] opts the optional parameters
|
|
77
77
|
# @return [CancelWhatsAppBroadcastSchedule200Response]
|
|
@@ -83,7 +83,7 @@ describe 'WhatsAppApi' do
|
|
|
83
83
|
|
|
84
84
|
# unit tests for create_whats_app_broadcast
|
|
85
85
|
# Create broadcast
|
|
86
|
-
# Create a new draft broadcast. Optionally include initial recipients. After creation, add recipients and then send or schedule the broadcast.
|
|
86
|
+
# **Deprecated.** Use `POST /v1/broadcasts` instead. Create a new draft broadcast. Optionally include initial recipients. After creation, add recipients and then send or schedule the broadcast.
|
|
87
87
|
# @param create_whats_app_broadcast_request
|
|
88
88
|
# @param [Hash] opts the optional parameters
|
|
89
89
|
# @return [CreateWhatsAppBroadcast200Response]
|
|
@@ -95,7 +95,7 @@ describe 'WhatsAppApi' do
|
|
|
95
95
|
|
|
96
96
|
# unit tests for create_whats_app_contact
|
|
97
97
|
# Create contact
|
|
98
|
-
# Create a new WhatsApp contact. Phone number must be unique per account and in E.164 format (e.g., +1234567890).
|
|
98
|
+
# **Deprecated.** Use `POST /v1/contacts` instead. Create a new WhatsApp contact. Phone number must be unique per account and in E.164 format (e.g., +1234567890).
|
|
99
99
|
# @param create_whats_app_contact_request
|
|
100
100
|
# @param [Hash] opts the optional parameters
|
|
101
101
|
# @return [CreateWhatsAppContact200Response]
|
|
@@ -119,7 +119,7 @@ describe 'WhatsAppApi' do
|
|
|
119
119
|
|
|
120
120
|
# unit tests for delete_whats_app_broadcast
|
|
121
121
|
# Delete broadcast
|
|
122
|
-
# Delete a broadcast. Only draft or cancelled broadcasts can be deleted.
|
|
122
|
+
# **Deprecated.** Use `DELETE /v1/broadcasts/{id}` instead. Delete a broadcast. Only draft or cancelled broadcasts can be deleted.
|
|
123
123
|
# @param broadcast_id Broadcast ID
|
|
124
124
|
# @param [Hash] opts the optional parameters
|
|
125
125
|
# @return [UnpublishPost200Response]
|
|
@@ -131,7 +131,7 @@ describe 'WhatsAppApi' do
|
|
|
131
131
|
|
|
132
132
|
# unit tests for delete_whats_app_contact
|
|
133
133
|
# Delete contact
|
|
134
|
-
# Permanently delete a WhatsApp contact.
|
|
134
|
+
# **Deprecated.** Use `DELETE /v1/contacts/{id}` instead. Permanently delete a WhatsApp contact.
|
|
135
135
|
# @param contact_id Contact ID
|
|
136
136
|
# @param [Hash] opts the optional parameters
|
|
137
137
|
# @return [UnpublishPost200Response]
|
|
@@ -143,7 +143,7 @@ describe 'WhatsAppApi' do
|
|
|
143
143
|
|
|
144
144
|
# unit tests for delete_whats_app_group
|
|
145
145
|
# Delete group
|
|
146
|
-
# Delete a contact group. This removes the group from all contacts but does not delete the contacts themselves.
|
|
146
|
+
# **Deprecated.** Use contact tags via `PATCH /v1/contacts/{id}` instead. Delete a contact group. This removes the group from all contacts but does not delete the contacts themselves.
|
|
147
147
|
# @param delete_whats_app_group_request
|
|
148
148
|
# @param [Hash] opts the optional parameters
|
|
149
149
|
# @return [RenameWhatsAppGroup200Response]
|
|
@@ -155,7 +155,7 @@ describe 'WhatsAppApi' do
|
|
|
155
155
|
|
|
156
156
|
# unit tests for delete_whats_app_template
|
|
157
157
|
# Delete template
|
|
158
|
-
# Permanently delete a message template by name.
|
|
158
|
+
# Permanently delete a message template by name.
|
|
159
159
|
# @param template_name Template name
|
|
160
160
|
# @param account_id WhatsApp social account ID
|
|
161
161
|
# @param [Hash] opts the optional parameters
|
|
@@ -168,7 +168,7 @@ describe 'WhatsAppApi' do
|
|
|
168
168
|
|
|
169
169
|
# unit tests for get_whats_app_broadcast
|
|
170
170
|
# Get broadcast
|
|
171
|
-
# Retrieve detailed information about a single broadcast including delivery statistics.
|
|
171
|
+
# **Deprecated.** Use `GET /v1/broadcasts/{id}` instead. Retrieve detailed information about a single broadcast including delivery statistics.
|
|
172
172
|
# @param broadcast_id Broadcast ID
|
|
173
173
|
# @param [Hash] opts the optional parameters
|
|
174
174
|
# @return [GetWhatsAppBroadcast200Response]
|
|
@@ -180,7 +180,7 @@ describe 'WhatsAppApi' do
|
|
|
180
180
|
|
|
181
181
|
# unit tests for get_whats_app_broadcast_recipients
|
|
182
182
|
# List recipients
|
|
183
|
-
# List recipients of a broadcast with their delivery status. Supports filtering by delivery status and pagination.
|
|
183
|
+
# **Deprecated.** Use `GET /v1/broadcasts/{id}/recipients` instead. List recipients of a broadcast with their delivery status. Supports filtering by delivery status and pagination.
|
|
184
184
|
# @param broadcast_id Broadcast ID
|
|
185
185
|
# @param [Hash] opts the optional parameters
|
|
186
186
|
# @option opts [String] :status Filter by recipient delivery status
|
|
@@ -195,7 +195,7 @@ describe 'WhatsAppApi' do
|
|
|
195
195
|
|
|
196
196
|
# unit tests for get_whats_app_broadcasts
|
|
197
197
|
# List broadcasts
|
|
198
|
-
# List all WhatsApp broadcasts for an account. Returns broadcasts sorted by creation date (newest first) without the full recipients list for performance.
|
|
198
|
+
# **Deprecated.** Use `GET /v1/broadcasts?profileId={profileId}` instead. List all WhatsApp broadcasts for an account. Returns broadcasts sorted by creation date (newest first) without the full recipients list for performance.
|
|
199
199
|
# @param account_id WhatsApp social account ID
|
|
200
200
|
# @param [Hash] opts the optional parameters
|
|
201
201
|
# @option opts [String] :status Filter by broadcast status
|
|
@@ -210,7 +210,7 @@ describe 'WhatsAppApi' do
|
|
|
210
210
|
|
|
211
211
|
# unit tests for get_whats_app_business_profile
|
|
212
212
|
# Get business profile
|
|
213
|
-
# Retrieve the WhatsApp Business profile for the account (about, address, description, email, websites, etc.).
|
|
213
|
+
# Retrieve the WhatsApp Business profile for the account (about, address, description, email, websites, etc.).
|
|
214
214
|
# @param account_id WhatsApp social account ID
|
|
215
215
|
# @param [Hash] opts the optional parameters
|
|
216
216
|
# @return [GetWhatsAppBusinessProfile200Response]
|
|
@@ -222,7 +222,7 @@ describe 'WhatsAppApi' do
|
|
|
222
222
|
|
|
223
223
|
# unit tests for get_whats_app_contact
|
|
224
224
|
# Get contact
|
|
225
|
-
# Retrieve a single WhatsApp contact by ID with full details.
|
|
225
|
+
# **Deprecated.** Use `GET /v1/contacts/{id}` instead. Retrieve a single WhatsApp contact by ID with full details.
|
|
226
226
|
# @param contact_id Contact ID
|
|
227
227
|
# @param [Hash] opts the optional parameters
|
|
228
228
|
# @return [GetWhatsAppContact200Response]
|
|
@@ -234,7 +234,7 @@ describe 'WhatsAppApi' do
|
|
|
234
234
|
|
|
235
235
|
# unit tests for get_whats_app_contacts
|
|
236
236
|
# List contacts
|
|
237
|
-
# List WhatsApp contacts for an account. Supports filtering by tags, groups, opt-in status, and text search. Returns contacts sorted by name with available filter options.
|
|
237
|
+
# **Deprecated.** Use `GET /v1/contacts?profileId={profileId}` instead. List WhatsApp contacts for an account. Supports filtering by tags, groups, opt-in status, and text search. Returns contacts sorted by name with available filter options.
|
|
238
238
|
# @param account_id WhatsApp social account ID
|
|
239
239
|
# @param [Hash] opts the optional parameters
|
|
240
240
|
# @option opts [String] :search Search contacts by name, phone, email, or company
|
|
@@ -264,7 +264,7 @@ describe 'WhatsAppApi' do
|
|
|
264
264
|
|
|
265
265
|
# unit tests for get_whats_app_groups
|
|
266
266
|
# List contact groups
|
|
267
|
-
# List all contact groups for a WhatsApp account with contact counts. Groups are derived from the groups field on contacts, not stored as separate documents.
|
|
267
|
+
# **Deprecated.** Use contact tags via `GET /v1/contacts` for grouping instead. WhatsApp groups have no cross-platform equivalent. List all contact groups for a WhatsApp account with contact counts. Groups are derived from the groups field on contacts, not stored as separate documents.
|
|
268
268
|
# @param account_id WhatsApp social account ID
|
|
269
269
|
# @param [Hash] opts the optional parameters
|
|
270
270
|
# @return [GetWhatsAppGroups200Response]
|
|
@@ -276,7 +276,7 @@ describe 'WhatsAppApi' do
|
|
|
276
276
|
|
|
277
277
|
# unit tests for get_whats_app_template
|
|
278
278
|
# Get template
|
|
279
|
-
# Retrieve a single message template by name.
|
|
279
|
+
# Retrieve a single message template by name.
|
|
280
280
|
# @param template_name Template name
|
|
281
281
|
# @param account_id WhatsApp social account ID
|
|
282
282
|
# @param [Hash] opts the optional parameters
|
|
@@ -301,7 +301,7 @@ describe 'WhatsAppApi' do
|
|
|
301
301
|
|
|
302
302
|
# unit tests for import_whats_app_contacts
|
|
303
303
|
# Bulk import contacts
|
|
304
|
-
# Import up to 1000 contacts at once. Each contact requires a phone number and name. Duplicates are skipped by default. Supports default tags and groups applied to all imported contacts.
|
|
304
|
+
# **Deprecated.** Use `POST /v1/contacts/bulk` instead. Import up to 1000 contacts at once. Each contact requires a phone number and name. Duplicates are skipped by default. Supports default tags and groups applied to all imported contacts.
|
|
305
305
|
# @param import_whats_app_contacts_request
|
|
306
306
|
# @param [Hash] opts the optional parameters
|
|
307
307
|
# @return [ImportWhatsAppContacts200Response]
|
|
@@ -313,7 +313,7 @@ describe 'WhatsAppApi' do
|
|
|
313
313
|
|
|
314
314
|
# unit tests for remove_whats_app_broadcast_recipients
|
|
315
315
|
# Remove recipients
|
|
316
|
-
# Remove recipients from a draft broadcast by phone number.
|
|
316
|
+
# **Deprecated.** Use `POST /v1/broadcasts/{id}/recipients` with removal flag instead. Remove recipients from a draft broadcast by phone number.
|
|
317
317
|
# @param broadcast_id Broadcast ID
|
|
318
318
|
# @param remove_whats_app_broadcast_recipients_request
|
|
319
319
|
# @param [Hash] opts the optional parameters
|
|
@@ -326,7 +326,7 @@ describe 'WhatsAppApi' do
|
|
|
326
326
|
|
|
327
327
|
# unit tests for rename_whats_app_group
|
|
328
328
|
# Rename group
|
|
329
|
-
# Rename a contact group. This updates the group name on all contacts that belong to the group.
|
|
329
|
+
# **Deprecated.** Use contact tags via `PATCH /v1/contacts/{id}` instead. Rename a contact group. This updates the group name on all contacts that belong to the group.
|
|
330
330
|
# @param rename_whats_app_group_request
|
|
331
331
|
# @param [Hash] opts the optional parameters
|
|
332
332
|
# @return [RenameWhatsAppGroup200Response]
|
|
@@ -338,7 +338,7 @@ describe 'WhatsAppApi' do
|
|
|
338
338
|
|
|
339
339
|
# unit tests for schedule_whats_app_broadcast
|
|
340
340
|
# Schedule broadcast
|
|
341
|
-
# Schedule a draft broadcast for future sending. The scheduled time must be in the future and no more than 30 days in advance. The broadcast must be in draft status and have recipients.
|
|
341
|
+
# **Deprecated.** Use `POST /v1/broadcasts/{id}/schedule` instead. Schedule a draft broadcast for future sending. The scheduled time must be in the future and no more than 30 days in advance. The broadcast must be in draft status and have recipients.
|
|
342
342
|
# @param broadcast_id Broadcast ID
|
|
343
343
|
# @param schedule_whats_app_broadcast_request
|
|
344
344
|
# @param [Hash] opts the optional parameters
|
|
@@ -351,7 +351,7 @@ describe 'WhatsAppApi' do
|
|
|
351
351
|
|
|
352
352
|
# unit tests for send_whats_app_broadcast
|
|
353
353
|
# Send broadcast
|
|
354
|
-
# Start sending a broadcast immediately. The broadcast must be in draft or scheduled status and have at least one recipient. Messages are sent sequentially with rate limiting.
|
|
354
|
+
# **Deprecated.** Use `POST /v1/broadcasts/{id}/send` instead. Start sending a broadcast immediately. The broadcast must be in draft or scheduled status and have at least one recipient. Messages are sent sequentially with rate limiting.
|
|
355
355
|
# @param broadcast_id Broadcast ID
|
|
356
356
|
# @param [Hash] opts the optional parameters
|
|
357
357
|
# @return [SendWhatsAppBroadcast200Response]
|
|
@@ -363,7 +363,7 @@ describe 'WhatsAppApi' do
|
|
|
363
363
|
|
|
364
364
|
# unit tests for send_whats_app_bulk
|
|
365
365
|
# Bulk send template messages
|
|
366
|
-
# Send a template message to multiple recipients in a single request. Maximum 100 recipients per request. Only template messages are supported for bulk sending (not free-form text). Each recipient can have optional per-recipient template variables for personalization. Returns detailed results for each recipient.
|
|
366
|
+
# **Deprecated.** Use `POST /v1/broadcasts` to create a broadcast, `POST /v1/broadcasts/{id}/recipients` to add recipients, then `POST /v1/broadcasts/{id}/send` to send. Send a template message to multiple recipients in a single request. Maximum 100 recipients per request. Only template messages are supported for bulk sending (not free-form text). Each recipient can have optional per-recipient template variables for personalization. Returns detailed results for each recipient.
|
|
367
367
|
# @param send_whats_app_bulk_request
|
|
368
368
|
# @param [Hash] opts the optional parameters
|
|
369
369
|
# @return [SendWhatsAppBulk200Response]
|
|
@@ -387,7 +387,7 @@ describe 'WhatsAppApi' do
|
|
|
387
387
|
|
|
388
388
|
# unit tests for update_whats_app_contact
|
|
389
389
|
# Update contact
|
|
390
|
-
# Update an existing WhatsApp contact. All fields are optional; only provided fields will be updated. Custom fields are merged with existing values. Set a custom field to null to remove it.
|
|
390
|
+
# **Deprecated.** Use `PATCH /v1/contacts/{id}` instead. Update an existing WhatsApp contact. All fields are optional; only provided fields will be updated. Custom fields are merged with existing values. Set a custom field to null to remove it.
|
|
391
391
|
# @param contact_id Contact ID
|
|
392
392
|
# @param update_whats_app_contact_request
|
|
393
393
|
# @param [Hash] opts the optional parameters
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Late::AddBroadcastRecipientsRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::AddBroadcastRecipientsRequest do
|
|
21
|
+
#let(:instance) { Late::AddBroadcastRecipientsRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of AddBroadcastRecipientsRequest' do
|
|
24
|
+
it 'should create an instance of AddBroadcastRecipientsRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::AddBroadcastRecipientsRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "contact_ids"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "use_segment"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Late::BulkCreateContactsRequestContactsInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::BulkCreateContactsRequestContactsInner do
|
|
21
|
+
#let(:instance) { Late::BulkCreateContactsRequestContactsInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of BulkCreateContactsRequestContactsInner' do
|
|
24
|
+
it 'should create an instance of BulkCreateContactsRequestContactsInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::BulkCreateContactsRequestContactsInner)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "name"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "platform_identifier"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "display_identifier"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "email"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
describe 'test attribute "company"' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
describe 'test attribute "tags"' 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
|
+
|
|
66
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Late::BulkCreateContactsRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::BulkCreateContactsRequest do
|
|
21
|
+
#let(:instance) { Late::BulkCreateContactsRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of BulkCreateContactsRequest' do
|
|
24
|
+
it 'should create an instance of BulkCreateContactsRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::BulkCreateContactsRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "profile_id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "account_id"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "platform"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
describe 'test attribute "contacts"' do
|
|
49
|
+
it 'should work' do
|
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Late::CreateBroadcastRequestMessageAttachmentsInner
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::CreateBroadcastRequestMessageAttachmentsInner do
|
|
21
|
+
#let(:instance) { Late::CreateBroadcastRequestMessageAttachmentsInner.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateBroadcastRequestMessageAttachmentsInner' do
|
|
24
|
+
it 'should create an instance of CreateBroadcastRequestMessageAttachmentsInner' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::CreateBroadcastRequestMessageAttachmentsInner)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "type"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "url"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "filename"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Late::CreateBroadcastRequestMessage
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::CreateBroadcastRequestMessage do
|
|
21
|
+
#let(:instance) { Late::CreateBroadcastRequestMessage.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateBroadcastRequestMessage' do
|
|
24
|
+
it 'should create an instance of CreateBroadcastRequestMessage' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::CreateBroadcastRequestMessage)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "text"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "attachments"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Late::CreateBroadcastRequestSegmentFilters
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::CreateBroadcastRequestSegmentFilters do
|
|
21
|
+
#let(:instance) { Late::CreateBroadcastRequestSegmentFilters.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateBroadcastRequestSegmentFilters' do
|
|
24
|
+
it 'should create an instance of CreateBroadcastRequestSegmentFilters' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::CreateBroadcastRequestSegmentFilters)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "tags"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "is_subscribed"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Late::CreateBroadcastRequest
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::CreateBroadcastRequest do
|
|
21
|
+
#let(:instance) { Late::CreateBroadcastRequest.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateBroadcastRequest' do
|
|
24
|
+
it 'should create an instance of CreateBroadcastRequest' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::CreateBroadcastRequest)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "profile_id"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "account_id"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "platform"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["instagram", "facebook", "telegram", "twitter", "bluesky", "reddit", "whatsapp"])
|
|
46
|
+
# validator.allowable_values.each do |value|
|
|
47
|
+
# expect { instance.platform = value }.not_to raise_error
|
|
48
|
+
# end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
describe 'test attribute "name"' do
|
|
53
|
+
it 'should work' do
|
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
describe 'test attribute "description"' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
describe 'test attribute "message"' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
describe 'test attribute "template"' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
describe 'test attribute "segment_filters"' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Zernio API
|
|
3
|
+
|
|
4
|
+
#API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.1
|
|
7
|
+
Contact: support@zernio.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Late::CreateBroadcastRequestTemplate
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Late::CreateBroadcastRequestTemplate do
|
|
21
|
+
#let(:instance) { Late::CreateBroadcastRequestTemplate.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of CreateBroadcastRequestTemplate' do
|
|
24
|
+
it 'should create an instance of CreateBroadcastRequestTemplate' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Late::CreateBroadcastRequestTemplate)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "name"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "language"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
describe 'test attribute "components"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
end
|