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 v47 #5020

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 11, 2024

This PR contains the following updates:

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

Release Notes

stripe/stripe-dotnet (Stripe.net)

v47.1.0

  • #​3025 This release changes the pinned API version to 2024-11-20.acacia.
    • Add support for Respond test helper method on resource Issuing.Authorization
    • Add support for Authorizer on AccountRelationshipOptions and TokenPersonRelationshipOptions
    • Add support for AdaptivePricing on Checkout.SessionCreateOptions and CheckoutSession
    • Add support for MandateOptions on CheckoutSessionPaymentMethodOptionsBacsDebitOptions, CheckoutSessionPaymentMethodOptionsBacsDebit, CheckoutSessionPaymentMethodOptionsSepaDebitOptions, and CheckoutSessionPaymentMethodOptionsSepaDebit
    • Add support for RequestExtendedAuthorization, RequestIncrementalAuthorization, RequestMulticapture, and RequestOvercapture on CheckoutSessionPaymentMethodOptionsCardOptions and CheckoutSessionPaymentMethodOptionsCard
    • Add support for CaptureMethod on CheckoutSessionPaymentMethodOptionsKakaoPayOptions, CheckoutSessionPaymentMethodOptionsKrCardOptions, CheckoutSessionPaymentMethodOptionsNaverPayOptions, CheckoutSessionPaymentMethodOptionsPaycoOptions, and CheckoutSessionPaymentMethodOptionsSamsungPayOptions
    • Add support for AccountHolderAddress, AccountHolderName, AccountType, and BankAddress on FundingInstructionsBankTransferFinancialAddressesAba, FundingInstructionsBankTransferFinancialAddressesSwift, PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressesAba, and PaymentIntentNextActionDisplayBankTransferInstructionsFinancialAddressesSwift
    • Add support for MerchantAmount and MerchantCurrency on Issuing.TestHelpersAuthorizationCreateOptions
    • Add support for FraudChallenges and VerifiedByFraudChallenge on IssuingAuthorization
    • Add support for SubmitType on PaymentLinkUpdateOptions
    • Add support for TraceId on Payout
    • Add support for NetworkDeclineCode on RefundDestinationDetailsBlik and RefundDestinationDetailsSwish
  • #​3021 Fix URL encoding of id strings passed to service methods
  • #​3026 Fix V2 list options base class
    • 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.

v47.0.0

Historically, when upgrading webhooks to a new API version, you also had to upgrade your SDK version. Your webhook's API version needed to match the API version pinned by the SDK you were using to ensure successful deserialization of events. With the 2024-09-30.acacia release, Stripe follows a new API release process. As a result, you can safely upgrade your webhook endpoints to any API version within a biannual release (like acacia) without upgrading the SDK.

However, a bug in the 46.x.y SDK releases meant that webhook version upgrades from the SDK's pinned 2024-09-30.acacia version to the new 2024-10-28.acacia version would fail. Therefore, we are shipping SDK support for 2024-10-28.acacia as a major version to enforce the idea that an SDK upgrade is also required. Future API versions in the acacia line will be released as minor versions.

  • #​2997 This release changes the pinned API version to 2024-10-28.acacia."
    • Add support for new resource V2.EventDestinations
    • Add support for Create, Get, Update, List, Delete, Disable, Enable and Ping methods on resource V2.EventDestinations
    • Add support for SubmitCard test helper method on resource Issuing.Card
    • Add support for Groups on AccountCreateOptions, AccountUpdateOptions, and Account
    • Add support for AlmaPayments, KakaoPayPayments, KrCardPayments, NaverPayPayments, PaycoPayments, and SamsungPayPayments on AccountCapabilitiesOptions and AccountCapabilities
    • Add support for DisableStripeUserAuthentication on AccountSessionComponentsAccountManagementFeaturesOptions, AccountSessionComponentsAccountManagementFeatures, AccountSessionComponentsAccountOnboardingFeaturesOptions, AccountSessionComponentsAccountOnboardingFeatures, AccountSessionComponentsBalancesFeaturesOptions, AccountSessionComponentsBalancesFeatures, AccountSessionComponentsNotificationBannerFeaturesOptions, AccountSessionComponentsNotificationBannerFeatures, AccountSessionComponentsPayoutsFeaturesOptions, and AccountSessionComponentsPayoutsFeatures
    • Add support for ScheduleAtPeriodEnd on BillingPortalConfigurationFeaturesSubscriptionUpdateOptions and BillingPortalConfigurationFeaturesSubscriptionUpdate
    • Add support for Alma on ChargePaymentMethodDetails, ConfirmationTokenPaymentMethodDataOptions, ConfirmationTokenPaymentMethodPreview, PaymentIntentPaymentMethodDataOptions, PaymentIntentPaymentMethodOptionsOptions, PaymentIntentPaymentMethodOptions, PaymentMethodConfigurationCreateOptions, PaymentMethodConfigurationUpdateOptions, PaymentMethodConfiguration, PaymentMethodCreateOptions, PaymentMethod, RefundDestinationDetails, and SetupIntentPaymentMethodDataOptions
    • Add support for KakaoPay and KrCard on ChargePaymentMethodDetails, CheckoutSessionPaymentMethodOptionsOptions, CheckoutSessionPaymentMethodOptions, ConfirmationTokenPaymentMethodDataOptions, ConfirmationTokenPaymentMethodPreview, MandatePaymentMethodDetails, PaymentIntentPaymentMethodDataOptions, PaymentIntentPaymentMethodOptionsOptions, PaymentIntentPaymentMethodOptions, PaymentMethodCreateOptions, PaymentMethod, SetupAttemptPaymentMethodDetails, and SetupIntentPaymentMethodDataOptions
    • Add support for NaverPay on ChargePaymentMethodDetails, CheckoutSessionPaymentMethodOptionsOptions, CheckoutSessionPaymentMethodOptions, ConfirmationTokenPaymentMethodDataOptions, ConfirmationTokenPaymentMethodPreview, PaymentIntentPaymentMethodDataOptions, PaymentIntentPaymentMethodOptionsOptions, PaymentIntentPaymentMethodOptions, PaymentMethodCreateOptions, PaymentMethodUpdateOptions, PaymentMethod, and SetupIntentPaymentMethodDataOptions
    • Add support for Payco and SamsungPay on ChargePaymentMethodDetails, CheckoutSessionPaymentMethodOptionsOptions, CheckoutSessionPaymentMethodOptions, ConfirmationTokenPaymentMethodDataOptions, ConfirmationTokenPaymentMethodPreview, PaymentIntentPaymentMethodDataOptions, PaymentIntentPaymentMethodOptionsOptions, PaymentIntentPaymentMethodOptions, PaymentMethodCreateOptions, PaymentMethod, and SetupIntentPaymentMethodDataOptions
    • Add support for EnhancedEvidence on DisputeEvidenceOptions and DisputeEvidence
    • Add support for EnhancedEligibilityTypes on Dispute
    • Add support for EnhancedEligibility on DisputeEvidenceDetails
    • Add support for Metadata on Forwarding.RequestCreateOptions and ForwardingRequest
    • Add support for AutomaticallyFinalizesAt on InvoiceCreateOptions and InvoiceUpdateOptions
    • Add support for AmazonPay on PaymentMethodDomain
    • Add support for FlatAmount and RateType on TaxCalculationTaxBreakdownTaxRateDetails and TaxRate
    • Add support for By, Cr, Ec, Ma, Md, Rs, Ru, Tz, and Uz on TaxRegistrationCountryOptionsOptions and TaxRegistrationCountryOptions
    • Add support for Pln on TerminalConfigurationTippingOptions and TerminalConfigurationTipping

v46.2.2

  • #​3010 Update webhook API version validation
    • Update webhook event processing to accept events from any API version within the supported major release

v46.2.1

  • #​3008 update object tags for meter-related classes
    • fixes a bug where the object property of the MeterEvent, MeterEventAdjustment, and MeterEventSession didn't match the server.
  • #​3007 Fixes ApiRequestorAdapter requests with BaseAddress other than Api
    • fixes bug where OAuthTokenService created without an explicit StripeClient accesses the wrong base url
  • #​3003 Cleaned up examples and added documentation

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.

@renovate renovate bot requested a review from a team November 11, 2024 00:20
@bitwarden-bot bitwarden-bot changed the title [deps] Billing: Update Stripe.net to v47 [PM-14705] [deps] Billing: Update Stripe.net to v47 Nov 11, 2024
@bitwarden-bot
Copy link

Internal tracking:

@renovate renovate bot changed the title [PM-14705] [deps] Billing: Update Stripe.net to v47 [deps] Billing: Update Stripe.net to v47 Nov 11, 2024
@renovate renovate bot force-pushed the renovate/stripe.net-47.x branch 2 times, most recently from d28f71e to 75efa61 Compare November 12, 2024 00:58
@renovate renovate bot force-pushed the renovate/stripe.net-47.x branch from 75efa61 to 5923a66 Compare November 21, 2024 02:08
@renovate renovate bot force-pushed the renovate/stripe.net-47.x branch from 5923a66 to ad1a2d9 Compare November 25, 2024 19:34
@amorask-bitwarden amorask-bitwarden deleted the renovate/stripe.net-47.x branch November 26, 2024 17:34
Copy link
Contributor Author

renovate bot commented Nov 26, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 47.x releases. But if you manually upgrade to 47.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

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