Releases: avtocod/b2b-api-php
Releases · avtocod/b2b-api-php
v4.4.0
v4.3.0
v4.2.0
v4.1.0
v4.0.0
Added
- 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
Changed
- 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
)
Fixed
- Namespaces in unit-tests
ClientTest
,DateTimeFactoryTest
andSettingsTest
v3.4.0: Guzzle 7 is supported now
Changed
- 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
v3.3.1
Fixed
- Default value for parameter
data
in::userReportMake
(ClientInterface
andClient
) set tonull
v3.3.0
v3.2.1
Added
- Tests running using GitHub Actions
phpstan
configuration file with disabledcheckGenericClassInNonGenericObjectType
andcheckMissingIterableValueType
- PHP 7.4 tests using CI
Changed
- StyleCI rules. Enabled:
length_ordered_imports
, disabled:alpha_ordered_imports
- Updated dev-dependency versions
- Anonymous functions now static (where this is possible)
v3.2.0
Added
- Interface
WithRawResponseGetterInterface
- Each
\Avtocod\B2BApi\Responses\*Response
class now implementsWithRawResponseGetterInterface