added charge for all product

This commit is contained in:
2026-07-11 11:42:12 +03:30
parent 65fe1c3996
commit 2647a50698
12 changed files with 463 additions and 478 deletions
+19
View File
@@ -102,6 +102,25 @@ export interface Charge {
talabBedehi?: boolean
direction?: WalletChargeDirection
amountAbs?: number | string
product_id?: number
}
/** گزینهٔ شارژ — نقدی یا محصول فعال */
export interface ChargeTarget {
key: string
kind: 'money' | 'metal'
label: string
unit: string
product_id?: number
metal_id?: number
uses_main_wallet?: boolean
trade_by_quantity?: boolean
group_type?: string
}
export interface ChargeTargetsResponse {
targets: ChargeTarget[]
catalogMetals?: Array<{ metal_id: number; label: string; display_unit?: string }>
}
export interface WithdrawStatus {