stripe 18.2.0-beta.1 → 18.3.0-beta.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 +229 -31
- package/OPENAPI_VERSION +1 -1
- package/README.md +11 -11
- package/VERSION +1 -1
- package/cjs/RequestSender.js +2 -2
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/Subscriptions.js +4 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js +25 -0
- package/cjs/resources.js +15 -17
- package/cjs/stripe.core.js +1 -1
- package/cjs/utils.js +5 -0
- package/esm/RequestSender.js +2 -2
- package/esm/StripeResource.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/Subscriptions.js +4 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js +22 -0
- package/esm/resources.js +4 -6
- package/esm/stripe.core.js +1 -1
- package/esm/utils.js +5 -0
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +65 -0
- package/types/AccountSessionsResource.d.ts +41 -0
- package/types/Accounts.d.ts +22 -15
- package/types/AccountsResource.d.ts +81 -57
- package/types/Balance.d.ts +83 -1
- package/types/BalanceResource.d.ts +1 -1
- package/types/BalanceSettings.d.ts +1 -1
- package/types/BalanceSettingsResource.d.ts +5 -5
- 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 +96 -4
- package/types/Checkout/Sessions.d.ts +123 -108
- package/types/Checkout/SessionsResource.d.ts +125 -116
- package/types/ConfirmationTokens.d.ts +4 -4
- package/types/CountrySpecs.d.ts +1 -1
- package/types/CreditNotes.d.ts +11 -5
- 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 -17
- package/types/Events.d.ts +4 -1
- package/types/ExternalAccountsResource.d.ts +1 -1
- package/types/Files.d.ts +1 -1
- package/types/FilesResource.d.ts +1 -1
- package/types/FinancialConnections/Accounts.d.ts +5 -0
- package/types/FinancialConnections/Institutions.d.ts +5 -0
- 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 -9
- package/types/InvoicesResource.d.ts +60 -18
- 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/Orders.d.ts +43 -83
- package/types/OrdersResource.d.ts +85 -119
- package/types/PaymentAttemptRecords.d.ts +21 -1
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +6 -0
- package/types/PaymentIntents.d.ts +224 -173
- package/types/PaymentIntentsResource.d.ts +819 -584
- 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/PaymentRecords.d.ts +21 -1
- package/types/PaymentRecordsResource.d.ts +5 -5
- 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/Privacy/RedactionJobValidationErrors.d.ts +35 -5
- package/types/Privacy/RedactionJobs.d.ts +53 -7
- package/types/Privacy/RedactionJobsResource.d.ts +25 -13
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +1 -37
- package/types/PromotionCodesResource.d.ts +1 -1
- package/types/QuotePreviewInvoices.d.ts +7 -9
- package/types/QuotePreviewSubscriptionSchedules.d.ts +48 -2
- package/types/Quotes.d.ts +7 -7
- package/types/QuotesResource.d.ts +1 -1
- 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 -3
- package/types/SetupIntents.d.ts +2 -4
- package/types/SetupIntentsResource.d.ts +3 -3
- package/types/SourcesResource.d.ts +1 -1
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +28 -0
- package/types/SubscriptionSchedules.d.ts +48 -2
- package/types/SubscriptionSchedulesResource.d.ts +100 -4
- package/types/Subscriptions.d.ts +32 -3
- package/types/SubscriptionsResource.d.ts +104 -17
- package/types/Tax/Associations.d.ts +19 -63
- 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 +21 -1
- package/types/Terminal/ReadersResource.d.ts +20 -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/V2/Core/Accounts.d.ts +5 -5
- package/types/V2/EventTypes.d.ts +102 -11
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +1 -1
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +1 -43
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +1 -49
- package/types/V2/Payments/OffSessionPayments.d.ts +167 -0
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +159 -0
- package/types/WebhookEndpointsResource.d.ts +4 -3
- package/types/index.d.ts +5 -9
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
|
@@ -67,7 +67,7 @@ declare module 'stripe' {
|
|
|
67
67
|
/**
|
|
68
68
|
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
69
69
|
*/
|
|
70
|
-
metadata: Stripe.Metadata
|
|
70
|
+
metadata: Stripe.Metadata;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* Information about the Payment Method debited for this payment.
|
|
@@ -413,6 +413,16 @@ declare module 'stripe' {
|
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
interface Affirm {
|
|
416
|
+
/**
|
|
417
|
+
* ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
|
|
418
|
+
*/
|
|
419
|
+
location?: string;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
|
|
423
|
+
*/
|
|
424
|
+
reader?: string;
|
|
425
|
+
|
|
416
426
|
/**
|
|
417
427
|
* The Affirm transaction ID associated with this payment.
|
|
418
428
|
*/
|
|
@@ -2080,6 +2090,16 @@ declare module 'stripe' {
|
|
|
2080
2090
|
*/
|
|
2081
2091
|
fingerprint: string | null;
|
|
2082
2092
|
|
|
2093
|
+
/**
|
|
2094
|
+
* ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
|
|
2095
|
+
*/
|
|
2096
|
+
location?: string;
|
|
2097
|
+
|
|
2098
|
+
/**
|
|
2099
|
+
* ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
|
|
2100
|
+
*/
|
|
2101
|
+
reader?: string;
|
|
2102
|
+
|
|
2083
2103
|
/**
|
|
2084
2104
|
* Transaction ID of this particular WeChat Pay transaction.
|
|
2085
2105
|
*/
|
|
@@ -61,6 +61,8 @@ declare module 'stripe' {
|
|
|
61
61
|
interface PaymentMethodOptions {
|
|
62
62
|
card?: PaymentMethodOptions.Card;
|
|
63
63
|
|
|
64
|
+
card_present?: PaymentMethodOptions.CardPresent;
|
|
65
|
+
|
|
64
66
|
klarna?: PaymentMethodOptions.Klarna;
|
|
65
67
|
|
|
66
68
|
paypal?: PaymentMethodOptions.Paypal;
|
|
@@ -71,6 +73,10 @@ declare module 'stripe' {
|
|
|
71
73
|
commodity_code: string | null;
|
|
72
74
|
}
|
|
73
75
|
|
|
76
|
+
interface CardPresent {
|
|
77
|
+
commodity_code: string | null;
|
|
78
|
+
}
|
|
79
|
+
|
|
74
80
|
interface Klarna {
|
|
75
81
|
image_url: string | null;
|
|
76
82
|
|