-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwebhookOrderNoti.go
37 lines (32 loc) · 1.28 KB
/
webhookOrderNoti.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
/*
* Created by Du, Chengbin on 2022/6/14.
*/
package binancepay
import "github.com/shopspring/decimal"
const NotiBizTypeOrder NotiBizType = "PAY"
type OrderNoti struct {
MerchantTradeNo string `json:"merchantTradeNo"`
TotalFee decimal.Decimal `json:"totalFee"`
TransactTime int64 `json:"transactTime"`
Currency string `json:"currency"`
OpenUserId string `json:"openUserId"`
ProductType string `json:"productType"`
ProductName string `json:"productName"`
TradeType string `json:"tradeType"`
TransactionId string `json:"transactionId"`
PayerInfo *OrderNotiPayerInfo `json:"payerInfo,omitempty"`
}
type OrderNotiPayerInfo struct {
FirstName string `json:"firstName"`
MiddleName string `json:"middleName"`
LastName string `json:"lastName"`
WalletId string `json:"walletId"`
Country string `json:"country"`
City string `json:"city"`
Address string `json:"address"`
IdentityType string `json:"identityType"`
IdentityNumber string `json:"identityNumber"`
DateOfBirth string `json:"dateOfBirth"`
PlaceOfBirth string `json:"placeOfBirth"`
Nationality string `json:"nationality"`
}