xendit-php
xendit-php copied to clipboard
ERROR getAllTransactions using WITHDRAWAL status
Problem:
When attempting to call $apiInstance->getAllTransactions()
with the parameter types set to 'WITHDRAWAL', the following error occurs:
Invalid value 'NOT_APPLICABLE' for 'status', must be one of 'PENDING', 'COMPLETED', 'CANCELED', 'REVERSED'
Cause:
The error arises because the API response contains a status value of 'NOT_APPLICABLE'
, which is not currently handled by the FeeResponse
file.
Proposed Solution:
To resolve this issue, we need to update the FeeResponse
file to include support for the 'NOT_APPLICABLE'
status.
Steps to Reproduce:
- Call
$apiInstance->getAllTransactions()
with the types parameter set to 'WITHDRAWAL'. - Observe the error message stating the invalid value for the status.
Expected Behavior:
The FeeResponse file should be updated to recognize and handle the 'NOT_APPLICABLE' status returned by the API.