Development - #22
Merged
Merged
Conversation
…es with detailed descriptions and return types
…erminal management - Introduced DedicatedAccountInterface for dedicated virtual account operations including create, list, assign, fetch, deactivate, requery, add/remove split, and fetch bank providers. - Added StorefrontInterface for storefront management operations with methods to list and fetch storefronts. - Created VirtualTerminalInterface for managing virtual terminal transactions, including create, list, fetch, update, deactivate, assign/unassign destinations, and manage split codes. refactor: Update response type hints in payment-related interfaces - Updated return type hints from fully qualified class names to simplified Response type in DisputesInterface, PaymentRequestsInterface, PaymentsInterface, RefundsInterface, SettlementsInterface, SubaccountsInterface, TerminalInterface, TransactionsInterface, and TransfersInterface. - Added documentation comments to clarify the purpose of each interface and method.
- Added strict typing to various service classes for better type safety. - Updated documentation comments to clarify parameters and return types. - Introduced new methods in the Terminal service for managing events and terminal status. - Expanded the Splits service to include more functionalities for transaction splits. - Enhanced the Transactions service with additional methods for managing transactions. - Created a new Storefront service for managing Paystack storefronts. - Added a Virtual Terminal service for managing virtual terminals and their configurations. - Improved the Transfers service with new methods for managing transfer OTP settings and bulk transfers. - Updated the Verification service to enhance account and card verification processes.
… storefront, and transfer management
- Implement tests for Settlements service including listing settlements and fetching transactions. - Create tests for Splits service covering split creation, listing, fetching, updating, and subaccount management. - Add tests for Storefront service to handle storefront creation, listing, fetching, updating, deleting, and product management. - Introduce tests for Subaccounts service to validate subaccount creation, listing, fetching, and updating. - Develop tests for Subscriptions service to ensure subscription creation, listing, fetching, enabling/disabling, and link generation. - Implement tests for Terminal service to cover event sending, status fetching, terminal listing, and updates. - Add tests for Transactions service to validate transaction initialization, verification, listing, fetching, and exporting. - Create tests for Transfers service to ensure transfer initiation, finalization, fetching, verification, and OTP management. - Introduce tests for Virtual Terminal service covering creation, listing, fetching, updating, and destination management. - Add spec conformance tests to ensure SDK endpoints match Paystack's official OpenAPI spec. - Implement tests for Webhook validation and IP whitelisting.
…er hydration and handling of nullable properties
…improve type safety
- Updated mockery/mockery to version 1.6 in composer.json - Added pestphp/pest for testing framework - Changed test command to use Pest instead of PHPUnit - Added phpstan.neon configuration for PHPStan analysis - Created phpunit.xml for PHPUnit configuration - Updated HealthInterface to return Health object - Refactored Collection DTO to handle items correctly - Enhanced Relationships DTO with metadata handling - Renamed PaystackException parameter for clarity - Updated Health service constructor and return types - Added deleteProduct method to Products service - Updated Order service to fetch orders by product - Fixed ApplePay service query parameter naming - Corrected BulkCharges service endpoint paths - Updated Charge service method parameters - Refined Customers service authorization methods - Adjusted Disputes service endpoint paths - Enhanced Refunds service retry method - Updated Subaccounts service method parameters - Fixed Transactions/Splits service parameter naming - Added new methods to Storefront service for CRUD operations - Enhanced Transfers service to include reference parameter - Updated Verification service method descriptions - Refactored HasMetadata trait for null checks - Improved Webhook class return types - Added SpecEndpoints.php for API endpoint validation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.