zernio-sdk 0.0.71 → 0.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '082de95081a7b749e1cd25670fdbda8b19ba8336d1006ba4e1c23c972335e8c5'
4
- data.tar.gz: d7e6b947e601a198ec0d423d3e9aad95a3a71c1b503ec553ae497f9d18a51fd0
3
+ metadata.gz: fe08c44d14d86a2702e96cfbd6b7f21c44b92cc30fdcffd77380b06ac40e8c94
4
+ data.tar.gz: 1270f3599741456b1bffbe596224e265a3aa76941fda398ba1ff1537108f895c
5
5
  SHA512:
6
- metadata.gz: 4ef0a70de3edb5568aeba34c55ec16419f7182666a54eff7662cd860a475a0b6ff6e602927f3264cb90a1544619fbed080262aded92e04f034f74d498043d191
7
- data.tar.gz: e1edf7b82f12eeb81fda024e340dbc4a7ccaddfc4f5be88f2f38c8df82eb95ed3e898191693c19b9eb99ae1d867a9a9c55d6f5097b474a5a445d37f210b53f28
6
+ metadata.gz: b45a3a477934c449bbe3a1dcbb89670ffc7b1370de135aa8be36f2910322866902ea369389ef73f90733da81bb58b40f5d70618e2926e83036d25c8cba7501a3
7
+ data.tar.gz: 9cd50c0948728c27b82825d2967e122e91e4a1b7b0a902661cfbec7a0bd3a50d5038a0cbaf897b2695bb6670cde56e9721089a29b7ec35de17b4517832b66256
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **contact_ids** | **Array<String>** | Specific contact IDs to add | [optional] |
8
+ | **phones** | **Array<String>** | Raw phone numbers (auto-creates contacts). Useful for WhatsApp/Telegram manual entry | [optional] |
8
9
  | **use_segment** | **Boolean** | Auto-populate from broadcast segment filters | [optional] |
9
10
 
10
11
  ## Example
@@ -14,6 +15,7 @@ require 'late-sdk'
14
15
 
15
16
  instance = Late::AddBroadcastRecipientsRequest.new(
16
17
  contact_ids: null,
18
+ phones: null,
17
19
  use_segment: null
18
20
  )
19
21
  ```
@@ -7,7 +7,7 @@
7
7
  | **title** | **String** | | [optional] |
8
8
  | **content** | **String** | Post caption/text. Optional when media is attached or all platforms have customContent. Required for text-only posts. | [optional] |
9
9
  | **media_items** | [**Array<CreatePostRequestMediaItemsInner>**](CreatePostRequestMediaItemsInner.md) | | [optional] |
10
- | **platforms** | [**Array<CreatePostRequestPlatformsInner>**](CreatePostRequestPlatformsInner.md) | | [optional] |
10
+ | **platforms** | [**Array<CreatePostRequestPlatformsInner>**](CreatePostRequestPlatformsInner.md) | Target platforms and accounts for this post. Required for non-draft posts (returns 400 if empty). Drafts can omit platforms. | [optional] |
11
11
  | **scheduled_for** | **Time** | | [optional] |
12
12
  | **publish_now** | **Boolean** | | [optional][default to false] |
13
13
  | **is_draft** | **Boolean** | When true, saves the post as a draft. When none of scheduledFor, publishNow, or queuedFromProfile are provided, the post defaults to draft automatically. | [optional][default to false] |
@@ -18,6 +18,9 @@ module Late
18
18
  # Specific contact IDs to add
19
19
  attr_accessor :contact_ids
20
20
 
21
+ # Raw phone numbers (auto-creates contacts). Useful for WhatsApp/Telegram manual entry
22
+ attr_accessor :phones
23
+
21
24
  # Auto-populate from broadcast segment filters
22
25
  attr_accessor :use_segment
23
26
 
@@ -25,6 +28,7 @@ module Late
25
28
  def self.attribute_map
26
29
  {
27
30
  :'contact_ids' => :'contactIds',
31
+ :'phones' => :'phones',
28
32
  :'use_segment' => :'useSegment'
29
33
  }
30
34
  end
@@ -43,6 +47,7 @@ module Late
43
47
  def self.openapi_types
44
48
  {
45
49
  :'contact_ids' => :'Array<String>',
50
+ :'phones' => :'Array<String>',
46
51
  :'use_segment' => :'Boolean'
47
52
  }
48
53
  end
@@ -75,6 +80,12 @@ module Late
75
80
  end
76
81
  end
77
82
 
83
+ if attributes.key?(:'phones')
84
+ if (value = attributes[:'phones']).is_a?(Array)
85
+ self.phones = value
86
+ end
87
+ end
88
+
78
89
  if attributes.key?(:'use_segment')
79
90
  self.use_segment = attributes[:'use_segment']
80
91
  end
@@ -101,6 +112,7 @@ module Late
101
112
  return true if self.equal?(o)
102
113
  self.class == o.class &&
103
114
  contact_ids == o.contact_ids &&
115
+ phones == o.phones &&
104
116
  use_segment == o.use_segment
105
117
  end
106
118
 
@@ -113,7 +125,7 @@ module Late
113
125
  # Calculates hash code according to all attributes.
114
126
  # @return [Integer] Hash code
115
127
  def hash
116
- [contact_ids, use_segment].hash
128
+ [contact_ids, phones, use_segment].hash
117
129
  end
118
130
 
119
131
  # Builds the object from hash
@@ -22,6 +22,7 @@ module Late
22
22
 
23
23
  attr_accessor :media_items
24
24
 
25
+ # Target platforms and accounts for this post. Required for non-draft posts (returns 400 if empty). Drafts can omit platforms.
25
26
  attr_accessor :platforms
26
27
 
27
28
  attr_accessor :scheduled_for
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Late
14
- VERSION = '0.0.71'
14
+ VERSION = '0.0.73'
15
15
  end
data/openapi.yaml CHANGED
@@ -4693,6 +4693,7 @@ paths:
4693
4693
  url: { type: string, format: uri }
4694
4694
  platforms:
4695
4695
  type: array
4696
+ description: Target platforms and accounts for this post. Required for non-draft posts (returns 400 if empty). Drafts can omit platforms.
4696
4697
  items:
4697
4698
  type: object
4698
4699
  properties:
@@ -14972,6 +14973,7 @@ paths:
14972
14973
  type: object
14973
14974
  properties:
14974
14975
  contactIds: { type: array, items: { type: string }, description: Specific contact IDs to add }
14976
+ phones: { type: array, items: { type: string }, description: Raw phone numbers (auto-creates contacts). Useful for WhatsApp/Telegram manual entry }
14975
14977
  useSegment: { type: boolean, description: Auto-populate from broadcast segment filters }
14976
14978
  responses:
14977
14979
  '200': { description: Recipients added }
@@ -33,6 +33,12 @@ describe Late::AddBroadcastRecipientsRequest do
33
33
  end
34
34
  end
35
35
 
36
+ describe 'test attribute "phones"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
36
42
  describe 'test attribute "use_segment"' do
37
43
  it 'should work' do
38
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zernio-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.71
4
+ version: 0.0.73
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator