From 7ad1ca8d058c484a1977516766bfecdb11814b8a Mon Sep 17 00:00:00 2001 From: "Alex Rattray (Stripe)" Date: Fri, 9 Aug 2019 15:40:34 -0700 Subject: [PATCH] [codegen] Remove subscription schedule revisions (#675) * Codegen for openapi c806fa1 * Remove tests for subscription schedule revisions --- lib/resources/SubscriptionSchedules.js | 11 -------- test/resources/SubscriptionSchedule.spec.js | 30 --------------------- 2 files changed, 41 deletions(-) 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: {}, - }); - }); - }); - }); });