stripe 18.1.0-beta.3 → 18.2.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 +12 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/Error.js +2 -2
- package/cjs/RequestSender.js +3 -7
- package/cjs/Webhooks.js +6 -2
- package/cjs/apiVersion.js +1 -1
- package/cjs/net/FetchHttpClient.js +3 -4
- package/cjs/resources/Privacy/RedactionJobs.js +0 -4
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +4 -0
- package/cjs/stripe.core.js +2 -4
- package/cjs/utils.js +28 -4
- package/esm/Error.js +2 -2
- package/esm/RequestSender.js +4 -8
- package/esm/Webhooks.js +6 -2
- package/esm/apiVersion.js +1 -1
- package/esm/net/FetchHttpClient.js +3 -4
- package/esm/resources/Privacy/RedactionJobs.js +0 -4
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +4 -0
- package/esm/stripe.core.js +2 -4
- package/esm/utils.js +24 -3
- package/package.json +12 -3
- package/types/AccountsResource.d.ts +2 -2
- package/types/ChargesResource.d.ts +2 -2
- package/types/Checkout/Sessions.d.ts +24 -4
- package/types/Checkout/SessionsResource.d.ts +7 -0
- package/types/ConfirmationTokens.d.ts +5 -0
- package/types/CustomersResource.d.ts +23 -3
- package/types/Events.d.ts +2 -2
- package/types/ExternalAccountsResource.d.ts +1 -1
- package/types/InvoiceLineItems.d.ts +1 -1
- package/types/Invoices.d.ts +12 -2
- package/types/InvoicesResource.d.ts +25 -1
- package/types/Orders.d.ts +11 -1
- package/types/OrdersResource.d.ts +22 -2
- package/types/PaymentIntentsResource.d.ts +4 -4
- package/types/PaymentMethods.d.ts +5 -0
- package/types/Privacy/RedactionJobs.d.ts +23 -1
- package/types/Privacy/RedactionJobsResource.d.ts +0 -22
- package/types/QuotePreviewInvoices.d.ts +12 -2
- package/types/QuotePreviewSubscriptionSchedules.d.ts +7 -0
- package/types/Quotes.d.ts +8 -1
- package/types/QuotesResource.d.ts +7 -0
- package/types/SubscriptionSchedules.d.ts +7 -0
- package/types/SubscriptionSchedulesResource.d.ts +7 -0
- package/types/Subscriptions.d.ts +7 -0
- package/types/SubscriptionsResource.d.ts +8 -1
- package/types/Tax/Calculations.d.ts +11 -1
- package/types/Tax/CalculationsResource.d.ts +11 -1
- package/types/Tax/Registrations.d.ts +27 -0
- package/types/Tax/RegistrationsResource.d.ts +36 -0
- package/types/Tax/Transactions.d.ts +11 -1
- package/types/TaxIds.d.ts +11 -1
- package/types/TaxIdsResource.d.ts +11 -1
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +7 -1
- package/types/Treasury/OutboundPaymentsResource.d.ts +0 -5
- package/types/V2/Core/AccountLinks.d.ts +6 -1
- package/types/V2/Core/Accounts/PersonsResource.d.ts +10 -0
- package/types/V2/Core/Accounts.d.ts +142 -30
- package/types/V2/Core/AccountsResource.d.ts +25 -6
- package/types/V2/Core/Persons.d.ts +10 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +7 -2
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +1 -1
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +8 -3
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +5 -5
- package/types/V2/EventTypes.d.ts +174 -33
- package/types/V2/FinancialAddressCreditSimulations.d.ts +5 -0
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +5 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +7 -2
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +7 -1
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +6 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +1 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +6 -1
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +28 -1
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +22 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +7 -2
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +5 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +7 -2
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +7 -2
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +5 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +5 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +5 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +5 -1
- package/types/V2/MoneyManagement/Transactions.d.ts +5 -1
- package/types/WebhookEndpointsResource.d.ts +6 -5
- package/types/index.d.ts +0 -1
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
- package/types/Privacy/RedactionJobRootObjects.d.ts +0 -35
|
@@ -75,10 +75,15 @@ declare module 'stripe' {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
namespace MoneyManagement {
|
|
79
|
+
interface OutboundPaymentQuoteRetrieveParams {}
|
|
80
|
+
}
|
|
81
|
+
|
|
78
82
|
namespace MoneyManagement {
|
|
79
83
|
class OutboundPaymentQuotesResource {
|
|
80
84
|
/**
|
|
81
85
|
* Creates an OutboundPaymentQuote usable in an OutboundPayment.
|
|
86
|
+
* @throws Stripe.FeatureNotEnabledError
|
|
82
87
|
*/
|
|
83
88
|
create(
|
|
84
89
|
params: OutboundPaymentQuoteCreateParams,
|
|
@@ -86,6 +91,23 @@ declare module 'stripe' {
|
|
|
86
91
|
): Promise<
|
|
87
92
|
Stripe.Response<Stripe.V2.MoneyManagement.OutboundPaymentQuote>
|
|
88
93
|
>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Retrieves the details of an existing OutboundPaymentQuote by passing the unique OutboundPaymentQuote ID.
|
|
97
|
+
*/
|
|
98
|
+
retrieve(
|
|
99
|
+
id: string,
|
|
100
|
+
params?: OutboundPaymentQuoteRetrieveParams,
|
|
101
|
+
options?: RequestOptions
|
|
102
|
+
): Promise<
|
|
103
|
+
Stripe.Response<Stripe.V2.MoneyManagement.OutboundPaymentQuote>
|
|
104
|
+
>;
|
|
105
|
+
retrieve(
|
|
106
|
+
id: string,
|
|
107
|
+
options?: RequestOptions
|
|
108
|
+
): Promise<
|
|
109
|
+
Stripe.Response<Stripe.V2.MoneyManagement.OutboundPaymentQuote>
|
|
110
|
+
>;
|
|
89
111
|
}
|
|
90
112
|
}
|
|
91
113
|
}
|
|
@@ -55,6 +55,11 @@ declare module 'stripe' {
|
|
|
55
55
|
*/
|
|
56
56
|
from: OutboundPayment.From;
|
|
57
57
|
|
|
58
|
+
/**
|
|
59
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
60
|
+
*/
|
|
61
|
+
livemode: boolean;
|
|
62
|
+
|
|
58
63
|
/**
|
|
59
64
|
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
60
65
|
*/
|
|
@@ -66,9 +71,9 @@ declare module 'stripe' {
|
|
|
66
71
|
outbound_payment_quote: string | null;
|
|
67
72
|
|
|
68
73
|
/**
|
|
69
|
-
* A hosted
|
|
74
|
+
* A link to the Stripe-hosted receipt for this OutboundPayment. The receipt link remains active for 60 days from the OutboundPayment creation date. After this period, the link will expire and the receipt url value will be null.
|
|
70
75
|
*/
|
|
71
|
-
receipt_url: string;
|
|
76
|
+
receipt_url: string | null;
|
|
72
77
|
|
|
73
78
|
/**
|
|
74
79
|
* Details about the OutboundPayment notification settings for recipient.
|
|
@@ -23,6 +23,11 @@ declare module 'stripe' {
|
|
|
23
23
|
*/
|
|
24
24
|
created: string;
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
28
|
+
*/
|
|
29
|
+
livemode: boolean;
|
|
30
|
+
|
|
26
31
|
/**
|
|
27
32
|
* Specifies which actions needs to be taken next to continue setup of the credential.
|
|
28
33
|
*/
|
|
@@ -55,15 +55,20 @@ declare module 'stripe' {
|
|
|
55
55
|
*/
|
|
56
56
|
from: OutboundTransfer.From;
|
|
57
57
|
|
|
58
|
+
/**
|
|
59
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
60
|
+
*/
|
|
61
|
+
livemode: boolean;
|
|
62
|
+
|
|
58
63
|
/**
|
|
59
64
|
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
60
65
|
*/
|
|
61
66
|
metadata: Stripe.Metadata | null;
|
|
62
67
|
|
|
63
68
|
/**
|
|
64
|
-
* A hosted
|
|
69
|
+
* A link to the Stripe-hosted receipt for this OutboundTransfer. The receipt link remains active for 60 days from the OutboundTransfer creation date. After this period, the link will expire and the receipt url value will be null.
|
|
65
70
|
*/
|
|
66
|
-
receipt_url: string;
|
|
71
|
+
receipt_url: string | null;
|
|
67
72
|
|
|
68
73
|
/**
|
|
69
74
|
* The description that appears on the receiving end for an OutboundTransfer (for example, bank statement for external bank transfer).
|
|
@@ -43,6 +43,11 @@ declare module 'stripe' {
|
|
|
43
43
|
*/
|
|
44
44
|
latest_outbound_setup_intent: string | null;
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
48
|
+
*/
|
|
49
|
+
livemode: boolean;
|
|
50
|
+
|
|
46
51
|
/**
|
|
47
52
|
* Closed Enum. The type of payout method.
|
|
48
53
|
*/
|
|
@@ -124,12 +129,12 @@ declare module 'stripe' {
|
|
|
124
129
|
|
|
125
130
|
interface UsageStatus {
|
|
126
131
|
/**
|
|
127
|
-
* Payments status.
|
|
132
|
+
* Payments status - used when sending OutboundPayments (sending funds to recipients).
|
|
128
133
|
*/
|
|
129
134
|
payments: UsageStatus.Payments;
|
|
130
135
|
|
|
131
136
|
/**
|
|
132
|
-
* Transfers status.
|
|
137
|
+
* Transfers status - used when making an OutboundTransfer (sending funds to yourself).
|
|
133
138
|
*/
|
|
134
139
|
transfers: UsageStatus.Transfers;
|
|
135
140
|
}
|
|
@@ -19,6 +19,11 @@ declare module 'stripe' {
|
|
|
19
19
|
countries: {
|
|
20
20
|
[key: string]: PayoutMethodsBankAccountSpec.Countries;
|
|
21
21
|
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
25
|
+
*/
|
|
26
|
+
livemode: boolean;
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
namespace PayoutMethodsBankAccountSpec {
|
|
@@ -54,6 +54,11 @@ declare module 'stripe' {
|
|
|
54
54
|
*/
|
|
55
55
|
financial_account: string;
|
|
56
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
59
|
+
*/
|
|
60
|
+
livemode: boolean;
|
|
61
|
+
|
|
57
62
|
/**
|
|
58
63
|
* A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
|
|
59
64
|
*/
|
|
@@ -49,6 +49,11 @@ declare module 'stripe' {
|
|
|
49
49
|
*/
|
|
50
50
|
financial_account: string;
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
54
|
+
*/
|
|
55
|
+
livemode: boolean;
|
|
56
|
+
|
|
52
57
|
/**
|
|
53
58
|
* A link to the Stripe-hosted receipt for this ReceivedDebit.
|
|
54
59
|
*/
|
|
@@ -33,6 +33,11 @@ declare module 'stripe' {
|
|
|
33
33
|
*/
|
|
34
34
|
effective_at: string;
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
38
|
+
*/
|
|
39
|
+
livemode: boolean;
|
|
40
|
+
|
|
36
41
|
/**
|
|
37
42
|
* The Transaction that this TransactionEntry belongs to.
|
|
38
43
|
*/
|
|
@@ -135,7 +140,6 @@ declare module 'stripe' {
|
|
|
135
140
|
namespace Flow {
|
|
136
141
|
type Type =
|
|
137
142
|
| 'adjustment'
|
|
138
|
-
| 'currency_conversion'
|
|
139
143
|
| 'fee_transaction'
|
|
140
144
|
| 'inbound_transfer'
|
|
141
145
|
| 'outbound_payment'
|
|
@@ -49,6 +49,11 @@ declare module 'stripe' {
|
|
|
49
49
|
*/
|
|
50
50
|
flow: Transaction.Flow;
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
54
|
+
*/
|
|
55
|
+
livemode: boolean;
|
|
56
|
+
|
|
52
57
|
/**
|
|
53
58
|
* Closed Enum. Current status of the Transaction.
|
|
54
59
|
* A Transaction is `pending` if either `balance_impact.inbound_pending` or `balance_impact.outbound_pending` is non-zero.
|
|
@@ -137,7 +142,6 @@ declare module 'stripe' {
|
|
|
137
142
|
namespace Flow {
|
|
138
143
|
type Type =
|
|
139
144
|
| 'adjustment'
|
|
140
|
-
| 'currency_conversion'
|
|
141
145
|
| 'fee_transaction'
|
|
142
146
|
| 'inbound_transfer'
|
|
143
147
|
| 'outbound_payment'
|
|
@@ -150,7 +150,8 @@ declare module 'stripe' {
|
|
|
150
150
|
| '2025-01-27.acacia'
|
|
151
151
|
| '2025-02-24.acacia'
|
|
152
152
|
| '2025-03-01.dashboard'
|
|
153
|
-
| '2025-03-31.basil'
|
|
153
|
+
| '2025-03-31.basil'
|
|
154
|
+
| '2025-04-30.basil';
|
|
154
155
|
|
|
155
156
|
type EnabledEvent =
|
|
156
157
|
| '*'
|
|
@@ -166,6 +167,7 @@ declare module 'stripe' {
|
|
|
166
167
|
| 'application_fee.refund.updated'
|
|
167
168
|
| 'application_fee.refunded'
|
|
168
169
|
| 'balance.available'
|
|
170
|
+
| 'balance_settings.updated'
|
|
169
171
|
| 'billing.alert.triggered'
|
|
170
172
|
| 'billing.meter_error_report.triggered'
|
|
171
173
|
| 'billing_portal.configuration.created'
|
|
@@ -440,8 +442,7 @@ declare module 'stripe' {
|
|
|
440
442
|
| 'billing.meter.created'
|
|
441
443
|
| 'billing.meter.deactivated'
|
|
442
444
|
| 'billing.meter.reactivated'
|
|
443
|
-
| 'billing.meter.updated'
|
|
444
|
-
| 'balance_settings.updated';
|
|
445
|
+
| 'billing.meter.updated';
|
|
445
446
|
}
|
|
446
447
|
|
|
447
448
|
interface WebhookEndpointRetrieveParams {
|
|
@@ -498,6 +499,7 @@ declare module 'stripe' {
|
|
|
498
499
|
| 'application_fee.refund.updated'
|
|
499
500
|
| 'application_fee.refunded'
|
|
500
501
|
| 'balance.available'
|
|
502
|
+
| 'balance_settings.updated'
|
|
501
503
|
| 'billing.alert.triggered'
|
|
502
504
|
| 'billing.meter_error_report.triggered'
|
|
503
505
|
| 'billing_portal.configuration.created'
|
|
@@ -772,8 +774,7 @@ declare module 'stripe' {
|
|
|
772
774
|
| 'billing.meter.created'
|
|
773
775
|
| 'billing.meter.deactivated'
|
|
774
776
|
| 'billing.meter.reactivated'
|
|
775
|
-
| 'billing.meter.updated'
|
|
776
|
-
| 'balance_settings.updated';
|
|
777
|
+
| 'billing.meter.updated';
|
|
777
778
|
}
|
|
778
779
|
|
|
779
780
|
interface WebhookEndpointListParams extends PaginationParams {
|
package/types/index.d.ts
CHANGED
|
@@ -283,7 +283,6 @@
|
|
|
283
283
|
///<reference path='./Persons.d.ts' />
|
|
284
284
|
///<reference path='./Plans.d.ts' />
|
|
285
285
|
///<reference path='./Prices.d.ts' />
|
|
286
|
-
///<reference path='./Privacy/RedactionJobRootObjects.d.ts' />
|
|
287
286
|
///<reference path='./Privacy/RedactionJobValidationErrors.d.ts' />
|
|
288
287
|
///<reference path='./Privacy/RedactionJobs.d.ts' />
|
|
289
288
|
///<reference path='./ProductFeatures.d.ts' />
|
package/types/lib.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare module 'stripe' {
|
|
|
27
27
|
}): (...args: any[]) => Response<ResponseObject>; //eslint-disable-line @typescript-eslint/no-explicit-any
|
|
28
28
|
static MAX_BUFFERED_REQUEST_METRICS: number;
|
|
29
29
|
}
|
|
30
|
-
export type LatestApiVersion = '2025-
|
|
30
|
+
export type LatestApiVersion = '2025-04-30.preview';
|
|
31
31
|
export type HttpAgent = Agent;
|
|
32
32
|
export type HttpProtocol = 'http' | 'https';
|
|
33
33
|
|
|
@@ -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-04-30.preview',
|
|
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-04-30.preview',
|
|
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-04-30.preview',
|
|
48
48
|
};
|
|
49
49
|
const customer: Stripe.Customer = await stripe.customers.create(params, opts);
|
|
50
50
|
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec
|
|
2
|
-
|
|
3
|
-
declare module 'stripe' {
|
|
4
|
-
namespace Stripe {
|
|
5
|
-
namespace Privacy {
|
|
6
|
-
/**
|
|
7
|
-
* The objects to redact, grouped by type. All redactable objects associated with these objects will be redacted as well.
|
|
8
|
-
*/
|
|
9
|
-
interface RedactionJobRootObjects {
|
|
10
|
-
/**
|
|
11
|
-
* String representing the object's type. Objects of the same type share the same value.
|
|
12
|
-
*/
|
|
13
|
-
object: 'privacy.redaction_job_root_objects';
|
|
14
|
-
|
|
15
|
-
charges: Array<string> | null;
|
|
16
|
-
|
|
17
|
-
checkout_sessions: Array<string> | null;
|
|
18
|
-
|
|
19
|
-
customers: Array<string> | null;
|
|
20
|
-
|
|
21
|
-
identity_verification_sessions: Array<string> | null;
|
|
22
|
-
|
|
23
|
-
invoices: Array<string> | null;
|
|
24
|
-
|
|
25
|
-
issuing_cardholders: Array<string> | null;
|
|
26
|
-
|
|
27
|
-
payment_intents: Array<string> | null;
|
|
28
|
-
|
|
29
|
-
radar_value_list_items: Array<string> | null;
|
|
30
|
-
|
|
31
|
-
setup_intents: Array<string> | null;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|