adyen-php-api-library icon indicating copy to clipboard operation
adyen-php-api-library copied to clipboard

[Bug]: Unable to get transfer instrument for CA

Open hamzakahil1993 opened this issue 6 months ago • 2 comments

Description

getTransferInstrument return an error for CA

Steps to reproduce

  1. Install Adyen library
  2. Call getTransferInstrument method

Actual behavior

When calling $transferInstrumentsApi->getTransferInstrument($tranferInstrumentId); I am getting the following error : Invalid value 'caRoutingNumber' for 'type', must be one of 'gbSortCode', 'usRoutingNumber'

Expected behavior

getTransferInstrument should return the object \Adyen\Model\LegalEntityManagement\TransferInstrument or null

Code snippet or screenshots (if applicable)

No response

Adyen PHP API Library version

22.1

PHP version

8.1

Operating System

Linux

Additional context

No response

hamzakahil1993 avatar May 06 '25 09:05 hamzakahil1993

Apologies for the inconvenience, I see that the OpenAPI spec file doesn't support yet the enum caRoutingNumber. I will contact the Dev Team responsible for this and get them to update it asap.

gcatanese avatar May 06 '25 14:05 gcatanese

This is a similar issue as #755

bobbybouwmann avatar May 08 '25 10:05 bobbybouwmann

Apologies for the delay, this should be addressed by #804. Can you maybe confirm? Thank you

gcatanese avatar Aug 11 '25 13:08 gcatanese

Fixed by #804

gcatanese avatar Aug 14 '25 12:08 gcatanese