This commit is contained in:
@@ -19,11 +19,22 @@ export type BuyerType = 'personal' | 'agent'
|
||||
// 订单支付方式
|
||||
export type OrderPaymentMethod = 'wallet' | 'wechat' | 'alipay' | 'offline'
|
||||
|
||||
// 订单佣金状态
|
||||
// 订单操作者类型
|
||||
export type OrderOperatorType = 'platform' | 'agent' | 'enterprise' | 'personal_customer'
|
||||
|
||||
// 订单佣金流程状态
|
||||
export enum OrderCommissionStatus {
|
||||
NOT_APPLICABLE = 0, // 不适用
|
||||
PENDING = 1, // 待结算
|
||||
SETTLED = 2 // 已结算
|
||||
PENDING = 1, // 待计算
|
||||
COMPLETED = 2, // 已完成
|
||||
MANUAL_REVIEW = 3 // 待人工处理
|
||||
}
|
||||
|
||||
// 订单佣金业务结果
|
||||
export enum OrderCommissionResult {
|
||||
UNKNOWN = 0, // 未知
|
||||
HAS_COMMISSION = 1, // 有佣金
|
||||
NO_COMMISSION = 2, // 无佣金
|
||||
LINK_EXCEPTION = 3 // 链路异常
|
||||
}
|
||||
|
||||
// 订单明细
|
||||
@@ -52,8 +63,10 @@ export interface Order {
|
||||
total_amount: number // 订单总金额(分)
|
||||
actual_paid_amount?: number // 实付金额(分)
|
||||
paid_at: string | null
|
||||
commission_status: OrderCommissionStatus
|
||||
commission_status_name?: string // 佣金状态名称(中文)
|
||||
commission_status: OrderCommissionStatus // 佣金流程状态
|
||||
commission_status_name?: string // 佣金流程状态名称(中文)
|
||||
commission_result?: OrderCommissionResult // 佣金业务结果
|
||||
commission_result_name?: string // 佣金业务结果名称(中文)
|
||||
commission_config_version: number
|
||||
device_id: number | null
|
||||
iot_card_id: number | null
|
||||
@@ -61,7 +74,14 @@ export interface Order {
|
||||
asset_type?: string // 资产类型:single_card 或 device
|
||||
purchase_role?: string // 订单渠道
|
||||
purchase_remark?: string // 购买备注
|
||||
operator_name?: string // 操作者
|
||||
is_purchased_by_parent?: boolean // 是否由上级代购
|
||||
is_expired?: boolean // 是否已过期
|
||||
expires_at?: string | null // 订单超时时间
|
||||
operator_id?: number | null // 真实操作者ID
|
||||
operator_type?: OrderOperatorType // 真实操作者类型
|
||||
operator_name?: string // 真实操作者名称
|
||||
seller_shop_id?: number | null // 销售店铺ID
|
||||
seller_shop_name?: string // 销售店铺名称
|
||||
items: OrderItem[] | null
|
||||
payment_voucher_key?: string // 支付凭证(线下支付时才有值)
|
||||
created_at: string
|
||||
|
||||
Reference in New Issue
Block a user