feat(v2): order 补 biz_code + webhook payload 带 product_biz_code(收口 P2 延后项)
This commit is contained in:
@@ -47,6 +47,7 @@ type OrderV2 struct {
|
||||
BizSystem string `gorm:"index;size:32"` // 接入方(pangolin/jiu),空=独立收款
|
||||
BizRef string `gorm:"size:128"` // 接入方业务单号,回调原样带回
|
||||
ProductID uint64 `gorm:"index"`
|
||||
BizCode string `gorm:"index;size:64"` // 套餐码副本(下单时从 product 复制),回调带回业务方按码映射权益(设计 §5)
|
||||
Subject string `gorm:"size:128"`
|
||||
// 金额:int64 最小单位 + 币种(presentment/charge/settlement 三态在 charge 落地此处)
|
||||
AmountMinor int64 `gorm:"not null"`
|
||||
@@ -74,7 +75,7 @@ type Attempt struct {
|
||||
AmountMinor int64 `gorm:"not null"`
|
||||
Currency string `gorm:"size:16;not null"`
|
||||
Status AttemptStatus `gorm:"index;size:16;not null"`
|
||||
ExpiresAt *time.Time // 本次尝试超时
|
||||
ExpiresAt *time.Time // 本次尝试超时
|
||||
PaidAt *time.Time
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user