Skip to content

Releases: b24io/loyalty-php-sdk

3.3.1 — 2024.07.29

29 Jul 15:14
afb4789
Compare
Choose a tag to compare

Changed

  • removed ext-bcmath in composer requirement

3.3.0 — 2024.07.10

09 Jul 19:30
8468e7a
Compare
Choose a tag to compare

Added

  • add requirements:
    • nesbot/carbon version ^2.*,
  • add MobilePhoneItemResult – information about mobile phone.
  • add support for mobile phone for ContactItemResult
  • add support for mobile phone for CardItemResult

Changed

  • change signature for method Loyalty\SDK\Services\Admin\Contacts::add, argument $mobilePhone can be nullable.
  • change signature for method Loyalty\SDK\Services\Admin\Contacts::getById from ContactItemResult to ContactResult
  • change signature for method Loyalty\SDK\Services\Admin\Cards::getById from CardItemResult to CardResult
  • change DateTimeImmutable to CarbonImmutable in all results

3.2.0 (2024.05.23)

23 May 07:42
f0d0d2b
Compare
Choose a tag to compare

Downgrade branch v3 to PHP 7.4

What's Changed

Full Changelog: 3.0...3.2.0

4.1.0

22 May 18:57
afc779f
Compare
Choose a tag to compare

4.1.0 (2024.05.22)

  • add TurnoversItemResult for CardItemResult, contains:
    • total purchases count
    • total purchases sum
  • add TurnoversItemResult for ContactItemResult, contains:
    • total purchases count
    • total purchases sum
  • add CardLevelItem for ContactItemResult, contains:
    • id card level id
    • nextLevelId next level id
    • name level name
    • code level code
    • defaultPercentage card level default percentage
    • description card level description
    • externalId card level external id
    • created date time card level create
    • modified date time card level update

4.0.0

12 May 12:00
35ecccf
Compare
Choose a tag to compare

LOYALTY-PHP-SDK version for PHP 8.2 and 8.3

3.1.0

12 May 03:51
9a21b75
Compare
Choose a tag to compare
  • add requirements:
    • symfony/console version 7.*,
    • symfony/dotenv: version 7.*,
  • add InvalidArgumentException class
  • add ItemsOrder for Command class
  • add Cards::add method for add cards, you can set start params for card:
    • card start balance
    • card start percentage
    • card start status: active or blocked
  • add order by argument for entities:
    • cards - order available by fields
      • created
      • modified
      • balance
    • contacts
      • created
      • modified
  • add ItemsOrder for Cards\Fetcher class
  • add Contacts::count for count contacts
  • add ContactsFetcher for bulk read contacts

3.0.0

08 May 07:37
99ede99
Compare
Choose a tag to compare
  • migrate to 'symfony/http-client'
  • bump minimum PHP version requirements to 8.3.*
  • add TransactionsFetcher - fetch transactions
  • add cli command transactions:burn-bonuses
  • add TransactionsReader - read transactions from csv-file

2.1.2

01 Jun 21:45
a6363cb
Compare
Choose a tag to compare
  • bump guzzlehttp/guzzle version requirements to 6.*

2.1.1 — 2022.01.12

12 Jan 19:42
Compare
Choose a tag to compare
  • bump ramsey/uuid version requirements to 4.*
  • bump php version requirements to 7.4 or 8.*

2.0.1 — 2020.10.01

28 Sep 22:39
37a034b
Compare
Choose a tag to compare

2.0.1 (1.10.2020)

  • add support for rps-error limits - no more than 2 rps
  • update dependencies
  • add x-request-id header support