notify

package
v0.971.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 8 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) (*Client, error)

func (*Client) SendEmail added in v0.881.0

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

func (*Client) SendSMS added in v0.891.0

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

type Doer

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

type Email

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

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 MemberInviteEmail added in v0.949.0

type MemberInviteEmail struct {
	OrganisationName string
	InviteCode       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