Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 542 Bytes

custom_bills.md

File metadata and controls

17 lines (15 loc) · 542 Bytes

Custom bills handler - ICustomBillsHandler

Custom bills handler could be used for voucher purchase or other custom operations Example implementation

public class CustomBillsHandler implements ICustomBillsHandler {

	@Override
	public CustomBillsHandlerResult operation(DriverConfiguration cfg, CustomBillsHandlerRequest request) {
		if (request instanceof VoucherBillClosingRequest) {
			return handleVoucherBillClosingRequest(cfg, request);
		} else {
			throw new IllegalArgumentException("Operation not supported");
		}
	}
}