-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathresponse.go
36 lines (32 loc) · 996 Bytes
/
response.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
package bersamabilling
import "encoding/xml"
type CreatePaymentCodeResponse struct {
XMLName xml.Name
Type string `xml:"type"`
Ack string `xml:"ack"`
BookingID string `xml:"bookingid"`
VaID string `xml:"vaid"`
BankCode string `xml:"bankcode"`
Signature string `xml:"signature"`
}
type StatusInquiryResponse struct {
XMLName xml.Name
Type string `xml:"type"`
Item []ItemResponse `xml:",any"`
}
type ItemResponse struct {
XMLName xml.Name
BookingID string `xml:"bookingid"`
VaID string `xml:"vaid"`
CliendID string `xml:"clientid"`
CustomerName string `xml:"customer_name"`
IssuerBank string `xml:"issuer_bank"`
IssuerName string `xml:"issuer_name"`
Amount string `xml:"amount"`
ProductID string `xml:"productid"`
TrxID string `xml:"trxid"`
TrxDate string `xml:"trx_date"`
Status string `xml:"status"`
StatusMessage string `xml:"-"`
Signature string `xml:"signature"`
}