Skip to content

[ACL-69] Merchant account transactions #81

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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

stefandanaita
Copy link
Member

@stefandanaita stefandanaita commented May 6, 2025

This pull request introduces support for retrieving merchant account transactions, including new transaction types, interfaces, and related constants. It also updates the documentation and configuration files to reflect these changes. Below is a breakdown of the most important changes:

New Features and Enhancements:

  • Merchant Account Transactions API:

    • Added a getTransactions method to the MerchantAccount class to retrieve transactions within a specified date range. This method utilizes the MerchantAccountTransactionRetrievedInterface and the entityFactory to handle transaction data. (src/Entities/MerchantAccount/MerchantAccount.php)
    • Introduced various concrete transaction classes, including MerchantAccountPayment, MerchantAccountRefund, MerchantAccountPayout, MerchantAccountExecutedPayout, and MerchantAccountPendingPayout. These classes define specific transaction types and their associated fields. [1] [2] [3] [4] [5]
  • Constants for Transactions:

    • Added MerchantAccountTransactionTypes and MerchantAccountPayoutStatuses constants to define transaction type and payout status values. (src/Constants/MerchantAccountTransactionTypes.php, src/Constants/MerchantAccountPayoutStatuses.php) [1] [2]

Configuration Updates:

  • Dependency Bindings:

    • Added bindings for new transaction-related interfaces to their respective entity implementations in config/bindings.php.
  • Discriminators for Polymorphism:

    • Updated config/discriminations.php to include discriminators for transaction types and payout statuses, enabling polymorphic behavior for transaction entities.

Documentation:

  • README Update:

    • Added an example for retrieving a merchant account's list of transactions in the README.md file. This example demonstrates the usage of the new getTransactions method.
  • Changelog Update:

    • Documented the addition of merchant account transaction retrieval support in the CHANGELOG.md file under version 3.1.1.

@stefandanaita stefandanaita marked this pull request as ready for review May 6, 2025 18:55
@stefandanaita stefandanaita requested review from a team as code owners May 6, 2025 18:55
@stefandanaita stefandanaita force-pushed the acl-69/merchant-account-transactions branch from 20c3e51 to 0d8ebd7 Compare May 9, 2025 10:35
@stefandanaita stefandanaita marked this pull request as draft May 13, 2025 09:07
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