pingram 1.0.9 → 1.0.10

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: 4d92a9fe59994579dcbcbec394a85c59560372c79ab5d15877ec3ea99839b2ad
4
- data.tar.gz: 336dd2cd85ca02c0e02f10e4458c677e39222a5b605b93213e9620c04d2757d5
3
+ metadata.gz: c7159973c03bf987933bce4476148995727426c5a1105a3872dec4f574291d63
4
+ data.tar.gz: baf82b4097f06f31e86572db6cec2f013734a38612299792bb5f22ebede45d9a
5
5
  SHA512:
6
- metadata.gz: e04f8ef0c4a9ad04331b0cd121e3777c20873b238b7628edf460ccf46ae5fd851b205da356bfda173b030b7fd40336d50194014c65775c5345d10f687f79ba2a
7
- data.tar.gz: 9ed3841babe3555369e40d9b8e40f1494225b2fbd14b8f100d70fc0026757ffa37b3c54865d18ea0437b41790621c97150ea20a23e63770f4c16ab44b5f65879
6
+ metadata.gz: '038a44baf81ffe7b07d8080470ccd42e3fd41b77f1da3745e9eecb06ecacc7b66387a57a7b3d05bd11582cd74d65bb2d2648dbd3b8b6ea6230bd086b70144c81'
7
+ data.tar.gz: 115cf1ae4ad623fdba7fa66cd345c666b7190d1fa50a254fe8d9d999f550fcf5a53daa2be8eeaee81488773f88e6756e56be5935b254758765ac4c9f7b9a4455
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pingram (1.0.9)
4
+ pingram (1.0.10)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -32,7 +32,7 @@ module Pingram
32
32
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
33
33
  def initialize(config = Configuration.default)
34
34
  @config = config
35
- @user_agent = "pingram-ruby/1.0.9"
35
+ @user_agent = "pingram-ruby/1.0.10"
36
36
  @default_headers = {
37
37
  'Content-Type' => 'application/json',
38
38
  'User-Agent' => @user_agent
@@ -18,10 +18,14 @@ module Pingram
18
18
  class ListPhoneNumbersResponse < ApiModelBase
19
19
  attr_accessor :numbers
20
20
 
21
+ # E.164 shared number the account can send from when it has no dedicated number.
22
+ attr_accessor :shared_number
23
+
21
24
  # Attribute mapping from ruby-style variable name to JSON key.
22
25
  def self.attribute_map
23
26
  {
24
- :'numbers' => :'numbers'
27
+ :'numbers' => :'numbers',
28
+ :'shared_number' => :'sharedNumber'
25
29
  }
26
30
  end
27
31
 
@@ -38,7 +42,8 @@ module Pingram
38
42
  # Attribute type mapping.
39
43
  def self.openapi_types
40
44
  {
41
- :'numbers' => :'Array<ListPhoneNumbersResponseNumbersInner>'
45
+ :'numbers' => :'Array<ListPhoneNumbersResponseNumbersInner>',
46
+ :'shared_number' => :'String'
42
47
  }
43
48
  end
44
49
 
@@ -71,6 +76,12 @@ module Pingram
71
76
  else
72
77
  self.numbers = nil
73
78
  end
79
+
80
+ if attributes.key?(:'shared_number')
81
+ self.shared_number = attributes[:'shared_number']
82
+ else
83
+ self.shared_number = nil
84
+ end
74
85
  end
75
86
 
76
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -82,6 +93,10 @@ module Pingram
82
93
  invalid_properties.push('invalid value for "numbers", numbers cannot be nil.')
83
94
  end
84
95
 
96
+ if @shared_number.nil?
97
+ invalid_properties.push('invalid value for "shared_number", shared_number cannot be nil.')
98
+ end
99
+
85
100
  invalid_properties
86
101
  end
87
102
 
@@ -90,6 +105,7 @@ module Pingram
90
105
  def valid?
91
106
  warn '[DEPRECATED] the `valid?` method is obsolete'
92
107
  return false if @numbers.nil?
108
+ return false if @shared_number.nil?
93
109
  true
94
110
  end
95
111
 
@@ -103,12 +119,23 @@ module Pingram
103
119
  @numbers = numbers
104
120
  end
105
121
 
122
+ # Custom attribute writer method with validation
123
+ # @param [Object] shared_number Value to be assigned
124
+ def shared_number=(shared_number)
125
+ if shared_number.nil?
126
+ fail ArgumentError, 'shared_number cannot be nil'
127
+ end
128
+
129
+ @shared_number = shared_number
130
+ end
131
+
106
132
  # Checks equality by comparing each attribute.
107
133
  # @param [Object] Object to be compared
108
134
  def ==(o)
109
135
  return true if self.equal?(o)
110
136
  self.class == o.class &&
111
- numbers == o.numbers
137
+ numbers == o.numbers &&
138
+ shared_number == o.shared_number
112
139
  end
113
140
 
114
141
  # @see the `==` method
@@ -120,7 +147,7 @@ module Pingram
120
147
  # Calculates hash code according to all attributes.
121
148
  # @return [Integer] Hash code
122
149
  def hash
123
- [numbers].hash
150
+ [numbers, shared_number].hash
124
151
  end
125
152
 
126
153
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Pingram
14
- VERSION = '1.0.9'
14
+ VERSION = '1.0.10'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pingram
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pingram
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-02 00:00:00.000000000 Z
11
+ date: 2026-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus