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

@throws Exception

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

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

        return $this->post($url, $data, $headers);
    }
463812
public function display(Exception $exception, string $id, int $code, array $headers)
    {
        return cachet_redirect('auth.login')->withError(trans('forms.login.rate-limit'));
    }
1277755
public function overrideBillingProfile(string $id, array $data, array $headers = [])
    {
        $url = $this->url('subscriptions/%s/override_billing_profile', $id);

        return $this->post($url, $data, $headers);
    }
422904
public function startAfresh(string $id, array $data, array $headers = [])
    {
        $url = $this->url('time_machines/%s/start_afresh', $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);
    }
398559
public function removeCreditNote(string $id, array $data, array $headers = [])
    {
        $url = $this->url('invoices/%s/remove_credit_note', $id);

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

        return $this->post($url, $data, $headers);
    }
126533
public function load($id, array $parameters = [], array $headers = [])
    {
        if (!isset($parameters['append_to_response'])) {
            // Load a no-nonsense default set
            $parameters = array_merge($parameters, [
                new AppendToResponse([
                    AppendToResponse::IMAGES,
                    AppendToResponse::CHANGES,
                    AppendToResponse::COMBINED_CREDITS,
                    AppendToResponse::MOVIE_CREDITS,
                    AppendToResponse::TV_CREDITS,
                    AppendToResponse::EXTERNAL_IDS,
                    AppendToResponse::TAGGED_IMAGES
                ])
            ]);
        }

        $data = $this->getApi()->getPerson($id, $this->parseQueryParameters($parameters), $headers);

        return $this->getFactory()->create($data);
    }
765941
public function update($id, $data)
    {
        $data = $this->retrieveData($data);
        $updateData = [
            'methods'=> implode(',', $data['methods']),
        ];

        $this->table->update($updateData, ['id' => $id]);

        return $data;
    }
576018
public function patch($api, $id, array $data = [])
    {
        return $this->checkException($this->callHttpMethod($this->normalizeUri($api, $id), Request::METHOD_PATCH, $data));
    }
665472
public function update($id, $data)
    {
        $message = $this->client->put(sprintf('templates/%d.json', $id), [
            'json' => $data,
        ]);

        return new Template($this->response($message));
    }
428194
public function writeOff(string $id, array $data, array $headers = [])
    {
        $url = $this->url('invoices/%s/write_off', $id);

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

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

        return $this->get($url, [], $headers);
    }
1279677
public function changeTermEnd(string $id, array $data, array $headers = [])
    {
        $url = $this->url('subscriptions/%s/change_term_end', $id);

        return $this->post($url, $data, $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);
    }