1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-29 00:32:18 -05:00

Expand tax_ids to avoid thrown tax exception (#5617)

This commit is contained in:
Alex Morask 2025-04-07 10:05:49 -04:00 committed by Alex Morask
parent 6d8492ec98
commit 9a9018ed40
No known key found for this signature in database
GPG Key ID: 23E38285B743E3A8

View File

@ -42,7 +42,7 @@ public class OrganizationBillingService(
var customer = string.IsNullOrEmpty(organization.GatewayCustomerId) && customerSetup != null
? await CreateCustomerAsync(organization, customerSetup)
: await subscriberService.GetCustomerOrThrow(organization, new CustomerGetOptions { Expand = ["tax"] });
: await subscriberService.GetCustomerOrThrow(organization, new CustomerGetOptions { Expand = ["tax", "tax_ids"] });
var subscription = await CreateSubscriptionAsync(organization.Id, customer, subscriptionSetup);