Skip to content

Commit

Permalink
Codegen for openapi v212
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe committed Dec 8, 2022
1 parent 495db76 commit 3d3a0a5
Show file tree
Hide file tree
Showing 70 changed files with 7,328 additions and 10,243 deletions.
17 changes: 8 additions & 9 deletions lib/resources.js

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

3 changes: 1 addition & 2 deletions lib/resources/AccountSessions.js

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

7 changes: 3 additions & 4 deletions lib/resources/Capital/FinancingOffers.js

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

3 changes: 1 addition & 2 deletions lib/resources/Capital/FinancingSummary.js

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

5 changes: 2 additions & 3 deletions lib/resources/Capital/FinancingTransactions.js

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

11 changes: 5 additions & 6 deletions lib/resources/GiftCards/Cards.js

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

13 changes: 6 additions & 7 deletions lib/resources/GiftCards/Transactions.js

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

40 changes: 40 additions & 0 deletions lib/resources/Orders.js

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

7 changes: 3 additions & 4 deletions lib/resources/QuotePhases.js

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

2 changes: 1 addition & 1 deletion lib/resources/SubscriptionSchedules.js

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

2 changes: 1 addition & 1 deletion lib/resources/Terminal/Readers.js

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

17 changes: 8 additions & 9 deletions src/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
const resourceNamespace = require('./ResourceNamespace');

module.exports = {
Accounts: require('./resources/Accounts'),
// Support Accounts for consistency, Account for backwards compatibility
Account: require('./resources/Accounts'),
AccountLinks: require('./resources/AccountLinks'),
Accounts: require('./resources/Accounts'),
AccountSessions: require('./resources/AccountSessions'),
ApplePayDomains: require('./resources/ApplePayDomains'),
ApplicationFees: require('./resources/ApplicationFees'),
Expand All @@ -23,10 +23,10 @@ module.exports = {
EphemeralKeys: require('./resources/EphemeralKeys'),
Events: require('./resources/Events'),
ExchangeRates: require('./resources/ExchangeRates'),
Files: require('./resources/Files'),
FileLinks: require('./resources/FileLinks'),
Invoices: require('./resources/Invoices'),
Files: require('./resources/Files'),
InvoiceItems: require('./resources/InvoiceItems'),
Invoices: require('./resources/Invoices'),
Mandates: require('./resources/Mandates'),
OAuth: require('./resources/OAuth'),
Orders: require('./resources/Orders'),
Expand All @@ -38,17 +38,16 @@ module.exports = {
Prices: require('./resources/Prices'),
Products: require('./resources/Products'),
PromotionCodes: require('./resources/PromotionCodes'),
Quotes: require('./resources/Quotes'),
QuotePhases: require('./resources/QuotePhases'),
Quotes: require('./resources/Quotes'),
Refunds: require('./resources/Refunds'),
Reviews: require('./resources/Reviews'),
SetupAttempts: require('./resources/SetupAttempts'),
SetupIntents: require('./resources/SetupIntents'),
ShippingRates: require('./resources/ShippingRates'),
Skus: require('./resources/SKUs'),
Sources: require('./resources/Sources'),
Subscriptions: require('./resources/Subscriptions'),
SubscriptionItems: require('./resources/SubscriptionItems'),
Subscriptions: require('./resources/Subscriptions'),
SubscriptionSchedules: require('./resources/SubscriptionSchedules'),
TaxCodes: require('./resources/TaxCodes'),
TaxRates: require('./resources/TaxRates'),
Expand Down Expand Up @@ -85,15 +84,15 @@ module.exports = {
}),
Issuing: resourceNamespace('issuing', {
Authorizations: require('./resources/Issuing/Authorizations'),
Cards: require('./resources/Issuing/Cards'),
Cardholders: require('./resources/Issuing/Cardholders'),
Cards: require('./resources/Issuing/Cards'),
Disputes: require('./resources/Issuing/Disputes'),
Transactions: require('./resources/Issuing/Transactions'),
}),
Radar: resourceNamespace('radar', {
EarlyFraudWarnings: require('./resources/Radar/EarlyFraudWarnings'),
ValueLists: require('./resources/Radar/ValueLists'),
ValueListItems: require('./resources/Radar/ValueListItems'),
ValueLists: require('./resources/Radar/ValueLists'),
}),
Reporting: resourceNamespace('reporting', {
ReportRuns: require('./resources/Reporting/ReportRuns'),
Expand Down Expand Up @@ -135,7 +134,7 @@ module.exports = {
OutboundTransfers: require('./resources/Treasury/OutboundTransfers'),
ReceivedCredits: require('./resources/Treasury/ReceivedCredits'),
ReceivedDebits: require('./resources/Treasury/ReceivedDebits'),
Transactions: require('./resources/Treasury/Transactions'),
TransactionEntries: require('./resources/Treasury/TransactionEntries'),
Transactions: require('./resources/Treasury/Transactions'),
}),
};
4 changes: 1 addition & 3 deletions src/resources/AccountSessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ const StripeResource = require('../StripeResource');
const stripeMethod = StripeResource.method;

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

create: stripeMethod({
method: 'POST',
path: '',
fullPath: '/v1/account_sessions',
}),
});
8 changes: 3 additions & 5 deletions src/resources/Capital/FinancingOffers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,19 @@ const StripeResource = require('../../StripeResource');
const stripeMethod = StripeResource.method;

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

retrieve: stripeMethod({
method: 'GET',
path: '/{financingOffer}',
fullPath: '/v1/capital/financing_offers/{financing_offer}',
}),

list: stripeMethod({
method: 'GET',
path: '',
fullPath: '/v1/capital/financing_offers',
methodType: 'list',
}),

markDelivered: stripeMethod({
method: 'POST',
path: '/{financingOffer}/mark_delivered',
fullPath: '/v1/capital/financing_offers/{financing_offer}/mark_delivered',
}),
});
Loading

0 comments on commit 3d3a0a5

Please sign in to comment.