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
DevPingParamsas parameter to test connection - Class
DevTokenParamsas parameter to debug token generation - Class
UserReportMakeParamsto build make-report parameters - Class
UserParamsas parameter to retrieve information about current user - Class
UserBalanceParamsas parameter to retrieve balance information - Class
UserReportTypesParamsas parameter to retrieve report types data - Class
UserReportsParamsas parameter to get reports list - Class
UserReportParamsas parameter to get report by unique report ID - Class
UserReportRefreshParamsas parameter to refresh existing report - Optional parameter
idempotenceKeyfor report-make requests
Changed
- Method
ClientInterface::userReportMakenow takes objectReportMakeParamsas parameter - Method
ClientInterface::devPingnow takes optional objectDevPingParamsas parameter - Method
ClientInterface::devTokennow takes objectDevTokenParamsas parameter - Method
ClientInterface::usernow takes optional objectUserParamsas parameter - Method
ClientInterface::userBalancenow takes objectUserBalanceParamsas parameter - Method
ClientInterface::userReportTypesnow takes optional objectUserReportTypesParamsas parameter - Method
ClientInterface::userReportsnow takes optional objectUserReportsParamsas parameter - Method
ClientInterface::userReportnow takes objectUserReportParamsas parameter - Method
ClientInterface::userReportRefreshnow takes objectUserReportRefreshParamsas parameter - Faсtory methods now returns
selfinstead ofstaticin classes:Avtocod\B2BApi\Exceptions\*Avtocod\B2BApi\Responses\Entities\*Avtocod\B2BApi\Responses\*Response
- Date/time objects in service responses & entities not immutable (
DateTimeImmutableinsteadDateTime)
Fixed
- Namespaces in unit-tests
ClientTest,DateTimeFactoryTestandSettingsTest
v3.4.0: Guzzle 7 is supported now
Changed
- Guzzle 7 (
guzzlehttp/guzzle) is supported now - Dependency
tarampampam/wrappers-phpversion~2.0is 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
datain::userReportMake(ClientInterfaceandClient) set tonull
v3.3.0
v3.2.1
Added
- Tests running using GitHub Actions
phpstanconfiguration file with disabledcheckGenericClassInNonGenericObjectTypeandcheckMissingIterableValueType- 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\*Responseclass now implementsWithRawResponseGetterInterface