2026-01-18 13:01:46 +03:30
|
|
|
import type {Wallet} from "@/models/wallet";
|
2026-05-18 10:13:50 +03:30
|
|
|
import type { ProductFile } from '@/utils/file'
|
2026-01-18 13:01:46 +03:30
|
|
|
|
|
|
|
|
export interface Product {
|
|
|
|
|
id: number
|
|
|
|
|
img: string | undefined
|
|
|
|
|
title: string
|
|
|
|
|
amount: any
|
|
|
|
|
metal_id: any
|
|
|
|
|
file_id: any
|
2026-05-18 10:13:50 +03:30
|
|
|
file?: ProductFile | null
|
2026-01-18 13:01:46 +03:30
|
|
|
unit: string
|
|
|
|
|
active: boolean
|
|
|
|
|
show: boolean
|
2026-06-10 18:40:29 +03:30
|
|
|
show_in_assets?: boolean
|
2026-09-02 08:26:52 -04:00
|
|
|
show_on_tv?: boolean
|
2026-01-18 13:01:46 +03:30
|
|
|
open_sell: boolean
|
|
|
|
|
open_buy: boolean
|
|
|
|
|
group_type:string
|
|
|
|
|
percent_fee_buy: number | undefined
|
|
|
|
|
percent_fee_sell: number | undefined
|
|
|
|
|
cash_fee_buy: number | undefined
|
|
|
|
|
cash_fee_sell: number | undefined
|
2026-07-04 17:56:24 +03:30
|
|
|
cash_fee_buy_is_percent?: boolean
|
|
|
|
|
cash_fee_sell_is_percent?: boolean
|
2026-06-06 22:41:42 +03:30
|
|
|
order_limit_enabled?: boolean
|
|
|
|
|
min_order_cash?: number | null
|
|
|
|
|
max_order_cash?: number | null
|
2026-07-20 16:57:03 +03:30
|
|
|
has_physical_delivery?: boolean
|
|
|
|
|
min_physical_delivery_quantity?: number | null
|
2026-05-11 18:09:31 +03:30
|
|
|
direct_price: number | undefined
|
2026-09-02 08:26:52 -04:00
|
|
|
price_formula_enabled?: boolean | number | null
|
|
|
|
|
price_formula?: string | null
|
2026-06-09 21:04:22 +03:30
|
|
|
price_offset_percent?: number | null
|
2026-06-11 21:49:46 +03:30
|
|
|
use_last_price_if_zero?: boolean
|
2026-06-22 21:10:25 +03:30
|
|
|
reference_provider_active?: boolean
|
2026-06-17 16:03:19 +03:30
|
|
|
trade_by_quantity?: boolean
|
2026-01-18 13:01:46 +03:30
|
|
|
reading_method: any
|
|
|
|
|
created_at: any
|
|
|
|
|
updated_at: any
|
|
|
|
|
deleted_at: any
|
|
|
|
|
price?:number | undefined
|
|
|
|
|
sellPrice?:number | undefined
|
|
|
|
|
wallet: Wallet
|
|
|
|
|
auto_close_at: string
|
|
|
|
|
auto_open_at: string
|
2026-02-17 17:01:45 +03:30
|
|
|
price_profit: number
|
2026-01-18 13:01:46 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PInventory {
|
|
|
|
|
id: number
|
|
|
|
|
title: string
|
|
|
|
|
amount: any
|
|
|
|
|
metal_id: any
|
|
|
|
|
file_id: any
|
2026-06-23 18:03:59 +03:30
|
|
|
file?: ProductFile | null
|
2026-01-18 13:01:46 +03:30
|
|
|
active: boolean
|
|
|
|
|
show: boolean
|
|
|
|
|
open_sell: boolean
|
|
|
|
|
open_buy: boolean
|
|
|
|
|
group_type:string
|
|
|
|
|
percent_fee_buy: number
|
|
|
|
|
percent_fee_sell: number
|
|
|
|
|
cash_fee_buy: number
|
|
|
|
|
cash_fee_sell: number
|
2026-07-04 17:56:24 +03:30
|
|
|
cash_fee_buy_is_percent?: boolean
|
|
|
|
|
cash_fee_sell_is_percent?: boolean
|
2026-07-20 16:57:03 +03:30
|
|
|
has_physical_delivery?: boolean
|
|
|
|
|
min_physical_delivery_quantity?: number | null
|
2026-01-18 13:01:46 +03:30
|
|
|
reading_method: any
|
|
|
|
|
created_at: any
|
|
|
|
|
updated_at: any
|
|
|
|
|
deleted_at: any
|
|
|
|
|
price?:number
|
|
|
|
|
unit?: string
|
2026-06-03 22:04:45 +03:30
|
|
|
direct_price?: number
|
2026-01-18 13:01:46 +03:30
|
|
|
wallet:Wallet
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface CountPInventory {
|
|
|
|
|
count: number
|
|
|
|
|
product: PInventory
|
|
|
|
|
}
|