/// <summary> /// Post /deleteBankAccount API call /// </summary> /// <param name="deleteBankAccountRequest"></param> /// <returns>GenericResponse</returns> public GenericResponse DeleteBankAccount(DeleteBankAccountRequest deleteBankAccountRequest) { var jsonRequest = Util.JsonOperation.SerializeRequest(deleteBankAccountRequest); var jsonResponse = _deleteBankAccount.Request(jsonRequest); return(JsonConvert.DeserializeObject <GenericResponse>(jsonResponse)); }
public void TestDeleteBankAccountSuccess() { var client = CreateMockTestClientNullRequiredFieldsRequest("Mocks/marketpay/account/delete-bank-account-success.json"); var account = new Account(client); var deleteAccountSuccessRequest = new DeleteBankAccountRequest(accountHolderCode: "123456", bankAccountUUIDs: new List <string>()); var deleteAccountSuccessResponse = account.DeleteBankAccount(deleteAccountSuccessRequest); Assert.AreEqual(deleteAccountSuccessResponse.PspReference, "9914694372670551"); }