import { FormValue } from './form.types'; /** * An object containing ticketing functionality. * * Use the Tickets API to create custom ticketing experiences for a site's events. * * A site needs to have at least 1 existing event before getting started. * * ### Typical Custom Ticketing Lifecycle * * 1. In the dashboard, [create at least 1 ticket](https://support.wix.com/en/article/creating-tickets-for-your-event) for an event. * 1. Retrieve the ID of an event from the **Events/Events** collection. * 1. Retrieve the IDs of event tickets from the **Events/Tickets collection** using the event * ID retrieved above. * 1. Get the event `Form` calling `getForm()` ([SDK](https://dev.wix.com/docs/sdk/frontend-modules/events/get-form) | [Velo](https://dev.wix.com/docs/velo/apis/wix-events-frontend/get-form)) with the event ID retrieved above. * 1. Retrieve information about the registration form inputs in the form using `formData()` ([SDK](https://dev.wix.com/docs/sdk/frontend-modules/events/form/form-data) | [Velo](https://dev.wix.com/docs/velo/apis/wix-events-frontend/form/form-data)). * 1. In the editor, add user input elements for each form input retrieved above. * You may want to set the elements IDs to match the names of form inputs retrieved above * so that you won't have to map the names later. * 1. In the editor, add elements to display the available tickets and add input elements for site visitors to select tickets. * 1. In the editor, add a button that will be used to reserve the ticket that a site visitor selects. * 1. When the reserve button is clicked, gather the selected tickets * and use `reserve()` to reserve the tickets. This creates a reservation ID to be used later. * 1. In the editor, add a button that will be used to checkout reserved tickets. * 1. When the checkout button is clicked, gather the values entered into the form in * a `FormValue` array and use `checkout()` to checkout the reservation. This creates an order. * 1. Use the payment ID from the order created above to call the Pay API's [`startPayment()`](https://dev.wix.com/docs/velo/api-reference/wix-pay-frontend/start-payment) * to complete the payment process. * 1. Display the link to the tickets as a PDF. */ export interface Tickets { /** * **Deprecated.** * This method will be deprecated on March 30, 2026. Replace with [checkout()](https://dev.wix.com/docs/sdk/backend-modules/events/orders/checkout). * * > **Migration Instructions** * > * > To stay compatible with future changes, migrate to * > [`checkout()`](https://dev.wix.com/docs/sdk/backend-modules/events/orders/checkout). * > * > To migrate to the new method: * > * > 1. Add a backend file to your site. * > * > 2. Write a code so that it replaces the `checkout()` method from the frontend with the `checkout()` method from the backend. Export your backend function so that it can be used in the frontend. * > * > 3. Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected. * * To checkout tickets, you must first call `reserve()` to reserve the tickets. * * Use the returned `order` to process payment for the tickets by passing the `order`'s * `paymentId` to [`startPayment()`](https://dev.wix.com/docs/velo/api-reference/wix-pay-frontend/start-payment). Note that * since the `order` has a `paymentId`, you don't need to first call `createPayment()` to create a payment. * * Before using `startPayment()`, you will need to set up a site to * accept payments. To learn more, see [Accepting Payments: An Overview](https://support.wix.com/en/article/accepting-payments-an-overview). * When setting up a site to accept payments, be sure to select the payment * methods to offer and [set the payment currency](https://support.wix.com/en/article/setting-your-currency-for-accepting-payments). * * * > **Notes:** * > * The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality. * > * With this method it's not possible to have separate ticket reservation forms for each ticket. You can only have 1 reservation form per ticket order. * @param eventId - ID of the event that the ticket reservations are for. * @requiredField eventId * @param reservationId - ID of the ticket reservations. * @requiredField reservationId * @param checkoutInfo - Information related to the checkout. * @requiredField checkoutInfo * @servicePath wix-events-frontend.Tickets.CheckoutInfo * @returns Fulfilled - Information about the checkout that was performed. * @servicePath wix-events-frontend.Tickets.CheckoutResponse */ checkout(eventId: string, reservationId: string, checkoutInfo: CheckoutInfo): Promise; /** * **Deprecated.** * This method will be deprecated on March 30, 2026. Replace with [createTicketReservation()](https://dev.wix.com/docs/sdk/backend-modules/events/ticket-reservations/create-ticket-reservation). * * > **Migration Instructions** * > * > To stay compatible with future changes, migrate to * > [`createTicketReservation()`](https://dev.wix.com/docs/sdk/backend-modules/events/ticket-reservations/create-ticket-reservation). * > * > To migrate to the new method: * > * > 1. Add a backend file to your site. * > * > 2. Write a code so that it replaces the `reserve()` method from the frontend with the `createTicketReservation()` method from the backend. Export your backend function so that it can be used in the frontend. * > * > 3. Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected. * * Retrieve ticket IDs to specify which tickets to reserve from the **Events/Tickets** collection. Each ticket must have a unique ID. * > **Notes:** * > - The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality. * > - This method doesn't reserve tickets for events with seating maps. * @param eventId - ID of the event to reserve tickets for. * @requiredField eventId * @param tickets - Tickets to reserve. * @requiredField tickets * @servicePath wix-events-frontend.Tickets.TicketSelection * @returns Fulfilled - Information about the reservations that were created. * @servicePath wix-events-frontend.Tickets.ReservationResponse */ reserve(eventId: string, tickets: TicketSelection[]): Promise; /** * **Deprecated.** * This method will be deprecated on March 30, 2026. Replace with [updateOrder()](https://dev.wix.com/docs/sdk/backend-modules/events/orders/update-order). * * > **Migration Instructions** * > * > To stay compatible with future changes, migrate to * > [`updateOrder()`](https://dev.wix.com/docs/sdk/backend-modules/events/orders/update-order). * > * > To migrate to the new method: * > * > 1. Add a backend file to your site. * > * > 2. Write a code so that it replaces the `updateOrder()` method from the frontend with the `updateOrder()` method from the backend. Export your backend function so that it can be used in the frontend. * > * > 3. Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected. * * You can't update an order after payment has been processed. * * > **Note:** The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality * @param eventId - ID of the event that the ticket reservations are for. * @requiredField eventId * @param orderNumber - Number of the order to update. * @requiredField orderNumber * @param updateInfo - Information related to the update. * @requiredField updateInfo * @servicePath wix-events-frontend.Tickets.UpdateInfo * @returns Fulfilled - Information about the order that was updated. * @servicePath wix-events-frontend.Tickets.UpdateOrderResponse */ updateOrder(eventId: string, orderNumber: string, updateInfo: UpdateInfo): Promise; /** * **Deprecated.** * This method will be deprecated on March 30, 2026. Replace with [getInvoice()](https://dev.wix.com/docs/sdk/backend-modules/events/orders/get-invoice). * * > **Migration Instructions** * > * > To stay compatible with future changes, migrate to * > [`getInvoice()`](https://dev.wix.com/docs/sdk/backend-modules/events/orders/get-invoice). The coupon verification is now performed under the hood by the `getInvoice()` method. * > * > To migrate to the new method: * > * > 1. Add a backend file to your site. * > * > 2. Write a code so that it replaces the `verifyCoupon()` method from the frontend with the `getInvoice()` method from the backend. Export your backend function so that it can be used in the frontend. * > * > 3. Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected. * * If the coupon has been verified, the `VerifyCouponResponse` contains * an `invoice` property with an invoice that includes the coupon discounts. * * If the coupon fails verification, the `VerifyCouponResponse` contains * a `discountErrors` property including information about why the verification * failed. * * You may want to call `verifyCoupon()` in an input element's `onCustomValidation()` * to validate a coupon code while the form is being filled out. * * > **Note:** The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality * @param eventId - ID of the event that the ticket coupon is for. * @requiredField eventId * @param reservationId - ID of the reservation that the ticket coupon is for. * @requiredField reservationId * @param coupon - Code of the coupon to verify. * @requiredField coupon * @returns Fulfilled - Information about coupon verification. * @servicePath wix-events-frontend.Tickets.VerifyCouponResponse */ verifyCoupon(eventId: string, reservationId: string, coupon: string): Promise; } /** * An object containing information about a checkout. */ export interface CheckoutInfo { /** * Field names and values for a registration form. * @requiredField formValues * @servicePath wix-events-frontend.Form.FormValue */ formValues: FormValue[]; /** * Coupon to be used during checkout. */ coupon?: string; } /** * An object containing information about a checkout performed with `checkout()`. */ export interface CheckoutResponse { /** * Ticket reservations. * @requiredField reservations * @servicePath wix-events-frontend.Tickets.Reservation */ reservations: Reservation[]; /** * Ticket order. * @requiredField order * @servicePath wix-events-frontend.Tickets.Order */ order: Order; /** * Time the reservations expire. * @requiredField expirationTime */ expirationTime: Date; } /** * An object representing a discount. */ export interface Discount { /** * Discount amount. * @requiredField amount * @servicePath wix-events-frontend.Tickets.Money */ amount: Money; /** * Amount after discount. * @requiredField afterDiscount * @servicePath wix-events-frontend.Tickets.Money */ afterDiscount: Money; /** * Discount code. * @requiredField code */ code: string; /** * Discount name. * @requiredField name */ name: string; /** * ID of the coupon used in the discount. * @requiredField couponId */ couponId: string; } /** * An object containing information about a discount error. */ export interface DiscountError { /** * Error code. * * One of: * * + `"ERROR_COUPON_DOES_NOT_EXIST"` * + `"ERROR_COUPON_IS_DISABLED"` * + `"ERROR_COUPON_USAGE_EXCEEDED"` * + `"ERROR_COUPON_HAS_EXPIRED"` * @requiredField code */ code: string; } /** * An object containing information about discount errors. */ export interface DiscountErrors { /** * Invoice the coupon is used in. * @requiredField error * @servicePath wix-events-frontend.Tickets.DiscountError */ error: DiscountError[]; } /** * An object representing a fee. */ export interface Fee { /** * Fee name. Value is `"WIX_FEE"`: Wix service fee applied to the item. * @requiredField name */ name: string; /** * Fee calculation method. * One of: * * + `"FEE_ADDED"`: Fee is added to the ticket price at checkout. * + `"FEE_INCLUDED"`: Seller absorbs the fee. It's deducted from the ticket price. * @requiredField type */ type: string; /** * Rate percentage. Possible values are between `"0.01"` and `"100"`, using up to 2 decimal places. * @requiredField rate */ rate: string; /** * Total amount of fee charges. * @requiredField amount * @servicePath wix-events-frontend.Tickets.Money */ amount: Money; } /** * An object representing a ticket order invoice. */ export interface Invoice { /** * Invoice items. * @requiredField items * @servicePath wix-events-frontend.Tickets.InvoiceItem */ items: InvoiceItem[]; /** * Invoice total. * @requiredField total * @servicePath wix-events-frontend.Tickets.Money */ total: Money; /** * Invoice applied discount. * @servicePath wix-events-frontend.Tickets.Discount */ discount?: Discount; /** * Invoice tax. * @servicePath wix-events-frontend.Tickets.Tax */ tax?: Tax; /** * Invoice subtotal amount before discount, tax, and fees. * @requiredField subTotal * @servicePath wix-events-frontend.Tickets.Money */ subTotal: Money; /** * Invoice total amount after discount, tax, and fees. * Grand total is calculated in the following manner: * * 1. Total price of all items in the cart. * 2. Discount is subtracted from the cart (if applicable). * 3. Tax is added (if applicable). * 4. Wix service fee is added. * @requiredField grandTotal * @servicePath wix-events-frontend.Tickets.Money */ grandTotal: Money; /** * Invoice applied fee charges. * @requiredField fees * @servicePath wix-events-frontend.Tickets.Fee */ fees: Fee[]; /** * Total revenue with taxes, excluding fees. Payment provider fees aren't deducted. * @requiredField revenue * @servicePath wix-events-frontend.Tickets.Money */ revenue: Money; } /** * An object representing a ticket order invoice item. */ export interface InvoiceItem { /** * Invoice item ID. * @requiredField id */ id: string; /** * Invoice item quantity. * @requiredField quantity */ quantity: number; /** * Invoice item name. * @requiredField name */ name: string; /** * Invoice item price. * @requiredField price * @servicePath wix-events-frontend.Tickets.Money */ price: Money; /** * Invoice item total. * @requiredField total * @servicePath wix-events-frontend.Tickets.Money */ total: Money; /** * Invoice item applied discount. * @servicePath wix-events-frontend.Tickets.Discount */ discount?: Discount; /** * Invoice item tax. * @servicePath wix-events-frontend.Tickets.Tax */ tax?: Tax; /** * Invoice item applied fee charges. * @requiredField fees * @servicePath wix-events-frontend.Tickets.Fee */ fees: Fee[]; } /** * An object representing a monetary amount. */ export interface Money { /** * Decimal amount. * @requiredField amount */ amount: string; /** * ISO 4217 currency format. For example, "USD". * @requiredField currency */ currency: string; } /** * An object containing information about a ticket order. */ export interface Order { /** * Order number. * @requiredField orderNumber */ orderNumber: string; /** * ID of the reservation used in the order. * @requiredField reservationId */ reservationId: string; /** * ID of the checkout payment. * @requiredField paymentId */ paymentId: string; /** * ID of the event the tickets are for. * @requiredField eventId */ eventId: string; /** * ID of the contact associated with the order. * @requiredField contactId */ contactId: string; /** * ID of the member associated with the order. * @requiredField memberId */ memberId: string; /** * Time the order was created. * @requiredField createdDate */ createdDate: string; /** * First name associated with the order. * @requiredField firstName */ firstName: string; /** * Last name associated with the order. * @requiredField lastName */ lastName: string; /** * Full name associated with the order. * @requiredField fullName */ fullName: string; /** * Email address associated with the order. * @requiredField email */ email: string; /** * Form values used in the order. * @requiredField checkoutForm * @servicePath wix-events-frontend.Form.FormValue */ checkoutForm: FormValue[]; /** * Whether the order is confirmed. * @requiredField confirmed */ confirmed: boolean; /** * Status of the order. * * One of: * * + `"INITIATED"` * + `"FREE"` * + `"PENDING"` * + `"PAID"` * + `"OFFLINE_PENDING"` * @requiredField status */ status: string; /** * Payment method. * @requiredField paymentMethod */ paymentMethod: string; /** * Number of tickets in the order. * @requiredField ticketQuantity */ ticketQuantity: number; /** * Order price. * @requiredField price * @servicePath wix-events-frontend.Tickets.Money */ price: Money; /** * URL of the tickets PDF. * @requiredField ticketsPdf */ ticketsPdf: string; /** * Whether the order is archived. * @requiredField archived */ archived: boolean; /** * Indicates whether personal information has been removed. * @requiredField anonymized */ anonymized: boolean; /** * Order invoice. * @requiredField invoice * @servicePath wix-events-frontend.Tickets.Invoice */ invoice: Invoice; /** * Whether all ticket holders in the order have checked in. * @requiredField fullyCheckedIn */ fullyCheckedIn: boolean; /** * Transaction ID. * @requiredField transactionId */ transactionId: string; } /** * An object representing ticket reservations. */ export interface Reservation { /** * Ticket quantity. * @requiredField quantity */ quantity: number; /** * Reserved ticket. * @requiredField ticket * @servicePath wix-events-frontend.Tickets.Ticket */ ticket: Ticket; } /** * An object containing information about a reservation that was created with `reserve()`. */ export interface ReservationResponse { /** * Reservation ID. * @requiredField id */ id: string; /** * Ticket reservations. * @requiredField reservations * @servicePath wix-events-frontend.Tickets.Reservation */ reservations: Reservation[]; /** * Ticket reservations invoice. * @requiredField invoice * @servicePath wix-events-frontend.Tickets.Invoice */ invoice: Invoice; /** * Time the reservations expire. * @requiredField expirationTime */ expirationTime: Date; } /** * An object representing a tax. */ export interface Tax { /** * Tax type. * One of: * * + `"INCLUDED"`: Tax is included in the ticket price. * + `"ADDED"`: Tax is added to the order at checkout. * @requiredField type */ type: string; /** * Tax name. * @requiredField name */ name: string; /** * Rate percentage. Possible values are between `"0.01"` and `"100"`, using up to 2 decimal places. * @requiredField rate */ rate: string; /** * Taxable amount. * @requiredField taxable * @servicePath wix-events-frontend.Tickets.Money */ taxable: Money; /** * Total tax amount. * @requiredField amount * @servicePath wix-events-frontend.Tickets.Money */ amount: Money; } /** * An object representing a ticket. */ export interface Ticket { /** * Ticket ID. * @requiredField _id */ _id: number; /** * Ticket price. * @requiredField price * @servicePath wix-events-frontend.Tickets.Money */ price: Money; /** * Whether the ticket is free. * @requiredField free */ free: boolean; /** * Ticket name. * @requiredField name */ name: string; /** * Ticket description. * @requiredField description */ description: string; /** * Number of tickets that can be checked out together. * A value of `0` means there is no limit. * @requiredField limitPerCheckout */ limitPerCheckout: number; /** * Order index. * @requiredField orderIndex */ orderIndex: number; /** * Ticket policy rules. * @requiredField policy */ policy: string; /** * ID of the event the ticket is for. * @requiredField eventId */ eventId: string; } /** * An object representing an event ticket. */ export interface TicketSelection { /** * ID of the ticket. * @requiredField ticketId */ ticketId: string; /** * Ticket quantity. * @requiredField quantity */ quantity: number; } /** * An object containing information about an order update. */ export interface UpdateInfo { /** * Field names and values for a registration form. * @requiredField formValues * @servicePath wix-events-frontend.Form.FormValue */ formValues: FormValue[]; } /** * An object containing information about an order updated with `updateOrder()`. */ export interface UpdateOrderResponse { /** * Updated ticket order. * @requiredField order * @servicePath wix-events-frontend.Tickets.Order */ order: Order; } /** * An object containing information about a coupon being verified with [`verifyCoupon()`. */ export interface VerifyCouponResponse { /** * Invoice the coupon is used in. * @servicePath wix-events-frontend.Tickets.Invoice */ invoice?: Invoice; /** * Discount errors. * @servicePath wix-events-frontend.Tickets.DiscountErrors */ discountErrors?: DiscountErrors; } /** * **Deprecated.** * This method will be deprecated on March 30, 2026. Replace with [checkout()](https://dev.wix.com/docs/sdk/backend-modules/events/orders/checkout). * * > **Migration Instructions** * > * > To stay compatible with future changes, migrate to * > [`checkout()`](https://dev.wix.com/docs/sdk/backend-modules/events/orders/checkout). * > * > To migrate to the new method: * > * > 1. Add a backend file to your site. * > * > 2. Write a code so that it replaces the `checkout()` method from the frontend with the `checkout()` method from the backend. Export your backend function so that it can be used in the frontend. * > * > 3. Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected. * * To checkout tickets, you must first call `reserve()` to reserve the tickets. * * Use the returned `order` to process payment for the tickets by passing the `order`'s * `paymentId` to [`startPayment()`](https://dev.wix.com/docs/velo/api-reference/wix-pay-frontend/start-payment). Note that * since the `order` has a `paymentId`, you don't need to first call `createPayment()` to create a payment. * * Before using `startPayment()`, you will need to set up a site to * accept payments. To learn more, see [Accepting Payments: An Overview](https://support.wix.com/en/article/accepting-payments-an-overview). * When setting up a site to accept payments, be sure to select the payment * methods to offer and [set the payment currency](https://support.wix.com/en/article/setting-your-currency-for-accepting-payments). * * * > **Notes:** * > * The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality. * > * With this method it's not possible to have separate ticket reservation forms for each ticket. You can only have 1 reservation form per ticket order. * @param eventId - ID of the event that the ticket reservations are for. * @requiredField eventId * @param reservationId - ID of the ticket reservations. * @requiredField reservationId * @param checkoutInfo - Information related to the checkout. * @requiredField checkoutInfo * @servicePath wix-events-frontend.Tickets.CheckoutInfo * @returns Fulfilled - Information about the checkout that was performed. * @servicePath wix-events-frontend.Tickets.CheckoutResponse */ export function checkout(eventId: string, reservationId: string, checkoutInfo: CheckoutInfo): Promise; /** * **Deprecated.** * This method will be deprecated on March 30, 2026. Replace with [createTicketReservation()](https://dev.wix.com/docs/sdk/backend-modules/events/ticket-reservations/create-ticket-reservation). * * > **Migration Instructions** * > * > To stay compatible with future changes, migrate to * > [`createTicketReservation()`](https://dev.wix.com/docs/sdk/backend-modules/events/ticket-reservations/create-ticket-reservation). * > * > To migrate to the new method: * > * > 1. Add a backend file to your site. * > * > 2. Write a code so that it replaces the `reserve()` method from the frontend with the `createTicketReservation()` method from the backend. Export your backend function so that it can be used in the frontend. * > * > 3. Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected. * * Retrieve ticket IDs to specify which tickets to reserve from the **Events/Tickets** collection. Each ticket must have a unique ID. * > **Notes:** * > - The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality. * > - This method doesn't reserve tickets for events with seating maps. * @param eventId - ID of the event to reserve tickets for. * @requiredField eventId * @param tickets - Tickets to reserve. * @requiredField tickets * @servicePath wix-events-frontend.Tickets.TicketSelection * @returns Fulfilled - Information about the reservations that were created. * @servicePath wix-events-frontend.Tickets.ReservationResponse */ export function reserve(eventId: string, tickets: TicketSelection[]): Promise; /** * **Deprecated.** * This method will be deprecated on March 30, 2026. Replace with [updateOrder()](https://dev.wix.com/docs/sdk/backend-modules/events/orders/update-order). * * > **Migration Instructions** * > * > To stay compatible with future changes, migrate to * > [`updateOrder()`](https://dev.wix.com/docs/sdk/backend-modules/events/orders/update-order). * > * > To migrate to the new method: * > * > 1. Add a backend file to your site. * > * > 2. Write a code so that it replaces the `updateOrder()` method from the frontend with the `updateOrder()` method from the backend. Export your backend function so that it can be used in the frontend. * > * > 3. Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected. * * You can't update an order after payment has been processed. * * > **Note:** The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality * @param eventId - ID of the event that the ticket reservations are for. * @requiredField eventId * @param orderNumber - Number of the order to update. * @requiredField orderNumber * @param updateInfo - Information related to the update. * @requiredField updateInfo * @servicePath wix-events-frontend.Tickets.UpdateInfo * @returns Fulfilled - Information about the order that was updated. * @servicePath wix-events-frontend.Tickets.UpdateOrderResponse */ export function updateOrder(eventId: string, orderNumber: string, updateInfo: UpdateInfo): Promise; /** * **Deprecated.** * This method will be deprecated on March 30, 2026. Replace with [getInvoice()](https://dev.wix.com/docs/sdk/backend-modules/events/orders/get-invoice). * * > **Migration Instructions** * > * > To stay compatible with future changes, migrate to * > [`getInvoice()`](https://dev.wix.com/docs/sdk/backend-modules/events/orders/get-invoice). The coupon verification is now performed under the hood by the `getInvoice()` method. * > * > To migrate to the new method: * > * > 1. Add a backend file to your site. * > * > 2. Write a code so that it replaces the `verifyCoupon()` method from the frontend with the `getInvoice()` method from the backend. Export your backend function so that it can be used in the frontend. * > * > 3. Import your backend function into the frontend file. Test your changes to make sure your code behaves as expected. * * If the coupon has been verified, the `VerifyCouponResponse` contains * an `invoice` property with an invoice that includes the coupon discounts. * * If the coupon fails verification, the `VerifyCouponResponse` contains * a `discountErrors` property including information about why the verification * failed. * * You may want to call `verifyCoupon()` in an input element's `onCustomValidation()` * to validate a coupon code while the form is being filled out. * * > **Note:** The frontend Events APIs aren't functional when previewing a site. View a published version of a site to see their complete functionality * @param eventId - ID of the event that the ticket coupon is for. * @requiredField eventId * @param reservationId - ID of the reservation that the ticket coupon is for. * @requiredField reservationId * @param coupon - Code of the coupon to verify. * @requiredField coupon * @returns Fulfilled - Information about coupon verification. * @servicePath wix-events-frontend.Tickets.VerifyCouponResponse */ export function verifyCoupon(eventId: string, reservationId: string, coupon: string): Promise;