forked from go-pay/gopay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_merchant.go
92 lines (79 loc) · 3.2 KB
/
model_merchant.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
package alipay
type TradeRelationBindResponse struct {
Response *TradeRelationBind `json:"alipay_trade_royalty_relation_bind_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type TradeRelationUnbindResponse struct {
Response *TradeRelationBind `json:"alipay_trade_royalty_relation_unbind_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type TradeRelationBatchQueryResponse struct {
Response *TradeRelationBatchQuery `json:"alipay_trade_order_settle_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type TradeSettleConfirmResponse struct {
Response *TradeOrderSettle `json:"alipay_trade_settle_confirm_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type TradeOrderSettleResponse struct {
Response *TradeOrderSettle `json:"alipay_trade_order_settle_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
type TradeOrderSettleQueryResponse struct {
Response *TradeOrderSettleQuery `json:"alipay_trade_order_settle_response"`
AlipayCertSn string `json:"alipay_cert_sn,omitempty"`
SignData string `json:"-"`
Sign string `json:"sign"`
}
// =========================================================分割=========================================================
type TradeRelationBind struct {
ErrorResponse
ResultCode string `json:"result_code"`
}
type TradeRelationBatchQuery struct {
ErrorResponse
ResultCode string `json:"result_code"`
ReceiverList []*Receiver `json:"receiver_list"`
TotalPageNum int `json:"total_page_num"`
TotalRecordNum int `json:"total_record_num"`
CurrentPageNum int `json:"current_page_num"`
CurrentPageSize int `json:"current_page_size"`
}
type Receiver struct {
Type string `json:"type"`
Account string `json:"account"`
Memo string `json:"memo"`
}
type TradeOrderSettle struct {
ErrorResponse
TradeNo string `json:"trade_no,omitempty"`
}
type TradeOrderSettleQuery struct {
ErrorResponse
OutTradeNo string `json:"out_request_no"`
OperationDt string `json:"operation_dt"`
RoyaltyDetailList []*RoyaltyDetail `json:"royalty_detail_list"`
}
type RoyaltyDetail struct {
OperationType string `json:"operation_type"`
ExecuteDt string `json:"execute_dt"`
TransOut string `json:"trans_out"`
TransOutType string `json:"trans_out_type"`
TransIn string `json:"trans_in"`
TransInType string `json:"trans_in_type"`
Amount string `json:"amount"`
State string `json:"state"`
DetailId string `json:"detail_id"`
ErrorCode string `json:"error_code"`
ErrorDesc string `json:"error_desc"`
}