Skip to content

Commit 98f977f

Browse files
authored
Merge pull request #48 from codebar-ag/feature-update-api
Updated readme.md + markdown
2 parents bdf7aa6 + c934ffd commit 98f977f

File tree

3 files changed

+112
-35
lines changed

3 files changed

+112
-35
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,26 @@ The new `BexioOAuthAuthenticationValidateResolver` allows you to implement custo
160160
- **Migration Examples**: Detailed migration examples for all scenarios
161161
- **Scope Documentation**: Complete OAuth scope enumeration and documentation
162162

163+
### 🔄 DTO Field Updates
164+
165+
The following DTOs have been updated with new fields:
166+
167+
#### Contact & Additional Address Fields (2025-06-04)
168+
169+
- **ContactDTO** and **CreateEditContactDTO**: Added `street_name`, `house_number`, and `address_addition` fields
170+
- The `address` field is now deprecated in favor of the new structured address fields
171+
- These fields provide better address handling and validation
172+
173+
- **AdditionalAddressDTO** and **CreateEditAdditionalAddressDTO**: Added `street_name`, `house_number`, and `address_addition` fields
174+
- The `address` field is now deprecated in favor of the new structured address fields
175+
176+
#### Bank Account Fields (2025-06-06)
177+
178+
- **BankAccountDTO**: Added `owner_house_number` and `owner_country_code` fields
179+
- These fields provide more detailed owner information for bank accounts
180+
181+
#### Calendar Year Fields (2025-08-04)
182+
183+
- **CalendarYearDTO**: Added `is_annual_reporting` field
184+
- This field indicates whether the calendar year is used for annual reporting
185+

README.md

Lines changed: 89 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,66 @@
99

1010
This package was developed to give you a quick start to the Bexio API.
1111

12+
## 📑 Table of Contents
13+
14+
- [What is Bexio?](#-what-is-bexio)
15+
- [Requirements](#-requirements)
16+
- [Authentication](#authentication)
17+
- [Installation](#️-installation)
18+
- [Authentication Setup](#-authentication-setup)
19+
- [Environment Variables](#environment-variables)
20+
- [Single Tenant Authentication](#single-tenant-authentication)
21+
- [Token Authentication](#token-authentication)
22+
- [OAuth Authentication](#oauth-authentication)
23+
- [OAuth Flow](#oauth-flow)
24+
- [OAuth Callback Response](#oauth-callback-response)
25+
- [Multi-Tenant Authentication](#multi-tenant-authentication)
26+
- [Token Authentication (Multi-Tenant)](#token-authentication-multi-tenant)
27+
- [OAuth Authentication (Multi-Tenant)](#oauth-authentication-multi-tenant)
28+
- [Custom OAuth Authentication Validation (Optional)](#custom-oauth-authentication-validation-optional)
29+
- [Available OAuth Scopes](#available-oauth-scopes)
30+
- [Advanced Configuration](#️-advanced-configuration)
31+
- [Custom Cache Store](#custom-cache-store)
32+
- [Custom Route Configuration](#custom-route-configuration)
33+
- [Basic Usage](#basic-usage)
34+
- [Responses](#responses)
35+
- [Enums](#enums)
36+
- [DTOs](#dtos)
37+
- [Examples](#examples)
38+
- [API Reference](#api-reference)
39+
- [Accounts](#accounts)
40+
- [Addresses](#addresses)
41+
- [Bank Accounts](#bank-accounts)
42+
- [Business Years](#business-years)
43+
- [Calendar Years](#calendar-years)
44+
- [Company Profiles](#company-profiles)
45+
- [Additional Addresses](#additional-addresses)
46+
- [Contact Groups](#contact-groups)
47+
- [Contact Relations](#contact-relations)
48+
- [Contacts](#contacts)
49+
- [Contact Sectors](#contact-sectors)
50+
- [Currencies](#currencies)
51+
- [Files](#files)
52+
- [Iban Payments](#iban-payments)
53+
- [Invoices](#invoices)
54+
- [Languages](#languages)
55+
- [Manual Entries](#manual-entries)
56+
- [Notes](#notes)
57+
- [Payments](#payments)
58+
- [Qr Payments](#qr-payments)
59+
- [Reports](#reports)
60+
- [Salutations](#salutations)
61+
- [Taxes](#taxes)
62+
- [Titles](#titles)
63+
- [VAT Periods](#vat-periods)
64+
- [Testing](#-testing)
65+
- [Changelog](#-changelog)
66+
- [Contributing](#️-contributing)
67+
- [Code Style](#code-style)
68+
- [Security Vulnerabilities](#️-security-vulnerabilities)
69+
- [Credits](#-credits)
70+
- [License](#-license)
71+
1272
## 💡 What is Bexio?
1373

1474
Bexio is a cloud-based simple business software for the self-employed, small businesses and startups.
@@ -646,7 +706,6 @@ We provide DTOs for the following:
646706
| AccountDTO |
647707
| BankAccountDTO |
648708
| AdditionalAddressDTO |
649-
| BankAccountDTO |
650709
| BusinessActivityDTO |
651710
| BusinessYearDTO |
652711
| CalendarYearDTO |
@@ -672,7 +731,6 @@ We provide DTOs for the following:
672731
| LanguageDTO |
673732
| AddFileDTO |
674733
| EntryDTO |
675-
| FileDTO |
676734
| ManualEntryDTO |
677735
| NoteDTO |
678736
| PaymentDTO |
@@ -684,6 +742,7 @@ We provide DTOs for the following:
684742
| TitleDTO |
685743
| UnitDTO |
686744
| UserDTO |
745+
| UserInfoDTO |
687746
| VatPeriodDTO |
688747

689748
In addition to the above, we also provide DTOs to be used for create and edit request for the following:
@@ -710,6 +769,8 @@ In addition to the above, we also provide DTOs to be used for create and edit re
710769

711770
`Note: This is the preferred method of interfacing with Requests and Responses however you can still use the json, object and collect methods. and pass arrays to the requests.`
712771

772+
> **📝 Recent DTO Field Updates:** For information about recent DTO field additions and changes, please see the [CHANGELOG.md](CHANGELOG.md#-dto-field-updates).
773+
713774
### Examples
714775

715776
Here are some examples of how to use the package with different authentication methods:
@@ -796,13 +857,16 @@ $addresses = $connector->send(new SearchAddressesRequest(
796857
/**
797858
* Create Address
798859
*/
799-
$address = $connector->send(new CreateAddressRequest(
800-
data: new CreateEditAddressDTO(
860+
$address = $connector->send(new CreateAnAdditionalAddressRequest(
861+
id: 1,
862+
data: new CreateEditAdditionalAddressDTO(
801863
name: 'Test',
802864
subject: 'Test Subject',
803865
description: 'This is a test',
804-
address: 'Test Address',
805-
postcode: '1234',
866+
street_name: 'Main Street',
867+
house_number: '123',
868+
address_addition: 'Apt 4B',
869+
postcode: 1234,
806870
city: 'Test City',
807871
)
808872
));
@@ -812,14 +876,17 @@ $address = $connector->send(new CreateAddressRequest(
812876
/**
813877
* Edit Address
814878
*/
815-
$address = $connector->send(new EditAnAddressRequest(
879+
$address = $connector->send(new EditAnAdditionalAddressRequest(
880+
contactId: 1,
816881
id: 1,
817-
data: new CreateEditAddressDTO(
882+
data: new CreateEditAdditionalAddressDTO(
818883
name: 'Test Edit',
819884
subject: 'Test Subject Edit',
820885
description: 'This is a test edit',
821-
address: 'Test Address Edit',
822-
postcode: '4567',
886+
street_name: 'Main Street',
887+
house_number: '456',
888+
address_addition: 'Suite 2',
889+
postcode: 4567,
823890
city: 'Test City Edit',
824891
)
825892
));
@@ -1138,7 +1205,12 @@ $contact = $connector->send(new CreateContactRequest(
11381205
user_id: 1,
11391206
owner_id: 1,
11401207
contact_type_id: 1,
1141-
name_1: 'Name'
1208+
name_1: 'Name',
1209+
street_name: 'Main Street',
1210+
house_number: '123',
1211+
address_addition: 'Apt 4B',
1212+
postcode: '1234',
1213+
city: 'Zurich'
11421214
)
11431215
));
11441216
```
@@ -1175,7 +1247,12 @@ $contact = $connector->send(new EditAContactRequest(
11751247
user_id: 1,
11761248
owner_id: 1,
11771249
contact_type_id: 1,
1178-
name_1: 'Name'
1250+
name_1: 'Name',
1251+
street_name: 'Main Street',
1252+
house_number: '123',
1253+
address_addition: 'Apt 4B',
1254+
postcode: '1234',
1255+
city: 'Zurich'
11791256
)
11801257
));
11811258
```

0 commit comments

Comments
 (0)