Documentation ¶
Index ¶
Constants ¶
View Source
const ( LoanFlowStarted = "loan.flow.started" EmailConfirmedType = "loan.email_confirmed" )
View Source
const EntityType = "loans"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregate ¶
type Aggregate struct { es.AggregateBase[*LoanView] }
func (*Aggregate) AcceptTermsAndConditions ¶
func (*Aggregate) ConfirmEmail ¶
func (*Aggregate) StartFlow ¶
func (a *Aggregate) StartFlow(cmd StartFlowCmd) error
type EmailConfirmed ¶
type EmailConfirmed struct { }
func (EmailConfirmed) Apply ¶
func (e EmailConfirmed) Apply(snapshot *LoanView) error
type FlowStarted ¶
func (FlowStarted) Apply ¶
func (f FlowStarted) Apply(state *LoanView) error
type LoanView ¶ added in v0.1.6
type LoanView struct { ID ID Version int ClientID ClientID TransactionID string TotalAmount Money State State Term int DeferredPct Percent IsEmailConfirmed bool }
func (*LoanView) SetVersion ¶ added in v0.1.6
type StartFlowCmd ¶
type TermsAndConditionsAccepted ¶
func (TermsAndConditionsAccepted) Apply ¶
func (t TermsAndConditionsAccepted) Apply(snapshot *LoanView) error
Click to show internal directories.
Click to hide internal directories.