lob 6.0.4 → 6.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODE_SNIPPETS.md +38 -38
- data/Gemfile.lock +20 -20
- data/MIGRATION.md +3 -3
- data/README.md +3 -3
- data/__tests__/Integration/UsVerification.spec.rb +4 -4
- data/docs/DeliverabilityAnalysis.md +21 -9
- data/docs/MultipleComponents.md +5 -3
- data/docs/UsComponents.md +28 -26
- data/docs/UsVerification.md +7 -3
- data/docs/UsVerificationOrError.md +4 -2
- data/docs/UsVerifications.md +2 -2
- data/docs/UsVerificationsWritable.md +6 -4
- data/lib/openapi_client/models/deliverability_analysis.rb +151 -1
- data/lib/openapi_client/models/dpv_footnote.rb +6 -2
- data/lib/openapi_client/models/multiple_components.rb +18 -8
- data/lib/openapi_client/models/us_components.rb +28 -1
- data/lib/openapi_client/models/us_verification.rb +18 -8
- data/lib/openapi_client/models/us_verification_or_error.rb +15 -5
- data/lib/openapi_client/models/us_verifications.rb +4 -4
- data/lib/openapi_client/models/us_verifications_writable.rb +19 -9
- data/lib/openapi_client/version.rb +2 -2
- metadata +17 -17
@@ -13,9 +13,9 @@ OpenAPI Generator version: 5.2.1
|
|
13
13
|
require 'date'
|
14
14
|
require 'time'
|
15
15
|
|
16
|
-
module
|
16
|
+
module OpenapiClient
|
17
17
|
class UsVerificationsWritable
|
18
|
-
# The entire address in one string (e.g., \"
|
18
|
+
# The entire address in one string (e.g., \"2261 Market Street 94114\"). _Does not support a recipient and will error when other payload parameters are provided._
|
19
19
|
attr_accessor :address
|
20
20
|
|
21
21
|
# The intended recipient, typically a person's or firm's name.
|
@@ -38,6 +38,9 @@ module Lob
|
|
38
38
|
# Required if `city` and `state` are not passed in. If included, must be formatted as a US ZIP or ZIP+4 (e.g. `94107`, `941072282`, `94107-2282`).
|
39
39
|
attr_accessor :zip_code
|
40
40
|
|
41
|
+
# ID that is returned in the response body for the verification
|
42
|
+
attr_accessor :transient_id
|
43
|
+
|
41
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
45
|
def self.attribute_map
|
43
46
|
{
|
@@ -48,7 +51,8 @@ module Lob
|
|
48
51
|
:'urbanization' => :'urbanization',
|
49
52
|
:'city' => :'city',
|
50
53
|
:'state' => :'state',
|
51
|
-
:'zip_code' => :'zip_code'
|
54
|
+
:'zip_code' => :'zip_code',
|
55
|
+
:'transient_id' => :'transient_id'
|
52
56
|
}
|
53
57
|
end
|
54
58
|
|
@@ -67,7 +71,8 @@ module Lob
|
|
67
71
|
:'urbanization' => :'String',
|
68
72
|
:'city' => :'String',
|
69
73
|
:'state' => :'String',
|
70
|
-
:'zip_code' => :'String'
|
74
|
+
:'zip_code' => :'String',
|
75
|
+
:'transient_id' => :'String'
|
71
76
|
}
|
72
77
|
end
|
73
78
|
|
@@ -82,13 +87,13 @@ module Lob
|
|
82
87
|
# @param [Hash] attributes Model attributes in the form of hash
|
83
88
|
def initialize(attributes = {})
|
84
89
|
if (!attributes.is_a?(Hash))
|
85
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
90
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::UsVerificationsWritable` initialize method"
|
86
91
|
end
|
87
92
|
|
88
93
|
# check to see if the attribute exists and convert string to symbol for hash key
|
89
94
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
90
95
|
if (!self.class.attribute_map.key?(k.to_sym))
|
91
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
96
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::UsVerificationsWritable`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
92
97
|
end
|
93
98
|
h[k.to_sym] = v
|
94
99
|
}
|
@@ -124,6 +129,10 @@ module Lob
|
|
124
129
|
if attributes.key?(:'zip_code')
|
125
130
|
self.zip_code = attributes[:'zip_code']
|
126
131
|
end
|
132
|
+
|
133
|
+
if attributes.key?(:'transient_id')
|
134
|
+
self.transient_id = attributes[:'transient_id']
|
135
|
+
end
|
127
136
|
end
|
128
137
|
|
129
138
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -273,7 +282,8 @@ module Lob
|
|
273
282
|
urbanization == o.urbanization &&
|
274
283
|
city == o.city &&
|
275
284
|
state == o.state &&
|
276
|
-
zip_code == o.zip_code
|
285
|
+
zip_code == o.zip_code &&
|
286
|
+
transient_id == o.transient_id
|
277
287
|
end
|
278
288
|
|
279
289
|
# @see the `==` method
|
@@ -285,7 +295,7 @@ module Lob
|
|
285
295
|
# Calculates hash code according to all attributes.
|
286
296
|
# @return [Integer] Hash code
|
287
297
|
def hash
|
288
|
-
[address, recipient, primary_line, secondary_line, urbanization, city, state, zip_code].hash
|
298
|
+
[address, recipient, primary_line, secondary_line, urbanization, city, state, zip_code, transient_id].hash
|
289
299
|
end
|
290
300
|
|
291
301
|
|
@@ -365,7 +375,7 @@ module Lob
|
|
365
375
|
end
|
366
376
|
else # model
|
367
377
|
# models (e.g. Pet) or oneOf
|
368
|
-
klass =
|
378
|
+
klass = OpenapiClient.const_get(type)
|
369
379
|
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
370
380
|
end
|
371
381
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#Lob
|
3
3
|
|
4
|
-
#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors. <p> Looking for our [previous documentation](https://lob.github.io/legacy-docs/)?
|
4
|
+
#The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors. <p> Looking for our [previous documentation](https://lob.github.io/legacy-docs/)?
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 1.3.0
|
7
7
|
Contact: lob-openapi@lob.com
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.2.1
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module Lob
|
14
|
-
VERSION = '6.0.
|
14
|
+
VERSION = '6.0.6'
|
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.
|
4
|
+
version: 6.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-16 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/
|
500
|
-
- spec/api/
|
501
|
-
- spec/api/
|
502
|
-
- spec/api/letters_api_spec.rb
|
499
|
+
- spec/api/intl_autocompletions_api_spec.rb
|
500
|
+
- spec/api/identity_validation_api_spec.rb
|
501
|
+
- spec/api/campaigns_api_spec.rb
|
503
502
|
- spec/api/intl_verifications_api_spec.rb
|
504
|
-
- spec/api/
|
505
|
-
- spec/api/postcards_api_spec.rb
|
506
|
-
- spec/api/self_mailers_api_spec.rb
|
507
|
-
- spec/api/reverse_geocode_lookups_api_spec.rb
|
503
|
+
- spec/api/letters_api_spec.rb
|
508
504
|
- spec/api/card_orders_api_spec.rb
|
509
|
-
- spec/api/campaigns_api_spec.rb
|
510
505
|
- spec/api/template_versions_api_spec.rb
|
511
|
-
- spec/api/
|
506
|
+
- spec/api/cards_api_spec.rb
|
507
|
+
- spec/api/billing_groups_api_spec.rb
|
512
508
|
- spec/api/templates_api_spec.rb
|
513
|
-
- spec/api/
|
514
|
-
- spec/api/addresses_api_spec.rb
|
509
|
+
- spec/api/self_mailers_api_spec.rb
|
515
510
|
- spec/api/uploads_api_spec.rb
|
516
|
-
- spec/api/zip_lookups_api_spec.rb
|
517
|
-
- spec/api/cards_api_spec.rb
|
518
511
|
- spec/api/default_api_spec.rb
|
519
|
-
- spec/api/
|
512
|
+
- spec/api/creatives_api_spec.rb
|
513
|
+
- spec/api/us_autocompletions_api_spec.rb
|
514
|
+
- spec/api/reverse_geocode_lookups_api_spec.rb
|
520
515
|
- spec/api/checks_api_spec.rb
|
516
|
+
- spec/api/addresses_api_spec.rb
|
517
|
+
- spec/api/bank_accounts_api_spec.rb
|
518
|
+
- spec/api/postcards_api_spec.rb
|
519
|
+
- spec/api/us_verifications_api_spec.rb
|
520
|
+
- spec/api/zip_lookups_api_spec.rb
|
521
521
|
- spec/api_client_spec.rb
|
522
522
|
- spec/configuration_spec.rb
|
523
523
|
- spec/spec_helper.rb
|