Documentation
¶
Index ¶
- Variables
- type Attorney
- 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) SendAttorney(ctx context.Context, donor *Lpa, attorney *actor.AttorneyProvidedDetails) error
- func (c *Client) SendCertificateProvider(ctx context.Context, lpaUID string, ...) error
- func (c *Client) SendLpa(ctx context.Context, donor *actor.DonorProvidedDetails) error
- type Doer
- type DonorStore
- type Lpa
- type LpaClient
- 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 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 actor.CertificateProviderCarryOutBy `json:"channel"` SignedAt time.Time `json:"signedAt"` ContactLanguagePreference localize.Lang `json:"contactLanguagePreference"` // TODO: figure out what to do with this field, maybe change it to a different // name to make it more obvious it only has one purpose? Relationship actor.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
type DonorStore ¶ added in v0.1116.0
type DonorStore interface {
GetAny(ctx context.Context) (*actor.DonorProvidedDetails, error)
}
type Lpa ¶ added in v0.1116.0
type Lpa struct { LpaID string LpaUID string RegisteredAt date.Date UpdatedAt date.Date Type actor.LpaType Donor actor.Donor Attorneys Attorneys ReplacementAttorneys Attorneys CertificateProvider CertificateProvider PeopleToNotify actor.PeopleToNotify AttorneyDecisions actor.AttorneyDecisions ReplacementAttorneyDecisions actor.AttorneyDecisions HowShouldReplacementAttorneysStepIn actor.ReplacementAttorneysStepIn HowShouldReplacementAttorneysStepInDetails string Restrictions string WhenCanTheLpaBeUsed actor.CanBeUsedWhen LifeSustainingTreatmentOption actor.LifeSustainingTreatment SignedAt time.Time CertificateProviderNotRelatedConfirmedAt time.Time DonorIdentityConfirmed bool Submitted bool Paid bool IsOrganisationDonor bool }
func (Lpa) AllAttorneysSigned ¶ added in v0.1116.0
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
type SecretsClient ¶
type TrustCorporation ¶ added in v0.1139.0
Click to show internal directories.
Click to hide internal directories.