Model/Apiconnector/Client.php
public function deleteContactsTransactionalData(
        $key,
        $collectionName = 'Orders'
    ) {
        if ($key && $collectionName) {
            $url = $this->getApiEndpoint() . '/v2/contacts/transactional-data/'
                . $collectionName . '/' . $key;
            $this->setUrl($url)
                ->setVerb('DELETE');

            $response = $this->execute();

            if (isset($response->message)) {
                $this->helper->debug(
                    'deleteContactsTransactionalData',
                    ['DELETE CONTACTS TRANSACTIONAL DATA : ' . $url
                        . ' ' . $response->message]
                );
            }

            return $response;
        }
    }
public function deleteContactsTransactionalData(
        $key,
        $collectionName = 'Orders'
    ) {
        if ($key && $collectionName) {
            $url = $this->getApiEndpoint() . '/v2/contacts/transactional-data/'
                . $collectionName . '/' . $key;
            $this->setUrl($url)
                ->setVerb('DELETE');

            $response = $this->execute();

            if (isset($response->message)) {
                $this->helper->debug(
                    'deleteContactsTransactionalData',
                    ['DELETE CONTACTS TRANSACTIONAL DATA : ' . $url
                        . ' ' . $response->message]
                );
            }

            return $response;
        }
    }
public function deleteContactsTransactionalData ( $ key , $ collectionName = 'Orders' ) { if ( $ key && $ collectionName ) { $ url = $ this -> getApiEndpoint ( ) . '/v2/contacts/transactional-data/' . $ collectionName . '/' . $ key ; $ this -> setUrl ( $ url ) -> setVerb ( 'DELETE' ) ; $ response = $ this -> execute ( ) ; if ( isset ( $ response -> message ) ) { $ this -> helper -> debug ( 'deleteContactsTransactionalData' , [ 'DELETE CONTACTS TRANSACTIONAL DATA : ' . $ url . ' ' . $ response -> message ] ) ; } return $ response ; } }
Deletes a piece of transactional data by key.

@param int  $key
@param string $collectionName

@return null
@throws \Exception
Deletes a piece of transactional data by key .