vonage 7.19.0 → 7.20.0
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/lib/vonage/verify2/channels/sms.rb +15 -1
- data/lib/vonage/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e62d74b123d37c098faef65853320aa4860642c2c483da541480a39bdfd4da6d
|
|
4
|
+
data.tar.gz: d7717268228d1d05a627164a1355265e071b094ffe4667fdc508afcc15580657
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38310bd39902127226b3fd48bc0cc675ed958c33b816493926e8379dfc3460f03fedaa0d6a2f080195cca50cc539411ba0082ec26bc77343b8b523b52b2bc946
|
|
7
|
+
data.tar.gz: 69de80f50b4d1add808f1a9225c2881dfce85fe0285afce01da9a750f8ceec2e1caba03e1c0c30fa02c3039a6d6b1e1dc050c32fb8884d5873af0579c4b57013
|
|
@@ -6,7 +6,7 @@ module Vonage
|
|
|
6
6
|
class Verify2::Channels::SMS
|
|
7
7
|
APP_HASH_LENGTH = 11
|
|
8
8
|
|
|
9
|
-
attr_reader :channel, :to, :app_hash
|
|
9
|
+
attr_reader :channel, :to, :from, :entity_id, :content_id, :app_hash
|
|
10
10
|
|
|
11
11
|
def initialize(to:, app_hash: nil)
|
|
12
12
|
self.channel = 'sms'
|
|
@@ -19,6 +19,20 @@ module Vonage
|
|
|
19
19
|
@to = to
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
def from=(from)
|
|
23
|
+
@from = from
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def entity_id=(entity_id)
|
|
27
|
+
raise ArgumentError, "Invalid 'entity_id' value #{entity_id}. Length must be between 1 and 20 characters." unless entity_id.length.between?(1, 20)
|
|
28
|
+
@entity_id = entity_id
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def content_id=(content_id)
|
|
32
|
+
raise ArgumentError, "Invalid 'content_id' value #{content_id}. Length must be between 1 and 20 characters ." unless content_id.length.between?(1, 20)
|
|
33
|
+
@content_id = content_id
|
|
34
|
+
end
|
|
35
|
+
|
|
22
36
|
def app_hash=(app_hash)
|
|
23
37
|
raise ArgumentError, "Invalid 'app_hash' value #{app_hash}. Length must be #{APP_HASH_LENGTH}" unless app_hash.length == APP_HASH_LENGTH
|
|
24
38
|
@app_hash = app_hash
|
data/lib/vonage/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vonage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.
|
|
4
|
+
version: 7.20.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vonage
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-02-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: vonage-jwt
|
|
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
254
254
|
- !ruby/object:Gem::Version
|
|
255
255
|
version: '0'
|
|
256
256
|
requirements: []
|
|
257
|
-
rubygems_version: 3.
|
|
257
|
+
rubygems_version: 3.5.3
|
|
258
258
|
signing_key:
|
|
259
259
|
specification_version: 4
|
|
260
260
|
summary: This is the Ruby Server SDK for Vonage APIs. To use it you'll need a Vonage
|