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

feat: stripe transfers integration #64

Merged
merged 5 commits into from
Dec 5, 2022

Conversation

darkmatterpool
Copy link
Contributor

Signed-off-by: Lawrence Zawila <113581282+darkmatterpool@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Nov 29, 2022

Codecov Report

Merging #64 (7a424d8) into main (461f5a0) will decrease coverage by 0.52%.
The diff coverage is 0.72%.

@@            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     
Impacted Files Coverage Δ
internal/app/api/connectormodule.go 0.00% <ø> (ø)
internal/app/api/module.go 0.00% <ø> (ø)
internal/app/api/router.go 0.00% <0.00%> (ø)
internal/app/api/stripe.go 0.00% <0.00%> (ø)
internal/pkg/connectors/bankingcircle/config.go 0.00% <0.00%> (ø)
internal/pkg/connectors/bankingcircle/loader.go 0.00% <0.00%> (ø)
internal/pkg/connectors/currencycloud/config.go 0.00% <0.00%> (ø)
internal/pkg/connectors/currencycloud/connector.go 0.00% <ø> (ø)
internal/pkg/connectors/currencycloud/loader.go 0.00% <0.00%> (ø)
internal/pkg/connectors/dummypay/config.go 68.00% <0.00%> (ø)
... and 13 more

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:
Copy link
Member

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
Copy link
Member

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?

@flemzord flemzord requested a review from gfyrag November 30, 2022 09:28
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>
connectorStore := integration.NewMongoDBConnectorStore(db)
var cfg stripeConnector.Config

err := connectorStore.ReadConfig(context.Background(), stripeConnector.Name, &cfg)
Copy link
Contributor

@gfyrag gfyrag Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading config out of the request scope will "freeze" api key for the service instance.
Not allowing to update the api key if needed, without a restart of the service.
Right?

}

params := &stripe.TransferParams{
Amount: stripe.Int64(transferRequest.Amount),
Copy link
Contributor

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>
@darkmatterpool darkmatterpool merged commit 06ee7a9 into main Dec 5, 2022
@darkmatterpool darkmatterpool deleted the feat/stripe-transfers-integration branch December 5, 2022 10:09
flemzord added a commit that referenced this pull request Sep 25, 2024
Co-authored-by: Geoffrey Ragot <geoffrey.ragot@gmail.com>
Co-authored-by: Maxence Maireaux <maxence@maireaux.fr>
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