Skip to content

Development - #22

Merged
faridibin merged 19 commits into
mainfrom
development
Jun 16, 2026
Merged

Development#22
faridibin merged 19 commits into
mainfrom
development

Conversation

@faridibin

Copy link
Copy Markdown
Owner

No description provided.

…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.
- 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
- 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
@faridibin faridibin self-assigned this Jun 16, 2026
@faridibin
faridibin merged commit a2d5f8e into main Jun 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant