BalancedSharp.Marketplace.UnderwriteMerchant C# (CSharp) Method

UnderwriteMerchant() public method

public UnderwriteMerchant ( Business business ) : Status
business Business
return Status
        public Status<Account> UnderwriteMerchant(Business business)
        {
            if (string.IsNullOrWhiteSpace(business.Name))
                throw new ArgumentNullException("Business.Name");
            if (string.IsNullOrWhiteSpace(business.PhoneNumber))
                throw new ArgumentNullException("Business.PhoneNumber");
            if (string.IsNullOrWhiteSpace(business.PostalCode))
                throw new ArgumentNullException("Business.PostalCode");
            if (string.IsNullOrWhiteSpace(business.StreetAddress))
                throw new ArgumentNullException("Business.StreetAddress");
            if (string.IsNullOrWhiteSpace(business.Person.Name))
                throw new ArgumentNullException("business.Person.Name");
            if (string.IsNullOrWhiteSpace(business.Person.DateOfBirth))
                throw new ArgumentNullException("business.Person.DateOfBirth");
            if (string.IsNullOrWhiteSpace(business.Person.PhoneNumber))
                throw new ArgumentNullException("business.Person.PhoneNumber");
            if (string.IsNullOrWhiteSpace(business.Person.StreetAddress))
                throw new ArgumentNullException("business.Person.StreetAddress");
            if (string.IsNullOrWhiteSpace(business.Person.PostalCode))
                throw new ArgumentNullException("business.Person.PostalCode");
            return this.Service.Account.UnderwriteAsBusiness(AccountsUri, business.Name, business.PhoneNumber, business.Email,
                business.Meta, business.TaxId, business.DateOfBirth, business.City, business.PostalCode, business.StreetAddress,
                business.CountryCode, business.Person.Name, business.Person.DateOfBirth, business.Person.City, business.Person.PostalCode,
                business.Person.StreetAddress, business.Person.CountryCode, business.Person.TaxId);
        }