/// <summary> /// Post /refundNotPaidOutTransfers API call /// </summary> /// <param name="refundNotPaidOutTransfersRequest"></param> /// <returns>RefundNotPaidOutTransfersResponse</returns> /// public RefundNotPaidOutTransfersResponse RefundNotPaidOutTransfers( RefundNotPaidOutTransfersRequest refundNotPaidOutTransfersRequest) { string jsonRequest = Util.JsonOperation.SerializeRequest(refundNotPaidOutTransfersRequest); string jsonResponse = _refundNotPaidOutTransfers.Request(jsonRequest); return(JsonConvert.DeserializeObject <RefundNotPaidOutTransfersResponse>(jsonResponse)); }
public void TestRefundNotPaidOutTransfersSuccess() { var client = CreateMockTestClientNullRequiredFieldsRequest("Mocks/marketpay/fund/refund-not-paid-out-transfers-success.json"); var fund = new Fund(client); var refundNotPaidOutTransfersRequest = new RefundNotPaidOutTransfersRequest(accountCode: "189184578", accountHolderCode: "TestAccountHolder502924"); var refundNotPaidOutTransfersResponse = fund.RefundNotPaidOutTransfers(refundNotPaidOutTransfersRequest); Assert.AreEqual("9915090894215323", refundNotPaidOutTransfersResponse.PspReference); Assert.AreEqual("Failed", refundNotPaidOutTransfersResponse.ResultCode); }