|
@@ -509,10 +509,10 @@ namespace MySystem
|
|
// string AgencyId = "3013890202";
|
|
// string AgencyId = "3013890202";
|
|
|
|
|
|
// 修改费率接口
|
|
// 修改费率接口
|
|
- public string ModifyFee(string PosSn, decimal Fee)
|
|
|
|
|
|
+ public string ModifyFee(string PosSn, decimal Rate, string Fee = "0")
|
|
{
|
|
{
|
|
string url = KdbApiUrl + "/pos/rate/modify/single/remote";
|
|
string url = KdbApiUrl + "/pos/rate/modify/single/remote";
|
|
- string content = "{\"posSn\":\"" + PosSn + "\",\"type\":\"贷记卡刷卡\",\"rate\":\"" + Fee + "\",\"d0Fee\":\"0\"}";
|
|
|
|
|
|
+ string content = "{\"posSn\":\"" + PosSn + "\",\"type\":\"贷记卡刷卡\",\"rate\":\"" + Rate + "\",\"d0Fee\":\"0\"}";
|
|
return PostKDB(url, content);
|
|
return PostKDB(url, content);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -854,7 +854,7 @@ namespace MySystem
|
|
}
|
|
}
|
|
|
|
|
|
#endregion
|
|
#endregion
|
|
-
|
|
|
|
|
|
+
|
|
#region 盛付通
|
|
#region 盛付通
|
|
string OrgId = "38844193";
|
|
string OrgId = "38844193";
|
|
// 生产环境
|
|
// 生产环境
|
|
@@ -878,7 +878,7 @@ namespace MySystem
|
|
}
|
|
}
|
|
|
|
|
|
//设置机具押金
|
|
//设置机具押金
|
|
- public string SetFeeForSft(string merchantId, string fee)
|
|
|
|
|
|
+ public string SetFeeForSft(string merchantId, string Rate, string fee = "0")
|
|
{
|
|
{
|
|
Dictionary<string, object> req = new Dictionary<string, object>();
|
|
Dictionary<string, object> req = new Dictionary<string, object>();
|
|
req.Add("orgPromoterId", OrgId);
|
|
req.Add("orgPromoterId", OrgId);
|
|
@@ -889,9 +889,17 @@ namespace MySystem
|
|
List<Dictionary<string, object>> feeList = new List<Dictionary<string, object>>();
|
|
List<Dictionary<string, object>> feeList = new List<Dictionary<string, object>>();
|
|
Dictionary<string, object> feeItem = new Dictionary<string, object>();
|
|
Dictionary<string, object> feeItem = new Dictionary<string, object>();
|
|
feeItem.Add("feeType", "CC");
|
|
feeItem.Add("feeType", "CC");
|
|
- feeItem.Add("feeRate", fee);
|
|
|
|
- feeItem.Add("feeDisRate", fee);
|
|
|
|
|
|
+ feeItem.Add("feeRate", Rate);
|
|
|
|
+ feeItem.Add("feeDisRate", Rate);
|
|
feeList.Add(feeItem);
|
|
feeList.Add(feeItem);
|
|
|
|
+ if(fee != "0")
|
|
|
|
+ {
|
|
|
|
+ feeItem = new Dictionary<string, object>();
|
|
|
|
+ feeItem.Add("feeType", "T0_CC");
|
|
|
|
+ feeItem.Add("feeRate", fee);
|
|
|
|
+ feeItem.Add("feeDisRate", fee);
|
|
|
|
+ feeList.Add(feeItem);
|
|
|
|
+ }
|
|
item.Add("feeList", feeList);
|
|
item.Add("feeList", feeList);
|
|
merchantFeeList.Add(item);
|
|
merchantFeeList.Add(item);
|
|
req.Add("merchantFeeList", merchantFeeList);
|
|
req.Add("merchantFeeList", merchantFeeList);
|
|
@@ -1096,7 +1104,7 @@ namespace MySystem
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
|
|
- public string LDFeeRate(string MerNo, string Fee, int BrandId)
|
|
|
|
|
|
+ public string LDFeeRate(string MerNo, string Fee, int BrandId, int addRate = 0)
|
|
{
|
|
{
|
|
function.WriteLog(DateTime.Now.ToString(), "设置联动机具费率");
|
|
function.WriteLog(DateTime.Now.ToString(), "设置联动机具费率");
|
|
function.WriteLog(MerNo, "设置联动机具费率");
|
|
function.WriteLog(MerNo, "设置联动机具费率");
|
|
@@ -1108,7 +1116,7 @@ namespace MySystem
|
|
reqdic.Add("agentNumber", AgentNo); // 代理编号
|
|
reqdic.Add("agentNumber", AgentNo); // 代理编号
|
|
reqdic.Add("mercModel", MercModel); // 商户模式
|
|
reqdic.Add("mercModel", MercModel); // 商户模式
|
|
reqdic.Add("rate", Fee); // 费率 如 0.0053
|
|
reqdic.Add("rate", Fee); // 费率 如 0.0053
|
|
- reqdic.Add("addRate", 0); // 附加费 如0
|
|
|
|
|
|
+ reqdic.Add("addRate", addRate); // 附加费 如0
|
|
reqdic.Add("rateType", "M015"); // 秒刷 M015 扫码 S010 特惠 T015
|
|
reqdic.Add("rateType", "M015"); // 秒刷 M015 扫码 S010 特惠 T015
|
|
reqdic.Add("mercId", MerNo); // 商户编号
|
|
reqdic.Add("mercId", MerNo); // 商户编号
|
|
reqdic.Add("cardType", "01"); // 01 贷记卡 02 扫码
|
|
reqdic.Add("cardType", "01"); // 01 贷记卡 02 扫码
|
|
@@ -1126,7 +1134,6 @@ namespace MySystem
|
|
}
|
|
}
|
|
|
|
|
|
#endregion
|
|
#endregion
|
|
-
|
|
|
|
|
|
|
|
#region 盒易付
|
|
#region 盒易付
|
|
|
|
|