-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: currencycloud connector #54
Conversation
Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## main #54 +/- ##
==========================================
- Coverage 27.27% 25.55% -1.73%
==========================================
Files 73 81 +8
Lines 3707 3945 +238
==========================================
- Hits 1011 1008 -3
- Misses 2603 2843 +240
- Partials 93 94 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
form.Add("login_id", c.loginID) | ||
form.Add("api_key", c.apiKey) | ||
|
||
resp, err := c.httpClient.PostForm(c.buildEndpoint("v2/authenticate/api"), form) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forward a context to allow cancellation and open telemetry.
return nil, 0, fmt.Errorf("page must be greater than 0") | ||
} | ||
|
||
resp, err := c.httpClient.Get(c.buildEndpoint("v2/transactions/find?page=%d", page)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forward context.
return nil | ||
} | ||
|
||
type Duration time.Duration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A previous PR (merged) has added a custom time.Duration.
I prefer this implementation.
Can you rebase and update?
@antoinegelloz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR that you are talking about @gfyrag has indeed been merged, but not yet in main. It was based on this feat branch (https://github.com/formancehq/payments/pull/50/files) that still needs to be reviewed.
Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
5d210d9
Signed-off-by: Lawrence Zawila 113581282+darkmatterpool@users.noreply.github.com