zernio-sdk 0.0.76 → 0.0.77

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 (83) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -1
  3. data/docs/ActivateSequence200Response.md +20 -0
  4. data/docs/AddBroadcastRecipients200Response.md +22 -0
  5. data/docs/BroadcastsApi.md +42 -36
  6. data/docs/CancelBroadcast200Response.md +20 -0
  7. data/docs/CancelBroadcast200ResponseBroadcast.md +20 -0
  8. data/docs/CreateSequenceRequestStepsInner.md +1 -1
  9. data/docs/EnrollContacts200Response.md +22 -0
  10. data/docs/GetBroadcast200Response.md +20 -0
  11. data/docs/GetBroadcast200ResponseBroadcast.md +54 -0
  12. data/docs/{CreateSequenceRequestStepsInnerMessage.md → GetBroadcast200ResponseBroadcastMessage.md} +2 -2
  13. data/docs/GetBroadcast200ResponseBroadcastSegmentFilters.md +18 -0
  14. data/docs/GetSequence200Response.md +20 -0
  15. data/docs/GetSequence200ResponseSequence.md +44 -0
  16. data/docs/GetSequence200ResponseSequenceStepsInner.md +24 -0
  17. data/docs/GetSequence200ResponseSequenceStepsInnerTemplate.md +22 -0
  18. data/docs/ListBroadcastRecipients200Response.md +22 -0
  19. data/docs/ListBroadcastRecipients200ResponseRecipientsInner.md +38 -0
  20. data/docs/ListSequenceEnrollments200Response.md +22 -0
  21. data/docs/ListSequenceEnrollments200ResponseEnrollmentsInner.md +40 -0
  22. data/docs/ScheduleBroadcast200Response.md +20 -0
  23. data/docs/ScheduleBroadcast200ResponseBroadcast.md +22 -0
  24. data/docs/SequencesApi.md +42 -36
  25. data/docs/UpdateBroadcast200Response.md +20 -0
  26. data/docs/UpdateBroadcast200ResponseBroadcast.md +26 -0
  27. data/docs/UpdateSequence200Response.md +20 -0
  28. data/docs/UpdateSequence200ResponseSequence.md +32 -0
  29. data/lib/late-sdk/api/broadcasts_api.rb +30 -30
  30. data/lib/late-sdk/api/sequences_api.rb +30 -30
  31. data/lib/late-sdk/models/activate_sequence200_response.rb +156 -0
  32. data/lib/late-sdk/models/add_broadcast_recipients200_response.rb +167 -0
  33. data/lib/late-sdk/models/cancel_broadcast200_response.rb +156 -0
  34. data/lib/late-sdk/models/cancel_broadcast200_response_broadcast.rb +156 -0
  35. data/lib/late-sdk/models/create_sequence_request_steps_inner.rb +1 -1
  36. data/lib/late-sdk/models/enroll_contacts200_response.rb +167 -0
  37. data/lib/late-sdk/models/get_broadcast200_response.rb +156 -0
  38. data/lib/late-sdk/models/get_broadcast200_response_broadcast.rb +343 -0
  39. data/lib/late-sdk/models/{create_sequence_request_steps_inner_message.rb → get_broadcast200_response_broadcast_message.rb} +3 -3
  40. data/lib/late-sdk/models/get_broadcast200_response_broadcast_segment_filters.rb +149 -0
  41. data/lib/late-sdk/models/get_sequence200_response.rb +156 -0
  42. data/lib/late-sdk/models/get_sequence200_response_sequence.rb +300 -0
  43. data/lib/late-sdk/models/get_sequence200_response_sequence_steps_inner.rb +174 -0
  44. data/lib/late-sdk/models/get_sequence200_response_sequence_steps_inner_template.rb +165 -0
  45. data/lib/late-sdk/models/list_broadcast_recipients200_response.rb +167 -0
  46. data/lib/late-sdk/models/list_broadcast_recipients200_response_recipients_inner.rb +271 -0
  47. data/lib/late-sdk/models/list_sequence_enrollments200_response.rb +167 -0
  48. data/lib/late-sdk/models/list_sequence_enrollments200_response_enrollments_inner.rb +280 -0
  49. data/lib/late-sdk/models/schedule_broadcast200_response.rb +156 -0
  50. data/lib/late-sdk/models/schedule_broadcast200_response_broadcast.rb +165 -0
  51. data/lib/late-sdk/models/update_broadcast200_response.rb +156 -0
  52. data/lib/late-sdk/models/update_broadcast200_response_broadcast.rb +183 -0
  53. data/lib/late-sdk/models/update_sequence200_response.rb +156 -0
  54. data/lib/late-sdk/models/update_sequence200_response_sequence.rb +212 -0
  55. data/lib/late-sdk/version.rb +1 -1
  56. data/lib/late-sdk.rb +23 -1
  57. data/openapi.yaml +234 -12
  58. data/spec/api/broadcasts_api_spec.rb +6 -6
  59. data/spec/api/sequences_api_spec.rb +6 -6
  60. data/spec/models/activate_sequence200_response_spec.rb +42 -0
  61. data/spec/models/add_broadcast_recipients200_response_spec.rb +48 -0
  62. data/spec/models/cancel_broadcast200_response_broadcast_spec.rb +42 -0
  63. data/spec/models/cancel_broadcast200_response_spec.rb +42 -0
  64. data/spec/models/enroll_contacts200_response_spec.rb +48 -0
  65. data/spec/models/{create_sequence_request_steps_inner_message_spec.rb → get_broadcast200_response_broadcast_message_spec.rb} +6 -6
  66. data/spec/models/get_broadcast200_response_broadcast_segment_filters_spec.rb +36 -0
  67. data/spec/models/get_broadcast200_response_broadcast_spec.rb +148 -0
  68. data/spec/models/get_broadcast200_response_spec.rb +42 -0
  69. data/spec/models/get_sequence200_response_sequence_spec.rb +118 -0
  70. data/spec/models/get_sequence200_response_sequence_steps_inner_spec.rb +54 -0
  71. data/spec/models/get_sequence200_response_sequence_steps_inner_template_spec.rb +48 -0
  72. data/spec/models/get_sequence200_response_spec.rb +42 -0
  73. data/spec/models/list_broadcast_recipients200_response_recipients_inner_spec.rb +100 -0
  74. data/spec/models/list_broadcast_recipients200_response_spec.rb +48 -0
  75. data/spec/models/list_sequence_enrollments200_response_enrollments_inner_spec.rb +106 -0
  76. data/spec/models/list_sequence_enrollments200_response_spec.rb +48 -0
  77. data/spec/models/schedule_broadcast200_response_broadcast_spec.rb +48 -0
  78. data/spec/models/schedule_broadcast200_response_spec.rb +42 -0
  79. data/spec/models/update_broadcast200_response_broadcast_spec.rb +60 -0
  80. data/spec/models/update_broadcast200_response_spec.rb +42 -0
  81. data/spec/models/update_sequence200_response_sequence_spec.rb +78 -0
  82. data/spec/models/update_sequence200_response_spec.rb +42 -0
  83. metadata +93 -5
@@ -23,17 +23,17 @@ module Late
23
23
  # @param broadcast_id [String]
24
24
  # @param add_broadcast_recipients_request [AddBroadcastRecipientsRequest]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [nil]
26
+ # @return [AddBroadcastRecipients200Response]
27
27
  def add_broadcast_recipients(broadcast_id, add_broadcast_recipients_request, opts = {})
28
- add_broadcast_recipients_with_http_info(broadcast_id, add_broadcast_recipients_request, opts)
29
- nil
28
+ data, _status_code, _headers = add_broadcast_recipients_with_http_info(broadcast_id, add_broadcast_recipients_request, opts)
29
+ data
30
30
  end
31
31
 
32
32
  # Add recipients to a broadcast
33
33
  # @param broadcast_id [String]
34
34
  # @param add_broadcast_recipients_request [AddBroadcastRecipientsRequest]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
36
+ # @return [Array<(AddBroadcastRecipients200Response, Integer, Hash)>] AddBroadcastRecipients200Response data, response status code and response headers
37
37
  def add_broadcast_recipients_with_http_info(broadcast_id, add_broadcast_recipients_request, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: BroadcastsApi.add_broadcast_recipients ...'
@@ -69,7 +69,7 @@ module Late
69
69
  post_body = opts[:debug_body] || @api_client.object_to_http_body(add_broadcast_recipients_request)
70
70
 
71
71
  # return_type
72
- return_type = opts[:debug_return_type]
72
+ return_type = opts[:debug_return_type] || 'AddBroadcastRecipients200Response'
73
73
 
74
74
  # auth_names
75
75
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -94,16 +94,16 @@ module Late
94
94
  # Cancel a broadcast
95
95
  # @param broadcast_id [String]
96
96
  # @param [Hash] opts the optional parameters
97
- # @return [nil]
97
+ # @return [CancelBroadcast200Response]
98
98
  def cancel_broadcast(broadcast_id, opts = {})
99
- cancel_broadcast_with_http_info(broadcast_id, opts)
100
- nil
99
+ data, _status_code, _headers = cancel_broadcast_with_http_info(broadcast_id, opts)
100
+ data
101
101
  end
102
102
 
103
103
  # Cancel a broadcast
104
104
  # @param broadcast_id [String]
105
105
  # @param [Hash] opts the optional parameters
106
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
106
+ # @return [Array<(CancelBroadcast200Response, Integer, Hash)>] CancelBroadcast200Response data, response status code and response headers
107
107
  def cancel_broadcast_with_http_info(broadcast_id, opts = {})
108
108
  if @api_client.config.debugging
109
109
  @api_client.config.logger.debug 'Calling API: BroadcastsApi.cancel_broadcast ...'
@@ -130,7 +130,7 @@ module Late
130
130
  post_body = opts[:debug_body]
131
131
 
132
132
  # return_type
133
- return_type = opts[:debug_return_type]
133
+ return_type = opts[:debug_return_type] || 'CancelBroadcast200Response'
134
134
 
135
135
  # auth_names
136
136
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -282,16 +282,16 @@ module Late
282
282
  # Get broadcast details
283
283
  # @param broadcast_id [String]
284
284
  # @param [Hash] opts the optional parameters
285
- # @return [nil]
285
+ # @return [GetBroadcast200Response]
286
286
  def get_broadcast(broadcast_id, opts = {})
287
- get_broadcast_with_http_info(broadcast_id, opts)
288
- nil
287
+ data, _status_code, _headers = get_broadcast_with_http_info(broadcast_id, opts)
288
+ data
289
289
  end
290
290
 
291
291
  # Get broadcast details
292
292
  # @param broadcast_id [String]
293
293
  # @param [Hash] opts the optional parameters
294
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
294
+ # @return [Array<(GetBroadcast200Response, Integer, Hash)>] GetBroadcast200Response data, response status code and response headers
295
295
  def get_broadcast_with_http_info(broadcast_id, opts = {})
296
296
  if @api_client.config.debugging
297
297
  @api_client.config.logger.debug 'Calling API: BroadcastsApi.get_broadcast ...'
@@ -318,7 +318,7 @@ module Late
318
318
  post_body = opts[:debug_body]
319
319
 
320
320
  # return_type
321
- return_type = opts[:debug_return_type]
321
+ return_type = opts[:debug_return_type] || 'GetBroadcast200Response'
322
322
 
323
323
  # auth_names
324
324
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -346,10 +346,10 @@ module Late
346
346
  # @option opts [String] :status
347
347
  # @option opts [Integer] :limit (default to 50)
348
348
  # @option opts [Integer] :skip (default to 0)
349
- # @return [nil]
349
+ # @return [ListBroadcastRecipients200Response]
350
350
  def list_broadcast_recipients(broadcast_id, opts = {})
351
- list_broadcast_recipients_with_http_info(broadcast_id, opts)
352
- nil
351
+ data, _status_code, _headers = list_broadcast_recipients_with_http_info(broadcast_id, opts)
352
+ data
353
353
  end
354
354
 
355
355
  # List broadcast recipients
@@ -358,7 +358,7 @@ module Late
358
358
  # @option opts [String] :status
359
359
  # @option opts [Integer] :limit (default to 50)
360
360
  # @option opts [Integer] :skip (default to 0)
361
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
361
+ # @return [Array<(ListBroadcastRecipients200Response, Integer, Hash)>] ListBroadcastRecipients200Response data, response status code and response headers
362
362
  def list_broadcast_recipients_with_http_info(broadcast_id, opts = {})
363
363
  if @api_client.config.debugging
364
364
  @api_client.config.logger.debug 'Calling API: BroadcastsApi.list_broadcast_recipients ...'
@@ -392,7 +392,7 @@ module Late
392
392
  post_body = opts[:debug_body]
393
393
 
394
394
  # return_type
395
- return_type = opts[:debug_return_type]
395
+ return_type = opts[:debug_return_type] || 'ListBroadcastRecipients200Response'
396
396
 
397
397
  # auth_names
398
398
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -492,17 +492,17 @@ module Late
492
492
  # @param broadcast_id [String]
493
493
  # @param schedule_broadcast_request [ScheduleBroadcastRequest]
494
494
  # @param [Hash] opts the optional parameters
495
- # @return [nil]
495
+ # @return [ScheduleBroadcast200Response]
496
496
  def schedule_broadcast(broadcast_id, schedule_broadcast_request, opts = {})
497
- schedule_broadcast_with_http_info(broadcast_id, schedule_broadcast_request, opts)
498
- nil
497
+ data, _status_code, _headers = schedule_broadcast_with_http_info(broadcast_id, schedule_broadcast_request, opts)
498
+ data
499
499
  end
500
500
 
501
501
  # Schedule broadcast for later
502
502
  # @param broadcast_id [String]
503
503
  # @param schedule_broadcast_request [ScheduleBroadcastRequest]
504
504
  # @param [Hash] opts the optional parameters
505
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
505
+ # @return [Array<(ScheduleBroadcast200Response, Integer, Hash)>] ScheduleBroadcast200Response data, response status code and response headers
506
506
  def schedule_broadcast_with_http_info(broadcast_id, schedule_broadcast_request, opts = {})
507
507
  if @api_client.config.debugging
508
508
  @api_client.config.logger.debug 'Calling API: BroadcastsApi.schedule_broadcast ...'
@@ -538,7 +538,7 @@ module Late
538
538
  post_body = opts[:debug_body] || @api_client.object_to_http_body(schedule_broadcast_request)
539
539
 
540
540
  # return_type
541
- return_type = opts[:debug_return_type]
541
+ return_type = opts[:debug_return_type] || 'ScheduleBroadcast200Response'
542
542
 
543
543
  # auth_names
544
544
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -624,16 +624,16 @@ module Late
624
624
  # Update a broadcast
625
625
  # @param broadcast_id [String]
626
626
  # @param [Hash] opts the optional parameters
627
- # @return [nil]
627
+ # @return [UpdateBroadcast200Response]
628
628
  def update_broadcast(broadcast_id, opts = {})
629
- update_broadcast_with_http_info(broadcast_id, opts)
630
- nil
629
+ data, _status_code, _headers = update_broadcast_with_http_info(broadcast_id, opts)
630
+ data
631
631
  end
632
632
 
633
633
  # Update a broadcast
634
634
  # @param broadcast_id [String]
635
635
  # @param [Hash] opts the optional parameters
636
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
636
+ # @return [Array<(UpdateBroadcast200Response, Integer, Hash)>] UpdateBroadcast200Response data, response status code and response headers
637
637
  def update_broadcast_with_http_info(broadcast_id, opts = {})
638
638
  if @api_client.config.debugging
639
639
  @api_client.config.logger.debug 'Calling API: BroadcastsApi.update_broadcast ...'
@@ -660,7 +660,7 @@ module Late
660
660
  post_body = opts[:debug_body]
661
661
 
662
662
  # return_type
663
- return_type = opts[:debug_return_type]
663
+ return_type = opts[:debug_return_type] || 'UpdateBroadcast200Response'
664
664
 
665
665
  # auth_names
666
666
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -22,16 +22,16 @@ module Late
22
22
  # Activate a sequence
23
23
  # @param sequence_id [String]
24
24
  # @param [Hash] opts the optional parameters
25
- # @return [nil]
25
+ # @return [ActivateSequence200Response]
26
26
  def activate_sequence(sequence_id, opts = {})
27
- activate_sequence_with_http_info(sequence_id, opts)
28
- nil
27
+ data, _status_code, _headers = activate_sequence_with_http_info(sequence_id, opts)
28
+ data
29
29
  end
30
30
 
31
31
  # Activate a sequence
32
32
  # @param sequence_id [String]
33
33
  # @param [Hash] opts the optional parameters
34
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
34
+ # @return [Array<(ActivateSequence200Response, Integer, Hash)>] ActivateSequence200Response data, response status code and response headers
35
35
  def activate_sequence_with_http_info(sequence_id, opts = {})
36
36
  if @api_client.config.debugging
37
37
  @api_client.config.logger.debug 'Calling API: SequencesApi.activate_sequence ...'
@@ -58,7 +58,7 @@ module Late
58
58
  post_body = opts[:debug_body]
59
59
 
60
60
  # return_type
61
- return_type = opts[:debug_return_type]
61
+ return_type = opts[:debug_return_type] || 'ActivateSequence200Response'
62
62
 
63
63
  # auth_names
64
64
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -211,17 +211,17 @@ module Late
211
211
  # @param sequence_id [String]
212
212
  # @param enroll_contacts_request [EnrollContactsRequest]
213
213
  # @param [Hash] opts the optional parameters
214
- # @return [nil]
214
+ # @return [EnrollContacts200Response]
215
215
  def enroll_contacts(sequence_id, enroll_contacts_request, opts = {})
216
- enroll_contacts_with_http_info(sequence_id, enroll_contacts_request, opts)
217
- nil
216
+ data, _status_code, _headers = enroll_contacts_with_http_info(sequence_id, enroll_contacts_request, opts)
217
+ data
218
218
  end
219
219
 
220
220
  # Enroll contacts in a sequence
221
221
  # @param sequence_id [String]
222
222
  # @param enroll_contacts_request [EnrollContactsRequest]
223
223
  # @param [Hash] opts the optional parameters
224
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
224
+ # @return [Array<(EnrollContacts200Response, Integer, Hash)>] EnrollContacts200Response data, response status code and response headers
225
225
  def enroll_contacts_with_http_info(sequence_id, enroll_contacts_request, opts = {})
226
226
  if @api_client.config.debugging
227
227
  @api_client.config.logger.debug 'Calling API: SequencesApi.enroll_contacts ...'
@@ -257,7 +257,7 @@ module Late
257
257
  post_body = opts[:debug_body] || @api_client.object_to_http_body(enroll_contacts_request)
258
258
 
259
259
  # return_type
260
- return_type = opts[:debug_return_type]
260
+ return_type = opts[:debug_return_type] || 'EnrollContacts200Response'
261
261
 
262
262
  # auth_names
263
263
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -282,16 +282,16 @@ module Late
282
282
  # Get sequence with steps
283
283
  # @param sequence_id [String]
284
284
  # @param [Hash] opts the optional parameters
285
- # @return [nil]
285
+ # @return [GetSequence200Response]
286
286
  def get_sequence(sequence_id, opts = {})
287
- get_sequence_with_http_info(sequence_id, opts)
288
- nil
287
+ data, _status_code, _headers = get_sequence_with_http_info(sequence_id, opts)
288
+ data
289
289
  end
290
290
 
291
291
  # Get sequence with steps
292
292
  # @param sequence_id [String]
293
293
  # @param [Hash] opts the optional parameters
294
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
294
+ # @return [Array<(GetSequence200Response, Integer, Hash)>] GetSequence200Response data, response status code and response headers
295
295
  def get_sequence_with_http_info(sequence_id, opts = {})
296
296
  if @api_client.config.debugging
297
297
  @api_client.config.logger.debug 'Calling API: SequencesApi.get_sequence ...'
@@ -318,7 +318,7 @@ module Late
318
318
  post_body = opts[:debug_body]
319
319
 
320
320
  # return_type
321
- return_type = opts[:debug_return_type]
321
+ return_type = opts[:debug_return_type] || 'GetSequence200Response'
322
322
 
323
323
  # auth_names
324
324
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -346,10 +346,10 @@ module Late
346
346
  # @option opts [String] :status
347
347
  # @option opts [Integer] :limit (default to 50)
348
348
  # @option opts [Integer] :skip (default to 0)
349
- # @return [nil]
349
+ # @return [ListSequenceEnrollments200Response]
350
350
  def list_sequence_enrollments(sequence_id, opts = {})
351
- list_sequence_enrollments_with_http_info(sequence_id, opts)
352
- nil
351
+ data, _status_code, _headers = list_sequence_enrollments_with_http_info(sequence_id, opts)
352
+ data
353
353
  end
354
354
 
355
355
  # List enrollments for a sequence
@@ -358,7 +358,7 @@ module Late
358
358
  # @option opts [String] :status
359
359
  # @option opts [Integer] :limit (default to 50)
360
360
  # @option opts [Integer] :skip (default to 0)
361
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
361
+ # @return [Array<(ListSequenceEnrollments200Response, Integer, Hash)>] ListSequenceEnrollments200Response data, response status code and response headers
362
362
  def list_sequence_enrollments_with_http_info(sequence_id, opts = {})
363
363
  if @api_client.config.debugging
364
364
  @api_client.config.logger.debug 'Calling API: SequencesApi.list_sequence_enrollments ...'
@@ -392,7 +392,7 @@ module Late
392
392
  post_body = opts[:debug_body]
393
393
 
394
394
  # return_type
395
- return_type = opts[:debug_return_type]
395
+ return_type = opts[:debug_return_type] || 'ListSequenceEnrollments200Response'
396
396
 
397
397
  # auth_names
398
398
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -488,16 +488,16 @@ module Late
488
488
  # Pause a sequence
489
489
  # @param sequence_id [String]
490
490
  # @param [Hash] opts the optional parameters
491
- # @return [nil]
491
+ # @return [ActivateSequence200Response]
492
492
  def pause_sequence(sequence_id, opts = {})
493
- pause_sequence_with_http_info(sequence_id, opts)
494
- nil
493
+ data, _status_code, _headers = pause_sequence_with_http_info(sequence_id, opts)
494
+ data
495
495
  end
496
496
 
497
497
  # Pause a sequence
498
498
  # @param sequence_id [String]
499
499
  # @param [Hash] opts the optional parameters
500
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
500
+ # @return [Array<(ActivateSequence200Response, Integer, Hash)>] ActivateSequence200Response data, response status code and response headers
501
501
  def pause_sequence_with_http_info(sequence_id, opts = {})
502
502
  if @api_client.config.debugging
503
503
  @api_client.config.logger.debug 'Calling API: SequencesApi.pause_sequence ...'
@@ -524,7 +524,7 @@ module Late
524
524
  post_body = opts[:debug_body]
525
525
 
526
526
  # return_type
527
- return_type = opts[:debug_return_type]
527
+ return_type = opts[:debug_return_type] || 'ActivateSequence200Response'
528
528
 
529
529
  # auth_names
530
530
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -616,16 +616,16 @@ module Late
616
616
  # Update a sequence
617
617
  # @param sequence_id [String]
618
618
  # @param [Hash] opts the optional parameters
619
- # @return [nil]
619
+ # @return [UpdateSequence200Response]
620
620
  def update_sequence(sequence_id, opts = {})
621
- update_sequence_with_http_info(sequence_id, opts)
622
- nil
621
+ data, _status_code, _headers = update_sequence_with_http_info(sequence_id, opts)
622
+ data
623
623
  end
624
624
 
625
625
  # Update a sequence
626
626
  # @param sequence_id [String]
627
627
  # @param [Hash] opts the optional parameters
628
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
628
+ # @return [Array<(UpdateSequence200Response, Integer, Hash)>] UpdateSequence200Response data, response status code and response headers
629
629
  def update_sequence_with_http_info(sequence_id, opts = {})
630
630
  if @api_client.config.debugging
631
631
  @api_client.config.logger.debug 'Calling API: SequencesApi.update_sequence ...'
@@ -652,7 +652,7 @@ module Late
652
652
  post_body = opts[:debug_body]
653
653
 
654
654
  # return_type
655
- return_type = opts[:debug_return_type]
655
+ return_type = opts[:debug_return_type] || 'UpdateSequence200Response'
656
656
 
657
657
  # auth_names
658
658
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -0,0 +1,156 @@
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 ActivateSequence200Response < ApiModelBase
18
+ attr_accessor :success
19
+
20
+ attr_accessor :sequence
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'success' => :'success',
26
+ :'sequence' => :'sequence'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'success' => :'Boolean',
44
+ :'sequence' => :'CancelBroadcast200ResponseBroadcast'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ ])
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Late::ActivateSequence200Response` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Late::ActivateSequence200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'success')
71
+ self.success = attributes[:'success']
72
+ end
73
+
74
+ if attributes.key?(:'sequence')
75
+ self.sequence = attributes[:'sequence']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
83
+ invalid_properties = Array.new
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ warn '[DEPRECATED] the `valid?` method is obsolete'
91
+ true
92
+ end
93
+
94
+ # Checks equality by comparing each attribute.
95
+ # @param [Object] Object to be compared
96
+ def ==(o)
97
+ return true if self.equal?(o)
98
+ self.class == o.class &&
99
+ success == o.success &&
100
+ sequence == o.sequence
101
+ end
102
+
103
+ # @see the `==` method
104
+ # @param [Object] Object to be compared
105
+ def eql?(o)
106
+ self == o
107
+ end
108
+
109
+ # Calculates hash code according to all attributes.
110
+ # @return [Integer] Hash code
111
+ def hash
112
+ [success, sequence].hash
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def self.build_from_hash(attributes)
119
+ return nil unless attributes.is_a?(Hash)
120
+ attributes = attributes.transform_keys(&:to_sym)
121
+ transformed_hash = {}
122
+ openapi_types.each_pair do |key, type|
123
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
124
+ transformed_hash["#{key}"] = nil
125
+ elsif type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
127
+ # is documented as an array but the input is not
128
+ if attributes[attribute_map[key]].is_a?(Array)
129
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
130
+ end
131
+ elsif !attributes[attribute_map[key]].nil?
132
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
133
+ end
134
+ end
135
+ new(transformed_hash)
136
+ end
137
+
138
+ # Returns the object in the form of hash
139
+ # @return [Hash] Returns the object in the form of hash
140
+ def to_hash
141
+ hash = {}
142
+ self.class.attribute_map.each_pair do |attr, param|
143
+ value = self.send(attr)
144
+ if value.nil?
145
+ is_nullable = self.class.openapi_nullable.include?(attr)
146
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
147
+ end
148
+
149
+ hash[param] = _to_hash(value)
150
+ end
151
+ hash
152
+ end
153
+
154
+ end
155
+
156
+ end
@@ -0,0 +1,167 @@
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 AddBroadcastRecipients200Response < ApiModelBase
18
+ attr_accessor :success
19
+
20
+ # Number of recipients successfully added
21
+ attr_accessor :added
22
+
23
+ # Number skipped (duplicates or missing channels)
24
+ attr_accessor :skipped
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'success' => :'success',
30
+ :'added' => :'added',
31
+ :'skipped' => :'skipped'
32
+ }
33
+ end
34
+
35
+ # Returns attribute mapping this model knows about
36
+ def self.acceptable_attribute_map
37
+ attribute_map
38
+ end
39
+
40
+ # Returns all the JSON keys this model knows about
41
+ def self.acceptable_attributes
42
+ acceptable_attribute_map.values
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.openapi_types
47
+ {
48
+ :'success' => :'Boolean',
49
+ :'added' => :'Integer',
50
+ :'skipped' => :'Integer'
51
+ }
52
+ end
53
+
54
+ # List of attributes with nullable: true
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ ])
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ if (!attributes.is_a?(Hash))
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Late::AddBroadcastRecipients200Response` initialize method"
65
+ end
66
+
67
+ # check to see if the attribute exists and convert string to symbol for hash key
68
+ acceptable_attribute_map = self.class.acceptable_attribute_map
69
+ attributes = attributes.each_with_object({}) { |(k, v), h|
70
+ if (!acceptable_attribute_map.key?(k.to_sym))
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Late::AddBroadcastRecipients200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
+ end
73
+ h[k.to_sym] = v
74
+ }
75
+
76
+ if attributes.key?(:'success')
77
+ self.success = attributes[:'success']
78
+ end
79
+
80
+ if attributes.key?(:'added')
81
+ self.added = attributes[:'added']
82
+ end
83
+
84
+ if attributes.key?(:'skipped')
85
+ self.skipped = attributes[:'skipped']
86
+ end
87
+ end
88
+
89
+ # Show invalid properties with the reasons. Usually used together with valid?
90
+ # @return Array for valid properties with the reasons
91
+ def list_invalid_properties
92
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
93
+ invalid_properties = Array.new
94
+ invalid_properties
95
+ end
96
+
97
+ # Check to see if the all the properties in the model are valid
98
+ # @return true if the model is valid
99
+ def valid?
100
+ warn '[DEPRECATED] the `valid?` method is obsolete'
101
+ true
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ success == o.success &&
110
+ added == o.added &&
111
+ skipped == o.skipped
112
+ end
113
+
114
+ # @see the `==` method
115
+ # @param [Object] Object to be compared
116
+ def eql?(o)
117
+ self == o
118
+ end
119
+
120
+ # Calculates hash code according to all attributes.
121
+ # @return [Integer] Hash code
122
+ def hash
123
+ [success, added, skipped].hash
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def self.build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ attributes = attributes.transform_keys(&:to_sym)
132
+ transformed_hash = {}
133
+ openapi_types.each_pair do |key, type|
134
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
135
+ transformed_hash["#{key}"] = nil
136
+ elsif type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the attribute
138
+ # is documented as an array but the input is not
139
+ if attributes[attribute_map[key]].is_a?(Array)
140
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
141
+ end
142
+ elsif !attributes[attribute_map[key]].nil?
143
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
144
+ end
145
+ end
146
+ new(transformed_hash)
147
+ end
148
+
149
+ # Returns the object in the form of hash
150
+ # @return [Hash] Returns the object in the form of hash
151
+ def to_hash
152
+ hash = {}
153
+ self.class.attribute_map.each_pair do |attr, param|
154
+ value = self.send(attr)
155
+ if value.nil?
156
+ is_nullable = self.class.openapi_nullable.include?(attr)
157
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
158
+ end
159
+
160
+ hash[param] = _to_hash(value)
161
+ end
162
+ hash
163
+ end
164
+
165
+ end
166
+
167
+ end