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:
Stevche Radevski authored and GitHub committed 2024-03-01 15:43:47 +00:00
1 parent 347aba719c
commit 71ed21de4a
10 files changed
+40 -3

No files matched your search

@@ -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