Interface IAnybillClientReceiptModule
Module of the IAnybillClient for working with receipts.
public interface IAnybillClientReceiptModule
Methods
CancelReceiptAsync(Guid, CancellationToken)
Cancel a receipt with the given receipt id.
Task<ICancelReceiptResponse> CancelReceiptAsync(Guid receiptId, CancellationToken cancellationToken = default)
Parameters
receiptId
GuidId of the receipt which should be cancelled.
cancellationToken
CancellationTokenCancellation token.
Returns
CreateAsync(string, string, CancellationToken)
Creates a new receipt from a json.
Task<IReceiptResponse> CreateAsync(string receiptDtoJson, string addReceiptOptionsJson, CancellationToken cancellationToken = default)
Parameters
receiptDtoJson
stringDetails to add the new receipt as json.
addReceiptOptionsJson
stringOptions for the receipt like DisplayTarget as json.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<IReceiptResponse>
A IReceiptResponse sub-type.
CreateAsync(AddReceipt, AddReceiptOptions, CancellationToken)
Creates a new receipt.
Task<IReceiptResponse> CreateAsync(AddReceipt receiptDto, AddReceiptOptions addReceiptOptions, CancellationToken cancellationToken = default)
Parameters
receiptDto
AddReceiptThe details to add the new receipt.
addReceiptOptions
AddReceiptOptionscancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IReceiptResponse>
A IReceiptResponse sub-type.
PrintedReceiptAsync(Guid, CancellationToken)
Mark a receipt as printed with the given id.
Task<IPrintedReceiptResponse> PrintedReceiptAsync(Guid receiptId, CancellationToken cancellationToken = default)
Parameters
receiptId
GuidId of the receipt which should be marked as printed.
cancellationToken
CancellationTokenCancellation token.
Returns
RegisterIdAsync(RegisterReceiptId, CancellationToken)
Creates a pre generated receipt.
Task<IRegisterReceiptIdResponse> RegisterIdAsync(RegisterReceiptId registerReceiptId, CancellationToken cancellationToken = default)
Parameters
registerReceiptId
RegisterReceiptIdThe data to pre register a receipt.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task<IRegisterReceiptIdResponse>
Information to display the pre generated receipt.
VendorReceiptAsync(AddVendorReceipt, CancellationToken)
Creates a new vendor receipt.
Task<IVendorReceiptResponse> VendorReceiptAsync(AddVendorReceipt vendorReceiptDto, CancellationToken cancellationToken = default)
Parameters
vendorReceiptDto
AddVendorReceiptThe details to add the new vendor receipt.
cancellationToken
CancellationTokenCancellation token.