|
@@ -334,7 +334,7 @@ type CreateRequest struct {
|
|
|
|
|
|
|
|
|
|
|
|
- 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.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
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return json.Marshal(toSerialize)
|
|
|
}
|
|
|
|