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 authored and GitHub committed 2024-02-27 09:12:05 +00:00
1 parent be8122bc0d
commit d03b72ecdd
3 files changed
+68 -29

No files matched your search

+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