public void CreateAccount() { var bankAccountInfo = TestAccountData.GetBankAccountData(); var userBusinessInfo = TestAccountData.GetBusinessData(); var accountPersonalInfo = TestAccountData.GetUserPersonalData(); var threatRiskData = TestAccountData.GetThreatRiskData(); var significantOwnerData = TestAccountData.GetSignificantOwnerData(); var ownersInfo = TestAccountData.GetBeneficialOwnerData(); var creditCardInfo = TestAccountData.GetCreditCardData(); var achInfo = TestAccountData.GetACHData(); var mailingAddressInfo = TestAccountData.GetMailingAddress(); var secondaryBankInformation = TestAccountData.GetSecondaryBankAccountData(); var deviceData = TestAccountData.GetDeviceData(1, false); var response = _service.CreateAccount() .WithBankAccountData(bankAccountInfo) .WithBusinessData(userBusinessInfo) .WithUserPersonalData(accountPersonalInfo) .WithThreatRiskData(threatRiskData) .WithSignificantOwnerData(significantOwnerData) .WithBeneficialOwnerData(ownersInfo) .WithCreditCardData(creditCardInfo) .WithACHData(achInfo) .WithMailingAddress(mailingAddressInfo) .WithSecondaryBankAccountData(secondaryBankInformation) .WithDeviceData(deviceData) .WithTimeZone("ET") .Execute(); Assert.IsNotNull(response); Assert.AreEqual("00", response.ResponseCode); Assert.IsNotNull(response.PayFacData.AccountNumber); Assert.IsNotNull(response.PayFacData.Password); Assert.IsNotNull(response.PayFacData.SourceEmail); }
//public Dictionary<string, TestAccountData> AccountData = new Dictionary<string, TestAccountData>(); //BadGuy bg1 = new BadGuy("Harvey", 50); //BadGuy bg2 = new BadGuy("Magneto", 100); ////You can place variables into the Dictionary with the ////Add() method. //badguys.Add("gangster", bg1); // badguys.Add("mutant", bg2); // BadGuy magneto = badguys["mutant"]; //BadGuy temp = null; // //This is a safer, but slow, method of accessing // //values in a dictionary. // if(badguys.TryGetValue("birds", out temp)) // { // //success! // } // else // { // //failure! // } //} private void Start() { Dictionary <string, TestAccountData> AccountData = new Dictionary <string, TestAccountData>(); TestAccountData AC_1 = new TestAccountData("Anduin Lothar", 1, 0); TestAccountData AC_2 = new TestAccountData("Luna Celes", 3, 1); TestAccountData AC_3 = new TestAccountData("Chun Han", 5, 0); TestAccountData AC_4 = new TestAccountData("Micheal", 10, 2); TestAccountData AC_5 = new TestAccountData("David", 4, 5); AccountData.Add("Archer", AC_1); AccountData.Add("Boxer", AC_2); AccountData.Add("Swordsman", AC_3); AccountData.Add("Wizard", AC_4); AccountData.Add("Archer1", AC_5); //TestAccountData AccountDetails_Temp = AccountData["Archer"]; TestAccountData temp = null; //Debug.Log(AccountDetails_Temp.Name); foreach (var item in AccountData) { if (item.Key == "Archer") { Debug.Log(item + " " + item.Value.Name + " " + item.Value.Level + " " + item.Value.Power); } } }
public void RenewAccountByBankAccount() { var response = _service.RenewAccount() .WithAccountNumber("718135662") .WithRenewalAccountData(TestAccountData.GetRenewAccountDetails(false)) .Execute(); Assert.IsNotNull(response); Assert.AreEqual("00", response.ResponseCode); }
public void EditAccountPermissions() { var response = _service.EditAccount() .WithAccountNumber("718135662") .WithAccountPermissions(TestAccountData.GetAccountPermissions()) .Execute(); Assert.IsNotNull(response); Assert.AreEqual("00", response.ResponseCode); }
public void UpdateAccountBeneficialOwnership() { var beneficialOwners = TestAccountData.GetBeneficialOwnerData(); var response = _service.UpdateBeneficialOwnershipInfo() .WithAccountNumber("718134589") // This account must have been created with a beneficial owner count specified, but no owner details passed .WithBeneficialOwnerData(beneficialOwners) .Execute(); Assert.IsNotNull(response); Assert.AreEqual("00", response.ResponseCode); Assert.IsNotNull(response.PayFacData.BeneficialOwnerDataResults); }
public void UploadDocumentByDocumentString() { var docUploadData = new DocumentUploadData() { DocumentName = "TestDoc_12345", DocCategory = "Verification", Document = TestAccountData.GetDocumentBase64String(@"ProPay\TestData\TestDoc.docx"), DocType = "docx" }; var response = _service.UploadDocument() .WithAccountNumber("718134204") .WithDocumentUploadData(docUploadData) .Execute(); Assert.IsNotNull(response); Assert.AreEqual("00", response.ResponseCode); }
public void UploadDocumentChargebackByDocumentString() { var docUploadData = new DocumentUploadData() { DocumentName = "TestDocCB_12345", TransactionReference = "2", Document = TestAccountData.GetDocumentBase64String(@"ProPay\TestData\TestDocChargeback.docx"), DocType = "docx" }; var response = _service.UploadDocumentChargeback() .WithAccountNumber("718134204") .WithDocumentUploadData(docUploadData) .Execute(); Assert.IsNotNull(response); Assert.AreEqual("00", response.ResponseCode); }