public override Task <Empty> RejectPayment(RejectPaymentRequest request, ServerCallContext context) { Program.WriteLine("RejectPayment"); Connector.RejectPayment(Translate.From(request.Payment), Translate.From(request.Challenge)); return(Task.FromResult(new Empty())); }
public override Task OnSaleResponse(Empty request, IServerStreamWriter <SaleResponse> responseStream, ServerCallContext context) { SaleResponseHandler = new StreamHandler <sdk.SaleResponse, SaleResponse>( responseStream, o => Translate.From(o) ); return(SaleResponseHandler.Promise.Task); }
public override Task <Empty> RegisterForCustomerProvidedData(RegisterForCustomerProvidedDataRequest request, ServerCallContext context) { Program.WriteLine("RegisterForCustomerProvidedData"); Connector.RegisterForCustomerProvidedData(Translate.From(request)); return(Task.FromResult(new Empty())); }
public override Task OnTipAdjustAuthResponse(Empty request, IServerStreamWriter <TipAdjustAuthResponse> responseStream, ServerCallContext context) { TipAdjustAuthResponseHandler = new StreamHandler <sdk.TipAdjustAuthResponse, TipAdjustAuthResponse>(responseStream, o => Translate.From(o)); return(TipAdjustAuthResponseHandler.Promise.Task); }
public override Task OnRetrievePrintersResponse(Empty request, IServerStreamWriter <RetrievePrintersResponse> responseStream, ServerCallContext context) { RetrievePrintersResponseHandler = new StreamHandler <sdk.RetrievePrintersResponse, RetrievePrintersResponse>(responseStream, o => Translate.From(o)); return(RetrievePrintersResponseHandler.Promise.Task); }
public override Task OnPrintJobStatusResponse(Empty request, IServerStreamWriter <PrintJobStatusResponse> responseStream, ServerCallContext context) { PrintJobStatusResponseHandler = new StreamHandler <sdk.PrintJobStatusResponse, PrintJobStatusResponse>(responseStream, o => Translate.From(o)); return(PrintJobStatusResponseHandler.Promise.Task); }
public override Task OnManualRefundResponse(Empty request, IServerStreamWriter <ManualRefundResponse> responseStream, ServerCallContext context) { ManualRefundResponseHandler = new StreamHandler <sdk.ManualRefundResponse, ManualRefundResponse>(responseStream, o => Translate.From(o)); return(ManualRefundResponseHandler.Promise.Task); }
public override Task OnDisplayReceiptOptionsResponse(Empty request, IServerStreamWriter <DisplayReceiptOptionsResponse> responseStream, ServerCallContext context) { DisplayReceiptOptionsResponseHandler = new StreamHandler <sdk.DisplayReceiptOptionsResponse, DisplayReceiptOptionsResponse>(responseStream, o => Translate.From(o)); return(DisplayReceiptOptionsResponseHandler.Promise.Task); }
public override Task <Empty> StartCustomActivity(StartCustomActivityRequest request, ServerCallContext context) { Program.WriteLine("StartCustomActivity"); Connector.StartCustomActivity(Translate.From(request)); return(Task.FromResult(new Empty())); }
public override Task <Empty> ShowDisplayOrder(ShowDisplayOrderRequest request, ServerCallContext context) { Program.WriteLine("ShowDisplayOrder"); Connector.ShowDisplayOrder(Translate.From(request.DisplayOrder)); return(Task.FromResult(new Empty())); }
public override Task <Empty> SetCustomerInfo(SetCustomerInfoRequest request, ServerCallContext context) { Program.WriteLine("SetCustomerInfo"); Connector.SetCustomerInfo(Translate.From(request)); return(Task.FromResult(new Empty())); }
public override Task <Empty> Sale(SaleRequest request, ServerCallContext context) { Program.WriteLine("Sale"); Connector.Sale(Translate.From(request)); return(Task.FromResult(new Empty())); }
public override Task <Empty> RetrievePrintJobStatus(RetrievePrintJobStatusRequest request, ServerCallContext context) { Program.WriteLine("RetrievePrintJobStatus"); Connector.RetrievePrintJobStatus(Translate.From(request)); return(Task.FromResult(new Empty())); }
public override Task <Empty> RejectSignature(RejectSignatureRequest request, ServerCallContext context) { Program.WriteLine("RejectSignature"); Connector.RejectSignature(Translate.From(request)); return(Task.FromResult(new Empty())); }
public override Task OnDeviceError(Empty request, IServerStreamWriter <DeviceErrorEvent> responseStream, ServerCallContext context) { DeviceErrorHandler = new StreamHandler <sdk.CloverDeviceErrorEvent, DeviceErrorEvent>(responseStream, o => Translate.From(o)); return(DeviceErrorHandler.Promise.Task); }
public override Task <Empty> TipAdjustAuth(TipAdjustAuthRequest request, ServerCallContext context) { Program.WriteLine("TipAdjustAuth"); Connector.TipAdjustAuth(Translate.From(request)); return(Task.FromResult(new Empty())); }
public override Task OnDeviceReady(Empty request, IServerStreamWriter <MerchantInfo> responseStream, ServerCallContext context) { DeviceReadyHandler = new StreamHandler <sdk.MerchantInfo, MerchantInfo>(responseStream, o => Translate.From(o)); return(DeviceReadyHandler.Promise.Task); }
public override Task <Empty> VaultCard(VaultCardRequest request, ServerCallContext context) { Program.WriteLine("VaultCard"); Connector.VaultCard(Translate.From(request)); return(Task.FromResult(new Empty())); }
public override Task OnInvalidStateTransitionResponse(Empty request, IServerStreamWriter <InvalidStateTransitionNotification> responseStream, ServerCallContext context) { InvalidStateTransitionResponseHandler = new StreamHandler <sdk.InvalidStateTransitionNotification, InvalidStateTransitionNotification>(responseStream, o => Translate.From(o)); return(InvalidStateTransitionResponseHandler.Promise.Task); }
public override Task <Empty> VoidPaymentRefund(VoidPaymentRefundRequest request, ServerCallContext context) { Program.WriteLine("VoidPaymentRefund"); Connector.VoidPaymentRefund(Translate.From(request)); return(Task.FromResult(new Empty())); }
public override Task OnMessageFromActivity(Empty request, IServerStreamWriter <MessageFromActivity> responseStream, ServerCallContext context) { MessageFromActivityHandler = new StreamHandler <sdk.MessageFromActivity, MessageFromActivity>(responseStream, o => Translate.From(o)); return(MessageFromActivityHandler.Promise.Task); }
public override Task OnCapturePreAuthResponse(Empty request, IServerStreamWriter <CapturePreAuthResponse> responseStream, ServerCallContext context) { CapturePreAuthResponseHandler = new StreamHandler <sdk.CapturePreAuthResponse, CapturePreAuthResponse>(responseStream, o => Translate.From(o)); return(CapturePreAuthResponseHandler.Promise.Task); }
public override Task OnPrintRefundPaymentReceipt(Empty request, IServerStreamWriter <PrintRefundPaymentReceiptMessage> responseStream, ServerCallContext context) { PrintRefundPaymentReceiptHandler = new StreamHandler <sdk.PrintRefundPaymentReceiptMessage, PrintRefundPaymentReceiptMessage>(responseStream, o => Translate.From(o)); return(PrintRefundPaymentReceiptHandler.Promise.Task); }
public override Task OnConfirmPaymentRequest(Empty request, IServerStreamWriter <ConfirmPaymentRequest> responseStream, ServerCallContext context) { ConfirmPaymentRequestHandler = new StreamHandler <sdk.ConfirmPaymentRequest, ConfirmPaymentRequest>(responseStream, o => Translate.From(o)); return(ConfirmPaymentRequestHandler.Promise.Task); }
public override Task OnVerifySignatureRequest(Empty request, IServerStreamWriter <VerifySignatureRequest> responseStream, ServerCallContext context) { VerifySignatureRequestHandler = new StreamHandler <sdk.VerifySignatureRequest, VerifySignatureRequest>(responseStream, o => Translate.From(o)); return(VerifySignatureRequestHandler.Promise.Task); }
public override Task OnCustomActivityResponse(Empty request, IServerStreamWriter <CustomActivityResponse> responseStream, ServerCallContext context) { CustomActivityResponseHandler = new StreamHandler <sdk.CustomActivityResponse, CustomActivityResponse>(responseStream, o => Translate.From(o)); return(CustomActivityResponseHandler.Promise.Task); }
public override Task OnTipAdded(Empty request, IServerStreamWriter <TipAddedMessage> responseStream, ServerCallContext context) { TipAddedHandler = new StreamHandler <transport.TipAddedMessage, TipAddedMessage>(responseStream, o => Translate.From(o)); return(TipAddedHandler.Promise.Task); }
public override Task OnCustomerProvidedData(Empty request, IServerStreamWriter <CustomerProvidedDataEvent> responseStream, ServerCallContext context) { CustomerProvidedDataHandler = new StreamHandler <sdk.CustomerProvidedDataEvent, CustomerProvidedDataEvent>(responseStream, o => Translate.From(o)); return(CustomerProvidedDataHandler.Promise.Task); }
public override Task OnVoidPaymentResponse(Empty request, IServerStreamWriter <VoidPaymentResponse> responseStream, ServerCallContext context) { VoidPaymentResponseHandler = new StreamHandler <sdk.VoidPaymentResponse, VoidPaymentResponse>(responseStream, o => Translate.From(o)); return(VoidPaymentResponseHandler.Promise.Task); }
public override Task <Empty> Print(PrintRequest request, ServerCallContext context) { Console.WriteLine("Print"); Connector.Print(Translate.From(request)); return(Task.FromResult(new Empty())); }