Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysLees committed Sep 26, 2024
1 parent 05cb54f commit 34cdc1b
Show file tree
Hide file tree
Showing 167 changed files with 167 additions and 313 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: vendor/bin/pest

- name: Store test reports
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Store report
retention-days: 1
Expand Down
3 changes: 1 addition & 2 deletions src/BexioConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ class BexioConnector extends Connector
{
public function __construct(
protected readonly ?string $token = null,
) {
}
) {}

public function resolveBaseUrl(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/AccountGroups/AccountGroupDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function __construct(
public bool $is_active,
public bool $is_locked,
public ?int $parent_fibu_account_group_id = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Accounts/AccountDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public function __construct(
public bool $is_locked,
public ?int $tax_id = null,
public ?int $fibu_account_group_id = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/AdditionalAddresses/AdditionalAddressDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public function __construct(
public ?int $postcode = null,
public ?string $city = null,
public ?string $country_id = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public function __construct(
public ?int $postcode = null,
public ?string $city = null,
public ?string $country_id = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/BankAccounts/BankAccountDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public function __construct(
public ?string $esr_bottom_line_include_amount = null,
public ?string $remarks = null,
public ?string $qr_invoice_iban = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/BusinessYears/BusinessYearDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ public function __construct(
public string $end,
public string $status,
public ?string $closed_at = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/CalendarYears/CalendarYearDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public function __construct(
public string $updated_at,
public ?string $vat_accounting_method = null,
public ?string $vat_accounting_type = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/CalendarYears/CreateCalendarYearDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function __construct(
public string $vat_accounting_type,
public int $default_tax_income_id,
public int $default_tax_expense_id,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/CompanyProfiles/CompanyProfileDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public function __construct(
public ?string $ust_id_nr = null,
public ?string $mwst_nr = null,
public ?string $trade_register_nr = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public function __construct(
public string $postcode,
public string $city,
public ?int $country_id = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public function __construct(
public string $postcode,
public string $city,
public ?int $country_id = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/ContactGroups/ContactGroupDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ class ContactGroupDTO extends Data
public function __construct(
public int $id,
public string $name,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/ContactGroups/CreateEditContactGroupDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class CreateEditContactGroupDTO extends Data
{
public function __construct(
public string $name,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/ContactRelations/ContactRelationDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ public function __construct(
public int $contact_sub_id,
public ?string $description,
public ?string $updated_at,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/ContactRelations/CreateEditContactRelationDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public function __construct(
public int $contact_id,
public int $contact_sub_id,
public ?string $description,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/ContactSectors/ContactSectorDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ class ContactSectorDTO extends Data
public function __construct(
public int $id,
public string $name,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Contacts/ContactDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public function __construct(
public ?string $contact_group_ids,
public ?string $contact_branch_ids,
public ?string $updated_at,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Contacts/CreateEditContactDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ public function __construct(
public ?int $language_id = null, //ref to language
public ?string $contact_group_ids = null,
public ?string $contact_branch_ids = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Currencies/CreateCurrencyDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ class CreateCurrencyDTO extends Data
public function __construct(
public string $name,
public float $round_factor,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Currencies/CurrencyDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public function __construct(
public int $id,
public string $name,
public float $round_factor,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Currencies/EditCurrencyDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class EditCurrencyDTO extends Data
{
public function __construct(
public float $round_factor,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Currencies/ExchangeCurrencyDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ class ExchangeCurrencyDTO extends Data
public function __construct(
public float $factor_nr,
public CurrencyDTO $exchange_currency,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Files/EditFileDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public function __construct(
public string $name,
public bool $is_archived,
public string $source_type,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Files/FileDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ public function __construct(
public ?string $uploader_email = null,
public ?string $processing_source = null,
public ?string $processing_status = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Files/FileUsageDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public function __construct(
public string $ref_class,
public string $title,
public string $document_nr,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/IbanPayments/CreateEditIbanPaymentDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public function __construct(
public bool $is_editing_restricted,
public string $message,
public string $allowance_type,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/ManualEntries/AddFileDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public function __construct(
public string $name,
public mixed $absolute_file_path_or_stream,
public string $filename,
) {
}
) {}

public static function fromArray(array $data): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/ManualEntries/CreateEntryDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public function __construct(
public ?int $currency_factor = null,
public ?int $debit_account_id = null,
public ?int $credit_account_id = null,
) {
}
) {}

public static function fromArray(array $data): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/ManualEntries/CreateManualEntryDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function __construct(
public string $date,
public Collection $entries,
public ?string $reference_nr = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/ManualEntries/EntryDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public function __construct(
public ?int $tax_account_id = null,
public ?int $created_by_user_id = null,
public ?int $edited_by_user_id = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/ManualEntries/FileDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ public function __construct(
public ?string $uploader_email = null,
public ?string $processing_source = null,
public ?string $processing_status = null
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/ManualEntries/ManualEntryDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public function __construct(
public bool $is_locked,
public ?string $reference_nr = null,
public ?string $locked_info = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Notes/CreateEditNoteDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public function __construct(
public ?int $pr_project_id = null,
public ?int $entry_id = null,
public ?int $module_id = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Notes/NoteDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public function __construct(
public ?int $project_id = null,
public ?int $entry_id = null,
public ?int $module_id = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Payments/PaymentDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public function __construct(
public string $instruction_id,
public string $status,
public string $created_at,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/QrPayments/CreateEditQrPaymentDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public function __construct(
public ?string $qr_reference_nr = null,
public ?string $additional_information = null,
public ?bool $is_editing_restricted = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Reports/JournalDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public function __construct(
public ?int $ref_id = null,
public ?string $ref_uuid = null,
public ?string $ref_class = null,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Dto/Salutations/CreateEditSalutationDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class CreateEditSalutationDTO extends Data
{
public function __construct(
public string $name,
) {
}
) {}

public static function fromResponse(Response $response): self
{
Expand Down
Loading

0 comments on commit 34cdc1b

Please sign in to comment.