feat: Add supported currencies to store model (#6562)
I ultimately went with having a flat list of settings for the store. It wouldn't be very difficult to change it if we wish to do so, but for now this keeps the codebase simpler
This commit is contained in:
@@ -3,6 +3,7 @@ import { BaseFilterable } from "../../dal"
|
||||
export interface StoreDTO {
|
||||
id: string
|
||||
name: string
|
||||
supported_currency_codes: string[]
|
||||
default_sales_channel_id?: string
|
||||
default_region_id?: string
|
||||
default_location_id?: string
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
export interface CreateStoreDTO {
|
||||
name?: string
|
||||
supported_currency_codes?: string[]
|
||||
default_sales_channel_id?: string
|
||||
default_region_id?: string
|
||||
default_location_id?: string
|
||||
@@ -9,6 +10,7 @@ export interface CreateStoreDTO {
|
||||
export interface UpsertStoreDTO {
|
||||
id?: string
|
||||
name?: string
|
||||
supported_currency_codes?: string[]
|
||||
default_sales_channel_id?: string
|
||||
default_region_id?: string
|
||||
default_location_id?: string
|
||||
@@ -17,6 +19,7 @@ export interface UpsertStoreDTO {
|
||||
|
||||
export interface UpdateStoreDTO {
|
||||
name?: string
|
||||
supported_currency_codes?: string[]
|
||||
default_sales_channel_id?: string
|
||||
default_region_id?: string
|
||||
default_location_id?: string
|
||||
|
||||
Reference in New Issue
Block a user