config = $config ?: new Configuration(); } /** * Add subaccount * Add a new subaccount. */ public function add($body = []) { return $this->config->post('/subaccounts/add', $body); } /** * Delete subaccount * Delete an existing subaccount. Any email related to the subaccount will be saved, but stats will be removed and any future sending calls to this subaccount will fail. */ public function delete($body = []) { return $this->config->post('/subaccounts/delete', $body); } /** * Get subaccount info * Given the ID of an existing subaccount, return the data about it. */ public function info($body = []) { return $this->config->post('/subaccounts/info', $body); } /** * List subaccounts * Get the list of subaccounts defined for the account, optionally filtered by a prefix. */ public function list($body = []) { return $this->config->post('/subaccounts/list', $body); } /** * Pause subaccount * Pause a subaccount's sending. Any future emails delivered to this subaccount will be queued for a maximum of 3 days until the subaccount is resumed. */ public function pause($body = []) { return $this->config->post('/subaccounts/pause', $body); } /** * Resume subaccount * Resume a paused subaccount's sending. */ public function resume($body = []) { return $this->config->post('/subaccounts/resume', $body); } /** * Update subaccount * Update an existing subaccount. */ public function update($body = []) { return $this->config->post('/subaccounts/update', $body); } }