-
Notifications
You must be signed in to change notification settings - Fork 2
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: stripe transfers integration #64
Conversation
Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## main #64 +/- ##
==========================================
- Coverage 24.00% 23.47% -0.53%
==========================================
Files 89 91 +2
Lines 4233 4306 +73
==========================================
- Hits 1016 1011 -5
- Misses 3123 3200 +77
- Partials 94 95 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
swagger.yml
Outdated
amount: | ||
type: integer | ||
example: 100 | ||
currency: |
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.
Maybe replace for "asset", because in the whole project we are talking about asset and not currency.
@@ -38,5 +38,5 @@ func (c Config) BuildTemplate() (string, configtemplate.Config) { | |||
cfg.AddParameter("pollingPeriod", configtemplate.TypeDurationNs, false) | |||
cfg.AddParameter("pageSize", configtemplate.TypeDurationUnsignedInteger, false) | |||
|
|||
return connectorName, cfg |
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.
Maybe do it on all connectors?
Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
internal/app/api/stripe.go
Outdated
connectorStore := integration.NewMongoDBConnectorStore(db) | ||
var cfg stripeConnector.Config | ||
|
||
err := connectorStore.ReadConfig(context.Background(), stripeConnector.Name, &cfg) |
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.
} | ||
|
||
params := &stripe.TransferParams{ | ||
Amount: stripe.Int64(transferRequest.Amount), |
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.
Please, can you forward context on params?
Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
Co-authored-by: Geoffrey Ragot <geoffrey.ragot@gmail.com> Co-authored-by: Maxence Maireaux <maxence@maireaux.fr>
Signed-off-by: Lawrence Zawila 113581282+darkmatterpool@users.noreply.github.com