Model/Trial/TrialSetup.php
public function mapAddressBook($name, $id)
    {
        $addressBookMap = [
            'Magento_Customers' => Config::XML_PATH_CONNECTOR_CUSTOMERS_ADDRESS_BOOK_ID,
            'Magento_Subscribers' => Config::XML_PATH_CONNECTOR_SUBSCRIBERS_ADDRESS_BOOK_ID,
            'Magento_Guests' => Config::XML_PATH_CONNECTOR_GUEST_ADDRESS_BOOK_ID,
        ];

        $this->helper->saveConfigData($addressBookMap[$name], $id, 'default', 0);
        $this->helper->log('successfully connected address book : ' . $name);
    }
public function mapAddressBook($name, $id)
    {
        $addressBookMap = [
            'Magento_Customers' => Config::XML_PATH_CONNECTOR_CUSTOMERS_ADDRESS_BOOK_ID,
            'Magento_Subscribers' => Config::XML_PATH_CONNECTOR_SUBSCRIBERS_ADDRESS_BOOK_ID,
            'Magento_Guests' => Config::XML_PATH_CONNECTOR_GUEST_ADDRESS_BOOK_ID,
        ];

        $this->helper->saveConfigData($addressBookMap[$name], $id, 'default', 0);
        $this->helper->log('successfully connected address book : ' . $name);
    }
public function mapAddressBook ( $ name , $ id ) { $ addressBookMap = [ 'Magento_Customers' => Config :: XML_PATH_CONNECTOR_CUSTOMERS_ADDRESS_BOOK_ID , 'Magento_Subscribers' => Config :: XML_PATH_CONNECTOR_SUBSCRIBERS_ADDRESS_BOOK_ID , 'Magento_Guests' => Config :: XML_PATH_CONNECTOR_GUEST_ADDRESS_BOOK_ID , ] ; $ this -> helper -> saveConfigData ( $ addressBookMap [ $ name ] , $ id , 'default' , 0 ) ; $ this -> helper -> log ( 'successfully connected address book : ' . $ name ) ; }
Map the successfully created address book

@param string $name
@param int $id

@return null
Map the successfully created address book