added bankname and terminal ID

This commit is contained in:
2025-10-08 16:23:44 +03:00
parent 43b1d40028
commit 854187f98e
2 changed files with 12 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ func NewReceiptPayCash(sum float64, comment string) ReceiptPay {
}
}
func NewReceiptPayCard(sum float64, cardmask, bankID, rrnCode, authCode string) ReceiptPay {
func NewReceiptPayCard(sum float64, cardmask, bankID, rrnCode, authCode, terminalID, bankName string) ReceiptPay {
return ReceiptPay{
Type: PayTypeCard,
Sum: sum,
@@ -26,6 +26,8 @@ func NewReceiptPayCard(sum float64, cardmask, bankID, rrnCode, authCode string)
BankID: bankID,
Rrn: rrnCode,
AuthCode: authCode,
TermID: terminalID,
BankName: bankName,
}
}