sendly 3.21.0 → 3.21.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sendly/version.rb +1 -1
- data/lib/sendly/webhooks.rb +27 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ecce7836de0fe84c6c10ac40b1fa6da2623280863271baf3db46cade5c9cdcee
|
|
4
|
+
data.tar.gz: a4ec369ee6ead60e8999e446d2be7945684b63b1fc680688720f25dc602567b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0682b8f55f344db0effff21d4ba7bdd5a501a522719af9fcd51968e1eb76e3b33ec1fa747a50219a4aab7ced7a32b879d7b6923e36bde1ce5d718e406ffcfa92'
|
|
7
|
+
data.tar.gz: 424e836b39344a0e31e0861719d09f3784673c057763fdac923d1b41ab0840e3eb4c2652f25b9b35c2c3bc7ee89930f6e7291363e21647a7733f5a6c9c940367
|
data/Gemfile.lock
CHANGED
data/lib/sendly/version.rb
CHANGED
data/lib/sendly/webhooks.rb
CHANGED
|
@@ -145,7 +145,8 @@ module Sendly
|
|
|
145
145
|
class WebhookMessageData
|
|
146
146
|
attr_reader :id, :status, :to, :from, :direction, :organization_id,
|
|
147
147
|
:text, :error, :error_code, :delivered_at, :failed_at,
|
|
148
|
-
:created_at, :segments, :credits_used, :message_format, :media_urls
|
|
148
|
+
:created_at, :segments, :credits_used, :message_format, :media_urls,
|
|
149
|
+
:retry_count, :metadata
|
|
149
150
|
|
|
150
151
|
def initialize(data)
|
|
151
152
|
@id = data[:id] || data[:message_id] || ''
|
|
@@ -164,6 +165,8 @@ module Sendly
|
|
|
164
165
|
@credits_used = data[:credits_used] || 0
|
|
165
166
|
@message_format = data[:message_format]
|
|
166
167
|
@media_urls = data[:media_urls]
|
|
168
|
+
@retry_count = data[:retry_count]
|
|
169
|
+
@metadata = data[:metadata]
|
|
167
170
|
end
|
|
168
171
|
|
|
169
172
|
def message_id
|
|
@@ -186,4 +189,27 @@ module Sendly
|
|
|
186
189
|
}.compact
|
|
187
190
|
end
|
|
188
191
|
end
|
|
192
|
+
|
|
193
|
+
class WebhookVerificationData
|
|
194
|
+
attr_reader :id, :organization_id, :phone, :status, :delivery_status,
|
|
195
|
+
:attempts, :max_attempts, :expires_at, :verified_at,
|
|
196
|
+
:created_at, :app_name, :template_id, :profile_id, :metadata
|
|
197
|
+
|
|
198
|
+
def initialize(data = {})
|
|
199
|
+
@id = data["id"]
|
|
200
|
+
@organization_id = data["organization_id"]
|
|
201
|
+
@phone = data["phone"]
|
|
202
|
+
@status = data["status"]
|
|
203
|
+
@delivery_status = data["delivery_status"] || "queued"
|
|
204
|
+
@attempts = data["attempts"] || 0
|
|
205
|
+
@max_attempts = data["max_attempts"] || 3
|
|
206
|
+
@expires_at = data["expires_at"]
|
|
207
|
+
@verified_at = data["verified_at"]
|
|
208
|
+
@created_at = data["created_at"]
|
|
209
|
+
@app_name = data["app_name"]
|
|
210
|
+
@template_id = data["template_id"]
|
|
211
|
+
@profile_id = data["profile_id"]
|
|
212
|
+
@metadata = data["metadata"]
|
|
213
|
+
end
|
|
214
|
+
end
|
|
189
215
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sendly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.21.
|
|
4
|
+
version: 3.21.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sendly
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|