public void TestQuerySettlementNote() { AliBulkSettlementImplHandle handle = new AliBulkSettlementImplHandle(); string data = "{ \"AppKey\":\"334362\",\"AppSecret\":\"w5v9Xu2sK2y5\",\"TokenKey\":\"9ee0ac93-0aae-45f5-a671-ca7564280a3a\",\"Id\":36521}"; handle.analyseBussdata("QuerySettlementNote", data); string ret = handle.Post(); JObject obj = JsonConvert.DeserializeObject <JObject>(ret); Assert.IsTrue(obj.Value <bool>("success"), obj.Value <string>("message")); }
public void TestCreateSettlementNote() { AliBulkSettlementImplHandle handle = new AliBulkSettlementImplHandle(); string data = "{ \"AppKey\":\"334362\",\"AppSecret\":\"w5v9Xu2sK2y5\",\"TokenKey\":\"9ee0ac93-0aae-45f5-a671-ca7564280a3a\",\"LoginId\":\"dongyl3333\",\"Memo\":\"请及时开票2\",\"Details\":[{\"RcvEntryId\":346844,\"TaxAmt\":5100,\"Prc\":1700},{\"RcvEntryId\":346845,\"TaxAmt\":625,\"Prc\":125}]}"; handle.analyseBussdata("CreateSettlementNote", data); string ret = handle.Post(); JObject obj = JsonConvert.DeserializeObject <JObject>(ret); Assert.IsTrue(obj.Value <bool>("success"), obj.Value <string>("message")); }
public void TestCreatePayNote() { AliBulkSettlementImplHandle handle = new AliBulkSettlementImplHandle(); string data = "{ \"AppKey\":\"334362\",\"AppSecret\":\"w5v9Xu2sK2y5\",\"TokenKey\":\"9ee0ac93-0aae-45f5-a671-ca7564280a3a\",\"Amt\":5725,\"LoginId\":\"dongyl3333\",\"PaymentMode\":\"transbybank\",\"RequestNo\":\"zh000001\",\"Details\":[{\"Amt\":5725,\"SettleId\":36521}]}"; handle.analyseBussdata("CreatePayNote", data); string ret = handle.Post(); JObject obj = JsonConvert.DeserializeObject <JObject>(ret); Assert.IsTrue(obj.Value <bool>("success"), obj.Value <string>("message")); }