lob 6.0.2 → 6.0.3
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 +4 -4
- data/Gemfile.lock +15 -13
- data/lib/openapi_client/api/buckslips_api.rb +3 -0
- data/lib/openapi_client/api/letters_api.rb +3 -0
- data/lib/openapi_client/api/uploads_api.rb +80 -80
- data/lib/openapi_client/models/bank_account.rb +5 -5
- data/lib/openapi_client/models/check.rb +5 -5
- data/lib/openapi_client/models/chk_use_type.rb +0 -0
- data/lib/openapi_client/models/letter.rb +6 -6
- data/lib/openapi_client/models/ltr_use_type.rb +0 -0
- data/lib/openapi_client/models/postcard.rb +5 -5
- data/lib/openapi_client/models/psc_use_type.rb +0 -0
- data/lib/openapi_client/models/self_mailer.rb +5 -5
- data/lib/openapi_client/models/sfm_use_type.rb +0 -0
- data/lib/openapi_client/models/thumbnail.rb +10 -10
- data/lib/openapi_client/models/tracking_event_normal.rb +3 -3
- data/lib/openapi_client/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b50371c1bcf1b3ea5fae887fba7233213f9c0659d27f540b4c6a34d9610dae3b
|
4
|
+
data.tar.gz: 9045098c781aca68720cc11ef3ed7c20842fa650f15486c3399f3b42a6b67265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5427569145b345ee0b77d126642484f74c3c982155641af4ab9d9cec033f9a80cd14fae11ed5c3d12d77fd536f7d1bb7636cd45ff50b5287cc7ae09d17792b25
|
7
|
+
data.tar.gz: 64d10bd1e7bb6bb2888b97d7de7cd4fd79c44167c3964826e7ea969d701f61be2cb202016133cba185e9aa4abd8032f57b8870e3f727b1820462bcbfc460756b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lob (6.0.
|
4
|
+
lob (6.0.3)
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -13,35 +13,37 @@ GEM
|
|
13
13
|
diff-lcs (1.5.0)
|
14
14
|
ethon (0.16.0)
|
15
15
|
ffi (>= 1.15.0)
|
16
|
-
ffi (1.
|
17
|
-
jaro_winkler (1.5.
|
16
|
+
ffi (1.16.3)
|
17
|
+
jaro_winkler (1.5.6)
|
18
18
|
method_source (1.0.0)
|
19
|
-
parallel (1.
|
20
|
-
parser (3.2.
|
19
|
+
parallel (1.23.0)
|
20
|
+
parser (3.2.2.4)
|
21
21
|
ast (~> 2.4.1)
|
22
|
+
racc
|
22
23
|
pry (0.14.2)
|
23
24
|
coderay (~> 1.1)
|
24
25
|
method_source (~> 1.0)
|
25
26
|
pry-byebug (3.10.1)
|
26
27
|
byebug (~> 11.0)
|
27
28
|
pry (>= 0.13, < 0.15)
|
28
|
-
psych (5.1.
|
29
|
+
psych (5.1.1)
|
29
30
|
stringio
|
31
|
+
racc (1.7.1)
|
30
32
|
rainbow (3.1.1)
|
31
33
|
rake (13.0.6)
|
32
34
|
rspec (3.12.0)
|
33
35
|
rspec-core (~> 3.12.0)
|
34
36
|
rspec-expectations (~> 3.12.0)
|
35
37
|
rspec-mocks (~> 3.12.0)
|
36
|
-
rspec-core (3.12.
|
38
|
+
rspec-core (3.12.2)
|
37
39
|
rspec-support (~> 3.12.0)
|
38
|
-
rspec-expectations (3.12.
|
40
|
+
rspec-expectations (3.12.3)
|
39
41
|
diff-lcs (>= 1.2.0, < 2.0)
|
40
42
|
rspec-support (~> 3.12.0)
|
41
|
-
rspec-mocks (3.12.
|
43
|
+
rspec-mocks (3.12.6)
|
42
44
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
45
|
rspec-support (~> 3.12.0)
|
44
|
-
rspec-support (3.12.
|
46
|
+
rspec-support (3.12.1)
|
45
47
|
rubocop (0.66.0)
|
46
48
|
jaro_winkler (~> 1.5.1)
|
47
49
|
parallel (~> 1.10)
|
@@ -50,8 +52,8 @@ GEM
|
|
50
52
|
rainbow (>= 2.2.2, < 4.0)
|
51
53
|
ruby-progressbar (~> 1.7)
|
52
54
|
unicode-display_width (>= 1.4.0, < 1.6)
|
53
|
-
ruby-progressbar (1.
|
54
|
-
stringio (3.0.
|
55
|
+
ruby-progressbar (1.13.0)
|
56
|
+
stringio (3.0.8)
|
55
57
|
typhoeus (1.4.0)
|
56
58
|
ethon (>= 0.9.0)
|
57
59
|
unicode-display_width (1.5.0)
|
@@ -67,4 +69,4 @@ DEPENDENCIES
|
|
67
69
|
rubocop (~> 0.66.0)
|
68
70
|
|
69
71
|
BUNDLED WITH
|
70
|
-
2.4.
|
72
|
+
2.4.20
|
@@ -23,6 +23,7 @@ module Lob
|
|
23
23
|
# Creates a new buckslip given information
|
24
24
|
# @param buckslip_editable [BuckslipEditable]
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [Object] :front An optional file upload as either a byte array or file type.
|
26
27
|
# @return [Buckslip]
|
27
28
|
def create(buckslip_editable, opts = {})
|
28
29
|
data, _status_code, _headers = buckslip_create_with_http_info(buckslip_editable, opts)
|
@@ -33,6 +34,7 @@ module Lob
|
|
33
34
|
# Creates a new buckslip given information
|
34
35
|
# @param buckslip_editable [BuckslipEditable]
|
35
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [Object] :front An optional file upload as either a byte array or file type.
|
36
38
|
# @return [Array<(Buckslip, Integer, Hash)>] Buckslip data, response status code and response headers
|
37
39
|
def buckslip_create_with_http_info(buckslip_editable, opts = {})
|
38
40
|
if @api_client.config.debugging
|
@@ -47,6 +49,7 @@ module Lob
|
|
47
49
|
|
48
50
|
# query parameters
|
49
51
|
query_params = opts[:query_params] || {}
|
52
|
+
query_params[:'front'] = opts[:'front'] if !opts[:'front'].nil?
|
50
53
|
|
51
54
|
# header parameters
|
52
55
|
header_params = opts[:header_params] || {}
|
@@ -92,6 +92,7 @@ module Lob
|
|
92
92
|
# @param letter_editable [LetterEditable]
|
93
93
|
# @param [Hash] opts the optional parameters
|
94
94
|
# @option opts [String] :idempotency_key A string of no longer than 256 characters that uniquely identifies this resource. For more help integrating idempotency keys, refer to our [implementation guide](https://www.lob.com/guides#idempotent_request).
|
95
|
+
# @option opts [Object] :file An optional file upload as either a byte array or file type.
|
95
96
|
# @return [Letter]
|
96
97
|
def create(letter_editable, opts = {})
|
97
98
|
data, _status_code, _headers = letter_create_with_http_info(letter_editable, opts)
|
@@ -103,6 +104,7 @@ module Lob
|
|
103
104
|
# @param letter_editable [LetterEditable]
|
104
105
|
# @param [Hash] opts the optional parameters
|
105
106
|
# @option opts [String] :idempotency_key A string of no longer than 256 characters that uniquely identifies this resource. For more help integrating idempotency keys, refer to our [implementation guide](https://www.lob.com/guides#idempotent_request).
|
107
|
+
# @option opts [Object] :file An optional file upload as either a byte array or file type.
|
106
108
|
# @return [Array<(Letter, Integer, Hash)>] Letter data, response status code and response headers
|
107
109
|
def letter_create_with_http_info(letter_editable, opts = {})
|
108
110
|
if @api_client.config.debugging
|
@@ -121,6 +123,7 @@ module Lob
|
|
121
123
|
|
122
124
|
# query parameters
|
123
125
|
query_params = opts[:query_params] || {}
|
126
|
+
query_params[:'file'] = opts[:'file'] if !opts[:'file'].nil?
|
124
127
|
|
125
128
|
# header parameters
|
126
129
|
header_params = opts[:header_params] || {}
|
@@ -98,17 +98,85 @@ module Lob
|
|
98
98
|
return data, status_code, headers
|
99
99
|
end
|
100
100
|
|
101
|
-
#
|
101
|
+
# get
|
102
|
+
# Retrieves the details of an existing upload. You need only supply the unique upload identifier that was returned upon upload creation.
|
103
|
+
# @param upl_id [String] id of the upload
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @return [Upload]
|
106
|
+
def get(upl_id, opts = {})
|
107
|
+
data, _status_code, _headers = get_with_http_info(upl_id, opts)
|
108
|
+
data
|
109
|
+
end
|
110
|
+
|
111
|
+
# get
|
112
|
+
# Retrieves the details of an existing upload. You need only supply the unique upload identifier that was returned upon upload creation.
|
113
|
+
# @param upl_id [String] id of the upload
|
114
|
+
# @param [Hash] opts the optional parameters
|
115
|
+
# @return [Array<(Upload, Integer, Hash)>] Upload data, response status code and response headers
|
116
|
+
def get_with_http_info(upl_id, opts = {})
|
117
|
+
if @api_client.config.debugging
|
118
|
+
@api_client.config.logger.debug 'Calling API: UploadsApi.get ...'
|
119
|
+
end
|
120
|
+
# verify the required parameter 'upl_id' is set
|
121
|
+
if @api_client.config.client_side_validation && upl_id.nil?
|
122
|
+
fail ArgumentError, "Missing the required parameter 'upl_id' when calling UploadsApi.get"
|
123
|
+
end
|
124
|
+
pattern = Regexp.new(/^upl_[a-zA-Z0-9]+$/)
|
125
|
+
if @api_client.config.client_side_validation && upl_id !~ pattern
|
126
|
+
fail ArgumentError, "invalid value for 'upl_id' when calling UploadsApi.get, must conform to the pattern #{pattern}."
|
127
|
+
end
|
128
|
+
|
129
|
+
# resource path
|
130
|
+
local_var_path = '/uploads/{upl_id}'.sub('{' + 'upl_id' + '}', CGI.escape(upl_id.to_s))
|
131
|
+
|
132
|
+
# query parameters
|
133
|
+
query_params = opts[:query_params] || {}
|
134
|
+
|
135
|
+
# header parameters
|
136
|
+
header_params = opts[:header_params] || {}
|
137
|
+
# HTTP header 'Accept' (if needed)
|
138
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
139
|
+
|
140
|
+
# form parameters
|
141
|
+
form_params = opts[:form_params] || {}
|
142
|
+
|
143
|
+
# http body (model)
|
144
|
+
post_body = opts[:debug_body]
|
145
|
+
|
146
|
+
# return_type
|
147
|
+
return_type = opts[:debug_return_type] || 'Upload'
|
148
|
+
|
149
|
+
# auth_names
|
150
|
+
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
151
|
+
|
152
|
+
new_options = opts.merge(
|
153
|
+
:operation => :"UploadsApi.get",
|
154
|
+
:header_params => header_params,
|
155
|
+
:query_params => query_params,
|
156
|
+
:form_params => form_params,
|
157
|
+
:body => post_body,
|
158
|
+
:auth_names => auth_names,
|
159
|
+
:return_type => return_type
|
160
|
+
)
|
161
|
+
|
162
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
163
|
+
if @api_client.config.debugging
|
164
|
+
@api_client.config.logger.debug "API called: UploadsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
165
|
+
end
|
166
|
+
return data, status_code, headers
|
167
|
+
end
|
168
|
+
|
169
|
+
# create
|
102
170
|
# Creates a new upload with the provided properties.
|
103
171
|
# @param upload_writable [UploadWritable]
|
104
172
|
# @param [Hash] opts the optional parameters
|
105
173
|
# @return [Upload]
|
106
|
-
def
|
174
|
+
def create(upload_writable, opts = {})
|
107
175
|
data, _status_code, _headers = upload_create_with_http_info(upload_writable, opts)
|
108
176
|
data
|
109
177
|
end
|
110
178
|
|
111
|
-
#
|
179
|
+
# create
|
112
180
|
# Creates a new upload with the provided properties.
|
113
181
|
# @param upload_writable [UploadWritable]
|
114
182
|
# @param [Hash] opts the optional parameters
|
@@ -166,17 +234,17 @@ module Lob
|
|
166
234
|
return data, status_code, headers
|
167
235
|
end
|
168
236
|
|
169
|
-
#
|
237
|
+
# delete
|
170
238
|
# Delete an existing upload. You need only supply the unique identifier that was returned upon upload creation.
|
171
239
|
# @param upl_id [String] id of the upload
|
172
240
|
# @param [Hash] opts the optional parameters
|
173
241
|
# @return [nil]
|
174
|
-
def
|
242
|
+
def delete(upl_id, opts = {})
|
175
243
|
upload_delete_with_http_info(upl_id, opts)
|
176
244
|
nil
|
177
245
|
end
|
178
246
|
|
179
|
-
#
|
247
|
+
# delete
|
180
248
|
# Delete an existing upload. You need only supply the unique identifier that was returned upon upload creation.
|
181
249
|
# @param upl_id [String] id of the upload
|
182
250
|
# @param [Hash] opts the optional parameters
|
@@ -389,86 +457,18 @@ module Lob
|
|
389
457
|
return data, status_code, headers
|
390
458
|
end
|
391
459
|
|
392
|
-
#
|
393
|
-
# Retrieves the details of an existing upload. You need only supply the unique upload identifier that was returned upon upload creation.
|
394
|
-
# @param upl_id [String] id of the upload
|
395
|
-
# @param [Hash] opts the optional parameters
|
396
|
-
# @return [Upload]
|
397
|
-
def get_upload(upl_id, opts = {})
|
398
|
-
data, _status_code, _headers = upload_retrieve_with_http_info(upl_id, opts)
|
399
|
-
data
|
400
|
-
end
|
401
|
-
|
402
|
-
# get_upload
|
403
|
-
# Retrieves the details of an existing upload. You need only supply the unique upload identifier that was returned upon upload creation.
|
404
|
-
# @param upl_id [String] id of the upload
|
405
|
-
# @param [Hash] opts the optional parameters
|
406
|
-
# @return [Array<(Upload, Integer, Hash)>] Upload data, response status code and response headers
|
407
|
-
def upload_retrieve_with_http_info(upl_id, opts = {})
|
408
|
-
if @api_client.config.debugging
|
409
|
-
@api_client.config.logger.debug 'Calling API: UploadsApi.upload_retrieve ...'
|
410
|
-
end
|
411
|
-
# verify the required parameter 'upl_id' is set
|
412
|
-
if @api_client.config.client_side_validation && upl_id.nil?
|
413
|
-
fail ArgumentError, "Missing the required parameter 'upl_id' when calling UploadsApi.upload_retrieve"
|
414
|
-
end
|
415
|
-
pattern = Regexp.new(/^upl_[a-zA-Z0-9]+$/)
|
416
|
-
if @api_client.config.client_side_validation && upl_id !~ pattern
|
417
|
-
fail ArgumentError, "invalid value for 'upl_id' when calling UploadsApi.upload_retrieve, must conform to the pattern #{pattern}."
|
418
|
-
end
|
419
|
-
|
420
|
-
# resource path
|
421
|
-
local_var_path = '/uploads/{upl_id}'.sub('{' + 'upl_id' + '}', CGI.escape(upl_id.to_s))
|
422
|
-
|
423
|
-
# query parameters
|
424
|
-
query_params = opts[:query_params] || {}
|
425
|
-
|
426
|
-
# header parameters
|
427
|
-
header_params = opts[:header_params] || {}
|
428
|
-
# HTTP header 'Accept' (if needed)
|
429
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
430
|
-
|
431
|
-
# form parameters
|
432
|
-
form_params = opts[:form_params] || {}
|
433
|
-
|
434
|
-
# http body (model)
|
435
|
-
post_body = opts[:debug_body]
|
436
|
-
|
437
|
-
# return_type
|
438
|
-
return_type = opts[:debug_return_type] || 'Upload'
|
439
|
-
|
440
|
-
# auth_names
|
441
|
-
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
442
|
-
|
443
|
-
new_options = opts.merge(
|
444
|
-
:operation => :"UploadsApi.upload_retrieve",
|
445
|
-
:header_params => header_params,
|
446
|
-
:query_params => query_params,
|
447
|
-
:form_params => form_params,
|
448
|
-
:body => post_body,
|
449
|
-
:auth_names => auth_names,
|
450
|
-
:return_type => return_type
|
451
|
-
)
|
452
|
-
|
453
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
454
|
-
if @api_client.config.debugging
|
455
|
-
@api_client.config.logger.debug "API called: UploadsApi#upload_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
456
|
-
end
|
457
|
-
return data, status_code, headers
|
458
|
-
end
|
459
|
-
|
460
|
-
# update_upload
|
460
|
+
# update
|
461
461
|
# Update the details of an existing upload. You need only supply the unique identifier that was returned upon upload creation.
|
462
462
|
# @param upl_id [String] id of the upload
|
463
463
|
# @param upload_updatable [UploadUpdatable]
|
464
464
|
# @param [Hash] opts the optional parameters
|
465
465
|
# @return [Upload]
|
466
|
-
def
|
466
|
+
def update(upl_id, upload_updatable, opts = {})
|
467
467
|
data, _status_code, _headers = upload_update_with_http_info(upl_id, upload_updatable, opts)
|
468
468
|
data
|
469
469
|
end
|
470
470
|
|
471
|
-
#
|
471
|
+
# update
|
472
472
|
# Update the details of an existing upload. You need only supply the unique identifier that was returned upon upload creation.
|
473
473
|
# @param upl_id [String] id of the upload
|
474
474
|
# @param upload_updatable [UploadUpdatable]
|
@@ -536,17 +536,17 @@ module Lob
|
|
536
536
|
return data, status_code, headers
|
537
537
|
end
|
538
538
|
|
539
|
-
#
|
539
|
+
# list
|
540
540
|
# Returns a list of your uploads. Optionally, filter uploads by campaign.
|
541
541
|
# @param [Hash] opts the optional parameters
|
542
542
|
# @option opts [String] :campaign_id id of the campaign
|
543
543
|
# @return [Array<Upload>]
|
544
|
-
def
|
544
|
+
def list(opts = {})
|
545
545
|
data, _status_code, _headers = uploads_list_with_http_info(opts)
|
546
546
|
data
|
547
547
|
end
|
548
548
|
|
549
|
-
#
|
549
|
+
# list
|
550
550
|
# Returns a list of your uploads. Optionally, filter uploads by campaign.
|
551
551
|
# @param [Hash] opts the optional parameters
|
552
552
|
# @option opts [String] :campaign_id id of the campaign
|
@@ -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
|
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Lob
|
17
17
|
class BankAccount
|
18
|
-
# An internal description that identifies this resource. Must be no longer than 255 characters.
|
18
|
+
# An internal description that identifies this resource. Must be no longer than 255 characters.
|
19
19
|
attr_accessor :description
|
20
20
|
|
21
21
|
# Must be a [valid US routing number](https://www.frbservices.org/index.html).
|
@@ -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-
|
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-_]+$/)
|
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-
|
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-_]+$/)
|
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-
|
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-_]+$/)
|
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
|
@@ -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
|
@@ -22,7 +22,7 @@ module Lob
|
|
22
22
|
|
23
23
|
attr_accessor :from
|
24
24
|
|
25
|
-
# An internal description that identifies this resource. Must be no longer than 255 characters.
|
25
|
+
# An internal description that identifies this resource. Must be no longer than 255 characters.
|
26
26
|
attr_accessor :description
|
27
27
|
|
28
28
|
# Use metadata to store custom information for tagging and labeling back to your internal systems. Must be an object with up to 20 key-value pairs. Keys must be at most 40 characters and values must be at most 500 characters. Neither can contain the characters `\"` and `\\`. i.e. '{\"customer_id\" : \"NEWYORK2015\"}' Nested objects are not supported. See [Metadata](#section/Metadata) for more information.
|
@@ -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-
|
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-
|
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-
|
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
|
File without changes
|
@@ -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
|
@@ -49,7 +49,7 @@ module Lob
|
|
49
49
|
|
50
50
|
attr_accessor :object
|
51
51
|
|
52
|
-
# An internal description that identifies this resource. Must be no longer than 255 characters.
|
52
|
+
# An internal description that identifies this resource. Must be no longer than 255 characters.
|
53
53
|
attr_accessor :description
|
54
54
|
|
55
55
|
# Use metadata to store custom information for tagging and labeling back to your internal systems. Must be an object with up to 20 key-value pairs. Keys must be at most 40 characters and values must be at most 500 characters. Neither can contain the characters `\"` and `\\`. i.e. '{\"customer_id\" : \"NEWYORK2015\"}' Nested objects are not supported. See [Metadata](#section/Metadata) for more information.
|
@@ -81,7 +81,7 @@ module Lob
|
|
81
81
|
# Set this attribute to `true` for double sided printing, or `false` for for single sided printing. Defaults to `true`.
|
82
82
|
attr_accessor :double_sided
|
83
83
|
|
84
|
-
# Specifies the location of the address information that will show through the double-window envelope.
|
84
|
+
# Specifies the location of the address information that will show through the double-window envelope.
|
85
85
|
attr_accessor :address_placement
|
86
86
|
|
87
87
|
attr_accessor :return_envelope
|
@@ -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-
|
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-
|
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-
|
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
|
File without changes
|
@@ -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
|
@@ -60,7 +60,7 @@ module Lob
|
|
60
60
|
# A [signed link](#section/Asset-URLs) served over HTTPS. The link returned will expire in 30 days to prevent mis-sharing. Each time a GET request is initiated, a new signed URL will be generated.
|
61
61
|
attr_accessor :url
|
62
62
|
|
63
|
-
# An internal description that identifies this resource. Must be no longer than 255 characters.
|
63
|
+
# An internal description that identifies this resource. Must be no longer than 255 characters.
|
64
64
|
attr_accessor :description
|
65
65
|
|
66
66
|
# Use metadata to store custom information for tagging and labeling back to your internal systems. Must be an object with up to 20 key-value pairs. Keys must be at most 40 characters and values must be at most 500 characters. Neither can contain the characters `\"` and `\\`. i.e. '{\"customer_id\" : \"NEWYORK2015\"}' Nested objects are not supported. See [Metadata](#section/Metadata) for more information.
|
@@ -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-
|
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-
|
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-
|
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
|
File without changes
|
@@ -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
|
@@ -24,7 +24,7 @@ module Lob
|
|
24
24
|
|
25
25
|
attr_accessor :size
|
26
26
|
|
27
|
-
# An internal description that identifies this resource. Must be no longer than 255 characters.
|
27
|
+
# An internal description that identifies this resource. Must be no longer than 255 characters.
|
28
28
|
attr_accessor :description
|
29
29
|
|
30
30
|
# Use metadata to store custom information for tagging and labeling back to your internal systems. Must be an object with up to 20 key-value pairs. Keys must be at most 40 characters and values must be at most 500 characters. Neither can contain the characters `\"` and `\\`. i.e. '{\"customer_id\" : \"NEWYORK2015\"}' Nested objects are not supported. See [Metadata](#section/Metadata) for more information.
|
@@ -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-
|
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-
|
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-
|
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
|
File without changes
|
@@ -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
|
@@ -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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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-
|
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
|
@@ -18,7 +18,7 @@ module Lob
|
|
18
18
|
# non-Certified postcards, self mailers, letters, and checks
|
19
19
|
attr_accessor :type
|
20
20
|
|
21
|
-
# Name of tracking event (for normal postcards, self mailers, letters, and checks): * `In Transit` - The mailpiece is being processed at the entry/origin facility.
|
21
|
+
# Name of tracking event (for normal postcards, self mailers, letters, and checks): * `Mailed` - The mailpiece has been handed off to and accepted by USPS and is en route. <a href=\"https://help.lob.com/print-and-mail/getting-data-and-results/tracking-your-mail#mailed-tracking-events-4\" target=\"_blank\">More about Mailed.</a> Note this data is only available in Enterprise editions of Lob. <a href=\"https://lob.com/support/contact#contact\" target=\"_blank\">Contact Sales</a> if you want access to this feature. * `In Transit` - The mailpiece is being processed at the entry/origin facility. * `In Local Area` - The mailpiece is being processed at the destination facility. * `Processed for Delivery` - The mailpiece has been greenlit for delivery at the recipient's nearest postal facility. The mailpiece should reach the mailbox within 1 business day of this tracking event. * `Delivered` - The mail piece has been delivered to the recipients address. The final scan is generated when the mail carrier's GPS unit leaves the delivery area. * `Re-Routed` - The mailpiece is re-routed due to recipient change of address, address errors, or USPS relabeling of barcode/ID tag area. * `Returned to Sender` - The mailpiece is being returned to sender due to barcode, ID tag area, or address errors. * `International Exit` - The mail piece has been processed to ship to a destination abroad. This is typically the last scan a US-originated international mail piece will receive from the USPS. [More about tracking](https://support.lob.com/hc/en-us/articles/115000097404-Can-I-track-my-mail-)
|
22
22
|
attr_accessor :name
|
23
23
|
|
24
24
|
# Will be `null` for `type=normal` events
|
@@ -187,7 +187,7 @@ module Lob
|
|
187
187
|
type_validator = EnumAttributeValidator.new('String', ["normal"])
|
188
188
|
return false unless type_validator.valid?(@type)
|
189
189
|
return false if @name.nil?
|
190
|
-
name_validator = EnumAttributeValidator.new('String', ["In Transit", "In Local Area", "Processed for Delivery", "Re-Routed", "Returned to Sender", "
|
190
|
+
name_validator = EnumAttributeValidator.new('String', ["Mailed", "In Transit", "In Local Area", "Processed for Delivery", "Delivered", "Re-Routed", "Returned to Sender", "International Exit"])
|
191
191
|
return false unless name_validator.valid?(@name)
|
192
192
|
details_validator = EnumAttributeValidator.new('Object', ["null"])
|
193
193
|
return false unless details_validator.valid?(@details)
|
@@ -210,7 +210,7 @@ module Lob
|
|
210
210
|
# Custom attribute writer method checking allowed values (enum).
|
211
211
|
# @param [Object] name Object to be assigned
|
212
212
|
def name=(name)
|
213
|
-
validator = EnumAttributeValidator.new('String', ["In Transit", "In Local Area", "Processed for Delivery", "Re-Routed", "Returned to Sender", "
|
213
|
+
validator = EnumAttributeValidator.new('String', ["Mailed", "In Transit", "In Local Area", "Processed for Delivery", "Delivered", "Re-Routed", "Returned to Sender", "International Exit"])
|
214
214
|
unless validator.valid?(name)
|
215
215
|
fail ArgumentError, "invalid value for \"name\", must be one of #{validator.allowable_values}."
|
216
216
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lob
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-13 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
|
499
500
|
- spec/api/cards_api_spec.rb
|
501
|
+
- spec/api/creatives_api_spec.rb
|
502
|
+
- spec/api/uploads_api_spec.rb
|
503
|
+
- spec/api/letters_api_spec.rb
|
504
|
+
- spec/api/reverse_geocode_lookups_api_spec.rb
|
500
505
|
- spec/api/checks_api_spec.rb
|
506
|
+
- spec/api/identity_validation_api_spec.rb
|
507
|
+
- spec/api/postcards_api_spec.rb
|
508
|
+
- spec/api/templates_api_spec.rb
|
509
|
+
- spec/api/zip_lookups_api_spec.rb
|
501
510
|
- spec/api/intl_autocompletions_api_spec.rb
|
502
|
-
- spec/api/us_autocompletions_api_spec.rb
|
503
|
-
- spec/api/template_versions_api_spec.rb
|
504
511
|
- spec/api/intl_verifications_api_spec.rb
|
505
|
-
- spec/api/zip_lookups_api_spec.rb
|
506
|
-
- spec/api/creatives_api_spec.rb
|
507
512
|
- spec/api/self_mailers_api_spec.rb
|
508
|
-
- spec/api/billing_groups_api_spec.rb
|
509
|
-
- spec/api/letters_api_spec.rb
|
510
|
-
- spec/api/templates_api_spec.rb
|
511
|
-
- spec/api/uploads_api_spec.rb
|
512
513
|
- spec/api/addresses_api_spec.rb
|
513
|
-
- spec/api/
|
514
|
-
- spec/api/card_orders_api_spec.rb
|
515
|
-
- spec/api/reverse_geocode_lookups_api_spec.rb
|
516
|
-
- spec/api/campaigns_api_spec.rb
|
517
|
-
- spec/api/identity_validation_api_spec.rb
|
514
|
+
- spec/api/us_autocompletions_api_spec.rb
|
518
515
|
- spec/api/us_verifications_api_spec.rb
|
519
|
-
- spec/api/
|
516
|
+
- spec/api/bank_accounts_api_spec.rb
|
517
|
+
- spec/api/template_versions_api_spec.rb
|
520
518
|
- spec/api/default_api_spec.rb
|
519
|
+
- spec/api/campaigns_api_spec.rb
|
520
|
+
- spec/api/billing_groups_api_spec.rb
|
521
521
|
- spec/api_client_spec.rb
|
522
522
|
- spec/configuration_spec.rb
|
523
523
|
- spec/spec_helper.rb
|