Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox account has invalid enum value for CreditorSchemeIdentifierSheme #91

Open
tamerhaibooks opened this issue Nov 8, 2022 · 0 comments

Comments

@tamerhaibooks
Copy link

I created a sandbox account to test connectivity but cannot get client.Creditors response, debugged the issue by intercepting httpclient and seen that my connected account has invalid value for CreditorSchemeIdentifierScheme enum.

Please check the response payload I intercepted for client.Creditors.ListAsync() method:
The issue is on "scheme":"faster_payments" there is not an enum value named faster_payments on CreditorSchemeIdentifierScheme so it cannot parse json to model.

{"creditors":[{"id":"CR0000782BA38K","created_at":"2022-11-08T10:46:41.921Z","name":"SA LTD","address_line1":null,"address_line2":null,"address_line3":null,"city":null,"region":null,"postal_code":null,"country_code":"GB","logo_url":null,"scheme_identifiers":[{"name":"GoCardless","scheme":"ach","reference":"00000000","minimum_advance_notice":2,"currency":"USD","address_line1":"Sutton Yard","address_line2":"65 Goswell Road","address_line3":null,"city":"London","region":null,"postal_code":"EC1V 7EN","country_code":"GB","email":"[email protected]","phone_number":"+44 20 7183 8674","can_specify_mandate_reference":false},{"name":"GoCardless","scheme":"autogiro","reference":"3171634","minimum_advance_notice":8,"currency":"SEK","address_line1":"Sutton Yard","address_line2":"65 Goswell Road","address_line3":null,"city":"London","region":null,"postal_code":"EC1V 7EN","country_code":"GB","email":"[email protected]","phone_number":"+44 20 7183 8674","can_specify_mandate_reference":false},{"name":"GoCardless Ltd","scheme":"bacs","reference":"275069","minimum_advance_notice":3,"currency":"GBP","address_line1":"Sutton Yard","address_line2":"65 Goswell Road","address_line3":null,"city":"London","region":null,"postal_code":"EC1V 7EN","country_code":"GB","email":"[email protected]","phone_number":"+44 20 7183 8674","can_specify_mandate_reference":false},{"name":"GoCardless","scheme":"becs","reference":"488299","minimum_advance_notice":1,"currency":"AUD","address_line1":"Level 9","address_line2":"401 Collins Street","address_line3":null,"city":"Melbourne","region":null,"postal_code":"VIC 3000","country_code":"AU","email":"[email protected]","phone_number":"+61 3 8375 9198","can_specify_mandate_reference":false},{"name":"GoCardless","scheme":"becs_nz","reference":"1220559","minimum_advance_notice":2,"currency":"NZD","address_line1":"Sutton Yard","address_line2":"65 Goswell Road","address_line3":null,"city":"London","region":null,"postal_code":"EC1V 7EN","country_code":"GB","email":"[email protected]","phone_number":"+44 20 7183 8674","can_specify_mandate_reference":false},{"name":"GoCardless","scheme":"betalingsservice","reference":"09025677","minimum_advance_notice":6,"currency":"DKK","address_line1":"Sutton Yard","address_line2":"65 Goswell Road","address_line3":null,"city":"London","region":null,"postal_code":"EC1V 7EN","country_code":"GB","email":"[email protected]","phone_number":"+44 20 7183 8674","can_specify_mandate_reference":false},{"name":"GoCardless","scheme":"faster_payments","reference":"000000","minimum_advance_notice":0,"currency":"GBP","address_line1":"Sutton Yard","address_line2":"65 Goswell Road","address_line3":null,"city":"London","region":null,"postal_code":"EC1V 7EN","country_code":"GB","email":"[email protected]","phone_number":"+44 20 7183 8674","can_specify_mandate_reference":false},{"name":"GoCardless","scheme":"pad","reference":"2185310000","minimum_advance_notice":3,"currency":"CAD","address_line1":"Sutton Yard","address_line2":"65 Goswell Road","address_line3":null,"city":"London","region":null,"postal_code":"EC1V 7EN","country_code":"GB","email":"[email protected]","phone_number":"+44 20 7183 8674","can_specify_mandate_reference":false},{"name":"GoCardless","scheme":"pay_to","reference":"00000000","minimum_advance_notice":0,"currency":"AUD","address_line1":"338-346 Goswell Road","address_line2":null,"address_line3":null,"city":"London","region":null,"postal_code":"EC1V 7LQ","country_code":"GB","email":"[email protected]","phone_number":"+44 20 7183 8674","can_specify_mandate_reference":false},{"name":"GoCardless","scheme":"sepa","reference":"GB27ZZZSDDBARC0000007495895","minimum_advance_notice":3,"currency":"EUR","address_line1":"Sutton Yard","address_line2":"65 Goswell Road","address_line3":null,"city":"London","region":null,"postal_code":"EC1V 7EN","country_code":"GB","email":"[email protected]","phone_number":"+44 20 7183 8674","can_specify_mandate_reference":false},{"name":"GoCardless","scheme":"sepa_credit_transfer","reference":"00000000","minimum_advance_notice":0,"currency":"EUR","address_line1":"Sutton Yard","address_line2":"65 Goswell Road","address_line3":null,"city":"London","region":null,"postal_code":"EC1V 7EN","country_code":"GB","email":"[email protected]","phone_number":"+33 1 70 37 71 23","can_specify_mandate_reference":false},{"name":"GoCardless","scheme":"sepa_instant_credit_transfer","reference":"00000000","minimum_advance_notice":0,"currency":"EUR","address_line1":"Sutton Yard","address_line2":"65 Goswell Road","address_line3":null,"city":"London","region":null,"postal_code":"EC1V 7EN","country_code":"GB","email":"[email protected]","phone_number":"+33 1 70 37 71 23","can_specify_mandate_reference":false}],"verification_status":"successful","can_create_refunds":false,"fx_payout_currency":null,"mandate_imports_enabled":false,"custom_payment_pages_enabled":true,"merchant_responsible_for_notifications":false,"links":{"default_gbp_payout_account":"BA000PPHG8VYNB"},"activated":false}],"meta":{"cursors":{"before":null,"after":null},"limit":1}}

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

No branches or pull requests

1 participant