@@ -46,6 +46,7 @@ This package was developed to give you a quick start to the Bexio API.
4646 - [ Contact Relations] ( #contact-relations )
4747 - [ Contacts] ( #contacts )
4848 - [ Contact Sectors] ( #contact-sectors )
49+ - [ Countries] ( #countries )
4950 - [ Currencies] ( #currencies )
5051 - [ Files] ( #files )
5152 - [ Iban Payments] ( #iban-payments )
@@ -681,9 +682,10 @@ We provide enums for the following values:
681682| ContactRelations: OrderByEnum | ID(), ID_ASC(), ID_DESC(), CONTACT_ID(), CONTACT_ID_ASC(), CONTACT_ID_DESC(), CONTACT_SUB_ID(), CONTACT_SUB_ID_ASC(), CONTACT_SUB_ID_DESC(), UPDATED_AT(), UPDATED_AT_ASC(), UPDATED_AT_DESC() |
682683| Contacts: OrderByEnum | ID(), ID_ASC(), ID_DESC(), NR(), NR_ASC(), NR_DESC(), NAME_1(), NAME_1_ASC(), NAME_1_DESC(), UPDATED_AT(), UPDATED_AT_ASC(), UPDATED_AT_DESC() |
683684| ContactSectors: OrderByEnum | ID(), ID_ASC(), ID_DESC(), NAME(), NAME_ASC(), NAME_DESC() |
685+ | Countries: CountriesOrderByEnum | ID(), ID_ASC(), ID_DESC(), NAME(), NAME_ASC(), NAME_DESC(), NAME_SHORT(), NAME_SHORT_ASC(), NAME_SHORT_DESC() |
684686| IbanPayments: AllowanceTypeEnum | FEE_PAID_BY_SENDER(), FEE_PAID_BY_RECIPIENT(), FEE_SPLIT(), NO_FEE() |
685687| IbanPayments: StatusEnum | OPEN(), TRANSFERRED(), DOWNLOADED(), ERROR(), CANCELLED() |
686- | Items: OrderByEnum | ID(), ID_ASC(), ID_DESC(), INTERN_NAME(), INTERN_NAME_ASC(), INTERN_NAME_DESC() |
688+ | Items: ItemsOrderByEnum | ID(), ID_ASC(), ID_DESC(), INTERN_NAME(), INTERN_NAME_ASC(), INTERN_NAME_DESC() |
687689| ManualEntries: TypeEnum | MANUAL_SINGLE_ENTRY(), MANUAL_GROUP_ENTRY(), MANUAL_COMPOUND_ENTRY() |
688690| QrPayments: AllowanceTypeEnum | FEE_PAID_BY_SENDER(), FEE_PAID_BY_RECIPIENT(), FEE_SPLIT(), NO_FEE() |
689691| QrPayments: StatusEnum | OPEN(), TRANSFERRED(), DOWNLOADED(), ERROR(), CANCELLED() |
@@ -2082,6 +2084,69 @@ $response = $connector->send(new DeleteAnItemRequest(
20822084));
20832085```
20842086
2087+ ### Countries
2088+ ``` php
2089+ /**
2090+ * Fetch A List Of Countries
2091+ */
2092+ $countries = $connector->send(new FetchAListOfCountriesRequest())->dto();
2093+ ```
2094+
2095+ ``` php
2096+ /**
2097+ * Fetch A Country
2098+ */
2099+ $country = $connector->send(new FetchACountryRequest(
2100+ country_id: 1
2101+ ))->dto();
2102+ ```
2103+
2104+ ``` php
2105+ /**
2106+ * Search Countries
2107+ */
2108+ $countries = $connector->send(new SearchCountriesRequest(
2109+ searchField: 'name',
2110+ searchTerm: 'Switzerland'
2111+ ))->dto();
2112+ ```
2113+
2114+ ``` php
2115+ /**
2116+ * Create Country
2117+ */
2118+ $country = $connector->send(new CreateCountryRequest(
2119+ data: new CreateEditCountryDTO(
2120+ name: 'Switzerland',
2121+ name_short: 'CH',
2122+ iso3166_alpha2: 'CH'
2123+ )
2124+ ))->dto();
2125+ ```
2126+
2127+ ``` php
2128+ /**
2129+ * Edit Country
2130+ */
2131+ $country = $connector->send(new EditACountryRequest(
2132+ country_id: 1,
2133+ data: new CreateEditCountryDTO(
2134+ name: 'Switzerland',
2135+ name_short: 'CH',
2136+ iso3166_alpha2: 'CH'
2137+ )
2138+ ))->dto();
2139+ ```
2140+
2141+ ``` php
2142+ /**
2143+ * Delete Country
2144+ */
2145+ $response = $connector->send(new DeleteACountryRequest(
2146+ country_id: 1
2147+ ));
2148+ ```
2149+
20852150### VAT Periods
20862151``` php
20872152/**
0 commit comments