[ACL-69] Merchant account transactions #81
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
getTransactions
method to theMerchantAccount
class to retrieve transactions within a specified date range. This method utilizes theMerchantAccountTransactionRetrievedInterface
and theentityFactory
to handle transaction data. (src/Entities/MerchantAccount/MerchantAccount.php
)MerchantAccountPayment
,MerchantAccountRefund
,MerchantAccountPayout
,MerchantAccountExecutedPayout
, andMerchantAccountPendingPayout
. These classes define specific transaction types and their associated fields. [1] [2] [3] [4] [5]Constants for Transactions:
MerchantAccountTransactionTypes
andMerchantAccountPayoutStatuses
constants to define transaction type and payout status values. (src/Constants/MerchantAccountTransactionTypes.php
,src/Constants/MerchantAccountPayoutStatuses.php
) [1] [2]Configuration Updates:
Dependency Bindings:
config/bindings.php
.Discriminators for Polymorphism:
config/discriminations.php
to include discriminators for transaction types and payout statuses, enabling polymorphic behavior for transaction entities.Documentation:
README Update:
README.md
file. This example demonstrates the usage of the newgetTransactions
method.Changelog Update:
CHANGELOG.md
file under version3.1.1
.