fix: Tax region + rates clean up (#9279)
What - Require `code` on Tax Rates - Update dashboard to account for non-nullable code on Tax Rates - Include `automatic_taxes` in API Route response Closes CC-524 CC-525
This commit is contained in:
@@ -8,7 +8,7 @@ export interface AdminTaxRateRule {
|
||||
export interface AdminTaxRate {
|
||||
id: string
|
||||
rate: number | null
|
||||
code: string | null
|
||||
code: string
|
||||
name: string
|
||||
metadata: Record<string, unknown> | null
|
||||
tax_region_id: string
|
||||
|
||||
@@ -7,7 +7,7 @@ export interface AdminCreateTaxRate {
|
||||
name: string
|
||||
tax_region_id: string
|
||||
rate?: number
|
||||
code?: string
|
||||
code: string
|
||||
rules?: AdminCreateTaxRateRule[]
|
||||
is_default?: boolean
|
||||
is_combinable?: boolean
|
||||
@@ -17,7 +17,7 @@ export interface AdminCreateTaxRate {
|
||||
export interface AdminUpdateTaxRate {
|
||||
name?: string
|
||||
rate?: number
|
||||
code?: string | null
|
||||
code: string
|
||||
rules?: AdminCreateTaxRateRule[]
|
||||
is_default?: boolean
|
||||
is_combinable?: boolean
|
||||
|
||||
@@ -4,7 +4,7 @@ export interface AdminCreateTaxRegion {
|
||||
parent_id?: string
|
||||
default_tax_rate?: {
|
||||
rate?: number
|
||||
code?: string
|
||||
code: string
|
||||
name: string
|
||||
is_combinable?: boolean
|
||||
metadata?: Record<string, unknown>
|
||||
|
||||
Reference in New Issue
Block a user