Added commentUP field to fiscalAPI

This commit is contained in:
2025-10-13 16:08:02 +03:00
parent 854187f98e
commit 328447f079
3 changed files with 21 additions and 13 deletions

View File

@@ -99,6 +99,7 @@ type SellParams struct {
PayType int
CardParams *CardParams
Userinfo *api.Userinfo
CommentUP string
}
type CardParams struct {
@@ -158,6 +159,11 @@ func (b *SellParamsBuilder) Comment(comment string) *SellParamsBuilder {
return b
}
func (b *SellParamsBuilder) CommentUp(commentUp string) *SellParamsBuilder {
b.params.CommentUP = commentUp
return b
}
func (b *SellParamsBuilder) PayCash() *SellParamsBuilder {
b.params.PayType = PayTypeCash
b.params.CardParams = nil