Example #1
0
 public Business(string name, string phoneNumber, string postalCode, string streetAddress, string taxId, Person person)
 {
     this.Name = name;
     this.PhoneNumber = phoneNumber;
     this.PostalCode = postalCode;
     this.StreetAddress = streetAddress;
     this.TaxId = taxId;
     this.Person = person;
 }
Example #2
0
 public Status<Account> UnderwriteIndividual(Person person)
 {
     if (string.IsNullOrWhiteSpace(person.Name))
         throw new ArgumentNullException("Person.Name");
     if (string.IsNullOrWhiteSpace(person.DateOfBirth))
         throw new ArgumentNullException("Person.DateOfBirth");
     if (string.IsNullOrWhiteSpace(person.PhoneNumber))
         throw new ArgumentNullException("Person.PhoneNumber");
     if (string.IsNullOrWhiteSpace(person.StreetAddress))
         throw new ArgumentNullException("Person.StreetAddress");
     if (string.IsNullOrWhiteSpace(person.PostalCode))
         throw new ArgumentNullException("Person.PostalCode");
     return this.Service.Account.UnderwriteAsIndividual(AccountsUri, person.PhoneNumber,
         person.Email, person.Meta, person.TaxId, person.DateOfBirth, person.Name,
         person.City, person.PostalCode, person.StreetAddress, person.CountryCode);
 }