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 @@ export const allowedAdminStoreRelations = []
|
||||
export const defaultAdminStoreFields = [
|
||||
"id",
|
||||
"name",
|
||||
"supported_currency_codes",
|
||||
"default_sales_channel_id",
|
||||
"default_region_id",
|
||||
"default_location_id",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
import { Type } from "class-transformer"
|
||||
import { IsObject, IsOptional, IsString, ValidateNested } from "class-validator"
|
||||
import {
|
||||
IsArray,
|
||||
IsObject,
|
||||
IsOptional,
|
||||
IsString,
|
||||
ValidateNested,
|
||||
} from "class-validator"
|
||||
import { FindParams, extendedFindParamsMixin } from "../../../types/common"
|
||||
|
||||
export class AdminGetStoresStoreParams extends FindParams {}
|
||||
@@ -41,6 +47,10 @@ export class AdminPostStoresStoreReq {
|
||||
@IsString()
|
||||
name?: string
|
||||
|
||||
@IsOptional()
|
||||
@IsArray()
|
||||
supported_currency_codes?: string[]
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
default_sales_channel_id?: string
|
||||
|
||||
Reference in New Issue
Block a user