Skip to content

Conversation

ramya-stripe
Copy link
Contributor

@ramya-stripe ramya-stripe commented Mar 28, 2025

Why?

In #2025 we've renamed params types to make them consistent and allow us to ship TaxIds. As part of it we added a set of deprecated type definitions to preserve old type names and avoid breaking changes.

Now that we are shipping a major version in March, it is time to clean up the deprecated types

What?

  • Remove the Deprecations.d.ts file and its reference
  • Remove the related test

Changelog

  • Removed the below types that were marked as deprecated in Feb 2024
    • Remove AccountDebitSource in favor of Account
    • Remove CapabilityListParams in favor of AccountListCapabilitiesParams
    • Remove CapabilityRetrieveParams in favor of AccountRetrieveCapabilityParams
    • Remove CapabilityUpdateParams in favor of AccountUpdateCapabilityParams
    • Remove CashBalanceRetrieveParams in favor of CustomerRetrieveCashBalanceParams
    • Remove CashBalanceUpdateParams in favor of CustomerUpdateCashBalanceParams
    • Remove CreditNoteLineItemListParams in favor of CreditNoteListLineItemsParams
    • Remove CustomerBalanceTransactionCreateParams in favor of CustomerCreateBalanceTransactionParams
    • Remove CustomerBalanceTransactionListParams in favor of CustomerListBalanceTransactionsParams
    • Remove CustomerBalanceTransactionRetrieveParams in favor of CustomerRetrieveBalanceTransactionParams
    • Remove CustomerBalanceTransactionUpdateParams in favor of CustomerUpdateBalanceTransactionParams
    • Remove CustomerCashBalanceTransactionListParams in favor of CustomerListCashBalanceTransactionsParams
    • Remove CustomerCashBalanceTransactionRetrieveParams in favor of CustomerRetrieveCashBalanceTransactionParams
    • Remove CustomerSourceCreateParams in favor of CustomerCreateSourceParams
    • Remove CustomerSourceDeleteParams in favor of CustomerDeleteSourceParams
    • Remove CustomerSourceListParams in favor of CustomerListSourcesParams
    • Remove CustomerSourceRetrieveParams in favor of CustomerRetrieveSourceParams
    • Remove CustomerSourceUpdateParams in favor of CustomerUpdateSourceParams
    • Remove CustomerSourceVerifyParams in favor of CustomerVerifySourceParams
    • Remove ExternalAccountCreateParams in favor of AccountCreateExternalAccountParams
    • Remove ExternalAccountDeleteParams in favor of AccountDeleteExternalAccountParams
    • Remove ExternalAccountListParams in favor of AccountListExternalAccountsParams
    • Remove ExternalAccountRetrieveParams in favor of AccountRetrieveExternalAccountParams
    • Remove ExternalAccountUpdateParams in favor of AccountUpdateExternalAccountParams
    • Remove FeeRefundCreateParams in favor of ApplicationFeeCreateRefundParams
    • Remove FeeRefundListParams in favor of ApplicationFeeListRefundsParams
    • Remove FeeRefundRetrieveParams in favor of ApplicationFeeRetrieveRefundParams
    • Remove FeeRefundUpdateParams in favor of ApplicationFeeUpdateRefundParams
    • Remove InvoiceLineItemListParams in favor of InvoiceListLineItemsParams
    • Remove InvoiceLineItemUpdateParams in favor of InvoiceUpdateLineItemParams
    • Remove LoginLinkCreateParams in favor of AccountCreateLoginLinkParams
    • Remove PersonCreateParams in favor of AccountCreatePersonParams
    • Remove PersonDeleteParams in favor of AccountDeletePersonParams
    • Remove PersonListParams in favor of AccountListPersonsParams
    • Remove PersonRetrieveParams in favor of AccountRetrievePersonParams
    • Remove PersonUpdateParams in favor of AccountUpdatePersonParams
    • Remove TransferReversalCreateParams in favor of TransferCreateReversalParams
    • Remove TransferReversalListParams in favor of TransferListReversalsParams
    • Remove TransferReversalRetrieveParams in favor of TransferRetrieveReversalParams
    • Remove TransferReversalUpdateParams in favor of TransferUpdateReversalParams
    • Remove UsageRecordCreateParams in favor of SubscriptionItemCreateUsageRecordParams
    • Remove UsageRecordSummaryListParams in favor of SubscriptionItemListUsageRecordSummariesParams

@ramya-stripe ramya-stripe marked this pull request as ready for review March 28, 2025 22:31
@ramya-stripe ramya-stripe requested a review from a team as a code owner March 28, 2025 22:31
@ramya-stripe ramya-stripe requested review from xavdid-stripe and removed request for a team March 28, 2025 22:31
@ramya-stripe ramya-stripe merged commit cf077b7 into master Mar 28, 2025
9 checks passed
@ramya-stripe ramya-stripe deleted the ramya/remove-deprecated-types branch March 28, 2025 22:40
ramya-stripe added a commit that referenced this pull request Apr 1, 2025
* Add Next.js App Router webhook example that leverages Route Handlers (#2259)

* Update generated code (#2256)

* Update generated code for v1463

* Update generated code for v1494

* Update generated code for v1495

* Update generated code for v1501

* Update generated code for v1505

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com>

* Bump version to 17.7.0

* Update actions/cache as v2 is deprecated (#2269)

* remove test using soon-to-be-gone endpoint (#2270)

* [BREAKING] swap Stripe.webhooks from a factory function to a static property (#2277)

swap Stripe.webhooks from a factory function to a static property

* Remove tests for endpoints that were removed (#2281)

* Remove types that were marked as deprecated in Feb 2024 (#2286)

* Remove types that were marked as deprecated in Feb 2024

* remove the test for deprecated type

* add Amount interface (#2289)

* Update generated code for v1641

* Update generated code for v1641

* Update generated code for v1641

* Update generated code for v1641

* Support for APIs in the new API version 2025-03-31.basil (#2279)

Update generated code for v1641

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

* Update generated code for v1642

* Update generated code for v1642

* Update generated code (#2291)

* Update generated code for v1642

* Update generated code for v1642

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>

* Update generated code for v1645

* Update generated code for v1646

---------

Co-authored-by: Jonathan Steele <83410553+jsteele-stripe@users.noreply.github.com>
Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com>
Co-authored-by: Prathmesh Ranaut <prathmesh@stripe.com>
Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
Co-authored-by: David Brownman <109395161+xavdid-stripe@users.noreply.github.com>
Co-authored-by: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants