1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

use error code constants

This commit is contained in:
Jonas Hendrickx 2024-11-20 13:59:22 +01:00
parent bd89f7774d
commit 9b5c696e1f
2 changed files with 3 additions and 3 deletions

View File

@ -646,7 +646,7 @@ public class SubscriberService(
{
switch (e.StripeError.Code)
{
case "tax_id_invalid":
case StripeConstants.ErrorCodes.TaxIdInvalid:
logger.LogWarning("Invalid tax ID '{TaxID}' for country '{Country}'.",
taxInformation.TaxId,
taxInformation.Country);

View File

@ -1736,7 +1736,7 @@ public class StripePaymentService : IPaymentService
{
switch (e.StripeError.Code)
{
case "tax_id_invalid":
case StripeConstants.ErrorCodes.TaxIdInvalid:
_logger.LogWarning("Invalid tax ID '{TaxID}' for country '{Country}'.",
taxInfo.TaxIdNumber,
taxInfo.BillingAddressCountry);
@ -1969,7 +1969,7 @@ public class StripePaymentService : IPaymentService
{
switch (e.StripeError.Code)
{
case "tax_id_invalid":
case StripeConstants.ErrorCodes.TaxIdInvalid:
_logger.LogWarning("Invalid tax ID '{TaxID}' for country '{Country}'.",
parameters.TaxInformation.TaxId,
parameters.TaxInformation.Country);