late-sdk 0.0.1534 → 0.0.1535

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: d61792fd5ccb47aaaccaefd3b7b0fac81ccb85d53d5af2f5d67bf9edb8938912
4
- data.tar.gz: fd4c97a23cb8bd127c502195f9b74908f2efa49fe8838d2ea7152be6f123ea1b
3
+ metadata.gz: b7f3a769a9ecf4b9bf6ea57553199c2094008d3cb45880646705a54cfce0f7ed
4
+ data.tar.gz: 703fae33d7c61a80ce63beefa1af5e74a89cf6631e25f50eaada1020a22c1d77
5
5
  SHA512:
6
- metadata.gz: 921c031056a42ccc13ea2389a38add5fa2fdfc9dd8facac1ff517eb7b0aa604de47edaf599aaa3efb36f4bb506c6553ca24bcf6d479f2d06144be26add74c3e4
7
- data.tar.gz: c7ecbe1cced28934c2374090b1214beee2c510b9fba9bb21dbffb47a76d41f40b759b76ad83616d1ecbbf37ba03385be70fa1195a152a80543801f05b08abf29
6
+ metadata.gz: 8b9d1ebdbea07d7a5cd48297eb9a1051d570c4bdd62830d93d28cd5fa7f400862149d1eba8d9a1db7ffb9b12b845da62cb17e8ae1d4d8668905756c1c8a98f7e
7
+ data.tar.gz: 65e3be0466f33de976d7c6a40b1562271fa685a26a13c54778114edb06b3638ba024488d24384e0a9b00d853e6794c703ca75e6807ce3c615efa3a9512589d9e
@@ -12,6 +12,7 @@
12
12
  | **reuse_option_id** | **String** | Which reusable verification to use (GET reusable.options[].id). The unambiguous selection key. Omitted = the approved default. No match = 409. | [optional] |
13
13
  | **reuse_from** | **String** | Legacy fallback for `reuseOptionId`: the source phone number (GET reusable.options[].fromPhoneNumber). Ambiguous when a number labels two verifications, so prefer `reuseOptionId`. Omitted = the approved default. No match = 409. | [optional] |
14
14
  | **area_code** | **String** | Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here. | [optional] |
15
+ | **phone_number** | **String** | Exact number to order, in E.164, taken from GET /v1/phone-numbers/available. It is ordered as is or the request fails with 409 code phone_number_unavailable; another number is never substituted and a pre-order is never placed. Requires quantity 1 (or omitted). Omit to let the carrier pick a number in the area. | [optional] |
15
16
  | **pre_order** | **Boolean** | With areaCode: pre-order that area when it has no stock (an area listed in soldOutAreas with preOrderable true) instead of failing with AREA_CODE_UNAVAILABLE. The carrier sources a number in that area. Without areaCode it accepts the pre-order a previous submit offered with 409 code area_pre_order_available (a geographic-match country whose address area has no stock): resend the same body with preOrder true and the order is placed for that area. A whole pair with no stock is pre-ordered without either flag. | [optional] |
16
17
  | **end_user_first_name** | **String** | End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement. | [optional] |
17
18
  | **end_user_last_name** | **String** | End user's legal last name. Same condition as endUserFirstName. | [optional] |
@@ -33,6 +34,7 @@ instance = Zernio::SubmitPhoneNumberKycRequest.new(
33
34
  reuse_option_id: null,
34
35
  reuse_from: null,
35
36
  area_code: null,
37
+ phone_number: null,
36
38
  pre_order: null,
37
39
  end_user_first_name: null,
38
40
  end_user_last_name: null,
@@ -12,6 +12,7 @@
12
12
  | **reuse_option_id** | **String** | Which reusable verification to use (GET reusable.options[].id). The unambiguous selection key. Omitted = the approved default. No match = 409. | [optional] |
13
13
  | **reuse_from** | **String** | Legacy fallback for `reuseOptionId`: the source phone number (GET reusable.options[].fromPhoneNumber). Ambiguous when a number labels two verifications, so prefer `reuseOptionId`. Omitted = the approved default. No match = 409. | [optional] |
14
14
  | **area_code** | **String** | Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here. | [optional] |
15
+ | **phone_number** | **String** | Exact number to order, in E.164, taken from GET /v1/whatsapp/phone-numbers/available. It is ordered as is or the request fails with 409 code phone_number_unavailable; another number is never substituted and a pre-order is never placed. Requires quantity 1 (or omitted). Omit to let the carrier pick a number in the area. | [optional] |
15
16
  | **pre_order** | **Boolean** | With areaCode: pre-order that area when it has no stock (an area listed in soldOutAreas with preOrderable true) instead of failing with AREA_CODE_UNAVAILABLE. The carrier sources a number in that area. Without areaCode it accepts the pre-order a previous submit offered with 409 code area_pre_order_available (a geographic-match country whose address area has no stock): resend the same body with preOrder true and the order is placed for that area. A whole pair with no stock is pre-ordered without either flag. | [optional] |
16
17
  | **end_user_first_name** | **String** | End user's legal first name. Required when the country has an action/ID-verification (Onfido) requirement. | [optional] |
17
18
  | **end_user_last_name** | **String** | End user's legal last name. Same condition as endUserFirstName. | [optional] |
@@ -33,6 +34,7 @@ instance = Zernio::SubmitWhatsAppNumberKycRequest.new(
33
34
  reuse_option_id: null,
34
35
  reuse_from: null,
35
36
  area_code: null,
37
+ phone_number: null,
36
38
  pre_order: null,
37
39
  end_user_first_name: null,
38
40
  end_user_last_name: null,
@@ -37,6 +37,9 @@ module Zernio
37
37
  # Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
38
38
  attr_accessor :area_code
39
39
 
40
+ # Exact number to order, in E.164, taken from GET /v1/phone-numbers/available. It is ordered as is or the request fails with 409 code phone_number_unavailable; another number is never substituted and a pre-order is never placed. Requires quantity 1 (or omitted). Omit to let the carrier pick a number in the area.
41
+ attr_accessor :phone_number
42
+
40
43
  # With areaCode: pre-order that area when it has no stock (an area listed in soldOutAreas with preOrderable true) instead of failing with AREA_CODE_UNAVAILABLE. The carrier sources a number in that area. Without areaCode it accepts the pre-order a previous submit offered with 409 code area_pre_order_available (a geographic-match country whose address area has no stock): resend the same body with preOrder true and the order is placed for that area. A whole pair with no stock is pre-ordered without either flag.
41
44
  attr_accessor :pre_order
42
45
 
@@ -65,6 +68,7 @@ module Zernio
65
68
  :'reuse_option_id' => :'reuseOptionId',
66
69
  :'reuse_from' => :'reuseFrom',
67
70
  :'area_code' => :'areaCode',
71
+ :'phone_number' => :'phoneNumber',
68
72
  :'pre_order' => :'preOrder',
69
73
  :'end_user_first_name' => :'endUserFirstName',
70
74
  :'end_user_last_name' => :'endUserLastName',
@@ -95,6 +99,7 @@ module Zernio
95
99
  :'reuse_option_id' => :'String',
96
100
  :'reuse_from' => :'String',
97
101
  :'area_code' => :'String',
102
+ :'phone_number' => :'String',
98
103
  :'pre_order' => :'Boolean',
99
104
  :'end_user_first_name' => :'String',
100
105
  :'end_user_last_name' => :'String',
@@ -164,6 +169,10 @@ module Zernio
164
169
  self.area_code = attributes[:'area_code']
165
170
  end
166
171
 
172
+ if attributes.key?(:'phone_number')
173
+ self.phone_number = attributes[:'phone_number']
174
+ end
175
+
167
176
  if attributes.key?(:'pre_order')
168
177
  self.pre_order = attributes[:'pre_order']
169
178
  end
@@ -219,6 +228,11 @@ module Zernio
219
228
  invalid_properties.push("invalid value for \"area_code\", must conform to the pattern #{pattern}.")
220
229
  end
221
230
 
231
+ pattern = Regexp.new(/^\+[1-9]\d{6,14}$/)
232
+ if !@phone_number.nil? && @phone_number !~ pattern
233
+ invalid_properties.push("invalid value for \"phone_number\", must conform to the pattern #{pattern}.")
234
+ end
235
+
222
236
  invalid_properties
223
237
  end
224
238
 
@@ -231,6 +245,7 @@ module Zernio
231
245
  return false if !@quantity.nil? && @quantity > 5
232
246
  return false if !@quantity.nil? && @quantity < 1
233
247
  return false if !@area_code.nil? && @area_code !~ Regexp.new(/^\d{1,4}$/)
248
+ return false if !@phone_number.nil? && @phone_number !~ Regexp.new(/^\+[1-9]\d{6,14}$/)
234
249
  true
235
250
  end
236
251
 
@@ -287,6 +302,21 @@ module Zernio
287
302
  @area_code = area_code
288
303
  end
289
304
 
305
+ # Custom attribute writer method with validation
306
+ # @param [Object] phone_number Value to be assigned
307
+ def phone_number=(phone_number)
308
+ if phone_number.nil?
309
+ fail ArgumentError, 'phone_number cannot be nil'
310
+ end
311
+
312
+ pattern = Regexp.new(/^\+[1-9]\d{6,14}$/)
313
+ if phone_number !~ pattern
314
+ fail ArgumentError, "invalid value for \"phone_number\", must conform to the pattern #{pattern}."
315
+ end
316
+
317
+ @phone_number = phone_number
318
+ end
319
+
290
320
  # Checks equality by comparing each attribute.
291
321
  # @param [Object] Object to be compared
292
322
  def ==(o)
@@ -300,6 +330,7 @@ module Zernio
300
330
  reuse_option_id == o.reuse_option_id &&
301
331
  reuse_from == o.reuse_from &&
302
332
  area_code == o.area_code &&
333
+ phone_number == o.phone_number &&
303
334
  pre_order == o.pre_order &&
304
335
  end_user_first_name == o.end_user_first_name &&
305
336
  end_user_last_name == o.end_user_last_name &&
@@ -317,7 +348,7 @@ module Zernio
317
348
  # Calculates hash code according to all attributes.
318
349
  # @return [Integer] Hash code
319
350
  def hash
320
- [profile_id, country, submission_id, quantity, reuse, reuse_option_id, reuse_from, area_code, pre_order, end_user_first_name, end_user_last_name, values, documents, address].hash
351
+ [profile_id, country, submission_id, quantity, reuse, reuse_option_id, reuse_from, area_code, phone_number, pre_order, end_user_first_name, end_user_last_name, values, documents, address].hash
321
352
  end
322
353
 
323
354
  # Builds the object from hash
@@ -37,6 +37,9 @@ module Zernio
37
37
  # Area code (NDC) the number must be in. Hard constraint: an empty area pool fails with 409 code AREA_CODE_UNAVAILABLE instead of ordering from another area. Omit for any area. Options come from GET /v1/phone-numbers/availability (areaOptions); the purchase 202 kycUrl echoes the areaCode picked at purchase time so it can be passed here.
38
38
  attr_accessor :area_code
39
39
 
40
+ # Exact number to order, in E.164, taken from GET /v1/whatsapp/phone-numbers/available. It is ordered as is or the request fails with 409 code phone_number_unavailable; another number is never substituted and a pre-order is never placed. Requires quantity 1 (or omitted). Omit to let the carrier pick a number in the area.
41
+ attr_accessor :phone_number
42
+
40
43
  # With areaCode: pre-order that area when it has no stock (an area listed in soldOutAreas with preOrderable true) instead of failing with AREA_CODE_UNAVAILABLE. The carrier sources a number in that area. Without areaCode it accepts the pre-order a previous submit offered with 409 code area_pre_order_available (a geographic-match country whose address area has no stock): resend the same body with preOrder true and the order is placed for that area. A whole pair with no stock is pre-ordered without either flag.
41
44
  attr_accessor :pre_order
42
45
 
@@ -65,6 +68,7 @@ module Zernio
65
68
  :'reuse_option_id' => :'reuseOptionId',
66
69
  :'reuse_from' => :'reuseFrom',
67
70
  :'area_code' => :'areaCode',
71
+ :'phone_number' => :'phoneNumber',
68
72
  :'pre_order' => :'preOrder',
69
73
  :'end_user_first_name' => :'endUserFirstName',
70
74
  :'end_user_last_name' => :'endUserLastName',
@@ -95,6 +99,7 @@ module Zernio
95
99
  :'reuse_option_id' => :'String',
96
100
  :'reuse_from' => :'String',
97
101
  :'area_code' => :'String',
102
+ :'phone_number' => :'String',
98
103
  :'pre_order' => :'Boolean',
99
104
  :'end_user_first_name' => :'String',
100
105
  :'end_user_last_name' => :'String',
@@ -164,6 +169,10 @@ module Zernio
164
169
  self.area_code = attributes[:'area_code']
165
170
  end
166
171
 
172
+ if attributes.key?(:'phone_number')
173
+ self.phone_number = attributes[:'phone_number']
174
+ end
175
+
167
176
  if attributes.key?(:'pre_order')
168
177
  self.pre_order = attributes[:'pre_order']
169
178
  end
@@ -219,6 +228,11 @@ module Zernio
219
228
  invalid_properties.push("invalid value for \"area_code\", must conform to the pattern #{pattern}.")
220
229
  end
221
230
 
231
+ pattern = Regexp.new(/^\+[1-9]\d{6,14}$/)
232
+ if !@phone_number.nil? && @phone_number !~ pattern
233
+ invalid_properties.push("invalid value for \"phone_number\", must conform to the pattern #{pattern}.")
234
+ end
235
+
222
236
  invalid_properties
223
237
  end
224
238
 
@@ -231,6 +245,7 @@ module Zernio
231
245
  return false if !@quantity.nil? && @quantity > 5
232
246
  return false if !@quantity.nil? && @quantity < 1
233
247
  return false if !@area_code.nil? && @area_code !~ Regexp.new(/^\d{1,4}$/)
248
+ return false if !@phone_number.nil? && @phone_number !~ Regexp.new(/^\+[1-9]\d{6,14}$/)
234
249
  true
235
250
  end
236
251
 
@@ -287,6 +302,21 @@ module Zernio
287
302
  @area_code = area_code
288
303
  end
289
304
 
305
+ # Custom attribute writer method with validation
306
+ # @param [Object] phone_number Value to be assigned
307
+ def phone_number=(phone_number)
308
+ if phone_number.nil?
309
+ fail ArgumentError, 'phone_number cannot be nil'
310
+ end
311
+
312
+ pattern = Regexp.new(/^\+[1-9]\d{6,14}$/)
313
+ if phone_number !~ pattern
314
+ fail ArgumentError, "invalid value for \"phone_number\", must conform to the pattern #{pattern}."
315
+ end
316
+
317
+ @phone_number = phone_number
318
+ end
319
+
290
320
  # Checks equality by comparing each attribute.
291
321
  # @param [Object] Object to be compared
292
322
  def ==(o)
@@ -300,6 +330,7 @@ module Zernio
300
330
  reuse_option_id == o.reuse_option_id &&
301
331
  reuse_from == o.reuse_from &&
302
332
  area_code == o.area_code &&
333
+ phone_number == o.phone_number &&
303
334
  pre_order == o.pre_order &&
304
335
  end_user_first_name == o.end_user_first_name &&
305
336
  end_user_last_name == o.end_user_last_name &&
@@ -317,7 +348,7 @@ module Zernio
317
348
  # Calculates hash code according to all attributes.
318
349
  # @return [Integer] Hash code
319
350
  def hash
320
- [profile_id, country, submission_id, quantity, reuse, reuse_option_id, reuse_from, area_code, pre_order, end_user_first_name, end_user_last_name, values, documents, address].hash
351
+ [profile_id, country, submission_id, quantity, reuse, reuse_option_id, reuse_from, area_code, phone_number, pre_order, end_user_first_name, end_user_last_name, values, documents, address].hash
321
352
  end
322
353
 
323
354
  # 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.1534'
14
+ VERSION = '0.0.1535'
15
15
  end