Model/Trial/TrialSetup.php
public function createAddressBooks($username, $password)
    {
        $addressBooks = [
            ['name' => 'Magento_Customers', 'visibility' => 'Private'],
            ['name' => 'Magento_Subscribers', 'visibility' => 'Private'],
            ['name' => 'Magento_Guests', 'visibility' => 'Private'],
        ];
        $client = false;
        if ($this->helper->isEnabled()) {
            $client = $this->helper->getWebsiteApiClient(0, $username, $password);
        }
        if (!$client) {
            $error = true;
            $this->helper->log('createAddressBooks client is not enabled');
        } else {
            $error = $this->validateAccountAndCreateAddressbooks($client, $addressBooks);
        }

        return $error == true ? false : true;
    }
public function createAddressBooks($username, $password)
    {
        $addressBooks = [
            ['name' => 'Magento_Customers', 'visibility' => 'Private'],
            ['name' => 'Magento_Subscribers', 'visibility' => 'Private'],
            ['name' => 'Magento_Guests', 'visibility' => 'Private'],
        ];
        $client = false;
        if ($this->helper->isEnabled()) {
            $client = $this->helper->getWebsiteApiClient(0, $username, $password);
        }
        if (!$client) {
            $error = true;
            $this->helper->log('createAddressBooks client is not enabled');
        } else {
            $error = $this->validateAccountAndCreateAddressbooks($client, $addressBooks);
        }

        return $error == true ? false : true;
    }
public function createAddressBooks ( $ username , $ password ) { $ addressBooks = [ [ 'name' => 'Magento_Customers' , 'visibility' => 'Private' ] , [ 'name' => 'Magento_Subscribers' , 'visibility' => 'Private' ] , [ 'name' => 'Magento_Guests' , 'visibility' => 'Private' ] , ] ; $ client = false ; if ( $ this -> helper -> isEnabled ( ) ) { $ client = $ this -> helper -> getWebsiteApiClient ( 0 , $ username , $ password ) ; } if ( ! $ client ) { $ error = true ; $ this -> helper -> log ( 'createAddressBooks client is not enabled' ) ; } else { $ error = $ this -> validateAccountAndCreateAddressbooks ( $ client , $ addressBooks ) ; } return $ error == true ? false : true ; }
Create certain address books.

@param string $username
@param string $password

@return bool
Create certain address books .