fixtures

package
v0.1555.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 44 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,
	shareCodeStore ShareCodeStore,
) 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,
	shareCodeStore ShareCodeStore,
) page.Handler

func Dashboard

func Dashboard(
	tmpl template.Template,
	sessionStore *sesh.Store,
	donorStore page.DonorStore,
	certificateProviderStore CertificateProviderStore,
	attorneyStore AttorneyStore,
	shareCodeStore ShareCodeStore,
) 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,
	shareCodeStore ShareCodeStore,
) page.Handler

func Supporter added in v0.946.0

func Supporter(
	tmpl template.Template,
	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

func Voucher added in v0.1362.0

func Voucher(
	tmpl template.Template,
	sessionStore *sesh.Store,
	shareCodeStore *sharecode.Store,
	shareCodeSender *sharecode.Sender,
	donorStore *donor.Store,
	voucherStore *voucher.Store,
	lpaStoreClient *lpastore.Client,
) page.Handler

Types

type AttorneyStore

type AttorneyStore interface {
	Create(ctx context.Context, shareCode sharecodedata.Link, email string) (*attorneydata.Provided, error)
	Put(ctx context.Context, attorney *attorneydata.Provided) error
}

type CertificateProviderStore

type CertificateProviderStore interface {
	Create(ctx context.Context, shareCode sharecodedata.Link, email string) (*certificateproviderdata.Provided, error)
	Put(ctx context.Context, certificateProvider *certificateproviderdata.Provided) error
}

type DocumentStore added in v0.794.0

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

type DonorStore

type DonorStore interface {
	Create(ctx context.Context) (*donordata.Provided, error)
	Link(ctx context.Context, shareCode sharecodedata.Link, donorEmail string) error
	Put(ctx context.Context, donorProvidedDetails *donordata.Provided) 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
	DonorEmail                string
	IdStatus                  string
	Voucher                   string
	FailedVouchAttempts       string
}

type MemberStore added in v0.1032.0

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

type Name

type Name struct {
	Firstnames, Lastname string
}

func (Name) Email added in v0.1349.0

func (n Name) Email() string

type OrganisationStore added in v0.982.0

type OrganisationStore interface {
	Create(context.Context, *supporterdata.Member, string) (*supporterdata.Organisation, error)
	CreateLPA(context.Context) (*donordata.Provided, error)
}

type ShareCodeSender

type ShareCodeSender interface {
	SendCertificateProviderInvite(context context.Context, appData appcontext.Data, invite sharecode.CertificateProviderInvite) error
	SendAttorneys(context context.Context, appData appcontext.Data, donorProvided *lpadata.Lpa) error
	UseTestCode(shareCode string)
}

type ShareCodeStore added in v0.1089.0

type ShareCodeStore interface {
	Put(ctx context.Context, actorType actor.Type, shareCode string, data sharecodedata.Link) error
	PutDonor(ctx context.Context, code string, data sharecodedata.Link) error
}

Jump to

Keyboard shortcuts

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