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

Next major release changes #1471

Merged
merged 23 commits into from
Nov 16, 2022
Merged

Next major release changes #1471

merged 23 commits into from
Nov 16, 2022

Conversation

pakrym-stripe
Copy link
Contributor

@pakrym-stripe pakrym-stripe commented Nov 7, 2022

Changelog

22.0.0 - 2022-11-15

Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15.

"⚠️" symbol highlights breaking changes.

Use of setStripeVersionOverride is discouraged and can lead to unexpected errors during service calls because Java SDK class shapes are not guaranteed to match API responses on arbitrary versions.

If you were using these methods in conjunction with EphemeralKey resource prefer the EphemeralKeyCreateParamsBuilder.setStripeVersion.

EphemeralKeyCreateParams params = EphemeralKeyCreateParams.builder()
  .setStripeVersion("XXXX-YY-ZZ")
  .build();

If you have a use case that requires per-request version overrides, please file an issue on stripe-java repository to ensure we are aware and can add first-class support for it. In the meantime you can use unsafeSetStripeVersionOverride method as a workaround.

RequestOptions.RequestOptionsBuilder builder = RequestOptions.builder();
builder.setApiKey(...)
            .setClientId(...);

RequestOptionsBuilder.unsafeSetStripeVersionOverride(builder, "2022-11-15");

anniel-stripe and others added 15 commits October 12, 2022 09:44

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Generate files for next major branch

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Remove SKU resource

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Co-authored-by: pakrym-stripe <99349468+pakrym-stripe@users.noreply.github.com>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Ephemeral key accepts Stripe-Version through params, not opts (next major)
@pakrym-stripe pakrym-stripe changed the title Sdk release/next major Next major release changes Nov 7, 2022
richardm-stripe and others added 8 commits November 7, 2022 10:53

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Bring sdk-release/next-major up to date

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
API Version 2022-11-09

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Bring sdk-release/next-major up to date
@richardm-stripe richardm-stripe merged commit 770b3f7 into master Nov 16, 2022
@richardm-stripe richardm-stripe deleted the sdk-release/next-major branch November 16, 2022 19:38
@richardm-stripe richardm-stripe restored the sdk-release/next-major branch November 17, 2022 09:59
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.

None yet

4 participants