Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix V2 list options base class #3026

Merged
merged 1 commit into from
Nov 6, 2024
Merged

Fix V2 list options base class #3026

merged 1 commit into from
Nov 6, 2024

Conversation

jar-stripe
Copy link
Contributor

@jar-stripe jar-stripe commented Nov 5, 2024

Why

API V2 lists have different semantics than lists in V1. In this SDK, we utilize a ListOptions base class to hold common options. We need to introduce a V2 specific ListOptions base class to ensure the V2 list semantics are correctly represented. This PR introduces this base class and updates V2 list options subclasses to derive from it instead of the V1 ListOptions class.

What

  • added ListOptions in the Stripe.V2 namespace in _base/V2/ListOptions.cs
  • updated V2 EventListOptions and EventDestinationListOptions to derive from V2.ListOptions

Changelog

  • Remove StartingAfter and EndingBefore properties from Stripe.V2.EventListOptions and Stripe.V2.EventDestinationListOptions. These properties are not supported on V2 List APIs and would result in a HTTP 400 error if provided.

updated V2 list options subclasses to derive from V2.ListOptions
@jar-stripe jar-stripe enabled auto-merge (squash) November 5, 2024 23:43
@jar-stripe
Copy link
Contributor Author

The compat issues are expected because we're correcting the base class of two list options classes to use the V2 ListOptions base class.

@jar-stripe jar-stripe merged commit 55ac148 into master Nov 6, 2024
3 of 4 checks passed
@jar-stripe jar-stripe deleted the jar/v2_list_options branch November 6, 2024 00:32
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