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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1b90e6c2dd0c3db4caae6e8d8690757ca258b96f418a4fe379c8722e6bc8720
4
- data.tar.gz: d41919bda9c4d404eb89d2872501a07f72886fc61c08b7cfd2a2f67e674e00e6
3
+ metadata.gz: ecce7836de0fe84c6c10ac40b1fa6da2623280863271baf3db46cade5c9cdcee
4
+ data.tar.gz: a4ec369ee6ead60e8999e446d2be7945684b63b1fc680688720f25dc602567b1
5
5
  SHA512:
6
- metadata.gz: 236e1fa1ecb684ec33f810e3891c01db11a94b974437e0748f403958da48bf21b6bcad94d5bdf54cb378a412ba128af288f2e14c62fbcc72f3e9695e8e253e2a
7
- data.tar.gz: 06e34ec05e09bdb7dfa69c4820bdf0b89c4dde3c2ded24da81463655a94e8210256348fbc11be016cc2420e7cb9652ce2e0256caade6be9c4e21fd0f438ebf45
6
+ metadata.gz: '0682b8f55f344db0effff21d4ba7bdd5a501a522719af9fcd51968e1eb76e3b33ec1fa747a50219a4aab7ced7a32b879d7b6923e36bde1ce5d718e406ffcfa92'
7
+ data.tar.gz: 424e836b39344a0e31e0861719d09f3784673c057763fdac923d1b41ab0840e3eb4c2652f25b9b35c2c3bc7ee89930f6e7291363e21647a7733f5a6c9c940367
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sendly (3.21.0)
4
+ sendly (3.21.1)
5
5
  faraday (~> 2.0)
6
6
  faraday-retry (~> 2.0)
7
7
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sendly
4
- VERSION = "3.21.0"
4
+ VERSION = "3.21.1"
5
5
  end
@@ -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.0
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 00:00:00.000000000 Z
11
+ date: 2026-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday