@wix/auto_sdk_events_orders 1.0.24 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ interface Order {
20
20
  */
21
21
  eventId?: string;
22
22
  /**
23
- * Contact ID of buyer, resolved using the email address provided. See the Contacts API for additional information.
23
+ * Contact ID of buyer, resolved using the email address specified. See the Contacts API for additional information.
24
24
  * @format GUID
25
25
  */
26
26
  contactId?: string;
@@ -30,7 +30,7 @@ interface Order {
30
30
  */
31
31
  memberId?: string;
32
32
  /**
33
- * Date and time the RSVP was created.
33
+ * Date and time the order was created.
34
34
  * @readonly
35
35
  */
36
36
  created?: Date | null;
@@ -39,7 +39,7 @@ interface Order {
39
39
  /** Guest last name. */
40
40
  lastName?: string;
41
41
  /**
42
- * Guest email.
42
+ * Guest email address.
43
43
  * @format EMAIL
44
44
  */
45
45
  email?: string;
@@ -58,7 +58,7 @@ interface Order {
58
58
  * - `DECLINED`: The order is payment is declined.
59
59
  */
60
60
  status?: OrderStatusWithLiterals;
61
- /** Payment method used for purchase, e.g., "payPal", "creditCard", etc. */
61
+ /** Payment method used for purchase, for example, "payPal", "creditCard", etc. */
62
62
  method?: string;
63
63
  /** Quantity of ordered tickets. */
64
64
  ticketsQuantity?: number;
@@ -76,14 +76,14 @@ interface Order {
76
76
  fullName?: string;
77
77
  /** Order invoice. */
78
78
  invoice?: Invoice;
79
- /** Whether all tickets in an order are checked-in. */
79
+ /** Whether all tickets in an order are checked in. */
80
80
  fullyCheckedIn?: boolean;
81
- /** Internal order payment details */
81
+ /** Internal order payment details. */
82
82
  paymentDetails?: PaymentDetails;
83
83
  /** Checkout channel type. */
84
84
  channel?: ChannelTypeWithLiterals;
85
85
  /**
86
- * Date and time the order was updated.
86
+ * Date and time the order was last updated.
87
87
  * @readonly
88
88
  */
89
89
  updated?: Date | null;
@@ -117,11 +117,11 @@ interface InputValue {
117
117
  }
118
118
  interface FormattedAddress {
119
119
  /**
120
- * One line address representation.
120
+ * 1-line address representation.
121
121
  * @maxLength 200
122
122
  */
123
123
  formatted?: string;
124
- /** Address components (optional). */
124
+ /** Address components. */
125
125
  address?: Address;
126
126
  }
127
127
  /** Physical address */
@@ -195,7 +195,7 @@ interface StandardDetails {
195
195
  iso31662?: string | null;
196
196
  }
197
197
  declare enum OrderStatus {
198
- /** Order status is not available for this request fieldset. */
198
+ /** Order status isn't available for this request fieldset. */
199
199
  NA_ORDER_STATUS = "NA_ORDER_STATUS",
200
200
  /** Order is confirmed, no payment is required. */
201
201
  FREE = "FREE",
@@ -203,9 +203,9 @@ declare enum OrderStatus {
203
203
  PENDING = "PENDING",
204
204
  /** Order is paid. */
205
205
  PAID = "PAID",
206
- /** Order is confirmed but has be paid via offline payment. Status needs to be manually updated to `"PAID"`. */
206
+ /** Order is confirmed but must be paid via offline payment. Status needs to be manually updated to `"PAID"`. */
207
207
  OFFLINE_PENDING = "OFFLINE_PENDING",
208
- /** Order is awaiting for payment at the cashier. */
208
+ /** Order is waiting for payment at the cashier. */
209
209
  INITIATED = "INITIATED",
210
210
  /** Order is canceled. */
211
211
  CANCELED = "CANCELED",
@@ -239,7 +239,7 @@ interface Money {
239
239
  value?: string | null;
240
240
  }
241
241
  interface TicketingTicket {
242
- /** Unique ticket number (issued automatically). */
242
+ /** Unique ticket number which is assigned automatically when creating a ticket. */
243
243
  ticketNumber?: string;
244
244
  /** Associated order number. */
245
245
  orderNumber?: string;
@@ -259,18 +259,13 @@ interface TicketingTicket {
259
259
  free?: boolean;
260
260
  /** Event and ticket policies. */
261
261
  policy?: string;
262
- /**
263
- * *Deprecated:** Use `tickets.checkInUrl` instead.
264
- * @deprecated
265
- */
266
- qrCode?: string;
267
262
  /** Ticket check-in. */
268
263
  checkIn?: CheckIn;
269
264
  /** Associated order status. */
270
265
  orderStatus?: OrderStatusWithLiterals;
271
266
  /**
272
267
  * Whether the order and ticket are archived.
273
- * If set to `true`, they are not visible in the order list.
268
+ * If set to `true`, they aren't visible in the order list.
274
269
  */
275
270
  orderArchived?: boolean;
276
271
  /** Buyer full name. */
@@ -279,13 +274,8 @@ interface TicketingTicket {
279
274
  guestFullName?: string | null;
280
275
  /** Guest personal details. */
281
276
  guestDetails?: GuestDetails;
282
- /** Whether ticket is visible in guest list. */
277
+ /** Whether the ticket is visible in an order. */
283
278
  archived?: boolean;
284
- /**
285
- * *Deprecated:** Use `tickets.ticketPdfUrl` instead.
286
- * @deprecated
287
- */
288
- ticketPdf?: string;
289
279
  /**
290
280
  * Ticket owner member ID.
291
281
  * @format GUID
@@ -320,7 +310,7 @@ interface TicketingTicket {
320
310
  canceled?: boolean | null;
321
311
  }
322
312
  interface CheckIn {
323
- /** Time of check-in. */
313
+ /** Time of a ticket's check-in. */
324
314
  created?: Date | null;
325
315
  }
326
316
  interface GuestDetails {
@@ -349,7 +339,7 @@ interface GuestDetails {
349
339
  phone?: string | null;
350
340
  }
351
341
  declare enum ChannelType {
352
- /** Buyer created the order via an online channel, such as a website or a mobile app. */
342
+ /** Buyer created the order via an online channel, such as a website or mobile app. */
353
343
  ONLINE = "ONLINE",
354
344
  /** Sales person created the order and collected the money. */
355
345
  OFFLINE_POS = "OFFLINE_POS"
@@ -430,8 +420,8 @@ interface Invoice {
430
420
  * Total amount of a cart after discount, tax, and fees.
431
421
  * Grand total is calculated in the following order:
432
422
  * 1. Total prices of all items in the cart are calculated.
433
- * 2. Discount is subtracted from the cart (if applicable).
434
- * 3. Tax is added (if applicable).
423
+ * 2. Discount is subtracted from the cart, if applicable.
424
+ * 3. Tax is added, if applicable.
435
425
  * 4. Wix ticket service fee is added.
436
426
  */
437
427
  grandTotal?: Money;
@@ -440,7 +430,7 @@ interface Invoice {
440
430
  * @readonly
441
431
  */
442
432
  fees?: Fee[];
443
- /** Total revenue, excluding fees. (Taxes and payment provider fees are not deducted). */
433
+ /** Total revenue, excluding fees. Taxes and payment provider fees aren't deducted. */
444
434
  revenue?: Money;
445
435
  /** Invoice preview URL. This value is only returned when the order is paid. */
446
436
  previewUrl?: string | null;
@@ -598,7 +588,7 @@ declare enum FeeType {
598
588
  /** @enumType */
599
589
  type FeeTypeWithLiterals = FeeType | 'FEE_ADDED' | 'FEE_INCLUDED' | 'FEE_ADDED_AT_CHECKOUT';
600
590
  interface PaymentDetails {
601
- /** Wix Payments transaction */
591
+ /** Wix Payments transaction. */
602
592
  transaction?: PaymentTransaction;
603
593
  }
604
594
  interface PaymentTransaction {
@@ -609,7 +599,7 @@ interface PaymentTransaction {
609
599
  */
610
600
  transactionId?: string;
611
601
  /**
612
- * Transaction Payment method e.g., "payPal", "creditCard", etc.
602
+ * Transaction payment method, for example, "payPal", "creditCard", etc.
613
603
  * @readonly
614
604
  */
615
605
  method?: string;
@@ -640,7 +630,7 @@ declare enum Action {
640
630
  type ActionWithLiterals = Action | 'ARCHIVE' | 'UNARCHIVE' | 'CONFIRM' | 'CAPTURE' | 'VOID';
641
631
  interface GiftCardPaymentDetails {
642
632
  /**
643
- * Gift card payment id.
633
+ * Gift card payment ID.
644
634
  * @format GUID
645
635
  */
646
636
  giftCardPaymentId?: string | null;
@@ -1484,9 +1474,9 @@ interface ReservationCreated {
1484
1474
  counts?: ReservationCount[];
1485
1475
  }
1486
1476
  declare enum ReservationStatus {
1487
- /** The Reservation is pending confirmation. It will expire after a certain amount of time. */
1477
+ /** The reservation is pending confirmation. It will expire after a certain amount of time. */
1488
1478
  RESERVATION_PENDING = "RESERVATION_PENDING",
1489
- /** The reservation is confirmed and will not expire. */
1479
+ /** The reservation is confirmed and won't expire. */
1490
1480
  RESERVATION_CONFIRMED = "RESERVATION_CONFIRMED",
1491
1481
  /** The reservation is canceled because it's not paid. */
1492
1482
  RESERVATION_CANCELED = "RESERVATION_CANCELED",
@@ -1562,7 +1552,7 @@ interface GetCheckoutOptionsResponse {
1562
1552
  paymentMethodConfigured?: boolean;
1563
1553
  /** Whether coupons are accepted at checkout. */
1564
1554
  acceptCoupons?: boolean;
1565
- /** Whether premium services are enabled. Enabled for free if site does not sell any paid tickets. Selling tickets for a fee requires a premium feature `"events_sell_tickets"`. */
1555
+ /** Whether premium services are enabled. Enabled for free if site doesn't sell any paid tickets. Selling tickets for a fee requires a premium feature `"events_sell_tickets"`. */
1566
1556
  premiumServices?: boolean;
1567
1557
  /** Whether there are any paid tickets available for sale. */
1568
1558
  paidTickets?: boolean;
@@ -1571,7 +1561,7 @@ interface GetCheckoutOptionsResponse {
1571
1561
  }
1572
1562
  interface ListAvailableTicketsRequest {
1573
1563
  /**
1574
- * Event ID to list tickets for. If not provided, available tickets for all events in the site will be returned.
1564
+ * Event ID to list tickets for. If not specified, available tickets for all events on a site will be returned.
1575
1565
  * @format GUID
1576
1566
  */
1577
1567
  eventId?: string;
@@ -1684,7 +1674,7 @@ interface TicketSalePeriod {
1684
1674
  startDate?: Date | null;
1685
1675
  /** Ticket sale end timestamp. */
1686
1676
  endDate?: Date | null;
1687
- /** Whether to hide this ticket if it's not on sale */
1677
+ /** Whether to hide this ticket if it isn't on sale. */
1688
1678
  hideNotOnSale?: boolean;
1689
1679
  }
1690
1680
  declare enum TicketSaleStatus {
@@ -1815,7 +1805,7 @@ interface TicketReservationQuantity {
1815
1805
  * @format DECIMAL_VALUE
1816
1806
  */
1817
1807
  priceOverride?: string | null;
1818
- /** Optional ticket details */
1808
+ /** Optional ticket details. */
1819
1809
  ticketDetails?: TicketDetails[];
1820
1810
  }
1821
1811
  interface CreateReservationResponse {
@@ -1945,7 +1935,7 @@ interface CheckoutRequest {
1945
1935
  * @format GUID
1946
1936
  */
1947
1937
  reservationId?: string;
1948
- /** Member ID (if empty - no site member is associated to this order). */
1938
+ /** Member ID. If empty, no site member is associated with this order. */
1949
1939
  memberId?: string;
1950
1940
  /** Discount to apply on the invoice. */
1951
1941
  discount?: DiscountRequest;
@@ -1961,7 +1951,7 @@ interface CheckoutRequest {
1961
1951
  paidPlanBenefit?: PaidPlanBenefit;
1962
1952
  /** Options controlling the checkout process. */
1963
1953
  options?: CheckoutOptions;
1964
- /** Whether marketing consent was given */
1954
+ /** Whether marketing consent was given. */
1965
1955
  marketingConsent?: boolean | null;
1966
1956
  }
1967
1957
  interface Buyer {
@@ -1992,7 +1982,7 @@ interface Guest {
1992
1982
  interface CheckoutOptions {
1993
1983
  /** Whether to ignore settings to notify contacts. */
1994
1984
  silent?: boolean;
1995
- /** Whether the payment is to be done in person between the buyer and the merchant. When true, the completed order is created with status OFFLINE_PENDING and inPerson payment method. */
1985
+ /** Whether the payment is to be done in person between the buyer and the merchant. When true, the completed order is created with status `OFFLINE_PENDING` and `inPerson` payment method. */
1996
1986
  payInPerson?: boolean;
1997
1987
  /** Whether to ignore form validation. */
1998
1988
  ignoreFormValidation?: boolean;
@@ -2100,7 +2090,7 @@ interface UpdateCheckoutRequest {
2100
2090
  /**
2101
2091
  * Member ID.
2102
2092
  *
2103
- * If empty, no site member is associated to this order.
2093
+ * If empty, no site member is associated with this order.
2104
2094
  */
2105
2095
  memberId?: string | null;
2106
2096
  /** Discount to apply on the invoice. */
@@ -2149,7 +2139,7 @@ interface PosCheckoutRequest {
2149
2139
  reservationId: string;
2150
2140
  /**
2151
2141
  * Payment details ID.
2152
- * Not required if reservation total is 0. In this case the order will be created with status Free and no payment.
2142
+ * Not required if reservation total is 0. In this case the order will be created with status `FREE` and no payment.
2153
2143
  * @format GUID
2154
2144
  */
2155
2145
  paymentDetailsId?: string | null;
@@ -2157,7 +2147,7 @@ interface PosCheckoutRequest {
2157
2147
  interface PosCheckoutResponse {
2158
2148
  /** Created order. */
2159
2149
  order?: Order;
2160
- /** Time when the order expires, applies to orders with status = INITIATED. */
2150
+ /** Time when the order expires, applies to orders with status is `INITIATED`. */
2161
2151
  expires?: Date | null;
2162
2152
  /** Ticket reservations. */
2163
2153
  reservations?: TicketReservation[];
@@ -2179,9 +2169,9 @@ interface GetReservationResponse {
2179
2169
  reservation?: Reservation;
2180
2170
  }
2181
2171
  interface Reservation {
2182
- /** Date and time the Ticket Reservation was created. */
2172
+ /** Date and time the ticket reservation was created. */
2183
2173
  _createdDate?: Date | null;
2184
- /** Date and time the Ticket Reservation was last updated. */
2174
+ /** Date and time the ticket reservation was last updated. */
2185
2175
  _updatedDate?: Date | null;
2186
2176
  /** Date and time the pending ticket reservation will expire. */
2187
2177
  expirationDate?: Date | null;
@@ -2297,7 +2287,7 @@ interface OrderDeletedEnvelope {
2297
2287
  metadata: BaseEventMetadata;
2298
2288
  }
2299
2289
  /**
2300
- * This event is triggered when an order is deleted via GDPR request.
2290
+ * This event is triggered when an order is deleted via a GDPR request.
2301
2291
  * @permissionScope Read Events - all read permissions
2302
2292
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
2303
2293
  * @permissionScope Manage Events - all permissions
@@ -2420,7 +2410,7 @@ interface OrderReservationUpdatedEnvelope {
2420
2410
  * @slug reservation_updated
2421
2411
  */
2422
2412
  declare function onOrderReservationUpdated(handler: (event: OrderReservationUpdatedEnvelope) => void | Promise<void>): void;
2423
- type OrderNonNullablePaths = `orderNumber` | `reservationId` | `snapshotId` | `eventId` | `contactId` | `memberId` | `firstName` | `lastName` | `email` | `checkoutForm.inputValues` | `checkoutForm.inputValues.${number}.inputName` | `checkoutForm.inputValues.${number}.value` | `confirmed` | `status` | `method` | `ticketsQuantity` | `totalPrice.amount` | `totalPrice.currency` | `ticketsPdf` | `tickets` | `tickets.${number}.ticketNumber` | `tickets.${number}.orderNumber` | `tickets.${number}.ticketDefinitionId` | `tickets.${number}.name` | `tickets.${number}.price.amount` | `tickets.${number}.price.currency` | `tickets.${number}.free` | `tickets.${number}.policy` | `tickets.${number}.qrCode` | `tickets.${number}.orderStatus` | `tickets.${number}.orderArchived` | `tickets.${number}.orderFullName` | `tickets.${number}.guestDetails.guestAssigned` | `tickets.${number}.archived` | `tickets.${number}.ticketPdf` | `tickets.${number}.anonymized` | `tickets.${number}.checkInUrl` | `tickets.${number}.ticketPdfUrl` | `tickets.${number}.channel` | `tickets.${number}.walletPassUrl` | `archived` | `anonymized` | `fullName` | `invoice.items` | `invoice.items.${number}._id` | `invoice.items.${number}.quantity` | `invoice.items.${number}.name` | `invoice.items.${number}.price.amount` | `invoice.items.${number}.price.currency` | `invoice.items.${number}.discount.code` | `invoice.items.${number}.discount.name` | `invoice.items.${number}.discount.couponId` | `invoice.items.${number}.tax.type` | `invoice.items.${number}.tax.name` | `invoice.items.${number}.tax.rate` | `invoice.fees` | `fullyCheckedIn` | `paymentDetails.transaction.transactionId` | `paymentDetails.transaction.method` | `channel`;
2413
+ type OrderNonNullablePaths = `orderNumber` | `reservationId` | `snapshotId` | `eventId` | `contactId` | `memberId` | `firstName` | `lastName` | `email` | `checkoutForm.inputValues` | `checkoutForm.inputValues.${number}.inputName` | `checkoutForm.inputValues.${number}.value` | `confirmed` | `status` | `method` | `ticketsQuantity` | `totalPrice.amount` | `totalPrice.currency` | `ticketsPdf` | `tickets` | `tickets.${number}.ticketNumber` | `tickets.${number}.orderNumber` | `tickets.${number}.ticketDefinitionId` | `tickets.${number}.name` | `tickets.${number}.price.amount` | `tickets.${number}.price.currency` | `tickets.${number}.free` | `tickets.${number}.policy` | `tickets.${number}.orderStatus` | `tickets.${number}.orderArchived` | `tickets.${number}.orderFullName` | `tickets.${number}.guestDetails.guestAssigned` | `tickets.${number}.archived` | `tickets.${number}.anonymized` | `tickets.${number}.checkInUrl` | `tickets.${number}.ticketPdfUrl` | `tickets.${number}.channel` | `tickets.${number}.walletPassUrl` | `archived` | `anonymized` | `fullName` | `invoice.items` | `invoice.items.${number}._id` | `invoice.items.${number}.quantity` | `invoice.items.${number}.name` | `invoice.items.${number}.price.amount` | `invoice.items.${number}.price.currency` | `invoice.items.${number}.discount.code` | `invoice.items.${number}.discount.name` | `invoice.items.${number}.discount.couponId` | `invoice.items.${number}.tax.type` | `invoice.items.${number}.tax.name` | `invoice.items.${number}.tax.rate` | `invoice.fees` | `fullyCheckedIn` | `paymentDetails.transaction.transactionId` | `paymentDetails.transaction.method` | `channel`;
2424
2414
  /**
2425
2415
  * Retrieves a list of orders, including ticket data.
2426
2416
  * @public
@@ -2733,7 +2723,7 @@ declare function getCheckoutOptions(): Promise<NonNullablePaths<GetCheckoutOptio
2733
2723
  declare function listAvailableTickets(options?: ListAvailableTicketsOptions): Promise<NonNullablePaths<ListAvailableTicketsResponse, `metaData.count` | `metaData.offset` | `metaData.total` | `definitions` | `definitions.${number}._id` | `definitions.${number}.price.amount` | `definitions.${number}.price.currency` | `definitions.${number}.free` | `definitions.${number}.name` | `definitions.${number}.description` | `definitions.${number}.limitPerCheckout` | `definitions.${number}.orderIndex` | `definitions.${number}.policy` | `definitions.${number}.dashboard.hidden` | `definitions.${number}.dashboard.sold` | `definitions.${number}.dashboard.limited` | `definitions.${number}.dashboard.ticketsSold` | `definitions.${number}.dashboard.ticketsReserved` | `definitions.${number}.eventId` | `definitions.${number}.wixFeeConfig.type` | `definitions.${number}.salePeriod.hideNotOnSale` | `definitions.${number}.saleStatus` | `definitions.${number}.pricing.pricingType`>>;
2734
2724
  interface ListAvailableTicketsOptions {
2735
2725
  /**
2736
- * Event ID to list tickets for. If not provided, available tickets for all events in the site will be returned.
2726
+ * Event ID to list tickets for. If not specified, available tickets for all events on a site will be returned.
2737
2727
  * @format GUID
2738
2728
  */
2739
2729
  eventId?: string;
@@ -2884,7 +2874,7 @@ interface CheckoutOptionsForRequest {
2884
2874
  * @format GUID
2885
2875
  */
2886
2876
  reservationId?: string;
2887
- /** Member ID (if empty - no site member is associated to this order). */
2877
+ /** Member ID. If empty, no site member is associated with this order. */
2888
2878
  memberId?: string;
2889
2879
  /** Discount to apply on the invoice. */
2890
2880
  discount?: DiscountRequest;
@@ -2900,7 +2890,7 @@ interface CheckoutOptionsForRequest {
2900
2890
  paidPlanBenefit?: PaidPlanBenefit;
2901
2891
  /** Options controlling the checkout process. */
2902
2892
  options?: CheckoutOptions;
2903
- /** Whether marketing consent was given */
2893
+ /** Whether marketing consent was given. */
2904
2894
  marketingConsent?: boolean | null;
2905
2895
  }
2906
2896
  /**
@@ -2935,7 +2925,7 @@ interface UpdateCheckoutOptions {
2935
2925
  /**
2936
2926
  * Member ID.
2937
2927
  *
2938
- * If empty, no site member is associated to this order.
2928
+ * If empty, no site member is associated with this order.
2939
2929
  */
2940
2930
  memberId?: string | null;
2941
2931
  /** Discount to apply on the invoice. */
@@ -2965,7 +2955,7 @@ interface PosCheckoutOptions {
2965
2955
  reservationId: string;
2966
2956
  /**
2967
2957
  * Payment details ID.
2968
- * Not required if reservation total is 0. In this case the order will be created with status Free and no payment.
2958
+ * Not required if reservation total is 0. In this case the order will be created with status `FREE` and no payment.
2969
2959
  * @format GUID
2970
2960
  */
2971
2961
  paymentDetailsId?: string | null;