|
@@ -488,6 +488,11 @@ func (o PrepayRequest) MarshalJSON() ([]byte, error) {
|
|
|
}
|
|
|
toSerialize["appid"] = o.Appid
|
|
|
|
|
|
+ if o.TradeType==nil {
|
|
|
+ return nil, fmt.Errorf("field `TradeType` is required and must be specified in PrepayRequest")
|
|
|
+ }
|
|
|
+ toSerialize["trade_type"] = o.TradeType
|
|
|
+
|
|
|
if o.Mchid == nil {
|
|
|
return nil, fmt.Errorf("field `Mchid` is required and must be specified in PrepayRequest")
|
|
|
}
|
|
@@ -563,12 +568,18 @@ func (o PrepayRequest) String() string {
|
|
|
ret += fmt.Sprintf("Mchid:%v, ", *o.Mchid)
|
|
|
}
|
|
|
|
|
|
+ if o.TradeType == nil {
|
|
|
+ ret += "TradeType:<nil>, "
|
|
|
+ } else {
|
|
|
+ ret += fmt.Sprintf("TradeType:%v, ", *o.TradeType)
|
|
|
+ }
|
|
|
if o.Description == nil {
|
|
|
ret += "Description:<nil>, "
|
|
|
} else {
|
|
|
ret += fmt.Sprintf("Description:%v, ", *o.Description)
|
|
|
}
|
|
|
|
|
|
+
|
|
|
if o.OutTradeNo == nil {
|
|
|
ret += "OutTradeNo:<nil>, "
|
|
|
} else {
|
|
@@ -629,6 +640,10 @@ func (o PrepayRequest) Clone() *PrepayRequest {
|
|
|
ret.Appid = new(string)
|
|
|
*ret.Appid = *o.Appid
|
|
|
}
|
|
|
+ if o.TradeType != nil {
|
|
|
+ ret.TradeType = new(string)
|
|
|
+ *ret.TradeType = *o.TradeType
|
|
|
+ }
|
|
|
|
|
|
if o.Mchid != nil {
|
|
|
ret.Mchid = new(string)
|