export interface TicketingTicket { /** A unique ticket number which is assigned automatically when creating a ticket. */ ticketNumber?: string; /** Associated order number. */ orderNumber?: string; /** Ticket definition ID. */ ticketDefinitionId?: string; /** Ticket name. */ name?: string; /** Ticket price. */ price?: Money; /** * Whether ticket requires payment. * @readonly */ free?: boolean; /** Ticket and event policies. */ policy?: string; /** * @internal * @internal * @deprecated */ qrCode?: string; /** Ticket check-in. */ checkIn?: CheckIn; /** * Associated order status. Possible values: * - `FREE`: The order is confirmed, no payment is required. * - `PENDING`: The order was paid, but the payment gateway suspended the payment. * - `PAID`: The order is paid. * - `OFFLINE_PENDING`: The order is confirmed but has to be paid in cash and the status is manually updated to `PAID`. * - `INITIATED`: The order is awaiting for payment. * - `CANCELED`: The order is canceled. * - `DECLINED`: The order is declined. */ orderStatus?: OrderStatus; /** Whether order and ticket are visible in order list. */ orderArchived?: boolean; /** Buyer full name. */ orderFullName?: string; /** Guest full name. */ guestFullName?: string | null; /** Guest personal details. */ guestDetails?: GuestDetails; /** Whether the ticket is visible in an order. */ archived?: boolean; /** * @internal * @internal * @deprecated */ ticketPdf?: string; /** Ticket owner member ID. */ memberId?: string | null; /** * Whether ticket was anonymized by GDPR delete. * Anonymized tickets no longer contain personally identifiable information (PII). */ anonymized?: boolean; /** * Ticket check-in URL. * Shown as QR code image in PDF. * * Format: `https://www.wixevents.com/check-in/{ticket number},{event id}` * * Example: `https://www.wixevents.com/check-in/AAAA-AAAA-BB021,00000000-0000-0000-0000-000000000000` */ checkInUrl?: string; /** URL for ticket PDF download. */ ticketPdfUrl?: string; /** Associated order checkout channel type. */ channel?: ChannelType; /** * An URL to download a ticket in the `.pkpass` format for Apple Wallet. * @readonly */ walletPassUrl?: string; /** * Whether ticket is canceled. * @readonly */ canceled?: boolean | null; } export interface Money { /** * *Deprecated:** Use `value` instead. * @deprecated */ amount?: string; /** Currency in the [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) format. For example, `USD`. */ currency?: string; /** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, starts with a single (-), to indicate that the amount is negative. */ value?: string | null; } export interface CheckIn { /** Time of a ticket check-in. */ created?: Date | null; } export declare enum OrderStatus { /** Order status not available for this request fieldset. */ NA_ORDER_STATUS = "NA_ORDER_STATUS", /** Order is confirmed and payment isn't required. */ FREE = "FREE", /** Order is paid for but the payment gateway has suspended the payment. */ PENDING = "PENDING", /** Order is paid via a payment gateway. */ PAID = "PAID", /** Order is confirmed but must be paid via offline payment. Status needs to be manually updated to `PAID`. */ OFFLINE_PENDING = "OFFLINE_PENDING", /** Order is awaiting payment at the cashier. */ INITIATED = "INITIATED", /** Order is canceled. */ CANCELED = "CANCELED", /** Order payment is declined. */ DECLINED = "DECLINED", /** Order payment is authorized. */ AUTHORIZED = "AUTHORIZED", /** Order payment is voided. */ VOIDED = "VOIDED", /** Order is partially paid with less than the total amount. */ PARTIALLY_PAID = "PARTIALLY_PAID" } export interface GuestDetails { /** Whether ticket belongs to assigned guest. */ guestAssigned?: boolean; /** Guest first name. */ firstName?: string | null; /** Guest last name. */ lastName?: string | null; /** Guest email. */ email?: string | null; /** Full form response. */ form?: FormResponse; /** Contact ID associated with this guest. */ contactId?: string | null; /** Guest phone number. */ phone?: string | null; } export interface FormResponse { /** Form field inputs. */ inputValues?: InputValue[]; } export interface InputValue { /** Form field input name. */ inputName?: string; /** Form field value. */ value?: string; /** Form field values. */ values?: string[]; } export interface FormattedAddress { /** One line address representation. */ formatted?: string; /** Address components (optional). */ address?: Address; } /** Physical address */ export interface Address extends AddressStreetOneOf { /** Street name and number. */ streetAddress?: StreetAddress; /** Main address line, usually street and number as free text. */ addressLine1?: string | null; /** Country code. */ country?: string | null; /** Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY */ subdivision?: string | null; /** City name. */ city?: string | null; /** Zip/postal code. */ postalCode?: string | null; /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */ addressLine2?: string | null; } /** @oneof */ export interface AddressStreetOneOf { /** Street name and number. */ streetAddress?: StreetAddress; /** Main address line, usually street and number as free text. */ addressLine?: string | null; } export interface StreetAddress { /** Street number. */ number?: string; /** Street name. */ name?: string; } export interface AddressLocation { /** Address latitude. */ latitude?: number | null; /** Address longitude. */ longitude?: number | null; } export interface Subdivision { /** Short subdivision code. */ code?: string; /** Subdivision full name. */ name?: string; } export declare enum SubdivisionType { UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE", /** State */ ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1", /** County */ ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2", /** City/town */ ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3", /** Neighborhood/quarter */ ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4", /** Street/block */ ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5", /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */ COUNTRY = "COUNTRY" } /** Subdivision Concordance values */ export interface StandardDetails { /** subdivision iso-3166-2 code according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). e.g. US-NY, GB-SCT, NO-30 */ iso31662?: string | null; } export declare enum ChannelType { /** Buyer created the order via an online channel such as a website or mobile app. */ ONLINE = "ONLINE", /** Sales person created the order and collected the money. */ OFFLINE_POS = "OFFLINE_POS" } export interface TicketDetails { /** Unique seat id in the event venue. */ seatId?: string | null; /** * Optional sector label. * @readonly */ sectionLabel?: string | null; /** * Area label. * @readonly */ areaLabel?: string | null; /** * Table label. * @readonly */ tableLabel?: string | null; /** * Row label. * @readonly */ rowLabel?: string | null; /** * Seat label in a row or table. * @readonly */ seatLabel?: string | null; /** Number of places in the spot. If not provided - defaults to 1. */ capacity?: number | null; /** Custom pricing of ticket. */ priceOverride?: string | null; /** Pricing option id. */ pricingOptionId?: string | null; /** * Pricing option name. * @readonly */ pricingOptionName?: string | null; } export interface ListTicketsRequest { /** Event IDs. */ eventId: string[]; /** Offset. See [Pagination](/wix-events-v2/pagination). */ offset?: number; /** Number of items to load per page. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */ limit?: number; /** Order numbers. */ orderNumber?: string[]; /** Ticket numbers. */ ticketNumber?: string[]; /** Searches in the `orderFullName`, `guestFullName`, and `ticketNumber` fields. */ searchPhrase?: string; /** Order statuses. */ orderStatus?: OrderStatus[]; /** * Predefined sets of fields to return. * - `TICKET_DETAILS`: Returns `ticketNumber`, `orderNumber`, `ticketDefinitionId`, `name`, `price`, `free`, `policy`, `qrCode`, `checkIn`, `orderStatus`, `orderArchived`, `archived`, `orderFullName`, `ticketPdf`, `checkInUrl` and `ticketPdfUrl`. * - `GUEST_DETAILS`: Returns `guestDetails`. * - `GUEST_FORM`: Returns `guestDetails.form`. * * Default: If a fieldset is not included in the request, returns only the `memberId` and `anonymized` fields. */ fieldset?: TicketFieldset[]; /** * Ticket states. Possible values: * - `ORDER_ARCHIVED`: Returns tickets of the archived orders. * - `ORDER_ACTIVE`: Returns tickets of the non-archived orders. * - `TICKET_ARCHIVED`: Returns archived tickets. * - `TICKET_ACTIVE`: Returns non-archived tickets. * - `CHECKED_IN`: Returns checked-in tickets. * - `NON_CHECKED_IN`: Returns tickets that are not checked in. * - `FREE`: Returns free tickets. * - `PAID`: Return paid tickets. * - `MEMBER`: Return members' tickets. */ state?: State[]; /** Site member IDs. */ memberId?: string[]; /** Filter facets. */ facet?: string[]; /** Sort order. Defaults to "ticket_number:asc". */ sort?: string; /** Guest contact IDs. */ contactId?: string[]; /** Ticket definition IDs. */ ticketDefinitionId?: string[]; /** Seat IDs. */ seatId?: string[]; } export declare enum TicketFieldset { /** Include guest details in the ticket response. */ GUEST_DETAILS = "GUEST_DETAILS", /** Include ticket details in the ticket response. */ TICKET_DETAILS = "TICKET_DETAILS", /** Include individual guest form in the ticket response. */ GUEST_FORM = "GUEST_FORM" } export declare enum State { /** Returns only archived orders' tickets. */ ORDER_ARCHIVED = "ORDER_ARCHIVED", /** Returns only non-archived orders' tickets. */ ORDER_ACTIVE = "ORDER_ACTIVE", /** Returns only archived tickets. */ TICKET_ARCHIVED = "TICKET_ARCHIVED", /** Returns only non-archived tickets. */ TICKET_ACTIVE = "TICKET_ACTIVE", /** Returns only checked-in tickets. */ CHECKED_IN = "CHECKED_IN", /** Returns only non-checked-in tickets. */ NON_CHECKED_IN = "NON_CHECKED_IN", /** Returns only free tickets. */ FREE = "FREE", /** Returns only paid tickets. */ PAID = "PAID", /** Returns only member tickets. */ MEMBER = "MEMBER" } export interface ListTicketsResponse { /** Total tickets matching the given filters. */ total?: number; /** Offset. */ offset?: number; /** Limit. */ limit?: number; /** Tickets. */ tickets?: TicketingTicket[]; /** Facets. */ facets?: Record; } export interface FacetCounts { /** Facet counts aggregated per value. */ counts?: Record; } export interface TicketFacets { /** Filter facets. */ facets?: Record; } export interface TicketFacetCounts { /** Facet totals, aggregated per filter. */ counts?: Record; } export interface Counts { /** Number of tickets. */ count?: number; /** Number of checked in tickets. */ checkedIn?: number; } export interface GetTicketRequest { /** Event ID to which the ticket belongs. */ eventId: string; /** A unique ticket number which is assigned automatically when creating a ticket. */ ticketNumber: string; /** * Predefined sets of fields to return. * - `TICKET_DETAILS`: Returns `ticketNumber`, `orderNumber`, `ticketDefinitionId`, `name`, `price`, `free`, `policy`, `qrCode`, `checkIn`, `orderStatus`, `orderArchived`, `archived`, `orderFullName`, `ticketPdf`, `checkInUrl` and `ticketPdfUrl`. * - `GUEST_DETAILS`: Returns `guestDetails`. * - `GUEST_FORM`: Returns `guestDetails.form`. * * Default: If a fieldset is not included in the request, returns only the `memberId` and `anonymized` fields. */ fieldset?: TicketFieldset[]; } export interface GetTicketResponse { /** Ticket. */ ticket?: TicketingTicket; } export interface CheckInTicketRequest { /** Event ID to which the ticket belongs. */ eventId: string; /** Tickets to check-in. */ ticketNumber?: string[]; } export interface CheckInTicketResponse { /** Updated tickets. */ tickets?: TicketingTicket[]; } export interface OrderUpdated { /** Order updated timestamp in ISO UTC format. */ timestamp?: Date | null; /** Site language when Order initiated */ language?: string | null; /** Locale in which Order was created. */ locale?: string | null; /** Event ID to which the ticket belongs. */ eventId?: string; /** Unique order number. */ orderNumber?: string; /** Contact ID associated with this order. */ contactId?: string; /** Member ID associated with this order. */ memberId?: string | null; /** * Order created timestamp. * @readonly */ created?: Date | null; /** * Order updated timestamp. * @readonly */ updated?: Date | null; /** Buyer first name. */ firstName?: string; /** Buyer last name. */ lastName?: string; /** Buyer email. */ email?: string; /** Checkout form response. */ checkoutForm?: FormResponse; /** Whether order is confirmed - occurs once payment gateway processes the payment and funds reach merchant's account. */ confirmed?: boolean; /** Order status. */ status?: OrderStatus; /** Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc. */ method?: string | null; /** Tickets generated after payment. */ tickets?: Ticket[]; /** Whether order was archived and excluded from results. */ archived?: boolean; /** Whether event was triggered by GDPR delete request. */ triggeredByAnonymizeRequest?: boolean; } export interface Ticket { /** Unique issued ticket number. */ ticketNumber?: string; /** Ticket definition ID. */ ticketDefinitionId?: string; /** Ticket check-in. */ checkIn?: CheckIn; /** Ticket price. */ price?: Money; /** Whether ticket is archived. */ archived?: boolean; /** Guest first name. */ firstName?: string | null; /** Guest last name. */ lastName?: string | null; /** Guest email. */ email?: string | null; /** Contact ID associated with this ticket. */ contactId?: string | null; /** Whether ticket is confirmed */ confirmed?: boolean; /** Member ID associated with this ticket. */ memberId?: string | null; /** Ticket form response (only assigned tickets contain separate forms). */ form?: FormResponse; /** Ticket name. */ ticketName?: string; /** Anonymized tickets no longer contain personally identifiable information (PII). */ anonymized?: boolean; /** URL and password to online conference */ onlineConferencingLogin?: OnlineConferencingLogin; /** Seat ID associated with this ticket. */ seatId?: string | null; /** Whether ticket is canceled. */ canceled?: boolean | null; } export interface OnlineConferencingLogin { /** * Link URL to the online conference. * @readonly */ link?: string; /** * Password for the online conference. * @readonly */ password?: string | null; } export interface DeleteTicketCheckInRequest { /** Event ID to which the ticket belongs. */ eventId: string; /** Ticket numbers which check-ins to delete. */ ticketNumber?: string[]; } export interface DeleteTicketCheckInResponse { /** Updated tickets. */ tickets?: TicketingTicket[]; } export interface UpdateTicketRequest { /** Event ID to which the ticket belongs. */ eventId: string; /** A unique ticket number which is assigned automatically when creating a ticket. */ ticketNumber: string; /** * Set of field paths, specifying which parts of this resource to update. * When `fields` is empty, the request is interpreted as a full update. * Behavior follows [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask) semantics. */ fields?: string[]; /** Whether to archive the tickets. */ archived?: boolean; /** Assigned guest details. */ guestDetails?: GuestDetailsUpdate; } export interface GuestDetailsUpdate { /** Form of a guest assigned to a ticket. */ form?: FormResponse; } export interface UpdateTicketResponse { /** Updated ticket. */ ticket?: TicketingTicket; } export interface BulkUpdateTicketsRequest { /** Event ID to which the ticket belongs. */ eventId: string; /** A unique ticket number which is assigned automatically when creating a ticket. */ ticketNumber?: string[]; /** Whether tickets are archived. */ archived?: boolean; } export interface BulkUpdateTicketsResponse { /** Updated tickets. */ tickets?: TicketingTicket[]; } export interface GetDemoTicketRequest { /** Ticket definition ID. */ definitionId?: string; } export interface GetDemoTicketResponse { /** Ticket. */ ticket?: TicketingTicket; } export interface MessageEnvelope { /** App instance ID. */ instanceId?: string | null; /** Event type. */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; /** Stringify payload. */ data?: string; } export interface IdentificationData extends IdentificationDataIdOneOf { /** ID of a site visitor that has not logged in to the site. */ anonymousVisitorId?: string; /** ID of a site visitor that has logged in to the site. */ memberId?: string; /** ID of a Wix user (site owner, contributor, etc.). */ wixUserId?: string; /** ID of an app. */ appId?: string; /** @readonly */ identityType?: WebhookIdentityType; } /** @oneof */ export interface IdentificationDataIdOneOf { /** ID of a site visitor that has not logged in to the site. */ anonymousVisitorId?: string; /** ID of a site visitor that has logged in to the site. */ memberId?: string; /** ID of a Wix user (site owner, contributor, etc.). */ wixUserId?: string; /** ID of an app. */ appId?: string; } export declare enum WebhookIdentityType { UNKNOWN = "UNKNOWN", ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR", MEMBER = "MEMBER", WIX_USER = "WIX_USER", APP = "APP" } interface MoneyNonNullableFields { amount: string; currency: string; } interface StreetAddressNonNullableFields { number: string; name: string; apt: string; } interface SubdivisionNonNullableFields { name: string; } interface AddressNonNullableFields { streetAddress?: StreetAddressNonNullableFields; subdivisions: SubdivisionNonNullableFields[]; } interface FormattedAddressNonNullableFields { formatted: string; address?: AddressNonNullableFields; } interface InputValueNonNullableFields { inputName: string; value: string; values: string[]; address?: FormattedAddressNonNullableFields; } interface FormResponseNonNullableFields { inputValues: InputValueNonNullableFields[]; } interface GuestDetailsNonNullableFields { guestAssigned: boolean; form?: FormResponseNonNullableFields; } export interface TicketingTicketNonNullableFields { ticketNumber: string; orderNumber: string; ticketDefinitionId: string; name: string; price?: MoneyNonNullableFields; free: boolean; policy: string; qrCode: string; orderStatus: OrderStatus; orderArchived: boolean; orderFullName: string; guestDetails?: GuestDetailsNonNullableFields; archived: boolean; ticketPdf: string; anonymized: boolean; checkInUrl: string; ticketPdfUrl: string; channel: ChannelType; walletPassUrl: string; } export interface ListTicketsResponseNonNullableFields { total: number; offset: number; limit: number; tickets: TicketingTicketNonNullableFields[]; } export interface GetTicketResponseNonNullableFields { ticket?: TicketingTicketNonNullableFields; } export interface CheckInTicketResponseNonNullableFields { tickets: TicketingTicketNonNullableFields[]; } export interface DeleteTicketCheckInResponseNonNullableFields { tickets: TicketingTicketNonNullableFields[]; } export interface UpdateTicketResponseNonNullableFields { ticket?: TicketingTicketNonNullableFields; } export interface BulkUpdateTicketsResponseNonNullableFields { tickets: TicketingTicketNonNullableFields[]; } export interface BaseEventMetadata { /** App instance ID. */ instanceId?: string | null; /** Event type. */ eventType?: string; /** The identification type and identity data. */ identity?: IdentificationData; } export interface TicketOrderUpdatedEnvelope { data: OrderUpdated; metadata: BaseEventMetadata; } /** @permissionScope Read Events - all read permissions * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS * @permissionScope Manage Events - all permissions * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS * @permissionScope Read Basic Events Order Info * @permissionScopeId SCOPE.DC-EVENTS.READ-BASIC-ORDERS * @permissionScope Manage Orders * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS * @permissionId WIX_EVENTS.READ_ORDERS * @webhook * @eventType wix.events.ticketing.events.OrderUpdated */ export declare function onTicketOrderUpdated(handler: (event: TicketOrderUpdatedEnvelope) => void | Promise): void; /** * Retrieves a list of up to 100 tickets. * * * @param eventId - Event IDs. * @public * @requiredField eventId * @param options - Options for defining the returned list of tickets. * @permissionId WIX_EVENTS.READ_TICKETS * @permissionScope Read Events - all read permissions * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS * @permissionScope Manage Events - all permissions * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS * @permissionScope Manage Guest List * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST * @permissionScope Read Event Tickets and Guest List * @permissionScopeId SCOPE.DC-EVENTS.READ-GUEST-LIST * @applicableIdentity APP * @fqn wix.events.ticketing.TicketManagement.ListTickets */ export declare function listTickets(eventId: string[], options?: ListTicketsOptions): Promise; export interface ListTicketsOptions { /** * * Offset. See [Pagination](/wix-events-v2/pagination). */ offset?: number; /** Number of items to load per page. See [Pagination](/wix-events-v2/pagination). */ limit?: number; /** Order numbers. */ orderNumber?: string[]; /** Ticket numbers. */ ticketNumber?: string[]; /** Textual search filter - search is performed on `"orderFullName"`, `"guestFullName"`, and `"ticketNumber"`. */ searchPhrase?: string; /** Order statuses. */ orderStatus?: OrderStatus[]; /** * Predefined sets of fields to return. * - `TICKET_DETAILS`: Returns `ticketNumber`, `orderNumber`, `ticketDefinitionId`, `name`, `price`, `free`, `policy`, `qrCode`, `checkIn`, `orderStatus`, `orderArchived`, `archived`, `orderFullName`, `ticketPdf`, `checkInUrl` and `ticketPdfUrl`. * - `GUEST_DETAILS`: Returns `guestDetails`. * - `GUEST_FORM`: Returns `guestDetails.form`. * * Default: If a fieldset is not included in the request, returns only the `memberId` and `anonymized` fields. */ fieldset?: TicketFieldset[]; /** * Ticket states. Possible values: * - `ORDER_ARCHIVED`: Returns tickets of the archived orders. * - `ORDER_ACTIVE`: Returns tickets of the non-archived orders. * - `TICKET_ARCHIVED`: Returns archived tickets. * - `TICKET_ACTIVE`: Returns non-archived tickets. * - `CHECKED_IN`: Returns checked-in tickets. * - `NON_CHECKED_IN`: Returns tickets that are not checked in. * - `FREE`: Returns free tickets. * - `PAID`: Return paid tickets. * - `MEMBER`: Return members' tickets. */ state?: State[]; /** Site member IDs. */ memberId?: string[]; /** Filter facets. */ facet?: string[]; /** * Sort order. * * Default: `"ticketNumber"`:`"asc"`. */ sort?: string; /** Guest contact IDs. */ contactId?: string[]; /** Ticket definition IDs. */ ticketDefinitionId?: string[]; /** Seat IDs. */ seatId?: string[]; } /** * Retrieves a ticket by the unique ticket number. * @public * @requiredField identifiers * @requiredField identifiers.eventId * @requiredField identifiers.ticketNumber * @param identifiers - Details for the ticket to retrieve. * @param options - Options for the returned ticket data. * @permissionId WIX_EVENTS.READ_TICKET_DETAILS * @permissionScope Read Events - all read permissions * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS * @permissionScope Manage Events - all permissions * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS * @permissionScope Manage Guest List * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST * @permissionScope Read Event Tickets and Guest List * @permissionScopeId SCOPE.DC-EVENTS.READ-GUEST-LIST * @applicableIdentity APP * @returns Ticket. * @fqn wix.events.ticketing.TicketManagement.GetTicket */ export declare function getTicket(identifiers: GetTicketIdentifiers, options?: GetTicketOptions): Promise; export interface GetTicketIdentifiers { /** Event ID to which the ticket belongs. */ eventId: string; /** A unique ticket number which is assigned automatically when creating a ticket. */ ticketNumber: string; } export interface GetTicketOptions { /** * Predefined sets of fields to return. * - `TICKET_DETAILS`: Returns `ticketNumber`, `orderNumber`, `ticketDefinitionId`, `name`, `price`, `free`, `policy`, `qrCode`, `checkIn`, `orderStatus`, `orderArchived`, `archived`, `orderFullName`, `ticketPdf`, `checkInUrl` and `ticketPdfUrl`. * - `GUEST_DETAILS`: Returns `guestDetails`. * - `GUEST_FORM`: Returns `guestDetails.form`. * * Default: If a fieldset is not included in the request, returns only the `memberId` and `anonymized` fields. */ fieldset?: TicketFieldset[]; } /** * Checks in 1 or more tickets. * @public * @requiredField eventId * @param eventId - Event ID to which the ticket belongs. * @param options - Options for tickets to check-in. * @permissionId WIX_EVENTS.CHECK-IN * @fqn wix.events.ticketing.TicketManagement.CheckInTicket */ export declare function checkInTickets(eventId: string, options?: CheckInTicketsOptions): Promise; export interface CheckInTicketsOptions { /** Tickets to check-in. */ ticketNumber?: string[]; } /** * Deletes check-ins for 1 or more tickets. * @public * @requiredField eventId * @param eventId - Event ID to which the ticket belongs. * @param options - Options for tickets to delete. * @permissionId WIX_EVENTS.CHECK-IN * @fqn wix.events.ticketing.TicketManagement.DeleteTicketCheckIn */ export declare function deleteTicketCheckIns(eventId: string, options?: DeleteTicketCheckInsOptions): Promise; export interface DeleteTicketCheckInsOptions { /** Ticket numbers which check-ins to delete. */ ticketNumber?: string[]; } /** * Updates a ticket. * @public * @requiredField identifiers * @requiredField identifiers.eventId * @requiredField identifiers.ticketNumber * @param identifiers - Details for the ticket to update. * @param options - Ticket details to update. * @permissionId WIX_EVENTS.MANAGE_TICKETS * @permissionScope Manage Events - all permissions * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS * @permissionScope Manage Guest List * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST * @applicableIdentity APP * @fqn wix.events.ticketing.TicketManagement.UpdateTicket */ export declare function updateTicket(identifiers: UpdateTicketIdentifiers, options?: UpdateTicketOptions): Promise; export interface UpdateTicketIdentifiers { /** Event ID to which the ticket belongs. */ eventId: string; /** A unique ticket number which is assigned automatically when creating a ticket. */ ticketNumber: string; } export interface UpdateTicketOptions { /** * Set of field paths, specifying which parts of this resource to update. * When `fields` is empty, the request is interpreted as a full update. * Behavior follows [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask) semantics. */ fields?: string[]; /** Whether to archive the ticket. */ archived?: boolean; /** Assigned guest details. */ guestDetails?: GuestDetailsUpdate; } /** * Archives multiple tickets. * @public * @requiredField eventId * @param options - Options for updating the tickets. * @param eventId - Event ID to which the ticket belongs. * @permissionId WIX_EVENTS.MANAGE_TICKETS * @permissionScope Manage Events - all permissions * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS * @permissionScope Manage Guest List * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST * @applicableIdentity APP * @fqn wix.events.ticketing.TicketManagement.BulkUpdateTickets */ export declare function bulkUpdateTickets(eventId: string, options?: BulkUpdateTicketsOptions): Promise; export interface BulkUpdateTicketsOptions { /** A unique ticket number which is assigned automatically when creating a ticket. */ ticketNumber?: string[]; /** Whether tickets are archived. */ archived?: boolean; } export {};