public RefundRequest(int amountCents, string posRefId, bool suppressMerchantPassword) { AmountCents = amountCents; PosRefId = posRefId; SuppressMerchantPassword = suppressMerchantPassword; Id = RequestIdHelper.Id("refund"); }
public Message ToMessage() { var data = new JObject( new JProperty("pos_ref_id", PosRefId) ); return(new Message(RequestIdHelper.Id("sigacc"), Events.SignatureAccepted, data, true)); }
public Message ToMessage() { var data = new JObject( new JProperty("pos_ref_id", PosRefId) ); return(new Message(RequestIdHelper.Id("prav"), PreauthEvents.AccountVerifyRequest, data, true)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
public Message ToMessage() { var data = new JObject(); return(new Message(RequestIdHelper.Id("trmnl"), Events.TerminalStatusRequest, data, true)); }
public void PushPayAtTableConfig() { _spi._send(Config.ToMessage(RequestIdHelper.Id("patconf"))); }
public Message ToMessage() { var data = new JObject(new JProperty("padding", true)); return(new Message(RequestIdHelper.Id("pr"), Events.PairRequest, data, false)); }
public RefundRequest(int amountCents, string posRefId) { AmountCents = amountCents; PosRefId = posRefId; Id = RequestIdHelper.Id("refund"); }
public Message ToMessage() { return(new Message(RequestIdHelper.Id("glt"), Events.GetLastTransactionRequest, null, true)); }
public Message ToMessage() { return(new Message(RequestIdHelper.Id("ctx"), Events.CancelTransactionRequest, null, true)); }
public Message ToMessage() { var data = new JObject(); return(new Message(RequestIdHelper.Id("trmnlcnfg"), Events.TerminalConfigurationRequest, data, true)); }
public string Get_Id(string prefix) { return(RequestIdHelper.Id(prefix)); }
public Message ToMessage() { return(new Message(RequestIdHelper.Id("drpkys"), Events.DropKeysAdvice, null, true)); }