fixtures

package
v0.1122.0-renovateallm... Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attorney

func Attorney(
	tmpl template.Template,
	sessionStore *sesh.Store,
	shareCodeSender ShareCodeSender,
	donorStore DonorStore,
	certificateProviderStore CertificateProviderStore,
	attorneyStore AttorneyStore,
	eventClient *event.Client,
	lpaStoreClient *lpastore.Client,
) page.Handler

func CertificateProvider

func CertificateProvider(
	tmpl template.Template,
	sessionStore *sesh.Store,
	shareCodeSender ShareCodeSender,
	donorStore page.DonorStore,
	certificateProviderStore CertificateProviderStore,
	eventClient *event.Client,
	lpaStoreClient *lpastore.Client,
) page.Handler

func Dashboard

func Dashboard(
	tmpl template.Template,
	sessionStore *sesh.Store,
	shareCodeSender *page.ShareCodeSender,
	donorStore page.DonorStore,
	certificateProviderStore CertificateProviderStore,
	attorneyStore AttorneyStore,
) page.Handler

func Donor

func Donor(
	tmpl template.Template,
	sessionStore *sesh.Store,
	donorStore DonorStore,
	certificateProviderStore CertificateProviderStore,
	attorneyStore AttorneyStore,
	documentStore DocumentStore,
	eventClient *event.Client,
	lpaStoreClient *lpastore.Client,
) page.Handler

func Supporter added in v0.946.0

func Supporter(
	sessionStore *sesh.Store,
	organisationStore OrganisationStore,
	donorStore DonorStore,
	memberStore MemberStore,
	dynamoClient DynamoClient,
	searchClient *search.Client,
	shareCodeStore ShareCodeStore,
	certificateProviderStore CertificateProviderStore,
	attorneyStore AttorneyStore,
	documentStore DocumentStore,
	eventClient *event.Client,
	lpaStoreClient *lpastore.Client,
) page.Handler

Types

type DocumentStore added in v0.794.0

type DocumentStore interface {
	GetAll(context.Context) (page.Documents, error)
	Put(context.Context, page.Document) error
	Create(ctx context.Context, donor *actor.DonorProvidedDetails, filename string, data []byte) (page.Document, error)
}

type DonorStore

type DonorStore interface {
	Create(ctx context.Context) (*actor.DonorProvidedDetails, error)
	Link(ctx context.Context, shareCode actor.ShareCodeData) error
	Put(ctx context.Context, donorProvidedDetails *actor.DonorProvidedDetails) error
}

type DynamoClient added in v0.899.0

type DynamoClient interface {
	OneByUID(ctx context.Context, uid string, v interface{}) error
	Create(ctx context.Context, v interface{}) error
}

type FixtureData added in v0.1090.0

type FixtureData struct {
	LpaType                   string
	Progress                  int
	Redirect                  string
	Donor                     string
	CertificateProvider       string
	Attorneys                 string
	PeopleToNotify            string
	ReplacementAttorneys      string
	FeeType                   string
	PaymentTaskProgress       string
	WithVirus                 bool
	UseRealID                 bool
	CertificateProviderEmail  string
	CertificateProviderMobile string
	DonorSub                  string
}

type MemberStore added in v0.1032.0

type MemberStore interface {
	Create(ctx context.Context, firstNames, lastName string) (*actor.Member, error)
	CreateFromInvite(ctx context.Context, invite *actor.MemberInvite) error
	CreateMemberInvite(ctx context.Context, organisation *actor.Organisation, firstNames, lastname, email, code string, permission actor.Permission) error
	Put(ctx context.Context, member *actor.Member) error
}

type Name

type Name struct {
	Firstnames, Lastname string
}

type OrganisationStore added in v0.982.0

type OrganisationStore interface {
	Create(context.Context, *actor.Member, string) (*actor.Organisation, error)
	CreateLPA(context.Context) (*actor.DonorProvidedDetails, error)
}

type ShareCodeSender

type ShareCodeSender interface {
	SendCertificateProviderInvite(context context.Context, appData page.AppData, donorProvided page.CertificateProviderInvite) error
	SendAttorneys(context context.Context, appData page.AppData, donorProvided *lpastore.Lpa) error
	UseTestCode(shareCode string)
}

type ShareCodeStore added in v0.1089.0

type ShareCodeStore interface {
	Linked(ctx context.Context, data actor.ShareCodeData, email string) error
	PutDonor(ctx context.Context, code string, data actor.ShareCodeData) error
}

Jump to

Keyboard shortcuts

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