diff --git a/lib/resources/SubscriptionSchedules.js b/lib/resources/SubscriptionSchedules.js index 73689a96e2..9409315d19 100644 --- a/lib/resources/SubscriptionSchedules.js +++ b/lib/resources/SubscriptionSchedules.js @@ -17,15 +17,4 @@ module.exports = StripeResource.extend({ method: 'POST', path: '/{schedule}/release', }), - - listRevisions: stripeMethod({ - method: 'GET', - path: '/{schedule}/revisions', - methodType: 'list', - }), - - retrieveRevision: stripeMethod({ - method: 'GET', - path: '/{schedule}/revisions/{revision}', - }), }); diff --git a/test/resources/SubscriptionSchedule.spec.js b/test/resources/SubscriptionSchedule.spec.js index 68107b3382..1eebd70a3f 100644 --- a/test/resources/SubscriptionSchedule.spec.js +++ b/test/resources/SubscriptionSchedule.spec.js @@ -4,7 +4,6 @@ const stripe = require('../../testUtils').getSpyableStripe(); const expect = require('chai').expect; const SCHEDULE_TEST_ID = 'sub_sched_123'; -const REVISION_TEST_ID = 'sub_sched_rev_123'; describe('Subscription Schedule Resource', () => { describe('cancel', () => { @@ -88,33 +87,4 @@ describe('Subscription Schedule Resource', () => { }); }); }); - - describe('Revision methods', () => { - describe('retrieveRevision', () => { - it('Sends the correct request', () => { - stripe.subscriptionSchedules.retrieveRevision( - SCHEDULE_TEST_ID, - REVISION_TEST_ID - ); - expect(stripe.LAST_REQUEST).to.deep.equal({ - method: 'GET', - url: `/v1/subscription_schedules/${SCHEDULE_TEST_ID}/revisions/${REVISION_TEST_ID}`, - headers: {}, - data: {}, - }); - }); - }); - - describe('listRevisions', () => { - it('Sends the correct request', () => { - stripe.subscriptionSchedules.listRevisions(SCHEDULE_TEST_ID); - expect(stripe.LAST_REQUEST).to.deep.equal({ - method: 'GET', - url: `/v1/subscription_schedules/${SCHEDULE_TEST_ID}/revisions`, - headers: {}, - data: {}, - }); - }); - }); - }); });