 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrOrderDoesNotExist ¶
type ErrOrderDoesNotExist struct {
	Message string
}
    ErrOrderDoesNotExist is a custom error to signify the order does not exist in the database
func (ErrOrderDoesNotExist) Error ¶
func (e ErrOrderDoesNotExist) Error() string
type ErrPaymentFailed ¶
type ErrPaymentFailed struct {
	Message string
}
    ErrPaymentFailed is a custom error to signify the payment failed
func (ErrPaymentFailed) Error ¶
func (e ErrPaymentFailed) Error() string
type Order ¶
type Order struct {
	ConcertID        string `json:"concertID"`
	OrderReference   string `json:"orderReference"`
	FirstName        string `json:"firstName"`
	LastName         string `json:"lastName"`
	Email            string `json:"email"`
	NumOfFullPrice   uint8  `json:"numOfFullPrice"`
	NumOfConcessions uint8  `json:"numOfConcessions"`
	OrderStatus      string `json:"orderStatus"`
}
    type PaymentHandler ¶
type PaymentRequest ¶
type PaymentRequest struct {
	OrderLines []OrderLine `json:"orderLines"`
	FirstName  string      `json:"firstName"`
	LastName   string      `json:"lastName"`
	Email      string      `json:"email"`
}
    PaymentRequest is a struct representing the json object passed to the lambda containing ticket and payment details
 Click to show internal directories. 
   Click to hide internal directories.