Documentation
¶
Index ¶
- type SESEmailHandler
- func (s SESEmailHandler) CreateCalendarInvites(title string, location string, start int64, description string) (calLinks emailHandler.CalendarLinks)
- func (s SESEmailHandler) GenerateTicketPDF(order paymentHandler.Order, concert databaseHandler.Concert, ...) (attachment []byte)
- func (s SESEmailHandler) SendEmail(order paymentHandler.Order, attachment []byte, ...) (err error)
- func (s SESEmailHandler) SendPaymentFailureEmail(order paymentHandler.Order) (err error)
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) CreateCalendarInvites ¶ added in v0.3.0
func (s SESEmailHandler) CreateCalendarInvites(title string, location string, start int64, description string) (calLinks emailHandler.CalendarLinks)
func (SESEmailHandler) GenerateTicketPDF ¶
func (s SESEmailHandler) GenerateTicketPDF(order paymentHandler.Order, concert databaseHandler.Concert, includeQRCode bool) (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, calendarLinks emailHandler.CalendarLinks) (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 ¶
func (s SESEmailHandler) SendPaymentFailureEmail(order paymentHandler.Order) (err error)
Click to show internal directories.
Click to hide internal directories.