notify

package
v0.1323.0-renovateallm... Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttorneyOptedOutEmail added in v0.1313.0

type AttorneyOptedOutEmail struct {
	AttorneyFullName  string
	DonorFullName     string
	LpaType           string
	LpaUID            string
	DonorStartPageURL string
}

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 CertificateProviderFailedIDCheckEmail added in v0.1294.0

type CertificateProviderFailedIDCheckEmail struct {
	DonorFullName               string
	CertificateProviderFullName string
	LpaType                     string
	DonorStartPageURL           string
}

type CertificateProviderInviteEmail

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

type CertificateProviderOptedOutPostWitnessingEmail added in v0.1255.0

type CertificateProviderOptedOutPostWitnessingEmail struct {
	CertificateProviderFirstNames string
	CertificateProviderFullName   string
	DonorFullName                 string
	LpaType                       string
	LpaUID                        string
	DonorStartPageURL             string
}

type CertificateProviderOptedOutPreWitnessingEmail added in v0.1255.0

type CertificateProviderOptedOutPreWitnessingEmail struct {
	CertificateProviderFullName string
	DonorFullName               string
	LpaType                     string
	LpaUID                      string
	DonorStartPageURL           string
}

type CertificateProviderProvideCertificatePromptEmail added in v0.864.0

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

type Client

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

func New

func New(logger Logger, 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 DonorAccessEmail added in v0.1079.0

type DonorAccessEmail struct {
	SupporterFullName string
	OrganisationName  string
	LpaType           string
	DonorName         string
	URL               string
	ShareCode         string
}

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
	AttorneyOptOutURL         string
}

type InitialReplacementAttorneyEmail added in v0.883.0

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

type Logger added in v0.1178.0

type Logger interface {
	ErrorContext(ctx context.Context, msg string, args ...any)
}

type OrganisationMemberInviteEmail added in v0.997.0

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

type PaymentConfirmationEmail added in v0.1311.0

type PaymentConfirmationEmail struct {
	DonorFullNamesPossessive string
	LpaType                  string
	PaymentCardFullName      string
	LpaReferenceNumber       string
	PaymentReferenceID       string
	PaymentConfirmationDate  string
	AmountPaidWithCurrency   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