feat(tax): normalize country and province code (#6513)

**What**
- Ensures that country and province codes are always stored as lower case.
- Ensures that calculation context normalizes input before getting region rates.
This commit is contained in:
Sebastian Rindom
2024-02-27 09:12:05 +00:00
committed by GitHub
parent be8122bc0d
commit d03b72ecdd
3 changed files with 68 additions and 29 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export interface CreateTaxRegionDTO {
parent_id?: string | null
metadata?: Record<string, unknown>
created_by?: string
default_tax_rate: {
default_tax_rate?: {
rate?: number | null
code?: string | null
name: string