Documentation ¶
Index ¶
- type SESEmailHandler
- 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) 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)
Click to show internal directories.
Click to hide internal directories.