app

package
v0.0.0-...-e510c16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2019 License: MIT Imports: 5 Imported by: 0

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 CreatePaymentCommand

type CreatePaymentCommand struct {
	Payment
}

CreatePaymentCommand

type DeletePaymentCommand

type DeletePaymentCommand struct {
	ID string
}

DeletePaymentCommand

type Payment

type Payment payment.Payment

Payment model

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 ThirdParty

type ThirdParty payment.ThirdParty

ThirdParty model

type UpdateBeneficiaryCommand

type UpdateBeneficiaryCommand struct {
	ThirdParty
}

UpdateBeneficiaryCommand

type UpdateDebtorCommand

type UpdateDebtorCommand struct {
	ThirdParty
}

UpdateDebtorCommand

type Validator

type Validator interface {
	Validate(context.Context, Payment) error
}

Validator for validates payments

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL