-
Notifications
You must be signed in to change notification settings - Fork 1
/
type.go
97 lines (78 loc) · 1.65 KB
/
type.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
93
94
95
96
97
package vnqrpay
type VietQRStatus int
type QRProvider string
type QRProviderFieldID string
type QRProviderGUID string
type QRFieldID string
type Provider struct {
FieldID QRFieldID
Name QRProvider
GUID QRProviderGUID
Service VietQRService
}
type Merchant struct {
ID string
Name string
}
type BankKey string
type BankCode string
type BankSwiftCode string
type Bank struct {
Key BankKey
Code BankCode
Name string
ShortName string
Bin string
VietQRStatus VietQRStatus
LookupSupported int
SwiftCode BankSwiftCode
Keywords string
}
type VietQRConsumerID string
type Consumer struct {
BankBin string
BankNumber string
}
type AdditionalDataID string
type AdditionalData struct {
Store string
Terminal string
BillNumber string
MobileNumber string
LoyaltyNumber string
Reference string
CustomerLabel string
Purpose string
DataRequest string
}
type QRPay struct {
IsValid bool
Version string
InitMethod string
Provider Provider
Merchant Merchant
Consumer Consumer
Category string
Currency string
Amount string
TipAndFeeType string
TipAndFeeAmount string
TipAndFeePercent string
Nation string
City string
ZipCode string
AdditionalData AdditionalData
CRC string
}
type VietQRService string
type VietQROptions struct {
Consumer Consumer
Amount string
Purpose string
Service VietQRService
}
type VNPayOptions struct {
Merchant Merchant
Amount string
AdditionalData AdditionalData
}