Skip to content

Commit

Permalink
Codegen for openapi v196
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe committed Sep 26, 2022
1 parent e42079d commit 2cf9632
Show file tree
Hide file tree
Showing 38 changed files with 1,168 additions and 34 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v185
v196
11 changes: 11 additions & 0 deletions lib/resources.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions lib/resources/AccountSessions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions lib/resources/Capital/FinancingOffers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions lib/resources/Capital/FinancingSummary.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions lib/resources/Capital/FinancingTransactions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions lib/resources/GiftCards/Cards.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions lib/resources/GiftCards/Transactions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions lib/resources/QuotePhases.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions lib/resources/SubscriptionSchedules.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions lib/resources/Terminal/Readers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions src/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
// Support Accounts for consistency, Account for backwards compatibility
Account: require('./resources/Accounts'),
AccountLinks: require('./resources/AccountLinks'),
AccountSessions: require('./resources/AccountSessions'),
ApplePayDomains: require('./resources/ApplePayDomains'),
ApplicationFees: require('./resources/ApplicationFees'),
Balance: require('./resources/Balance'),
Expand Down Expand Up @@ -38,6 +39,7 @@ module.exports = {
Products: require('./resources/Products'),
PromotionCodes: require('./resources/PromotionCodes'),
Quotes: require('./resources/Quotes'),
QuotePhases: require('./resources/QuotePhases'),
Refunds: require('./resources/Refunds'),
Reviews: require('./resources/Reviews'),
SetupAttempts: require('./resources/SetupAttempts'),
Expand All @@ -61,13 +63,22 @@ module.exports = {
Configurations: require('./resources/BillingPortal/Configurations'),
Sessions: require('./resources/BillingPortal/Sessions'),
}),
Capital: resourceNamespace('capital', {
FinancingOffers: require('./resources/Capital/FinancingOffers'),
FinancingSummary: require('./resources/Capital/FinancingSummary'),
FinancingTransactions: require('./resources/Capital/FinancingTransactions'),
}),
Checkout: resourceNamespace('checkout', {
Sessions: require('./resources/Checkout/Sessions'),
}),
FinancialConnections: resourceNamespace('financialConnections', {
Accounts: require('./resources/FinancialConnections/Accounts'),
Sessions: require('./resources/FinancialConnections/Sessions'),
}),
GiftCards: resourceNamespace('giftCards', {
Cards: require('./resources/GiftCards/Cards'),
Transactions: require('./resources/GiftCards/Transactions'),
}),
Identity: resourceNamespace('identity', {
VerificationReports: require('./resources/Identity/VerificationReports'),
VerificationSessions: require('./resources/Identity/VerificationSessions'),
Expand Down
15 changes: 15 additions & 0 deletions src/resources/AccountSessions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// File generated from our OpenAPI spec

'use strict';

const StripeResource = require('../StripeResource');
const stripeMethod = StripeResource.method;

module.exports = StripeResource.extend({
path: 'account_sessions',

create: stripeMethod({
method: 'POST',
path: '',
}),
});
26 changes: 26 additions & 0 deletions src/resources/Capital/FinancingOffers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// File generated from our OpenAPI spec

'use strict';

const StripeResource = require('../../StripeResource');
const stripeMethod = StripeResource.method;

module.exports = StripeResource.extend({
path: 'capital/financing_offers',

retrieve: stripeMethod({
method: 'GET',
path: '/{financingOffer}',
}),

list: stripeMethod({
method: 'GET',
path: '',
methodType: 'list',
}),

markDelivered: stripeMethod({
method: 'POST',
path: '/{financingOffer}/mark_delivered',
}),
});
15 changes: 15 additions & 0 deletions src/resources/Capital/FinancingSummary.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// File generated from our OpenAPI spec

'use strict';

const StripeResource = require('../../StripeResource');
const stripeMethod = StripeResource.method;

module.exports = StripeResource.extend({
path: 'capital/financing_summary',

retrieve: stripeMethod({
method: 'GET',
path: '',
}),
});
21 changes: 21 additions & 0 deletions src/resources/Capital/FinancingTransactions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// File generated from our OpenAPI spec

'use strict';

const StripeResource = require('../../StripeResource');
const stripeMethod = StripeResource.method;

module.exports = StripeResource.extend({
path: 'capital/financing_transactions',

retrieve: stripeMethod({
method: 'GET',
path: '/{financingTransaction}',
}),

list: stripeMethod({
method: 'GET',
path: '',
methodType: 'list',
}),
});
36 changes: 36 additions & 0 deletions src/resources/GiftCards/Cards.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// File generated from our OpenAPI spec

'use strict';

const StripeResource = require('../../StripeResource');
const stripeMethod = StripeResource.method;

module.exports = StripeResource.extend({
path: 'gift_cards/cards',

create: stripeMethod({
method: 'POST',
path: '',
}),

retrieve: stripeMethod({
method: 'GET',
path: '/{id}',
}),

update: stripeMethod({
method: 'POST',
path: '/{id}',
}),

list: stripeMethod({
method: 'GET',
path: '',
methodType: 'list',
}),

validate: stripeMethod({
method: 'POST',
path: '/validate',
}),
});
Loading

0 comments on commit 2cf9632

Please sign in to comment.