Changing Customer TIN from the Plugin
Tags:
v7
The API has added the ability to change the customer TIN through the CustomerTin field in the BeforeDoCheckActionResult class, which is returned by the BeforeDoCheckAction method of the IChequeTaskProcessor interface.
Usage
public class CustomChequeTaskProcessor : IChequeTaskProcessor
{
public BeforeDoCheckActionResult BeforeDoCheckAction(ChequeTask chequeTask, IOrder order,
IOperationService operations)
{
return new BeforeDoCheckActionResult
{
CustomerTin = "1234567890", // Setting the customer TIN
CashierName = "John Doe",
Sales = chequeTask.Sales
};
}
}