Skip to content

Conversation

@snmkl
Copy link
Contributor

@snmkl snmkl commented Sep 2, 2024

Currently all responses are loaded as symbols (see JSON parsing in http.rb). Thus all map accesses through strings are currently failing.

This fixes the parsing methods to support symbols and correctly handle API responses. This also adds a return value to the POST order call, returning the order_id, necessary to use during the fetch of the credit order data.

note: the public method get_decision is currently not working though it is not in the path of a simple integration to the API, it should be fixed next.

Currently all responses are loaded as symbols (see JSON parsing in http.rb).
Thus all map accesses through strings are currently failing.

This fixes the parsing methods to support symbols and correctly handle API responses.
This also adds a return value to the POST order call, returning the order_id, necessary to use
during the fetch of the credit order data.

note: the public method get_decision is currently not working though it is not in the path of
a simple integration to the API, it should be fixed next.
currently emails are sent as a single object, the API is expecting an array of emails
currently the credit order payload is sending extraneous parameters in body.
Those are not expected nor handled by the API
@snmkl
Copy link
Contributor Author

snmkl commented Sep 2, 2024

Added a couple other necessary fixes to make things work end-to-end

285ef2e

Fixes the consumer creation payload to match the payload expected the API

6c907da

Fixes the order creation payload to match the payload expected by the API

@snmkl snmkl requested a review from jiahou September 4, 2024 16:02
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

Successfully merging this pull request may close these issues.

3 participants