M161 Kopie van pre bill afdrukken

M161 Kopie van pre bill afdrukken

Men wenst een kopie af te drukken van een pre bill P 22/53

C#
        
        //Create the correct action according to the example
        var newCopyAction = new PosCopyAction(
            FpsFinancesModels.Company,
            _myFpsPos,
            FpsFinancesModels.TerminalTer1Bar,
            FpsFinancesModels.EmployeeJohn)
        {
            SalesActionNumber = 1014,
            BookingDate = DateTime.Now,
            BookingPeriodId = Guid.Parse("dffcd829-a0e5-41ca-a0ae-9eb887f95637"),
            TicketMedium = TicketMedium.PAPER,
            Reference = new CheckboxSignReference
            {
                Checkbox = FpsFinancesModels.Checkbox01,
                DateTime = new DateTime(2024, 7, 29, 12, 57, 12),
                Eventlabel = EventLabel.P,
                EventCounter = 22,
                TotalCounter = 53
            }
        };

        //Sign the action
        var result = await checkboxService.SignPosAction(newCopyAction, false, null, cancellationToken);

        //Handle the result accordingly   
        Console.WriteLine($"Result with Signature {result.SignResult?.DigitalSignature}");