stripe 18.1.1 → 18.2.0
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 +66 -32
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/Invoices.js +4 -0
- package/cjs/resources/Terminal/Readers.js +4 -0
- package/cjs/resources/TestHelpers/Terminal/Readers.js +8 -0
- package/cjs/stripe.core.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/Invoices.js +4 -0
- package/esm/resources/Terminal/Readers.js +4 -0
- package/esm/resources/TestHelpers/Terminal/Readers.js +8 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +65 -0
- package/types/AccountSessionsResource.d.ts +77 -0
- package/types/Accounts.d.ts +22 -15
- package/types/AccountsResource.d.ts +79 -55
- package/types/Balance.d.ts +83 -1
- package/types/BalanceResource.d.ts +1 -1
- package/types/BalanceTransactions.d.ts +10 -0
- package/types/BankAccounts.d.ts +3 -3
- package/types/Billing/Alerts.d.ts +1 -1
- package/types/Billing/AlertsResource.d.ts +2 -2
- package/types/BillingPortal/Sessions.d.ts +1 -1
- package/types/Capabilities.d.ts +1 -1
- package/types/Cards.d.ts +2 -2
- package/types/Charges.d.ts +20 -0
- package/types/ChargesResource.d.ts +4 -4
- package/types/Checkout/Sessions.d.ts +120 -105
- package/types/Checkout/SessionsResource.d.ts +117 -108
- package/types/ConfirmationTokens.d.ts +4 -4
- package/types/CountrySpecs.d.ts +1 -1
- package/types/CreditNotes.d.ts +13 -3
- package/types/CreditNotesResource.d.ts +7 -8
- package/types/CustomerSessions.d.ts +3 -3
- package/types/CustomersResource.d.ts +7 -7
- package/types/Disputes.d.ts +1 -1
- package/types/DisputesResource.d.ts +1 -1
- package/types/EventTypes.d.ts +17 -0
- package/types/Events.d.ts +4 -0
- package/types/Files.d.ts +1 -1
- package/types/FilesResource.d.ts +1 -1
- package/types/Identity/VerificationReports.d.ts +17 -0
- package/types/Identity/VerificationSessions.d.ts +19 -2
- package/types/Identity/VerificationSessionsResource.d.ts +5 -5
- package/types/InvoiceItems.d.ts +1 -1
- package/types/InvoiceLineItems.d.ts +1 -1
- package/types/InvoicePayments.d.ts +9 -2
- package/types/Invoices.d.ts +7 -6
- package/types/InvoicesResource.d.ts +88 -11
- package/types/Issuing/AuthorizationsResource.d.ts +4 -4
- package/types/Issuing/CardsResource.d.ts +3 -0
- package/types/Issuing/DisputesResource.d.ts +2 -2
- package/types/LineItems.d.ts +2 -2
- package/types/PaymentIntents.d.ts +143 -128
- package/types/PaymentIntentsResource.d.ts +492 -441
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +254 -4
- package/types/PaymentMethodDomainsResource.d.ts +1 -1
- package/types/PaymentMethods.d.ts +4 -4
- package/types/PaymentMethodsResource.d.ts +8 -8
- package/types/Payouts.d.ts +2 -2
- package/types/PayoutsResource.d.ts +2 -2
- package/types/Persons.d.ts +10 -10
- package/types/PlansResource.d.ts +1 -1
- package/types/PricesResource.d.ts +2 -2
- package/types/ProductsResource.d.ts +1 -1
- package/types/PromotionCodesResource.d.ts +1 -1
- package/types/Quotes.d.ts +6 -6
- package/types/Radar/EarlyFraudWarningsResource.d.ts +1 -1
- package/types/Refunds.d.ts +6 -1
- package/types/Reviews.d.ts +1 -1
- package/types/SetupAttempts.d.ts +1 -0
- package/types/SetupIntents.d.ts +2 -1
- package/types/SetupIntentsResource.d.ts +3 -3
- package/types/SourcesResource.d.ts +1 -1
- package/types/SubscriptionItems.d.ts +14 -0
- package/types/SubscriptionItemsResource.d.ts +28 -0
- package/types/SubscriptionSchedules.d.ts +47 -1
- package/types/SubscriptionSchedulesResource.d.ts +99 -3
- package/types/Subscriptions.d.ts +19 -2
- package/types/SubscriptionsResource.d.ts +76 -14
- package/types/Tax/CalculationLineItems.d.ts +5 -0
- package/types/Tax/CalculationsResource.d.ts +5 -0
- package/types/Tax/RegistrationsResource.d.ts +1 -1
- package/types/TaxRates.d.ts +2 -2
- package/types/Terminal/LocationsResource.d.ts +1 -1
- package/types/Terminal/Readers.d.ts +219 -1
- package/types/Terminal/ReadersResource.d.ts +144 -0
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +53 -0
- package/types/Tokens.d.ts +3 -3
- package/types/TokensResource.d.ts +8 -8
- package/types/TransferReversals.d.ts +1 -1
- package/types/TransfersResource.d.ts +2 -2
- package/types/Treasury/ReceivedCredits.d.ts +2 -2
- package/types/WebhookEndpointsResource.d.ts +4 -1
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import Stripe from 'stripe';
|
|
10
10
|
|
|
11
11
|
let stripe = new Stripe('sk_test_123', {
|
|
12
|
-
apiVersion: '2025-
|
|
12
|
+
apiVersion: '2025-05-28.basil',
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
stripe = new Stripe('sk_test_123');
|
|
@@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', {
|
|
|
26
26
|
|
|
27
27
|
// Check config object.
|
|
28
28
|
stripe = new Stripe('sk_test_123', {
|
|
29
|
-
apiVersion: '2025-
|
|
29
|
+
apiVersion: '2025-05-28.basil',
|
|
30
30
|
typescript: true,
|
|
31
31
|
maxNetworkRetries: 1,
|
|
32
32
|
timeout: 1000,
|
|
@@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', {
|
|
|
44
44
|
description: 'test',
|
|
45
45
|
};
|
|
46
46
|
const opts: Stripe.RequestOptions = {
|
|
47
|
-
apiVersion: '2025-
|
|
47
|
+
apiVersion: '2025-05-28.basil',
|
|
48
48
|
};
|
|
49
49
|
const customer: Stripe.Customer = await stripe.customers.create(params, opts);
|
|
50
50
|
|