sesEmailHandler

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SESEmailHandler

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

func New

func New(svc sesv2iface.SESV2API, senderAddress string) SESEmailHandler

New takes an SES V2 interface and sender email address and returns a newly created SESEmailHandler struct

func (SESEmailHandler) GenerateTicketPDF

func (s SESEmailHandler) GenerateTicketPDF(order paymentHandler.Order, concert databaseHandler.Concert, includeQRCode bool, redeemTicketURL string) (attachment []byte)

GenerateTicketPDF takes an order struct and returns a PDF file in a byte array and an error if fails

func (SESEmailHandler) SendEmail

func (s SESEmailHandler) SendEmail(order paymentHandler.Order, attachment []byte) (err error)

SendEmail takes an order struct and attachment (in bytes) and sends an email to the customer, using the AWS SES v2 API. Returns an error if fails, or nil if successful

func (SESEmailHandler) SendPaymentFailureEmail added in v1.0.4

func (s SESEmailHandler) SendPaymentFailureEmail(order paymentHandler.Order) (err error)

Jump to

Keyboard shortcuts

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