late-sdk 0.0.619 → 0.0.620

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: adec945f4270a54a62ef05557ea6e4b5767f91ce78e0a5d9c9c5e5cf126f3449
4
- data.tar.gz: d6addc95b9ba568ab0a8a8d0dbb6004d94a913d380056ab43a266c514c073193
3
+ metadata.gz: 554a3fc3a8d0385697947432fbe94f7f259a063c7d11eaa992d500bf3690ec38
4
+ data.tar.gz: 50e0bf63dfa2fb330d65670bb2a74ebf7c3bfb6474bf9e31fc81e0550a0227ae
5
5
  SHA512:
6
- metadata.gz: 7e2802c440e774a66ed49eeb69c321688c6d7390096af09346429ace57bc72ff03326502205cdc9621a1dc80015dcc1eebe0f0350bc005b4204e8eab1bf5e0fa
7
- data.tar.gz: 931723d9206d64a3fd4b39eda8d9498eb2312c755207e09990f9f3cccce4079d7df898a22efb92dadc70acaa8227b752d66e41db1bac7e1693b9ea1af0dd604e
6
+ metadata.gz: 7cb10676aa0a974e9d8975a5b0dd34312be12a8723d8ebab714379eedf7fe1d4313a9ea7d8a1262bdee44b33ccc078461b083cc703993873f4f0bada34320ac3
7
+ data.tar.gz: 6166ef9d5c34f80f04455e59d2a5746568b0fe1b8bfe0ac6b7d208045de704ffa784a169ba9534d543de69edbb88dce8cfee772a1230a481488d490e88628b1d
@@ -8,6 +8,7 @@
8
8
  | **calling_enabled** | **Boolean** | | [optional] |
9
9
  | **sip_hostname** | **String** | | [optional] |
10
10
  | **forward_to** | **String** | | [optional] |
11
+ | **caller_id_mode** | **String** | Caller ID the forward-leg callee sees on tel: forwards. business = this WhatsApp number; platform = a Zernio number (customer-brought number without verified caller ID). | [optional] |
11
12
 
12
13
  ## Example
13
14
 
@@ -18,7 +19,8 @@ instance = Zernio::EnableWhatsAppCallingLegacy200Response.new(
18
19
  success: null,
19
20
  calling_enabled: null,
20
21
  sip_hostname: null,
21
- forward_to: null
22
+ forward_to: null,
23
+ caller_id_mode: null
22
24
  )
23
25
  ```
24
26
 
@@ -13,6 +13,8 @@
13
13
  | **sip_auth_password_configured** | **Boolean** | True when a SIP digest password is stored. The plaintext is never returned. | [optional] |
14
14
  | **call_icon_countries** | **Array<String>** | | [optional] |
15
15
  | **outbound_disabled** | **Boolean** | True when the number's country blocks business-initiated (outbound) WhatsApp calling; inbound still works. | [optional] |
16
+ | **caller_id_mode** | **String** | Caller ID the forward-leg callee sees on tel: forwards. business = this WhatsApp number; platform = a Zernio number (used when the number was brought by the customer and its caller ID is not verified for PSTN origination). | [optional] |
17
+ | **caller_id_verified** | **Boolean** | True once the number completed caller-ID verification, making tel: forwards display the business number itself. | [optional] |
16
18
 
17
19
  ## Example
18
20
 
@@ -28,7 +30,9 @@ instance = Zernio::GetWhatsAppCalling200Response.new(
28
30
  sip_auth_username: null,
29
31
  sip_auth_password_configured: null,
30
32
  call_icon_countries: null,
31
- outbound_disabled: null
33
+ outbound_disabled: null,
34
+ caller_id_mode: null,
35
+ caller_id_verified: null
32
36
  )
33
37
  ```
34
38
 
@@ -23,13 +23,39 @@ module Zernio
23
23
 
24
24
  attr_accessor :forward_to
25
25
 
26
+ # Caller ID the forward-leg callee sees on tel: forwards. business = this WhatsApp number; platform = a Zernio number (customer-brought number without verified caller ID).
27
+ attr_accessor :caller_id_mode
28
+
29
+ class EnumAttributeValidator
30
+ attr_reader :datatype
31
+ attr_reader :allowable_values
32
+
33
+ def initialize(datatype, allowable_values)
34
+ @allowable_values = allowable_values.map do |value|
35
+ case datatype.to_s
36
+ when /Integer/i
37
+ value.to_i
38
+ when /Float/i
39
+ value.to_f
40
+ else
41
+ value
42
+ end
43
+ end
44
+ end
45
+
46
+ def valid?(value)
47
+ !value || allowable_values.include?(value)
48
+ end
49
+ end
50
+
26
51
  # Attribute mapping from ruby-style variable name to JSON key.
27
52
  def self.attribute_map
28
53
  {
29
54
  :'success' => :'success',
30
55
  :'calling_enabled' => :'callingEnabled',
31
56
  :'sip_hostname' => :'sipHostname',
32
- :'forward_to' => :'forwardTo'
57
+ :'forward_to' => :'forwardTo',
58
+ :'caller_id_mode' => :'callerIdMode'
33
59
  }
34
60
  end
35
61
 
@@ -49,7 +75,8 @@ module Zernio
49
75
  :'success' => :'Boolean',
50
76
  :'calling_enabled' => :'Boolean',
51
77
  :'sip_hostname' => :'String',
52
- :'forward_to' => :'String'
78
+ :'forward_to' => :'String',
79
+ :'caller_id_mode' => :'String'
53
80
  }
54
81
  end
55
82
 
@@ -90,6 +117,10 @@ module Zernio
90
117
  if attributes.key?(:'forward_to')
91
118
  self.forward_to = attributes[:'forward_to']
92
119
  end
120
+
121
+ if attributes.key?(:'caller_id_mode')
122
+ self.caller_id_mode = attributes[:'caller_id_mode']
123
+ end
93
124
  end
94
125
 
95
126
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -104,9 +135,21 @@ module Zernio
104
135
  # @return true if the model is valid
105
136
  def valid?
106
137
  warn '[DEPRECATED] the `valid?` method is obsolete'
138
+ caller_id_mode_validator = EnumAttributeValidator.new('String', ["business", "platform"])
139
+ return false unless caller_id_mode_validator.valid?(@caller_id_mode)
107
140
  true
108
141
  end
109
142
 
143
+ # Custom attribute writer method checking allowed values (enum).
144
+ # @param [Object] caller_id_mode Object to be assigned
145
+ def caller_id_mode=(caller_id_mode)
146
+ validator = EnumAttributeValidator.new('String', ["business", "platform"])
147
+ unless validator.valid?(caller_id_mode)
148
+ fail ArgumentError, "invalid value for \"caller_id_mode\", must be one of #{validator.allowable_values}."
149
+ end
150
+ @caller_id_mode = caller_id_mode
151
+ end
152
+
110
153
  # Checks equality by comparing each attribute.
111
154
  # @param [Object] Object to be compared
112
155
  def ==(o)
@@ -115,7 +158,8 @@ module Zernio
115
158
  success == o.success &&
116
159
  calling_enabled == o.calling_enabled &&
117
160
  sip_hostname == o.sip_hostname &&
118
- forward_to == o.forward_to
161
+ forward_to == o.forward_to &&
162
+ caller_id_mode == o.caller_id_mode
119
163
  end
120
164
 
121
165
  # @see the `==` method
@@ -127,7 +171,7 @@ module Zernio
127
171
  # Calculates hash code according to all attributes.
128
172
  # @return [Integer] Hash code
129
173
  def hash
130
- [success, calling_enabled, sip_hostname, forward_to].hash
174
+ [success, calling_enabled, sip_hostname, forward_to, caller_id_mode].hash
131
175
  end
132
176
 
133
177
  # Builds the object from hash
@@ -37,6 +37,34 @@ module Zernio
37
37
  # True when the number's country blocks business-initiated (outbound) WhatsApp calling; inbound still works.
38
38
  attr_accessor :outbound_disabled
39
39
 
40
+ # Caller ID the forward-leg callee sees on tel: forwards. business = this WhatsApp number; platform = a Zernio number (used when the number was brought by the customer and its caller ID is not verified for PSTN origination).
41
+ attr_accessor :caller_id_mode
42
+
43
+ # True once the number completed caller-ID verification, making tel: forwards display the business number itself.
44
+ attr_accessor :caller_id_verified
45
+
46
+ class EnumAttributeValidator
47
+ attr_reader :datatype
48
+ attr_reader :allowable_values
49
+
50
+ def initialize(datatype, allowable_values)
51
+ @allowable_values = allowable_values.map do |value|
52
+ case datatype.to_s
53
+ when /Integer/i
54
+ value.to_i
55
+ when /Float/i
56
+ value.to_f
57
+ else
58
+ value
59
+ end
60
+ end
61
+ end
62
+
63
+ def valid?(value)
64
+ !value || allowable_values.include?(value)
65
+ end
66
+ end
67
+
40
68
  # Attribute mapping from ruby-style variable name to JSON key.
41
69
  def self.attribute_map
42
70
  {
@@ -48,7 +76,9 @@ module Zernio
48
76
  :'sip_auth_username' => :'sipAuthUsername',
49
77
  :'sip_auth_password_configured' => :'sipAuthPasswordConfigured',
50
78
  :'call_icon_countries' => :'callIconCountries',
51
- :'outbound_disabled' => :'outboundDisabled'
79
+ :'outbound_disabled' => :'outboundDisabled',
80
+ :'caller_id_mode' => :'callerIdMode',
81
+ :'caller_id_verified' => :'callerIdVerified'
52
82
  }
53
83
  end
54
84
 
@@ -73,7 +103,9 @@ module Zernio
73
103
  :'sip_auth_username' => :'String',
74
104
  :'sip_auth_password_configured' => :'Boolean',
75
105
  :'call_icon_countries' => :'Array<String>',
76
- :'outbound_disabled' => :'Boolean'
106
+ :'outbound_disabled' => :'Boolean',
107
+ :'caller_id_mode' => :'String',
108
+ :'caller_id_verified' => :'Boolean'
77
109
  }
78
110
  end
79
111
 
@@ -140,6 +172,14 @@ module Zernio
140
172
  if attributes.key?(:'outbound_disabled')
141
173
  self.outbound_disabled = attributes[:'outbound_disabled']
142
174
  end
175
+
176
+ if attributes.key?(:'caller_id_mode')
177
+ self.caller_id_mode = attributes[:'caller_id_mode']
178
+ end
179
+
180
+ if attributes.key?(:'caller_id_verified')
181
+ self.caller_id_verified = attributes[:'caller_id_verified']
182
+ end
143
183
  end
144
184
 
145
185
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -154,9 +194,21 @@ module Zernio
154
194
  # @return true if the model is valid
155
195
  def valid?
156
196
  warn '[DEPRECATED] the `valid?` method is obsolete'
197
+ caller_id_mode_validator = EnumAttributeValidator.new('String', ["business", "platform"])
198
+ return false unless caller_id_mode_validator.valid?(@caller_id_mode)
157
199
  true
158
200
  end
159
201
 
202
+ # Custom attribute writer method checking allowed values (enum).
203
+ # @param [Object] caller_id_mode Object to be assigned
204
+ def caller_id_mode=(caller_id_mode)
205
+ validator = EnumAttributeValidator.new('String', ["business", "platform"])
206
+ unless validator.valid?(caller_id_mode)
207
+ fail ArgumentError, "invalid value for \"caller_id_mode\", must be one of #{validator.allowable_values}."
208
+ end
209
+ @caller_id_mode = caller_id_mode
210
+ end
211
+
160
212
  # Checks equality by comparing each attribute.
161
213
  # @param [Object] Object to be compared
162
214
  def ==(o)
@@ -170,7 +222,9 @@ module Zernio
170
222
  sip_auth_username == o.sip_auth_username &&
171
223
  sip_auth_password_configured == o.sip_auth_password_configured &&
172
224
  call_icon_countries == o.call_icon_countries &&
173
- outbound_disabled == o.outbound_disabled
225
+ outbound_disabled == o.outbound_disabled &&
226
+ caller_id_mode == o.caller_id_mode &&
227
+ caller_id_verified == o.caller_id_verified
174
228
  end
175
229
 
176
230
  # @see the `==` method
@@ -182,7 +236,7 @@ module Zernio
182
236
  # Calculates hash code according to all attributes.
183
237
  # @return [Integer] Hash code
184
238
  def hash
185
- [phone_number, calling_enabled, call_deep_link, forward_to, recording_enabled, sip_auth_username, sip_auth_password_configured, call_icon_countries, outbound_disabled].hash
239
+ [phone_number, calling_enabled, call_deep_link, forward_to, recording_enabled, sip_auth_username, sip_auth_password_configured, call_icon_countries, outbound_disabled, caller_id_mode, caller_id_verified].hash
186
240
  end
187
241
 
188
242
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.619'
14
+ VERSION = '0.0.620'
15
15
  end
data/openapi.yaml CHANGED
@@ -26003,7 +26003,11 @@ paths:
26003
26003
  callingEnabled: { type: boolean }
26004
26004
  sipHostname: { type: string }
26005
26005
  forwardTo: { type: string }
26006
- '400': { description: Invalid request }
26006
+ callerIdMode:
26007
+ type: string
26008
+ enum: [business, platform]
26009
+ description: 'Caller ID the forward-leg callee sees on tel: forwards. business = this WhatsApp number; platform = a Zernio number (customer-brought number without verified caller ID).'
26010
+ '400': { description: 'Invalid request (including forwardTo set to the number itself)' }
26007
26011
  '401': { $ref: '#/components/responses/Unauthorized' }
26008
26012
  '404': { description: WhatsApp phone number not found }
26009
26013
  '422': { description: "Not eligible to enable calling: not on usage-based billing, or the number's messaging limit is below Meta's ~2,000-daily-recipient threshold (TIER_250). Warm the number up to raise the limit." }
@@ -31004,6 +31008,11 @@ paths:
31004
31008
  type: [array, "null"]
31005
31009
  items: { type: string, minLength: 2, maxLength: 2 }
31006
31010
  outboundDisabled: { type: boolean, description: "True when the number's country blocks business-initiated (outbound) WhatsApp calling; inbound still works." }
31011
+ callerIdMode:
31012
+ type: string
31013
+ enum: [business, platform]
31014
+ description: 'Caller ID the forward-leg callee sees on tel: forwards. business = this WhatsApp number; platform = a Zernio number (used when the number was brought by the customer and its caller ID is not verified for PSTN origination).'
31015
+ callerIdVerified: { type: boolean, description: 'True once the number completed caller-ID verification, making tel: forwards display the business number itself.' }
31007
31016
  '400': { description: Invalid request }
31008
31017
  '401': { $ref: '#/components/responses/Unauthorized' }
31009
31018
  '404': { description: Number not found }
@@ -31048,7 +31057,11 @@ paths:
31048
31057
  callingEnabled: { type: boolean }
31049
31058
  sipHostname: { type: string }
31050
31059
  forwardTo: { type: string }
31051
- '400': { description: Invalid request }
31060
+ callerIdMode:
31061
+ type: string
31062
+ enum: [business, platform]
31063
+ description: 'Caller ID the forward-leg callee sees on tel: forwards. business = this WhatsApp number; platform = a Zernio number (customer-brought number without verified caller ID).'
31064
+ '400': { description: 'Invalid request (including forwardTo set to the number itself)' }
31052
31065
  '401': { $ref: '#/components/responses/Unauthorized' }
31053
31066
  '404': { description: Phone number not found }
31054
31067
  '422': { description: "Not eligible to enable calling: not on usage-based billing, or the number's messaging limit is below Meta's ~2,000-daily-recipient threshold (TIER_250). Warm the number up to raise the limit." }
@@ -51,4 +51,14 @@ describe Zernio::EnableWhatsAppCallingLegacy200Response do
51
51
  end
52
52
  end
53
53
 
54
+ describe 'test attribute "caller_id_mode"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["business", "platform"])
58
+ # validator.allowable_values.each do |value|
59
+ # expect { instance.caller_id_mode = value }.not_to raise_error
60
+ # end
61
+ end
62
+ end
63
+
54
64
  end
@@ -81,4 +81,20 @@ describe Zernio::GetWhatsAppCalling200Response do
81
81
  end
82
82
  end
83
83
 
84
+ describe 'test attribute "caller_id_mode"' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["business", "platform"])
88
+ # validator.allowable_values.each do |value|
89
+ # expect { instance.caller_id_mode = value }.not_to raise_error
90
+ # end
91
+ end
92
+ end
93
+
94
+ describe 'test attribute "caller_id_verified"' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
97
+ end
98
+ end
99
+
84
100
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.619
4
+ version: 0.0.620
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -4886,7 +4886,7 @@ files:
4886
4886
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
4887
4887
  - spec/models/you_tube_video_retention_response_spec.rb
4888
4888
  - spec/spec_helper.rb
4889
- - zernio-sdk-0.0.619.gem
4889
+ - zernio-sdk-0.0.620.gem
4890
4890
  - zernio-sdk.gemspec
4891
4891
  homepage: https://openapi-generator.tech
4892
4892
  licenses:
Binary file