Skip to content

Commit 57cb5ca

Browse files
Merge upstream and update generated code for v1572
2 parents 267d43a + 6c78dcb commit 57cb5ca

File tree

69 files changed

+4985
-5900
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+4985
-5900
lines changed

CHANGELOG.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,6 @@
99
* Add support for `target_date` on `Order.payment.settings.payment_method_options.acss_debit`, `Order.payment.settings.payment_method_options.sepa_debit`, `OrderCreateParams.payment.settings.payment_method_options.acss_debit`, `OrderCreateParams.payment.settings.payment_method_options.sepa_debit`, `OrderUpdateParams.payment.settings.payment_method_options.acss_debit`, and `OrderUpdateParams.payment.settings.payment_method_options.sepa_debit`
1010
* [#2272](https://github.com/stripe/stripe-node/pull/2272) Merge master
1111

12-
## 17.7.0-beta.1 - 2025-02-07
13-
* [#2254](https://github.com/stripe/stripe-node/pull/2254) Update generated code for beta
14-
* Add support for `rejected_reason` on `Account.risk_controls`
15-
* Add support for `product_tax_code_selector` on `AccountSessionCreateParams.components`
16-
* Add support for `prices` on `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope`, `Billing.CreditGrant.applicability_config.scope`, and `Billing.CreditGrantCreateParams.applicability_config.scope`
17-
* Change `Billing.CreditGrant.applicability_config.scope.price_type`, `Checkout.Session.collected_information.business_name`, `Checkout.Session.collected_information.email`, `Checkout.Session.collected_information.phone`, `Checkout.Session.collected_information.shipping_details`, and `Checkout.Session.collected_information.tax_ids` to be optional
18-
* Add support for `brand_product` on `Charge.payment_method_details.amazon_pay.funding.card` and `Charge.payment_method_details.revolut_pay.funding.card`
19-
* Add support for `restrictions` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
20-
* Change `Checkout.Session.discounts` to be required
21-
* Change type of `TokenCreateParams.person.political_exposure` from `string` to `enum('existing'|'none')`
22-
2312
## 17.7.0 - 2025-02-24
2413
* [#2256](https://github.com/stripe/stripe-node/pull/2256) Update generated code
2514
* Add support for `prices` on `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope`, `Billing.CreditGrant.applicability_config.scope`, and `Billing.CreditGrantCreateParams.applicability_config.scope`
@@ -35,6 +24,17 @@
3524
* [#2259](https://github.com/stripe/stripe-node/pull/2259) Add Next.js App Router webhook example that leverages Route Handlers
3625
* [#2257](https://github.com/stripe/stripe-node/pull/2257) Include `OPENAPI_VERSION` into npm bundle
3726

27+
## 17.7.0-beta.1 - 2025-02-07
28+
* [#2254](https://github.com/stripe/stripe-node/pull/2254) Update generated code for beta
29+
* Add support for `rejected_reason` on `Account.risk_controls`
30+
* Add support for `product_tax_code_selector` on `AccountSessionCreateParams.components`
31+
* Add support for `prices` on `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope`, `Billing.CreditGrant.applicability_config.scope`, and `Billing.CreditGrantCreateParams.applicability_config.scope`
32+
* Change `Billing.CreditGrant.applicability_config.scope.price_type`, `Checkout.Session.collected_information.business_name`, `Checkout.Session.collected_information.email`, `Checkout.Session.collected_information.phone`, `Checkout.Session.collected_information.shipping_details`, and `Checkout.Session.collected_information.tax_ids` to be optional
33+
* Add support for `brand_product` on `Charge.payment_method_details.amazon_pay.funding.card` and `Charge.payment_method_details.revolut_pay.funding.card`
34+
* Add support for `restrictions` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
35+
* Change `Checkout.Session.discounts` to be required
36+
* Change type of `TokenCreateParams.person.political_exposure` from `string` to `enum('existing'|'none')`
37+
3838
## 17.6.0 - 2025-01-27
3939
* [#2250](https://github.com/stripe/stripe-node/pull/2250) Update generated code
4040
* Add support for `close` method on resource `Treasury.FinancialAccount`

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1505
1+
v1572

src/apiVersion.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// File generated from our OpenAPI spec
22

3-
export const ApiVersion = '2025-02-24.acacia';
3+
export const ApiVersion = '2025-03-31.basil';

src/resources/Invoices.ts

-9
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ export const Invoices = StripeResource.extend({
4242
fullPath: '/v1/invoices/{invoice}/payments',
4343
methodType: 'list',
4444
}),
45-
listUpcomingLines: stripeMethod({
46-
method: 'GET',
47-
fullPath: '/v1/invoices/upcoming/lines',
48-
methodType: 'list',
49-
}),
5045
markUncollectible: stripeMethod({
5146
method: 'POST',
5247
fullPath: '/v1/invoices/{invoice}/mark_uncollectible',
@@ -60,10 +55,6 @@ export const Invoices = StripeResource.extend({
6055
method: 'GET',
6156
fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
6257
}),
63-
retrieveUpcoming: stripeMethod({
64-
method: 'GET',
65-
fullPath: '/v1/invoices/upcoming',
66-
}),
6758
search: stripeMethod({
6859
method: 'GET',
6960
fullPath: '/v1/invoices/search',

test/resources/generated_examples_test.spec.js

+2-11
Large diffs are not rendered by default.

types/Accounts.d.ts

+26
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ declare module 'stripe' {
269269
*/
270270
bank_transfer_payments?: Capabilities.BankTransferPayments;
271271

272+
/**
273+
* The status of the Billie capability of the account, or whether the account can directly process Billie payments.
274+
*/
275+
billie_payments?: Capabilities.BilliePayments;
276+
272277
/**
273278
* The status of the blik payments capability of the account, or whether the account can directly process blik charges.
274279
*/
@@ -474,6 +479,11 @@ declare module 'stripe' {
474479
*/
475480
samsung_pay_payments?: Capabilities.SamsungPayPayments;
476481

482+
/**
483+
* The status of the Satispay capability of the account, or whether the account can directly process Satispay payments.
484+
*/
485+
satispay_payments?: Capabilities.SatispayPayments;
486+
477487
/**
478488
* The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges.
479489
*/
@@ -576,6 +586,8 @@ declare module 'stripe' {
576586

577587
type BankTransferPayments = 'active' | 'inactive' | 'pending';
578588

589+
type BilliePayments = 'active' | 'inactive' | 'pending';
590+
579591
type BlikPayments = 'active' | 'inactive' | 'pending';
580592

581593
type BoletoPayments = 'active' | 'inactive' | 'pending';
@@ -658,6 +670,8 @@ declare module 'stripe' {
658670

659671
type SamsungPayPayments = 'active' | 'inactive' | 'pending';
660672

673+
type SatispayPayments = 'active' | 'inactive' | 'pending';
674+
661675
type SepaBankTransferPayments = 'active' | 'inactive' | 'pending';
662676

663677
type SepaDebitPayments = 'active' | 'inactive' | 'pending';
@@ -754,6 +768,9 @@ declare module 'stripe' {
754768
*/
755769
ownership_declaration?: Company.OwnershipDeclaration | null;
756770

771+
/**
772+
* This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
773+
*/
757774
ownership_exemption_reason?: Company.OwnershipExemptionReason;
758775

759776
/**
@@ -1629,6 +1646,15 @@ declare module 'stripe' {
16291646
* The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
16301647
*/
16311648
default_account_tax_ids: Array<string | Stripe.TaxId> | null;
1649+
1650+
/**
1651+
* Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
1652+
*/
1653+
hosted_payment_method_save?: Invoices.HostedPaymentMethodSave | null;
1654+
}
1655+
1656+
namespace Invoices {
1657+
type HostedPaymentMethodSave = 'always' | 'never' | 'offer';
16321658
}
16331659

16341660
interface Payments {

types/AccountsResource.d.ts

+80-1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ declare module 'stripe' {
254254
*/
255255
bank_transfer_payments?: Capabilities.BankTransferPayments;
256256

257+
/**
258+
* The billie_payments capability.
259+
*/
260+
billie_payments?: Capabilities.BilliePayments;
261+
257262
/**
258263
* The blik_payments capability.
259264
*/
@@ -459,6 +464,11 @@ declare module 'stripe' {
459464
*/
460465
samsung_pay_payments?: Capabilities.SamsungPayPayments;
461466

467+
/**
468+
* The satispay_payments capability.
469+
*/
470+
satispay_payments?: Capabilities.SatispayPayments;
471+
462472
/**
463473
* The sepa_bank_transfer_payments capability.
464474
*/
@@ -611,6 +621,13 @@ declare module 'stripe' {
611621
requested?: boolean;
612622
}
613623

624+
interface BilliePayments {
625+
/**
626+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
627+
*/
628+
requested?: boolean;
629+
}
630+
614631
interface BlikPayments {
615632
/**
616633
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -898,6 +915,13 @@ declare module 'stripe' {
898915
requested?: boolean;
899916
}
900917

918+
interface SatispayPayments {
919+
/**
920+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
921+
*/
922+
requested?: boolean;
923+
}
924+
901925
interface SepaBankTransferPayments {
902926
/**
903927
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -1077,6 +1101,9 @@ declare module 'stripe' {
10771101
*/
10781102
ownership_declaration?: Company.OwnershipDeclaration;
10791103

1104+
/**
1105+
* This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
1106+
*/
10801107
ownership_exemption_reason?: Stripe.Emptyable<
10811108
Company.OwnershipExemptionReason
10821109
>;
@@ -1708,6 +1735,11 @@ declare module 'stripe' {
17081735
*/
17091736
card_payments?: Settings.CardPayments;
17101737

1738+
/**
1739+
* Settings specific to the account's use of Invoices.
1740+
*/
1741+
invoices?: Settings.Invoices;
1742+
17111743
/**
17121744
* Settings that apply across payment methods for charging on the account.
17131745
*/
@@ -1849,6 +1881,17 @@ declare module 'stripe' {
18491881
}
18501882
}
18511883

1884+
interface Invoices {
1885+
/**
1886+
* Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
1887+
*/
1888+
hosted_payment_method_save?: Invoices.HostedPaymentMethodSave;
1889+
}
1890+
1891+
namespace Invoices {
1892+
type HostedPaymentMethodSave = 'always' | 'never' | 'offer';
1893+
}
1894+
18521895
interface Payments {
18531896
/**
18541897
* The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
@@ -2266,6 +2309,11 @@ declare module 'stripe' {
22662309
*/
22672310
bank_transfer_payments?: Capabilities.BankTransferPayments;
22682311

2312+
/**
2313+
* The billie_payments capability.
2314+
*/
2315+
billie_payments?: Capabilities.BilliePayments;
2316+
22692317
/**
22702318
* The blik_payments capability.
22712319
*/
@@ -2471,6 +2519,11 @@ declare module 'stripe' {
24712519
*/
24722520
samsung_pay_payments?: Capabilities.SamsungPayPayments;
24732521

2522+
/**
2523+
* The satispay_payments capability.
2524+
*/
2525+
satispay_payments?: Capabilities.SatispayPayments;
2526+
24742527
/**
24752528
* The sepa_bank_transfer_payments capability.
24762529
*/
@@ -2623,6 +2676,13 @@ declare module 'stripe' {
26232676
requested?: boolean;
26242677
}
26252678

2679+
interface BilliePayments {
2680+
/**
2681+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2682+
*/
2683+
requested?: boolean;
2684+
}
2685+
26262686
interface BlikPayments {
26272687
/**
26282688
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -2910,6 +2970,13 @@ declare module 'stripe' {
29102970
requested?: boolean;
29112971
}
29122972

2973+
interface SatispayPayments {
2974+
/**
2975+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2976+
*/
2977+
requested?: boolean;
2978+
}
2979+
29132980
interface SepaBankTransferPayments {
29142981
/**
29152982
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -3132,6 +3199,9 @@ declare module 'stripe' {
31323199
*/
31333200
ownership_declaration?: Company.OwnershipDeclaration;
31343201

3202+
/**
3203+
* This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
3204+
*/
31353205
ownership_exemption_reason?: Stripe.Emptyable<
31363206
Company.OwnershipExemptionReason
31373207
>;
@@ -3780,6 +3850,15 @@ declare module 'stripe' {
37803850
* The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized.
37813851
*/
37823852
default_account_tax_ids?: Stripe.Emptyable<Array<string>>;
3853+
3854+
/**
3855+
* Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
3856+
*/
3857+
hosted_payment_method_save?: Invoices.HostedPaymentMethodSave;
3858+
}
3859+
3860+
namespace Invoices {
3861+
type HostedPaymentMethodSave = 'always' | 'never' | 'offer';
37833862
}
37843863

37853864
interface Payments {
@@ -3926,7 +4005,7 @@ declare module 'stripe' {
39264005

39274006
interface AccountCreateExternalAccountParams {
39284007
/**
3929-
* Please refer to full [documentation](https://stripe.com/docs/api) instead.
4008+
* A token, like the ones returned by [Stripe.js](https://stripe.com/docs/js) or a dictionary containing a user's external account details (with the options shown below). Please refer to full [documentation](https://stripe.com/docs/api/external_accounts) instead.
39304009
*/
39314010
external_account:
39324011
| string

types/ApplicationFees.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ declare module 'stripe' {
9595
payout?: string;
9696

9797
/**
98-
* Type of object that created the application fee, either `charge` or `payout`.
98+
* Type of object that created the application fee.
9999
*/
100100
type: FeeSource.Type;
101101
}

types/BankAccounts.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ declare module 'stripe' {
2323
object: 'bank_account';
2424

2525
/**
26-
* The ID of the account that the bank account is associated with.
26+
* The account this bank account belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an [External Account](https://stripe.com/api/external_account_bank_accounts/object) where [controller.is_controller](https://stripe.com/api/accounts/object#account_object-controller-is_controller) is `true`.
2727
*/
2828
account?: string | Stripe.Account | null;
2929

types/Billing/CreditBalanceSummaryResource.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ declare module 'stripe' {
4141
namespace Filter {
4242
interface ApplicabilityScope {
4343
/**
44-
* The price type that credit grants can apply to. We currently only support the `metered` price type.
44+
* The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
4545
*/
4646
price_type?: 'metered';
4747

4848
/**
49-
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
49+
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
5050
*/
5151
prices?: Array<ApplicabilityScope.Price>;
5252
}

types/Billing/CreditGrants.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@ declare module 'stripe' {
118118
namespace ApplicabilityConfig {
119119
interface Scope {
120120
/**
121-
* The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
121+
* The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`.
122122
*/
123123
price_type?: 'metered';
124124

125125
/**
126-
* The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
126+
* The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`.
127127
*/
128128
prices?: Array<Scope.Price>;
129129
}

types/Billing/CreditGrantsResource.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ declare module 'stripe' {
9292
namespace ApplicabilityConfig {
9393
interface Scope {
9494
/**
95-
* The price type that credit grants can apply to. We currently only support the `metered` price type.
95+
* The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
9696
*/
9797
price_type?: 'metered';
9898

9999
/**
100-
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
100+
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
101101
*/
102102
prices?: Array<Scope.Price>;
103103
}

0 commit comments

Comments
 (0)