add refund item store and types

This commit is contained in:
2026-03-20 09:52:35 +08:00
parent 4d316380a1
commit ccbcda39ab
2 changed files with 173 additions and 0 deletions
+44
View File
@@ -103,6 +103,50 @@ export interface RefundFilters {
created_date_range: [string, string] | null
}
/** 退款项列表记录(15 字段) */
export interface RefundItemRecord {
id: number
company_id: number
platform_id: number
store_id: number
refund_id: number
platform_refund_id: string
platform_order_id: string
platform_sub_order_id: string | null
platform_product_id: string
refund_status_id: number
refund_type_id: number
quantity: number
refund_amount: string
currency: string
created_date: string | null
}
/** 退款项详情(含扩展字段) */
export interface RefundItemDetail extends RefundItemRecord {
platform_parent_refund_id: string | null
reason: string | null
buyer_user_id: string | null
order_created_date: string | null
order_paid_date: string | null
updated_date: string | null
completed_date: string | null
ext: Record<string, unknown> | null
created_at: string
updated_at: string
}
/** 退款项筛选参数 */
export interface RefundItemFilters {
refund_id: number | undefined
refund_status_id: number | undefined
refund_type_id: number | undefined
platform_refund_id: string
platform_order_id: string
platform_product_id: string
created_date_range: [string, string] | null
}
/** 业务异常 */
export class ApiError extends Error {
code: number