stripe 17.4.0-beta.2 → 17.4.0-beta.3
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 +9 -0
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/TestHelpers/Issuing/Authorizations.js +4 -0
- package/cjs/stripe.core.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/TestHelpers/Issuing/Authorizations.js +4 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Accounts.d.ts +1 -1
- package/types/AccountsResource.d.ts +15 -0
- package/types/Capabilities.d.ts +1 -1
- package/types/Checkout/Sessions.d.ts +1 -1
- package/types/Checkout/SessionsResource.d.ts +1 -1
- package/types/FileLinksResource.d.ts +1 -1
- package/types/Files.d.ts +1 -0
- package/types/FilesResource.d.ts +1 -0
- package/types/FundingInstructions.d.ts +21 -0
- package/types/Invoices.d.ts +1 -1
- package/types/InvoicesResource.d.ts +3 -3
- package/types/Issuing/Authorizations.d.ts +40 -0
- package/types/Issuing/Cardholders.d.ts +1 -1
- package/types/Issuing/Cards.d.ts +1 -1
- package/types/PaymentIntents.d.ts +22 -1
- package/types/PaymentIntentsResource.d.ts +3 -3
- package/types/PaymentLinks.d.ts +1 -1
- package/types/PaymentLinksResource.d.ts +2 -2
- package/types/Payouts.d.ts +17 -0
- package/types/Persons.d.ts +5 -0
- package/types/QuoteLines.d.ts +1 -1
- package/types/QuotePreviewInvoices.d.ts +1 -1
- package/types/QuotePreviewSubscriptionSchedules.d.ts +1 -1
- package/types/Refunds.d.ts +10 -0
- package/types/SubscriptionSchedules.d.ts +1 -1
- package/types/SubscriptionSchedulesResource.d.ts +2 -2
- package/types/Subscriptions.d.ts +2 -2
- package/types/SubscriptionsResource.d.ts +2 -2
- package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +23 -0
- package/types/TokensResource.d.ts +5 -0
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 17.4.0-beta.3 - 2024-11-14
|
|
4
|
+
* [#2226](https://github.com/stripe/stripe-node/pull/2226) Update generated code for beta
|
|
5
|
+
* Add support for `account_holder_address` and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].iban`, `FundingInstructions.bank_transfer.financial_addresses[].sort_code`, `FundingInstructions.bank_transfer.financial_addresses[].spei`, `FundingInstructions.bank_transfer.financial_addresses[].zengin`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].iban`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].sort_code`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin`
|
|
6
|
+
* Add support for `account_holder_name` on `FundingInstructions.bank_transfer.financial_addresses[].spei` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`
|
|
7
|
+
* Add support for new value `subscribe` on enum `PaymentLinkUpdateParams.submit_type`
|
|
8
|
+
* [#2225](https://github.com/stripe/stripe-node/pull/2225) Update generated code for beta
|
|
9
|
+
* Add support for `respond` test helper method on resource `Issuing.Authorization`
|
|
10
|
+
* Add support for `fraud_challenges` and `verified_by_fraud_challenge` on `Issuing.Authorization`
|
|
11
|
+
|
|
3
12
|
## 17.4.0-beta.2 - 2024-11-07
|
|
4
13
|
* [#2219](https://github.com/stripe/stripe-node/pull/2219) Update generated code for beta
|
|
5
14
|
* Add support for new resources `Issuing.FraudLiabilityDebit`, `PaymentAttemptRecord`, and `PaymentRecord`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
17.4.0-beta.
|
|
1
|
+
17.4.0-beta.3
|
package/cjs/apiVersion.js
CHANGED
|
@@ -25,6 +25,10 @@ exports.Authorizations = StripeResource_js_1.StripeResource.extend({
|
|
|
25
25
|
method: 'POST',
|
|
26
26
|
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/increment',
|
|
27
27
|
}),
|
|
28
|
+
respond: stripeMethod({
|
|
29
|
+
method: 'POST',
|
|
30
|
+
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond',
|
|
31
|
+
}),
|
|
28
32
|
reverse: stripeMethod({
|
|
29
33
|
method: 'POST',
|
|
30
34
|
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/reverse',
|
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 = '17.4.0-beta.
|
|
39
|
+
Stripe.PACKAGE_VERSION = '17.4.0-beta.3';
|
|
40
40
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
41
41
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
42
42
|
Stripe.resources = resources;
|
package/esm/apiVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
|
-
export const ApiVersion = '2024-
|
|
2
|
+
export const ApiVersion = '2024-11-20.acacia';
|
|
@@ -22,6 +22,10 @@ export const Authorizations = StripeResource.extend({
|
|
|
22
22
|
method: 'POST',
|
|
23
23
|
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/increment',
|
|
24
24
|
}),
|
|
25
|
+
respond: stripeMethod({
|
|
26
|
+
method: 'POST',
|
|
27
|
+
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond',
|
|
28
|
+
}),
|
|
25
29
|
reverse: stripeMethod({
|
|
26
30
|
method: 'POST',
|
|
27
31
|
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/reverse',
|
package/esm/stripe.core.js
CHANGED
|
@@ -33,7 +33,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
33
33
|
];
|
|
34
34
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
35
35
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
36
|
-
Stripe.PACKAGE_VERSION = '17.4.0-beta.
|
|
36
|
+
Stripe.PACKAGE_VERSION = '17.4.0-beta.3';
|
|
37
37
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
38
38
|
Stripe.StripeResource = StripeResource;
|
|
39
39
|
Stripe.resources = resources;
|
package/package.json
CHANGED
package/types/Accounts.d.ts
CHANGED
|
@@ -1018,7 +1018,7 @@ declare module 'stripe' {
|
|
|
1018
1018
|
alternatives: Array<FutureRequirements.Alternative> | null;
|
|
1019
1019
|
|
|
1020
1020
|
/**
|
|
1021
|
-
* Date on which `future_requirements`
|
|
1021
|
+
* Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.
|
|
1022
1022
|
*/
|
|
1023
1023
|
current_deadline: number | null;
|
|
1024
1024
|
|
|
@@ -4133,6 +4133,11 @@ declare module 'stripe' {
|
|
|
4133
4133
|
}
|
|
4134
4134
|
|
|
4135
4135
|
interface Relationship {
|
|
4136
|
+
/**
|
|
4137
|
+
* Whether the person is the authorizer of the account's representative.
|
|
4138
|
+
*/
|
|
4139
|
+
authorizer?: boolean;
|
|
4140
|
+
|
|
4136
4141
|
/**
|
|
4137
4142
|
* Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
|
|
4138
4143
|
*/
|
|
@@ -4249,6 +4254,11 @@ declare module 'stripe' {
|
|
|
4249
4254
|
|
|
4250
4255
|
namespace AccountListPersonsParams {
|
|
4251
4256
|
interface Relationship {
|
|
4257
|
+
/**
|
|
4258
|
+
* A filter on the list of people returned based on whether these people are authorizers of the account's representative.
|
|
4259
|
+
*/
|
|
4260
|
+
authorizer?: boolean;
|
|
4261
|
+
|
|
4252
4262
|
/**
|
|
4253
4263
|
* A filter on the list of people returned based on whether these people are directors of the account's company.
|
|
4254
4264
|
*/
|
|
@@ -4663,6 +4673,11 @@ declare module 'stripe' {
|
|
|
4663
4673
|
}
|
|
4664
4674
|
|
|
4665
4675
|
interface Relationship {
|
|
4676
|
+
/**
|
|
4677
|
+
* Whether the person is the authorizer of the account's representative.
|
|
4678
|
+
*/
|
|
4679
|
+
authorizer?: boolean;
|
|
4680
|
+
|
|
4666
4681
|
/**
|
|
4667
4682
|
* Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
|
|
4668
4683
|
*/
|
package/types/Capabilities.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ declare module 'stripe' {
|
|
|
51
51
|
alternatives: Array<FutureRequirements.Alternative> | null;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* Date on which `future_requirements`
|
|
54
|
+
* Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning.
|
|
55
55
|
*/
|
|
56
56
|
current_deadline: number | null;
|
|
57
57
|
|
|
@@ -2455,7 +2455,7 @@ declare module 'stripe' {
|
|
|
2455
2455
|
|
|
2456
2456
|
type Status = 'complete' | 'expired' | 'open';
|
|
2457
2457
|
|
|
2458
|
-
type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
|
|
2458
|
+
type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';
|
|
2459
2459
|
|
|
2460
2460
|
interface TaxIdCollection {
|
|
2461
2461
|
/**
|
|
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
interface FileLinkCreateParams {
|
|
6
6
|
/**
|
|
7
|
-
* The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
|
|
7
|
+
* The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `financial_account_statement`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`.
|
|
8
8
|
*/
|
|
9
9
|
file: string;
|
|
10
10
|
|
package/types/Files.d.ts
CHANGED
package/types/FilesResource.d.ts
CHANGED
|
@@ -127,11 +127,15 @@ declare module 'stripe' {
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
interface Iban {
|
|
130
|
+
account_holder_address: Stripe.Address;
|
|
131
|
+
|
|
130
132
|
/**
|
|
131
133
|
* The name of the person or business that owns the bank account
|
|
132
134
|
*/
|
|
133
135
|
account_holder_name: string;
|
|
134
136
|
|
|
137
|
+
bank_address: Stripe.Address;
|
|
138
|
+
|
|
135
139
|
/**
|
|
136
140
|
* The BIC/SWIFT code of the account.
|
|
137
141
|
*/
|
|
@@ -149,6 +153,8 @@ declare module 'stripe' {
|
|
|
149
153
|
}
|
|
150
154
|
|
|
151
155
|
interface SortCode {
|
|
156
|
+
account_holder_address: Stripe.Address;
|
|
157
|
+
|
|
152
158
|
/**
|
|
153
159
|
* The name of the person or business that owns the bank account
|
|
154
160
|
*/
|
|
@@ -159,6 +165,8 @@ declare module 'stripe' {
|
|
|
159
165
|
*/
|
|
160
166
|
account_number: string;
|
|
161
167
|
|
|
168
|
+
bank_address: Stripe.Address;
|
|
169
|
+
|
|
162
170
|
/**
|
|
163
171
|
* The six-digit sort code
|
|
164
172
|
*/
|
|
@@ -166,6 +174,15 @@ declare module 'stripe' {
|
|
|
166
174
|
}
|
|
167
175
|
|
|
168
176
|
interface Spei {
|
|
177
|
+
account_holder_address: Stripe.Address;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The account holder name
|
|
181
|
+
*/
|
|
182
|
+
account_holder_name: string;
|
|
183
|
+
|
|
184
|
+
bank_address: Stripe.Address;
|
|
185
|
+
|
|
169
186
|
/**
|
|
170
187
|
* The three-digit bank code
|
|
171
188
|
*/
|
|
@@ -232,6 +249,8 @@ declare module 'stripe' {
|
|
|
232
249
|
| 'zengin';
|
|
233
250
|
|
|
234
251
|
interface Zengin {
|
|
252
|
+
account_holder_address: Stripe.Address;
|
|
253
|
+
|
|
235
254
|
/**
|
|
236
255
|
* The account holder name
|
|
237
256
|
*/
|
|
@@ -247,6 +266,8 @@ declare module 'stripe' {
|
|
|
247
266
|
*/
|
|
248
267
|
account_type: string | null;
|
|
249
268
|
|
|
269
|
+
bank_address: Stripe.Address;
|
|
270
|
+
|
|
250
271
|
/**
|
|
251
272
|
* The bank code of the account
|
|
252
273
|
*/
|
package/types/Invoices.d.ts
CHANGED
|
@@ -1472,7 +1472,7 @@ declare module 'stripe' {
|
|
|
1472
1472
|
metadata: Stripe.Metadata | null;
|
|
1473
1473
|
|
|
1474
1474
|
/**
|
|
1475
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
1475
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
1476
1476
|
*/
|
|
1477
1477
|
pause_collection?: SubscriptionDetails.PauseCollection | null;
|
|
1478
1478
|
}
|
|
@@ -3330,7 +3330,7 @@ declare module 'stripe' {
|
|
|
3330
3330
|
on_behalf_of?: string;
|
|
3331
3331
|
|
|
3332
3332
|
/**
|
|
3333
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
3333
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
3334
3334
|
*/
|
|
3335
3335
|
pause_collection?: Phase.PauseCollection;
|
|
3336
3336
|
|
|
@@ -5551,7 +5551,7 @@ declare module 'stripe' {
|
|
|
5551
5551
|
on_behalf_of?: string;
|
|
5552
5552
|
|
|
5553
5553
|
/**
|
|
5554
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
5554
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
5555
5555
|
*/
|
|
5556
5556
|
pause_collection?: Phase.PauseCollection;
|
|
5557
5557
|
|
|
@@ -8031,7 +8031,7 @@ declare module 'stripe' {
|
|
|
8031
8031
|
on_behalf_of?: string;
|
|
8032
8032
|
|
|
8033
8033
|
/**
|
|
8034
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
8034
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
8035
8035
|
*/
|
|
8036
8036
|
pause_collection?: Phase.PauseCollection;
|
|
8037
8037
|
|
|
@@ -71,6 +71,11 @@ declare module 'stripe' {
|
|
|
71
71
|
*/
|
|
72
72
|
fleet: Authorization.Fleet | null;
|
|
73
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk reasons.
|
|
76
|
+
*/
|
|
77
|
+
fraud_challenges?: Array<Authorization.FraudChallenge> | null;
|
|
78
|
+
|
|
74
79
|
/**
|
|
75
80
|
* Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed.
|
|
76
81
|
*/
|
|
@@ -135,6 +140,11 @@ declare module 'stripe' {
|
|
|
135
140
|
|
|
136
141
|
verification_data: Authorization.VerificationData;
|
|
137
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Whether the authorization bypassed fraud risk checks because the cardholder has previously completed a fraud challenge on a similar high-risk authorization from the same merchant.
|
|
145
|
+
*/
|
|
146
|
+
verified_by_fraud_challenge?: boolean | null;
|
|
147
|
+
|
|
138
148
|
/**
|
|
139
149
|
* The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized.
|
|
140
150
|
*/
|
|
@@ -273,6 +283,36 @@ declare module 'stripe' {
|
|
|
273
283
|
| 'self_service';
|
|
274
284
|
}
|
|
275
285
|
|
|
286
|
+
interface FraudChallenge {
|
|
287
|
+
/**
|
|
288
|
+
* The method by which the fraud challenge was delivered to the cardholder.
|
|
289
|
+
*/
|
|
290
|
+
channel: 'sms';
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* The status of the fraud challenge.
|
|
294
|
+
*/
|
|
295
|
+
status: FraudChallenge.Status;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* If the challenge is not deliverable, the reason why.
|
|
299
|
+
*/
|
|
300
|
+
undeliverable_reason: FraudChallenge.UndeliverableReason | null;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
namespace FraudChallenge {
|
|
304
|
+
type Status =
|
|
305
|
+
| 'expired'
|
|
306
|
+
| 'pending'
|
|
307
|
+
| 'rejected'
|
|
308
|
+
| 'undeliverable'
|
|
309
|
+
| 'verified';
|
|
310
|
+
|
|
311
|
+
type UndeliverableReason =
|
|
312
|
+
| 'no_phone_number'
|
|
313
|
+
| 'unsupported_phone_number';
|
|
314
|
+
}
|
|
315
|
+
|
|
276
316
|
interface Fuel {
|
|
277
317
|
/**
|
|
278
318
|
* [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
|
@@ -6,7 +6,7 @@ declare module 'stripe' {
|
|
|
6
6
|
/**
|
|
7
7
|
* An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards.
|
|
8
8
|
*
|
|
9
|
-
* Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards#create-cardholder)
|
|
9
|
+
* Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder)
|
|
10
10
|
*/
|
|
11
11
|
interface Cardholder {
|
|
12
12
|
/**
|
package/types/Issuing/Cards.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ declare module 'stripe' {
|
|
|
30
30
|
/**
|
|
31
31
|
* An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards.
|
|
32
32
|
*
|
|
33
|
-
* Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards#create-cardholder)
|
|
33
|
+
* Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder)
|
|
34
34
|
*/
|
|
35
35
|
cardholder: Stripe.Issuing.Cardholder;
|
|
36
36
|
|
|
@@ -839,11 +839,15 @@ declare module 'stripe' {
|
|
|
839
839
|
}
|
|
840
840
|
|
|
841
841
|
interface Iban {
|
|
842
|
+
account_holder_address: Stripe.Address;
|
|
843
|
+
|
|
842
844
|
/**
|
|
843
845
|
* The name of the person or business that owns the bank account
|
|
844
846
|
*/
|
|
845
847
|
account_holder_name: string;
|
|
846
848
|
|
|
849
|
+
bank_address: Stripe.Address;
|
|
850
|
+
|
|
847
851
|
/**
|
|
848
852
|
* The BIC/SWIFT code of the account.
|
|
849
853
|
*/
|
|
@@ -861,6 +865,8 @@ declare module 'stripe' {
|
|
|
861
865
|
}
|
|
862
866
|
|
|
863
867
|
interface SortCode {
|
|
868
|
+
account_holder_address: Stripe.Address;
|
|
869
|
+
|
|
864
870
|
/**
|
|
865
871
|
* The name of the person or business that owns the bank account
|
|
866
872
|
*/
|
|
@@ -871,6 +877,8 @@ declare module 'stripe' {
|
|
|
871
877
|
*/
|
|
872
878
|
account_number: string;
|
|
873
879
|
|
|
880
|
+
bank_address: Stripe.Address;
|
|
881
|
+
|
|
874
882
|
/**
|
|
875
883
|
* The six-digit sort code
|
|
876
884
|
*/
|
|
@@ -878,6 +886,15 @@ declare module 'stripe' {
|
|
|
878
886
|
}
|
|
879
887
|
|
|
880
888
|
interface Spei {
|
|
889
|
+
account_holder_address: Stripe.Address;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* The account holder name
|
|
893
|
+
*/
|
|
894
|
+
account_holder_name: string;
|
|
895
|
+
|
|
896
|
+
bank_address: Stripe.Address;
|
|
897
|
+
|
|
881
898
|
/**
|
|
882
899
|
* The three-digit bank code
|
|
883
900
|
*/
|
|
@@ -944,6 +961,8 @@ declare module 'stripe' {
|
|
|
944
961
|
| 'zengin';
|
|
945
962
|
|
|
946
963
|
interface Zengin {
|
|
964
|
+
account_holder_address: Stripe.Address;
|
|
965
|
+
|
|
947
966
|
/**
|
|
948
967
|
* The account holder name
|
|
949
968
|
*/
|
|
@@ -959,6 +978,8 @@ declare module 'stripe' {
|
|
|
959
978
|
*/
|
|
960
979
|
account_type: string | null;
|
|
961
980
|
|
|
981
|
+
bank_address: Stripe.Address;
|
|
982
|
+
|
|
962
983
|
/**
|
|
963
984
|
* The bank code of the account
|
|
964
985
|
*/
|
|
@@ -3021,7 +3042,7 @@ declare module 'stripe' {
|
|
|
3021
3042
|
|
|
3022
3043
|
interface Swish {
|
|
3023
3044
|
/**
|
|
3024
|
-
*
|
|
3045
|
+
* A reference for this payment to be displayed in the Swish app.
|
|
3025
3046
|
*/
|
|
3026
3047
|
reference: string | null;
|
|
3027
3048
|
|
|
@@ -3570,7 +3570,7 @@ declare module 'stripe' {
|
|
|
3570
3570
|
|
|
3571
3571
|
interface Swish {
|
|
3572
3572
|
/**
|
|
3573
|
-
*
|
|
3573
|
+
* A reference for this payment to be displayed in the Swish app.
|
|
3574
3574
|
*/
|
|
3575
3575
|
reference?: Stripe.Emptyable<string>;
|
|
3576
3576
|
|
|
@@ -7326,7 +7326,7 @@ declare module 'stripe' {
|
|
|
7326
7326
|
|
|
7327
7327
|
interface Swish {
|
|
7328
7328
|
/**
|
|
7329
|
-
*
|
|
7329
|
+
* A reference for this payment to be displayed in the Swish app.
|
|
7330
7330
|
*/
|
|
7331
7331
|
reference?: Stripe.Emptyable<string>;
|
|
7332
7332
|
|
|
@@ -11837,7 +11837,7 @@ declare module 'stripe' {
|
|
|
11837
11837
|
|
|
11838
11838
|
interface Swish {
|
|
11839
11839
|
/**
|
|
11840
|
-
*
|
|
11840
|
+
* A reference for this payment to be displayed in the Swish app.
|
|
11841
11841
|
*/
|
|
11842
11842
|
reference?: Stripe.Emptyable<string>;
|
|
11843
11843
|
|
package/types/PaymentLinks.d.ts
CHANGED
|
@@ -865,7 +865,7 @@ declare module 'stripe' {
|
|
|
865
865
|
shipping_rate: string | Stripe.ShippingRate;
|
|
866
866
|
}
|
|
867
867
|
|
|
868
|
-
type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
|
|
868
|
+
type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';
|
|
869
869
|
|
|
870
870
|
interface SubscriptionData {
|
|
871
871
|
/**
|
|
@@ -918,7 +918,7 @@ declare module 'stripe' {
|
|
|
918
918
|
shipping_rate?: string;
|
|
919
919
|
}
|
|
920
920
|
|
|
921
|
-
type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
|
|
921
|
+
type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';
|
|
922
922
|
|
|
923
923
|
interface SubscriptionData {
|
|
924
924
|
/**
|
|
@@ -1840,7 +1840,7 @@ declare module 'stripe' {
|
|
|
1840
1840
|
| 'ZZ';
|
|
1841
1841
|
}
|
|
1842
1842
|
|
|
1843
|
-
type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
|
|
1843
|
+
type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe';
|
|
1844
1844
|
|
|
1845
1845
|
interface SubscriptionData {
|
|
1846
1846
|
/**
|
package/types/Payouts.d.ts
CHANGED
|
@@ -137,6 +137,11 @@ declare module 'stripe' {
|
|
|
137
137
|
*/
|
|
138
138
|
status: string;
|
|
139
139
|
|
|
140
|
+
/**
|
|
141
|
+
* A value that generates from the beneficiary's bank that allows users to track payouts with their bank. Banks might call this a "reference number" or something similar.
|
|
142
|
+
*/
|
|
143
|
+
trace_id?: Payout.TraceId | null;
|
|
144
|
+
|
|
140
145
|
/**
|
|
141
146
|
* Can be `bank_account` or `card`.
|
|
142
147
|
*/
|
|
@@ -149,6 +154,18 @@ declare module 'stripe' {
|
|
|
149
154
|
| 'in_progress'
|
|
150
155
|
| 'not_applicable';
|
|
151
156
|
|
|
157
|
+
interface TraceId {
|
|
158
|
+
/**
|
|
159
|
+
* Possible values are `pending`, `supported`, and `unsupported`. When `payout.status` is `pending` or `in_transit`, this will be `pending`. When the payout transitions to `paid`, `failed`, or `canceled`, this status will become `supported` or `unsupported` shortly after in most cases. In some cases, this may appear as `pending` for up to 10 days after `arrival_date` until transitioning to `supported` or `unsupported`.
|
|
160
|
+
*/
|
|
161
|
+
status: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* The trace ID value if `trace_id.status` is `supported`, otherwise `nil`.
|
|
165
|
+
*/
|
|
166
|
+
value: string | null;
|
|
167
|
+
}
|
|
168
|
+
|
|
152
169
|
type Type = 'bank_account' | 'card';
|
|
153
170
|
}
|
|
154
171
|
}
|
package/types/Persons.d.ts
CHANGED
|
@@ -451,6 +451,11 @@ declare module 'stripe' {
|
|
|
451
451
|
type PoliticalExposure = 'existing' | 'none';
|
|
452
452
|
|
|
453
453
|
interface Relationship {
|
|
454
|
+
/**
|
|
455
|
+
* Whether the person is the authorizer of the account's representative.
|
|
456
|
+
*/
|
|
457
|
+
authorizer: boolean | null;
|
|
458
|
+
|
|
454
459
|
/**
|
|
455
460
|
* Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
|
|
456
461
|
*/
|
package/types/QuoteLines.d.ts
CHANGED
|
@@ -531,7 +531,7 @@ declare module 'stripe' {
|
|
|
531
531
|
|
|
532
532
|
interface SetPauseCollection {
|
|
533
533
|
/**
|
|
534
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
534
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
535
535
|
*/
|
|
536
536
|
set?: SetPauseCollection.Set | null;
|
|
537
537
|
|
|
@@ -1446,7 +1446,7 @@ declare module 'stripe' {
|
|
|
1446
1446
|
metadata: Stripe.Metadata | null;
|
|
1447
1447
|
|
|
1448
1448
|
/**
|
|
1449
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
1449
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
1450
1450
|
*/
|
|
1451
1451
|
pause_collection?: SubscriptionDetails.PauseCollection | null;
|
|
1452
1452
|
}
|
|
@@ -408,7 +408,7 @@ declare module 'stripe' {
|
|
|
408
408
|
on_behalf_of: string | Stripe.Account | null;
|
|
409
409
|
|
|
410
410
|
/**
|
|
411
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
411
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
412
412
|
*/
|
|
413
413
|
pause_collection?: Phase.PauseCollection | null;
|
|
414
414
|
|
package/types/Refunds.d.ts
CHANGED
|
@@ -191,6 +191,11 @@ declare module 'stripe' {
|
|
|
191
191
|
interface AuBankTransfer {}
|
|
192
192
|
|
|
193
193
|
interface Blik {
|
|
194
|
+
/**
|
|
195
|
+
* For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed.
|
|
196
|
+
*/
|
|
197
|
+
network_decline_code?: string | null;
|
|
198
|
+
|
|
194
199
|
/**
|
|
195
200
|
* The reference assigned to the refund.
|
|
196
201
|
*/
|
|
@@ -347,6 +352,11 @@ declare module 'stripe' {
|
|
|
347
352
|
interface Sofort {}
|
|
348
353
|
|
|
349
354
|
interface Swish {
|
|
355
|
+
/**
|
|
356
|
+
* For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed.
|
|
357
|
+
*/
|
|
358
|
+
network_decline_code?: string | null;
|
|
359
|
+
|
|
350
360
|
/**
|
|
351
361
|
* The reference assigned to the refund.
|
|
352
362
|
*/
|
|
@@ -387,7 +387,7 @@ declare module 'stripe' {
|
|
|
387
387
|
on_behalf_of: string | Stripe.Account | null;
|
|
388
388
|
|
|
389
389
|
/**
|
|
390
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
390
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
391
391
|
*/
|
|
392
392
|
pause_collection?: Phase.PauseCollection | null;
|
|
393
393
|
|
|
@@ -300,7 +300,7 @@ declare module 'stripe' {
|
|
|
300
300
|
on_behalf_of?: string;
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
303
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
304
304
|
*/
|
|
305
305
|
pause_collection?: Phase.PauseCollection;
|
|
306
306
|
|
|
@@ -1147,7 +1147,7 @@ declare module 'stripe' {
|
|
|
1147
1147
|
on_behalf_of?: string;
|
|
1148
1148
|
|
|
1149
1149
|
/**
|
|
1150
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
1150
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
1151
1151
|
*/
|
|
1152
1152
|
pause_collection?: Phase.PauseCollection;
|
|
1153
1153
|
|
package/types/Subscriptions.d.ts
CHANGED
|
@@ -177,7 +177,7 @@ declare module 'stripe' {
|
|
|
177
177
|
on_behalf_of: string | Stripe.Account | null;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
180
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
181
181
|
*/
|
|
182
182
|
pause_collection: Subscription.PauseCollection | null;
|
|
183
183
|
|
|
@@ -223,7 +223,7 @@ declare module 'stripe' {
|
|
|
223
223
|
*
|
|
224
224
|
* A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over.
|
|
225
225
|
*
|
|
226
|
-
* A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged.
|
|
226
|
+
* A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/docs/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged.
|
|
227
227
|
*
|
|
228
228
|
* If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings).
|
|
229
229
|
*
|
|
@@ -1172,7 +1172,7 @@ declare module 'stripe' {
|
|
|
1172
1172
|
on_behalf_of?: Stripe.Emptyable<string>;
|
|
1173
1173
|
|
|
1174
1174
|
/**
|
|
1175
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
1175
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
|
|
1176
1176
|
*/
|
|
1177
1177
|
pause_collection?: Stripe.Emptyable<
|
|
1178
1178
|
SubscriptionUpdateParams.PauseCollection
|
|
@@ -2327,7 +2327,7 @@ declare module 'stripe' {
|
|
|
2327
2327
|
* A trial starts or ends.
|
|
2328
2328
|
*
|
|
2329
2329
|
*
|
|
2330
|
-
* In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment).
|
|
2330
|
+
* In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment).
|
|
2331
2331
|
*
|
|
2332
2332
|
* If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create).
|
|
2333
2333
|
*
|
|
@@ -1188,6 +1188,20 @@ declare module 'stripe' {
|
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
1190
|
|
|
1191
|
+
namespace Issuing {
|
|
1192
|
+
interface AuthorizationRespondParams {
|
|
1193
|
+
/**
|
|
1194
|
+
* Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false).
|
|
1195
|
+
*/
|
|
1196
|
+
confirmed: boolean;
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Specifies which fields in the response should be expanded.
|
|
1200
|
+
*/
|
|
1201
|
+
expand?: Array<string>;
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1191
1205
|
namespace Issuing {
|
|
1192
1206
|
interface AuthorizationReverseParams {
|
|
1193
1207
|
/**
|
|
@@ -1256,6 +1270,15 @@ declare module 'stripe' {
|
|
|
1256
1270
|
options?: RequestOptions
|
|
1257
1271
|
): Promise<Stripe.Response<Stripe.Issuing.Authorization>>;
|
|
1258
1272
|
|
|
1273
|
+
/**
|
|
1274
|
+
* Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy.
|
|
1275
|
+
*/
|
|
1276
|
+
respond(
|
|
1277
|
+
id: string,
|
|
1278
|
+
params: AuthorizationRespondParams,
|
|
1279
|
+
options?: RequestOptions
|
|
1280
|
+
): Promise<Stripe.Response<Stripe.Issuing.Authorization>>;
|
|
1281
|
+
|
|
1259
1282
|
/**
|
|
1260
1283
|
* Reverse a test-mode Authorization.
|
|
1261
1284
|
*/
|
|
@@ -797,6 +797,11 @@ declare module 'stripe' {
|
|
|
797
797
|
}
|
|
798
798
|
|
|
799
799
|
interface Relationship {
|
|
800
|
+
/**
|
|
801
|
+
* Whether the person is the authorizer of the account's representative.
|
|
802
|
+
*/
|
|
803
|
+
authorizer?: boolean;
|
|
804
|
+
|
|
800
805
|
/**
|
|
801
806
|
* Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
|
|
802
807
|
*/
|
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 = '2024-
|
|
30
|
+
export type LatestApiVersion = '2024-11-20.acacia';
|
|
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: '2024-
|
|
12
|
+
apiVersion: '2024-11-20.acacia',
|
|
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: '2024-
|
|
29
|
+
apiVersion: '2024-11-20.acacia',
|
|
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: '2024-
|
|
47
|
+
apiVersion: '2024-11-20.acacia',
|
|
48
48
|
};
|
|
49
49
|
const customer: Stripe.Customer = await stripe.customers.create(params, opts);
|
|
50
50
|
|