コード例 #1
0
 public RefundRequest(int amountCents, string posRefId, bool suppressMerchantPassword)
 {
     AmountCents = amountCents;
     PosRefId    = posRefId;
     SuppressMerchantPassword = suppressMerchantPassword;
     Id = RequestIdHelper.Id("refund");
 }
コード例 #2
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("pos_ref_id", PosRefId)
                );

            return(new Message(RequestIdHelper.Id("sigacc"), Events.SignatureAccepted, data, true));
        }
コード例 #3
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("pos_ref_id", PosRefId)
                );

            return(new Message(RequestIdHelper.Id("prav"), PreauthEvents.AccountVerifyRequest, data, true));
        }
コード例 #4
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("pos_ref_id", PosRefId),
                new  JProperty("auth_code", AuthCode)
                );

            return(new Message(RequestIdHelper.Id("authad"), Events.AuthCodeAdvice, data, true));
        }
コード例 #5
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("pos_ref_id", PosRefId),
                new JProperty("preauth_amount", PreauthAmount)
                );

            return(new Message(RequestIdHelper.Id("prac"), PreauthEvents.PreauthOpenRequest, data, true));
        }
コード例 #6
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("key", _key),
                new JProperty("payload", _payload)
                );

            return(new Message(RequestIdHelper.Id("print"), Events.PrintingRequest, data, true));
        }
コード例 #7
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("pos_ref_id", PosRefId),
                new JProperty("preauth_id", PreauthId)
                );

            return(new Message(RequestIdHelper.Id("prac"), PreauthEvents.PreauthCancellationRequest, data, true));
        }
コード例 #8
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("refund_amount", AmountCents),
                new JProperty("pos_ref_id", PosRefId)
                );

            Config.addReceiptConfig(data);
            return(new Message(RequestIdHelper.Id("refund"), Events.RefundRequest, data, true));
        }
コード例 #9
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("pos_ref_id", PosRefId),
                new JProperty("cash_amount", CashoutAmount)
                );

            Config.addReceiptConfig(data);
            return(new Message(RequestIdHelper.Id("cshout"), Events.CashoutOnlyRequest, data, true));
        }
コード例 #10
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("pos_ref_id", PosRefId),
                new JProperty("purchase_amount", PurchaseAmount)
                );

            Config.addReceiptConfig(data);
            return(new Message(RequestIdHelper.Id("moto"), Events.MotoPurchaseRequest, data, true));
        }
コード例 #11
0
        public Message toMessage()
        {
            var data = new JObject(
                new JProperty("pos_version", _version),
                new JProperty("pos_vendor_id", _vendorId),
                new JProperty("library_language", _libraryLanguage),
                new JProperty("library_version", _libraryVersion),
                new JProperty("other_info", _otherInfo.ToString())
                );

            return(new Message(RequestIdHelper.Id("prav"), Events.SetPosInfoRequest, data, true));
        }
コード例 #12
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("pos_ref_id", PosRefId),
                new JProperty("preauth_amount", PreauthAmount)
                );

            Config.EnabledPrintMerchantCopy             = true;
            Config.EnabledPromptForCustomerCopyOnEftpos = true;
            Config.EnabledSignatureFlowOnEftpos         = true;
            Config.AddReceiptConfig(data);
            Options.AddOptions(data);
            return(new Message(RequestIdHelper.Id("prac"), PreauthEvents.PreauthOpenRequest, data, true));
        }
コード例 #13
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("pos_ref_id", PosRefId),
                new JProperty("cash_amount", CashoutAmount),
                new JProperty("surcharge_amount", SurchargeAmount)
                );

            Config.EnabledPrintMerchantCopy             = true;
            Config.EnabledPromptForCustomerCopyOnEftpos = true;
            Config.EnabledSignatureFlowOnEftpos         = true;
            Config.AddReceiptConfig(data);
            Options.AddOptions(data);
            return(new Message(RequestIdHelper.Id("cshout"), Events.CashoutOnlyRequest, data, true));
        }
コード例 #14
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("refund_amount", AmountCents),
                new JProperty("pos_ref_id", PosRefId),
                new JProperty("suppress_merchant_password", SuppressMerchantPassword)
                );

            Config.EnabledPrintMerchantCopy             = true;
            Config.EnabledPromptForCustomerCopyOnEftpos = true;
            Config.EnabledSignatureFlowOnEftpos         = true;
            Config.AddReceiptConfig(data);
            Options.AddOptions(data);
            return(new Message(RequestIdHelper.Id("refund"), Events.RefundRequest, data, true));
        }
コード例 #15
0
        public Message ToMessage()
        {
            var data = new JObject(
                new JProperty("pos_ref_id", PosRefId),

                new JProperty("purchase_amount", PurchaseAmount),
                new JProperty("tip_amount", TipAmount),
                new JProperty("cash_amount", CashoutAmount),
                new JProperty("prompt_for_cashout", PromptForCashout)

                );

            Config.addReceiptConfig(data);
            return(new Message(RequestIdHelper.Id("prchs"), Events.PurchaseRequest, data, true));
        }
コード例 #16
0
        public Message ToMessage()
        {
            var data = new JObject();

            return(new Message(RequestIdHelper.Id("trmnl"), Events.TerminalStatusRequest, data, true));
        }
コード例 #17
0
 public void PushPayAtTableConfig()
 {
     _spi._send(Config.ToMessage(RequestIdHelper.Id("patconf")));
 }
コード例 #18
0
        public Message ToMessage()
        {
            var data = new JObject(new JProperty("padding", true));

            return(new Message(RequestIdHelper.Id("pr"), Events.PairRequest, data, false));
        }
コード例 #19
0
 public RefundRequest(int amountCents, string posRefId)
 {
     AmountCents = amountCents;
     PosRefId    = posRefId;
     Id          = RequestIdHelper.Id("refund");
 }
コード例 #20
0
 public Message ToMessage()
 {
     return(new Message(RequestIdHelper.Id("glt"), Events.GetLastTransactionRequest, null, true));
 }
コード例 #21
0
 public Message ToMessage()
 {
     return(new Message(RequestIdHelper.Id("ctx"), Events.CancelTransactionRequest, null, true));
 }
コード例 #22
0
        public Message ToMessage()
        {
            var data = new JObject();

            return(new Message(RequestIdHelper.Id("trmnlcnfg"), Events.TerminalConfigurationRequest, data, true));
        }
コード例 #23
0
 public string Get_Id(string prefix)
 {
     return(RequestIdHelper.Id(prefix));
 }
コード例 #24
0
 public Message ToMessage()
 {
     return(new Message(RequestIdHelper.Id("drpkys"), Events.DropKeysAdvice, null, true));
 }