zernio-sdk 0.0.74 → 0.0.76

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 (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -0
  3. data/docs/BroadcastsApi.md +14 -12
  4. data/docs/GetWhatsAppBroadcasts200ResponseBroadcastsInner.md +2 -0
  5. data/docs/ListBroadcasts200Response.md +22 -0
  6. data/docs/ListBroadcasts200ResponseBroadcastsInner.md +50 -0
  7. data/docs/ListSequences200Response.md +22 -0
  8. data/docs/ListSequences200ResponseSequencesInner.md +46 -0
  9. data/docs/SendBroadcast200Response.md +26 -0
  10. data/docs/SequencesApi.md +7 -6
  11. data/lib/late-sdk/api/broadcasts_api.rb +10 -10
  12. data/lib/late-sdk/api/sequences_api.rb +5 -5
  13. data/lib/late-sdk/models/get_whats_app_broadcasts200_response_broadcasts_inner.rb +11 -1
  14. data/lib/late-sdk/models/list_broadcasts200_response.rb +167 -0
  15. data/lib/late-sdk/models/list_broadcasts200_response_broadcasts_inner.rb +327 -0
  16. data/lib/late-sdk/models/list_sequences200_response.rb +167 -0
  17. data/lib/late-sdk/models/list_sequences200_response_sequences_inner.rb +309 -0
  18. data/lib/late-sdk/models/send_broadcast200_response.rb +221 -0
  19. data/lib/late-sdk/version.rb +1 -1
  20. data/lib/late-sdk.rb +5 -0
  21. data/openapi.yaml +85 -3
  22. data/spec/api/broadcasts_api_spec.rb +2 -2
  23. data/spec/api/sequences_api_spec.rb +1 -1
  24. data/spec/models/get_whats_app_broadcasts200_response_broadcasts_inner_spec.rb +6 -0
  25. data/spec/models/list_broadcasts200_response_broadcasts_inner_spec.rb +136 -0
  26. data/spec/models/list_broadcasts200_response_spec.rb +48 -0
  27. data/spec/models/list_sequences200_response_sequences_inner_spec.rb +124 -0
  28. data/spec/models/list_sequences200_response_spec.rb +48 -0
  29. data/spec/models/send_broadcast200_response_spec.rb +64 -0
  30. metadata +21 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 480b9c6ad6f3dcb6dfcf58229aa8c62462891f2e162934a00b2a47caf4dd3130
4
- data.tar.gz: bf85077e79c69245cd2c9dc2f5fa9f430de02e1b2704728a32dbb0cd5764f232
3
+ metadata.gz: 3da91cafb344639856252c0d7f5743836aefd2efac049fa09f01dcf3eec75fba
4
+ data.tar.gz: 8c8e727b9e1c159ddd40032666cc65baef9751ab1d5fd80bb1e123661429199b
5
5
  SHA512:
6
- metadata.gz: 9a664cf284ad1cca5a8383b5ff952b1e9d4276bbf58c626acfff9d6d3f4d814a97026c580afbc03cd14a3e625012d0b838bd309f0c79bbaf2ebafb298a484a3f
7
- data.tar.gz: 3674d8dfb33f2d274ec4a40eb674f8b17b1e3d7e27fc3f5d651de8ab4e6d509fd3fbb3759420f0f9dc36ec99b0182c9081691618120769a00178c167d779e067
6
+ metadata.gz: 29d1746d8d9bb3533bf36adb2d05bd8b1827c7514f26011425954b595da3aeae404b18a9a2b632195f73bfdd7bbc2817d074fdc3627229e9fb3744326a095511
7
+ data.tar.gz: f73c6e6e909b10b658ed4e89051d19410666ffa8511158ba3b44b051791fdb57c430966b698ffdee4f784558c22db5f03aae4381884d6bdd0091702a8abfb5c7
data/README.md CHANGED
@@ -610,6 +610,8 @@ Class | Method | HTTP request | Description
610
610
  - [Late::ListAccountGroups200ResponseGroupsInner](docs/ListAccountGroups200ResponseGroupsInner.md)
611
611
  - [Late::ListAccounts200Response](docs/ListAccounts200Response.md)
612
612
  - [Late::ListApiKeys200Response](docs/ListApiKeys200Response.md)
613
+ - [Late::ListBroadcasts200Response](docs/ListBroadcasts200Response.md)
614
+ - [Late::ListBroadcasts200ResponseBroadcastsInner](docs/ListBroadcasts200ResponseBroadcastsInner.md)
613
615
  - [Late::ListCommentAutomations200Response](docs/ListCommentAutomations200Response.md)
614
616
  - [Late::ListCommentAutomations200ResponseAutomationsInner](docs/ListCommentAutomations200ResponseAutomationsInner.md)
615
617
  - [Late::ListCommentAutomations200ResponseAutomationsInnerStats](docs/ListCommentAutomations200ResponseAutomationsInnerStats.md)
@@ -645,6 +647,8 @@ Class | Method | HTTP request | Description
645
647
  - [Late::ListQueueSlots200Response](docs/ListQueueSlots200Response.md)
646
648
  - [Late::ListQueueSlots200ResponseOneOf](docs/ListQueueSlots200ResponseOneOf.md)
647
649
  - [Late::ListQueueSlots200ResponseOneOf1](docs/ListQueueSlots200ResponseOneOf1.md)
650
+ - [Late::ListSequences200Response](docs/ListSequences200Response.md)
651
+ - [Late::ListSequences200ResponseSequencesInner](docs/ListSequences200ResponseSequencesInner.md)
648
652
  - [Late::ListSnapchatProfiles200Response](docs/ListSnapchatProfiles200Response.md)
649
653
  - [Late::ListSnapchatProfiles200ResponsePublicProfilesInner](docs/ListSnapchatProfiles200ResponsePublicProfilesInner.md)
650
654
  - [Late::ListUsers200Response](docs/ListUsers200Response.md)
@@ -735,6 +739,7 @@ Class | Method | HTTP request | Description
735
739
  - [Late::SelectSnapchatProfile200ResponseAccount](docs/SelectSnapchatProfile200ResponseAccount.md)
736
740
  - [Late::SelectSnapchatProfileRequest](docs/SelectSnapchatProfileRequest.md)
737
741
  - [Late::SelectSnapchatProfileRequestSelectedPublicProfile](docs/SelectSnapchatProfileRequestSelectedPublicProfile.md)
742
+ - [Late::SendBroadcast200Response](docs/SendBroadcast200Response.md)
738
743
  - [Late::SendInboxMessage200Response](docs/SendInboxMessage200Response.md)
739
744
  - [Late::SendInboxMessage200ResponseData](docs/SendInboxMessage200ResponseData.md)
740
745
  - [Late::SendInboxMessage400Response](docs/SendInboxMessage400Response.md)
@@ -424,7 +424,7 @@ nil (empty response body)
424
424
 
425
425
  ## list_broadcasts
426
426
 
427
- > list_broadcasts(opts)
427
+ > <ListBroadcasts200Response> list_broadcasts(opts)
428
428
 
429
429
  List broadcasts
430
430
 
@@ -450,7 +450,8 @@ opts = {
450
450
 
451
451
  begin
452
452
  # List broadcasts
453
- api_instance.list_broadcasts(opts)
453
+ result = api_instance.list_broadcasts(opts)
454
+ p result
454
455
  rescue Late::ApiError => e
455
456
  puts "Error when calling BroadcastsApi->list_broadcasts: #{e}"
456
457
  end
@@ -458,9 +459,9 @@ end
458
459
 
459
460
  #### Using the list_broadcasts_with_http_info variant
460
461
 
461
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
462
+ This returns an Array which contains the response data, status code and headers.
462
463
 
463
- > <Array(nil, Integer, Hash)> list_broadcasts_with_http_info(opts)
464
+ > <Array(<ListBroadcasts200Response>, Integer, Hash)> list_broadcasts_with_http_info(opts)
464
465
 
465
466
  ```ruby
466
467
  begin
@@ -468,7 +469,7 @@ begin
468
469
  data, status_code, headers = api_instance.list_broadcasts_with_http_info(opts)
469
470
  p status_code # => 2xx
470
471
  p headers # => { ... }
471
- p data # => nil
472
+ p data # => <ListBroadcasts200Response>
472
473
  rescue Late::ApiError => e
473
474
  puts "Error when calling BroadcastsApi->list_broadcasts_with_http_info: #{e}"
474
475
  end
@@ -486,7 +487,7 @@ end
486
487
 
487
488
  ### Return type
488
489
 
489
- nil (empty response body)
490
+ [**ListBroadcasts200Response**](ListBroadcasts200Response.md)
490
491
 
491
492
  ### Authorization
492
493
 
@@ -568,7 +569,7 @@ nil (empty response body)
568
569
 
569
570
  ## send_broadcast
570
571
 
571
- > send_broadcast(broadcast_id)
572
+ > <SendBroadcast200Response> send_broadcast(broadcast_id)
572
573
 
573
574
  Trigger immediate send
574
575
 
@@ -588,7 +589,8 @@ broadcast_id = 'broadcast_id_example' # String |
588
589
 
589
590
  begin
590
591
  # Trigger immediate send
591
- api_instance.send_broadcast(broadcast_id)
592
+ result = api_instance.send_broadcast(broadcast_id)
593
+ p result
592
594
  rescue Late::ApiError => e
593
595
  puts "Error when calling BroadcastsApi->send_broadcast: #{e}"
594
596
  end
@@ -596,9 +598,9 @@ end
596
598
 
597
599
  #### Using the send_broadcast_with_http_info variant
598
600
 
599
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
601
+ This returns an Array which contains the response data, status code and headers.
600
602
 
601
- > <Array(nil, Integer, Hash)> send_broadcast_with_http_info(broadcast_id)
603
+ > <Array(<SendBroadcast200Response>, Integer, Hash)> send_broadcast_with_http_info(broadcast_id)
602
604
 
603
605
  ```ruby
604
606
  begin
@@ -606,7 +608,7 @@ begin
606
608
  data, status_code, headers = api_instance.send_broadcast_with_http_info(broadcast_id)
607
609
  p status_code # => 2xx
608
610
  p headers # => { ... }
609
- p data # => nil
611
+ p data # => <SendBroadcast200Response>
610
612
  rescue Late::ApiError => e
611
613
  puts "Error when calling BroadcastsApi->send_broadcast_with_http_info: #{e}"
612
614
  end
@@ -620,7 +622,7 @@ end
620
622
 
621
623
  ### Return type
622
624
 
623
- nil (empty response body)
625
+ [**SendBroadcast200Response**](SendBroadcast200Response.md)
624
626
 
625
627
  ### Authorization
626
628
 
@@ -9,6 +9,7 @@
9
9
  | **description** | **String** | | [optional] |
10
10
  | **template** | [**GetWhatsAppBroadcasts200ResponseBroadcastsInnerTemplate**](GetWhatsAppBroadcasts200ResponseBroadcastsInnerTemplate.md) | | [optional] |
11
11
  | **status** | **String** | | [optional] |
12
+ | **message_preview** | **String** | Template name or message text snippet | [optional] |
12
13
  | **recipient_count** | **Integer** | | [optional] |
13
14
  | **scheduled_at** | **Time** | | [optional] |
14
15
  | **started_at** | **Time** | | [optional] |
@@ -30,6 +31,7 @@ instance = Late::GetWhatsAppBroadcasts200ResponseBroadcastsInner.new(
30
31
  description: null,
31
32
  template: null,
32
33
  status: null,
34
+ message_preview: null,
33
35
  recipient_count: null,
34
36
  scheduled_at: null,
35
37
  started_at: null,
@@ -0,0 +1,22 @@
1
+ # Late::ListBroadcasts200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **success** | **Boolean** | | [optional] |
8
+ | **broadcasts** | [**Array&lt;ListBroadcasts200ResponseBroadcastsInner&gt;**](ListBroadcasts200ResponseBroadcastsInner.md) | | [optional] |
9
+ | **pagination** | [**GetWhatsAppContacts200ResponsePagination**](GetWhatsAppContacts200ResponsePagination.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'late-sdk'
15
+
16
+ instance = Late::ListBroadcasts200Response.new(
17
+ success: null,
18
+ broadcasts: null,
19
+ pagination: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,50 @@
1
+ # Late::ListBroadcasts200ResponseBroadcastsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **description** | **String** | | [optional] |
10
+ | **platform** | **String** | | [optional] |
11
+ | **account_id** | **String** | | [optional] |
12
+ | **account_name** | **String** | Display name of the sending account | [optional] |
13
+ | **status** | **String** | | [optional] |
14
+ | **message_preview** | **String** | Template name or message text snippet | [optional] |
15
+ | **scheduled_at** | **Time** | | [optional] |
16
+ | **started_at** | **Time** | | [optional] |
17
+ | **completed_at** | **Time** | | [optional] |
18
+ | **recipient_count** | **Integer** | | [optional] |
19
+ | **sent_count** | **Integer** | | [optional] |
20
+ | **delivered_count** | **Integer** | | [optional] |
21
+ | **read_count** | **Integer** | | [optional] |
22
+ | **failed_count** | **Integer** | | [optional] |
23
+ | **created_at** | **Time** | | [optional] |
24
+
25
+ ## Example
26
+
27
+ ```ruby
28
+ require 'late-sdk'
29
+
30
+ instance = Late::ListBroadcasts200ResponseBroadcastsInner.new(
31
+ id: null,
32
+ name: null,
33
+ description: null,
34
+ platform: null,
35
+ account_id: null,
36
+ account_name: null,
37
+ status: null,
38
+ message_preview: null,
39
+ scheduled_at: null,
40
+ started_at: null,
41
+ completed_at: null,
42
+ recipient_count: null,
43
+ sent_count: null,
44
+ delivered_count: null,
45
+ read_count: null,
46
+ failed_count: null,
47
+ created_at: null
48
+ )
49
+ ```
50
+
@@ -0,0 +1,22 @@
1
+ # Late::ListSequences200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **success** | **Boolean** | | [optional] |
8
+ | **sequences** | [**Array&lt;ListSequences200ResponseSequencesInner&gt;**](ListSequences200ResponseSequencesInner.md) | | [optional] |
9
+ | **pagination** | [**GetWhatsAppContacts200ResponsePagination**](GetWhatsAppContacts200ResponsePagination.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'late-sdk'
15
+
16
+ instance = Late::ListSequences200Response.new(
17
+ success: null,
18
+ sequences: null,
19
+ pagination: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,46 @@
1
+ # Late::ListSequences200ResponseSequencesInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **description** | **String** | | [optional] |
10
+ | **platform** | **String** | | [optional] |
11
+ | **account_id** | **String** | | [optional] |
12
+ | **account_name** | **String** | Display name of the sending account | [optional] |
13
+ | **message_preview** | **String** | First step template name or message text snippet | [optional] |
14
+ | **status** | **String** | | [optional] |
15
+ | **steps_count** | **Integer** | | [optional] |
16
+ | **exit_on_reply** | **Boolean** | | [optional] |
17
+ | **exit_on_unsubscribe** | **Boolean** | | [optional] |
18
+ | **total_enrolled** | **Integer** | | [optional] |
19
+ | **total_completed** | **Integer** | | [optional] |
20
+ | **total_exited** | **Integer** | | [optional] |
21
+ | **created_at** | **Time** | | [optional] |
22
+
23
+ ## Example
24
+
25
+ ```ruby
26
+ require 'late-sdk'
27
+
28
+ instance = Late::ListSequences200ResponseSequencesInner.new(
29
+ id: null,
30
+ name: null,
31
+ description: null,
32
+ platform: null,
33
+ account_id: null,
34
+ account_name: null,
35
+ message_preview: null,
36
+ status: null,
37
+ steps_count: null,
38
+ exit_on_reply: null,
39
+ exit_on_unsubscribe: null,
40
+ total_enrolled: null,
41
+ total_completed: null,
42
+ total_exited: null,
43
+ created_at: null
44
+ )
45
+ ```
46
+
@@ -0,0 +1,26 @@
1
+ # Late::SendBroadcast200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **success** | **Boolean** | | [optional] |
8
+ | **status** | **String** | Current broadcast status after processing first batch | [optional] |
9
+ | **sent** | **Integer** | Recipients sent in this batch | [optional] |
10
+ | **failed** | **Integer** | Recipients failed in this batch | [optional] |
11
+ | **recipient_count** | **Integer** | Total recipient count | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'late-sdk'
17
+
18
+ instance = Late::SendBroadcast200Response.new(
19
+ success: null,
20
+ status: null,
21
+ sent: null,
22
+ failed: null,
23
+ recipient_count: null
24
+ )
25
+ ```
26
+
data/docs/SequencesApi.md CHANGED
@@ -424,7 +424,7 @@ nil (empty response body)
424
424
 
425
425
  ## list_sequences
426
426
 
427
- > list_sequences(opts)
427
+ > <ListSequences200Response> list_sequences(opts)
428
428
 
429
429
  List sequences
430
430
 
@@ -449,7 +449,8 @@ opts = {
449
449
 
450
450
  begin
451
451
  # List sequences
452
- api_instance.list_sequences(opts)
452
+ result = api_instance.list_sequences(opts)
453
+ p result
453
454
  rescue Late::ApiError => e
454
455
  puts "Error when calling SequencesApi->list_sequences: #{e}"
455
456
  end
@@ -457,9 +458,9 @@ end
457
458
 
458
459
  #### Using the list_sequences_with_http_info variant
459
460
 
460
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
461
+ This returns an Array which contains the response data, status code and headers.
461
462
 
462
- > <Array(nil, Integer, Hash)> list_sequences_with_http_info(opts)
463
+ > <Array(<ListSequences200Response>, Integer, Hash)> list_sequences_with_http_info(opts)
463
464
 
464
465
  ```ruby
465
466
  begin
@@ -467,7 +468,7 @@ begin
467
468
  data, status_code, headers = api_instance.list_sequences_with_http_info(opts)
468
469
  p status_code # => 2xx
469
470
  p headers # => { ... }
470
- p data # => nil
471
+ p data # => <ListSequences200Response>
471
472
  rescue Late::ApiError => e
472
473
  puts "Error when calling SequencesApi->list_sequences_with_http_info: #{e}"
473
474
  end
@@ -484,7 +485,7 @@ end
484
485
 
485
486
  ### Return type
486
487
 
487
- nil (empty response body)
488
+ [**ListSequences200Response**](ListSequences200Response.md)
488
489
 
489
490
  ### Authorization
490
491
 
@@ -421,10 +421,10 @@ module Late
421
421
  # @option opts [String] :platform
422
422
  # @option opts [Integer] :limit (default to 50)
423
423
  # @option opts [Integer] :skip (default to 0)
424
- # @return [nil]
424
+ # @return [ListBroadcasts200Response]
425
425
  def list_broadcasts(opts = {})
426
- list_broadcasts_with_http_info(opts)
427
- nil
426
+ data, _status_code, _headers = list_broadcasts_with_http_info(opts)
427
+ data
428
428
  end
429
429
 
430
430
  # List broadcasts
@@ -434,7 +434,7 @@ module Late
434
434
  # @option opts [String] :platform
435
435
  # @option opts [Integer] :limit (default to 50)
436
436
  # @option opts [Integer] :skip (default to 0)
437
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
437
+ # @return [Array<(ListBroadcasts200Response, Integer, Hash)>] ListBroadcasts200Response data, response status code and response headers
438
438
  def list_broadcasts_with_http_info(opts = {})
439
439
  if @api_client.config.debugging
440
440
  @api_client.config.logger.debug 'Calling API: BroadcastsApi.list_broadcasts ...'
@@ -466,7 +466,7 @@ module Late
466
466
  post_body = opts[:debug_body]
467
467
 
468
468
  # return_type
469
- return_type = opts[:debug_return_type]
469
+ return_type = opts[:debug_return_type] || 'ListBroadcasts200Response'
470
470
 
471
471
  # auth_names
472
472
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -563,16 +563,16 @@ module Late
563
563
  # Trigger immediate send
564
564
  # @param broadcast_id [String]
565
565
  # @param [Hash] opts the optional parameters
566
- # @return [nil]
566
+ # @return [SendBroadcast200Response]
567
567
  def send_broadcast(broadcast_id, opts = {})
568
- send_broadcast_with_http_info(broadcast_id, opts)
569
- nil
568
+ data, _status_code, _headers = send_broadcast_with_http_info(broadcast_id, opts)
569
+ data
570
570
  end
571
571
 
572
572
  # Trigger immediate send
573
573
  # @param broadcast_id [String]
574
574
  # @param [Hash] opts the optional parameters
575
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
575
+ # @return [Array<(SendBroadcast200Response, Integer, Hash)>] SendBroadcast200Response data, response status code and response headers
576
576
  def send_broadcast_with_http_info(broadcast_id, opts = {})
577
577
  if @api_client.config.debugging
578
578
  @api_client.config.logger.debug 'Calling API: BroadcastsApi.send_broadcast ...'
@@ -599,7 +599,7 @@ module Late
599
599
  post_body = opts[:debug_body]
600
600
 
601
601
  # return_type
602
- return_type = opts[:debug_return_type]
602
+ return_type = opts[:debug_return_type] || 'SendBroadcast200Response'
603
603
 
604
604
  # auth_names
605
605
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -420,10 +420,10 @@ module Late
420
420
  # @option opts [String] :status
421
421
  # @option opts [Integer] :limit (default to 50)
422
422
  # @option opts [Integer] :skip (default to 0)
423
- # @return [nil]
423
+ # @return [ListSequences200Response]
424
424
  def list_sequences(opts = {})
425
- list_sequences_with_http_info(opts)
426
- nil
425
+ data, _status_code, _headers = list_sequences_with_http_info(opts)
426
+ data
427
427
  end
428
428
 
429
429
  # List sequences
@@ -432,7 +432,7 @@ module Late
432
432
  # @option opts [String] :status
433
433
  # @option opts [Integer] :limit (default to 50)
434
434
  # @option opts [Integer] :skip (default to 0)
435
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
435
+ # @return [Array<(ListSequences200Response, Integer, Hash)>] ListSequences200Response data, response status code and response headers
436
436
  def list_sequences_with_http_info(opts = {})
437
437
  if @api_client.config.debugging
438
438
  @api_client.config.logger.debug 'Calling API: SequencesApi.list_sequences ...'
@@ -463,7 +463,7 @@ module Late
463
463
  post_body = opts[:debug_body]
464
464
 
465
465
  # return_type
466
- return_type = opts[:debug_return_type]
466
+ return_type = opts[:debug_return_type] || 'ListSequences200Response'
467
467
 
468
468
  # auth_names
469
469
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -25,6 +25,9 @@ module Late
25
25
 
26
26
  attr_accessor :status
27
27
 
28
+ # Template name or message text snippet
29
+ attr_accessor :message_preview
30
+
28
31
  attr_accessor :recipient_count
29
32
 
30
33
  attr_accessor :scheduled_at
@@ -73,6 +76,7 @@ module Late
73
76
  :'description' => :'description',
74
77
  :'template' => :'template',
75
78
  :'status' => :'status',
79
+ :'message_preview' => :'messagePreview',
76
80
  :'recipient_count' => :'recipientCount',
77
81
  :'scheduled_at' => :'scheduledAt',
78
82
  :'started_at' => :'startedAt',
@@ -103,6 +107,7 @@ module Late
103
107
  :'description' => :'String',
104
108
  :'template' => :'GetWhatsAppBroadcasts200ResponseBroadcastsInnerTemplate',
105
109
  :'status' => :'String',
110
+ :'message_preview' => :'String',
106
111
  :'recipient_count' => :'Integer',
107
112
  :'scheduled_at' => :'Time',
108
113
  :'started_at' => :'Time',
@@ -157,6 +162,10 @@ module Late
157
162
  self.status = attributes[:'status']
158
163
  end
159
164
 
165
+ if attributes.key?(:'message_preview')
166
+ self.message_preview = attributes[:'message_preview']
167
+ end
168
+
160
169
  if attributes.key?(:'recipient_count')
161
170
  self.recipient_count = attributes[:'recipient_count']
162
171
  end
@@ -231,6 +240,7 @@ module Late
231
240
  description == o.description &&
232
241
  template == o.template &&
233
242
  status == o.status &&
243
+ message_preview == o.message_preview &&
234
244
  recipient_count == o.recipient_count &&
235
245
  scheduled_at == o.scheduled_at &&
236
246
  started_at == o.started_at &&
@@ -251,7 +261,7 @@ module Late
251
261
  # Calculates hash code according to all attributes.
252
262
  # @return [Integer] Hash code
253
263
  def hash
254
- [id, name, description, template, status, recipient_count, scheduled_at, started_at, completed_at, sent_count, delivered_count, read_count, failed_count, created_at].hash
264
+ [id, name, description, template, status, message_preview, recipient_count, scheduled_at, started_at, completed_at, sent_count, delivered_count, read_count, failed_count, created_at].hash
255
265
  end
256
266
 
257
267
  # Builds the object from hash
@@ -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 ListBroadcasts200Response < ApiModelBase
18
+ attr_accessor :success
19
+
20
+ attr_accessor :broadcasts
21
+
22
+ attr_accessor :pagination
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'success' => :'success',
28
+ :'broadcasts' => :'broadcasts',
29
+ :'pagination' => :'pagination'
30
+ }
31
+ end
32
+
33
+ # Returns attribute mapping this model knows about
34
+ def self.acceptable_attribute_map
35
+ attribute_map
36
+ end
37
+
38
+ # Returns all the JSON keys this model knows about
39
+ def self.acceptable_attributes
40
+ acceptable_attribute_map.values
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ def self.openapi_types
45
+ {
46
+ :'success' => :'Boolean',
47
+ :'broadcasts' => :'Array<ListBroadcasts200ResponseBroadcastsInner>',
48
+ :'pagination' => :'GetWhatsAppContacts200ResponsePagination'
49
+ }
50
+ end
51
+
52
+ # List of attributes with nullable: true
53
+ def self.openapi_nullable
54
+ Set.new([
55
+ ])
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ if (!attributes.is_a?(Hash))
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Late::ListBroadcasts200Response` initialize method"
63
+ end
64
+
65
+ # check to see if the attribute exists and convert string to symbol for hash key
66
+ acceptable_attribute_map = self.class.acceptable_attribute_map
67
+ attributes = attributes.each_with_object({}) { |(k, v), h|
68
+ if (!acceptable_attribute_map.key?(k.to_sym))
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Late::ListBroadcasts200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
70
+ end
71
+ h[k.to_sym] = v
72
+ }
73
+
74
+ if attributes.key?(:'success')
75
+ self.success = attributes[:'success']
76
+ end
77
+
78
+ if attributes.key?(:'broadcasts')
79
+ if (value = attributes[:'broadcasts']).is_a?(Array)
80
+ self.broadcasts = value
81
+ end
82
+ end
83
+
84
+ if attributes.key?(:'pagination')
85
+ self.pagination = attributes[:'pagination']
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
+ broadcasts == o.broadcasts &&
111
+ pagination == o.pagination
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, broadcasts, pagination].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