CurrencyCloud / currencycloud-php

MIT License
15 stars 38 forks source link

Payer Address type is coded as Array #84

Closed shakerYounis closed 4 years ago

shakerYounis commented 4 years ago

Argument 5 passed to CurrencyCloud\Model\Payer::__construct() must be of the type array or null, string given, called in /home/vagrant/code/laravel/Lintium/vendor/currency-cloud/client/src/EntryPoint/PayersEntryPoint.php on line 47

jonathancouchman commented 4 years ago

Clearly the address field should be of type string and not array since this is what the json response from the api contains. Payer Entity should be updated to reflect this, however, update the Payer entity would be a breaking change for the create payment entry point, so need to consider whether to convert response to array to maintain backwards compatibility

jonathancouchman commented 4 years ago

Will format the response string into array to maintain backwards compatibility https://github.com/CurrencyCloud/currencycloud-php/pull/95