Skip to content

Releases: avtocod/b2b-api-php

v4.4.0

10 Jan 07:35
38ce58f
Compare
Choose a tag to compare

Added

  • Support PHP 8.x #30

Changed

  • Composer 2.x is supported now #30

v4.3.0

09 Jun 05:21
bbe026d
Compare
Choose a tag to compare

Changed

  • Package fzaninotto/faker replaced with fakerphp/faker version ^1.14 #28
  • If the token creation timestamp is not passed, the minute is subtracted from the current time

v4.2.0

05 Apr 05:53
b24c880
Compare
Choose a tag to compare

Changed

  • Package tarampampam/guzzle-url-mock replaced with avto-dev/guzzle-url-mock version ^1.5

v4.1.0

01 Apr 12:14
5a6845e
Compare
Choose a tag to compare

Removed

  • Dependency tarampampam/wrappers-php because it was deprecated and removed

v4.0.0

23 Oct 06:06
Compare
Choose a tag to compare

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 object ReportMakeParams as parameter
  • Method ClientInterface::devPing now takes optional object DevPingParams as parameter
  • Method ClientInterface::devToken now takes object DevTokenParams as parameter
  • Method ClientInterface::user now takes optional object UserParams as parameter
  • Method ClientInterface::userBalance now takes object UserBalanceParams as parameter
  • Method ClientInterface::userReportTypes now takes optional object UserReportTypesParams as parameter
  • Method ClientInterface::userReports now takes optional object UserReportsParams as parameter
  • Method ClientInterface::userReport now takes object UserReportParams as parameter
  • Method ClientInterface::userReportRefresh now takes object UserReportRefreshParams as parameter
  • Faсtory methods now returns self instead of static in classes:
    • Avtocod\B2BApi\Exceptions\*
    • Avtocod\B2BApi\Responses\Entities\*
    • Avtocod\B2BApi\Responses\*Response
  • Date/time objects in service responses & entities not immutable (DateTimeImmutable instead DateTime)

Fixed

  • Namespaces in unit-tests ClientTest, DateTimeFactoryTest and SettingsTest

v3.4.0: Guzzle 7 is supported now

09 Sep 10:01
c54c935
Compare
Choose a tag to compare

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

06 May 07:03
Compare
Choose a tag to compare

Fixed

  • Default value for parameter data in ::userReportMake (ClientInterface and Client) set to null

v3.3.0

01 May 07:31
df67c09
Compare
Choose a tag to compare

Added

  • Additional (optional) parameter data for ::userReportMake in ClientInterface and Client #8

v3.2.1

22 Jan 08:22
9fdd66a
Compare
Choose a tag to compare

Added

  • Tests running using GitHub Actions
  • phpstan configuration file with disabled checkGenericClassInNonGenericObjectType and checkMissingIterableValueType
  • 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

12 Jul 14:48
7270db8
Compare
Choose a tag to compare

Added

  • Interface WithRawResponseGetterInterface
  • Each \Avtocod\B2BApi\Responses\*Response class now implements WithRawResponseGetterInterface