killbill / killbill-stripe-plugin

Kill Bill plugin for Stripe
https://killbill.io
Apache License 2.0
17 stars 40 forks source link

Bump stripe-java from 21.15.0 to 22.1.0 #102

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 2 years ago

Bumps stripe-java from 21.15.0 to 22.1.0.

Release notes

Sourced from stripe-java's releases.

v22.1.0

  • #1480 API Updates
    • Add support for hosted_instructions_url on PaymentIntent.next_action.wechat_pay_display_qr_code
  • #1479 API Updates
    • Add support for custom_text on Checkout.Session, CheckoutSessionCreateParams, PaymentLinkCreateParams, PaymentLinkUpdateParams, and PaymentLink
    • Add support for hosted_instructions_url on PaymentIntent.next_action.paynow_display_qr_code

See the changelog for more details.

v22.0.0

  • #1471 Next major release changes

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.

  • ⚠️ Inline several "shared" classes for consistency (#1455)
  • ⚠️ Removed LineItem.Product property that was released by mistake. (#1456)
  • ⚠️ Removed Charges property on PaymentIntent and replace it with LatestCharge (#1473)
  • ⚠️ Removed deprecated Amount, Currency, Description, Images, Name properties from SessionCreateParams.LineItem (#1473)
  • ⚠️ Remove support for tos_shown_and_accepted on CheckoutSessionCreateParams.payment_method_options.paynow (#1473)
  • ⚠️ Removed deprecated Sku resource (#1459)
  • ⚠️ Removed RequestOptions.getStripeVersionOverride, RequestOptions.setStripeVersionOverride, and RequestOptions.clearStripeVersionOverride (#1464)

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");

  • #1474 API Updates
    • ⚠️ Remove support for tos_shown_and_accepted on CheckoutSessionCreateParams.payment_method_options.paynow. The property was mistakenly released and never worked.

v21.16.0-beta.1

  • #1475 API Updates for beta branch
    • Updated stable APIs to the latest version
    • Add support for DiscountEnd on Discount.
    • Add support for url on MerchantData.

... (truncated)

Changelog

Sourced from stripe-java's changelog.

22.1.0 - 2022-11-17

  • #1480 API Updates
    • Add support for hosted_instructions_url on PaymentIntent.next_action.wechat_pay_display_qr_code
  • #1479 API Updates
    • Add support for custom_text on Checkout.Session, CheckoutSessionCreateParams, PaymentLinkCreateParams, PaymentLinkUpdateParams, and PaymentLink
    • Add support for hosted_instructions_url on PaymentIntent.next_action.paynow_display_qr_code

22.0.0 - 2022-11-16

  • #1471 Next major release changes

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.

  • ⚠️ Inline several "shared" classes for consistency (#1455)
  • ⚠️ Removed LineItem.Product property that was released by mistake. (#1456)
  • ⚠️ Removed Charges property on PaymentIntent and replace it with LatestCharge (#1473)
  • ⚠️ Removed deprecated Amount, Currency, Description, Images, Name properties from SessionCreateParams.LineItem (#1473)
  • ⚠️ Remove support for tos_shown_and_accepted on CheckoutSessionCreateParams.payment_method_options.paynow (#1473)
  • ⚠️ Removed deprecated Sku resource (#1459)
  • ⚠️ Removed RequestOptions.getStripeVersionOverride, RequestOptions.setStripeVersionOverride, and RequestOptions.clearStripeVersionOverride (#1464)

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");

  • #1474 API Updates
    • ⚠️ Remove support for tos_shown_and_accepted on CheckoutSessionCreateParams.payment_method_options.paynow. The property was mistakenly released and never worked.
Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Superseded by #103.