允许双方最多 6 轮修改结账方案;哈夫币按实际消耗与 buyer/seller 比例计价,打超从押金扣,押金不足禁止自动完结并引导人工争议。同步收紧结账明细展示密度。
83 lines
3.1 KiB
Go
83 lines
3.1 KiB
Go
package order
|
|
|
|
import "hfb_sys/backend/internal/model"
|
|
|
|
const (
|
|
orderStatusPendingPayment = "pending_payment"
|
|
orderStatusPendingHandoff = "pending_handoff"
|
|
orderStatusRenting = "renting"
|
|
orderStatusOverdue = "overdue"
|
|
orderStatusPendingCheckoutConfirm = "pending_checkout_confirm"
|
|
orderStatusPendingCheckoutAccept = "pending_checkout_accept"
|
|
orderStatusCheckoutDisputing = "checkout_disputing"
|
|
orderStatusCompleted = "completed"
|
|
orderStatusCancelled = "cancelled"
|
|
orderStatusClosed = "closed"
|
|
orderStatusAbnormal = "abnormal"
|
|
|
|
handoffStatusNone = "none"
|
|
handoffStatusPendingOwner = "pending_owner"
|
|
handoffStatusPendingRenterConfirm = "pending_renter_confirm"
|
|
handoffStatusReceived = "received"
|
|
handoffStatusReturnOverdue = "return_overdue"
|
|
handoffStatusPendingOwnerCheckout = "pending_owner_checkout"
|
|
handoffStatusPendingRenterCheckout = "pending_renter_checkout"
|
|
handoffStatusReturned = "returned"
|
|
handoffStatusOwnerTimeout = "owner_timeout"
|
|
handoffStatusRenterConfirmTimeout = "renter_confirm_timeout"
|
|
handoffStatusOwnerReturnConfirmTimeout = "owner_return_confirm_timeout"
|
|
handoffStatusOwnerCheckoutConfirmTimeout = "owner_checkout_confirm_timeout"
|
|
handoffStatusCancelled = "cancelled"
|
|
handoffStatusAdminClosed = "admin_closed"
|
|
handoffStatusAdminAbnormal = "admin_abnormal"
|
|
|
|
settlementStatusUnsettled = "unsettled"
|
|
settlementStatusPending = "pending"
|
|
settlementStatusSettled = "settled"
|
|
settlementStatusClosed = "closed"
|
|
|
|
checkoutStatusSubmitted = "submitted"
|
|
checkoutStatusCountered = "countered"
|
|
checkoutStatusAccepted = "accepted"
|
|
checkoutStatusDisputed = "disputed"
|
|
|
|
checkoutTurnOwner = "owner"
|
|
checkoutTurnRenter = "renter"
|
|
|
|
// checkoutMaxRounds 结账协商最大提案轮次(含租客首提)
|
|
checkoutMaxRounds = 6
|
|
|
|
refundStatusPending = "pending"
|
|
refundStatusPendingReview = "pending_review"
|
|
refundStatusRefunded = "refunded"
|
|
|
|
listingReviewStatusApproved = "approved"
|
|
|
|
listingStatusPublished = "published"
|
|
listingStatusRented = "rented"
|
|
listingStatusOffline = "offline"
|
|
listingStatusCompleted = "completed"
|
|
listingStatusAbnormal = "abnormal"
|
|
listingStatusSealed = "sealed"
|
|
|
|
accountStatusPublished = "published"
|
|
accountStatusRented = "rented"
|
|
accountStatusOffline = "offline"
|
|
accountStatusAbnormal = "abnormal"
|
|
accountStatusSealed = "sealed"
|
|
|
|
walletBizOwnerIncome = "owner_income"
|
|
walletBizDepositCompensation = "deposit_compensation"
|
|
|
|
refundBizCancel = "cancel_refund"
|
|
refundBizAdminClose = "admin_close_refund"
|
|
refundBizAdminSeal = "admin_seal_refund"
|
|
refundBizAdmin = "admin_refund"
|
|
refundBizCheckout = "checkout_refund"
|
|
refundBizDeposit = "deposit_refund"
|
|
|
|
depositHoldStatusNone = model.DepositHoldStatusNone
|
|
depositHoldStatusHeld = model.DepositHoldStatusHeld
|
|
depositHoldStatusReleased = model.DepositHoldStatusReleased
|
|
)
|