event

package
v0.1564.0-weblatepr.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package event provides a client for AWS EventBridge.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationDeleted added in v0.1349.0

type ApplicationDeleted struct {
	UID string `json:"uid"`
}

type ApplicationUpdated added in v0.805.0

type ApplicationUpdated struct {
	UID       string                  `json:"uid"`
	Type      string                  `json:"type"`
	CreatedAt time.Time               `json:"createdAt"`
	Donor     ApplicationUpdatedDonor `json:"donor"`
}

type ApplicationUpdatedDonor added in v0.805.0

type ApplicationUpdatedDonor struct {
	FirstNames  string        `json:"firstNames"`
	LastName    string        `json:"lastName"`
	DateOfBirth date.Date     `json:"dob"`
	Address     place.Address `json:"address"`
}

type AttorneyStarted added in v0.1376.0

type AttorneyStarted struct {
	LpaUID   string       `json:"uid"`
	ActorUID actoruid.UID `json:"actorUID"`
}

type CertificateProviderStarted added in v0.1351.0

type CertificateProviderStarted struct {
	UID string `json:"uid"`
}

type Client

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

func NewClient

func NewClient(cfg aws.Config, eventBusName string) *Client

func (*Client) SendApplicationDeleted added in v0.1349.0

func (c *Client) SendApplicationDeleted(ctx context.Context, event ApplicationDeleted) error

func (*Client) SendApplicationUpdated added in v0.805.0

func (c *Client) SendApplicationUpdated(ctx context.Context, event ApplicationUpdated) error

func (*Client) SendAttorneyStarted added in v0.1376.0

func (c *Client) SendAttorneyStarted(ctx context.Context, event AttorneyStarted) error

func (*Client) SendCertificateProviderStarted added in v0.1351.0

func (c *Client) SendCertificateProviderStarted(ctx context.Context, event CertificateProviderStarted) error

func (*Client) SendIdentityCheckMismatched added in v0.1460.0

func (c *Client) SendIdentityCheckMismatched(ctx context.Context, event IdentityCheckMismatched) error

func (*Client) SendNotificationSent added in v0.962.0

func (c *Client) SendNotificationSent(ctx context.Context, event NotificationSent) error

func (*Client) SendPaperFormRequested added in v0.993.0

func (c *Client) SendPaperFormRequested(ctx context.Context, event PaperFormRequested) error

func (*Client) SendPaymentReceived added in v0.1226.0

func (c *Client) SendPaymentReceived(ctx context.Context, event PaymentReceived) error

func (*Client) SendReducedFeeRequested added in v0.805.0

func (c *Client) SendReducedFeeRequested(ctx context.Context, event ReducedFeeRequested) error

func (*Client) SendUidRequested added in v0.805.0

func (c *Client) SendUidRequested(ctx context.Context, event UidRequested) error

type Evidence added in v0.868.0

type Evidence struct {
	Path     string `json:"path"`
	Filename string `json:"filename"`
}

type IdentityCheckMismatched added in v0.1460.0

type IdentityCheckMismatched struct {
	LpaUID   string                         `json:"uid"`
	ActorUID actoruid.UID                   `json:"actorUID"`
	Provided IdentityCheckMismatchedDetails `json:"provided"`
	Verified IdentityCheckMismatchedDetails `json:"verified"`
}

type IdentityCheckMismatchedDetails added in v0.1460.0

type IdentityCheckMismatchedDetails struct {
	FirstNames  string    `json:"firstNames"`
	LastName    string    `json:"lastName"`
	DateOfBirth date.Date `json:"dateOfBirth"`
}

type NotificationSent added in v0.962.0

type NotificationSent struct {
	UID            string `json:"uid"`
	NotificationID string `json:"notificationId"`
}

type PaperFormRequested added in v0.993.0

type PaperFormRequested struct {
	UID        string       `json:"uid"`
	ActorType  string       `json:"actorType"`
	ActorUID   actoruid.UID `json:"actorUID"`
	AccessCode string       `json:"accessCode"`
}

type PaymentReceived added in v0.1226.0

type PaymentReceived struct {
	UID       string `json:"uid"`
	PaymentID string `json:"paymentId"`
	Amount    int    `json:"amount"`
}

type ReducedFeeRequested added in v0.805.0

type ReducedFeeRequested struct {
	UID              string     `json:"uid"`
	RequestType      string     `json:"requestType"`
	Evidence         []Evidence `json:"evidence,omitempty"`
	EvidenceDelivery string     `json:"evidenceDelivery"`
}

type UidRequested added in v0.805.0

type UidRequested struct {
	LpaID          string           `json:"lpaID"`
	DonorSessionID string           `json:"donorSessionID"`
	OrganisationID string           `json:"organisationID"`
	Type           string           `json:"type"`
	Donor          uid.DonorDetails `json:"donor"`
}

Jump to

Keyboard shortcuts

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