feat: Add tax regions table (#6983)

This commit is contained in:
Oli Juhl
2024-04-07 15:02:48 +02:00
committed by GitHub
parent 44bcde92c8
commit 31b07aea3d
69 changed files with 381 additions and 2923 deletions
+1
View File
@@ -3,3 +3,4 @@ export * from "./fulfillment"
export * from "./pricing"
export * from "./sales-channel"
export * from "./stock-locations"
export * from "./tax"
@@ -0,0 +1 @@
export * from "./tax-regions"
@@ -0,0 +1,33 @@
import { PaginatedResponse } from "../../../common"
/**
* @experimental
*/
interface TaxRegionResponse {
id: string
rate: number | null
code: string | null
name: string
metadata: Record<string, unknown> | null
tax_region_id: string
is_combinable: boolean
is_default: boolean
created_at: string | Date
updated_at: string | Date
deleted_at: Date | null
created_by: string | null
}
/**
* @experimental
*/
export interface AdminTaxRegionResponse {
tax_region: TaxRegionResponse
}
/**
* @experimental
*/
export interface AdminTaxRegionListResponse extends PaginatedResponse {
tax_regions: TaxRegionResponse[]
}
+1
View File
@@ -0,0 +1 @@
export * from "./admin"