Documentation
¶
Index ¶
Constants ¶
View Source
const ( PaymentCreated = eventflow.EventType("PaymentCreated") PaymentDeleted = eventflow.EventType("PaymentDeleted") BeneficiaryUpdated = eventflow.EventType("BeneficiaryUpdated") DebtorUpdated = eventflow.EventType("DebtorUpdated") )
View Source
const (
AggregatePayments = "payments"
)
Variables ¶
View Source
var ErrNoRows = sql.ErrNoRows
ErrNoRows is returned in case of no records found in store
View Source
var ErrPartyNotSupported = errors.New("third party not supported")
ErrPartyNotSupported informs about not supported third party
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Save(context.Context, Payment) error UpdateBeneficiary(context.Context, ThirdParty) error UpdateDebtor(context.Context, ThirdParty) error Delete(context.Context, string) error }
Repository
type Service ¶
type Service interface { Create(context.Context, Payment) (Payment, error) UpdateThirdParty(context.Context, ThirdParty, string) error Delete(context.Context, string) error }
Service
type Store ¶
type Store interface { Save(context.Context, eventflow.Event) error Update(context.Context, eventflow.Event) error Delete(context.Context, eventflow.Event) error }
Store interface for payment events
type UpdateBeneficiaryCommand ¶
type UpdateBeneficiaryCommand struct {
ThirdParty
}
UpdateBeneficiaryCommand
Click to show internal directories.
Click to hide internal directories.