shaoguo 3 weeks ago
parent
commit
4c936a9644

+ 4 - 4
services/payments/jsapi/api_jsapi.go

@@ -43,7 +43,7 @@ func (a *JsapiApiService) CloseOrder(ctx context.Context, req CloseOrderRequest)
 		return nil, fmt.Errorf("field `OutTradeNo` is required and must be specified in CloseOrderRequest")
 	}
 
-	localVarPath := consts.WechatPayAPIServer + "/v3/pay/transactions/out-trade-no/{out_trade_no}/close"
+	localVarPath := consts.WechatPayAPIServer + "/v3/global/transactions/out-trade-no/{out_trade_no}/close"
 	// Build Path with Path Params
 	localVarPath = strings.Replace(localVarPath, "{"+"out_trade_no"+"}", neturl.PathEscape(core.ParameterToString(*req.OutTradeNo, "")), -1)
 
@@ -79,7 +79,7 @@ func (a *JsapiApiService) Prepay(ctx context.Context, req PrepayRequest) (resp *
 		localVarHeaderParams = nethttp.Header{}
 	)
 
-	localVarPath := consts.WechatPayAPIServer + "/v3/pay/transactions/jsapi"
+	localVarPath := consts.WechatPayAPIServer + "/v3/global/transactions/jsapi"
 	// Make sure All Required Params are properly set
 
 	// Setup Body Params
@@ -121,7 +121,7 @@ func (a *JsapiApiService) QueryOrderById(ctx context.Context, req QueryOrderById
 		return nil, nil, fmt.Errorf("field `TransactionId` is required and must be specified in QueryOrderByIdRequest")
 	}
 
-	localVarPath := consts.WechatPayAPIServer + "/v3/pay/transactions/id/{transaction_id}"
+	localVarPath := consts.WechatPayAPIServer + "/v3/global/transactions/id/{transaction_id}"
 	// Build Path with Path Params
 	localVarPath = strings.Replace(localVarPath, "{"+"transaction_id"+"}", neturl.PathEscape(core.ParameterToString(*req.TransactionId, "")), -1)
 
@@ -170,7 +170,7 @@ func (a *JsapiApiService) QueryOrderByOutTradeNo(ctx context.Context, req QueryO
 		return nil, nil, fmt.Errorf("field `OutTradeNo` is required and must be specified in QueryOrderByOutTradeNoRequest")
 	}
 
-	localVarPath := consts.WechatPayAPIServer + "/v3/pay/transactions/out-trade-no/{out_trade_no}"
+	localVarPath := consts.WechatPayAPIServer + "/v3/global/transactions/out-trade-no/{out_trade_no}"
 	// Build Path with Path Params
 	localVarPath = strings.Replace(localVarPath, "{"+"out_trade_no"+"}", neturl.PathEscape(core.ParameterToString(*req.OutTradeNo, "")), -1)
 

+ 67 - 23
services/payments/jsapi/models.go

@@ -166,10 +166,11 @@ func (o CloseRequest) Clone() *CloseRequest {
 
 // Detail 优惠功能
 type Detail struct {
+
 	// 1.商户侧一张小票订单可能被分多次支付,订单原价用于记录整张小票的交易金额。 2.当订单原价与支付金额不相等,则不享受优惠。 3.该字段主要用于防止同一张小票分多次支付,以享受多次优惠的情况,正常支付订单不必上传此参数。
 	CostPrice *int64 `json:"cost_price,omitempty"`
 	// 商家小票ID。
-	InvoiceId   *string       `json:"invoice_id,omitempty"`
+	ReceiptId   *string       `json:"receipt_id,omitempty"`
 	GoodsDetail []GoodsDetail `json:"goods_detail,omitempty"`
 }
 
@@ -180,8 +181,8 @@ func (o Detail) MarshalJSON() ([]byte, error) {
 		toSerialize["cost_price"] = o.CostPrice
 	}
 
-	if o.InvoiceId != nil {
-		toSerialize["invoice_id"] = o.InvoiceId
+	if o.ReceiptId != nil {
+		toSerialize["receipt_id"] = o.ReceiptId
 	}
 
 	if o.GoodsDetail != nil {
@@ -198,10 +199,10 @@ func (o Detail) String() string {
 		ret += fmt.Sprintf("CostPrice:%v, ", *o.CostPrice)
 	}
 
-	if o.InvoiceId == nil {
-		ret += "InvoiceId:<nil>, "
+	if o.ReceiptId == nil {
+		ret += "ReceiptId:<nil>, "
 	} else {
-		ret += fmt.Sprintf("InvoiceId:%v, ", *o.InvoiceId)
+		ret += fmt.Sprintf("ReceiptId:%v, ", *o.ReceiptId)
 	}
 
 	ret += fmt.Sprintf("GoodsDetail:%v", o.GoodsDetail)
@@ -217,9 +218,9 @@ func (o Detail) Clone() *Detail {
 		*ret.CostPrice = *o.CostPrice
 	}
 
-	if o.InvoiceId != nil {
-		ret.InvoiceId = new(string)
-		*ret.InvoiceId = *o.InvoiceId
+	if o.ReceiptId != nil {
+		ret.ReceiptId = new(string)
+		*ret.ReceiptId = *o.ReceiptId
 	}
 
 	if o.GoodsDetail != nil {
@@ -404,6 +405,13 @@ type PrepayRequest struct {
 	Detail        *Detail     `json:"detail,omitempty"`
 	SceneInfo     *SceneInfo  `json:"scene_info,omitempty"`
 	SettleInfo    *SettleInfo `json:"settle_info,omitempty"`
+
+
+	//交易类型
+	TradeType       *string            `json:"trade_type,omitempty"`
+
+	//商户行业编码
+	MerchantCategoryCode *string `json:"merchant_category_code,omitempty"`
 }
 
 func (o PrepayRequest) MarshalJSON() ([]byte, error) {
@@ -414,6 +422,16 @@ 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.MerchantCategoryCode  == nil {
+		return nil, fmt.Errorf("field `MerchantCategoryCode` is required and must be specified in PrepayRequest")
+	}
+	toSerialize["merchant_category_code"] = o.MerchantCategoryCode
+
 	if o.Mchid == nil {
 		return nil, fmt.Errorf("field `Mchid` is required and must be specified in PrepayRequest")
 	}
@@ -530,6 +548,17 @@ func (o PrepayRequest) String() string {
 
 	ret += fmt.Sprintf("LimitPay:%v, ", o.LimitPay)
 
+	if o.TradeType  == nil {
+		ret += "TradeType:<nil>, "
+	} else {
+		ret += fmt.Sprintf("TradeType:%v, ", *o.TradeType)
+	}
+	if o.MerchantCategoryCode  == nil {
+		ret += "MerchantCategoryCode:<nil>, "
+	} else {
+		ret += fmt.Sprintf("MerchantCategoryCode:%v, ", *o.MerchantCategoryCode)
+	}
+
 	if o.SupportFapiao == nil {
 		ret += "SupportFapiao:<nil>, "
 	} else {
@@ -562,6 +591,16 @@ func (o PrepayRequest) Clone() *PrepayRequest {
 		*ret.Mchid = *o.Mchid
 	}
 
+	if o.TradeType != nil {
+		ret.TradeType = new(string)
+		*ret.TradeType = *o.TradeType
+	}
+
+	if o.MerchantCategoryCode != nil {
+		ret.MerchantCategoryCode = new(string)
+		*ret.MerchantCategoryCode = *o.MerchantCategoryCode
+	}
+
 	if o.Description != nil {
 		ret.Description = new(string)
 		*ret.Description = *o.Description
@@ -624,6 +663,8 @@ func (o PrepayRequest) Clone() *PrepayRequest {
 		ret.SettleInfo = o.SettleInfo.Clone()
 	}
 
+
+
 	return &ret
 }
 
@@ -781,6 +822,9 @@ type SceneInfo struct {
 	PayerClientIp *string `json:"payer_client_ip"`
 	// 商户端设备号
 	DeviceId  *string    `json:"device_id,omitempty"`
+	DeviceIp   *string `json:"device_ip,omitempty"`
+	OperatorId *string `json:"operator_id,omitempty"`
+	
 	StoreInfo *StoreInfo `json:"store_info,omitempty"`
 }
 
@@ -790,6 +834,12 @@ func (o SceneInfo) MarshalJSON() ([]byte, error) {
 	if o.PayerClientIp == nil {
 		return nil, fmt.Errorf("field `PayerClientIp` is required and must be specified in SceneInfo")
 	}
+	if o.DeviceIp != nil {
+		toSerialize["device_ip"] = o.DeviceIp
+	}
+	if o.OperatorId != nil {
+		toSerialize["operator_id"] = o.OperatorId
+	}
 	toSerialize["payer_client_ip"] = o.PayerClientIp
 
 	if o.DeviceId != nil {
@@ -809,6 +859,12 @@ func (o SceneInfo) String() string {
 	} else {
 		ret += fmt.Sprintf("PayerClientIp:%v, ", *o.PayerClientIp)
 	}
+	if o.DeviceIp != nil {
+		ret += fmt.Sprintf("DeviceIp:%v, ", *o.DeviceIp)
+	}
+	if o.OperatorId != nil {
+		ret += fmt.Sprintf("OperatorId:%v, ", *o.OperatorId)
+	}
 
 	if o.DeviceId == nil {
 		ret += "DeviceId:<nil>, "
@@ -884,8 +940,6 @@ type StoreInfo struct {
 	Id *string `json:"id"`
 	// 商户侧门店名称
 	Name *string `json:"name,omitempty"`
-	// 地区编码,详细请见微信支付提供的文档
-	AreaCode *string `json:"area_code,omitempty"`
 	// 详细的商户门店地址
 	Address *string `json:"address,omitempty"`
 }
@@ -902,9 +956,6 @@ func (o StoreInfo) MarshalJSON() ([]byte, error) {
 		toSerialize["name"] = o.Name
 	}
 
-	if o.AreaCode != nil {
-		toSerialize["area_code"] = o.AreaCode
-	}
 
 	if o.Address != nil {
 		toSerialize["address"] = o.Address
@@ -926,11 +977,7 @@ func (o StoreInfo) String() string {
 		ret += fmt.Sprintf("Name:%v, ", *o.Name)
 	}
 
-	if o.AreaCode == nil {
-		ret += "AreaCode:<nil>, "
-	} else {
-		ret += fmt.Sprintf("AreaCode:%v, ", *o.AreaCode)
-	}
+
 
 	if o.Address == nil {
 		ret += "Address:<nil>"
@@ -954,10 +1001,7 @@ func (o StoreInfo) Clone() *StoreInfo {
 		*ret.Name = *o.Name
 	}
 
-	if o.AreaCode != nil {
-		ret.AreaCode = new(string)
-		*ret.AreaCode = *o.AreaCode
-	}
+
 
 	if o.Address != nil {
 		ret.Address = new(string)

+ 18 - 187
services/refunddomestic/models.go

@@ -13,7 +13,6 @@ package refunddomestic
 import (
 	"encoding/json"
 	"fmt"
-	"time"
 )
 
 // Account * `AVAILABLE` - 可用余额, 多账户资金准备退款可用余额出资账户类型 * `UNAVAILABLE` - 不可用余额, 多账户资金准备退款不可用余额出资账户类型
@@ -35,18 +34,10 @@ type Amount struct {
 	Total *int64 `json:"total"`
 	// 退款标价金额,单位为分,可以做部分退款
 	Refund *int64 `json:"refund"`
+
 	// 退款出资的账户类型及金额信息
 	From []FundsFromItem `json:"from,omitempty"`
-	// 现金支付金额,单位为分,只能为整数
-	PayerTotal *int64 `json:"payer_total"`
-	// 退款给用户的金额,不包含所有优惠券金额
-	PayerRefund *int64 `json:"payer_refund"`
-	// 去掉非充值代金券退款金额后的退款金额,单位为分,退款金额=申请退款金额-非充值代金券退款金额,退款金额<=申请退款金额
-	SettlementRefund *int64 `json:"settlement_refund"`
-	// 应结订单金额=订单金额-免充值代金券金额,应结订单金额<=订单金额,单位为分
-	SettlementTotal *int64 `json:"settlement_total"`
-	// 优惠退款金额<=退款金额,退款金额-代金券或立减优惠退款金额为现金,说明详见代金券或立减优惠,单位为分
-	DiscountRefund *int64 `json:"discount_refund"`
+
 	// 符合ISO 4217标准的三位字母代码,目前只支持人民币:CNY。
 	Currency *string `json:"currency"`
 }
@@ -68,30 +59,7 @@ func (o Amount) MarshalJSON() ([]byte, error) {
 		toSerialize["from"] = o.From
 	}
 
-	if o.PayerTotal == nil {
-		return nil, fmt.Errorf("field `PayerTotal` is required and must be specified in Amount")
-	}
-	toSerialize["payer_total"] = o.PayerTotal
-
-	if o.PayerRefund == nil {
-		return nil, fmt.Errorf("field `PayerRefund` is required and must be specified in Amount")
-	}
-	toSerialize["payer_refund"] = o.PayerRefund
-
-	if o.SettlementRefund == nil {
-		return nil, fmt.Errorf("field `SettlementRefund` is required and must be specified in Amount")
-	}
-	toSerialize["settlement_refund"] = o.SettlementRefund
-
-	if o.SettlementTotal == nil {
-		return nil, fmt.Errorf("field `SettlementTotal` is required and must be specified in Amount")
-	}
-	toSerialize["settlement_total"] = o.SettlementTotal
 
-	if o.DiscountRefund == nil {
-		return nil, fmt.Errorf("field `DiscountRefund` is required and must be specified in Amount")
-	}
-	toSerialize["discount_refund"] = o.DiscountRefund
 
 	if o.Currency == nil {
 		return nil, fmt.Errorf("field `Currency` is required and must be specified in Amount")
@@ -116,36 +84,6 @@ func (o Amount) String() string {
 
 	ret += fmt.Sprintf("From:%v, ", o.From)
 
-	if o.PayerTotal == nil {
-		ret += "PayerTotal:<nil>, "
-	} else {
-		ret += fmt.Sprintf("PayerTotal:%v, ", *o.PayerTotal)
-	}
-
-	if o.PayerRefund == nil {
-		ret += "PayerRefund:<nil>, "
-	} else {
-		ret += fmt.Sprintf("PayerRefund:%v, ", *o.PayerRefund)
-	}
-
-	if o.SettlementRefund == nil {
-		ret += "SettlementRefund:<nil>, "
-	} else {
-		ret += fmt.Sprintf("SettlementRefund:%v, ", *o.SettlementRefund)
-	}
-
-	if o.SettlementTotal == nil {
-		ret += "SettlementTotal:<nil>, "
-	} else {
-		ret += fmt.Sprintf("SettlementTotal:%v, ", *o.SettlementTotal)
-	}
-
-	if o.DiscountRefund == nil {
-		ret += "DiscountRefund:<nil>, "
-	} else {
-		ret += fmt.Sprintf("DiscountRefund:%v, ", *o.DiscountRefund)
-	}
-
 	if o.Currency == nil {
 		ret += "Currency:<nil>"
 	} else {
@@ -175,30 +113,6 @@ func (o Amount) Clone() *Amount {
 		}
 	}
 
-	if o.PayerTotal != nil {
-		ret.PayerTotal = new(int64)
-		*ret.PayerTotal = *o.PayerTotal
-	}
-
-	if o.PayerRefund != nil {
-		ret.PayerRefund = new(int64)
-		*ret.PayerRefund = *o.PayerRefund
-	}
-
-	if o.SettlementRefund != nil {
-		ret.SettlementRefund = new(int64)
-		*ret.SettlementRefund = *o.SettlementRefund
-	}
-
-	if o.SettlementTotal != nil {
-		ret.SettlementTotal = new(int64)
-		*ret.SettlementTotal = *o.SettlementTotal
-	}
-
-	if o.DiscountRefund != nil {
-		ret.DiscountRefund = new(int64)
-		*ret.DiscountRefund = *o.DiscountRefund
-	}
 
 	if o.Currency != nil {
 		ret.Currency = new(string)
@@ -498,19 +412,17 @@ const (
 
 // FundsFromItem
 type FundsFromItem struct {
-	// 下面枚举值多选一。 枚举值: AVAILABLE : 可用余额 UNAVAILABLE : 不可用余额 * `AVAILABLE` - 可用余额 * `UNAVAILABLE` - 不可用余额
-	Account *Account `json:"account"`
-	// 对应账户出资金额
+	FundSource *string `json:"funds_source"`
 	Amount *int64 `json:"amount"`
 }
 
 func (o FundsFromItem) MarshalJSON() ([]byte, error) {
 	toSerialize := map[string]interface{}{}
 
-	if o.Account == nil {
-		return nil, fmt.Errorf("field `Account` is required and must be specified in FundsFromItem")
+	if o.FundSource == nil {
+		return nil, fmt.Errorf("field `FundSource` is required and must be specified in FundsFromItem")
 	}
-	toSerialize["account"] = o.Account
+	toSerialize["funds_source"] = o.FundSource
 
 	if o.Amount == nil {
 		return nil, fmt.Errorf("field `Amount` is required and must be specified in FundsFromItem")
@@ -521,12 +433,11 @@ func (o FundsFromItem) MarshalJSON() ([]byte, error) {
 
 func (o FundsFromItem) String() string {
 	var ret string
-	if o.Account == nil {
-		ret += "Account:<nil>, "
+	if o.FundSource == nil {
+		ret += "FundSource:<nil>, "
 	} else {
-		ret += fmt.Sprintf("Account:%v, ", *o.Account)
+		ret += fmt.Sprintf("FundSource:%v, ", *o.FundSource)
 	}
-
 	if o.Amount == nil {
 		ret += "Amount:<nil>"
 	} else {
@@ -539,10 +450,7 @@ func (o FundsFromItem) String() string {
 func (o FundsFromItem) Clone() *FundsFromItem {
 	ret := FundsFromItem{}
 
-	if o.Account != nil {
-		ret.Account = new(Account)
-		*ret.Account = *o.Account
-	}
+
 
 	if o.Amount != nil {
 		ret.Amount = new(int64)
@@ -868,22 +776,19 @@ type Refund struct {
 	TransactionId *string `json:"transaction_id"`
 	// 原支付交易对应的商户订单号
 	OutTradeNo *string `json:"out_trade_no"`
-	// 枚举值: - ORIGINAL—原路退款 - BALANCE—退回到余额 - OTHER_BALANCE—原账户异常退到其他余额账户 - OTHER_BANKCARD—原银行卡异常退到其他银行卡 * `ORIGINAL` - 原路退款 * `BALANCE` - 退回到余额 * `OTHER_BALANCE` - 原账户异常退到其他余额账户 * `OTHER_BANKCARD` - 原银行卡异常退到其他银行卡
-	Channel *Channel `json:"channel"`
-	// 取当前退款单的退款入账方,有以下几种情况: 1)退回银行卡:{银行名称}{卡类型}{卡尾号} 2)退回支付用户零钱:支付用户零钱 3)退还商户:商户基本账户商户结算银行账户 4)退回支付用户零钱通:支付用户零钱通
-	UserReceivedAccount *string `json:"user_received_account"`
-	// 退款成功时间,退款状态status为SUCCESS(退款成功)时,返回该字段。遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。
-	SuccessTime *time.Time `json:"success_time,omitempty"`
-	// 退款受理时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。
-	CreateTime *time.Time `json:"create_time"`
-	// 退款到银行发现用户的卡作废或者冻结了,导致原路退款银行卡失败,可前往商户平台(pay.weixin.qq.com)-交易中心,手动处理此笔退款。 枚举值: - SUCCESS—退款成功 - CLOSED—退款关闭 - PROCESSING—退款处理中 - ABNORMAL—退款异常 * `SUCCESS` - 退款成功 * `CLOSED` - 退款关闭 * `PROCESSING` - 退款处理中 * `ABNORMAL` - 退款异常
-	Status *Status `json:"status"`
-	// 退款所使用资金对应的资金账户类型 枚举值: - UNSETTLED : 未结算资金 - AVAILABLE : 可用余额 - UNAVAILABLE : 不可用余额 - OPERATION : 运营户 - BASIC : 基本账户(含可用余额和不可用余额) * `UNSETTLED` - 未结算资金 * `AVAILABLE` - 可用余额 * `UNAVAILABLE` - 不可用余额 * `OPERATION` - 运营户 * `BASIC` - 基本账户(含可用余额和不可用余额)
+	Reason *string `json:"reason,omitempty"`
+
+	Source *string `json:"source,omitempty"`
+
 	FundsAccount *FundsAccount `json:"funds_account,omitempty"`
 	// 金额详细信息
 	Amount *Amount `json:"amount"`
 	// 优惠退款信息
 	PromotionDetail []Promotion `json:"promotion_detail,omitempty"`
+
+	MchId *string `json:"mch_id,omitempty"`
+	AppId *string `json:"app_id,omitempty"`
+
 }
 
 func (o Refund) MarshalJSON() ([]byte, error) {
@@ -909,29 +814,6 @@ func (o Refund) MarshalJSON() ([]byte, error) {
 	}
 	toSerialize["out_trade_no"] = o.OutTradeNo
 
-	if o.Channel == nil {
-		return nil, fmt.Errorf("field `Channel` is required and must be specified in Refund")
-	}
-	toSerialize["channel"] = o.Channel
-
-	if o.UserReceivedAccount == nil {
-		return nil, fmt.Errorf("field `UserReceivedAccount` is required and must be specified in Refund")
-	}
-	toSerialize["user_received_account"] = o.UserReceivedAccount
-
-	if o.SuccessTime != nil {
-		toSerialize["success_time"] = o.SuccessTime.Format(time.RFC3339)
-	}
-
-	if o.CreateTime == nil {
-		return nil, fmt.Errorf("field `CreateTime` is required and must be specified in Refund")
-	}
-	toSerialize["create_time"] = o.CreateTime.Format(time.RFC3339)
-
-	if o.Status == nil {
-		return nil, fmt.Errorf("field `Status` is required and must be specified in Refund")
-	}
-	toSerialize["status"] = o.Status
 
 	if o.FundsAccount != nil {
 		toSerialize["funds_account"] = o.FundsAccount
@@ -974,35 +856,7 @@ func (o Refund) String() string {
 		ret += fmt.Sprintf("OutTradeNo:%v, ", *o.OutTradeNo)
 	}
 
-	if o.Channel == nil {
-		ret += "Channel:<nil>, "
-	} else {
-		ret += fmt.Sprintf("Channel:%v, ", *o.Channel)
-	}
-
-	if o.UserReceivedAccount == nil {
-		ret += "UserReceivedAccount:<nil>, "
-	} else {
-		ret += fmt.Sprintf("UserReceivedAccount:%v, ", *o.UserReceivedAccount)
-	}
-
-	if o.SuccessTime == nil {
-		ret += "SuccessTime:<nil>, "
-	} else {
-		ret += fmt.Sprintf("SuccessTime:%v, ", *o.SuccessTime)
-	}
 
-	if o.CreateTime == nil {
-		ret += "CreateTime:<nil>, "
-	} else {
-		ret += fmt.Sprintf("CreateTime:%v, ", *o.CreateTime)
-	}
-
-	if o.Status == nil {
-		ret += "Status:<nil>, "
-	} else {
-		ret += fmt.Sprintf("Status:%v, ", *o.Status)
-	}
 
 	if o.FundsAccount == nil {
 		ret += "FundsAccount:<nil>, "
@@ -1040,30 +894,7 @@ func (o Refund) Clone() *Refund {
 		*ret.OutTradeNo = *o.OutTradeNo
 	}
 
-	if o.Channel != nil {
-		ret.Channel = new(Channel)
-		*ret.Channel = *o.Channel
-	}
 
-	if o.UserReceivedAccount != nil {
-		ret.UserReceivedAccount = new(string)
-		*ret.UserReceivedAccount = *o.UserReceivedAccount
-	}
-
-	if o.SuccessTime != nil {
-		ret.SuccessTime = new(time.Time)
-		*ret.SuccessTime = *o.SuccessTime
-	}
-
-	if o.CreateTime != nil {
-		ret.CreateTime = new(time.Time)
-		*ret.CreateTime = *o.CreateTime
-	}
-
-	if o.Status != nil {
-		ret.Status = new(Status)
-		*ret.Status = *o.Status
-	}
 
 	if o.FundsAccount != nil {
 		ret.FundsAccount = new(FundsAccount)