xendit-php icon indicating copy to clipboard operation
xendit-php copied to clipboard

ERROR getAllTransactions using WITHDRAWAL status

Open gilbertronaldo opened this issue 1 year ago • 0 comments

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.

image

Steps to Reproduce:

  1. Call $apiInstance->getAllTransactions() with the types parameter set to 'WITHDRAWAL'.
  2. 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.

gilbertronaldo avatar Feb 07 '24 05:02 gilbertronaldo