diff --git a/lib/resources/Terminal/Locations.js b/lib/resources/Terminal/Locations.js index 14b18d6e61..0f2dccaf03 100644 --- a/lib/resources/Terminal/Locations.js +++ b/lib/resources/Terminal/Locations.js @@ -4,5 +4,5 @@ var StripeResource = require('../../StripeResource'); module.exports = StripeResource.extend({ path: 'terminal/locations', - includeBasic: ['create', 'list', 'retrieve', 'update'], + includeBasic: ['create', 'list', 'retrieve', 'update', 'del'], }) diff --git a/lib/resources/Terminal/Readers.js b/lib/resources/Terminal/Readers.js index 153794f6ea..a4b2322a4e 100644 --- a/lib/resources/Terminal/Readers.js +++ b/lib/resources/Terminal/Readers.js @@ -4,5 +4,5 @@ var StripeResource = require('../../StripeResource'); module.exports = StripeResource.extend({ path: 'terminal/readers', - includeBasic: ['create', 'list', 'retrieve', 'update'], + includeBasic: ['create', 'list', 'retrieve', 'update', 'del'], }) diff --git a/test/resources/Terminal/Locations.spec.js b/test/resources/Terminal/Locations.spec.js index c724062706..bc6f7b41ae 100644 --- a/test/resources/Terminal/Locations.spec.js +++ b/test/resources/Terminal/Locations.spec.js @@ -49,6 +49,18 @@ describe('Terminal', function () { }); }); + describe('del', function() { + it('Sends the correct request', function() { + stripe.terminal.locations.del('loc_123'); + expect(stripe.LAST_REQUEST).to.deep.equal({ + method: 'DELETE', + url: '/v1/terminal/locations/loc_123', + headers: {}, + data: {}, + }); + }); + }); + describe('update', function () { it('Sends the correct request', function () { stripe.terminal.locations.update('loc_123', { diff --git a/test/resources/Terminal/Readers.spec.js b/test/resources/Terminal/Readers.spec.js index 37afb4dfb7..c3739c2b39 100644 --- a/test/resources/Terminal/Readers.spec.js +++ b/test/resources/Terminal/Readers.spec.js @@ -37,6 +37,18 @@ describe('Terminal', function () { }); }); + describe('del', function() { + it('Sends the correct request', function() { + stripe.terminal.readers.del('rdr_123'); + expect(stripe.LAST_REQUEST).to.deep.equal({ + method: 'DELETE', + url: '/v1/terminal/readers/rdr_123', + headers: {}, + data: {}, + }); + }); + }); + describe('update', function () { it('Sends the correct request', function () { stripe.terminal.readers.update('rdr_123', {