added device support

This commit is contained in:
2026-01-10 04:47:04 +03:00
parent d9bfa5ff7f
commit 08c7556960
4 changed files with 15 additions and 12 deletions

View File

@@ -8,7 +8,8 @@ import (
)
func (c *Client) executeRequest(ctx context.Context, request FiscalRequest, response interface{}) error {
//execute request with json body in request
request.Device = c.device
reqJson, err := json.Marshal(request)
if err != nil {
return fmt.Errorf("failed to marshal request: %w", err)