-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactored the structure and rewrote the unit tests (#35) * Added phpstan for static code analysis (#36) Added phpstan for static code analysis * Updated the min. PHP Version to 7.3 and updated updated the PHPUnit package (#37) * Copyright updated and php constraints updated * Changelog updated * Changed the required PHP CPU architecture to 64bit * Updated the CHANGELOG.md * Updated Guzzle to v7.4.0 and psr/log to v1.1.0 (#48) * Updated Guzzle to v7.4.0 and psr/log to v1.1.0 * Renamed BillbeeClient to CustomClient * Updated the API endpoint and added the Changelog entry * Merge master in 2.0.0 (#50) * Update usage_without_composer.md * URL encode path parameters * Added missing mappings and a patch function (#40) Added: - `Client::patchAddress()` - Mapping for `Address::$id` - Mapping for `Order::$payments` - `Payment` model * Update CHANGELOG.md Co-authored-by: fkunz <[email protected]> * Merge remote-tracking branch 'origin/master' into 2.0.0 # Conflicts: # CHANGELOG.md # src/Client.php Co-authored-by: fkunz <[email protected]>
- Loading branch information
Showing
132 changed files
with
4,383 additions
and
3,134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
program.php | ||
output.log | ||
/doc/* | ||
!/doc/sami.php | ||
/.php_cs.cache | ||
/.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
# Migration Guide | ||
|
||
## Minimum PHP Version | ||
Since PHP 5.6 - PHP 7.1 isn't supported anymore and the PHP 7.2 Security support ends in Nov 2020 the minimal PHP Version | ||
was increased to 7.3. | ||
|
||
## `Client::$useBatching` | ||
|
||
This field was made private. The Client itself implements the `\BillbeeDe\BillbeeAPI\BatchClientInterface`. Use the | ||
following methods for migration | ||
|
||
- `BatchClientInterface::enableBatchMode()` | ||
- `BatchClientInterface::disableBatchMode()` | ||
- `BatchClientInterface::isBatchModeEnabled()` | ||
|
||
## Endpoints | ||
|
||
The client does not implement the request actions anymore. Instead, we provide "Endpoints" which groups the requests by | ||
its topic. This change was made for testing purposes. | ||
|
||
### `Client::cloudStorages()` (`CloudStorageEndpoint`) | ||
Former methods: | ||
- `Client::getCloudStorages()` | ||
|
||
### `Client::customers()` (`CustomersEndpoint`) | ||
Former methods: | ||
- `Client::getCustomers()` | ||
- `Client::getCustomer()` | ||
- `Client::getCustomerAddresses()` | ||
- `Client::getCustomerAddress()` | ||
- `Client::getCustomerOrders()` | ||
- `Client::createCustomer()` | ||
- `Client::updateCustomer()` | ||
|
||
### `Client::events()` (`EventsEndpoint`) | ||
Former methods: | ||
- `Client::getEvents()` | ||
|
||
### `Client::invoices()` (`InvoiceEndpoint`) | ||
Former methods: | ||
- `Client::getInvoices()` | ||
|
||
### `Client::layouts()` (`LayoutsEndpoint`) | ||
Former methods: | ||
- `Client::getLayouts()` | ||
|
||
### `Client::orders()` (`OrdersEndpoint`) | ||
Former methods: | ||
- `Client::getOrders()` | ||
- `Client::getPatchableFields()` | ||
- `Client::getOrder()` | ||
- `Client::getOrderByOrderNumber()` | ||
- `Client::getOrderByPartner()` | ||
- `Client::createOrder()` | ||
- `Client::addOrderTags()` | ||
- `Client::addOrderShipment()` | ||
- `Client::createDeliveryNote()` | ||
- `Client::createInvoice()` | ||
- `Client::sendMessage()` | ||
- `Client::setOrderTags()` | ||
- `Client::setOrderState()` | ||
- `Client::patchOrder()` | ||
|
||
### `Client::productCustomFields()` (`ProductCustomFieldsEndpoint`) | ||
Former methods: | ||
- `Client::getCustomFieldDefinitions()` | ||
- `Client::getCustomFieldDefinition()` | ||
|
||
### `Client::products()` (`ProductsEndpoint`) | ||
Former methods: | ||
- `Client::updateStock()` | ||
- `Client::updateStockMultiple()` | ||
- `Client::updateStockCode()` | ||
- `Client::createProduct()` | ||
- `Client::patchProduct()` | ||
- `Client::deleteProduct()` | ||
|
||
### `Client::provisioning()` (`ProvisioningEndpoint`) | ||
Former methods: | ||
- `Client::getTermsInfo()` | ||
|
||
### `Client::search()` (`SearchEndpoint`) | ||
Former methods: | ||
- `Client::search()` | ||
|
||
### `Client::shipments()` (`ShipmentsEndpoint`) | ||
Former methods: | ||
- `Client::getShippingProviders()` | ||
- `Client::shipWithLabel()` | ||
|
||
### `Client::webHooks()` (`WebHooksEndpoint`) | ||
Former methods: | ||
- `Client::getWebHooks()` | ||
- `Client::getWebHook()` | ||
- `Client::getWebHookFilters()` | ||
- `Client::createWebHook()` | ||
- `Client::updateWebHook()` | ||
- `Client::deleteAllWebHooks()` | ||
- `Client::deleteWebHookById()` | ||
- `Client::deleteWebHook()` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.