- 一些结账相关的常量

This commit is contained in:
gazebo
2019-03-21 11:33:46 +08:00
parent 61784c06f6
commit 09caec9124
3 changed files with 20 additions and 0 deletions

View File

@@ -43,6 +43,14 @@ const (
WaybillStatusDeliveryRejected = "20"
)
const (
OrderPartRefundSuccess = "20" // 部分取消订单退款成功状态20
AfterOrderFinishedCancelType = "2" // 订单完成后全单退款
OrderUserCancelSuccessA = "40" // 全单取消订单退款成功状态40 客服同意
OrderUserCancelSuccessB = "60" // 全单取消订单退款成功状态60 商家同意
SendImmediatelySelf = 2 // 饿百商家自送的配送状态
)
const (
OrderFromBaidu = "1"
OrderFromElm = "2"

View File

@@ -55,6 +55,14 @@ const (
PromotionTypeBuyGiveGift = 6
)
const (
FreightDiscountTypeByShop = 8 // 8:商家满免运费
FreightDiscountTypeByVip = 7 // 7:VIP免运费
FreightDiscountTypeByActivity = 12 // 12:首单地推满免运费
FreightDiscountTypeByCoupons = 15 // 15:运费券
SelfDeliveryCarrierNo = "2938" // 京东配送方式=商家自送
)
const (
QueryOrderRetryCount = 1 // 因为京东到家当前不存在的订单也返回-4暂时不重试
)

View File

@@ -28,6 +28,10 @@ const (
WaybillStatusCanceled = "100"
)
const (
NotifyTypeSuccess = "agree"
)
func (a *API) OrderReceived(orderID int64) (err error) {
_, err = a.AccessAPI("order/poi_received", true, map[string]interface{}{
KeyOrderID: orderID,