lob 6.5.2 → 6.5.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,278 @@
1
+ ### 6.5.3 (2022-01-04)
2
+
3
+ ##### Features
4
+ * **templates** add support for HTML templates endpoint ([PR_258](https://github.com/lob/lob-node/pull/258))
5
+
6
+ ### 6.5.2 (2021-10-18)
7
+
8
+ ##### Bug Fix
9
+ * **cards:** adds card update route to expose cards update endpoint in SDK. ([PR_256](https://github.com/lob/lob-node/pull/256)) ([6870842](https://github.com/lob/lob-node/pull/256/commits/68708423b03c40c277a183285920b1408d234e4b))
10
+
11
+ ### 6.5.1 (2021-10-14)
12
+
13
+ ##### Bug Fix
14
+ * **card orders:** updates the card orders "quantity_ordered" field to "quantity" in the integration test & example to reflect the recent change in Lob API endpoint for creating card orders. ([PR_254](https://github.com/lob/lob-node/pull/254)) ([9d3a261](https://github.com/lob/lob-node/commit/9d3a261ea3e9dace1e5cd79f43c5cdb40568f6c2))
15
+
16
+ ### 6.5.0 (2021-10-13)
17
+
18
+ ##### Features
19
+ * **cards:** add support for cards endpoint ([PR_252](https://github.com/lob/lob-node/pull/252)) ([e744da5](https://github.com/lob/lob-node/pull/252/commits/e744da5a96543ef4df8245a554e2cf325b79bdfd))
20
+ * **card_orders:** add support for card orders endpoint ([PR_252](https://github.com/lob/lob-node/pull/252)) ([35bc050](https://github.com/lob/lob-node/pull/252/commits/35bc05046e2cd06029dec6e8799f82481cd2078a))
21
+ * **examples:** add examples for creating a card and card order ([PR_252](https://github.com/lob/lob-node/pull/252)) ([1c41494](https://github.com/lob/lob-node/pull/252/commits/1c41494d6a46414f2f9bd5bcd26ed589cff39a06))
22
+
23
+ ### 6.4.0 (2021-09-21)
24
+
25
+ ##### New Features
26
+
27
+ * **us_verifications:** Reverse Geocoding endpoint ([#250](https://github.com/lob/lob-node/pull/250)) ([ea1e49df](https://github.com/lob/lob-node/commit/ea1e49df8cace3938acd34811100e8df553a8180))
28
+ * **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))
29
+
30
+ ### 6.3.0 (2021-08-27)
31
+
32
+ #### 6.2.1 (2021-07-28)
33
+
34
+ ##### Chores
35
+
36
+ * **deps:**
37
+ * 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))
38
+ * 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))
39
+ * 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))
40
+ * 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))
41
+ * 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))
42
+ * 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))
43
+ * **node14:** add node14 for travis ([#240](https://github.com/lob/lob-node/pull/240)) ([15d83747](https://github.com/lob/lob-node/commit/15d8374798a9f9c79dd6a5db9d566ac285b84b95))
44
+
45
+ #### 6.2.0 (2021-05-03)
46
+
47
+ ##### New Features
48
+
49
+ * **self-mailers:** Add support for Self Mailers ([#236](https://github.com/lob/lob-node/pull/236))
50
+
51
+ ##### Chores
52
+
53
+ * **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))
54
+
55
+ ##### Bug Fixes
56
+
57
+ * **README:** correct Bank Accounts documentation link ([#234](https://github.com/lob/lob-node/pull/234)) ([f7f7609d](https://github.com/lob/lob-node/commit/f7f7609d439f1a6187af2b4f7f7a8765f3d47ea5))
58
+
59
+ #### 6.1.1 (2020-11-06)
60
+
61
+ ##### Bug Fixes
62
+
63
+ * **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))
64
+
65
+ ### 6.1.0 (2020-04-15)
66
+
67
+ ##### Chores
68
+
69
+ * **deps:**
70
+ * csv-parse@4.4.6, travis node v12, docs (#222) ([7ca4eb05](https://github.com/lob/lob-node/commit/7ca4eb05c8fb149bfdbf3c4fd3e9ed119e73e7d1))
71
+ * bump eslint-utils from 1.4.0 to 1.4.2 (#217) ([212789c8](https://github.com/lob/lob-node/commit/212789c894189544e8710c0ec1619d6fcd76b3d4))
72
+
73
+ ##### New Features
74
+
75
+ * **resource:** add ability to specify custom HTTP agent (#224) ([bf925b1c](https://github.com/lob/lob-node/commit/bf925b1c3e54babdd9151de0d1b46ed97b4d61cb))
76
+
77
+ ##### Bug Fixes
78
+
79
+ * **intl-verifications:** fixed failing test (#219) ([f2b712ad](https://github.com/lob/lob-node/commit/f2b712ad93af4237a4dbb1ba565bc034a9856710))
80
+
81
+ ##### Tests
82
+
83
+ * **plc:** add tests for new versions (template syntax and cursor pagination) (#226) ([d5806217](https://github.com/lob/lob-node/commit/d580621732acec840bb28532ecb8eb9132e64b3b))
84
+
85
+ #### 6.0.6 (2019-07-19)
86
+
87
+ ##### Chores
88
+
89
+ * **deps:**
90
+ * upgrade vulnerable packages ([#216](https://github.com/lob/lob-node/pull/216)) ([a938fc23](https://github.com/lob/lob-node/commit/a938fc23caf38b87ea6791219d4883e862cdd1c9))
91
+ * 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))
92
+
93
+ #### 6.0.5 (2019-02-14)
94
+
95
+ ##### Chores
96
+
97
+ * **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))
98
+
99
+ #### 6.0.4 (2019-01-30)
100
+
101
+ ##### New Features
102
+
103
+ * **postcards:** add ability to modify concurrency ([4a3bbf37](https://github.com/lob/lob-node/commit/4a3bbf373727c7c2bd9098b8425988a4adfd70d8))
104
+
105
+ ##### Bug Fixes
106
+
107
+ * **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))
108
+
109
+ #### 6.0.3 (2019-1-7)
110
+
111
+ ##### Chores
112
+
113
+ * **assets:** update links ([5d7f66f0](https://github.com/lob/lob-node/commit/5d7f66f0487151a3b50b8d4581fe5b2cfa9474a9))
114
+
115
+ ##### Tests
116
+
117
+ * **api-key:**
118
+ * remove lob api key from tests and examples ([93fee77a](https://github.com/lob/lob-node/commit/93fee77a156c53eb9454fc0be3a4d220e1943d08))
119
+ * remove lob api key from tests and examples ([062022b3](https://github.com/lob/lob-node/commit/062022b3cc89b921db4a1dec863d687d0db9dabb))
120
+
121
+ #### 6.0.2 (2018-12-3)
122
+
123
+ ##### Bug Fixes
124
+
125
+ * **resource-base:** default body to empty object ([70f9c804](https://github.com/lob/lob-node/commit/70f9c804e1dabd2360afcf307e2e98b4787d46d9))
126
+ * **deps:**
127
+ * upgrade rest of vulnerable deps ([3b84d7e0](https://github.com/lob/lob-node/commit/3b84d7e09b29b7cbd4718396f8fba7d74bc5b7ec))
128
+ * upgrade mocha (and growl) version ([95bdf700](https://github.com/lob/lob-node/commit/95bdf700d99986d03cb85ad09d300df1557e8abf))
129
+ * **addresses:** fix broken test (#202) ([e560d6bc](https://github.com/lob/lob-node/commit/e560d6bc207f8d5964470ce1b9b9883829f198e3))
130
+
131
+ #### 6.0.1 (2018-8-7)
132
+
133
+ ##### Bug Fixes
134
+
135
+ * **headers:** don't save request specific headers in configs (#201) ([cfa0fb19](https://github.com/lob/lob-node/commit/cfa0fb191581aef2aa4a42c8ca554446700956d8))
136
+
137
+ ## 6.0.0 (2018-07-02)
138
+
139
+ ##### New Features
140
+
141
+ * **area-mail:** remove areas and routes resources ([a17d234d](https://github.com/lob/lob-node/commit/a17d234da61f38c9a254642109a85aa6a5622810))
142
+
143
+ ### 5.3.0 (2018-05-21)
144
+
145
+ ##### New Features
146
+
147
+ * **us-autocompletions:** add USAutocompletions ([b64b02db](https://github.com/lob/lob-node/commit/b64b02db3712d92a6934c37629c804debdfcb42c))
148
+
149
+ ##### Bug Fixes
150
+
151
+ * **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))
152
+
153
+ ### 5.2.0 (2018-3-13)
154
+
155
+ ##### New Features
156
+
157
+ * **us-verifications:** allow passing queries in verification creation (#197) ([84b9a44a](https://github.com/lob/lob-node/commit/84b9a44a0044eccc33bc8e1a839c54f9ae5cb067))
158
+
159
+ ### 5.1.0 (2018-02-22)
160
+
161
+ ##### Refactors
162
+
163
+ * **resources:** remove dynamic requires ([#196](https://github.com/lob/lob-node/pull/196)) ([4036cdda](https://github.com/lob/lob-node/commit/4036cdda417fc859dbe737eef48c78d97e38c1a8))
164
+
165
+ ## 5.0.0 (2017-12-11)
166
+
167
+ ##### Chores
168
+
169
+ * **lib:**
170
+ * use es6 classes ([38ee703e](https://github.com/lob/lob-node/commit/38ee703e2e03703d4029a922144db53d51320c01))
171
+ * es6 ify resource and test files ([fbd106f3](https://github.com/lob/lob-node/commit/fbd106f3554dafefc6c0e99d24959eaf7970b6fb))
172
+ * **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))
173
+
174
+ ##### Bug Fixes
175
+
176
+ * **test:** fix US verification test ([a0f10925](https://github.com/lob/lob-node/commit/a0f10925bd4e244d69c53c1e9097f3c04f70f5e5))
177
+ * **auto-verify:** update tests to manage auto-verify ([107eeae3](https://github.com/lob/lob-node/commit/107eeae3702290174438fd38ef0ab6d9193b3725))
178
+
179
+ ##### Other Changes
180
+
181
+ * **postcards:** Remove message field from postcard ([c298fe4c](https://github.com/lob/lob-node/commit/c298fe4c5eace7d746b0215b3f7e5958ae0d18c8))
182
+
183
+ ##### Refactors
184
+
185
+ * **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))
186
+
187
+ ##### Tests
188
+
189
+ * **intl:** Update international verifications tests ([5f38b3d3](https://github.com/lob/lob-node/commit/5f38b3d3df4b0d44bedd5bbbf5969a5279590b57))
190
+
191
+ #### 4.1.1 (2017-08-09)
192
+
193
+ ##### Chores
194
+
195
+ * **examples:**
196
+ * update to use merge_variables ([cc6c2d3c](https://github.com/lob/lob-node/commit/cc6c2d3c96492f52e0c6a173380985fa691ee86b))
197
+ * Fix examples to use new us_verifications endpoint ([b6096944](https://github.com/lob/lob-node/commit/b6096944843d1a9ee67632ee6a27688bb3da381a))
198
+
199
+ ##### New Features
200
+
201
+ * **idempotency-key:** Add optional headers argument to create() methods to support idempotency-key ([99ef7e92](https://github.com/lob/lob-node/commit/99ef7e92cc8e57608553abdd3b8acd38abe08cf3))
202
+ * **us-zip-lookups:** Add US Zip Code Lookup ([d51e8c8b](https://github.com/lob/lob-node/commit/d51e8c8b8f6a9facb1df94d80b230a2387a9e05f))
203
+ * **delete:** Add delete method to postcards, letters, and checks chore(ignore): ignore Sublime files ([aa340b57](https://github.com/lob/lob-node/commit/aa340b579cc87999dc7c0ed1cc571e30cefafbda))
204
+
205
+ ##### Bug Fixes
206
+
207
+ * **readme:** update documentation ([73afa906](https://github.com/lob/lob-node/commit/73afa906bd393097a3a4d18988e80f8bf6c4308b))
208
+
209
+ #### 4.1.1 (2017-08-09)
210
+
211
+ ##### Chores
212
+
213
+ * **examples:**
214
+ * update to use merge_variables ([cc6c2d3c](https://github.com/lob/lob-node/commit/cc6c2d3c96492f52e0c6a173380985fa691ee86b))
215
+ * Fix examples to use new us_verifications endpoint ([b6096944](https://github.com/lob/lob-node/commit/b6096944843d1a9ee67632ee6a27688bb3da381a))
216
+
217
+ ##### New Features
218
+
219
+ * **idempotency-key:** Add optional headers argument to create() methods to support idempotency-key ([99ef7e92](https://github.com/lob/lob-node/commit/99ef7e92cc8e57608553abdd3b8acd38abe08cf3))
220
+ * **us-zip-lookups:** Add US Zip Code Lookup ([d51e8c8b](https://github.com/lob/lob-node/commit/d51e8c8b8f6a9facb1df94d80b230a2387a9e05f))
221
+ * **delete:** Add delete method to postcards, letters, and checks chore(ignore): ignore Sublime files ([aa340b57](https://github.com/lob/lob-node/commit/aa340b579cc87999dc7c0ed1cc571e30cefafbda))
222
+
223
+ ##### Bug Fixes
224
+
225
+ * **readme:** update documentation ([73afa906](https://github.com/lob/lob-node/commit/73afa906bd393097a3a4d18988e80f8bf6c4308b))
226
+
227
+ ## 4.0.0 (2017-5-17)
228
+
229
+ ##### Chores
230
+
231
+ * **mock:** use mock.lob.com ([1fed1c75](https://github.com/lob/lob-node/commit/1fed1c753eeb4f6a0ec15ee4f3619c2758d7c08e))
232
+ * **jobs:** removes jobs, objects, settings endpoints ([bbfd446e](https://github.com/lob/lob-node/commit/bbfd446e85f43f870d1c40ed76f6ec7d9ffc8281))
233
+
234
+ ##### Documentation Changes
235
+
236
+ * **contributing:** changed out-of-date link to valid ([96e21cff](https://github.com/lob/lob-node/commit/96e21cffa16efbe5c5cb3473368ca0362dfbb057))
237
+
238
+ ##### New Features
239
+
240
+ * **verifications:** add us and intl verification endpoints ENG-2769 ([13f5ed8c](https://github.com/lob/lob-node/commit/13f5ed8c3b1297707f077116d5770dea35c283fa))
241
+ * **version:** support Node versions 0.12, 4, 5, and 6. ([7754b22f](https://github.com/lob/lob-node/commit/7754b22f020343b5adb93e4b9c2a5e8241023cfc))
242
+
243
+ ##### Bug Fixes
244
+
245
+ * **test:** fixes broken address test ([f22dcf8d](https://github.com/lob/lob-node/commit/f22dcf8d6041c58e5dc766dbf0196d8d62a22130))
246
+ * **examples:** fix typo ([50bb5487](https://github.com/lob/lob-node/commit/50bb5487ea392d16dd5782b3f51fd398a911684a))
247
+
248
+ ### 3.9.0 (2016-4-15)
249
+
250
+ ##### New Features
251
+
252
+ * **response:** allow access to response headers ([3c4d6514](https://github.com/lob/lob-node/commit/3c4d65149a133b196385849a1296d55b360cc202))
253
+ * **api-version:** support 2016-03-21 ([a304c9cf](https://github.com/lob/lob-node/commit/a304c9cfe927138b8b37345c7ffd2c1fb9f0518f))
254
+
255
+ ### 3.8.0 (2016-2-2)
256
+
257
+ ##### Chores
258
+
259
+ * **release:** add release scripts ([7cc243eb](https://github.com/lob/lob-node/commit/7cc243eb))
260
+
261
+ ##### New Features
262
+
263
+ * **version:** support api version 2016-01-19 ([6cb6cec0](https://github.com/lob/lob-node/commit/6cb6cec0))
264
+ * **bank-accounts:** standardize verify function ([1d0b37c2](https://github.com/lob/lob-node/commit/1d0b37c2))
265
+ * **deps:** remove gulp ([a2c164a7](https://github.com/lob/lob-node/commit/a2c164a7))
266
+
267
+ ##### Bug Fixes
268
+
269
+ * **errors:** always throw Error object ([41c88f97](https://github.com/lob/lob-node/commit/41c88f97))
270
+ * **readme:** update testing instructions ([f193cb0a](https://github.com/lob/lob-node/commit/f193cb0a))
271
+
272
+ ##### Tests
273
+
274
+ * **resources:** standardize and remove unnecessary tests ([ad0e45ed](https://github.com/lob/lob-node/commit/ad0e45ed))
275
+ * **setup:** use global expect, api key, Lob ([6e44ce0b](https://github.com/lob/lob-node/commit/6e44ce0b))
276
+
277
+ ## [**2.6.2**](https://github.com/lob/lob-node/releases/tag/v2.6.2)
278
+ - [**#88**] (https://github.com/lob/lob-node/pull/88) changed asset URLs to use lob-assets bucket
@@ -15,5 +15,6 @@ module.exports = {
15
15
  usAutocompletions: require('./usAutocompletions'),
16
16
  usReverseGeocodeLookups: require('./usReverseGeocodeLookups'),
17
17
  usVerifications: require('./usVerifications'),
18
- usZipLookups: require('./usZipLookups')
18
+ usZipLookups: require('./usZipLookups'),
19
+ templates: require('./templates')
19
20
  };
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ const ResourceBase = require('./resourceBase');
4
+
5
+ class Template extends ResourceBase {
6
+ constructor (config) {
7
+ super('templates', config);
8
+ }
9
+
10
+ list (options, callback) {
11
+ if (typeof options === 'function') {
12
+ callback = options;
13
+ options = {};
14
+ }
15
+
16
+ return this._transmit('GET', null, options, null, callback);
17
+ }
18
+
19
+ create (options, callback) {
20
+ return this._transmit('POST', null, null, options, callback);
21
+ }
22
+
23
+ retrieve (id, callback) {
24
+ return this._transmit('GET', id, null, null, callback);
25
+ }
26
+
27
+ delete (id, callback) {
28
+ return this._transmit('DELETE', id, null, null, callback);
29
+ }
30
+ }
31
+
32
+ module.exports = Template;
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "Lob.com",
11
11
  "printing"
12
12
  ],
13
- "version": "6.5.2",
13
+ "version": "6.5.3",
14
14
  "homepage": "https://github.com/lob/lob-node",
15
15
  "author": "Lob <support@lob.com> (https://lob.com/)",
16
16
  "dependencies": {
@@ -46,7 +46,7 @@
46
46
  "test-no-cover": "cross-env NODE_ENV=test mocha test --recursive --timeout 30000",
47
47
  "coverage": "nyc report --reporter=text",
48
48
  "enforce": "nyc check-coverage --statements 100 --lines 100 --functions 100 --branches 100",
49
- "coveralls": "nyc report --reporter=text-lcov | coveralls",
49
+ "test-lcov": "nyc report --reporter=lcov",
50
50
  "lint": "eslint .",
51
51
  "lint:fix": "eslint . --fix",
52
52
  "release:patch": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags",