All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Support PHP
8.x
#30
- Composer
2.x
is supported now #30
- Package
fzaninotto/faker
replaced withfakerphp/faker
version^1.14
#28 - If the token creation timestamp is not passed, the minute is subtracted from the current time
- Package
tarampampam/guzzle-url-mock
replaced withavto-dev/guzzle-url-mock
version^1.5
- Dependency
tarampampam/wrappers-php
because this package was deprecated and removed
- Class
DevPingParams
as parameter to test connection - Class
DevTokenParams
as parameter to debug token generation - Class
UserReportMakeParams
to build make-report parameters - Class
UserParams
as parameter to retrieve information about current user - Class
UserBalanceParams
as parameter to retrieve balance information - Class
UserReportTypesParams
as parameter to retrieve report types data - Class
UserReportsParams
as parameter to get reports list - Class
UserReportParams
as parameter to get report by unique report ID - Class
UserReportRefreshParams
as parameter to refresh existing report - Optional parameter
idempotenceKey
for report-make requests
- Method
ClientInterface::userReportMake
now takes objectReportMakeParams
as parameter - Method
ClientInterface::devPing
now takes optional objectDevPingParams
as parameter - Method
ClientInterface::devToken
now takes objectDevTokenParams
as parameter - Method
ClientInterface::user
now takes optional objectUserParams
as parameter - Method
ClientInterface::userBalance
now takes objectUserBalanceParams
as parameter - Method
ClientInterface::userReportTypes
now takes optional objectUserReportTypesParams
as parameter - Method
ClientInterface::userReports
now takes optional objectUserReportsParams
as parameter - Method
ClientInterface::userReport
now takes objectUserReportParams
as parameter - Method
ClientInterface::userReportRefresh
now takes objectUserReportRefreshParams
as parameter - Faсtory methods now returns
self
instead ofstatic
in classes:Avtocod\B2BApi\Exceptions\*
Avtocod\B2BApi\Responses\Entities\*
Avtocod\B2BApi\Responses\*Response
- Date/time objects in service responses & entities not immutable (
DateTimeImmutable
insteadDateTime
)
- Namespaces in unit-tests
ClientTest
,DateTimeFactoryTest
andSettingsTest
- Guzzle 7 (
guzzlehttp/guzzle
) is supported now - Dependency
tarampampam/wrappers-php
version~2.0
is supported - Code annotations is more strict
- CI completely moved from "Travis CI" to "Github Actions" (travis builds disabled)
- Minimal required PHP version now is
7.2
- Default value for parameter
data
in::userReportMake
(ClientInterface
andClient
) set tonull
- Additional (optional) parameter
data
for::userReportMake
inClientInterface
andClient
#8
- Tests running using GitHub Actions
phpstan
configuration file with disabledcheckGenericClassInNonGenericObjectType
andcheckMissingIterableValueType
- PHP 7.4 tests using CI
- StyleCI rules. Enabled:
length_ordered_imports
, disabled:alpha_ordered_imports
- Updated dev-dependency versions
- Anonymous functions now static (where this is possible)
- Interface
WithRawResponseGetterInterface
- Each
\Avtocod\B2BApi\Responses\*Response
class now implementsWithRawResponseGetterInterface
- Interface
WithSettingsInterface
- Interface
WithEventsHandlerSetterInterface
- Class
Client
now implementsWithSettingsInterface
andWithEventsHandlerSetterInterface
- Package totally rewritten (previous versions available here)