lob 6.4.0 → 6.5.0
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.
- package/README.md +3 -75
- package/lib/resources/cardOrders.js +21 -0
- package/lib/resources/cards.js +76 -0
- package/lib/resources/index.js +2 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -256
package/README.md
CHANGED
|
@@ -14,12 +14,14 @@ Node.js wrapper for the [Lob.com](https://lob.com) API. See full Lob.com documen
|
|
|
14
14
|
|
|
15
15
|
## Table of Contents
|
|
16
16
|
|
|
17
|
+
- [Table of Contents](#table-of-contents)
|
|
17
18
|
- [Getting Started](#getting-started)
|
|
18
19
|
- [Registration](#registration)
|
|
19
20
|
- [Installation](#installation)
|
|
20
21
|
- [Usage](#usage)
|
|
21
22
|
- [Options](#options)
|
|
22
23
|
- [Examples](#examples)
|
|
24
|
+
- [Accessing Response Headers](#accessing-response-headers)
|
|
23
25
|
- [API Documentation](#api-documentation)
|
|
24
26
|
- [Contributing](#contributing)
|
|
25
27
|
- [Testing](#testing)
|
|
@@ -131,81 +133,7 @@ Lob.addresses.retrieve('adr_bad_id')
|
|
|
131
133
|
|
|
132
134
|
## API Documentation
|
|
133
135
|
|
|
134
|
-
|
|
135
|
-
- [Versioning](https://lob.com/docs/node#version)
|
|
136
|
-
- [Errors](https://lob.com/docs/node#errors)
|
|
137
|
-
- [Rate Limiting](https://lob.com/docs/node#rate-limits)
|
|
138
|
-
- [Webhooks](https://lob.com/docs/node#webhooks)
|
|
139
|
-
- [Cancellation Windows](https://lob.com/docs/node#cancellation)
|
|
140
|
-
- [Scheduled Mailings](https://lob.com/docs/node#scheduled)
|
|
141
|
-
- [Metadata](https://lob.com/docs/node#metadata)
|
|
142
|
-
- [HTML Templates](https://lob.com/docs/node#templates)
|
|
143
|
-
- [Asset URLs](https://lob.com/docs/node#urls)
|
|
144
|
-
- **Addresses**
|
|
145
|
-
- [Address Book](https://lob.com/docs/node#addresses)
|
|
146
|
-
- [The Address Object](https://lob.com/docs/node#addresses_object)
|
|
147
|
-
- [Create an Address](https://lob.com/docs/node#addresses_create)
|
|
148
|
-
- [Retrieve an Address](https://lob.com/docs/node#addresses_retrieve)
|
|
149
|
-
- [Delete an Address](https://lob.com/docs/node#addresses_delete)
|
|
150
|
-
- [List all Addresses](https://lob.com/docs/node#addresses_list)
|
|
151
|
-
- **US Verification API**
|
|
152
|
-
- [US Verification API](https://lob.com/docs/node#us_verifications)
|
|
153
|
-
- [The US Verification Object](https://lob.com/docs/node#us_verifications_object)
|
|
154
|
-
- [Verify a US Address](https://lob.com/docs/node#us_verifications_create)
|
|
155
|
-
- [Bulk Verify US Addresses](https://lob.com/docs/node#us_verifications_bulk_create)
|
|
156
|
-
- [The US ZIP Lookup Object](https://lob.com/docs/node#us_zip_lookups_object)
|
|
157
|
-
- [Lookup a US ZIP Code](https://lob.com/docs/node#us_zip_lookups_create)
|
|
158
|
-
- [Reverse Lookup a Geocode Location](https://lob.com/docs/node#us_zip_lookups_create)
|
|
159
|
-
- [US Autocompletion API](https://lob.com/docs/node#us_autocompletions)
|
|
160
|
-
- [The US Autocompletion Object](https://lob.com/docs/node#us_autocompletions_object)
|
|
161
|
-
- [Autocomplete a US Address](https://lob.com/docs/node#us_autocompletions_create)
|
|
162
|
-
- [The US Autocompletion Test Environment](https://lob.com/docs/node#us-autocompletions-test-environment)
|
|
163
|
-
- **Int'l Verification API**
|
|
164
|
-
- [International Verifications](https://lob.com/docs/node#intl_verifications)
|
|
165
|
-
- [Verify an International Address](https://lob.com/docs/node#intl_verifications_create)
|
|
166
|
-
- [Bulk Verify International Addresses](https://lob.com/docs/node#intl_verifications_bulk_create)
|
|
167
|
-
- **Postcards API**
|
|
168
|
-
- [Postcards](https://lob.com/docs/node#postcards)
|
|
169
|
-
- [The Postcard Object](https://lob.com/docs/node#postcards_object)
|
|
170
|
-
- [Create a Postcard](https://lob.com/docs/node#postcards_create)
|
|
171
|
-
- [Retrieve a Postcard](https://lob.com/docs/node#postcards_retrieve)
|
|
172
|
-
- [Cancel a Postcard](https://lob.com/docs/node#postcards_delete)
|
|
173
|
-
- [List all Postcards](https://lob.com/docs/node#postcards_list)
|
|
174
|
-
- **Self Mailers API**
|
|
175
|
-
- [Self Mailers](https://lob.com/docs/node#self_mailers)
|
|
176
|
-
- [The Self Mailer Object](https://lob.com/docs/node#self_mailers_object)
|
|
177
|
-
- [Create a Self Mailer](https://lob.com/docs/node#self_mailers_create)
|
|
178
|
-
- [Retrieve a Self Mailer](https://lob.com/docs/node#self_mailers_retrieve)
|
|
179
|
-
- [Cancel a Self Mailer](https://lob.com/docs/node#self_mailers_delete)
|
|
180
|
-
- [List all Self Mailers](https://lob.com/docs/node#self_mailers_list)
|
|
181
|
-
- **Letters API**
|
|
182
|
-
- [Letters](https://lob.com/docs/node#letters)
|
|
183
|
-
- [The Letter Object](https://lob.com/docs/node#letters_object)
|
|
184
|
-
- [Create a Letter](https://lob.com/docs/node#letters_create)
|
|
185
|
-
- [Retrieve a Letter](https://lob.com/docs/node#letters_retrieve)
|
|
186
|
-
- [Cancel a Letter](https://lob.com/docs/node#letters_delete)
|
|
187
|
-
- [List all Letters](https://lob.com/docs/node#letters_list)
|
|
188
|
-
- **Checks API**
|
|
189
|
-
- [Checks](https://lob.com/docs/node#checks)
|
|
190
|
-
- [The Check Object](https://lob.com/docs/node#checks_object)
|
|
191
|
-
- [Create a Check](https://lob.com/docs/node#checks_create)
|
|
192
|
-
- [Retrieve a Check](https://lob.com/docs/node#checks_retrieve)
|
|
193
|
-
- [Cancel a Check](https://lob.com/docs/node#checks_delete)
|
|
194
|
-
- [List all Checks](https://lob.com/docs/node#checks_list)
|
|
195
|
-
- [Bank Accounts](https://lob.com/docs/node#bankaccounts)
|
|
196
|
-
- [The Bank Account Object](https://lob.com/docs/node#bankaccounts_object)
|
|
197
|
-
- [Create a Bank Account](https://lob.com/docs/node#bankaccounts_create)
|
|
198
|
-
- [Retrieve a Bank Account](https://lob.com/docs/node#bankaccounts_retrieve)
|
|
199
|
-
- [Delete a Bank Account](https://lob.com/docs/node#bankaccounts_delete)
|
|
200
|
-
- [Verify a Bank Account](https://lob.com/docs/node#bankaccounts_verify)
|
|
201
|
-
- [List all Bank Accounts](https://lob.com/docs/node#bankaccounts_list)
|
|
202
|
-
- **Appendix**
|
|
203
|
-
- [API Changelog](https://lob.com/docs/node#changelog)
|
|
204
|
-
- [The Tracking Event Object](https://lob.com/docs/node#tracking_event_object)
|
|
205
|
-
- [Events](https://lob.com/docs/node#events)
|
|
206
|
-
- [HTML Examples](https://lob.com/docs/node#html-examples)
|
|
207
|
-
- [Image Prepping](https://lob.com/docs/node#prepping)
|
|
208
|
-
- [US Verification Details](https://lob.com/docs/node#us_verification_details)
|
|
136
|
+
The full and comprehensive documentation of Lob's APIs is available [here](https://docs.lob.com/).
|
|
209
137
|
|
|
210
138
|
## Contributing
|
|
211
139
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const ResourceBase = require('./resourceBase');
|
|
4
|
+
|
|
5
|
+
class CardOrders extends ResourceBase {
|
|
6
|
+
|
|
7
|
+
constructor (config) {
|
|
8
|
+
super('cards', config);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
list (cardId, params, callback) {
|
|
12
|
+
return this._transmit('GET', `${encodeURIComponent(cardId)}/orders`, null, params, null, callback);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
create (cardId, params, headers, callback) {
|
|
16
|
+
return this._transmit('POST', `${encodeURIComponent(cardId)}/orders`, null, params, headers, callback);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = CardOrders;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const ResourceBase = require('./resourceBase');
|
|
4
|
+
|
|
5
|
+
class Cards extends ResourceBase {
|
|
6
|
+
|
|
7
|
+
constructor (config) {
|
|
8
|
+
super('cards', config);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
list (options, callback) {
|
|
12
|
+
|
|
13
|
+
if (typeof options === 'function') {
|
|
14
|
+
callback = options;
|
|
15
|
+
options = {};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return this._transmit('GET', null, options, null, callback);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
retrieve (id, callback) {
|
|
22
|
+
return this._transmit('GET', id, null, null, callback);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
delete (id, callback) {
|
|
26
|
+
return this._transmit('DELETE', id, null, null, callback);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
create (params, headers, callback) {
|
|
30
|
+
let isBuffer;
|
|
31
|
+
|
|
32
|
+
if (params.front) {
|
|
33
|
+
isBuffer = Buffer.isBuffer(params.front);
|
|
34
|
+
|
|
35
|
+
if (isBuffer) {
|
|
36
|
+
params.front = {
|
|
37
|
+
value: params.front,
|
|
38
|
+
options: { filename: 'front.pdf' }
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (params.back) {
|
|
44
|
+
isBuffer = Buffer.isBuffer(params.back);
|
|
45
|
+
|
|
46
|
+
if (isBuffer) {
|
|
47
|
+
params.back = {
|
|
48
|
+
value: params.back,
|
|
49
|
+
options: { filename: 'back.pdf' }
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
for (const p in params) {
|
|
55
|
+
|
|
56
|
+
if (p === 'merge_variables' && params[p] instanceof Object) {
|
|
57
|
+
params[p] = JSON.stringify(params[p]);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (p === 'front' || p === 'back' || !(params[p] instanceof Object)) {
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
for (const key in params[p]) {
|
|
65
|
+
params[`${p}[${key}]`] = params[p][key];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
delete params[p];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return this._transmit('POST', null, null, params, headers, callback);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
module.exports = Cards;
|
package/lib/resources/index.js
CHANGED
|
@@ -5,6 +5,8 @@ module.exports = {
|
|
|
5
5
|
bankAccounts: require('./bankAccounts'),
|
|
6
6
|
bulkIntlVerifications: require('./bulkIntlVerifications'),
|
|
7
7
|
bulkUSVerifications: require('./bulkUSVerifications'),
|
|
8
|
+
cards: require('./cards'),
|
|
9
|
+
cardOrders: require('./cardOrders'),
|
|
8
10
|
checks: require('./checks'),
|
|
9
11
|
intlVerifications: require('./intlVerifications'),
|
|
10
12
|
letters: require('./letters'),
|
package/package.json
CHANGED
package/CHANGELOG.md
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
### 6.4.0 (2021-09-21)
|
|
2
|
-
|
|
3
|
-
##### New Features
|
|
4
|
-
|
|
5
|
-
* **us_verifications:** Reverse Geocoding endpoint ([#250](https://github.com/lob/lob-node/pull/250)) ([ea1e49df](https://github.com/lob/lob-node/commit/ea1e49df8cace3938acd34811100e8df553a8180))
|
|
6
|
-
* **examples:** added a bunch of examples which WERE in the old docs ([#249](https://github.com/lob/lob-node/pull/249)) ([bba10957](https://github.com/lob/lob-node/commit/bba109573d379c09f4e6445da263b163ee7184f6))
|
|
7
|
-
|
|
8
|
-
### 6.3.0 (2021-08-27)
|
|
9
|
-
|
|
10
|
-
#### 6.2.1 (2021-07-28)
|
|
11
|
-
|
|
12
|
-
##### Chores
|
|
13
|
-
|
|
14
|
-
* **deps:**
|
|
15
|
-
* bump hosted-git-info from 2.1.4 to 2.8.9 ([#241](https://github.com/lob/lob-node/pull/241)) ([a10ed786](https://github.com/lob/lob-node/commit/a10ed786b04ecf4f4380656b2f808996fd7537bb))
|
|
16
|
-
* bump lodash from 4.17.19 to 4.17.21 ([#239](https://github.com/lob/lob-node/pull/239)) ([b38f7e5e](https://github.com/lob/lob-node/commit/b38f7e5e818385d1435724d23de19513110a11e1))
|
|
17
|
-
* bump handlebars from 4.5.3 to 4.7.7 ([#238](https://github.com/lob/lob-node/pull/238)) ([72198ab6](https://github.com/lob/lob-node/commit/72198ab65555c8b28c7199570b171aa497e043d7))
|
|
18
|
-
* bump acorn from 6.2.0 to 6.4.2 ([#233](https://github.com/lob/lob-node/pull/233)) ([533d8309](https://github.com/lob/lob-node/commit/533d83096b50402a579ea8ef5da82915518454cc))
|
|
19
|
-
* bump yargs-parser from 13.1.1 to 13.1.2 ([#230](https://github.com/lob/lob-node/pull/230)) ([96cd091c](https://github.com/lob/lob-node/commit/96cd091ce6bf5c93dd1dde6855c1734ce2067112))
|
|
20
|
-
* bump lodash from 4.17.14 to 4.17.19 ([#228](https://github.com/lob/lob-node/pull/228)) ([48e444d1](https://github.com/lob/lob-node/commit/48e444d11a49815f685e11675e307821e4ee12f1))
|
|
21
|
-
* **node14:** add node14 for travis ([#240](https://github.com/lob/lob-node/pull/240)) ([15d83747](https://github.com/lob/lob-node/commit/15d8374798a9f9c79dd6a5db9d566ac285b84b95))
|
|
22
|
-
|
|
23
|
-
#### 6.2.0 (2021-05-03)
|
|
24
|
-
|
|
25
|
-
##### New Features
|
|
26
|
-
|
|
27
|
-
* **self-mailers:** Add support for Self Mailers ([#236](https://github.com/lob/lob-node/pull/236))
|
|
28
|
-
|
|
29
|
-
##### Chores
|
|
30
|
-
|
|
31
|
-
* **deps:** bump y18n from 4.0.0 to 4.0.1 ([#235](https://github.com/lob/lob-node/pull/235)) ([81cbe7b0](https://github.com/lob/lob-node/commit/81cbe7b09f9b86a02502f6c2de0c8b6471826410))
|
|
32
|
-
|
|
33
|
-
##### Bug Fixes
|
|
34
|
-
|
|
35
|
-
* **README:** correct Bank Accounts documentation link ([#234](https://github.com/lob/lob-node/pull/234)) ([f7f7609d](https://github.com/lob/lob-node/commit/f7f7609d439f1a6187af2b4f7f7a8765f3d47ea5))
|
|
36
|
-
|
|
37
|
-
#### 6.1.1 (2020-11-06)
|
|
38
|
-
|
|
39
|
-
##### Bug Fixes
|
|
40
|
-
|
|
41
|
-
* **merge-variables:** convert merge variables to JSON ([#232](https://github.com/lob/lob-node/pull/232)) ([5352dea7](https://github.com/lob/lob-node/commit/5352dea7bbb9ddba12da82967a317edcfda0bfca))
|
|
42
|
-
|
|
43
|
-
### 6.1.0 (2020-04-15)
|
|
44
|
-
|
|
45
|
-
##### Chores
|
|
46
|
-
|
|
47
|
-
* **deps:**
|
|
48
|
-
* csv-parse@4.4.6, travis node v12, docs (#222) ([7ca4eb05](https://github.com/lob/lob-node/commit/7ca4eb05c8fb149bfdbf3c4fd3e9ed119e73e7d1))
|
|
49
|
-
* bump eslint-utils from 1.4.0 to 1.4.2 (#217) ([212789c8](https://github.com/lob/lob-node/commit/212789c894189544e8710c0ec1619d6fcd76b3d4))
|
|
50
|
-
|
|
51
|
-
##### New Features
|
|
52
|
-
|
|
53
|
-
* **resource:** add ability to specify custom HTTP agent (#224) ([bf925b1c](https://github.com/lob/lob-node/commit/bf925b1c3e54babdd9151de0d1b46ed97b4d61cb))
|
|
54
|
-
|
|
55
|
-
##### Bug Fixes
|
|
56
|
-
|
|
57
|
-
* **intl-verifications:** fixed failing test (#219) ([f2b712ad](https://github.com/lob/lob-node/commit/f2b712ad93af4237a4dbb1ba565bc034a9856710))
|
|
58
|
-
|
|
59
|
-
##### Tests
|
|
60
|
-
|
|
61
|
-
* **plc:** add tests for new versions (template syntax and cursor pagination) (#226) ([d5806217](https://github.com/lob/lob-node/commit/d580621732acec840bb28532ecb8eb9132e64b3b))
|
|
62
|
-
|
|
63
|
-
#### 6.0.6 (2019-07-19)
|
|
64
|
-
|
|
65
|
-
##### Chores
|
|
66
|
-
|
|
67
|
-
* **deps:**
|
|
68
|
-
* upgrade vulnerable packages ([#216](https://github.com/lob/lob-node/pull/216)) ([a938fc23](https://github.com/lob/lob-node/commit/a938fc23caf38b87ea6791219d4883e862cdd1c9))
|
|
69
|
-
* bump lodash from 4.17.11 to 4.17.14 ([#215](https://github.com/lob/lob-node/pull/215)) ([6d6b0436](https://github.com/lob/lob-node/commit/6d6b0436c8caa15d65bfe0534752842c08ee555d))
|
|
70
|
-
|
|
71
|
-
#### 6.0.5 (2019-02-14)
|
|
72
|
-
|
|
73
|
-
##### Chores
|
|
74
|
-
|
|
75
|
-
* **lib:** fixed npm scripts on windows, moved from istanbul to nyc ([#213](https://github.com/lob/lob-node/pull/213)) ([be91922d](https://github.com/lob/lob-node/commit/be91922d59e4fa9cc747c0e8ae2523b6f5d319c6))
|
|
76
|
-
|
|
77
|
-
#### 6.0.4 (2019-01-30)
|
|
78
|
-
|
|
79
|
-
##### New Features
|
|
80
|
-
|
|
81
|
-
* **postcards:** add ability to modify concurrency ([4a3bbf37](https://github.com/lob/lob-node/commit/4a3bbf373727c7c2bd9098b8425988a4adfd70d8))
|
|
82
|
-
|
|
83
|
-
##### Bug Fixes
|
|
84
|
-
|
|
85
|
-
* **resource-base:** handle undefined multipart form value ([#212](https://github.com/lob/lob-node/pull/212)) ([711261dc](https://github.com/lob/lob-node/commit/711261dc23d9f09e8ae7050248068219775fb6eb))
|
|
86
|
-
|
|
87
|
-
#### 6.0.3 (2019-1-7)
|
|
88
|
-
|
|
89
|
-
##### Chores
|
|
90
|
-
|
|
91
|
-
* **assets:** update links ([5d7f66f0](https://github.com/lob/lob-node/commit/5d7f66f0487151a3b50b8d4581fe5b2cfa9474a9))
|
|
92
|
-
|
|
93
|
-
##### Tests
|
|
94
|
-
|
|
95
|
-
* **api-key:**
|
|
96
|
-
* remove lob api key from tests and examples ([93fee77a](https://github.com/lob/lob-node/commit/93fee77a156c53eb9454fc0be3a4d220e1943d08))
|
|
97
|
-
* remove lob api key from tests and examples ([062022b3](https://github.com/lob/lob-node/commit/062022b3cc89b921db4a1dec863d687d0db9dabb))
|
|
98
|
-
|
|
99
|
-
#### 6.0.2 (2018-12-3)
|
|
100
|
-
|
|
101
|
-
##### Bug Fixes
|
|
102
|
-
|
|
103
|
-
* **resource-base:** default body to empty object ([70f9c804](https://github.com/lob/lob-node/commit/70f9c804e1dabd2360afcf307e2e98b4787d46d9))
|
|
104
|
-
* **deps:**
|
|
105
|
-
* upgrade rest of vulnerable deps ([3b84d7e0](https://github.com/lob/lob-node/commit/3b84d7e09b29b7cbd4718396f8fba7d74bc5b7ec))
|
|
106
|
-
* upgrade mocha (and growl) version ([95bdf700](https://github.com/lob/lob-node/commit/95bdf700d99986d03cb85ad09d300df1557e8abf))
|
|
107
|
-
* **addresses:** fix broken test (#202) ([e560d6bc](https://github.com/lob/lob-node/commit/e560d6bc207f8d5964470ce1b9b9883829f198e3))
|
|
108
|
-
|
|
109
|
-
#### 6.0.1 (2018-8-7)
|
|
110
|
-
|
|
111
|
-
##### Bug Fixes
|
|
112
|
-
|
|
113
|
-
* **headers:** don't save request specific headers in configs (#201) ([cfa0fb19](https://github.com/lob/lob-node/commit/cfa0fb191581aef2aa4a42c8ca554446700956d8))
|
|
114
|
-
|
|
115
|
-
## 6.0.0 (2018-07-02)
|
|
116
|
-
|
|
117
|
-
##### New Features
|
|
118
|
-
|
|
119
|
-
* **area-mail:** remove areas and routes resources ([a17d234d](https://github.com/lob/lob-node/commit/a17d234da61f38c9a254642109a85aa6a5622810))
|
|
120
|
-
|
|
121
|
-
### 5.3.0 (2018-05-21)
|
|
122
|
-
|
|
123
|
-
##### New Features
|
|
124
|
-
|
|
125
|
-
* **us-autocompletions:** add USAutocompletions ([b64b02db](https://github.com/lob/lob-node/commit/b64b02db3712d92a6934c37629c804debdfcb42c))
|
|
126
|
-
|
|
127
|
-
##### Bug Fixes
|
|
128
|
-
|
|
129
|
-
* **readme:** replace dependency status badge and upgrade vulnerable deps ([#198](https://github.com/lob/lob-node/pull/198)) ([b758c76d](https://github.com/lob/lob-node/commit/b758c76d3cdd24d379c13ad5189dce4e28efe45e))
|
|
130
|
-
|
|
131
|
-
### 5.2.0 (2018-3-13)
|
|
132
|
-
|
|
133
|
-
##### New Features
|
|
134
|
-
|
|
135
|
-
* **us-verifications:** allow passing queries in verification creation (#197) ([84b9a44a](https://github.com/lob/lob-node/commit/84b9a44a0044eccc33bc8e1a839c54f9ae5cb067))
|
|
136
|
-
|
|
137
|
-
### 5.1.0 (2018-02-22)
|
|
138
|
-
|
|
139
|
-
##### Refactors
|
|
140
|
-
|
|
141
|
-
* **resources:** remove dynamic requires ([#196](https://github.com/lob/lob-node/pull/196)) ([4036cdda](https://github.com/lob/lob-node/commit/4036cdda417fc859dbe737eef48c78d97e38c1a8))
|
|
142
|
-
|
|
143
|
-
## 5.0.0 (2017-12-11)
|
|
144
|
-
|
|
145
|
-
##### Chores
|
|
146
|
-
|
|
147
|
-
* **lib:**
|
|
148
|
-
* use es6 classes ([38ee703e](https://github.com/lob/lob-node/commit/38ee703e2e03703d4029a922144db53d51320c01))
|
|
149
|
-
* es6 ify resource and test files ([fbd106f3](https://github.com/lob/lob-node/commit/fbd106f3554dafefc6c0e99d24959eaf7970b6fb))
|
|
150
|
-
* **deprecate:** Deprecate support for 0.10 and 0.12 ([#187](https://github.com/lob/lob-node/pull/187)) ([bd0130d3](https://github.com/lob/lob-node/commit/bd0130d31ff7df699d423043098385cdbec362a7))
|
|
151
|
-
|
|
152
|
-
##### Bug Fixes
|
|
153
|
-
|
|
154
|
-
* **test:** fix US verification test ([a0f10925](https://github.com/lob/lob-node/commit/a0f10925bd4e244d69c53c1e9097f3c04f70f5e5))
|
|
155
|
-
* **auto-verify:** update tests to manage auto-verify ([107eeae3](https://github.com/lob/lob-node/commit/107eeae3702290174438fd38ef0ab6d9193b3725))
|
|
156
|
-
|
|
157
|
-
##### Other Changes
|
|
158
|
-
|
|
159
|
-
* **postcards:** Remove message field from postcard ([c298fe4c](https://github.com/lob/lob-node/commit/c298fe4c5eace7d746b0215b3f7e5958ae0d18c8))
|
|
160
|
-
|
|
161
|
-
##### Refactors
|
|
162
|
-
|
|
163
|
-
* **object:** Use Object.prototype.call, instead of assuming objects inherit from Object.prototype ([#191](https://github.com/lob/lob-node/pull/191)) ([8648cb0c](https://github.com/lob/lob-node/commit/8648cb0cc192650352a061a8c110d09d7345ccf3))
|
|
164
|
-
|
|
165
|
-
##### Tests
|
|
166
|
-
|
|
167
|
-
* **intl:** Update international verifications tests ([5f38b3d3](https://github.com/lob/lob-node/commit/5f38b3d3df4b0d44bedd5bbbf5969a5279590b57))
|
|
168
|
-
|
|
169
|
-
#### 4.1.1 (2017-08-09)
|
|
170
|
-
|
|
171
|
-
##### Chores
|
|
172
|
-
|
|
173
|
-
* **examples:**
|
|
174
|
-
* update to use merge_variables ([cc6c2d3c](https://github.com/lob/lob-node/commit/cc6c2d3c96492f52e0c6a173380985fa691ee86b))
|
|
175
|
-
* Fix examples to use new us_verifications endpoint ([b6096944](https://github.com/lob/lob-node/commit/b6096944843d1a9ee67632ee6a27688bb3da381a))
|
|
176
|
-
|
|
177
|
-
##### New Features
|
|
178
|
-
|
|
179
|
-
* **idempotency-key:** Add optional headers argument to create() methods to support idempotency-key ([99ef7e92](https://github.com/lob/lob-node/commit/99ef7e92cc8e57608553abdd3b8acd38abe08cf3))
|
|
180
|
-
* **us-zip-lookups:** Add US Zip Code Lookup ([d51e8c8b](https://github.com/lob/lob-node/commit/d51e8c8b8f6a9facb1df94d80b230a2387a9e05f))
|
|
181
|
-
* **delete:** Add delete method to postcards, letters, and checks chore(ignore): ignore Sublime files ([aa340b57](https://github.com/lob/lob-node/commit/aa340b579cc87999dc7c0ed1cc571e30cefafbda))
|
|
182
|
-
|
|
183
|
-
##### Bug Fixes
|
|
184
|
-
|
|
185
|
-
* **readme:** update documentation ([73afa906](https://github.com/lob/lob-node/commit/73afa906bd393097a3a4d18988e80f8bf6c4308b))
|
|
186
|
-
|
|
187
|
-
#### 4.1.1 (2017-08-09)
|
|
188
|
-
|
|
189
|
-
##### Chores
|
|
190
|
-
|
|
191
|
-
* **examples:**
|
|
192
|
-
* update to use merge_variables ([cc6c2d3c](https://github.com/lob/lob-node/commit/cc6c2d3c96492f52e0c6a173380985fa691ee86b))
|
|
193
|
-
* Fix examples to use new us_verifications endpoint ([b6096944](https://github.com/lob/lob-node/commit/b6096944843d1a9ee67632ee6a27688bb3da381a))
|
|
194
|
-
|
|
195
|
-
##### New Features
|
|
196
|
-
|
|
197
|
-
* **idempotency-key:** Add optional headers argument to create() methods to support idempotency-key ([99ef7e92](https://github.com/lob/lob-node/commit/99ef7e92cc8e57608553abdd3b8acd38abe08cf3))
|
|
198
|
-
* **us-zip-lookups:** Add US Zip Code Lookup ([d51e8c8b](https://github.com/lob/lob-node/commit/d51e8c8b8f6a9facb1df94d80b230a2387a9e05f))
|
|
199
|
-
* **delete:** Add delete method to postcards, letters, and checks chore(ignore): ignore Sublime files ([aa340b57](https://github.com/lob/lob-node/commit/aa340b579cc87999dc7c0ed1cc571e30cefafbda))
|
|
200
|
-
|
|
201
|
-
##### Bug Fixes
|
|
202
|
-
|
|
203
|
-
* **readme:** update documentation ([73afa906](https://github.com/lob/lob-node/commit/73afa906bd393097a3a4d18988e80f8bf6c4308b))
|
|
204
|
-
|
|
205
|
-
## 4.0.0 (2017-5-17)
|
|
206
|
-
|
|
207
|
-
##### Chores
|
|
208
|
-
|
|
209
|
-
* **mock:** use mock.lob.com ([1fed1c75](https://github.com/lob/lob-node/commit/1fed1c753eeb4f6a0ec15ee4f3619c2758d7c08e))
|
|
210
|
-
* **jobs:** removes jobs, objects, settings endpoints ([bbfd446e](https://github.com/lob/lob-node/commit/bbfd446e85f43f870d1c40ed76f6ec7d9ffc8281))
|
|
211
|
-
|
|
212
|
-
##### Documentation Changes
|
|
213
|
-
|
|
214
|
-
* **contributing:** changed out-of-date link to valid ([96e21cff](https://github.com/lob/lob-node/commit/96e21cffa16efbe5c5cb3473368ca0362dfbb057))
|
|
215
|
-
|
|
216
|
-
##### New Features
|
|
217
|
-
|
|
218
|
-
* **verifications:** add us and intl verification endpoints ENG-2769 ([13f5ed8c](https://github.com/lob/lob-node/commit/13f5ed8c3b1297707f077116d5770dea35c283fa))
|
|
219
|
-
* **version:** support Node versions 0.12, 4, 5, and 6. ([7754b22f](https://github.com/lob/lob-node/commit/7754b22f020343b5adb93e4b9c2a5e8241023cfc))
|
|
220
|
-
|
|
221
|
-
##### Bug Fixes
|
|
222
|
-
|
|
223
|
-
* **test:** fixes broken address test ([f22dcf8d](https://github.com/lob/lob-node/commit/f22dcf8d6041c58e5dc766dbf0196d8d62a22130))
|
|
224
|
-
* **examples:** fix typo ([50bb5487](https://github.com/lob/lob-node/commit/50bb5487ea392d16dd5782b3f51fd398a911684a))
|
|
225
|
-
|
|
226
|
-
### 3.9.0 (2016-4-15)
|
|
227
|
-
|
|
228
|
-
##### New Features
|
|
229
|
-
|
|
230
|
-
* **response:** allow access to response headers ([3c4d6514](https://github.com/lob/lob-node/commit/3c4d65149a133b196385849a1296d55b360cc202))
|
|
231
|
-
* **api-version:** support 2016-03-21 ([a304c9cf](https://github.com/lob/lob-node/commit/a304c9cfe927138b8b37345c7ffd2c1fb9f0518f))
|
|
232
|
-
|
|
233
|
-
### 3.8.0 (2016-2-2)
|
|
234
|
-
|
|
235
|
-
##### Chores
|
|
236
|
-
|
|
237
|
-
* **release:** add release scripts ([7cc243eb](https://github.com/lob/lob-node/commit/7cc243eb))
|
|
238
|
-
|
|
239
|
-
##### New Features
|
|
240
|
-
|
|
241
|
-
* **version:** support api version 2016-01-19 ([6cb6cec0](https://github.com/lob/lob-node/commit/6cb6cec0))
|
|
242
|
-
* **bank-accounts:** standardize verify function ([1d0b37c2](https://github.com/lob/lob-node/commit/1d0b37c2))
|
|
243
|
-
* **deps:** remove gulp ([a2c164a7](https://github.com/lob/lob-node/commit/a2c164a7))
|
|
244
|
-
|
|
245
|
-
##### Bug Fixes
|
|
246
|
-
|
|
247
|
-
* **errors:** always throw Error object ([41c88f97](https://github.com/lob/lob-node/commit/41c88f97))
|
|
248
|
-
* **readme:** update testing instructions ([f193cb0a](https://github.com/lob/lob-node/commit/f193cb0a))
|
|
249
|
-
|
|
250
|
-
##### Tests
|
|
251
|
-
|
|
252
|
-
* **resources:** standardize and remove unnecessary tests ([ad0e45ed](https://github.com/lob/lob-node/commit/ad0e45ed))
|
|
253
|
-
* **setup:** use global expect, api key, Lob ([6e44ce0b](https://github.com/lob/lob-node/commit/6e44ce0b))
|
|
254
|
-
|
|
255
|
-
## [**2.6.2**](https://github.com/lob/lob-node/releases/tag/v2.6.2)
|
|
256
|
-
- [**#88**] (https://github.com/lob/lob-node/pull/88) changed asset URLs to use lob-assets bucket
|