Add isDM flag to Client and update FiscalRequest structure for DM support

This commit is contained in:
2026-01-16 02:41:11 +03:00
parent 861a1640d4
commit f23c4ffd1c
3 changed files with 15 additions and 6 deletions

View File

@@ -1,8 +1,11 @@
package api
type FiscalRequest struct {
Source string `json:"source"`
Ver int `json:"ver,omitempty"`
Source string `json:"source,omitempty"`
Device string `json:"device,omitempty"`
Tag string `json:"tag,omitempty"`
Type int `json:"type,omitempty"`
Userinfo Userinfo `json:"userinfo,omitempty"`
Fiscal Fiscal `json:"fiscal"`
}
@@ -14,7 +17,7 @@ type Userinfo struct {
type Fiscal struct {
Task int `json:"task"`
Cashier string `json:"cashier"`
Cashier string `json:"cashier,omitempty"`
Receipt *Receipt `json:"receipt,omitempty"`
}