|
@@ -336,12 +336,20 @@ type CreateRequest struct {
|
|
|
//商户号
|
|
|
MchId *string `json:"mch_id,omitempty"`
|
|
|
|
|
|
- Appid *string `json:"appid,omitempty"`
|
|
|
+ AppId *string `json:"appid,omitempty"`
|
|
|
}
|
|
|
|
|
|
func (o CreateRequest) MarshalJSON() ([]byte, error) {
|
|
|
toSerialize := map[string]interface{}{}
|
|
|
|
|
|
+ if o.MchId != nil {
|
|
|
+ toSerialize["mch_id"] = o.MchId
|
|
|
+ }
|
|
|
+
|
|
|
+ if o.AppId != nil {
|
|
|
+ toSerialize["appid"] = o.AppId
|
|
|
+ }
|
|
|
+
|
|
|
if o.SubMchid != nil {
|
|
|
toSerialize["sub_mchid"] = o.SubMchid
|
|
|
}
|
|
@@ -389,6 +397,16 @@ func (o CreateRequest) String() string {
|
|
|
} else {
|
|
|
ret += fmt.Sprintf("SubMchid:%v, ", *o.SubMchid)
|
|
|
}
|
|
|
+ if o.AppId == nil {
|
|
|
+ ret += "AppId:<nil>, "
|
|
|
+ } else {
|
|
|
+ ret += fmt.Sprintf("AppId:%v, ", *o.AppId)
|
|
|
+ }
|
|
|
+ if o.MchId == nil {
|
|
|
+ ret += "MchId:<nil>, "
|
|
|
+ } else {
|
|
|
+ ret += fmt.Sprintf("MchId:%v, ", *o.MchId)
|
|
|
+ }
|
|
|
|
|
|
if o.TransactionId == nil {
|
|
|
ret += "TransactionId:<nil>, "
|
|
@@ -436,6 +454,15 @@ func (o CreateRequest) String() string {
|
|
|
func (o CreateRequest) Clone() *CreateRequest {
|
|
|
ret := CreateRequest{}
|
|
|
|
|
|
+ if o.MchId != nil {
|
|
|
+ ret.MchId = new(string)
|
|
|
+ *ret.MchId = *o.MchId
|
|
|
+ }
|
|
|
+ if o.AppId != nil {
|
|
|
+ ret.AppId = new(string)
|
|
|
+ *ret.AppId = *o.AppId
|
|
|
+ }
|
|
|
+
|
|
|
if o.SubMchid != nil {
|
|
|
ret.SubMchid = new(string)
|
|
|
*ret.SubMchid = *o.SubMchid
|