-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathqueryOrder.go
32 lines (27 loc) · 902 Bytes
/
queryOrder.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
/*
* Created by Du, Chengbin on 2022/6/14.
*/
package binancepay
var _ IRequest = &QueryOrderRequest{}
type QueryOrderRequest struct {
PrepayId string `json:"prepayId,omitempty"`
MerchantTradeNo string `json:"merchantTradeNo,omitempty"`
}
func (q *QueryOrderRequest) EndPoint() string {
return "/binancepay/openapi/v2/order/query"
}
func (q *QueryOrderRequest) Validate() error {
return validate.Struct(q)
}
type QueryOrderResult struct {
MerchantId string `json:"merchantId"`
PrepayId string `json:"prepayId"`
TransactionId string `json:"transactionId"`
MerchantTradeNo string `json:"merchantTradeNo"`
Status string `json:"status"`
Currency string `json:"currency"`
OrderAmount string `json:"orderAmount"`
OpenUserId string `json:"openUserId"`
TransactTime int64 `json:"transactTime"`
CreateTime int64 `json:"createTime"`
}