zernio-sdk 0.0.66 → 0.0.67

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: 9cd0ef13cc8e085f4fb2b481f5cef83c34802ff49e4acad71a2ebede5520f328
4
- data.tar.gz: bbb625624a46690ed9c24f1f24020331c7fe3a0b755fd46b874e27726f3c2202
3
+ metadata.gz: e45b824e1dcc1cdda944adaee8896859139194b0ddf2e07a9e5e9d6b9736ed29
4
+ data.tar.gz: 7fc72ec46cab10b5ffdabcd3375898a19bbbbbed392f262191227264d7c4daa7
5
5
  SHA512:
6
- metadata.gz: 363281469bb9d2ec02b352a0ae779f791b365c1e217f3bf234dcba7224485f4e039e10cc4dbce9ed60ca7b75975ddc71bbda89db1bbc481d3a7c004b10b917ce
7
- data.tar.gz: 1c0a524682e9363af6cddc7bae1d2155efc5cba5e763856b6a0a544210ff6c20dcfe4783e3ff6d509a50edb35becbb4145a9b2ace63195bda71bb52d9d22a7da
6
+ metadata.gz: 8d86f0105b38f1649433f134de5cdf3e73dbfca46c70bb68ff019f41ba64c134ca229ebe6b8157045b0318cac7d81b436919ae94fa70d0b85d72fa2820a0e418
7
+ data.tar.gz: 9d5418bebca348f7d91206a8e9d025e343de2c15d5923bd65223d85f094696e293c8710b91270ca38e311d29ef192be9ef8f070874ad42b159d9a8fc622a0569
@@ -6,6 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **account_id** | **String** | Social account ID | |
8
8
  | **message** | **String** | Message text | [optional] |
9
+ | **attachment_url** | **String** | URL of the attachment to send (image, video, audio, or file). The URL must be publicly accessible. For binary file uploads, use multipart/form-data instead. | [optional] |
10
+ | **attachment_type** | **String** | Type of attachment. Defaults to file if not specified. | [optional] |
9
11
  | **quick_replies** | [**Array<SendInboxMessageRequestQuickRepliesInner>**](SendInboxMessageRequestQuickRepliesInner.md) | Quick reply buttons. Mutually exclusive with buttons. Max 13 items. | [optional] |
10
12
  | **buttons** | [**Array<SendInboxMessageRequestButtonsInner>**](SendInboxMessageRequestButtonsInner.md) | Action buttons. Mutually exclusive with quickReplies. Max 3 items. | [optional] |
11
13
  | **template** | [**SendInboxMessageRequestTemplate**](SendInboxMessageRequestTemplate.md) | | [optional] |
@@ -22,6 +24,8 @@ require 'late-sdk'
22
24
  instance = Late::SendInboxMessageRequest.new(
23
25
  account_id: null,
24
26
  message: null,
27
+ attachment_url: null,
28
+ attachment_type: null,
25
29
  quick_replies: null,
26
30
  buttons: null,
27
31
  template: null,
@@ -21,6 +21,12 @@ module Late
21
21
  # Message text
22
22
  attr_accessor :message
23
23
 
24
+ # URL of the attachment to send (image, video, audio, or file). The URL must be publicly accessible. For binary file uploads, use multipart/form-data instead.
25
+ attr_accessor :attachment_url
26
+
27
+ # Type of attachment. Defaults to file if not specified.
28
+ attr_accessor :attachment_type
29
+
24
30
  # Quick reply buttons. Mutually exclusive with buttons. Max 13 items.
25
31
  attr_accessor :quick_replies
26
32
 
@@ -67,6 +73,8 @@ module Late
67
73
  {
68
74
  :'account_id' => :'accountId',
69
75
  :'message' => :'message',
76
+ :'attachment_url' => :'attachmentUrl',
77
+ :'attachment_type' => :'attachmentType',
70
78
  :'quick_replies' => :'quickReplies',
71
79
  :'buttons' => :'buttons',
72
80
  :'template' => :'template',
@@ -92,6 +100,8 @@ module Late
92
100
  {
93
101
  :'account_id' => :'String',
94
102
  :'message' => :'String',
103
+ :'attachment_url' => :'String',
104
+ :'attachment_type' => :'String',
95
105
  :'quick_replies' => :'Array<SendInboxMessageRequestQuickRepliesInner>',
96
106
  :'buttons' => :'Array<SendInboxMessageRequestButtonsInner>',
97
107
  :'template' => :'SendInboxMessageRequestTemplate',
@@ -134,6 +144,14 @@ module Late
134
144
  self.message = attributes[:'message']
135
145
  end
136
146
 
147
+ if attributes.key?(:'attachment_url')
148
+ self.attachment_url = attributes[:'attachment_url']
149
+ end
150
+
151
+ if attributes.key?(:'attachment_type')
152
+ self.attachment_type = attributes[:'attachment_type']
153
+ end
154
+
137
155
  if attributes.key?(:'quick_replies')
138
156
  if (value = attributes[:'quick_replies']).is_a?(Array)
139
157
  self.quick_replies = value
@@ -192,6 +210,8 @@ module Late
192
210
  def valid?
193
211
  warn '[DEPRECATED] the `valid?` method is obsolete'
194
212
  return false if @account_id.nil?
213
+ attachment_type_validator = EnumAttributeValidator.new('String', ["image", "video", "audio", "file"])
214
+ return false unless attachment_type_validator.valid?(@attachment_type)
195
215
  return false if !@quick_replies.nil? && @quick_replies.length > 13
196
216
  return false if !@buttons.nil? && @buttons.length > 3
197
217
  messaging_type_validator = EnumAttributeValidator.new('String', ["RESPONSE", "UPDATE", "MESSAGE_TAG"])
@@ -211,6 +231,16 @@ module Late
211
231
  @account_id = account_id
212
232
  end
213
233
 
234
+ # Custom attribute writer method checking allowed values (enum).
235
+ # @param [Object] attachment_type Object to be assigned
236
+ def attachment_type=(attachment_type)
237
+ validator = EnumAttributeValidator.new('String', ["image", "video", "audio", "file"])
238
+ unless validator.valid?(attachment_type)
239
+ fail ArgumentError, "invalid value for \"attachment_type\", must be one of #{validator.allowable_values}."
240
+ end
241
+ @attachment_type = attachment_type
242
+ end
243
+
214
244
  # Custom attribute writer method with validation
215
245
  # @param [Object] quick_replies Value to be assigned
216
246
  def quick_replies=(quick_replies)
@@ -266,6 +296,8 @@ module Late
266
296
  self.class == o.class &&
267
297
  account_id == o.account_id &&
268
298
  message == o.message &&
299
+ attachment_url == o.attachment_url &&
300
+ attachment_type == o.attachment_type &&
269
301
  quick_replies == o.quick_replies &&
270
302
  buttons == o.buttons &&
271
303
  template == o.template &&
@@ -284,7 +316,7 @@ module Late
284
316
  # Calculates hash code according to all attributes.
285
317
  # @return [Integer] Hash code
286
318
  def hash
287
- [account_id, message, quick_replies, buttons, template, reply_markup, messaging_type, message_tag, reply_to].hash
319
+ [account_id, message, attachment_url, attachment_type, quick_replies, buttons, template, reply_markup, messaging_type, message_tag, reply_to].hash
288
320
  end
289
321
 
290
322
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Late
14
- VERSION = '0.0.66'
14
+ VERSION = '0.0.67'
15
15
  end
data/openapi.yaml CHANGED
@@ -10980,6 +10980,11 @@ paths:
10980
10980
  properties:
10981
10981
  accountId: { type: string, description: Social account ID }
10982
10982
  message: { type: string, description: Message text }
10983
+ attachmentUrl: { type: string, description: "URL of the attachment to send (image, video, audio, or file). The URL must be publicly accessible. For binary file uploads, use multipart/form-data instead." }
10984
+ attachmentType:
10985
+ type: string
10986
+ enum: [image, video, audio, file]
10987
+ description: "Type of attachment. Defaults to file if not specified."
10983
10988
  quickReplies:
10984
10989
  type: array
10985
10990
  maxItems: 13
@@ -39,6 +39,22 @@ describe Late::SendInboxMessageRequest do
39
39
  end
40
40
  end
41
41
 
42
+ describe 'test attribute "attachment_url"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ describe 'test attribute "attachment_type"' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["image", "video", "audio", "file"])
52
+ # validator.allowable_values.each do |value|
53
+ # expect { instance.attachment_type = value }.not_to raise_error
54
+ # end
55
+ end
56
+ end
57
+
42
58
  describe 'test attribute "quick_replies"' do
43
59
  it 'should work' do
44
60
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zernio-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.66
4
+ version: 0.0.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-22 00:00:00.000000000 Z
11
+ date: 2026-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus