notify

package
v0.1003.0-MLPAB1742das... Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateProviderActingDigitallyHasConfirmedPersonalDetailsLPADetailsChangedPromptSMS added in v0.867.0

type CertificateProviderActingDigitallyHasConfirmedPersonalDetailsLPADetailsChangedPromptSMS struct {
	DonorFullNamePossessive string
	LpaType                 string
	LpaUID                  string
	DonorFirstNames         string
}

type CertificateProviderActingDigitallyHasNotConfirmedPersonalDetailsLPADetailsChangedPromptSMS added in v0.867.0

type CertificateProviderActingDigitallyHasNotConfirmedPersonalDetailsLPADetailsChangedPromptSMS struct {
	DonorFullName string
	LpaType       string
}

type CertificateProviderActingOnPaperDetailsChangedSMS added in v0.864.0

type CertificateProviderActingOnPaperDetailsChangedSMS struct {
	DonorFullName   string
	LpaUID          string
	DonorFirstNames string
}

type CertificateProviderActingOnPaperMeetingPromptSMS added in v0.864.0

type CertificateProviderActingOnPaperMeetingPromptSMS struct {
	DonorFullName                   string
	LpaType                         string
	DonorFirstNames                 string
	CertificateProviderStartPageURL string
}

type CertificateProviderCertificateProvidedEmail added in v0.842.0

type CertificateProviderCertificateProvidedEmail struct {
	DonorFullNamePossessive     string
	LpaType                     string
	CertificateProviderFullName string
	CertificateProvidedDateTime string
	DonorFirstNamesPossessive   string
}

type CertificateProviderInviteEmail

type CertificateProviderInviteEmail struct {
	DonorFullName               string
	LpaType                     string
	CertificateProviderFullName string
	DonorFirstNames             string
	DonorFirstNamesPossessive   string
	WhatLpaCovers               string
	CertificateProviderStartURL string
	ShareCode                   string
}

func (CertificateProviderInviteEmail) WithShareCode added in v0.885.0

func (e CertificateProviderInviteEmail) WithShareCode(shareCode string) Email

type CertificateProviderProvideCertificatePromptEmail added in v0.864.0

type CertificateProviderProvideCertificatePromptEmail struct {
	DonorFullName               string
	DonorFullNamePossessive     string
	LpaType                     string
	CertificateProviderFullName string
	CertificateProviderStartURL string
	ShareCode                   string
}

func (CertificateProviderProvideCertificatePromptEmail) WithShareCode added in v0.885.0

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(isProduction bool, baseURL, apiKey string, httpClient Doer, eventClient EventClient) (*Client, error)

func (*Client) SendActorEmail added in v0.980.0

func (c *Client) SendActorEmail(ctx context.Context, to, lpaUID string, email Email) error

func (*Client) SendActorSMS added in v0.992.0

func (c *Client) SendActorSMS(ctx context.Context, to, lpaUID string, sms SMS) error

func (*Client) SendEmail added in v0.881.0

func (c *Client) SendEmail(ctx context.Context, to string, email Email) error

type Doer

type Doer interface {
	Do(*http.Request) (*http.Response, error)
}

type Email

type Email interface {
	// contains filtered or unexported methods
}

type EventClient added in v0.980.0

type EventClient interface {
	SendNotificationSent(ctx context.Context, event event.NotificationSent) error
}

type InitialOriginalAttorneyEmail added in v0.881.0

type InitialOriginalAttorneyEmail struct {
	DonorFullName             string
	LpaType                   string
	AttorneyFullName          string
	DonorFirstNames           string
	AttorneyStartPageURL      string
	ShareCode                 string
	DonorFirstNamesPossessive string
}

func (InitialOriginalAttorneyEmail) WithShareCode added in v0.885.0

func (e InitialOriginalAttorneyEmail) WithShareCode(shareCode string) Email

type InitialReplacementAttorneyEmail added in v0.883.0

type InitialReplacementAttorneyEmail struct {
	DonorFullName             string
	LpaType                   string
	AttorneyFullName          string
	DonorFirstNames           string
	AttorneyStartPageURL      string
	ShareCode                 string
	DonorFirstNamesPossessive string
}

func (InitialReplacementAttorneyEmail) WithShareCode added in v0.885.0

func (e InitialReplacementAttorneyEmail) WithShareCode(shareCode string) Email

type OrganisationMemberInviteEmail added in v0.997.0

type OrganisationMemberInviteEmail struct {
	OrganisationName      string
	InviterFullName       string
	InviterEmail          string
	InviteCode            string
	JoinAnOrganisationURL string
}

type SMS added in v0.891.0

type SMS interface {
	// contains filtered or unexported methods
}

type Sms

type Sms struct {
	PhoneNumber     string            `json:"phone_number"`
	TemplateID      string            `json:"template_id"`
	Personalisation map[string]string `json:"personalisation,omitempty"`
	Reference       string            `json:"reference,omitempty"`
}

type WitnessCodeSMS added in v0.867.0

type WitnessCodeSMS struct {
	WitnessCode   string
	DonorFullName string
	LpaType       string
}

Jump to

Keyboard shortcuts

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