fuchaoyong 1 month ago
parent
commit
fad144d83f
1 changed files with 8 additions and 8 deletions
  1. 8 8
      services/refunddomestic/models.go

+ 8 - 8
services/refunddomestic/models.go

@@ -334,7 +334,7 @@ type CreateRequest struct {
 	//GoodsDetail []GoodsDetail `json:"goods_detail,omitempty"`
 
 	//商户号
-	MchId *string `json:"mch_id,omitempty"`
+	MchId *string `json:"mchid,omitempty"`
 
 	AppId *string `json:"appid,omitempty"`
 }
@@ -343,7 +343,7 @@ func (o CreateRequest) MarshalJSON() ([]byte, error) {
 	toSerialize := map[string]interface{}{}
 
 	if o.MchId != nil {
-		toSerialize["mch_id"] = o.MchId
+		toSerialize["mchid"] = o.MchId
 	}
 
 	if o.AppId != nil {
@@ -375,18 +375,18 @@ func (o CreateRequest) MarshalJSON() ([]byte, error) {
 		toSerialize["notify_url"] = o.NotifyUrl
 	}
 
-	if o.FundsAccount != nil {
-		toSerialize["funds_account"] = o.FundsAccount
-	}
+	//if o.FundsAccount != nil {
+	//	toSerialize["funds_account"] = o.FundsAccount
+	//}
 
 	if o.Amount == nil {
 		return nil, fmt.Errorf("field `Amount` is required and must be specified in CreateRequest")
 	}
 	toSerialize["amount"] = o.Amount
 
-	if o.GoodsDetail != nil {
-		toSerialize["goods_detail"] = o.GoodsDetail
-	}
+	//if o.GoodsDetail != nil {
+	//	toSerialize["goods_detail"] = o.GoodsDetail
+	//}
 	return json.Marshal(toSerialize)
 }