|
@@ -327,11 +327,11 @@ type CreateRequest struct {
|
|
// 异步接收微信支付退款结果通知的回调地址,通知url必须为外网可访问的url,不能携带参数。 如果参数中传了notify_url,则商户平台上配置的回调地址将不会生效,优先回调当前传的这个地址。
|
|
// 异步接收微信支付退款结果通知的回调地址,通知url必须为外网可访问的url,不能携带参数。 如果参数中传了notify_url,则商户平台上配置的回调地址将不会生效,优先回调当前传的这个地址。
|
|
NotifyUrl *string `json:"notify_url,omitempty"`
|
|
NotifyUrl *string `json:"notify_url,omitempty"`
|
|
// 若传递此参数则使用对应的资金账户退款,否则默认使用未结算资金退款(仅对老资金流商户适用) 枚举值: - AVAILABLE:可用余额账户 * `AVAILABLE` - 可用余额
|
|
// 若传递此参数则使用对应的资金账户退款,否则默认使用未结算资金退款(仅对老资金流商户适用) 枚举值: - AVAILABLE:可用余额账户 * `AVAILABLE` - 可用余额
|
|
- //FundsAccount *ReqFundsAccount `json:"funds_account,omitempty"`
|
|
|
|
|
|
+ FundsAccount *ReqFundsAccount `json:"funds_account,omitempty"`
|
|
// 订单金额信息
|
|
// 订单金额信息
|
|
Amount *AmountReq `json:"amount"`
|
|
Amount *AmountReq `json:"amount"`
|
|
// 指定商品退款需要传此参数,其他场景无需传递
|
|
// 指定商品退款需要传此参数,其他场景无需传递
|
|
- //GoodsDetail []GoodsDetail `json:"goods_detail,omitempty"`
|
|
|
|
|
|
+ GoodsDetail []GoodsDetail `json:"goods_detail,omitempty"`
|
|
|
|
|
|
//商户号
|
|
//商户号
|
|
MchId *string `json:"mchid,omitempty"`
|
|
MchId *string `json:"mchid,omitempty"`
|
|
@@ -375,18 +375,18 @@ func (o CreateRequest) MarshalJSON() ([]byte, error) {
|
|
toSerialize["notify_url"] = o.NotifyUrl
|
|
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 {
|
|
if o.Amount == nil {
|
|
return nil, fmt.Errorf("field `Amount` is required and must be specified in CreateRequest")
|
|
return nil, fmt.Errorf("field `Amount` is required and must be specified in CreateRequest")
|
|
}
|
|
}
|
|
toSerialize["amount"] = o.Amount
|
|
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)
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
}
|
|
|
|
|