Skip to content

Commit

Permalink
[codegen] Remove subscription schedule revisions (#675)
Browse files Browse the repository at this point in the history
* Codegen for openapi c806fa1

* Remove tests for subscription schedule revisions
  • Loading branch information
rattrayalex-stripe authored Aug 9, 2019
1 parent 3009f30 commit 7ad1ca8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
11 changes: 0 additions & 11 deletions lib/resources/SubscriptionSchedules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}',
}),
});
30 changes: 0 additions & 30 deletions test/resources/SubscriptionSchedule.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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: {},
});
});
});
});
});

0 comments on commit 7ad1ca8

Please sign in to comment.