fixtures

package
v0.1181.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 28 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,
	organisationStore OrganisationStore,
	memberStore MemberStore,
) page.Handler

func CertificateProvider

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

func Dashboard

func Dashboard(
	tmpl template.Template,
	sessionStore *sesh.Store,
	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 AttorneyStore

type AttorneyStore interface {
	Create(ctx context.Context, lpaOwnerKey dynamo.LpaOwnerKeyType, attorneyUID actoruid.UID, isReplacement, isTrustCorporation bool, email string) (*actor.AttorneyProvidedDetails, error)
	Put(ctx context.Context, attorney *actor.AttorneyProvidedDetails) error
}

type CertificateProviderStore

type CertificateProviderStore interface {
	Create(ctx context.Context, lpaOwnerKey dynamo.LpaOwnerKeyType, certificateProviderUID actoruid.UID, email string) (*actor.CertificateProviderProvidedDetails, error)
	Put(ctx context.Context, certificateProvider *actor.CertificateProviderProvidedDetails) error
}

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