1
0
mirror of https://github.com/bitwarden/server synced 2025-12-22 03:03:33 +00:00

Append EUVAT to Spanish NIF tax ID types (#5843)

This commit is contained in:
Alex Morask
2025-06-09 09:30:26 -05:00
committed by GitHub
parent dcf97a5772
commit 87b6606bc2
6 changed files with 66 additions and 1 deletions

View File

@@ -648,6 +648,12 @@ public class SubscriberService(
{
await stripeAdapter.TaxIdCreateAsync(customer.Id,
new TaxIdCreateOptions { Type = taxIdType, Value = taxInformation.TaxId });
if (taxIdType == StripeConstants.TaxIdType.SpanishNIF)
{
await stripeAdapter.TaxIdCreateAsync(customer.Id,
new TaxIdCreateOptions { Type = StripeConstants.TaxIdType.EUVAT, Value = $"ES{taxInformation.TaxId}" });
}
}
catch (StripeException e)
{