seasons

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePartialSeasonParams

type CreatePartialSeasonParams struct {
	Key       string   `json:"key,omitempty"`
	EventKeys []string `json:"eventKeys,omitempty"`
}

type CreateSeasonParams

type CreateSeasonParams struct {
	ChartKey           string                        `json:"chartKey"`
	Key                string                        `json:"key,omitempty"`
	TableBookingConfig *events.TableBookingConfig    `json:"tableBookingConfig,omitempty"`
	EventKeys          []string                      `json:"eventKeys,omitempty"`
	NumberOfEvents     int32                         `json:"numberOfEvents,omitempty"`
	Channels           *[]events.CreateChannelParams `json:"channels,omitempty"`
}

type Season

type Season struct {
	events.Event
	Events            []events.Event `json:"events"`
	PartialSeasonKeys []string       `json:"partialSeasonKeys"`
	IsSeason          bool           `json:"isSeason"`
	IsTopLevelSeason  bool           `json:"isTopLevelSeason"`
	IsPartialSeason   bool           `json:"isPartialSeason"`
	IsEventInSeason   bool           `json:"isEventInSeason"`
	TopLevelSeasonKey *string        `json:"topLevelSeasonKey"`
}

type Seasons

type Seasons struct {
	Client *req.Client
}

func (*Seasons) AddEventsToPartialSeason

func (seasons *Seasons) AddEventsToPartialSeason(topLevelSeasonKey string, partialSeasonKey string, eventKeys ...string) (*Season, error)

func (*Seasons) CreateEventsWithEventKeys

func (seasons *Seasons) CreateEventsWithEventKeys(seasonKey string, eventKeys ...string) ([]*events.Event, error)

func (*Seasons) CreateNumberOfEvents

func (seasons *Seasons) CreateNumberOfEvents(seasonKey string, numberOfEvents int32) ([]*events.Event, error)

func (*Seasons) CreatePartialSeason

func (seasons *Seasons) CreatePartialSeason(topLevelSeasonKey string) (*Season, error)

func (*Seasons) CreatePartialSeasonWithOptions

func (seasons *Seasons) CreatePartialSeasonWithOptions(topLevelSeasonKey string, params *CreatePartialSeasonParams) (*Season, error)

func (*Seasons) CreateSeason

func (seasons *Seasons) CreateSeason(chartKey string) (*Season, error)

func (*Seasons) CreateSeasonWithOptions

func (seasons *Seasons) CreateSeasonWithOptions(chartKey string, params *CreateSeasonParams) (*Season, error)

func (*Seasons) RemoveEventFromPartialSeason

func (seasons *Seasons) RemoveEventFromPartialSeason(topLevelSeasonKey string, partialSeasonKey string, eventKey string) (*Season, error)

func (*Seasons) Retrieve

func (seasons *Seasons) Retrieve(key string) (*Season, error)

Jump to

Keyboard shortcuts

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