Documentation ¶
Overview ¶
Package lpastore provides a client for the LPA store.
Index ¶
- Variables
- type Attorney
- type AttorneyDecisions
- type Attorneys
- type CertificateProvider
- type Client
- func (c *Client) CheckHealth(ctx context.Context) error
- func (c *Client) Lpa(ctx context.Context, lpaUID string) (*Lpa, error)
- func (c *Client) Lpas(ctx context.Context, lpaUIDs []string) ([]*Lpa, error)
- func (c *Client) SendAttorney(ctx context.Context, lpa *Lpa, attorney *attorneydata.Provided) error
- func (c *Client) SendCertificateProvider(ctx context.Context, certificateProvider *certificateproviderdata.Provided, ...) error
- func (c *Client) SendCertificateProviderConfirmIdentity(ctx context.Context, lpaUID string, ...) error
- func (c *Client) SendCertificateProviderOptOut(ctx context.Context, lpaUID string, actorUID actoruid.UID) error
- func (c *Client) SendDonorConfirmIdentity(ctx context.Context, donor *donordata.Provided) error
- func (c *Client) SendLpa(ctx context.Context, donor *donordata.Provided) error
- func (c *Client) SendPerfect(ctx context.Context, lpaUID string) error
- func (c *Client) SendRegister(ctx context.Context, lpaUID string) error
- type Doer
- type Donor
- type DonorStore
- type IdentityCheck
- type Lpa
- type LpaClient
- type PersonToNotify
- type ResolvingService
- type SecretsClient
- type TrustCorporation
- type TrustCorporationSignatory
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("lpa not found in lpa-store")
Functions ¶
This section is empty.
Types ¶
type Attorney ¶ added in v0.1139.0
type AttorneyDecisions ¶ added in v0.1341.0
type AttorneyDecisions struct { How lpadata.AttorneysAct Details string }
type Attorneys ¶ added in v0.1139.0
type Attorneys struct { Attorneys []Attorney TrustCorporation TrustCorporation }
type CertificateProvider ¶ added in v0.1139.0
type CertificateProvider struct { UID actoruid.UID `json:"uid"` FirstNames string `json:"firstNames"` LastName string `json:"lastName"` Email string `json:"email,omitempty"` Phone string `json:"phone,omitempty"` Address place.Address `json:"address"` Channel lpadata.Channel `json:"channel"` SignedAt time.Time `json:"signedAt"` ContactLanguagePreference localize.Lang `json:"contactLanguagePreference"` IdentityCheck IdentityCheck `json:"identityCheck"` // Relationship is not stored in the lpa-store so is defaulted to // Professional. We require it to determine whether to show the home address // page to a certificate provider. Relationship lpadata.CertificateProviderRelationship }
func (CertificateProvider) FullName ¶ added in v0.1139.0
func (c CertificateProvider) FullName() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SendAttorney ¶ added in v0.926.0
func (*Client) SendCertificateProvider ¶ added in v0.922.0
func (*Client) SendCertificateProviderConfirmIdentity ¶ added in v0.1247.0
func (*Client) SendCertificateProviderOptOut ¶ added in v0.1181.0
func (*Client) SendDonorConfirmIdentity ¶ added in v0.1247.0
func (*Client) SendPerfect ¶ added in v0.1231.0
type Donor ¶ added in v0.1247.0
type DonorStore ¶ added in v0.1116.0
type IdentityCheck ¶ added in v0.1247.0
type Lpa ¶ added in v0.1116.0
type Lpa struct { LpaKey dynamo.LpaKeyType LpaOwnerKey dynamo.LpaOwnerKeyType LpaID string LpaUID string RegisteredAt time.Time WithdrawnAt time.Time PerfectAt time.Time UpdatedAt time.Time Type lpadata.LpaType Donor Donor Attorneys Attorneys ReplacementAttorneys Attorneys CertificateProvider CertificateProvider PeopleToNotify []PersonToNotify AttorneyDecisions AttorneyDecisions ReplacementAttorneyDecisions AttorneyDecisions HowShouldReplacementAttorneysStepIn lpadata.ReplacementAttorneysStepIn HowShouldReplacementAttorneysStepInDetails string Restrictions string WhenCanTheLpaBeUsed lpadata.CanBeUsedWhen LifeSustainingTreatmentOption lpadata.LifeSustainingTreatment // SignedAt is the date the Donor signed their LPA (and signifies it has been // witnessed by their CertificateProvider) SignedAt time.Time CertificateProviderNotRelatedConfirmedAt time.Time Submitted bool Paid bool IsOrganisationDonor bool Drafted bool CannotRegister bool }
func FromDonorProvidedDetails ¶ added in v0.1139.0
func (Lpa) AllAttorneysSigned ¶ added in v0.1116.0
type PersonToNotify ¶ added in v0.1341.0
type PersonToNotify struct { UID actoruid.UID FirstNames string LastName string Address place.Address }
func (PersonToNotify) FullName ¶ added in v0.1341.0
func (p PersonToNotify) FullName() string
type ResolvingService ¶ added in v0.1116.0
type ResolvingService struct {
// contains filtered or unexported fields
}
A ResolvingService wraps a Client so that an Lpa can be retrieved without passing its UID.
func NewResolvingService ¶ added in v0.1116.0
func NewResolvingService(donorStore DonorStore, client LpaClient) *ResolvingService
func (*ResolvingService) Get ¶ added in v0.1116.0
func (s *ResolvingService) Get(ctx context.Context) (*Lpa, error)
func (*ResolvingService) ResolveList ¶ added in v0.1150.0
type SecretsClient ¶
type TrustCorporation ¶ added in v0.1139.0
Click to show internal directories.
Click to hide internal directories.