mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* feat(*): add powens bank bridge * fix tests+tidy * fixes after code rabbit review * fix build * fix tests * fix connection state * fix complete user link in case of update link * fixes after review * fix precom * fix tests
18 lines
608 B
Go
18 lines
608 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/formancehq/payments/internal/models"
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
func (s *Service) PaymentServiceUsersUpdateLink(ctx context.Context, applicationName string, psuID uuid.UUID, connectorID models.ConnectorID, connectionID string, idempotencyKey *uuid.UUID, ClientRedirectURL *string) (string, string, error) {
|
|
attemptID, link, err := s.engine.UpdatePaymentServiceUserLink(ctx, applicationName, psuID, connectorID, connectionID, idempotencyKey, ClientRedirectURL)
|
|
if err != nil {
|
|
return "", "", handleEngineErrors(err)
|
|
}
|
|
|
|
return attemptID, link, nil
|
|
}
|