Files
payments/internal/api/services/payment_service_users_get.go
Paul NicolasandGitHub 979b040d94 feat(psu): add payment service user entity (#424)
* chore(storage): remove errors.Wrap deprecated

* feat: add psu models

* feat(storage): add psu migrations and functions

* feat(*): add payment service users entity

* feat(tests): update sdks and add psu integration tests

* feat(validation): add validation on email and phone number
2025-04-29 10:24:09 +02:00

18 lines
397 B
Go

package services
import (
"context"
"github.com/formancehq/payments/internal/models"
"github.com/google/uuid"
)
func (s *Service) PaymentServiceUsersGet(ctx context.Context, id uuid.UUID) (*models.PaymentServiceUser, error) {
psu, err := s.storage.PaymentServiceUsersGet(ctx, id)
if err != nil {
return nil, newStorageError(err, "cannot get payment service user")
}
return psu, nil
}