. */ declare(strict_types=1); namespace FireflyIII\Services\Spectre\Request; /** * Class NewCustomerRequest */ class NewCustomerRequest extends SpectreRequest { /** @var array */ protected $customer = []; /** * @throws \FireflyIII\Exceptions\FireflyException */ public function call(): void { $data = [ 'data' => [ 'identifier' => 'default_ff3_customer', ], ]; $uri = '/api/v3/customers/'; $response = $this->sendSignedSpectrePost($uri, $data); // create customer: $this->customer = $response['data']; return; } /** * @return array */ public function getCustomer(): array { return $this->customer; } }