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.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +62 -0
  3. data/docs/AddBroadcastRecipientsRequest.md +20 -0
  4. data/docs/BroadcastsApi.md +699 -0
  5. data/docs/BulkCreateContactsRequest.md +24 -0
  6. data/docs/BulkCreateContactsRequestContactsInner.md +28 -0
  7. data/docs/CommentAutomationsApi.md +428 -0
  8. data/docs/ContactsApi.md +500 -0
  9. data/docs/CreateBroadcastRequest.md +32 -0
  10. data/docs/CreateBroadcastRequestMessage.md +20 -0
  11. data/docs/CreateBroadcastRequestMessageAttachmentsInner.md +22 -0
  12. data/docs/CreateBroadcastRequestSegmentFilters.md +20 -0
  13. data/docs/CreateBroadcastRequestTemplate.md +22 -0
  14. data/docs/CreateCommentAutomationRequest.md +36 -0
  15. data/docs/CreateContactRequest.md +38 -0
  16. data/docs/CreateCustomFieldRequest.md +26 -0
  17. data/docs/CreateSequenceRequest.md +32 -0
  18. data/docs/CreateSequenceRequestStepsInner.md +24 -0
  19. data/docs/CreateSequenceRequestStepsInnerMessage.md +18 -0
  20. data/docs/CustomFieldsApi.md +419 -0
  21. data/docs/EnrollContactsRequest.md +20 -0
  22. data/docs/ListCommentAutomations200Response.md +20 -0
  23. data/docs/ListCommentAutomations200ResponseAutomationsInner.md +42 -0
  24. data/docs/ListCommentAutomations200ResponseAutomationsInnerStats.md +24 -0
  25. data/docs/ScheduleBroadcastRequest.md +18 -0
  26. data/docs/SequencesApi.md +697 -0
  27. data/docs/SetContactFieldValueRequest.md +18 -0
  28. data/docs/UpdateCommentAutomationRequest.md +28 -0
  29. data/docs/UpdateContactRequest.md +32 -0
  30. data/docs/UpdateCustomFieldRequest.md +20 -0
  31. data/docs/WhatsAppApi.md +25 -25
  32. data/lib/late-sdk/api/broadcasts_api.rb +689 -0
  33. data/lib/late-sdk/api/comment_automations_api.rb +420 -0
  34. data/lib/late-sdk/api/contacts_api.rb +503 -0
  35. data/lib/late-sdk/api/custom_fields_api.rb +424 -0
  36. data/lib/late-sdk/api/sequences_api.rb +681 -0
  37. data/lib/late-sdk/api/whats_app_api.rb +50 -50
  38. data/lib/late-sdk/models/add_broadcast_recipients_request.rb +160 -0
  39. data/lib/late-sdk/models/bulk_create_contacts_request.rb +253 -0
  40. data/lib/late-sdk/models/bulk_create_contacts_request_contacts_inner.rb +228 -0
  41. data/lib/late-sdk/models/create_broadcast_request.rb +302 -0
  42. data/lib/late-sdk/models/create_broadcast_request_message.rb +158 -0
  43. data/lib/late-sdk/models/create_broadcast_request_message_attachments_inner.rb +165 -0
  44. data/lib/late-sdk/models/create_broadcast_request_segment_filters.rb +158 -0
  45. data/lib/late-sdk/models/create_broadcast_request_template.rb +168 -0
  46. data/lib/late-sdk/models/create_comment_automation_request.rb +359 -0
  47. data/lib/late-sdk/models/create_contact_request.rb +276 -0
  48. data/lib/late-sdk/models/create_custom_field_request.rb +262 -0
  49. data/lib/late-sdk/models/create_sequence_request.rb +308 -0
  50. data/lib/late-sdk/models/create_sequence_request_steps_inner.rb +208 -0
  51. data/lib/late-sdk/models/create_sequence_request_steps_inner_message.rb +147 -0
  52. data/lib/late-sdk/models/enroll_contacts_request.rb +178 -0
  53. data/lib/late-sdk/models/list_comment_automations200_response.rb +158 -0
  54. data/lib/late-sdk/models/list_comment_automations200_response_automations_inner.rb +303 -0
  55. data/lib/late-sdk/models/list_comment_automations200_response_automations_inner_stats.rb +174 -0
  56. data/lib/late-sdk/models/schedule_broadcast_request.rb +164 -0
  57. data/lib/late-sdk/models/set_contact_field_value_request.rb +150 -0
  58. data/lib/late-sdk/models/update_comment_automation_request.rb +228 -0
  59. data/lib/late-sdk/models/update_contact_request.rb +212 -0
  60. data/lib/late-sdk/models/update_custom_field_request.rb +158 -0
  61. data/lib/late-sdk/version.rb +1 -1
  62. data/lib/late-sdk.rb +28 -0
  63. data/openapi.yaml +809 -13
  64. data/spec/api/broadcasts_api_spec.rb +154 -0
  65. data/spec/api/comment_automations_api_spec.rb +108 -0
  66. data/spec/api/contacts_api_spec.rb +122 -0
  67. data/spec/api/custom_fields_api_spec.rb +105 -0
  68. data/spec/api/sequences_api_spec.rb +153 -0
  69. data/spec/api/whats_app_api_spec.rb +25 -25
  70. data/spec/models/add_broadcast_recipients_request_spec.rb +42 -0
  71. data/spec/models/bulk_create_contacts_request_contacts_inner_spec.rb +66 -0
  72. data/spec/models/bulk_create_contacts_request_spec.rb +54 -0
  73. data/spec/models/create_broadcast_request_message_attachments_inner_spec.rb +48 -0
  74. data/spec/models/create_broadcast_request_message_spec.rb +42 -0
  75. data/spec/models/create_broadcast_request_segment_filters_spec.rb +42 -0
  76. data/spec/models/create_broadcast_request_spec.rb +82 -0
  77. data/spec/models/create_broadcast_request_template_spec.rb +48 -0
  78. data/spec/models/create_comment_automation_request_spec.rb +94 -0
  79. data/spec/models/create_contact_request_spec.rb +96 -0
  80. data/spec/models/create_custom_field_request_spec.rb +64 -0
  81. data/spec/models/create_sequence_request_spec.rb +82 -0
  82. data/spec/models/create_sequence_request_steps_inner_message_spec.rb +36 -0
  83. data/spec/models/create_sequence_request_steps_inner_spec.rb +54 -0
  84. data/spec/models/enroll_contacts_request_spec.rb +42 -0
  85. data/spec/models/list_comment_automations200_response_automations_inner_spec.rb +116 -0
  86. data/spec/models/list_comment_automations200_response_automations_inner_stats_spec.rb +54 -0
  87. data/spec/models/list_comment_automations200_response_spec.rb +42 -0
  88. data/spec/models/schedule_broadcast_request_spec.rb +36 -0
  89. data/spec/models/set_contact_field_value_request_spec.rb +36 -0
  90. data/spec/models/update_comment_automation_request_spec.rb +70 -0
  91. data/spec/models/update_contact_request_spec.rb +78 -0
  92. data/spec/models/update_custom_field_request_spec.rb +42 -0
  93. data/zernio-sdk-0.0.69.gem +0 -0
  94. metadata +114 -2
  95. data/zernio-sdk-0.0.68.gem +0 -0
@@ -20,7 +20,7 @@ module Late
20
20
  @api_client = api_client
21
21
  end
22
22
  # Add recipients
23
- # Add recipients to a draft broadcast. Maximum 1000 recipients per request. Duplicate phone numbers are automatically skipped.
23
+ # **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.
24
24
  # @param broadcast_id [String] Broadcast ID
25
25
  # @param add_whats_app_broadcast_recipients_request [AddWhatsAppBroadcastRecipientsRequest]
26
26
  # @param [Hash] opts the optional parameters
@@ -31,7 +31,7 @@ module Late
31
31
  end
32
32
 
33
33
  # Add recipients
34
- # Add recipients to a draft broadcast. Maximum 1000 recipients per request. Duplicate phone numbers are automatically skipped.
34
+ # **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.
35
35
  # @param broadcast_id [String] Broadcast ID
36
36
  # @param add_whats_app_broadcast_recipients_request [AddWhatsAppBroadcastRecipientsRequest]
37
37
  # @param [Hash] opts the optional parameters
@@ -94,7 +94,7 @@ module Late
94
94
  end
95
95
 
96
96
  # Bulk delete contacts
97
- # Permanently delete multiple contacts at once (max 500 per request).
97
+ # **Deprecated.** Use `DELETE /v1/contacts/{id}` for individual deletes instead. Permanently delete multiple contacts at once (max 500 per request).
98
98
  # @param bulk_delete_whats_app_contacts_request [BulkDeleteWhatsAppContactsRequest]
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [BulkDeleteWhatsAppContacts200Response]
@@ -104,7 +104,7 @@ module Late
104
104
  end
105
105
 
106
106
  # Bulk delete contacts
107
- # Permanently delete multiple contacts at once (max 500 per request).
107
+ # **Deprecated.** Use `DELETE /v1/contacts/{id}` for individual deletes instead. Permanently delete multiple contacts at once (max 500 per request).
108
108
  # @param bulk_delete_whats_app_contacts_request [BulkDeleteWhatsAppContactsRequest]
109
109
  # @param [Hash] opts the optional parameters
110
110
  # @return [Array<(BulkDeleteWhatsAppContacts200Response, Integer, Hash)>] BulkDeleteWhatsAppContacts200Response data, response status code and response headers
@@ -162,7 +162,7 @@ module Late
162
162
  end
163
163
 
164
164
  # Bulk update contacts
165
- # Perform bulk operations on multiple contacts (max 500 per request). Supported actions: addTags, removeTags, addGroups, removeGroups, optIn, optOut, block, unblock.
165
+ # **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.
166
166
  # @param bulk_update_whats_app_contacts_request [BulkUpdateWhatsAppContactsRequest]
167
167
  # @param [Hash] opts the optional parameters
168
168
  # @return [BulkUpdateWhatsAppContacts200Response]
@@ -172,7 +172,7 @@ module Late
172
172
  end
173
173
 
174
174
  # Bulk update contacts
175
- # Perform bulk operations on multiple contacts (max 500 per request). Supported actions: addTags, removeTags, addGroups, removeGroups, optIn, optOut, block, unblock.
175
+ # **Deprecated.** Use &#x60;PATCH /v1/contacts/{id}&#x60; for individual updates instead. Perform bulk operations on multiple contacts (max 500 per request). Supported actions: addTags, removeTags, addGroups, removeGroups, optIn, optOut, block, unblock.
176
176
  # @param bulk_update_whats_app_contacts_request [BulkUpdateWhatsAppContactsRequest]
177
177
  # @param [Hash] opts the optional parameters
178
178
  # @return [Array<(BulkUpdateWhatsAppContacts200Response, Integer, Hash)>] BulkUpdateWhatsAppContacts200Response data, response status code and response headers
@@ -230,7 +230,7 @@ module Late
230
230
  end
231
231
 
232
232
  # Cancel scheduled broadcast
233
- # Cancel a scheduled broadcast and return it to draft status. Only broadcasts in scheduled status can be cancelled.
233
+ # **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.
234
234
  # @param broadcast_id [String] Broadcast ID
235
235
  # @param [Hash] opts the optional parameters
236
236
  # @return [CancelWhatsAppBroadcastSchedule200Response]
@@ -240,7 +240,7 @@ module Late
240
240
  end
241
241
 
242
242
  # Cancel scheduled broadcast
243
- # Cancel a scheduled broadcast and return it to draft status. Only broadcasts in scheduled status can be cancelled.
243
+ # **Deprecated.** Use &#x60;POST /v1/broadcasts/{id}/cancel&#x60; instead. Cancel a scheduled broadcast and return it to draft status. Only broadcasts in scheduled status can be cancelled.
244
244
  # @param broadcast_id [String] Broadcast ID
245
245
  # @param [Hash] opts the optional parameters
246
246
  # @return [Array<(CancelWhatsAppBroadcastSchedule200Response, Integer, Hash)>] CancelWhatsAppBroadcastSchedule200Response data, response status code and response headers
@@ -293,7 +293,7 @@ module Late
293
293
  end
294
294
 
295
295
  # Create broadcast
296
- # Create a new draft broadcast. Optionally include initial recipients. After creation, add recipients and then send or schedule the broadcast.
296
+ # **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.
297
297
  # @param create_whats_app_broadcast_request [CreateWhatsAppBroadcastRequest]
298
298
  # @param [Hash] opts the optional parameters
299
299
  # @return [CreateWhatsAppBroadcast200Response]
@@ -303,7 +303,7 @@ module Late
303
303
  end
304
304
 
305
305
  # Create broadcast
306
- # Create a new draft broadcast. Optionally include initial recipients. After creation, add recipients and then send or schedule the broadcast.
306
+ # **Deprecated.** Use &#x60;POST /v1/broadcasts&#x60; instead. Create a new draft broadcast. Optionally include initial recipients. After creation, add recipients and then send or schedule the broadcast.
307
307
  # @param create_whats_app_broadcast_request [CreateWhatsAppBroadcastRequest]
308
308
  # @param [Hash] opts the optional parameters
309
309
  # @return [Array<(CreateWhatsAppBroadcast200Response, Integer, Hash)>] CreateWhatsAppBroadcast200Response data, response status code and response headers
@@ -361,7 +361,7 @@ module Late
361
361
  end
362
362
 
363
363
  # Create contact
364
- # Create a new WhatsApp contact. Phone number must be unique per account and in E.164 format (e.g., +1234567890).
364
+ # **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).
365
365
  # @param create_whats_app_contact_request [CreateWhatsAppContactRequest]
366
366
  # @param [Hash] opts the optional parameters
367
367
  # @return [CreateWhatsAppContact200Response]
@@ -371,7 +371,7 @@ module Late
371
371
  end
372
372
 
373
373
  # Create contact
374
- # Create a new WhatsApp contact. Phone number must be unique per account and in E.164 format (e.g., +1234567890).
374
+ # **Deprecated.** Use &#x60;POST /v1/contacts&#x60; instead. Create a new WhatsApp contact. Phone number must be unique per account and in E.164 format (e.g., +1234567890).
375
375
  # @param create_whats_app_contact_request [CreateWhatsAppContactRequest]
376
376
  # @param [Hash] opts the optional parameters
377
377
  # @return [Array<(CreateWhatsAppContact200Response, Integer, Hash)>] CreateWhatsAppContact200Response data, response status code and response headers
@@ -497,7 +497,7 @@ module Late
497
497
  end
498
498
 
499
499
  # Delete broadcast
500
- # Delete a broadcast. Only draft or cancelled broadcasts can be deleted.
500
+ # **Deprecated.** Use `DELETE /v1/broadcasts/{id}` instead. Delete a broadcast. Only draft or cancelled broadcasts can be deleted.
501
501
  # @param broadcast_id [String] Broadcast ID
502
502
  # @param [Hash] opts the optional parameters
503
503
  # @return [UnpublishPost200Response]
@@ -507,7 +507,7 @@ module Late
507
507
  end
508
508
 
509
509
  # Delete broadcast
510
- # Delete a broadcast. Only draft or cancelled broadcasts can be deleted.
510
+ # **Deprecated.** Use &#x60;DELETE /v1/broadcasts/{id}&#x60; instead. Delete a broadcast. Only draft or cancelled broadcasts can be deleted.
511
511
  # @param broadcast_id [String] Broadcast ID
512
512
  # @param [Hash] opts the optional parameters
513
513
  # @return [Array<(UnpublishPost200Response, Integer, Hash)>] UnpublishPost200Response data, response status code and response headers
@@ -560,7 +560,7 @@ module Late
560
560
  end
561
561
 
562
562
  # Delete contact
563
- # Permanently delete a WhatsApp contact.
563
+ # **Deprecated.** Use `DELETE /v1/contacts/{id}` instead. Permanently delete a WhatsApp contact.
564
564
  # @param contact_id [String] Contact ID
565
565
  # @param [Hash] opts the optional parameters
566
566
  # @return [UnpublishPost200Response]
@@ -570,7 +570,7 @@ module Late
570
570
  end
571
571
 
572
572
  # Delete contact
573
- # Permanently delete a WhatsApp contact.
573
+ # **Deprecated.** Use &#x60;DELETE /v1/contacts/{id}&#x60; instead. Permanently delete a WhatsApp contact.
574
574
  # @param contact_id [String] Contact ID
575
575
  # @param [Hash] opts the optional parameters
576
576
  # @return [Array<(UnpublishPost200Response, Integer, Hash)>] UnpublishPost200Response data, response status code and response headers
@@ -623,7 +623,7 @@ module Late
623
623
  end
624
624
 
625
625
  # Delete group
626
- # Delete a contact group. This removes the group from all contacts but does not delete the contacts themselves.
626
+ # **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.
627
627
  # @param delete_whats_app_group_request [DeleteWhatsAppGroupRequest]
628
628
  # @param [Hash] opts the optional parameters
629
629
  # @return [RenameWhatsAppGroup200Response]
@@ -633,7 +633,7 @@ module Late
633
633
  end
634
634
 
635
635
  # Delete group
636
- # Delete a contact group. This removes the group from all contacts but does not delete the contacts themselves.
636
+ # **Deprecated.** Use contact tags via &#x60;PATCH /v1/contacts/{id}&#x60; instead. Delete a contact group. This removes the group from all contacts but does not delete the contacts themselves.
637
637
  # @param delete_whats_app_group_request [DeleteWhatsAppGroupRequest]
638
638
  # @param [Hash] opts the optional parameters
639
639
  # @return [Array<(RenameWhatsAppGroup200Response, Integer, Hash)>] RenameWhatsAppGroup200Response data, response status code and response headers
@@ -691,7 +691,7 @@ module Late
691
691
  end
692
692
 
693
693
  # Delete template
694
- # Permanently delete a message template by name.
694
+ # Permanently delete a message template by name.
695
695
  # @param template_name [String] Template name
696
696
  # @param account_id [String] WhatsApp social account ID
697
697
  # @param [Hash] opts the optional parameters
@@ -702,7 +702,7 @@ module Late
702
702
  end
703
703
 
704
704
  # Delete template
705
- # Permanently delete a message template by name.
705
+ # Permanently delete a message template by name.
706
706
  # @param template_name [String] Template name
707
707
  # @param account_id [String] WhatsApp social account ID
708
708
  # @param [Hash] opts the optional parameters
@@ -761,7 +761,7 @@ module Late
761
761
  end
762
762
 
763
763
  # Get broadcast
764
- # Retrieve detailed information about a single broadcast including delivery statistics.
764
+ # **Deprecated.** Use `GET /v1/broadcasts/{id}` instead. Retrieve detailed information about a single broadcast including delivery statistics.
765
765
  # @param broadcast_id [String] Broadcast ID
766
766
  # @param [Hash] opts the optional parameters
767
767
  # @return [GetWhatsAppBroadcast200Response]
@@ -771,7 +771,7 @@ module Late
771
771
  end
772
772
 
773
773
  # Get broadcast
774
- # Retrieve detailed information about a single broadcast including delivery statistics.
774
+ # **Deprecated.** Use &#x60;GET /v1/broadcasts/{id}&#x60; instead. Retrieve detailed information about a single broadcast including delivery statistics.
775
775
  # @param broadcast_id [String] Broadcast ID
776
776
  # @param [Hash] opts the optional parameters
777
777
  # @return [Array<(GetWhatsAppBroadcast200Response, Integer, Hash)>] GetWhatsAppBroadcast200Response data, response status code and response headers
@@ -824,7 +824,7 @@ module Late
824
824
  end
825
825
 
826
826
  # List recipients
827
- # List recipients of a broadcast with their delivery status. Supports filtering by delivery status and pagination.
827
+ # **Deprecated.** Use `GET /v1/broadcasts/{id}/recipients` instead. List recipients of a broadcast with their delivery status. Supports filtering by delivery status and pagination.
828
828
  # @param broadcast_id [String] Broadcast ID
829
829
  # @param [Hash] opts the optional parameters
830
830
  # @option opts [String] :status Filter by recipient delivery status
@@ -837,7 +837,7 @@ module Late
837
837
  end
838
838
 
839
839
  # List recipients
840
- # List recipients of a broadcast with their delivery status. Supports filtering by delivery status and pagination.
840
+ # **Deprecated.** Use &#x60;GET /v1/broadcasts/{id}/recipients&#x60; instead. List recipients of a broadcast with their delivery status. Supports filtering by delivery status and pagination.
841
841
  # @param broadcast_id [String] Broadcast ID
842
842
  # @param [Hash] opts the optional parameters
843
843
  # @option opts [String] :status Filter by recipient delivery status
@@ -900,7 +900,7 @@ module Late
900
900
  end
901
901
 
902
902
  # List broadcasts
903
- # List all WhatsApp broadcasts for an account. Returns broadcasts sorted by creation date (newest first) without the full recipients list for performance.
903
+ # **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.
904
904
  # @param account_id [String] WhatsApp social account ID
905
905
  # @param [Hash] opts the optional parameters
906
906
  # @option opts [String] :status Filter by broadcast status
@@ -913,7 +913,7 @@ module Late
913
913
  end
914
914
 
915
915
  # List broadcasts
916
- # List all WhatsApp broadcasts for an account. Returns broadcasts sorted by creation date (newest first) without the full recipients list for performance.
916
+ # **Deprecated.** Use &#x60;GET /v1/broadcasts?profileId&#x3D;{profileId}&#x60; instead. List all WhatsApp broadcasts for an account. Returns broadcasts sorted by creation date (newest first) without the full recipients list for performance.
917
917
  # @param account_id [String] WhatsApp social account ID
918
918
  # @param [Hash] opts the optional parameters
919
919
  # @option opts [String] :status Filter by broadcast status
@@ -977,7 +977,7 @@ module Late
977
977
  end
978
978
 
979
979
  # Get business profile
980
- # Retrieve the WhatsApp Business profile for the account (about, address, description, email, websites, etc.).
980
+ # Retrieve the WhatsApp Business profile for the account (about, address, description, email, websites, etc.).
981
981
  # @param account_id [String] WhatsApp social account ID
982
982
  # @param [Hash] opts the optional parameters
983
983
  # @return [GetWhatsAppBusinessProfile200Response]
@@ -987,7 +987,7 @@ module Late
987
987
  end
988
988
 
989
989
  # Get business profile
990
- # Retrieve the WhatsApp Business profile for the account (about, address, description, email, websites, etc.).
990
+ # Retrieve the WhatsApp Business profile for the account (about, address, description, email, websites, etc.).
991
991
  # @param account_id [String] WhatsApp social account ID
992
992
  # @param [Hash] opts the optional parameters
993
993
  # @return [Array<(GetWhatsAppBusinessProfile200Response, Integer, Hash)>] GetWhatsAppBusinessProfile200Response data, response status code and response headers
@@ -1041,7 +1041,7 @@ module Late
1041
1041
  end
1042
1042
 
1043
1043
  # Get contact
1044
- # Retrieve a single WhatsApp contact by ID with full details.
1044
+ # **Deprecated.** Use `GET /v1/contacts/{id}` instead. Retrieve a single WhatsApp contact by ID with full details.
1045
1045
  # @param contact_id [String] Contact ID
1046
1046
  # @param [Hash] opts the optional parameters
1047
1047
  # @return [GetWhatsAppContact200Response]
@@ -1051,7 +1051,7 @@ module Late
1051
1051
  end
1052
1052
 
1053
1053
  # Get contact
1054
- # Retrieve a single WhatsApp contact by ID with full details.
1054
+ # **Deprecated.** Use &#x60;GET /v1/contacts/{id}&#x60; instead. Retrieve a single WhatsApp contact by ID with full details.
1055
1055
  # @param contact_id [String] Contact ID
1056
1056
  # @param [Hash] opts the optional parameters
1057
1057
  # @return [Array<(GetWhatsAppContact200Response, Integer, Hash)>] GetWhatsAppContact200Response data, response status code and response headers
@@ -1104,7 +1104,7 @@ module Late
1104
1104
  end
1105
1105
 
1106
1106
  # List contacts
1107
- # 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.
1107
+ # **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.
1108
1108
  # @param account_id [String] WhatsApp social account ID
1109
1109
  # @param [Hash] opts the optional parameters
1110
1110
  # @option opts [String] :search Search contacts by name, phone, email, or company
@@ -1120,7 +1120,7 @@ module Late
1120
1120
  end
1121
1121
 
1122
1122
  # List contacts
1123
- # 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.
1123
+ # **Deprecated.** Use &#x60;GET /v1/contacts?profileId&#x3D;{profileId}&#x60; 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.
1124
1124
  # @param account_id [String] WhatsApp social account ID
1125
1125
  # @param [Hash] opts the optional parameters
1126
1126
  # @option opts [String] :search Search contacts by name, phone, email, or company
@@ -1254,7 +1254,7 @@ module Late
1254
1254
  end
1255
1255
 
1256
1256
  # List contact groups
1257
- # 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.
1257
+ # **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.
1258
1258
  # @param account_id [String] WhatsApp social account ID
1259
1259
  # @param [Hash] opts the optional parameters
1260
1260
  # @return [GetWhatsAppGroups200Response]
@@ -1264,7 +1264,7 @@ module Late
1264
1264
  end
1265
1265
 
1266
1266
  # List contact groups
1267
- # 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.
1267
+ # **Deprecated.** Use contact tags via &#x60;GET /v1/contacts&#x60; 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.
1268
1268
  # @param account_id [String] WhatsApp social account ID
1269
1269
  # @param [Hash] opts the optional parameters
1270
1270
  # @return [Array<(GetWhatsAppGroups200Response, Integer, Hash)>] GetWhatsAppGroups200Response data, response status code and response headers
@@ -1318,7 +1318,7 @@ module Late
1318
1318
  end
1319
1319
 
1320
1320
  # Get template
1321
- # Retrieve a single message template by name.
1321
+ # Retrieve a single message template by name.
1322
1322
  # @param template_name [String] Template name
1323
1323
  # @param account_id [String] WhatsApp social account ID
1324
1324
  # @param [Hash] opts the optional parameters
@@ -1329,7 +1329,7 @@ module Late
1329
1329
  end
1330
1330
 
1331
1331
  # Get template
1332
- # Retrieve a single message template by name.
1332
+ # Retrieve a single message template by name.
1333
1333
  # @param template_name [String] Template name
1334
1334
  # @param account_id [String] WhatsApp social account ID
1335
1335
  # @param [Hash] opts the optional parameters
@@ -1452,7 +1452,7 @@ module Late
1452
1452
  end
1453
1453
 
1454
1454
  # Bulk import contacts
1455
- # 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.
1455
+ # **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.
1456
1456
  # @param import_whats_app_contacts_request [ImportWhatsAppContactsRequest]
1457
1457
  # @param [Hash] opts the optional parameters
1458
1458
  # @return [ImportWhatsAppContacts200Response]
@@ -1462,7 +1462,7 @@ module Late
1462
1462
  end
1463
1463
 
1464
1464
  # Bulk import contacts
1465
- # 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.
1465
+ # **Deprecated.** Use &#x60;POST /v1/contacts/bulk&#x60; 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.
1466
1466
  # @param import_whats_app_contacts_request [ImportWhatsAppContactsRequest]
1467
1467
  # @param [Hash] opts the optional parameters
1468
1468
  # @return [Array<(ImportWhatsAppContacts200Response, Integer, Hash)>] ImportWhatsAppContacts200Response data, response status code and response headers
@@ -1520,7 +1520,7 @@ module Late
1520
1520
  end
1521
1521
 
1522
1522
  # Remove recipients
1523
- # Remove recipients from a draft broadcast by phone number.
1523
+ # **Deprecated.** Use `POST /v1/broadcasts/{id}/recipients` with removal flag instead. Remove recipients from a draft broadcast by phone number.
1524
1524
  # @param broadcast_id [String] Broadcast ID
1525
1525
  # @param remove_whats_app_broadcast_recipients_request [RemoveWhatsAppBroadcastRecipientsRequest]
1526
1526
  # @param [Hash] opts the optional parameters
@@ -1531,7 +1531,7 @@ module Late
1531
1531
  end
1532
1532
 
1533
1533
  # Remove recipients
1534
- # Remove recipients from a draft broadcast by phone number.
1534
+ # **Deprecated.** Use &#x60;POST /v1/broadcasts/{id}/recipients&#x60; with removal flag instead. Remove recipients from a draft broadcast by phone number.
1535
1535
  # @param broadcast_id [String] Broadcast ID
1536
1536
  # @param remove_whats_app_broadcast_recipients_request [RemoveWhatsAppBroadcastRecipientsRequest]
1537
1537
  # @param [Hash] opts the optional parameters
@@ -1594,7 +1594,7 @@ module Late
1594
1594
  end
1595
1595
 
1596
1596
  # Rename group
1597
- # Rename a contact group. This updates the group name on all contacts that belong to the group.
1597
+ # **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.
1598
1598
  # @param rename_whats_app_group_request [RenameWhatsAppGroupRequest]
1599
1599
  # @param [Hash] opts the optional parameters
1600
1600
  # @return [RenameWhatsAppGroup200Response]
@@ -1604,7 +1604,7 @@ module Late
1604
1604
  end
1605
1605
 
1606
1606
  # Rename group
1607
- # Rename a contact group. This updates the group name on all contacts that belong to the group.
1607
+ # **Deprecated.** Use contact tags via &#x60;PATCH /v1/contacts/{id}&#x60; instead. Rename a contact group. This updates the group name on all contacts that belong to the group.
1608
1608
  # @param rename_whats_app_group_request [RenameWhatsAppGroupRequest]
1609
1609
  # @param [Hash] opts the optional parameters
1610
1610
  # @return [Array<(RenameWhatsAppGroup200Response, Integer, Hash)>] RenameWhatsAppGroup200Response data, response status code and response headers
@@ -1662,7 +1662,7 @@ module Late
1662
1662
  end
1663
1663
 
1664
1664
  # Schedule broadcast
1665
- # 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.
1665
+ # **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.
1666
1666
  # @param broadcast_id [String] Broadcast ID
1667
1667
  # @param schedule_whats_app_broadcast_request [ScheduleWhatsAppBroadcastRequest]
1668
1668
  # @param [Hash] opts the optional parameters
@@ -1673,7 +1673,7 @@ module Late
1673
1673
  end
1674
1674
 
1675
1675
  # Schedule broadcast
1676
- # 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.
1676
+ # **Deprecated.** Use &#x60;POST /v1/broadcasts/{id}/schedule&#x60; 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.
1677
1677
  # @param broadcast_id [String] Broadcast ID
1678
1678
  # @param schedule_whats_app_broadcast_request [ScheduleWhatsAppBroadcastRequest]
1679
1679
  # @param [Hash] opts the optional parameters
@@ -1736,7 +1736,7 @@ module Late
1736
1736
  end
1737
1737
 
1738
1738
  # Send broadcast
1739
- # 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.
1739
+ # **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.
1740
1740
  # @param broadcast_id [String] Broadcast ID
1741
1741
  # @param [Hash] opts the optional parameters
1742
1742
  # @return [SendWhatsAppBroadcast200Response]
@@ -1746,7 +1746,7 @@ module Late
1746
1746
  end
1747
1747
 
1748
1748
  # Send broadcast
1749
- # 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.
1749
+ # **Deprecated.** Use &#x60;POST /v1/broadcasts/{id}/send&#x60; 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.
1750
1750
  # @param broadcast_id [String] Broadcast ID
1751
1751
  # @param [Hash] opts the optional parameters
1752
1752
  # @return [Array<(SendWhatsAppBroadcast200Response, Integer, Hash)>] SendWhatsAppBroadcast200Response data, response status code and response headers
@@ -1799,7 +1799,7 @@ module Late
1799
1799
  end
1800
1800
 
1801
1801
  # Bulk send template messages
1802
- # 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.
1802
+ # **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.
1803
1803
  # @param send_whats_app_bulk_request [SendWhatsAppBulkRequest]
1804
1804
  # @param [Hash] opts the optional parameters
1805
1805
  # @return [SendWhatsAppBulk200Response]
@@ -1809,7 +1809,7 @@ module Late
1809
1809
  end
1810
1810
 
1811
1811
  # Bulk send template messages
1812
- # 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.
1812
+ # **Deprecated.** Use &#x60;POST /v1/broadcasts&#x60; to create a broadcast, &#x60;POST /v1/broadcasts/{id}/recipients&#x60; to add recipients, then &#x60;POST /v1/broadcasts/{id}/send&#x60; 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.
1813
1813
  # @param send_whats_app_bulk_request [SendWhatsAppBulkRequest]
1814
1814
  # @param [Hash] opts the optional parameters
1815
1815
  # @return [Array<(SendWhatsAppBulk200Response, Integer, Hash)>] SendWhatsAppBulk200Response data, response status code and response headers
@@ -1935,7 +1935,7 @@ module Late
1935
1935
  end
1936
1936
 
1937
1937
  # Update contact
1938
- # 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.
1938
+ # **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.
1939
1939
  # @param contact_id [String] Contact ID
1940
1940
  # @param update_whats_app_contact_request [UpdateWhatsAppContactRequest]
1941
1941
  # @param [Hash] opts the optional parameters
@@ -1946,7 +1946,7 @@ module Late
1946
1946
  end
1947
1947
 
1948
1948
  # Update contact
1949
- # 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.
1949
+ # **Deprecated.** Use &#x60;PATCH /v1/contacts/{id}&#x60; 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.
1950
1950
  # @param contact_id [String] Contact ID
1951
1951
  # @param update_whats_app_contact_request [UpdateWhatsAppContactRequest]
1952
1952
  # @param [Hash] opts the optional parameters
@@ -0,0 +1,160 @@
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 'date'
14
+ require 'time'
15
+
16
+ module Late
17
+ class AddBroadcastRecipientsRequest < ApiModelBase
18
+ # Specific contact IDs to add
19
+ attr_accessor :contact_ids
20
+
21
+ # Auto-populate from broadcast segment filters
22
+ attr_accessor :use_segment
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'contact_ids' => :'contactIds',
28
+ :'use_segment' => :'useSegment'
29
+ }
30
+ end
31
+
32
+ # Returns attribute mapping this model knows about
33
+ def self.acceptable_attribute_map
34
+ attribute_map
35
+ end
36
+
37
+ # Returns all the JSON keys this model knows about
38
+ def self.acceptable_attributes
39
+ acceptable_attribute_map.values
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.openapi_types
44
+ {
45
+ :'contact_ids' => :'Array<String>',
46
+ :'use_segment' => :'Boolean'
47
+ }
48
+ end
49
+
50
+ # List of attributes with nullable: true
51
+ def self.openapi_nullable
52
+ Set.new([
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Late::AddBroadcastRecipientsRequest` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ acceptable_attribute_map = self.class.acceptable_attribute_map
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!acceptable_attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Late::AddBroadcastRecipientsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'contact_ids')
73
+ if (value = attributes[:'contact_ids']).is_a?(Array)
74
+ self.contact_ids = value
75
+ end
76
+ end
77
+
78
+ if attributes.key?(:'use_segment')
79
+ self.use_segment = attributes[:'use_segment']
80
+ end
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
+ invalid_properties = Array.new
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ warn '[DEPRECATED] the `valid?` method is obsolete'
95
+ true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ contact_ids == o.contact_ids &&
104
+ use_segment == o.use_segment
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(o)
110
+ self == o
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Integer] Hash code
115
+ def hash
116
+ [contact_ids, use_segment].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def self.build_from_hash(attributes)
123
+ return nil unless attributes.is_a?(Hash)
124
+ attributes = attributes.transform_keys(&:to_sym)
125
+ transformed_hash = {}
126
+ openapi_types.each_pair do |key, type|
127
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
128
+ transformed_hash["#{key}"] = nil
129
+ elsif type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the attribute
131
+ # is documented as an array but the input is not
132
+ if attributes[attribute_map[key]].is_a?(Array)
133
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
134
+ end
135
+ elsif !attributes[attribute_map[key]].nil?
136
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
137
+ end
138
+ end
139
+ new(transformed_hash)
140
+ end
141
+
142
+ # Returns the object in the form of hash
143
+ # @return [Hash] Returns the object in the form of hash
144
+ def to_hash
145
+ hash = {}
146
+ self.class.attribute_map.each_pair do |attr, param|
147
+ value = self.send(attr)
148
+ if value.nil?
149
+ is_nullable = self.class.openapi_nullable.include?(attr)
150
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
151
+ end
152
+
153
+ hash[param] = _to_hash(value)
154
+ end
155
+ hash
156
+ end
157
+
158
+ end
159
+
160
+ end