lob 6.0.3 → 6.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b50371c1bcf1b3ea5fae887fba7233213f9c0659d27f540b4c6a34d9610dae3b
4
- data.tar.gz: 9045098c781aca68720cc11ef3ed7c20842fa650f15486c3399f3b42a6b67265
3
+ metadata.gz: b1f41d96683a73f2c8ba2c864a3c5158d5e73d86ae0e49e1bdfe5a45663caeeb
4
+ data.tar.gz: 8d138bf0217b9e1f8af682128b8147e382df44e6261ffd70c55bff12a4d40a93
5
5
  SHA512:
6
- metadata.gz: 5427569145b345ee0b77d126642484f74c3c982155641af4ab9d9cec033f9a80cd14fae11ed5c3d12d77fd536f7d1bb7636cd45ff50b5287cc7ae09d17792b25
7
- data.tar.gz: 64d10bd1e7bb6bb2888b97d7de7cd4fd79c44167c3964826e7ea969d701f61be2cb202016133cba185e9aa4abd8032f57b8870e3f727b1820462bcbfc460756b
6
+ metadata.gz: 4d62ef3ee728cd8fffe2c674b067456f8244a23cb89b22c3b92c9c39d3aeb33794adbffd9272fec09c40cc1133ee252b77015d11f5c77e8d139e84f958d350fe
7
+ data.tar.gz: 30dfd403a0ba3e8c3a8521451cea68b3239fdee157da568eebca7e2a42c5a1741a1c7c5250dc98c39cb1156c701b701e07b7673b692db5f7164ae39c750f577a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lob (6.0.3)
4
+ lob (6.0.4)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -26,7 +26,7 @@ GEM
26
26
  pry-byebug (3.10.1)
27
27
  byebug (~> 11.0)
28
28
  pry (>= 0.13, < 0.15)
29
- psych (5.1.1)
29
+ psych (5.1.1.1)
30
30
  stringio
31
31
  racc (1.7.1)
32
32
  rainbow (3.1.1)
@@ -69,4 +69,4 @@ DEPENDENCIES
69
69
  rubocop (~> 0.66.0)
70
70
 
71
71
  BUNDLED WITH
72
- 2.4.20
72
+ 2.4.21
@@ -257,7 +257,7 @@ module Lob
257
257
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
258
258
  end
259
259
 
260
- pattern = Regexp.new(/^https:\/\/lob-assets\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
260
+ pattern = Regexp.new(/^https:\/\/lob-assets.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(''|_signature)(.pdf|_thumb_[a-z]+_[0-9]+.png|.png)\?(version=[a-z0-9]*&)expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+/)
261
261
  if !@signature_url.nil? && @signature_url !~ pattern
262
262
  invalid_properties.push("invalid value for \"signature_url\", must conform to the pattern #{pattern}.")
263
263
  end
@@ -293,7 +293,7 @@ module Lob
293
293
  return false if @signatory.to_s.length > 30
294
294
  return false if @id.nil?
295
295
  return false if @id !~ Regexp.new(/^bank_[a-zA-Z0-9]+$/)
296
- return false if !@signature_url.nil? && @signature_url !~ Regexp.new(/^https:\/\/lob-assets\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
296
+ return false if !@signature_url.nil? && @signature_url !~ Regexp.new(/^https:\/\/lob-assets.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(''|_signature)(.pdf|_thumb_[a-z]+_[0-9]+.png|.png)\?(version=[a-z0-9]*&)expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+/)
297
297
  return false if @date_created.nil?
298
298
  return false if @date_modified.nil?
299
299
  return false if @object.nil?
@@ -392,7 +392,7 @@ module Lob
392
392
  # Custom attribute writer method with validation
393
393
  # @param [Object] signature_url Value to be assigned
394
394
  def signature_url=(signature_url)
395
- pattern = Regexp.new(/^https:\/\/lob-assets\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
395
+ pattern = Regexp.new(/^https:\/\/lob-assets.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(''|_signature)(.pdf|_thumb_[a-z]+_[0-9]+.png|.png)\?(version=[a-z0-9]*&)expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+/)
396
396
  if !signature_url.nil? && signature_url !~ pattern
397
397
  fail ArgumentError, "invalid value for \"signature_url\", must conform to the pattern #{pattern}."
398
398
  end
@@ -402,7 +402,7 @@ module Lob
402
402
  invalid_properties.push('invalid value for "url", url cannot be nil.')
403
403
  end
404
404
 
405
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
405
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
406
406
  if @url !~ pattern
407
407
  invalid_properties.push("invalid value for \"url\", must conform to the pattern #{pattern}.")
408
408
  end
@@ -447,7 +447,7 @@ module Lob
447
447
  return false if !@check_bottom_template_version_id.nil? && @check_bottom_template_version_id !~ Regexp.new(/^vrsn_[a-zA-Z0-9]+$/)
448
448
  return false if !@attachment_template_version_id.nil? && @attachment_template_version_id !~ Regexp.new(/^vrsn_[a-zA-Z0-9]+$/)
449
449
  return false if @url.nil?
450
- return false if @url !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
450
+ return false if @url !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
451
451
  return false if @carrier.nil?
452
452
  carrier_validator = EnumAttributeValidator.new('String', ["USPS"])
453
453
  return false unless carrier_validator.valid?(@carrier)
@@ -605,7 +605,7 @@ module Lob
605
605
  fail ArgumentError, 'url cannot be nil'
606
606
  end
607
607
 
608
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
608
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
609
609
  if url !~ pattern
610
610
  fail ArgumentError, "invalid value for \"url\", must conform to the pattern #{pattern}."
611
611
  end
@@ -401,7 +401,7 @@ module Lob
401
401
  invalid_properties.push("invalid value for \"template_version_id\", must conform to the pattern #{pattern}.")
402
402
  end
403
403
 
404
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
404
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
405
405
  if !@url.nil? && @url !~ pattern
406
406
  invalid_properties.push("invalid value for \"url\", must conform to the pattern #{pattern}.")
407
407
  end
@@ -434,7 +434,7 @@ module Lob
434
434
  return false if @id !~ Regexp.new(/^ltr_[a-zA-Z0-9]+$/)
435
435
  return false if !@template_id.nil? && @template_id !~ Regexp.new(/^tmpl_[a-zA-Z0-9]+$/)
436
436
  return false if !@template_version_id.nil? && @template_version_id !~ Regexp.new(/^vrsn_[a-zA-Z0-9]+$/)
437
- return false if !@url.nil? && @url !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
437
+ return false if !@url.nil? && @url !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
438
438
  return false if @object.nil?
439
439
  object_validator = EnumAttributeValidator.new('String', ["letter"])
440
440
  return false unless object_validator.valid?(@object)
@@ -495,7 +495,7 @@ module Lob
495
495
  # Custom attribute writer method with validation
496
496
  # @param [Object] url Value to be assigned
497
497
  def url=(url)
498
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
498
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
499
499
  if !url.nil? && url !~ pattern
500
500
  fail ArgumentError, "invalid value for \"url\", must conform to the pattern #{pattern}."
501
501
  end
@@ -334,7 +334,7 @@ module Lob
334
334
  invalid_properties.push('invalid value for "url", url cannot be nil.')
335
335
  end
336
336
 
337
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
337
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
338
338
  if @url !~ pattern
339
339
  invalid_properties.push("invalid value for \"url\", must conform to the pattern #{pattern}.")
340
340
  end
@@ -360,7 +360,7 @@ module Lob
360
360
  object_validator = EnumAttributeValidator.new('String', ["postcard"])
361
361
  return false unless object_validator.valid?(@object)
362
362
  return false if @url.nil?
363
- return false if @url !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
363
+ return false if @url !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
364
364
  return false if !@description.nil? && @description.to_s.length > 255
365
365
  true
366
366
  end
@@ -451,7 +451,7 @@ module Lob
451
451
  fail ArgumentError, 'url cannot be nil'
452
452
  end
453
453
 
454
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
454
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
455
455
  if url !~ pattern
456
456
  fail ArgumentError, "invalid value for \"url\", must conform to the pattern #{pattern}."
457
457
  end
@@ -284,7 +284,7 @@ module Lob
284
284
  invalid_properties.push('invalid value for "url", url cannot be nil.')
285
285
  end
286
286
 
287
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
287
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
288
288
  if @url !~ pattern
289
289
  invalid_properties.push("invalid value for \"url\", must conform to the pattern #{pattern}.")
290
290
  end
@@ -305,7 +305,7 @@ module Lob
305
305
  object_validator = EnumAttributeValidator.new('String', ["self_mailer"])
306
306
  return false unless object_validator.valid?(@object)
307
307
  return false if @url.nil?
308
- return false if @url !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
308
+ return false if @url !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
309
309
  true
310
310
  end
311
311
 
@@ -407,7 +407,7 @@ module Lob
407
407
  fail ArgumentError, 'url cannot be nil'
408
408
  end
409
409
 
410
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
410
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
411
411
  if url !~ pattern
412
412
  fail ArgumentError, "invalid value for \"url\", must conform to the pattern #{pattern}."
413
413
  end
@@ -85,17 +85,17 @@ module Lob
85
85
  # @return Array for valid properties with the reasons
86
86
  def list_invalid_properties
87
87
  invalid_properties = Array.new
88
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
88
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
89
89
  if !@small.nil? && @small !~ pattern
90
90
  invalid_properties.push("invalid value for \"small\", must conform to the pattern #{pattern}.")
91
91
  end
92
92
 
93
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
93
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
94
94
  if !@medium.nil? && @medium !~ pattern
95
95
  invalid_properties.push("invalid value for \"medium\", must conform to the pattern #{pattern}.")
96
96
  end
97
97
 
98
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
98
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
99
99
  if !@large.nil? && @large !~ pattern
100
100
  invalid_properties.push("invalid value for \"large\", must conform to the pattern #{pattern}.")
101
101
  end
@@ -106,16 +106,16 @@ module Lob
106
106
  # Check to see if the all the properties in the model are valid
107
107
  # @return true if the model is valid
108
108
  def valid?
109
- return false if !@small.nil? && @small !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
110
- return false if !@medium.nil? && @medium !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
111
- return false if !@large.nil? && @large !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
109
+ return false if !@small.nil? && @small !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
110
+ return false if !@medium.nil? && @medium !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
111
+ return false if !@large.nil? && @large !~ Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
112
112
  true
113
113
  end
114
114
 
115
115
  # Custom attribute writer method with validation
116
116
  # @param [Object] small Value to be assigned
117
117
  def small=(small)
118
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
118
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
119
119
  if !small.nil? && small !~ pattern
120
120
  fail ArgumentError, "invalid value for \"small\", must conform to the pattern #{pattern}."
121
121
  end
@@ -126,7 +126,7 @@ module Lob
126
126
  # Custom attribute writer method with validation
127
127
  # @param [Object] medium Value to be assigned
128
128
  def medium=(medium)
129
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
129
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
130
130
  if !medium.nil? && medium !~ pattern
131
131
  fail ArgumentError, "invalid value for \"medium\", must conform to the pattern #{pattern}."
132
132
  end
@@ -137,7 +137,7 @@ module Lob
137
137
  # Custom attribute writer method with validation
138
138
  # @param [Object] large Value to be assigned
139
139
  def large=(large)
140
- pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9-_]+$/)
140
+ pattern = Regexp.new(/^https:\/\/(lob-assets|lob-assets-staging)\.com\/(letters|postcards|bank-accounts|checks|self-mailers|cards)\/[a-z]{3,4}_[a-z0-9]{15,16}(\.pdf|_thumb_[a-z]+_[0-9]+\.png)\?(version=[a-z0-9-]*&)?expires=[0-9]{10}&signature=[a-zA-Z0-9_-]+$/)
141
141
  if !large.nil? && large !~ pattern
142
142
  fail ArgumentError, "invalid value for \"large\", must conform to the pattern #{pattern}."
143
143
  end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.2.1
11
11
  =end
12
12
 
13
13
  module Lob
14
- VERSION = '6.0.3'
14
+ VERSION = '6.0.4'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lob
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.3
4
+ version: 6.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-13 00:00:00.000000000 Z
11
+ date: 2023-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -496,28 +496,28 @@ signing_key:
496
496
  specification_version: 4
497
497
  summary: Ruby wrapper for Lob.com API with ActiveRecord-style syntax
498
498
  test_files:
499
- - spec/api/card_orders_api_spec.rb
500
- - spec/api/cards_api_spec.rb
499
+ - spec/api/us_autocompletions_api_spec.rb
500
+ - spec/api/bank_accounts_api_spec.rb
501
501
  - spec/api/creatives_api_spec.rb
502
- - spec/api/uploads_api_spec.rb
503
502
  - spec/api/letters_api_spec.rb
504
- - spec/api/reverse_geocode_lookups_api_spec.rb
505
- - spec/api/checks_api_spec.rb
506
- - spec/api/identity_validation_api_spec.rb
503
+ - spec/api/intl_verifications_api_spec.rb
504
+ - spec/api/billing_groups_api_spec.rb
507
505
  - spec/api/postcards_api_spec.rb
506
+ - spec/api/self_mailers_api_spec.rb
507
+ - spec/api/reverse_geocode_lookups_api_spec.rb
508
+ - spec/api/card_orders_api_spec.rb
509
+ - spec/api/campaigns_api_spec.rb
510
+ - spec/api/template_versions_api_spec.rb
511
+ - spec/api/us_verifications_api_spec.rb
508
512
  - spec/api/templates_api_spec.rb
509
- - spec/api/zip_lookups_api_spec.rb
510
513
  - spec/api/intl_autocompletions_api_spec.rb
511
- - spec/api/intl_verifications_api_spec.rb
512
- - spec/api/self_mailers_api_spec.rb
513
514
  - spec/api/addresses_api_spec.rb
514
- - spec/api/us_autocompletions_api_spec.rb
515
- - spec/api/us_verifications_api_spec.rb
516
- - spec/api/bank_accounts_api_spec.rb
517
- - spec/api/template_versions_api_spec.rb
515
+ - spec/api/uploads_api_spec.rb
516
+ - spec/api/zip_lookups_api_spec.rb
517
+ - spec/api/cards_api_spec.rb
518
518
  - spec/api/default_api_spec.rb
519
- - spec/api/campaigns_api_spec.rb
520
- - spec/api/billing_groups_api_spec.rb
519
+ - spec/api/identity_validation_api_spec.rb
520
+ - spec/api/checks_api_spec.rb
521
521
  - spec/api_client_spec.rb
522
522
  - spec/configuration_spec.rb
523
523
  - spec/spec_helper.rb