late-sdk 0.0.677 → 0.0.678

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: 695b268267005192f0cf9c667549e50a5959c52ce4df344150a03fdc1382ac59
4
- data.tar.gz: 302e86c98e3b04209f23799b2d381ee5cb0502b5aba04612ffb72b155c7794d2
3
+ metadata.gz: ea77def85748c8c4d9cf5d11e93cd49acc0b86a3e149eb2d77ccd06ceaae81df
4
+ data.tar.gz: 7ea6ed0dabdb434ff08ce7fee4089c887d4575b3962d8660fa66ded7b5167f97
5
5
  SHA512:
6
- metadata.gz: 0abf8aecf033c3c67512f9c2f086071fc1bff834aa4b28e9af89f07900c3c282ca383a43d2d4ffe6bf1809b9d01870aec5b21e5c9d0926f24fcaca993b8b6e78
7
- data.tar.gz: 41eb5ae78ea684b4b2596377d41da64ebbf627fc8d5b2e77dd80a18482ac0d42a60d9e51540ab7704a532fc36bfeb87ef8164f17e99ee3dce0348e6d95af6c45
6
+ metadata.gz: c63aac0b091242ac06e9fe698cdf8d829c19eb67d585f7cbe46180c057402f9d10e7353c31b4dc10783d758ea6127f5d3283129f800a9048ebc831564868ee04
7
+ data.tar.gz: d66181e772f76ce84026d8e2d5594f3b68bc063fb67666e6ff6a91ecdfb2980b1df87e0d880857ac0ce1cf4487865b374b796ce23dd5fd17a7d0525e3948ac50
@@ -18,7 +18,7 @@
18
18
  | **reply_markup** | [**SendInboxMessageRequestReplyMarkup**](SendInboxMessageRequestReplyMarkup.md) | | [optional] |
19
19
  | **messaging_type** | **String** | Facebook messaging type. Required when using messageTag. | [optional] |
20
20
  | **message_tag** | **String** | Facebook message tag for messaging outside 24h window. Requires messagingType MESSAGE_TAG. Instagram only supports HUMAN_AGENT. | [optional] |
21
- | **reply_to** | **String** | Platform message ID to quote-reply to. For WhatsApp, pass the wamid (available in message.platformMessageId from webhooks). For Telegram, pass the Telegram message ID. | [optional] |
21
+ | **reply_to** | **String** | Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID; for Instagram, the Meta mid (all available in message.platformMessageId from webhooks or the list-messages endpoint). On Slack it threads the reply (thread_ts) instead of quoting. Silently ignored on platforms without reply support, including Facebook Messenger (Meta's Messenger Send API has no reply_to). | [optional] |
22
22
  | **location** | [**SendInboxMessageRequestLocation**](SendInboxMessageRequestLocation.md) | | [optional] |
23
23
  | **contacts** | [**Array<SendInboxMessageRequestContactsInner>**](SendInboxMessageRequestContactsInner.md) | WhatsApp-only. Send one or more contact cards. | [optional] |
24
24
 
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **quoted_message_id** | **String** | platformMessageId of the message this one is a quote-reply to. WhatsApp (`context.id`), Instagram and Facebook Messenger (`reply_to.mid`). On `message.sent` echoes (operator replied from the native app) this is the only metadata field populated. | [optional] |
7
8
  | **quick_reply_payload** | **String** | Payload from a quick reply tap (Facebook/Instagram Messenger). | [optional] |
8
9
  | **postback_payload** | **String** | Payload from a postback button tap (Facebook/Instagram Messenger). | [optional] |
9
10
  | **postback_title** | **String** | Title of the tapped postback button (Facebook/Instagram Messenger). | [optional] |
@@ -27,6 +28,7 @@
27
28
  require 'zernio-sdk'
28
29
 
29
30
  instance = Zernio::WebhookPayloadMessageMetadata.new(
31
+ quoted_message_id: null,
30
32
  quick_reply_payload: null,
31
33
  postback_payload: null,
32
34
  postback_title: null,
@@ -54,7 +54,7 @@ module Zernio
54
54
  # Facebook message tag for messaging outside 24h window. Requires messagingType MESSAGE_TAG. Instagram only supports HUMAN_AGENT.
55
55
  attr_accessor :message_tag
56
56
 
57
- # Platform message ID to quote-reply to. For WhatsApp, pass the wamid (available in message.platformMessageId from webhooks). For Telegram, pass the Telegram message ID.
57
+ # Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID; for Instagram, the Meta mid (all available in message.platformMessageId from webhooks or the list-messages endpoint). On Slack it threads the reply (thread_ts) instead of quoting. Silently ignored on platforms without reply support, including Facebook Messenger (Meta's Messenger Send API has no reply_to).
58
58
  attr_accessor :reply_to
59
59
 
60
60
  attr_accessor :location
@@ -14,8 +14,11 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Zernio
17
- # Interactive message metadata (present when message is a quick reply tap, postback button tap, or inline keyboard callback)
17
+ # Platform-specific message context (present when the message is a quick reply tap, postback button tap, inline keyboard callback, or a quote-reply to an earlier message)
18
18
  class WebhookPayloadMessageMetadata < ApiModelBase
19
+ # platformMessageId of the message this one is a quote-reply to. WhatsApp (`context.id`), Instagram and Facebook Messenger (`reply_to.mid`). On `message.sent` echoes (operator replied from the native app) this is the only metadata field populated.
20
+ attr_accessor :quoted_message_id
21
+
19
22
  # Payload from a quick reply tap (Facebook/Instagram Messenger).
20
23
  attr_accessor :quick_reply_payload
21
24
 
@@ -85,6 +88,7 @@ module Zernio
85
88
  # Attribute mapping from ruby-style variable name to JSON key.
86
89
  def self.attribute_map
87
90
  {
91
+ :'quoted_message_id' => :'quotedMessageId',
88
92
  :'quick_reply_payload' => :'quickReplyPayload',
89
93
  :'postback_payload' => :'postbackPayload',
90
94
  :'postback_title' => :'postbackTitle',
@@ -117,6 +121,7 @@ module Zernio
117
121
  # Attribute type mapping.
118
122
  def self.openapi_types
119
123
  {
124
+ :'quoted_message_id' => :'String',
120
125
  :'quick_reply_payload' => :'String',
121
126
  :'postback_payload' => :'String',
122
127
  :'postback_title' => :'String',
@@ -158,6 +163,10 @@ module Zernio
158
163
  h[k.to_sym] = v
159
164
  }
160
165
 
166
+ if attributes.key?(:'quoted_message_id')
167
+ self.quoted_message_id = attributes[:'quoted_message_id']
168
+ end
169
+
161
170
  if attributes.key?(:'quick_reply_payload')
162
171
  self.quick_reply_payload = attributes[:'quick_reply_payload']
163
172
  end
@@ -271,6 +280,7 @@ module Zernio
271
280
  def ==(o)
272
281
  return true if self.equal?(o)
273
282
  self.class == o.class &&
283
+ quoted_message_id == o.quoted_message_id &&
274
284
  quick_reply_payload == o.quick_reply_payload &&
275
285
  postback_payload == o.postback_payload &&
276
286
  postback_title == o.postback_title &&
@@ -298,7 +308,7 @@ module Zernio
298
308
  # Calculates hash code according to all attributes.
299
309
  # @return [Integer] Hash code
300
310
  def hash
301
- [quick_reply_payload, postback_payload, postback_title, callback_data, interactive_type, interactive_id, button_payload, flow_response_json, flow_response_data, order, referred_product, contacts, contacts_origin, story_reply, is_story_mention, referral].hash
311
+ [quoted_message_id, quick_reply_payload, postback_payload, postback_title, callback_data, interactive_type, interactive_id, button_payload, flow_response_json, flow_response_data, order, referred_product, contacts, contacts_origin, story_reply, is_story_mention, referral].hash
302
312
  end
303
313
 
304
314
  # 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.677'
14
+ VERSION = '0.0.678'
15
15
  end
data/openapi.yaml CHANGED
@@ -3342,8 +3342,15 @@ components:
3342
3342
  $ref: '#/components/schemas/InboxWebhookAccount'
3343
3343
  metadata:
3344
3344
  type: [object, "null"]
3345
- description: Interactive message metadata (present when message is a quick reply tap, postback button tap, or inline keyboard callback)
3345
+ description: 'Platform-specific message context (present when the message is a quick reply tap, postback button tap, inline keyboard callback, or a quote-reply to an earlier message)'
3346
3346
  properties:
3347
+ quotedMessageId:
3348
+ type: string
3349
+ description: |
3350
+ platformMessageId of the message this one is a quote-reply to.
3351
+ WhatsApp (`context.id`), Instagram and Facebook Messenger
3352
+ (`reply_to.mid`). On `message.sent` echoes (operator replied
3353
+ from the native app) this is the only metadata field populated.
3347
3354
  quickReplyPayload:
3348
3355
  type: string
3349
3356
  description: Payload from a quick reply tap (Facebook/Instagram Messenger).
@@ -24475,7 +24482,7 @@ paths:
24475
24482
  description: Facebook message tag for messaging outside 24h window. Requires messagingType MESSAGE_TAG. Instagram only supports HUMAN_AGENT.
24476
24483
  replyTo:
24477
24484
  type: string
24478
- description: Platform message ID to quote-reply to. For WhatsApp, pass the wamid (available in message.platformMessageId from webhooks). For Telegram, pass the Telegram message ID.
24485
+ description: 'Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID; for Instagram, the Meta mid (all available in message.platformMessageId from webhooks or the list-messages endpoint). On Slack it threads the reply (thread_ts) instead of quoting. Silently ignored on platforms without reply support, including Facebook Messenger (Meta''s Messenger Send API has no reply_to).'
24479
24486
  location:
24480
24487
  type: object
24481
24488
  description: WhatsApp-only. Send a location pin.
@@ -24544,7 +24551,7 @@ paths:
24544
24551
  description: Message tag (requires messagingType MESSAGE_TAG)
24545
24552
  replyTo:
24546
24553
  type: string
24547
- description: Platform message ID to quote-reply to. For WhatsApp, pass the wamid (available in message.platformMessageId from webhooks). For Telegram, pass the Telegram message ID.
24554
+ description: 'Platform message ID to quote-reply to. For WhatsApp, pass the wamid; for Telegram, the Telegram message ID; for Instagram, the Meta mid (all available in message.platformMessageId from webhooks or the list-messages endpoint). On Slack it threads the reply (thread_ts) instead of quoting. Silently ignored on platforms without reply support, including Facebook Messenger (Meta''s Messenger Send API has no reply_to).'
24548
24555
  voiceNote:
24549
24556
  type: string
24550
24557
  enum: ['true']
@@ -27,6 +27,12 @@ describe Zernio::WebhookPayloadMessageMetadata do
27
27
  end
28
28
  end
29
29
 
30
+ describe 'test attribute "quoted_message_id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
30
36
  describe 'test attribute "quick_reply_payload"' do
31
37
  it 'should work' do
32
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
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.677
4
+ version: 0.0.678
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -4985,7 +4985,7 @@ files:
4985
4985
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
4986
4986
  - spec/models/you_tube_video_retention_response_spec.rb
4987
4987
  - spec/spec_helper.rb
4988
- - zernio-sdk-0.0.677.gem
4988
+ - zernio-sdk-0.0.678.gem
4989
4989
  - zernio-sdk.gemspec
4990
4990
  homepage: https://openapi-generator.tech
4991
4991
  licenses:
Binary file