示例#1
0
        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()));
        }
示例#2
0
 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);
 }
示例#3
0
 public override Task <Empty> RegisterForCustomerProvidedData(RegisterForCustomerProvidedDataRequest request, ServerCallContext context)
 {
     Program.WriteLine("RegisterForCustomerProvidedData");
     Connector.RegisterForCustomerProvidedData(Translate.From(request));
     return(Task.FromResult(new Empty()));
 }
示例#4
0
 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);
 }
示例#5
0
 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);
 }
示例#6
0
 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);
 }
示例#7
0
 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);
 }
示例#8
0
 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);
 }
示例#9
0
 public override Task <Empty> StartCustomActivity(StartCustomActivityRequest request, ServerCallContext context)
 {
     Program.WriteLine("StartCustomActivity");
     Connector.StartCustomActivity(Translate.From(request));
     return(Task.FromResult(new Empty()));
 }
示例#10
0
 public override Task <Empty> ShowDisplayOrder(ShowDisplayOrderRequest request, ServerCallContext context)
 {
     Program.WriteLine("ShowDisplayOrder");
     Connector.ShowDisplayOrder(Translate.From(request.DisplayOrder));
     return(Task.FromResult(new Empty()));
 }
示例#11
0
 public override Task <Empty> SetCustomerInfo(SetCustomerInfoRequest request, ServerCallContext context)
 {
     Program.WriteLine("SetCustomerInfo");
     Connector.SetCustomerInfo(Translate.From(request));
     return(Task.FromResult(new Empty()));
 }
示例#12
0
 public override Task <Empty> Sale(SaleRequest request, ServerCallContext context)
 {
     Program.WriteLine("Sale");
     Connector.Sale(Translate.From(request));
     return(Task.FromResult(new Empty()));
 }
示例#13
0
 public override Task <Empty> RetrievePrintJobStatus(RetrievePrintJobStatusRequest request, ServerCallContext context)
 {
     Program.WriteLine("RetrievePrintJobStatus");
     Connector.RetrievePrintJobStatus(Translate.From(request));
     return(Task.FromResult(new Empty()));
 }
示例#14
0
 public override Task <Empty> RejectSignature(RejectSignatureRequest request, ServerCallContext context)
 {
     Program.WriteLine("RejectSignature");
     Connector.RejectSignature(Translate.From(request));
     return(Task.FromResult(new Empty()));
 }
示例#15
0
 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);
 }
示例#16
0
 public override Task <Empty> TipAdjustAuth(TipAdjustAuthRequest request, ServerCallContext context)
 {
     Program.WriteLine("TipAdjustAuth");
     Connector.TipAdjustAuth(Translate.From(request));
     return(Task.FromResult(new Empty()));
 }
示例#17
0
 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);
 }
示例#18
0
 public override Task <Empty> VaultCard(VaultCardRequest request, ServerCallContext context)
 {
     Program.WriteLine("VaultCard");
     Connector.VaultCard(Translate.From(request));
     return(Task.FromResult(new Empty()));
 }
示例#19
0
 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);
 }
示例#20
0
 public override Task <Empty> VoidPaymentRefund(VoidPaymentRefundRequest request, ServerCallContext context)
 {
     Program.WriteLine("VoidPaymentRefund");
     Connector.VoidPaymentRefund(Translate.From(request));
     return(Task.FromResult(new Empty()));
 }
示例#21
0
 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);
 }
示例#22
0
 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);
 }
示例#23
0
 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);
 }
示例#24
0
 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);
 }
示例#25
0
 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);
 }
示例#26
0
 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);
 }
示例#27
0
 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);
 }
示例#28
0
 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);
 }
示例#29
0
 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);
 }
示例#30
0
 public override Task <Empty> Print(PrintRequest request, ServerCallContext context)
 {
     Console.WriteLine("Print");
     Connector.Print(Translate.From(request));
     return(Task.FromResult(new Empty()));
 }