stripe 18.5.0-beta.2 → 18.6.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +108 -0
- package/OPENAPI_VERSION +1 -1
- package/README.md +5 -3
- package/VERSION +1 -1
- package/cjs/Error.js +63 -55
- package/cjs/RequestSender.js +7 -4
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/Mandates.js +5 -0
- package/cjs/resources/Subscriptions.js +4 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/BillSettings.js +27 -0
- package/cjs/resources/V2/Billing/Cadences.js +23 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
- package/cjs/resources/V2/Billing/Intents.js +36 -0
- package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
- package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
- package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
- package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +17 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
- package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
- package/cjs/resources/V2/Billing/Profiles.js +19 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
- package/cjs/resources/V2/Billing/RateCards.js +29 -0
- package/cjs/resources/V2/Billing/ServiceActions.js +16 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js +12 -0
- package/cjs/resources/V2/Reporting/ReportRuns.js +13 -0
- package/cjs/resources/V2/Reporting/Reports.js +12 -0
- package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
- package/cjs/resources.js +64 -24
- package/cjs/stripe.core.js +27 -1
- package/esm/Error.js +50 -43
- package/esm/RequestSender.js +7 -4
- package/esm/apiVersion.js +1 -1
- package/esm/resources/Mandates.js +5 -0
- package/esm/resources/Subscriptions.js +4 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/BillSettings.js +24 -0
- package/esm/resources/V2/Billing/Cadences.js +20 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
- package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
- package/esm/resources/V2/Billing/Intents.js +33 -0
- package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
- package/esm/resources/V2/Billing/LicenseFees.js +24 -0
- package/esm/resources/V2/Billing/LicensedItems.js +22 -0
- package/esm/resources/V2/Billing/MeteredItems.js +19 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +14 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
- package/esm/resources/V2/Billing/PricingPlans.js +26 -0
- package/esm/resources/V2/Billing/Profiles.js +16 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
- package/esm/resources/V2/Billing/RateCards.js +26 -0
- package/esm/resources/V2/Billing/ServiceActions.js +13 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js +9 -0
- package/esm/resources/V2/Reporting/ReportRuns.js +10 -0
- package/esm/resources/V2/Reporting/Reports.js +9 -0
- package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
- package/esm/resources.js +45 -5
- package/esm/stripe.core.js +27 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +76 -13
- package/types/Accounts.d.ts +2 -2
- package/types/Balance.d.ts +2 -7
- package/types/BalanceSettings.d.ts +52 -46
- package/types/BalanceSettingsResource.d.ts +55 -46
- package/types/Billing/AlertTriggereds.d.ts +16 -1
- package/types/Billing/Alerts.d.ts +116 -1
- package/types/Billing/AlertsResource.d.ts +93 -2
- package/types/Billing/CreditBalanceSummary.d.ts +118 -2
- package/types/Billing/CreditBalanceSummaryResource.d.ts +12 -0
- package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
- package/types/Billing/CreditGrants.d.ts +71 -1
- package/types/Billing/CreditGrantsResource.d.ts +32 -1
- package/types/Billing/MeterUsageRows.d.ts +1 -1
- package/types/Billing/Meters.d.ts +1 -1
- package/types/Billing/MetersResource.d.ts +1 -1
- package/types/BillingPortal/Configurations.d.ts +5 -0
- package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
- package/types/Charges.d.ts +71 -5
- package/types/Checkout/Sessions.d.ts +128 -2
- package/types/Checkout/SessionsResource.d.ts +167 -3
- package/types/CreditNotesResource.d.ts +3 -3
- package/types/Disputes.d.ts +7 -2
- package/types/Errors.d.ts +51 -45
- package/types/FileLinksResource.d.ts +1 -1
- package/types/Files.d.ts +1 -0
- package/types/FilesResource.d.ts +3 -1
- package/types/InvoiceItems.d.ts +104 -2
- package/types/InvoiceLineItems.d.ts +113 -2
- package/types/InvoicePaymentsResource.d.ts +3 -0
- package/types/Invoices.d.ts +19 -2
- package/types/InvoicesResource.d.ts +64 -0
- package/types/Mandates.d.ts +58 -1
- package/types/MandatesResource.d.ts +31 -0
- package/types/PaymentAttemptRecords.d.ts +154 -9
- package/types/PaymentAttemptRecordsResource.d.ts +5 -0
- package/types/PaymentIntents.d.ts +136 -2
- package/types/PaymentIntentsResource.d.ts +280 -3
- package/types/PaymentLinksResource.d.ts +1 -1
- package/types/PaymentMethods.d.ts +5 -0
- package/types/PaymentRecords.d.ts +154 -9
- package/types/PaymentRecordsResource.d.ts +24 -3
- package/types/Payouts.d.ts +1 -1
- package/types/PromotionCodes.d.ts +5 -2
- package/types/QuotePreviewInvoices.d.ts +19 -2
- package/types/QuotePreviewSubscriptionSchedules.d.ts +47 -0
- package/types/SetupAttempts.d.ts +7 -1
- package/types/SetupIntents.d.ts +95 -1
- package/types/SetupIntentsResource.d.ts +207 -0
- package/types/SubscriptionSchedules.d.ts +47 -0
- package/types/SubscriptionSchedulesResource.d.ts +112 -0
- package/types/Subscriptions.d.ts +5 -0
- package/types/SubscriptionsResource.d.ts +145 -7
- package/types/Terminal/Configurations.d.ts +28 -0
- package/types/Terminal/ConfigurationsResource.d.ts +72 -0
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +28 -1
- package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
- package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/BillSettings.d.ts +120 -0
- package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
- package/types/V2/Billing/Cadences.d.ts +354 -0
- package/types/V2/Billing/CadencesResource.d.ts +489 -0
- package/types/V2/Billing/CollectionSettingVersions.d.ts +314 -0
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
- package/types/V2/Billing/CollectionSettings.d.ts +337 -0
- package/types/V2/Billing/CollectionSettingsResource.d.ts +675 -0
- package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
- package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
- package/types/V2/Billing/IntentActions.d.ts +458 -0
- package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
- package/types/V2/Billing/Intents.d.ts +117 -0
- package/types/V2/Billing/IntentsResource.d.ts +574 -0
- package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
- package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
- package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
- package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/LicenseFees.d.ts +163 -0
- package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
- package/types/V2/Billing/LicensedItems.d.ts +73 -0
- package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
- package/types/V2/Billing/MeteredItems.d.ts +101 -0
- package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
- package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
- package/types/V2/Billing/PricingPlanSubscriptions.d.ts +134 -0
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +93 -0
- package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
- package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
- package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/PricingPlans.d.ts +84 -0
- package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
- package/types/V2/Billing/Profiles.d.ts +70 -0
- package/types/V2/Billing/ProfilesResource.d.ts +150 -0
- package/types/V2/Billing/RateCardRates.d.ts +138 -0
- package/types/V2/Billing/RateCardSubscriptions.d.ts +134 -0
- package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
- package/types/V2/Billing/RateCardVersions.d.ts +39 -0
- package/types/V2/Billing/RateCards/RatesResource.d.ts +209 -0
- package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/RateCards.d.ts +98 -0
- package/types/V2/Billing/RateCardsResource.d.ts +162 -0
- package/types/V2/Billing/ServiceActions.d.ts +240 -0
- package/types/V2/Billing/ServiceActionsResource.d.ts +302 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +32 -0
- package/types/V2/Core/Accounts.d.ts +49 -0
- package/types/V2/Core/AccountsResource.d.ts +78 -0
- package/types/V2/Core/ClaimableSandboxes.d.ts +349 -0
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +310 -0
- package/types/V2/Core/Persons.d.ts +16 -0
- package/types/V2/EventTypes.d.ts +3682 -632
- package/types/V2/Events.d.ts +7 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +7 -2
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +5 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +1 -1
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +7 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +7 -0
- package/types/V2/Reporting/ReportRuns.d.ts +178 -0
- package/types/V2/Reporting/ReportRunsResource.d.ts +99 -0
- package/types/V2/Reporting/Reports.d.ts +120 -0
- package/types/V2/Reporting/ReportsResource.d.ts +30 -0
- package/types/V2/Tax/AutomaticRules.d.ts +53 -0
- package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/Webhooks.d.ts +2 -0
- package/types/index.d.ts +125 -5
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
package/cjs/stripe.core.js
CHANGED
|
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
36
36
|
];
|
|
37
37
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
38
38
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
39
|
-
Stripe.PACKAGE_VERSION = '18.
|
|
39
|
+
Stripe.PACKAGE_VERSION = '18.6.0-alpha.1';
|
|
40
40
|
Stripe.API_VERSION = apiVersion_js_1.ApiVersion;
|
|
41
41
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
42
42
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
@@ -358,6 +358,32 @@ function createStripe(platformFunctions, requestSender = defaultRequestSenderFac
|
|
|
358
358
|
// parses and validates the event payload all in one go
|
|
359
359
|
return this.webhooks.constructEvent(payload, header, secret, tolerance, cryptoProvider, receivedAt);
|
|
360
360
|
},
|
|
361
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
362
|
+
parseThinEvent__experimental(payload, header, secret, tolerance, cryptoProvider, receivedAt
|
|
363
|
+
// this return type is ignored?? picks up types from `types/index.d.ts` instead
|
|
364
|
+
) {
|
|
365
|
+
// parses and validates the event payload all in one go
|
|
366
|
+
// ideally would call the method above, but it's inaceessible
|
|
367
|
+
const thinEvent = this.webhooks.constructEvent(payload, header, secret, tolerance, cryptoProvider, receivedAt);
|
|
368
|
+
thinEvent.pull = () => {
|
|
369
|
+
// all the resources, like v2, get added later, but TS doesn't know about them yet
|
|
370
|
+
// hence the use of `any`
|
|
371
|
+
return this._requestSender._rawRequest('GET', '/v2/core/events/' + thinEvent.id, undefined, {
|
|
372
|
+
stripeAccount: thinEvent.context,
|
|
373
|
+
}, ['pull_event']);
|
|
374
|
+
};
|
|
375
|
+
if (thinEvent.related_object) {
|
|
376
|
+
thinEvent.fetchRelatedObject = () => {
|
|
377
|
+
return this._requestSender._rawRequest('GET',
|
|
378
|
+
// rawRequest takes a path, but events give a full URL
|
|
379
|
+
// this assumes that the event's URL matches client's base URL
|
|
380
|
+
new URL(thinEvent.related_object.url).pathname, undefined, {
|
|
381
|
+
stripeAccount: thinEvent.context,
|
|
382
|
+
}, ['pushed_event_fetch_related_object']);
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
return thinEvent;
|
|
386
|
+
},
|
|
361
387
|
};
|
|
362
388
|
return Stripe;
|
|
363
389
|
}
|
package/esm/Error.js
CHANGED
|
@@ -24,34 +24,36 @@ export const generateV1Error = (rawStripeError) => {
|
|
|
24
24
|
export const generateV2Error = (rawStripeError) => {
|
|
25
25
|
switch (rawStripeError.type) {
|
|
26
26
|
// switchCases: The beginning of the section generated from our OpenAPI spec
|
|
27
|
-
case '
|
|
28
|
-
return new
|
|
29
|
-
case 'non_zero_balance':
|
|
30
|
-
return new NonZeroBalanceError(rawStripeError);
|
|
27
|
+
case 'already_canceled':
|
|
28
|
+
return new AlreadyCanceledError(rawStripeError);
|
|
31
29
|
case 'already_exists':
|
|
32
30
|
return new AlreadyExistsError(rawStripeError);
|
|
31
|
+
case 'blocked_by_stripe':
|
|
32
|
+
return new BlockedByStripeError(rawStripeError);
|
|
33
|
+
case 'controlled_by_dashboard':
|
|
34
|
+
return new ControlledByDashboardError(rawStripeError);
|
|
33
35
|
case 'feature_not_enabled':
|
|
34
36
|
return new FeatureNotEnabledError(rawStripeError);
|
|
35
37
|
case 'financial_account_not_open':
|
|
36
38
|
return new FinancialAccountNotOpenError(rawStripeError);
|
|
37
|
-
case 'blocked_by_stripe':
|
|
38
|
-
return new BlockedByStripeError(rawStripeError);
|
|
39
|
-
case 'already_canceled':
|
|
40
|
-
return new AlreadyCanceledError(rawStripeError);
|
|
41
|
-
case 'not_cancelable':
|
|
42
|
-
return new NotCancelableError(rawStripeError);
|
|
43
39
|
case 'insufficient_funds':
|
|
44
40
|
return new InsufficientFundsError(rawStripeError);
|
|
41
|
+
case 'invalid_payment_method':
|
|
42
|
+
return new InvalidPaymentMethodError(rawStripeError);
|
|
43
|
+
case 'invalid_payout_method':
|
|
44
|
+
return new InvalidPayoutMethodError(rawStripeError);
|
|
45
|
+
case 'non_zero_balance':
|
|
46
|
+
return new NonZeroBalanceError(rawStripeError);
|
|
47
|
+
case 'not_cancelable':
|
|
48
|
+
return new NotCancelableError(rawStripeError);
|
|
45
49
|
case 'quota_exceeded':
|
|
46
50
|
return new QuotaExceededError(rawStripeError);
|
|
51
|
+
case 'rate_limit':
|
|
52
|
+
return new RateLimitError(rawStripeError);
|
|
47
53
|
case 'recipient_not_notifiable':
|
|
48
54
|
return new RecipientNotNotifiableError(rawStripeError);
|
|
49
|
-
case '
|
|
50
|
-
return new
|
|
51
|
-
case 'controlled_by_dashboard':
|
|
52
|
-
return new ControlledByDashboardError(rawStripeError);
|
|
53
|
-
case 'invalid_payment_method':
|
|
54
|
-
return new InvalidPaymentMethodError(rawStripeError);
|
|
55
|
+
case 'temporary_session_expired':
|
|
56
|
+
return new TemporarySessionExpiredError(rawStripeError);
|
|
55
57
|
// switchCases: The end of the section generated from our OpenAPI spec
|
|
56
58
|
}
|
|
57
59
|
// Special handling for requests with missing required fields in V2 APIs.
|
|
@@ -203,19 +205,24 @@ export class StripeUnknownError extends StripeError {
|
|
|
203
205
|
}
|
|
204
206
|
}
|
|
205
207
|
// classDefinitions: The beginning of the section generated from our OpenAPI spec
|
|
206
|
-
export class
|
|
208
|
+
export class AlreadyCanceledError extends StripeError {
|
|
207
209
|
constructor(rawStripeError = {}) {
|
|
208
|
-
super(rawStripeError, '
|
|
210
|
+
super(rawStripeError, 'AlreadyCanceledError');
|
|
209
211
|
}
|
|
210
212
|
}
|
|
211
|
-
export class
|
|
213
|
+
export class AlreadyExistsError extends StripeError {
|
|
212
214
|
constructor(rawStripeError = {}) {
|
|
213
|
-
super(rawStripeError, '
|
|
215
|
+
super(rawStripeError, 'AlreadyExistsError');
|
|
214
216
|
}
|
|
215
217
|
}
|
|
216
|
-
export class
|
|
218
|
+
export class BlockedByStripeError extends StripeError {
|
|
217
219
|
constructor(rawStripeError = {}) {
|
|
218
|
-
super(rawStripeError, '
|
|
220
|
+
super(rawStripeError, 'BlockedByStripeError');
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
export class ControlledByDashboardError extends StripeError {
|
|
224
|
+
constructor(rawStripeError = {}) {
|
|
225
|
+
super(rawStripeError, 'ControlledByDashboardError');
|
|
219
226
|
}
|
|
220
227
|
}
|
|
221
228
|
export class FeatureNotEnabledError extends StripeError {
|
|
@@ -228,24 +235,31 @@ export class FinancialAccountNotOpenError extends StripeError {
|
|
|
228
235
|
super(rawStripeError, 'FinancialAccountNotOpenError');
|
|
229
236
|
}
|
|
230
237
|
}
|
|
231
|
-
export class
|
|
238
|
+
export class InsufficientFundsError extends StripeError {
|
|
232
239
|
constructor(rawStripeError = {}) {
|
|
233
|
-
super(rawStripeError, '
|
|
240
|
+
super(rawStripeError, 'InsufficientFundsError');
|
|
234
241
|
}
|
|
235
242
|
}
|
|
236
|
-
export class
|
|
243
|
+
export class InvalidPaymentMethodError extends StripeError {
|
|
244
|
+
constructor(rawStripeError) {
|
|
245
|
+
super(rawStripeError, 'InvalidPaymentMethodError');
|
|
246
|
+
// @ts-ignore
|
|
247
|
+
this.invalid_param = this.raw.invalid_param;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
export class InvalidPayoutMethodError extends StripeError {
|
|
237
251
|
constructor(rawStripeError = {}) {
|
|
238
|
-
super(rawStripeError, '
|
|
252
|
+
super(rawStripeError, 'InvalidPayoutMethodError');
|
|
239
253
|
}
|
|
240
254
|
}
|
|
241
|
-
export class
|
|
255
|
+
export class NonZeroBalanceError extends StripeError {
|
|
242
256
|
constructor(rawStripeError = {}) {
|
|
243
|
-
super(rawStripeError, '
|
|
257
|
+
super(rawStripeError, 'NonZeroBalanceError');
|
|
244
258
|
}
|
|
245
259
|
}
|
|
246
|
-
export class
|
|
260
|
+
export class NotCancelableError extends StripeError {
|
|
247
261
|
constructor(rawStripeError = {}) {
|
|
248
|
-
super(rawStripeError, '
|
|
262
|
+
super(rawStripeError, 'NotCancelableError');
|
|
249
263
|
}
|
|
250
264
|
}
|
|
251
265
|
export class QuotaExceededError extends StripeError {
|
|
@@ -253,26 +267,19 @@ export class QuotaExceededError extends StripeError {
|
|
|
253
267
|
super(rawStripeError, 'QuotaExceededError');
|
|
254
268
|
}
|
|
255
269
|
}
|
|
256
|
-
export class
|
|
270
|
+
export class RateLimitError extends StripeError {
|
|
257
271
|
constructor(rawStripeError = {}) {
|
|
258
|
-
super(rawStripeError, '
|
|
272
|
+
super(rawStripeError, 'RateLimitError');
|
|
259
273
|
}
|
|
260
274
|
}
|
|
261
|
-
export class
|
|
275
|
+
export class RecipientNotNotifiableError extends StripeError {
|
|
262
276
|
constructor(rawStripeError = {}) {
|
|
263
|
-
super(rawStripeError, '
|
|
277
|
+
super(rawStripeError, 'RecipientNotNotifiableError');
|
|
264
278
|
}
|
|
265
279
|
}
|
|
266
|
-
export class
|
|
280
|
+
export class TemporarySessionExpiredError extends StripeError {
|
|
267
281
|
constructor(rawStripeError = {}) {
|
|
268
|
-
super(rawStripeError, '
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
export class InvalidPaymentMethodError extends StripeError {
|
|
272
|
-
constructor(rawStripeError) {
|
|
273
|
-
super(rawStripeError, 'InvalidPaymentMethodError');
|
|
274
|
-
// @ts-ignore
|
|
275
|
-
this.invalid_param = this.raw.invalid_param;
|
|
282
|
+
super(rawStripeError, 'TemporarySessionExpiredError');
|
|
276
283
|
}
|
|
277
284
|
}
|
|
278
285
|
// classDefinitions: The end of the section generated from our OpenAPI spec
|
package/esm/RequestSender.js
CHANGED
|
@@ -282,7 +282,7 @@ export class RequestSender {
|
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
_rawRequest(method, path, params, options) {
|
|
285
|
+
_rawRequest(method, path, params, options, usage) {
|
|
286
286
|
const requestPromise = new Promise((resolve, reject) => {
|
|
287
287
|
let opts;
|
|
288
288
|
try {
|
|
@@ -310,7 +310,8 @@ export class RequestSender {
|
|
|
310
310
|
host: calculatedOptions.host,
|
|
311
311
|
streaming: !!calculatedOptions.streaming,
|
|
312
312
|
settings: {},
|
|
313
|
-
|
|
313
|
+
// If used internally for a non raw_request, overwrite the usage
|
|
314
|
+
usage: usage || ['raw_request'],
|
|
314
315
|
};
|
|
315
316
|
}
|
|
316
317
|
catch (err) {
|
|
@@ -414,6 +415,7 @@ export class RequestSender {
|
|
|
414
415
|
}
|
|
415
416
|
requestData = data;
|
|
416
417
|
this._stripe.getClientUserAgent((clientUserAgent) => {
|
|
418
|
+
var _a, _b;
|
|
417
419
|
const apiVersion = this._stripe.getApiField('version');
|
|
418
420
|
const headers = this._makeHeaders({
|
|
419
421
|
contentType: apiMode == 'v2'
|
|
@@ -423,8 +425,9 @@ export class RequestSender {
|
|
|
423
425
|
apiVersion: apiVersion,
|
|
424
426
|
clientUserAgent,
|
|
425
427
|
method,
|
|
426
|
-
|
|
427
|
-
|
|
428
|
+
// other callers expect null, but .headers being optional means it's undefined if not supplied. So we normalize to null.
|
|
429
|
+
userSuppliedHeaders: (_a = options.headers) !== null && _a !== void 0 ? _a : null,
|
|
430
|
+
userSuppliedSettings: (_b = options.settings) !== null && _b !== void 0 ? _b : {},
|
|
428
431
|
stripeAccount: apiMode == 'v2' ? null : this._stripe.getApiField('stripeAccount'),
|
|
429
432
|
stripeContext: apiMode == 'v2' ? this._stripe.getApiField('stripeContext') : null,
|
|
430
433
|
apiMode: apiMode,
|
package/esm/apiVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
|
-
export const ApiVersion = '2025-
|
|
2
|
+
export const ApiVersion = '2025-08-27.preview';
|
|
@@ -3,4 +3,9 @@ import { StripeResource } from '../StripeResource.js';
|
|
|
3
3
|
const stripeMethod = StripeResource.method;
|
|
4
4
|
export const Mandates = StripeResource.extend({
|
|
5
5
|
retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/mandates/{mandate}' }),
|
|
6
|
+
list: stripeMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
fullPath: '/v1/mandates',
|
|
9
|
+
methodType: 'list',
|
|
10
|
+
}),
|
|
6
11
|
});
|
|
@@ -16,6 +16,10 @@ export const Subscriptions = StripeResource.extend({
|
|
|
16
16
|
fullPath: '/v1/subscriptions',
|
|
17
17
|
methodType: 'list',
|
|
18
18
|
}),
|
|
19
|
+
attachCadence: stripeMethod({
|
|
20
|
+
method: 'POST',
|
|
21
|
+
fullPath: '/v1/subscriptions/{subscription}/attach_cadence',
|
|
22
|
+
}),
|
|
19
23
|
cancel: stripeMethod({
|
|
20
24
|
method: 'DELETE',
|
|
21
25
|
fullPath: '/v1/subscriptions/{subscription_exposed_id}',
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const Versions = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v2/billing/bill_settings/{bill_setting_id}/versions/{id}',
|
|
8
|
+
}),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/billing/bill_settings/{bill_setting_id}/versions',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
import { Versions } from './BillSettings/Versions.js';
|
|
4
|
+
const stripeMethod = StripeResource.method;
|
|
5
|
+
export const BillSettings = StripeResource.extend({
|
|
6
|
+
constructor: function (...args) {
|
|
7
|
+
StripeResource.apply(this, args);
|
|
8
|
+
this.versions = new Versions(...args);
|
|
9
|
+
},
|
|
10
|
+
create: stripeMethod({ method: 'POST', fullPath: '/v2/billing/bill_settings' }),
|
|
11
|
+
retrieve: stripeMethod({
|
|
12
|
+
method: 'GET',
|
|
13
|
+
fullPath: '/v2/billing/bill_settings/{id}',
|
|
14
|
+
}),
|
|
15
|
+
update: stripeMethod({
|
|
16
|
+
method: 'POST',
|
|
17
|
+
fullPath: '/v2/billing/bill_settings/{id}',
|
|
18
|
+
}),
|
|
19
|
+
list: stripeMethod({
|
|
20
|
+
method: 'GET',
|
|
21
|
+
fullPath: '/v2/billing/bill_settings',
|
|
22
|
+
methodType: 'list',
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const Cadences = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({ method: 'POST', fullPath: '/v2/billing/cadences' }),
|
|
6
|
+
retrieve: stripeMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
fullPath: '/v2/billing/cadences/{id}',
|
|
9
|
+
}),
|
|
10
|
+
update: stripeMethod({ method: 'POST', fullPath: '/v2/billing/cadences/{id}' }),
|
|
11
|
+
list: stripeMethod({
|
|
12
|
+
method: 'GET',
|
|
13
|
+
fullPath: '/v2/billing/cadences',
|
|
14
|
+
methodType: 'list',
|
|
15
|
+
}),
|
|
16
|
+
cancel: stripeMethod({
|
|
17
|
+
method: 'POST',
|
|
18
|
+
fullPath: '/v2/billing/cadences/{id}/cancel',
|
|
19
|
+
}),
|
|
20
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const Versions = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v2/billing/collection_settings/{collection_setting_id}/versions/{id}',
|
|
8
|
+
}),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/billing/collection_settings/{collection_setting_id}/versions',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
import { Versions } from './CollectionSettings/Versions.js';
|
|
4
|
+
const stripeMethod = StripeResource.method;
|
|
5
|
+
export const CollectionSettings = StripeResource.extend({
|
|
6
|
+
constructor: function (...args) {
|
|
7
|
+
StripeResource.apply(this, args);
|
|
8
|
+
this.versions = new Versions(...args);
|
|
9
|
+
},
|
|
10
|
+
create: stripeMethod({
|
|
11
|
+
method: 'POST',
|
|
12
|
+
fullPath: '/v2/billing/collection_settings',
|
|
13
|
+
}),
|
|
14
|
+
retrieve: stripeMethod({
|
|
15
|
+
method: 'GET',
|
|
16
|
+
fullPath: '/v2/billing/collection_settings/{id}',
|
|
17
|
+
}),
|
|
18
|
+
update: stripeMethod({
|
|
19
|
+
method: 'POST',
|
|
20
|
+
fullPath: '/v2/billing/collection_settings/{id}',
|
|
21
|
+
}),
|
|
22
|
+
list: stripeMethod({
|
|
23
|
+
method: 'GET',
|
|
24
|
+
fullPath: '/v2/billing/collection_settings',
|
|
25
|
+
methodType: 'list',
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const CustomPricingUnits = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({
|
|
6
|
+
method: 'POST',
|
|
7
|
+
fullPath: '/v2/billing/custom_pricing_units',
|
|
8
|
+
}),
|
|
9
|
+
retrieve: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/billing/custom_pricing_units/{id}',
|
|
12
|
+
}),
|
|
13
|
+
update: stripeMethod({
|
|
14
|
+
method: 'POST',
|
|
15
|
+
fullPath: '/v2/billing/custom_pricing_units/{id}',
|
|
16
|
+
}),
|
|
17
|
+
list: stripeMethod({
|
|
18
|
+
method: 'GET',
|
|
19
|
+
fullPath: '/v2/billing/custom_pricing_units',
|
|
20
|
+
methodType: 'list',
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const Actions = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v2/billing/intents/{intent_id}/actions/{id}',
|
|
8
|
+
}),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/billing/intents/{intent_id}/actions',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
import { Actions } from './Intents/Actions.js';
|
|
4
|
+
const stripeMethod = StripeResource.method;
|
|
5
|
+
export const Intents = StripeResource.extend({
|
|
6
|
+
constructor: function (...args) {
|
|
7
|
+
StripeResource.apply(this, args);
|
|
8
|
+
this.actions = new Actions(...args);
|
|
9
|
+
},
|
|
10
|
+
create: stripeMethod({ method: 'POST', fullPath: '/v2/billing/intents' }),
|
|
11
|
+
retrieve: stripeMethod({ method: 'GET', fullPath: '/v2/billing/intents/{id}' }),
|
|
12
|
+
list: stripeMethod({
|
|
13
|
+
method: 'GET',
|
|
14
|
+
fullPath: '/v2/billing/intents',
|
|
15
|
+
methodType: 'list',
|
|
16
|
+
}),
|
|
17
|
+
cancel: stripeMethod({
|
|
18
|
+
method: 'POST',
|
|
19
|
+
fullPath: '/v2/billing/intents/{id}/cancel',
|
|
20
|
+
}),
|
|
21
|
+
commit: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
fullPath: '/v2/billing/intents/{id}/commit',
|
|
24
|
+
}),
|
|
25
|
+
releaseReservation: stripeMethod({
|
|
26
|
+
method: 'POST',
|
|
27
|
+
fullPath: '/v2/billing/intents/{id}/release_reservation',
|
|
28
|
+
}),
|
|
29
|
+
reserve: stripeMethod({
|
|
30
|
+
method: 'POST',
|
|
31
|
+
fullPath: '/v2/billing/intents/{id}/reserve',
|
|
32
|
+
}),
|
|
33
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const LicenseFeeSubscriptions = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v2/billing/license_fee_subscriptions/{id}',
|
|
8
|
+
}),
|
|
9
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const Versions = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v2/billing/license_fees/{license_fee_id}/versions/{id}',
|
|
8
|
+
}),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/billing/license_fees/{license_fee_id}/versions',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
import { Versions } from './LicenseFees/Versions.js';
|
|
4
|
+
const stripeMethod = StripeResource.method;
|
|
5
|
+
export const LicenseFees = StripeResource.extend({
|
|
6
|
+
constructor: function (...args) {
|
|
7
|
+
StripeResource.apply(this, args);
|
|
8
|
+
this.versions = new Versions(...args);
|
|
9
|
+
},
|
|
10
|
+
create: stripeMethod({ method: 'POST', fullPath: '/v2/billing/license_fees' }),
|
|
11
|
+
retrieve: stripeMethod({
|
|
12
|
+
method: 'GET',
|
|
13
|
+
fullPath: '/v2/billing/license_fees/{id}',
|
|
14
|
+
}),
|
|
15
|
+
update: stripeMethod({
|
|
16
|
+
method: 'POST',
|
|
17
|
+
fullPath: '/v2/billing/license_fees/{id}',
|
|
18
|
+
}),
|
|
19
|
+
list: stripeMethod({
|
|
20
|
+
method: 'GET',
|
|
21
|
+
fullPath: '/v2/billing/license_fees',
|
|
22
|
+
methodType: 'list',
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const LicensedItems = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({
|
|
6
|
+
method: 'POST',
|
|
7
|
+
fullPath: '/v2/billing/licensed_items',
|
|
8
|
+
}),
|
|
9
|
+
retrieve: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/billing/licensed_items/{id}',
|
|
12
|
+
}),
|
|
13
|
+
update: stripeMethod({
|
|
14
|
+
method: 'POST',
|
|
15
|
+
fullPath: '/v2/billing/licensed_items/{id}',
|
|
16
|
+
}),
|
|
17
|
+
list: stripeMethod({
|
|
18
|
+
method: 'GET',
|
|
19
|
+
fullPath: '/v2/billing/licensed_items',
|
|
20
|
+
methodType: 'list',
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const MeteredItems = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({ method: 'POST', fullPath: '/v2/billing/metered_items' }),
|
|
6
|
+
retrieve: stripeMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
fullPath: '/v2/billing/metered_items/{id}',
|
|
9
|
+
}),
|
|
10
|
+
update: stripeMethod({
|
|
11
|
+
method: 'POST',
|
|
12
|
+
fullPath: '/v2/billing/metered_items/{id}',
|
|
13
|
+
}),
|
|
14
|
+
list: stripeMethod({
|
|
15
|
+
method: 'GET',
|
|
16
|
+
fullPath: '/v2/billing/metered_items',
|
|
17
|
+
methodType: 'list',
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const PricingPlanSubscriptions = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v2/billing/pricing_plan_subscriptions/{id}',
|
|
8
|
+
}),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/billing/pricing_plan_subscriptions',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const Components = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({
|
|
6
|
+
method: 'POST',
|
|
7
|
+
fullPath: '/v2/billing/pricing_plans/{pricing_plan_id}/components',
|
|
8
|
+
}),
|
|
9
|
+
retrieve: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/billing/pricing_plans/{pricing_plan_id}/components/{id}',
|
|
12
|
+
}),
|
|
13
|
+
update: stripeMethod({
|
|
14
|
+
method: 'POST',
|
|
15
|
+
fullPath: '/v2/billing/pricing_plans/{pricing_plan_id}/components/{id}',
|
|
16
|
+
}),
|
|
17
|
+
list: stripeMethod({
|
|
18
|
+
method: 'GET',
|
|
19
|
+
fullPath: '/v2/billing/pricing_plans/{pricing_plan_id}/components',
|
|
20
|
+
methodType: 'list',
|
|
21
|
+
}),
|
|
22
|
+
del: stripeMethod({
|
|
23
|
+
method: 'DELETE',
|
|
24
|
+
fullPath: '/v2/billing/pricing_plans/{pricing_plan_id}/components/{id}',
|
|
25
|
+
}),
|
|
26
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const Versions = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v2/billing/pricing_plans/{pricing_plan_id}/versions/{id}',
|
|
8
|
+
}),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/billing/pricing_plans/{pricing_plan_id}/versions',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
import { Components } from './PricingPlans/Components.js';
|
|
4
|
+
import { Versions } from './PricingPlans/Versions.js';
|
|
5
|
+
const stripeMethod = StripeResource.method;
|
|
6
|
+
export const PricingPlans = StripeResource.extend({
|
|
7
|
+
constructor: function (...args) {
|
|
8
|
+
StripeResource.apply(this, args);
|
|
9
|
+
this.components = new Components(...args);
|
|
10
|
+
this.versions = new Versions(...args);
|
|
11
|
+
},
|
|
12
|
+
create: stripeMethod({ method: 'POST', fullPath: '/v2/billing/pricing_plans' }),
|
|
13
|
+
retrieve: stripeMethod({
|
|
14
|
+
method: 'GET',
|
|
15
|
+
fullPath: '/v2/billing/pricing_plans/{id}',
|
|
16
|
+
}),
|
|
17
|
+
update: stripeMethod({
|
|
18
|
+
method: 'POST',
|
|
19
|
+
fullPath: '/v2/billing/pricing_plans/{id}',
|
|
20
|
+
}),
|
|
21
|
+
list: stripeMethod({
|
|
22
|
+
method: 'GET',
|
|
23
|
+
fullPath: '/v2/billing/pricing_plans',
|
|
24
|
+
methodType: 'list',
|
|
25
|
+
}),
|
|
26
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const Profiles = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({ method: 'POST', fullPath: '/v2/billing/profiles' }),
|
|
6
|
+
retrieve: stripeMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
fullPath: '/v2/billing/profiles/{id}',
|
|
9
|
+
}),
|
|
10
|
+
update: stripeMethod({ method: 'POST', fullPath: '/v2/billing/profiles/{id}' }),
|
|
11
|
+
list: stripeMethod({
|
|
12
|
+
method: 'GET',
|
|
13
|
+
fullPath: '/v2/billing/profiles',
|
|
14
|
+
methodType: 'list',
|
|
15
|
+
}),
|
|
16
|
+
});
|