@param string $id
@param array  $data
@param array  $headers

@throws Exception

@return array|string
973
public function reactivate(string $id, array $data, array $headers = [])
    {
        $url = $this->url('subscriptions/%s/reactivate', $id);

        return $this->post($url, $data, $headers);
    }
1297948
public function chargeAddonAtTermEnd(string $id, array $data, array $headers = [])
    {
        $url = $this->url('subscriptions/%s/charge_addon_at_term_end', $id);

        return $this->post($url, $data, $headers);
    }
595121
public function findAsPdf(string $id, array $headers = [])
    {
        $url = $this->url('invoices/%s/pdf', $id);

        return $this->get($url, [], $headers);
    }
1091707
public function assignPaymentRole(string $id, array $data, array $headers = [])
    {
        $url = $this->url('customers/%s/assign_payment_role', $id);

        return $this->post($url, $data, $headers);
    }
895304
public function unarchive(string $id, array $headers = [])
    {
        $url = $this->url('plans/%s/unarchive', $id);

        return $this->post($url, [], $headers);
    }
927906
public function display(Exception $exception, string $id, int $code, array $headers)
    {
        return new Response($this->render(), $code, array_merge($headers, ['Content-Type' => $this->contentType()]));
    }
539522
public function update(string $id, array $data, array $headers = [])
    {
        $url = $this->url('coupon_sets/%s/update', $id);

        return $this->post($url, $data, $headers);
    }
289026
public function deleteUnusedCouponCodes(string $id, array $headers = [])
    {
        $url = $this->url('coupon_sets/%s/delete_unused_coupon_codes', $id);

        return $this->post($url, [], $headers);
    }
1355641
protected function _create(array $data, $id = null, array $parameters = []) {
        return parent::_create($data, $this->type(), $id, $parameters);
    }
463812
public function display(Exception $exception, string $id, int $code, array $headers)
    {
        return cachet_redirect('auth.login')->withError(trans('forms.login.rate-limit'));
    }
98306
public function acknowledge(string $id, array $headers = [])
    {
        $url = $this->url('hosted_pages/%s/acknowledge', $id);

        return $this->post($url, [], $headers);
    }
1070168
public function recordExcessPayment(string $id, array $data, array $headers = [])
    {
        $url = $this->url('customers/%s/record_excess_payment', $id);

        return $this->post($url, $data, $headers);
    }
313915
public function update($id, $data) {
		$dt = $this->getDataTable();
		
		if (! $dt)
			return $this->createResponse($this->getNameManager()->getTableNames(), 401, "Tabels");
		
		return $this->createResponse([], 200, "{$this->getNameManager()->entityName}: No Update");
	}
615030
public function recordRefund(string $id, array $data, array $headers = [])
    {
        $url = $this->url('invoices/%s/record_refund', $id);

        return $this->post($url, $data, $headers);
    }
18291
public function recordPayment(string $id, array $data, array $headers = [])
    {
        $url = $this->url('invoices/%s/record_payment', $id);

        return $this->post($url, $data, $headers);
    }
653661
public function tokenize($id, array $data = [])
    {
        $assoc = $this->getConfig('associationAlias');

        $tokenData = [
            'foreign_alias' => $this->_table->getAlias(),
            'foreign_table' => $this->_table->getTable(),
            'foreign_key' => $id,
            'foreign_data' => $data,
        ];
        $tokenData = array_filter($tokenData);
        if (!isset($tokenData['foreign_data'])) {
            $tokenData['foreign_data'] = [];
        }

        $table = $this->_table->$assoc;
        $token = $table->newEntity($tokenData);

        if (!$table->save($token)) {
            throw new \RuntimeException();
        }

        return $token;
    }
61504
public function removePayment(string $id, array $data, array $headers = [])
    {
        $url = $this->url('invoices/%s/remove_payment', $id);

        return $this->post($url, $data, $headers);
    }