Versions in this module Expand all Collapse all v6 v6.7.0 Mar 4, 2024 v6.6.0 Feb 12, 2024 v6.5.0 Feb 2, 2024 v6.4.0 Jan 17, 2024 v6.3.0 Dec 13, 2023 v6.2.0 Nov 10, 2023 Changes in this version type Event + PartialSeasonKeysForEvent []string v6.1.0 Oct 27, 2023 Changes in this version type Events + func (events *Events) OverrideSeasonObjectStatus(eventKey string, objects ...string) error + func (events *Events) UseSeasonObjectStatus(eventKey string, objects ...string) error v6.0.0 Oct 19, 2023 Changes in this version + var EventSupport eventSupportNS + func DateFormat(date *time.Time) string + type BestAvailableParams struct + Categories []CategoryKey + ExtraData []ExtraData + Number int + TicketTypes []string + type BestAvailableResult struct + NextToEachOther bool + ObjectDetails map[string]EventObjectInfo + Objects []string + type BestAvailableStatusChangeParams struct + BestAvailable BestAvailableParams + ChannelKeys []string + HoldToken string + IgnoreChannels bool + KeepExtraData bool + OrderId string + Status ObjectStatus + type Category struct + Accessible bool + Color string + Key CategoryKey + Label string + type CategoryKey struct + Key interface{} + func (categoryKey *CategoryKey) UnmarshalJSON(data []byte) error + func (categoryKey CategoryKey) KeyAsString() string + func (categoryKey CategoryKey) MarshalJSON() ([]byte, error) + type ChangeObjectStatusInBatchResult struct + Results []ChangeObjectStatusResult + type ChangeObjectStatusResult struct + Objects map[string]EventObjectInfo + type Channel struct + Color string + Index int + Key string + Name string + Objects []string + type Channels struct + Client *req.Client + func (channels *Channels) AddObjects(eventKey string, channelKey string, objects []string) error + func (channels *Channels) Create(eventKey string, params ...*CreateChannelParams) error + func (channels *Channels) Delete(eventKey string, channelKey string) error + func (channels *Channels) RemoveObjects(eventKey string, channelKey string, objects []string) error + func (channels *Channels) Replace(eventKey string, newChannels ...CreateChannelParams) error + func (channels *Channels) Update(eventKey string, channelKey string, params UpdateChannelParams) error + type CreateChannelParams struct + Color string + Index int + Key string + Name string + Objects []string + type CreateChannelParamsOption func(Params *CreateChannelParams) + type CreateEventParams struct + ChartKey string + ForSaleConfig *ForSaleConfig + type CreateEventResult struct + Events []Event + type CreateMultipleEventParams struct + ForSaleConfig *ForSaleConfig + type CreateMultipleEventsRequest struct + ChartKey string + Events []CreateMultipleEventParams + type Event struct + Categories []Category + Channels []Channel + ChartKey string + CreatedOn *time.Time + Date string + ForSaleConfig *ForSaleConfig + HoldToken string + Id int64 + IsInThePast bool + Key string + Name string + ObjectCategories map[string]CategoryKey + SupportsBestAvailable bool + TableBookingConfig TableBookingConfig + UpdatedOn *time.Time + type EventObjectInfo struct + Capacity int + CategoryKey CategoryKey + CategoryLabel string + Entrance string + ExtraData ExtraData + ForSale bool + HoldToken *string + IDs IDs + Label string + Labels Labels + LeftNeighbour string + NumBooked int + ObjectType string + OrderId string + RightNeighbour string + Section string + Status ObjectStatus + TicketType string + type EventParams struct + Categories *[]Category + Channels *[]CreateChannelParams + Date string + EventKey string + Name string + ObjectCategories *map[string]CategoryKey + TableBookingConfig *TableBookingConfig + type Events struct + Client *req.Client + func (events *Events) Book(eventKey string, objectIds ...string) (*ChangeObjectStatusResult, error) + func (events *Events) BookBestAvailable(eventKey string, params BestAvailableParams) (*BestAvailableResult, error) + func (events *Events) BookBestAvailableWithHoldToken(eventKey string, params BestAvailableParams, holdToken string) (*BestAvailableResult, error) + func (events *Events) BookBestAvailableWithOptions(eventKey string, params BestAvailableStatusChangeParams) (*BestAvailableResult, error) + func (events *Events) BookWithHoldToken(eventKey string, objectIds []string, holdToken *string) (*ChangeObjectStatusResult, error) + func (events *Events) BookWithObjectProperties(eventKey string, objectProperties ...ObjectProperties) (*ChangeObjectStatusResult, error) + func (events *Events) BookWithObjectPropertiesAndHoldToken(eventKey string, objectProperties []ObjectProperties, holdToken *string) (*ChangeObjectStatusResult, error) + func (events *Events) BookWithOptions(statusChangeParams *StatusChangeParams) (*ChangeObjectStatusResult, error) + func (events *Events) ChangeBestAvailableObjectStatus(eventKey string, ...) (*BestAvailableResult, error) + func (events *Events) ChangeObjectStatus(eventKeys []string, objects []string, status ObjectStatus) (*ChangeObjectStatusResult, error) + func (events *Events) ChangeObjectStatusInBatch(statusChangeInBatchParams ...StatusChangeInBatchParams) (*ChangeObjectStatusInBatchResult, error) + func (events *Events) ChangeObjectStatusWithOptions(statusChangeparams *StatusChangeParams) (*ChangeObjectStatusResult, error) + func (events *Events) Create(params *CreateEventParams) (*Event, error) + func (events *Events) CreateMultiple(chartKey string, params ...CreateMultipleEventParams) (*CreateEventResult, error) + func (events *Events) Delete(eventKey string) error + func (events *Events) Hold(eventKey string, objectIds []string, holdToken *string) (*ChangeObjectStatusResult, error) + func (events *Events) HoldBestAvailable(eventKey string, params BestAvailableParams, holdToken string) (*BestAvailableResult, error) + func (events *Events) HoldWithObjectProperties(eventKey string, objectProperties []ObjectProperties, holdToken *string) (*ChangeObjectStatusResult, error) + func (events *Events) HoldWithOptions(statusChangeParams *StatusChangeParams) (*ChangeObjectStatusResult, error) + func (events *Events) ListAll(opts ...shared.PaginationParamsOption) ([]Event, error) + func (events *Events) ListFirstPage(opts ...shared.PaginationParamsOption) (*shared.Page[Event], error) + func (events *Events) ListPageAfter(id int64, opts ...shared.PaginationParamsOption) (*shared.Page[Event], error) + func (events *Events) ListPageBefore(id int64, opts ...shared.PaginationParamsOption) (*shared.Page[Event], error) + func (events *Events) MarkAsForSale(eventKey string, forSaleConfig *ForSaleConfigParams) error + func (events *Events) MarkAsNotForSale(eventKey string, forSaleConfig *ForSaleConfigParams) error + func (events *Events) MarkEverythingAsForSale(eventKey string) error + func (events *Events) Release(eventKey string, objectIds ...string) (*ChangeObjectStatusResult, error) + func (events *Events) ReleaseWithHoldToken(eventKey string, objectIds []string, holdToken *string) (*ChangeObjectStatusResult, error) + func (events *Events) ReleaseWithOptions(statusChangeParams *StatusChangeParams) (*ChangeObjectStatusResult, error) + func (events *Events) RemoveCategories(eventKey string) error + func (events *Events) RemoveObjectCategories(eventKey string) error + func (events *Events) Retrieve(eventKey string) (*Event, error) + func (events *Events) RetrieveObjectInfo(eventKey string, objectLabels ...string) (map[string]EventObjectInfo, error) + func (events *Events) StatusChanges(eventKey string, opts ...ListParamsOption) *shared.Lister[StatusChange] + func (events *Events) StatusChangesForObject(eventKey string, objectLabel string) *shared.Lister[StatusChange] + func (events *Events) Update(eventKey string, params *UpdateEventParams) error + func (events *Events) UpdateExtraData(eventKey string, extraData map[string]ExtraData) error + type ExtraData = map[string]string + type ForSaleConfig struct + AreaPlaces map[string]int + Categories []string + ForSale bool + Objects []string + type ForSaleConfigParams struct + AreaPlaces map[string]int + Categories []string + Objects []string + type IDs struct + Own string + Parent string + Section string + type LabelAndType struct + Label string + Type string + type Labels struct + Own LabelAndType + Parent LabelAndType + Section string + type ListParamsOption func(Params *shared.PageFetcher[StatusChange]) + type Mode string + const ALL_BY_SEAT + const ALL_BY_TABLE + const CUSTOM + const INHERIT + type ObjectProperties struct + ExtraData map[string]string + ObjectId string + Quantity int + TicketType string + type ObjectStatus string + const BOOKED + const FREE + const HELD + type StatusChange struct + Date *time.Time + EventId int64 + ExtraData ExtraData + HoldToken string + Id int64 + IsPresentOnChart bool + NotPresentOnChartReason string + ObjectLabel string + OrderId string + Origin StatusChangeOrigin + Status string + type StatusChangeInBatchParams struct + Event string + type StatusChangeInBatchRequest struct + StatusChanges []StatusChangeInBatchParams + type StatusChangeOrigin struct + Ip string + Type string + type StatusChangeParams struct + Events []string + type StatusChanges struct + AllowedPreviousStatuses []ObjectStatus + ChannelKeys []string + HoldToken string + IgnoreChannels bool + KeepExtraData bool + Objects []ObjectProperties + OrderId string + RejectedPreviousStatuses []ObjectStatus + Status ObjectStatus + type TableBookingConfig struct + Mode Mode + Tables map[string]TableBookingMode + type TableBookingMode string + const BY_SEAT + const BY_TABLE + type TableBookingModeSupportNS struct + var TableBookingSupport TableBookingModeSupportNS + func (TableBookingModeSupportNS) AllBySeat() *TableBookingConfig + func (TableBookingModeSupportNS) AllByTables() *TableBookingConfig + func (TableBookingModeSupportNS) Custom() *TableBookingConfig + func (TableBookingModeSupportNS) Inherit() TableBookingConfig + type UpdateChannelParams struct + Color string + Name string + Objects []string + type UpdateEventParams struct + ChartKey *string + IsInThePast *bool Other modules containing this package github.com/seatsio/seatsio-go github.com/seatsio/seatsio-go/v2 github.com/seatsio/seatsio-go/v7 github.com/seatsio/seatsio-go/v8 github.com/seatsio/seatsio-go/v9