Interface IAnybillClientBillModule
Module of the IAnybillClient for working with bills.
Namespace: anybill.POS.Client.Modules
Assembly: anybill.POS.Client.Abstractions.dll
Syntax
public interface IAnybillClientBillModule
Methods
CreateAsync(AddBill, AddBillOptions, CancellationToken)
Creates a new bill.
Declaration
Task<IBillResponse> CreateAsync(AddBill billDto, AddBillOptions addBillOptions, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
AddBill | billDto | The details to add the new bill. |
AddBillOptions | addBillOptions | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IBillResponse> | A IBillResponse sub-type. |
CreateAsync(String, String, CancellationToken)
Creates a new bill from a json.
Declaration
Task<IBillResponse> CreateAsync(string billDtoJson, string addBillOptionsJson, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | billDtoJson | Details to add the new bill as json. |
System.String | addBillOptionsJson | Options for the bill like DisplayTarget as json. |
System.Threading.CancellationToken | cancellationToken | Cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IBillResponse> |
RegisterIdAsync(RegisterBillId, CancellationToken)
Creates a pre generated bill.
Declaration
Task<IRegisterBillIdResponse> RegisterIdAsync(RegisterBillId registerBillId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
RegisterBillId | registerBillId | The data to pre register a bill. |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IRegisterBillIdResponse> | Information to display the pre generated bill. |