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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 748a3a579f5c7c4a263b7b840234b0489e7b895e63d43d939f01bdc177616a53
4
- data.tar.gz: 6e2b5d3d0a8135aff72a1314c33a833c1a77384f7a6047e6147c013e29e6ea45
3
+ metadata.gz: e62d74b123d37c098faef65853320aa4860642c2c483da541480a39bdfd4da6d
4
+ data.tar.gz: d7717268228d1d05a627164a1355265e071b094ffe4667fdc508afcc15580657
5
5
  SHA512:
6
- metadata.gz: 913f6f7f81f667513740f61849db751dfdd9dc60ca6366c81b6e621564e53719f3503a5085ed38f7c48570dd55a33a26b5037af136387aa2226ed7c8a4542b2c
7
- data.tar.gz: 636e92166449f951489340b2cb00a00c7f72225fd2239f4ba9faba6919e72bd17ba24454f8a2be9ed2be8c6f76382045490a2d24b13e09bb1323dbb5dbadcb81
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
@@ -1,5 +1,5 @@
1
1
  # typed: strong
2
2
 
3
3
  module Vonage
4
- VERSION = '7.19.0'
4
+ VERSION = '7.20.0'
5
5
  end
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.19.0
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: 2023-12-11 00:00:00.000000000 Z
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.4.10
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