fix some bugs
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
export interface ConditionalOrder {
|
||||
id: number
|
||||
customer_id: number
|
||||
product_id: number
|
||||
direction: 1 | 2
|
||||
price_condition: 'gte' | 'lte'
|
||||
trigger_price: number
|
||||
amount?: number | null
|
||||
number?: number | null
|
||||
expires_at?: string | null
|
||||
description?: string | null
|
||||
is_active: boolean
|
||||
status: 'pending' | 'executed' | 'failed' | 'expired'
|
||||
fail_reason?: string | null
|
||||
order_id?: number | null
|
||||
fee_charged?: number
|
||||
triggered_price?: number | null
|
||||
executed_at?: string | null
|
||||
created_at?: string
|
||||
updated_at?: string
|
||||
customer?: { id: number; name?: string; mobile?: string }
|
||||
product?: { id: number; title?: string }
|
||||
}
|
||||
@@ -34,6 +34,8 @@ export interface Customer {
|
||||
profit_amount: number
|
||||
add_user_limit: number
|
||||
trade_active: boolean
|
||||
conditional_order_active?: boolean
|
||||
conditional_order_limit?: number | null
|
||||
type?: number
|
||||
type_str: string
|
||||
gold: number
|
||||
|
||||
@@ -17,6 +17,9 @@ export interface Transaction {
|
||||
metal_gold?: Record<string, number>
|
||||
transaction_metal_id?: number
|
||||
transaction_metal_label?: string
|
||||
product_id?: number | null
|
||||
product_title?: string | null
|
||||
product?: { id?: number; title?: string | null; group_type?: string | null; metal_id?: number | null } | null
|
||||
order_id: number
|
||||
transaction_type: string
|
||||
type: number
|
||||
|
||||
Reference in New Issue
Block a user