public void UpdateBankAccountOwnershipInfo() { var primaryOwner = new BankAccountOwnershipData() { FirstName = "Style", LastName = "Stallone", OwnerAddress = new Address() { StreetAddress1 = "3400 N Ashton Blvd", StreetAddress2 = "3401 M Ashton Clad", StreetAddress3 = "3402 L Ashton Blvd", City = "Orlando", State = "FL", PostalCode = "X0A 0H0", Country = "CAN" }, PhoneNumber = "123456789" }; var secondaryOwner = new BankAccountOwnershipData() { FirstName = "Thomas", LastName = "Hanks", OwnerAddress = new Address() { StreetAddress1 = "1970 Diamond Blvd", StreetAddress2 = "1971 Diamond Blvd", StreetAddress3 = "1972 Diamond Blvd", City = "Orlando", State = "FL", PostalCode = "X0A 0H0", Country = "CAN" }, PhoneNumber = "123456789" }; var response = _service.UpdateBankAccountOwnershipInfo() .WithAccountNumber("718134204") .WithPrimaryBankAccountOwner(primaryOwner) .WithSecondaryBankAccountOwner(secondaryOwner) .Execute(); Assert.IsNotNull(response); Assert.AreEqual("00", response.ResponseCode); }
public PayFacBuilder WithSecondaryBankAccountOwner(BankAccountOwnershipData secondaryBankAccountOwner) { SecondaryBankAccountOwner = secondaryBankAccountOwner; return(this); }
public PayFacBuilder WithPrimaryBankAccountOwner(BankAccountOwnershipData primaryBankAccountOwner) { PrimaryBankAccountOwner = primaryBankAccountOwner; return(this); }