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

[deps] Billing: Update Stripe.net to v46 #14

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lizard-boy
Copy link

@lizard-boy lizard-boy commented Oct 19, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
Stripe.net 45.14.0 -> 46.2.0 age adoption passing confidence

Release Notes

stripe/stripe-dotnet (Stripe.net)

v46.2.0

  • #​3002 Add ConfigureAwait calls to async calls that are awaited
    • Fixes issue #​2998 that was introduced in v46

v46.1.0

  • #​2995 Update the class for ThinEvent to include Livemode and Reason
  • #​2992 Remove special case Newtonsoft v12 for .net8.0
  • #​2993 Update generated code
    • Remove the support for resource Margin that was accidentally made public in the last release

v46.0.0

  • #​2980 Support for APIs in the new API version 2024-09-30.acacia

    This release changes the pinned API version to 2024-09-30.acacia. Please read the API Upgrade Guide and carefully review the API changes before upgrading.

⚠️ Breaking changes due to changes in the API
  • Rename UsageThresholdConfig to UsageThreshold on Billing.Alert and Billing.AlertCreateOptions
  • Remove support for Filter on Billing.Alert and BillingAlert.AlertCreateOptions . Use the filters on the UsageThreshold instead
  • Remove support for CustomerConsentCollected on Terminal.ReaderProcessSetupIntentOptions
⚠️ Other Breaking changes in the SDK

Refer to our migration guide for v46 for a list of backwards incompatible changes in this release. Here is a summary of things to watch out for:

Additions
  • Add support for UsageThreshold on Billing.AlertCreateOptions and BillingAlert
  • Add support for CustomUnitAmount on ProductDefaultPriceDataOptions
  • Add support for AllowRedisplay on Terminal.ReaderProcessSetupIntentOptions and TerminalReaderProcessConfigOptions
  • Add support for new Usage Billing APIs Billing.MeterEvent, Billing.MeterEventAdjustments, Billing.MeterEventSession, Billing.MeterEventStream and the new Events API Core.Events under the v2 namespace
  • Add method ParseThinEvent() on the StripeClient class to parse thin events.
  • Add methods RawRequestAsync() on the StripeClient class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK.
  • Add access to services to StripeClient under V1 and V2 property accessors, so that instead of
    StripeConfiguration.ApiKey = apiKey;
    var svc = new CustomerService();
    svc.Get(customerId);

you can write:

var client = new StripeClient(apiKey);
client.V1.Customers.Get(customerId)

This supports a move towards a services-based client pattern where a StripeClient instance consolidates configuration and service access. This enables you simultaneously use multiple clients with different configuration options (such as API keys), and makes it much easier to discover what services are available by inspecting the V1 and V2 properties (either manually or via your code editors auto-completion).


Configuration

📅 Schedule: Branch creation - "every 2nd week starting on the 2 week of the year before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Greptile Summary

This pull request updates the Stripe.net package from version 45.14.0 to 46.2.0 in the Core.csproj file, introducing breaking changes and new features that may affect billing services and payment processing functionalities.

  • Major version update (45 to 46) includes significant API changes and removals
  • Rename of Stripe.Event to Stripe.EventTypes affects event handling
  • Child service classes and options classes have been renamed for consistency
  • New ParseThinEvent() and RawRequestAsync() methods added to StripeClient
  • Review and update StripePaymentService and related classes for compatibility

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

@@ -55,7 +55,7 @@
<PackageReference Include="Serilog.Sinks.SyslogMessages" Version="4.0.0" />
<PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
<PackageReference Include="Braintree" Version="5.27.0" />
<PackageReference Include="Stripe.net" Version="45.14.0" />
<PackageReference Include="Stripe.net" Version="46.2.0" />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Updating Stripe.net to v46.2.0 introduces breaking changes. Review the migration guide and update affected code.

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