Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.1.0 #30

Merged
merged 7 commits into from
May 22, 2024
Merged

v4.1.0 #30

merged 7 commits into from
May 22, 2024

Conversation

b24io-sdk
Copy link
Collaborator

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

mesilov and others added 7 commits May 22, 2024 02:29
This commit introduces the 'Turnovers' functionality within the CardItemResult class. By doing so, it now provides additional information, such as the total purchases count and sum. Necessary tests and documentation have also been updated accordingly.
In this update, the GitHub Actions workflow for integration tests has been modified. Now, the workflow will be triggered not only on push events, but also when a pull request is made against the v4 or master branches.
In this commit, linting targets in the Makefile were updated and Rector was added as a new one. Additionally, package "rector/rector" was added to composer.json dependencies and the workflow was updated to accommodate the new PHPStan linting target name.
This commit introduces a new rector.php file to manage the rector configuration. With this update, paths to the /src and /tests directories are defined, PHP sets are specified, and a rule to add void return types to methods with no return is set up.

Signed-off-by: B24io <app@b24.io>
Performed housekeeping tasks on the codebase. Refactored existing code to make use of PHP 8.0 features such as constructor property promotion, match expression, and get_debug_type. Enhanced README.md to include more comprehensive package information, and updated the SDK version in ApiClient. Added support for viewing turnovers and card level in card and contact results.

Signed-off-by: B24io <app@b24.io>
The codebase has been modified for compatibility with PHP 8.2. A DowngradeLevelSetList was imported and utilized in rector.php to downgrade the PHP version. In BurnBonuses.php, the REASON_ID constant was refactored for clarity.

Signed-off-by: B24io <app@b24.io>
Add 'Turnovers' feature to CardItemResult
@b24io-sdk b24io-sdk self-assigned this May 22, 2024
@b24io-sdk b24io-sdk had a problem deploying to integration-tests May 22, 2024 18:52 — with GitHub Actions Failure
@b24io-sdk b24io-sdk temporarily deployed to integration-tests May 22, 2024 18:52 — with GitHub Actions Inactive
@b24io-sdk b24io-sdk temporarily deployed to integration-tests May 22, 2024 18:52 — with GitHub Actions Inactive
@b24io-sdk b24io-sdk temporarily deployed to integration-tests May 22, 2024 18:52 — with GitHub Actions Inactive
@b24io-sdk b24io-sdk merged commit aaaac02 into master May 22, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants