From c5fb7146a8b6fb918e97a728f169a79242f22c12 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 4 Feb 2020 09:21:05 +0800 Subject: [PATCH] profit_sharing --- platformapi/wxpayapi/wxpayapi.go | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/platformapi/wxpayapi/wxpayapi.go b/platformapi/wxpayapi/wxpayapi.go index 47f5468d..732e0a45 100644 --- a/platformapi/wxpayapi/wxpayapi.go +++ b/platformapi/wxpayapi/wxpayapi.go @@ -40,6 +40,9 @@ const ( TradeTypeNative = "NATIVE" TradeTypeAPP = "APP" TradeTypeMicroPay = "MICROPAY" + + OptYes = "Y" + OptNo = "N" ) type API struct { @@ -140,17 +143,18 @@ type CreateOrderParam struct { TradeType string `json:"trade_type" xml:"trade_type"` TotalFee int `json:"total_fee" xml:"total_fee"` - Detail CData `json:"detail.omitempty" xml:"detail,omitempty"` - Attach string `json:"attach,omitempty" xml:"attach,omitempty"` - FeeType string `json:"fee_type,omitempty" xml:"fee_type,omitempty"` - TimeStart string `json:"time_start,omitempty" xml:"time_start,omitempty"` - TimeExpire string `json:"time_expire,omitempty" xml:"time_expire,omitempty"` - GoodsTag string `json:"goods_tag,omitempty" xml:"goods_tag,omitempty"` - ProductID string `json:"product_id,omitempty" xml:"product_id,omitempty"` - LimitPay string `json:"limit_pay,omitempty" xml:"limit_pay,omitempty"` - OpenID string `json:"openid,omitempty" xml:"openid,omitempty"` - Receipt string `json:"receipt,omitempty" xml:"receipt,omitempty"` - SceneInfo string `json:"scene_info,omitempty" xml:"scene_info,omitempty"` + Detail CData `json:"detail.omitempty" xml:"detail,omitempty"` + Attach string `json:"attach,omitempty" xml:"attach,omitempty"` + FeeType string `json:"fee_type,omitempty" xml:"fee_type,omitempty"` + TimeStart string `json:"time_start,omitempty" xml:"time_start,omitempty"` + TimeExpire string `json:"time_expire,omitempty" xml:"time_expire,omitempty"` + GoodsTag string `json:"goods_tag,omitempty" xml:"goods_tag,omitempty"` + ProductID string `json:"product_id,omitempty" xml:"product_id,omitempty"` + LimitPay string `json:"limit_pay,omitempty" xml:"limit_pay,omitempty"` + OpenID string `json:"openid,omitempty" xml:"openid,omitempty"` + Receipt string `json:"receipt,omitempty" xml:"receipt,omitempty"` + SceneInfo string `json:"scene_info,omitempty" xml:"scene_info,omitempty"` + ProfitSharing string `json:"profit_sharing,omitempty" xml:"profit_sharing,omitempty"` } type CloseOrderParam struct {