outbox for gateways
This commit is contained in:
@@ -25,13 +25,6 @@ var (
|
||||
ErrDuplicatePlanTemplate = errors.New("payments.storage: duplicate plan template")
|
||||
)
|
||||
|
||||
var (
|
||||
// Deprecated: use quote/storage.ErrQuoteNotFound.
|
||||
ErrQuoteNotFound = quotestorage.ErrQuoteNotFound
|
||||
// Deprecated: use quote/storage.ErrDuplicateQuote.
|
||||
ErrDuplicateQuote = quotestorage.ErrDuplicateQuote
|
||||
)
|
||||
|
||||
// Repository exposes persistence primitives for the payments domain.
|
||||
type Repository interface {
|
||||
Ping(ctx context.Context) error
|
||||
@@ -56,11 +49,13 @@ type PaymentsStore interface {
|
||||
type PaymentMethodsStore interface {
|
||||
Create(ctx context.Context, accountRef, organizationRef bson.ObjectID, method *pkgmodel.PaymentMethod) error
|
||||
Get(ctx context.Context, accountRef, methodRef bson.ObjectID) (*pkgmodel.PaymentMethod, error)
|
||||
GetPrivate(ctx context.Context, methodRef bson.ObjectID) (*pkgmodel.PaymentMethod, error)
|
||||
Update(ctx context.Context, accountRef bson.ObjectID, method *pkgmodel.PaymentMethod) error
|
||||
Delete(ctx context.Context, accountRef, methodRef bson.ObjectID) error
|
||||
DeleteCascade(ctx context.Context, accountRef, methodRef bson.ObjectID) error
|
||||
SetArchived(ctx context.Context, accountRef, organizationRef, methodRef bson.ObjectID, archived, cascade bool) error
|
||||
List(ctx context.Context, accountRef, organizationRef, recipientRef bson.ObjectID, cursor *pkgmodel.ViewCursor) ([]pkgmodel.PaymentMethod, error)
|
||||
ListPrivate(ctx context.Context, organizationRef, recipientRef bson.ObjectID, cursor *pkgmodel.ViewCursor) ([]pkgmodel.PaymentMethod, error)
|
||||
|
||||
SetArchivedByRecipient(ctx context.Context, recipientRef bson.ObjectID, archived bool) (int, error)
|
||||
DeleteByRecipient(ctx context.Context, recipientRef bson.ObjectID) error
|
||||
|
||||
Reference in New Issue
Block a user