Skip to content

Commit c00430d

Browse files
authored
Merge pull request #73 from codebar-ag/feature-laravel-13-php-8.5
Feature laravel 13 php 8.5 + Update Requests
2 parents 50be88f + 71c7be8 commit c00430d

442 files changed

Lines changed: 8425 additions & 2674 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ We're sorry to hear you have a problem. Can you help us solve it by providing th
2929
attributes:
3030
label: PHP Version
3131
description: What version of PHP are you running? Please be as specific as possible
32-
placeholder: "8.4.0"
33-
value: "8.4.0"
32+
placeholder: "8.5.0"
33+
value: "8.5.0"
3434
validations:
3535
required: true
3636
- type: input
3737
id: laravel-version
3838
attributes:
3939
label: Laravel Version
4040
description: What version of Laravel are you running? Please be as specific as possible
41-
placeholder: "12.0.0"
42-
value: "12.0.0"
41+
placeholder: "13.0.0"
42+
value: "13.0.0"
4343
validations:
4444
required: true
4545
- type: dropdown

.github/workflows/composer-audit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
- uses: actions/checkout@v6.0.2
2727

2828
- name: Setup PHP
29-
uses: shivammathur/setup-php@2.37.1
29+
uses: shivammathur/setup-php@2.37.2
3030
with:
31-
php-version: '8.4'
31+
php-version: '8.5'
3232
coverage: none
3333

3434
- name: Resolve dependencies and audit

.github/workflows/dependabot-auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
- name: Dependabot metadata
1515
id: metadata
16-
uses: dependabot/fetch-metadata@v2.5.0
16+
uses: dependabot/fetch-metadata@v3.0.0
1717
with:
1818
github-token: "${{ secrets.GITHUB_TOKEN }}"
1919

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
- name: 'Checkout Repository'
1818
uses: actions/checkout@v6.0.2
1919
- name: 'Dependency Review'
20-
uses: actions/dependency-review-action@v4.9.0
20+
uses: actions/dependency-review-action@v5

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,17 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v6.0.2
1515

16-
- name: Fix PHP code style issues
17-
uses: aglipanci/laravel-pint-action@2.6
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@2.37.2
18+
with:
19+
php-version: '8.5'
20+
coverage: none
21+
22+
- name: Install composer dependencies
23+
uses: ramsey/composer-install@4.0.0
24+
25+
- name: Run Laravel Pint
26+
run: vendor/bin/pint
1827

1928
- name: Commit changes
2029
uses: stefanzweifel/git-auto-commit-action@v7.1.0

.github/workflows/phpstan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
- uses: actions/checkout@v6.0.2
3131

3232
- name: Setup PHP
33-
uses: shivammathur/setup-php@2.37.1
33+
uses: shivammathur/setup-php@2.37.2
3434
with:
35-
php-version: '8.4'
35+
php-version: '8.5'
3636
coverage: none
3737

3838
- name: Install composer dependencies

.github/workflows/run-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
max-parallel: 1
1515
matrix:
1616
os: [ ubuntu-latest ]
17-
php: [ 8.2, 8.3, 8.4 ]
18-
laravel: [ 12.* ]
17+
php: [ 8.3, 8.4, 8.5 ]
18+
laravel: [ 13.* ]
1919
stability: [ prefer-lowest, prefer-stable ]
2020

2121
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/checkout@v6
2626

2727
- name: Setup PHP
28-
uses: shivammathur/setup-php@2.37.1
28+
uses: shivammathur/setup-php@2.37.2
2929
with:
3030
php-version: ${{ matrix.php }}
3131
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
@@ -45,7 +45,7 @@ jobs:
4545
run: cp phpunit.xml.dist phpunit.xml
4646

4747
- name: Execute tests
48-
run: vendor/bin/pest
48+
run: vendor/bin/pest --no-coverage
4949

5050
- name: Store Log Artifacts
5151
if: failure()

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ vendor
1010
node_modules
1111
.phpactor.json
1212
build
13+
.audit/

CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,54 @@
22

33
All notable changes to `laravel-bexio` will be documented in this file.
44

5+
## 20260618 | v14.0
6+
7+
This is a **MAJOR** release with breaking changes. All DTOs and fixtures were reconciled
8+
against a live bexio instance (accounting period 2026).
9+
10+
### ⚠️ Breaking Changes
11+
12+
- **Removed `IbanPayments`**: Deleted all `IbanPayments` request classes
13+
(`GetIbanPaymentRequest`, `CreateIbanPaymentRequest`, `EditIbanPaymentRequest`) and the
14+
`CreateEditIbanPaymentDTO`. The underlying endpoints no longer exist in the bexio API.
15+
- **Removed `QrPayments`**: Deleted all `QrPayments` request classes
16+
(`GetQrPaymentRequest`, `CreateQrPaymentRequest`, `EditQrPaymentRequest`) and the
17+
`CreateEditQrPaymentDTO`. The underlying endpoints no longer exist in the bexio API.
18+
- **`Payments` migrated to the banking API**: `Payments` now targets `/4.0/banking/payments`.
19+
- `FetchAListOfPaymentsRequest(?string $filterBy, ?int $page, ?int $perPage)` returns a
20+
`Collection` of `PaymentDTO` (the wrapped `results` array is unwrapped automatically).
21+
- `DeleteAPaymentRequest(int|string $payment_id)``DELETE /4.0/banking/payments/{id}`.
22+
- `CancelAPaymentRequest(int|string $payment_id)``POST /4.0/banking/payments/{id}/cancel`.
23+
- `Payments\PaymentDTO` was rewritten with the new banking shape (id, uuid, sender,
24+
recipient, amount, currency, execution_date, allowance, is_salary, instruction_id,
25+
purchase_reference, document_no, qr_reference_number, additional_information, status,
26+
type, due_date, created_at, is_editing_restricted).
27+
- **`ItemPositions` are now document-scoped article positions**: requests target
28+
`/2.0/{kb_document_type}/{document_id}/kb_position_article[/{position_id}]` and have new
29+
constructor signatures:
30+
- `FetchAListOfItemPositionsRequest(string $kb_document_type, int $document_id)`
31+
- `FetchAnItemPositionRequest(string $kb_document_type, int $document_id, int $item_position_id)`
32+
- `CreateAnItemPositionRequest(string $kb_document_type, int $document_id, ?CreateEditItemPositionDTO $itemPosition)`
33+
- `EditAnItemPositionRequest(string $kb_document_type, int $document_id, int $item_position_id, ?CreateEditItemPositionDTO $itemPosition)`
34+
- `DeleteAnItemPositionRequest(string $kb_document_type, int $document_id, int $item_position_id)`
35+
- Creating a position requires `article_id`; the edit endpoint rejects `article_id`.
36+
- **`EditAnItemRequest` now uses `POST`** (previously `PUT`) to match the bexio API.
37+
- **DTO field corrections across many resources** to match the live API, including:
38+
- `AccountDTO` / `AccountGroupDTO`: added `uuid`, dropped `account_type_enum`.
39+
- `ContactDTO`: `salutation_form_id``salutation_form`.
40+
- `DocumentSettingDTO`: corrected `user_*``use_*` enumeration typo.
41+
- `TaxDTO`: added `start_month` / `end_month`.
42+
- Invoice `PaymentDTO` and `ReminderDTO` reshaped to match the API responses.
43+
- Additional field type/name fixes across other resources.
44+
45+
### 🧪 Tests
46+
47+
- Regenerated all Saloon test fixtures against a live bexio instance (accounting period 2026).
48+
49+
### 🔧 CI
50+
51+
- All GitHub Actions upgraded to Node 24-native versions (e.g. `actions/checkout@v5`, `actions/upload-artifact@v6`, `actions/setup-node@v6`, `actions/cache@v5`, `actions/dependency-review-action@v5`) — no Node 20/16 actions remain.
52+
553
## 20251127
654

755
### Added REST APIs | v13.5

0 commit comments

Comments
 (0)