ticket

package
v0.0.0-...-3b9bdc6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcquiredTicket

type AcquiredTicket struct {
	EventID       string
	ShowID        string
	TicketStockID string
	Number        string
	CustomerID    int64
	CustomerEmail string
	CustomerName  string
	ShowTime      time.Time
	OrderID       string
}

type TicketStock

type TicketStock struct {
	EventID         string
	ShowID          string
	ID              string
	OnlineFor       *string
	Tier            string
	Allocation      int64
	Price           float64
	Acquired        int64
	LastStockUpdate time.Time
}

type TicketStockJournal

type TicketStockJournal struct {
	TicketStockID string
	ID            int
	Action        string
	Stock         int64
	Description   string
	CreatedAt     time.Time
}

type TicketStockRepository

type TicketStockRepository interface {
	Save(ctx context.Context, ts TicketStock, tx *sql.Tx) error
	FindManyByShowID(ctx context.Context, showID string, tx *sql.Tx) ([]TicketStock, error)
}

func NewTicketStockRepository

func NewTicketStockRepository(logger *logrus.Logger, db *sql.DB) TicketStockRepository

Jump to

Keyboard shortcuts

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