aditya.siregar 081a1aa27b Update
2024-10-27 19:48:10 +07:00

99 lines
3.3 KiB
Go

package entity
type LinkQuRequest struct {
CustomerID string
CustomerName string
CustomerPhone string
CustomerEmail string
PaymentReferenceID string
PaymentMethod string
TotalAmount int64
BankCode string
OrderItems []OrderItem
}
type LinkQuCallback struct {
PartnerReff string
PaymentReff string
Status string
Signature string
}
type LinkQuQRISResponse struct {
Time int `json:"time"`
Amount int64 `json:"amount"`
Expired string `json:"expired"`
CustomerPhone string `json:"customer_phone"`
CustomerID string `json:"customer_id"`
CustomerName string `json:"customer_name"`
CustomerEmail string `json:"customer_email"`
PartnerReff string `json:"partner_reff"`
Username string `json:"username"`
Pin string `json:"pin"`
Status string `json:"status"`
ResponseCode string `json:"response_code"`
ResponseDesc string `json:"response_desc"`
ImageQRIS string `json:"imageqris"`
PartnerReff2 string `json:"partner_reff2"`
FeeAdmin int `json:"feeadmin"`
QRISText string `json:"qris_text"`
Signature string `json:"signature"`
URLCallback string `json:"url_callback"`
}
type LinkQuPaymentVAResponse struct {
Time int `json:"time"`
Amount int `json:"amount"`
Expired string `json:"expired"`
BankCode string `json:"bank_code"`
BankName string `json:"bank_name"`
CustomerPhone string `json:"customer_phone"`
CustomerID string `json:"customer_id"`
CustomerName string `json:"customer_name"`
CustomerEmail string `json:"customer_email"`
PartnerReff string `json:"partner_reff"`
Username string `json:"username"`
Pin string `json:"pin"`
Status string `json:"status"`
ResponseCode string `json:"response_code"`
ResponseDesc string `json:"response_desc"`
VirtualAccount string `json:"virtual_account"`
PartnerReff2 string `json:"partner_reff2"`
Remark string `json:"remark"`
Signature string `json:"signature"`
UrlCallback string `json:"url_callback"`
}
type LinkQuCheckStatusResponse struct {
ResponseCode string `json:"rc"`
ResponseDesc string `json:"rd"`
Total int64 `json:"total"`
Balance int64 `json:"balance"`
Data LinkQuCheckStatusData `json:"data"`
Request map[string]interface{} `json:"request"`
LastUpdate string `json:"lastUpdate"`
DataAdditional map[string]interface{} `json:"dataadditional"`
}
type LinkQuCheckStatusData struct {
InquiryReff int64 `json:"inquiry_reff"`
PaymentReff int64 `json:"payment_reff"`
PartnerReff string `json:"partner_reff"`
Reference string `json:"reference"`
ProductID string `json:"id_produk"`
ProductName string `json:"nama_produk"`
ProductGroup string `json:"grup_produk"`
Debitted int64 `json:"debitted"`
Amount int64 `json:"amount"`
AmountFee int64 `json:"amountfee"`
Info1 string `json:"info1"`
Info2 string `json:"info2"`
Info3 string `json:"info3"`
Info4 string `json:"info4"`
StatusTrx string `json:"status_trx"`
StatusDesc string `json:"status_desc"`
StatusPaid string `json:"status_paid"`
Balance int64 `json:"balance"`
TipsQRIS int64 `json:"tips_qris"`
}