late-sdk 0.0.563 → 0.0.565

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: b83fee5aa591aa86ccfb5f735e3a75a3821854149f3c0972bd9b291ed17445b0
4
- data.tar.gz: facfb82233f3d521d2c1238823a9df3773e29d04f7692b98d45582725f9155cf
3
+ metadata.gz: 5c54d29db01ae632a808908be3909ea25b16beeb8063d8e05736b0ed68b9c985
4
+ data.tar.gz: c22d3c4daed9d04c06c8d9f2ff4418200b9a75ca9c4e38487e7ad39fd1a34d99
5
5
  SHA512:
6
- metadata.gz: 6952073f1044cb1d01913ef64e9daab808c725924865573aa9f201ce963839a3d911532bb2ab313dd39c9533525376428bc9d0b9064ac1176292529ed030386d
7
- data.tar.gz: a9f45774eabe6370d33744b3041a11f471d6b18ec4c948e11fd1cd296b6a78a82e5ad3b857490d224fbe9abd314484651476ac322a9986d7e6a7f10544896a51
6
+ metadata.gz: 5c975d4cf1a9f4d7157573170147b319111b337013db1d3300e5c9236521faff762c5177b6c1aad3170e359138075edb55d66dc20e8bb5096af84905dcc538b9
7
+ data.tar.gz: bf630dda4ff4d25f734730a73c1c65d2dd6009f48acbdd3daed512ad7bd2e30f202646f68e9c267330d54e304477c79731558791df718ecc96ed87379725203a
@@ -1214,7 +1214,7 @@ nil (empty response body)
1214
1214
 
1215
1215
  Message sent event
1216
1216
 
1217
- Fired when a message is sent via the API.
1217
+ Fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers.
1218
1218
 
1219
1219
  ### Examples
1220
1220
 
@@ -14,6 +14,7 @@
14
14
  | **sender** | [**WebhookPayloadMessageSentMessageSender**](WebhookPayloadMessageSentMessageSender.md) | | |
15
15
  | **sent_at** | **Time** | | |
16
16
  | **is_read** | **Boolean** | | |
17
+ | **source** | **String** | WhatsApp send origin. whatsapp_business_app when sent from the WhatsApp Business phone app on a Coexistence number; cloud_api when sent through Zernio (dashboard, API, or broadcasts). Absent on non-WhatsApp platforms. This is not the inbox metadata.source lineage field. | [optional] |
17
18
 
18
19
  ## Example
19
20
 
@@ -30,7 +31,8 @@ instance = Zernio::WebhookPayloadMessageSentMessage.new(
30
31
  attachments: null,
31
32
  sender: null,
32
33
  sent_at: null,
33
- is_read: null
34
+ is_read: null,
35
+ source: null
34
36
  )
35
37
  ```
36
38
 
@@ -1142,7 +1142,7 @@ module Zernio
1142
1142
  end
1143
1143
 
1144
1144
  # Message sent event
1145
- # Fired when a message is sent via the API.
1145
+ # Fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers.
1146
1146
  # @param webhook_payload_message_sent [WebhookPayloadMessageSent]
1147
1147
  # @param [Hash] opts the optional parameters
1148
1148
  # @return [nil]
@@ -1152,7 +1152,7 @@ module Zernio
1152
1152
  end
1153
1153
 
1154
1154
  # Message sent event
1155
- # Fired when a message is sent via the API.
1155
+ # Fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers.
1156
1156
  # @param webhook_payload_message_sent [WebhookPayloadMessageSent]
1157
1157
  # @param [Hash] opts the optional parameters
1158
1158
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Zernio
17
- # Webhook payload for message sent events (fired when a message is sent via the API)
17
+ # Webhook payload for message sent events (fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers)
18
18
  class WebhookPayloadMessageSent < ApiModelBase
19
19
  # Stable webhook event ID
20
20
  attr_accessor :id
@@ -39,6 +39,9 @@ module Zernio
39
39
 
40
40
  attr_accessor :is_read
41
41
 
42
+ # WhatsApp send origin. whatsapp_business_app when sent from the WhatsApp Business phone app on a Coexistence number; cloud_api when sent through Zernio (dashboard, API, or broadcasts). Absent on non-WhatsApp platforms. This is not the inbox metadata.source lineage field.
43
+ attr_accessor :source
44
+
42
45
  class EnumAttributeValidator
43
46
  attr_reader :datatype
44
47
  attr_reader :allowable_values
@@ -73,7 +76,8 @@ module Zernio
73
76
  :'attachments' => :'attachments',
74
77
  :'sender' => :'sender',
75
78
  :'sent_at' => :'sentAt',
76
- :'is_read' => :'isRead'
79
+ :'is_read' => :'isRead',
80
+ :'source' => :'source'
77
81
  }
78
82
  end
79
83
 
@@ -99,7 +103,8 @@ module Zernio
99
103
  :'attachments' => :'Array<WebhookPayloadMessageSentMessageAttachmentsInner>',
100
104
  :'sender' => :'WebhookPayloadMessageSentMessageSender',
101
105
  :'sent_at' => :'Time',
102
- :'is_read' => :'Boolean'
106
+ :'is_read' => :'Boolean',
107
+ :'source' => :'String'
103
108
  }
104
109
  end
105
110
 
@@ -187,6 +192,10 @@ module Zernio
187
192
  else
188
193
  self.is_read = nil
189
194
  end
195
+
196
+ if attributes.key?(:'source')
197
+ self.source = attributes[:'source']
198
+ end
190
199
  end
191
200
 
192
201
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -250,6 +259,8 @@ module Zernio
250
259
  return false if @sender.nil?
251
260
  return false if @sent_at.nil?
252
261
  return false if @is_read.nil?
262
+ source_validator = EnumAttributeValidator.new('String', ["whatsapp_business_app", "cloud_api"])
263
+ return false unless source_validator.valid?(@source)
253
264
  true
254
265
  end
255
266
 
@@ -343,6 +354,16 @@ module Zernio
343
354
  @is_read = is_read
344
355
  end
345
356
 
357
+ # Custom attribute writer method checking allowed values (enum).
358
+ # @param [Object] source Object to be assigned
359
+ def source=(source)
360
+ validator = EnumAttributeValidator.new('String', ["whatsapp_business_app", "cloud_api"])
361
+ unless validator.valid?(source)
362
+ fail ArgumentError, "invalid value for \"source\", must be one of #{validator.allowable_values}."
363
+ end
364
+ @source = source
365
+ end
366
+
346
367
  # Checks equality by comparing each attribute.
347
368
  # @param [Object] Object to be compared
348
369
  def ==(o)
@@ -357,7 +378,8 @@ module Zernio
357
378
  attachments == o.attachments &&
358
379
  sender == o.sender &&
359
380
  sent_at == o.sent_at &&
360
- is_read == o.is_read
381
+ is_read == o.is_read &&
382
+ source == o.source
361
383
  end
362
384
 
363
385
  # @see the `==` method
@@ -369,7 +391,7 @@ module Zernio
369
391
  # Calculates hash code according to all attributes.
370
392
  # @return [Integer] Hash code
371
393
  def hash
372
- [id, conversation_id, platform, platform_message_id, direction, text, attachments, sender, sent_at, is_read].hash
394
+ [id, conversation_id, platform, platform_message_id, direction, text, attachments, sender, sent_at, is_read, source].hash
373
395
  end
374
396
 
375
397
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.563'
14
+ VERSION = '0.0.565'
15
15
  end
data/openapi.yaml CHANGED
@@ -3288,7 +3288,7 @@ components:
3288
3288
  format: date-time
3289
3289
  WebhookPayloadMessageSent:
3290
3290
  type: object
3291
- description: Webhook payload for message sent events (fired when a message is sent via the API)
3291
+ description: Webhook payload for message sent events (fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers)
3292
3292
  required: [id, event, message, conversation, account, timestamp]
3293
3293
  properties:
3294
3294
  id:
@@ -3360,6 +3360,10 @@ components:
3360
3360
  format: date-time
3361
3361
  isRead:
3362
3362
  type: boolean
3363
+ source:
3364
+ type: string
3365
+ enum: [whatsapp_business_app, cloud_api]
3366
+ description: 'WhatsApp send origin. whatsapp_business_app when sent from the WhatsApp Business phone app on a Coexistence number; cloud_api when sent through Zernio (dashboard, API, or broadcasts). Absent on non-WhatsApp platforms. This is not the inbox metadata.source lineage field.'
3363
3367
  conversation:
3364
3368
  $ref: '#/components/schemas/InboxWebhookConversation'
3365
3369
  account:
@@ -7461,7 +7465,7 @@ webhooks:
7461
7465
  post:
7462
7466
  operationId: onMessageSent
7463
7467
  summary: Message sent event
7464
- description: Fired when a message is sent via the API.
7468
+ description: Fired when a message is sent via the API, or from the WhatsApp Business app on Coexistence numbers.
7465
7469
  tags: [Webhook Events]
7466
7470
  requestBody:
7467
7471
  required: true
@@ -95,4 +95,14 @@ describe Zernio::WebhookPayloadMessageSentMessage do
95
95
  end
96
96
  end
97
97
 
98
+ describe 'test attribute "source"' do
99
+ it 'should work' do
100
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
101
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["whatsapp_business_app", "cloud_api"])
102
+ # validator.allowable_values.each do |value|
103
+ # expect { instance.source = value }.not_to raise_error
104
+ # end
105
+ end
106
+ end
107
+
98
108
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.563
4
+ version: 0.0.565
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -4751,7 +4751,7 @@ files:
4751
4751
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
4752
4752
  - spec/models/you_tube_video_retention_response_spec.rb
4753
4753
  - spec/spec_helper.rb
4754
- - zernio-sdk-0.0.563.gem
4754
+ - zernio-sdk-0.0.565.gem
4755
4755
  - zernio-sdk.gemspec
4756
4756
  homepage: https://openapi-generator.tech
4757
4757
  licenses:
Binary file