lob 6.0.2 → 6.0.4
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 +2 -2
- data/lib/openapi_client/models/chk_use_type.rb +0 -0
- data/lib/openapi_client/models/letter.rb +3 -3
- data/lib/openapi_client/models/ltr_use_type.rb +0 -0
- data/lib/openapi_client/models/postcard.rb +2 -2
- data/lib/openapi_client/models/psc_use_type.rb +0 -0
- data/lib/openapi_client/models/self_mailer.rb +2 -2
- data/lib/openapi_client/models/sfm_use_type.rb +0 -0
- data/lib/openapi_client/models/thumbnail.rb +1 -1
- data/lib/openapi_client/models/tracking_event_normal.rb +3 -3
- data/lib/openapi_client/version.rb +1 -1
- metadata +17 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b1f41d96683a73f2c8ba2c864a3c5158d5e73d86ae0e49e1bdfe5a45663caeeb
|
|
4
|
+
data.tar.gz: 8d138bf0217b9e1f8af682128b8147e382df44e6261ffd70c55bff12a4d40a93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
4
|
+
lob (6.0.4)
|
|
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.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.21
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
@@ -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.
|
|
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
|
|
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.
|
|
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.
|
|
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
|
|
@@ -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.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-
|
|
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/cards_api_spec.rb
|
|
500
|
-
- spec/api/checks_api_spec.rb
|
|
501
|
-
- spec/api/intl_autocompletions_api_spec.rb
|
|
502
499
|
- spec/api/us_autocompletions_api_spec.rb
|
|
503
|
-
- spec/api/
|
|
504
|
-
- spec/api/intl_verifications_api_spec.rb
|
|
505
|
-
- spec/api/zip_lookups_api_spec.rb
|
|
500
|
+
- spec/api/bank_accounts_api_spec.rb
|
|
506
501
|
- spec/api/creatives_api_spec.rb
|
|
507
|
-
- spec/api/self_mailers_api_spec.rb
|
|
508
|
-
- spec/api/billing_groups_api_spec.rb
|
|
509
502
|
- spec/api/letters_api_spec.rb
|
|
510
|
-
- spec/api/
|
|
511
|
-
- spec/api/
|
|
512
|
-
- spec/api/
|
|
513
|
-
- spec/api/
|
|
514
|
-
- spec/api/card_orders_api_spec.rb
|
|
503
|
+
- spec/api/intl_verifications_api_spec.rb
|
|
504
|
+
- spec/api/billing_groups_api_spec.rb
|
|
505
|
+
- spec/api/postcards_api_spec.rb
|
|
506
|
+
- spec/api/self_mailers_api_spec.rb
|
|
515
507
|
- spec/api/reverse_geocode_lookups_api_spec.rb
|
|
508
|
+
- spec/api/card_orders_api_spec.rb
|
|
516
509
|
- spec/api/campaigns_api_spec.rb
|
|
517
|
-
- spec/api/
|
|
510
|
+
- spec/api/template_versions_api_spec.rb
|
|
518
511
|
- spec/api/us_verifications_api_spec.rb
|
|
519
|
-
- spec/api/
|
|
512
|
+
- spec/api/templates_api_spec.rb
|
|
513
|
+
- spec/api/intl_autocompletions_api_spec.rb
|
|
514
|
+
- spec/api/addresses_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
|
|
520
518
|
- spec/api/default_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
|