@51eat/sdk 0.0.33 → 0.0.35

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.
Files changed (136) hide show
  1. package/README.md +12 -16
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +0 -3
  4. package/dist/cjs/Client.js +6 -11
  5. package/dist/cjs/api/resources/business/resources/events/client/Client.d.ts +3 -0
  6. package/dist/cjs/api/resources/business/resources/events/client/Client.js +9 -4
  7. package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/Client.d.ts +57 -0
  8. package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/Client.js +226 -0
  9. package/dist/{esm/api/resources/customer/resources/events/resources/ticketing/client/requests/HoldTicketsTicketingRequest.d.mts → cjs/api/resources/business/resources/events/resources/checkIn/client/requests/LookupCheckInRequest.d.ts} +1 -1
  10. package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/HoldTicketsTicketingRequest.d.ts → business/resources/events/resources/checkIn/client/requests/RecentCheckInRequest.d.ts} +1 -1
  11. package/dist/{esm/api/resources/customer/resources/events/resources/ticketing/client/requests/ConfirmOrderTicketingRequest.d.mts → cjs/api/resources/business/resources/events/resources/checkIn/client/requests/ScanCheckInRequest.d.ts} +1 -1
  12. package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/ConfirmOrderTicketingRequest.d.ts → business/resources/events/resources/checkIn/client/requests/StatsCheckInRequest.d.ts} +1 -1
  13. package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/requests/index.d.ts +4 -0
  14. package/dist/cjs/api/resources/business/resources/events/resources/checkIn/exports.d.ts +2 -0
  15. package/dist/cjs/api/resources/{customerEvents → business/resources/events/resources/checkIn}/exports.js +2 -2
  16. package/dist/cjs/api/resources/{customerEvents → business/resources/events/resources/checkIn}/index.d.ts +0 -1
  17. package/dist/cjs/api/resources/{customerEvents → business/resources/events/resources/checkIn}/index.js +0 -1
  18. package/dist/cjs/api/resources/business/resources/events/resources/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/business/resources/events/resources/index.js +3 -1
  20. package/dist/cjs/api/resources/customer/resources/events/resources/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/customer/resources/events/resources/index.js +1 -0
  22. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +55 -14
  23. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +171 -53
  24. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/ReleaseHoldTicketingRequest.d.ts +2 -2
  25. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/index.d.ts +4 -4
  26. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/index.d.ts +1 -0
  27. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/index.js +1 -0
  28. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/CalculatePriceTicketingResponse.d.ts +11 -0
  29. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.d.ts +4 -0
  30. package/dist/cjs/api/resources/{customerEvents/types/CreatePaymentIntentResponse.d.ts → customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.ts} +3 -3
  31. package/dist/{esm/api/resources/customerEvents/types/HoldTicketsResponse.d.mts → cjs/api/resources/customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.d.ts} +3 -3
  32. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/types/index.d.ts +4 -0
  33. package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/types/index.js +4 -4
  34. package/dist/cjs/api/resources/index.d.ts +0 -3
  35. package/dist/cjs/api/resources/index.js +1 -4
  36. package/dist/cjs/version.d.ts +1 -1
  37. package/dist/cjs/version.js +1 -1
  38. package/dist/esm/BaseClient.mjs +2 -2
  39. package/dist/esm/Client.d.mts +0 -3
  40. package/dist/esm/Client.mjs +0 -5
  41. package/dist/esm/api/resources/business/resources/events/client/Client.d.mts +3 -0
  42. package/dist/esm/api/resources/business/resources/events/client/Client.mjs +5 -0
  43. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/Client.d.mts +57 -0
  44. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/Client.mjs +189 -0
  45. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/requests/LookupCheckInRequest.d.mts +9 -0
  46. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/requests/RecentCheckInRequest.d.mts +9 -0
  47. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/requests/ScanCheckInRequest.d.mts +9 -0
  48. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/requests/StatsCheckInRequest.d.mts +9 -0
  49. package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/requests/index.d.mts +4 -0
  50. package/dist/esm/api/resources/business/resources/events/resources/checkIn/exports.d.mts +2 -0
  51. package/dist/esm/api/resources/{customerEvents → business/resources/events/resources/checkIn}/exports.mjs +1 -1
  52. package/dist/esm/api/resources/{customerEvents → business/resources/events/resources/checkIn}/index.d.mts +0 -1
  53. package/dist/esm/api/resources/{customerEvents → business/resources/events/resources/checkIn}/index.mjs +0 -1
  54. package/dist/esm/api/resources/business/resources/events/resources/index.d.mts +2 -0
  55. package/dist/esm/api/resources/business/resources/events/resources/index.mjs +2 -0
  56. package/dist/esm/api/resources/customer/resources/events/resources/index.d.mts +1 -0
  57. package/dist/esm/api/resources/customer/resources/events/resources/index.mjs +1 -0
  58. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +55 -14
  59. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +171 -53
  60. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/ReleaseHoldTicketingRequest.d.mts +2 -2
  61. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/index.d.mts +4 -4
  62. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/index.d.mts +1 -0
  63. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/index.mjs +1 -0
  64. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/CalculatePriceTicketingResponse.d.mts +11 -0
  65. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.d.mts +4 -0
  66. package/dist/esm/api/resources/{customerEvents/types/CreatePaymentIntentResponse.d.mts → customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.d.mts} +3 -3
  67. package/dist/{cjs/api/resources/customerEvents/types/HoldTicketsResponse.d.ts → esm/api/resources/customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.d.mts} +3 -3
  68. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/index.d.mts +4 -0
  69. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/types/index.mjs +4 -0
  70. package/dist/esm/api/resources/index.d.mts +0 -3
  71. package/dist/esm/api/resources/index.mjs +0 -3
  72. package/dist/esm/version.d.mts +1 -1
  73. package/dist/esm/version.mjs +1 -1
  74. package/package.json +12 -12
  75. package/reference.md +401 -453
  76. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/CalculatePriceTicketingRequest.d.ts +0 -9
  77. package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentTicketingRequest.d.ts +0 -9
  78. package/dist/cjs/api/resources/customerEvents/client/Client.d.ts +0 -110
  79. package/dist/cjs/api/resources/customerEvents/client/Client.js +0 -384
  80. package/dist/cjs/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.d.ts +0 -11
  81. package/dist/cjs/api/resources/customerEvents/client/requests/index.d.ts +0 -5
  82. package/dist/cjs/api/resources/customerEvents/exports.d.ts +0 -2
  83. package/dist/cjs/api/resources/customerEvents/types/CalculateTicketPriceResponse.d.ts +0 -11
  84. package/dist/cjs/api/resources/customerEvents/types/ConfirmTicketOrderResponse.d.ts +0 -4
  85. package/dist/cjs/api/resources/customerEvents/types/HoldTicketsResponse.js +0 -3
  86. package/dist/cjs/api/resources/customerEvents/types/index.d.ts +0 -4
  87. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/CalculatePriceTicketingRequest.d.mts +0 -9
  88. package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentTicketingRequest.d.mts +0 -9
  89. package/dist/esm/api/resources/customerEvents/client/Client.d.mts +0 -110
  90. package/dist/esm/api/resources/customerEvents/client/Client.mjs +0 -347
  91. package/dist/esm/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.d.mts +0 -11
  92. package/dist/esm/api/resources/customerEvents/client/requests/index.d.mts +0 -5
  93. package/dist/esm/api/resources/customerEvents/exports.d.mts +0 -2
  94. package/dist/esm/api/resources/customerEvents/types/CalculateTicketPriceResponse.d.mts +0 -11
  95. package/dist/esm/api/resources/customerEvents/types/ConfirmTicketOrderResponse.d.mts +0 -4
  96. package/dist/esm/api/resources/customerEvents/types/HoldTicketsResponse.mjs +0 -2
  97. package/dist/esm/api/resources/customerEvents/types/index.d.mts +0 -4
  98. package/dist/esm/api/resources/customerEvents/types/index.mjs +0 -4
  99. /package/dist/cjs/api/resources/{customerEvents → business/resources/events/resources/checkIn}/client/index.d.ts +0 -0
  100. /package/dist/cjs/api/resources/{customerEvents → business/resources/events/resources/checkIn}/client/index.js +0 -0
  101. /package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/CalculatePriceTicketingRequest.js → business/resources/events/resources/checkIn/client/requests/LookupCheckInRequest.js} +0 -0
  102. /package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/ConfirmOrderTicketingRequest.js → business/resources/events/resources/checkIn/client/requests/RecentCheckInRequest.js} +0 -0
  103. /package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentTicketingRequest.js → business/resources/events/resources/checkIn/client/requests/ScanCheckInRequest.js} +0 -0
  104. /package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/HoldTicketsTicketingRequest.js → business/resources/events/resources/checkIn/client/requests/StatsCheckInRequest.js} +0 -0
  105. /package/dist/cjs/api/resources/{customerEvents → business/resources/events/resources/checkIn}/client/requests/index.js +0 -0
  106. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CalculatePriceRequest.d.ts +0 -0
  107. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CalculatePriceRequest.js +0 -0
  108. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CreatePaymentIntentRequest.d.ts +0 -0
  109. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CreatePaymentIntentRequest.js +0 -0
  110. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketHoldRequest.d.ts +0 -0
  111. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketHoldRequest.js +0 -0
  112. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketOrderRequest.d.ts +0 -0
  113. /package/dist/cjs/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketOrderRequest.js +0 -0
  114. /package/dist/cjs/api/resources/{customerEvents/client/requests/ReleaseTicketHoldRequest.js → customer/resources/events/resources/ticketing/types/CalculatePriceTicketingResponse.js} +0 -0
  115. /package/dist/cjs/api/resources/{customerEvents/types/CalculateTicketPriceResponse.js → customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.js} +0 -0
  116. /package/dist/cjs/api/resources/{customerEvents/types/ConfirmTicketOrderResponse.js → customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.js} +0 -0
  117. /package/dist/cjs/api/resources/{customerEvents/types/CreatePaymentIntentResponse.js → customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.js} +0 -0
  118. /package/dist/esm/api/resources/{customerEvents → business/resources/events/resources/checkIn}/client/index.d.mts +0 -0
  119. /package/dist/esm/api/resources/{customerEvents → business/resources/events/resources/checkIn}/client/index.mjs +0 -0
  120. /package/dist/esm/api/resources/{customer/resources/events/resources/ticketing/client/requests/CalculatePriceTicketingRequest.mjs → business/resources/events/resources/checkIn/client/requests/LookupCheckInRequest.mjs} +0 -0
  121. /package/dist/esm/api/resources/{customer/resources/events/resources/ticketing/client/requests/ConfirmOrderTicketingRequest.mjs → business/resources/events/resources/checkIn/client/requests/RecentCheckInRequest.mjs} +0 -0
  122. /package/dist/esm/api/resources/{customer/resources/events/resources/ticketing/client/requests/CreatePaymentIntentTicketingRequest.mjs → business/resources/events/resources/checkIn/client/requests/ScanCheckInRequest.mjs} +0 -0
  123. /package/dist/esm/api/resources/{customer/resources/events/resources/ticketing/client/requests/HoldTicketsTicketingRequest.mjs → business/resources/events/resources/checkIn/client/requests/StatsCheckInRequest.mjs} +0 -0
  124. /package/dist/esm/api/resources/{customerEvents → business/resources/events/resources/checkIn}/client/requests/index.mjs +0 -0
  125. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CalculatePriceRequest.d.mts +0 -0
  126. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CalculatePriceRequest.mjs +0 -0
  127. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CreatePaymentIntentRequest.d.mts +0 -0
  128. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/CreatePaymentIntentRequest.mjs +0 -0
  129. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketHoldRequest.d.mts +0 -0
  130. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketHoldRequest.mjs +0 -0
  131. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketOrderRequest.d.mts +0 -0
  132. /package/dist/esm/api/resources/{customerEvents → customer/resources/events/resources/ticketing}/client/requests/StoreTicketOrderRequest.mjs +0 -0
  133. /package/dist/esm/api/resources/{customerEvents/client/requests/ReleaseTicketHoldRequest.mjs → customer/resources/events/resources/ticketing/types/CalculatePriceTicketingResponse.mjs} +0 -0
  134. /package/dist/esm/api/resources/{customerEvents/types/CalculateTicketPriceResponse.mjs → customer/resources/events/resources/ticketing/types/ConfirmOrderTicketingResponse.mjs} +0 -0
  135. /package/dist/esm/api/resources/{customerEvents/types/ConfirmTicketOrderResponse.mjs → customer/resources/events/resources/ticketing/types/CreatePaymentIntentTicketingResponse.mjs} +0 -0
  136. /package/dist/esm/api/resources/{customerEvents/types/CreatePaymentIntentResponse.mjs → customer/resources/events/resources/ticketing/types/HoldTicketsTicketingResponse.mjs} +0 -0
@@ -36,14 +36,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.serveAd = exports.recordClick = exports.customerMyAccount = exports.customerEvents = exports.customer = exports.business = void 0;
39
+ exports.serveAd = exports.recordClick = exports.customerMyAccount = exports.customer = exports.business = void 0;
40
40
  exports.business = __importStar(require("./business/index.js"));
41
41
  __exportStar(require("./customer/client/requests/index.js"), exports);
42
42
  exports.customer = __importStar(require("./customer/index.js"));
43
43
  __exportStar(require("./customer/types/index.js"), exports);
44
- __exportStar(require("./customerEvents/client/requests/index.js"), exports);
45
- exports.customerEvents = __importStar(require("./customerEvents/index.js"));
46
- __exportStar(require("./customerEvents/types/index.js"), exports);
47
44
  __exportStar(require("./customerMyAccount/client/requests/index.js"), exports);
48
45
  exports.customerMyAccount = __importStar(require("./customerMyAccount/index.js"));
49
46
  __exportStar(require("./customerMyAccount/types/index.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.33";
1
+ export declare const SDK_VERSION = "0.0.35";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.33";
4
+ exports.SDK_VERSION = "0.0.35";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@51eat/sdk",
9
- "X-Fern-SDK-Version": "0.0.33",
10
- "User-Agent": "@51eat/sdk/0.0.33",
9
+ "X-Fern-SDK-Version": "0.0.35",
10
+ "User-Agent": "@51eat/sdk/0.0.35",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -1,6 +1,5 @@
1
1
  import { BusinessClient } from "./api/resources/business/client/Client.mjs";
2
2
  import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
3
- import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.mjs";
4
3
  import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.mjs";
5
4
  import { RecordClickClient } from "./api/resources/recordClick/client/Client.mjs";
6
5
  import { ServeAdClient } from "./api/resources/serveAd/client/Client.mjs";
@@ -14,14 +13,12 @@ export declare namespace FiveOneEatClient {
14
13
  }
15
14
  export declare class FiveOneEatClient {
16
15
  protected readonly _options: NormalizedClientOptionsWithAuth<FiveOneEatClient.Options>;
17
- protected _customerEvents: CustomerEventsClient | undefined;
18
16
  protected _customerMyAccount: CustomerMyAccountClient | undefined;
19
17
  protected _customer: CustomerClient | undefined;
20
18
  protected _recordClick: RecordClickClient | undefined;
21
19
  protected _serveAd: ServeAdClient | undefined;
22
20
  protected _business: BusinessClient | undefined;
23
21
  constructor(options?: FiveOneEatClient.Options);
24
- get customerEvents(): CustomerEventsClient;
25
22
  get customerMyAccount(): CustomerMyAccountClient;
26
23
  get customer(): CustomerClient;
27
24
  get recordClick(): RecordClickClient;
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  import { BusinessClient } from "./api/resources/business/client/Client.mjs";
12
12
  import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
13
- import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.mjs";
14
13
  import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.mjs";
15
14
  import { RecordClickClient } from "./api/resources/recordClick/client/Client.mjs";
16
15
  import { ServeAdClient } from "./api/resources/serveAd/client/Client.mjs";
@@ -20,10 +19,6 @@ export class FiveOneEatClient {
20
19
  constructor(options = {}) {
21
20
  this._options = normalizeClientOptionsWithAuth(options);
22
21
  }
23
- get customerEvents() {
24
- var _a;
25
- return ((_a = this._customerEvents) !== null && _a !== void 0 ? _a : (this._customerEvents = new CustomerEventsClient(this._options)));
26
- }
27
22
  get customerMyAccount() {
28
23
  var _a;
29
24
  return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new CustomerMyAccountClient(this._options)));
@@ -2,6 +2,7 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../Ba
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
3
  import * as core from "../../../../../../core/index.mjs";
4
4
  import * as FiveOneEat from "../../../../../index.mjs";
5
+ import { CheckInClient } from "../resources/checkIn/client/Client.mjs";
5
6
  import { OrdersClient } from "../resources/orders/client/Client.mjs";
6
7
  import { TicketTypesClient } from "../resources/ticketTypes/client/Client.mjs";
7
8
  export declare namespace EventsClient {
@@ -13,9 +14,11 @@ export declare class EventsClient {
13
14
  protected readonly _options: NormalizedClientOptionsWithAuth<EventsClient.Options>;
14
15
  protected _ticketTypes: TicketTypesClient | undefined;
15
16
  protected _orders: OrdersClient | undefined;
17
+ protected _checkIn: CheckInClient | undefined;
16
18
  constructor(options?: EventsClient.Options);
17
19
  get ticketTypes(): TicketTypesClient;
18
20
  get orders(): OrdersClient;
21
+ get checkIn(): CheckInClient;
19
22
  /**
20
23
  * Accepts an optional `filter` query param: `upcoming`, `past`, or `all` (default `all`).
21
24
  *
@@ -26,6 +26,7 @@ import * as environments from "../../../../../../environments.mjs";
26
26
  import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
27
27
  import * as errors from "../../../../../../errors/index.mjs";
28
28
  import * as FiveOneEat from "../../../../../index.mjs";
29
+ import { CheckInClient } from "../resources/checkIn/client/Client.mjs";
29
30
  import { OrdersClient } from "../resources/orders/client/Client.mjs";
30
31
  import { TicketTypesClient } from "../resources/ticketTypes/client/Client.mjs";
31
32
  export class EventsClient {
@@ -40,6 +41,10 @@ export class EventsClient {
40
41
  var _a;
41
42
  return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new OrdersClient(this._options)));
42
43
  }
44
+ get checkIn() {
45
+ var _a;
46
+ return ((_a = this._checkIn) !== null && _a !== void 0 ? _a : (this._checkIn = new CheckInClient(this._options)));
47
+ }
43
48
  /**
44
49
  * Accepts an optional `filter` query param: `upcoming`, `past`, or `all` (default `all`).
45
50
  *
@@ -0,0 +1,57 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.mjs";
3
+ import * as core from "../../../../../../../../core/index.mjs";
4
+ import type * as FiveOneEat from "../../../../../../../index.mjs";
5
+ export declare namespace CheckInClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class CheckInClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<CheckInClient.Options>;
12
+ constructor(options?: CheckInClient.Options);
13
+ /**
14
+ * @param {FiveOneEat.business.events.LookupCheckInRequest} request
15
+ * @param {CheckInClient.RequestOptions} requestOptions - Request-specific configuration.
16
+ *
17
+ * @example
18
+ * await client.business.events.checkIn.lookup({
19
+ * event: "event"
20
+ * })
21
+ */
22
+ lookup(request: FiveOneEat.business.events.LookupCheckInRequest, requestOptions?: CheckInClient.RequestOptions): core.HttpResponsePromise<void>;
23
+ private __lookup;
24
+ /**
25
+ * @param {FiveOneEat.business.events.ScanCheckInRequest} request
26
+ * @param {CheckInClient.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @example
29
+ * await client.business.events.checkIn.scan({
30
+ * event: "event"
31
+ * })
32
+ */
33
+ scan(request: FiveOneEat.business.events.ScanCheckInRequest, requestOptions?: CheckInClient.RequestOptions): core.HttpResponsePromise<void>;
34
+ private __scan;
35
+ /**
36
+ * @param {FiveOneEat.business.events.StatsCheckInRequest} request
37
+ * @param {CheckInClient.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @example
40
+ * await client.business.events.checkIn.stats({
41
+ * event: "event"
42
+ * })
43
+ */
44
+ stats(request: FiveOneEat.business.events.StatsCheckInRequest, requestOptions?: CheckInClient.RequestOptions): core.HttpResponsePromise<void>;
45
+ private __stats;
46
+ /**
47
+ * @param {FiveOneEat.business.events.RecentCheckInRequest} request
48
+ * @param {CheckInClient.RequestOptions} requestOptions - Request-specific configuration.
49
+ *
50
+ * @example
51
+ * await client.business.events.checkIn.recent({
52
+ * event: "event"
53
+ * })
54
+ */
55
+ recent(request: FiveOneEat.business.events.RecentCheckInRequest, requestOptions?: CheckInClient.RequestOptions): core.HttpResponsePromise<void>;
56
+ private __recent;
57
+ }
@@ -0,0 +1,189 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
12
+ import { mergeHeaders } from "../../../../../../../../core/headers.mjs";
13
+ import * as core from "../../../../../../../../core/index.mjs";
14
+ import * as environments from "../../../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../../../../../errors/index.mjs";
17
+ export class CheckInClient {
18
+ constructor(options = {}) {
19
+ this._options = normalizeClientOptionsWithAuth(options);
20
+ }
21
+ /**
22
+ * @param {FiveOneEat.business.events.LookupCheckInRequest} request
23
+ * @param {CheckInClient.RequestOptions} requestOptions - Request-specific configuration.
24
+ *
25
+ * @example
26
+ * await client.business.events.checkIn.lookup({
27
+ * event: "event"
28
+ * })
29
+ */
30
+ lookup(request, requestOptions) {
31
+ return core.HttpResponsePromise.fromPromise(this.__lookup(request, requestOptions));
32
+ }
33
+ __lookup(request, requestOptions) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
36
+ const { event } = request;
37
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
38
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
39
+ const _response = yield core.fetcher({
40
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/events/${core.url.encodePathParam(event)}/check-in/lookup`),
41
+ method: "POST",
42
+ headers: _headers,
43
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
44
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
45
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
46
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
47
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
48
+ logging: this._options.logging,
49
+ });
50
+ if (_response.ok) {
51
+ return { data: undefined, rawResponse: _response.rawResponse };
52
+ }
53
+ if (_response.error.reason === "status-code") {
54
+ throw new errors.FiveOneEatError({
55
+ statusCode: _response.error.statusCode,
56
+ body: _response.error.body,
57
+ rawResponse: _response.rawResponse,
58
+ });
59
+ }
60
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/events/{event}/check-in/lookup");
61
+ });
62
+ }
63
+ /**
64
+ * @param {FiveOneEat.business.events.ScanCheckInRequest} request
65
+ * @param {CheckInClient.RequestOptions} requestOptions - Request-specific configuration.
66
+ *
67
+ * @example
68
+ * await client.business.events.checkIn.scan({
69
+ * event: "event"
70
+ * })
71
+ */
72
+ scan(request, requestOptions) {
73
+ return core.HttpResponsePromise.fromPromise(this.__scan(request, requestOptions));
74
+ }
75
+ __scan(request, requestOptions) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
78
+ const { event } = request;
79
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
80
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
81
+ const _response = yield core.fetcher({
82
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/events/${core.url.encodePathParam(event)}/check-in/scan`),
83
+ method: "POST",
84
+ headers: _headers,
85
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
86
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
87
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
88
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
89
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
90
+ logging: this._options.logging,
91
+ });
92
+ if (_response.ok) {
93
+ return { data: undefined, rawResponse: _response.rawResponse };
94
+ }
95
+ if (_response.error.reason === "status-code") {
96
+ throw new errors.FiveOneEatError({
97
+ statusCode: _response.error.statusCode,
98
+ body: _response.error.body,
99
+ rawResponse: _response.rawResponse,
100
+ });
101
+ }
102
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/events/{event}/check-in/scan");
103
+ });
104
+ }
105
+ /**
106
+ * @param {FiveOneEat.business.events.StatsCheckInRequest} request
107
+ * @param {CheckInClient.RequestOptions} requestOptions - Request-specific configuration.
108
+ *
109
+ * @example
110
+ * await client.business.events.checkIn.stats({
111
+ * event: "event"
112
+ * })
113
+ */
114
+ stats(request, requestOptions) {
115
+ return core.HttpResponsePromise.fromPromise(this.__stats(request, requestOptions));
116
+ }
117
+ __stats(request, requestOptions) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
120
+ const { event } = request;
121
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
122
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
123
+ const _response = yield core.fetcher({
124
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/events/${core.url.encodePathParam(event)}/check-in/stats`),
125
+ method: "GET",
126
+ headers: _headers,
127
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
128
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
129
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
130
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
131
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
132
+ logging: this._options.logging,
133
+ });
134
+ if (_response.ok) {
135
+ return { data: undefined, rawResponse: _response.rawResponse };
136
+ }
137
+ if (_response.error.reason === "status-code") {
138
+ throw new errors.FiveOneEatError({
139
+ statusCode: _response.error.statusCode,
140
+ body: _response.error.body,
141
+ rawResponse: _response.rawResponse,
142
+ });
143
+ }
144
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/business/events/{event}/check-in/stats");
145
+ });
146
+ }
147
+ /**
148
+ * @param {FiveOneEat.business.events.RecentCheckInRequest} request
149
+ * @param {CheckInClient.RequestOptions} requestOptions - Request-specific configuration.
150
+ *
151
+ * @example
152
+ * await client.business.events.checkIn.recent({
153
+ * event: "event"
154
+ * })
155
+ */
156
+ recent(request, requestOptions) {
157
+ return core.HttpResponsePromise.fromPromise(this.__recent(request, requestOptions));
158
+ }
159
+ __recent(request, requestOptions) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
162
+ const { event } = request;
163
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
164
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
165
+ const _response = yield core.fetcher({
166
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/events/${core.url.encodePathParam(event)}/check-in/recent`),
167
+ method: "GET",
168
+ headers: _headers,
169
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
170
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
171
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
172
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
173
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
174
+ logging: this._options.logging,
175
+ });
176
+ if (_response.ok) {
177
+ return { data: undefined, rawResponse: _response.rawResponse };
178
+ }
179
+ if (_response.error.reason === "status-code") {
180
+ throw new errors.FiveOneEatError({
181
+ statusCode: _response.error.statusCode,
182
+ body: _response.error.body,
183
+ rawResponse: _response.rawResponse,
184
+ });
185
+ }
186
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/business/events/{event}/check-in/recent");
187
+ });
188
+ }
189
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * event: "event"
5
+ * }
6
+ */
7
+ export interface LookupCheckInRequest {
8
+ event: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * event: "event"
5
+ * }
6
+ */
7
+ export interface RecentCheckInRequest {
8
+ event: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * event: "event"
5
+ * }
6
+ */
7
+ export interface ScanCheckInRequest {
8
+ event: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * event: "event"
5
+ * }
6
+ */
7
+ export interface StatsCheckInRequest {
8
+ event: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ export type { LookupCheckInRequest } from "./LookupCheckInRequest.mjs";
2
+ export type { RecentCheckInRequest } from "./RecentCheckInRequest.mjs";
3
+ export type { ScanCheckInRequest } from "./ScanCheckInRequest.mjs";
4
+ export type { StatsCheckInRequest } from "./StatsCheckInRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { CheckInClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -1,3 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export { CustomerEventsClient } from "./client/Client.mjs";
2
+ export { CheckInClient } from "./client/Client.mjs";
3
3
  export * from "./client/index.mjs";
@@ -1,2 +1 @@
1
1
  export * from "./client/index.mjs";
2
- export * from "./types/index.mjs";
@@ -1,2 +1 @@
1
1
  export * from "./client/index.mjs";
2
- export * from "./types/index.mjs";
@@ -1,3 +1,5 @@
1
+ export * from "./checkIn/client/requests/index.mjs";
2
+ export * as checkIn from "./checkIn/index.mjs";
1
3
  export * from "./orders/client/requests/index.mjs";
2
4
  export * as orders from "./orders/index.mjs";
3
5
  export * from "./orders/types/index.mjs";
@@ -1,3 +1,5 @@
1
+ export * from "./checkIn/client/requests/index.mjs";
2
+ export * as checkIn from "./checkIn/index.mjs";
1
3
  export * from "./orders/client/requests/index.mjs";
2
4
  export * as orders from "./orders/index.mjs";
3
5
  export * from "./orders/types/index.mjs";
@@ -1,2 +1,3 @@
1
1
  export * from "./ticketing/client/requests/index.mjs";
2
2
  export * as ticketing from "./ticketing/index.mjs";
3
+ export * from "./ticketing/types/index.mjs";
@@ -1,2 +1,3 @@
1
1
  export * from "./ticketing/client/requests/index.mjs";
2
2
  export * as ticketing from "./ticketing/index.mjs";
3
+ export * from "./ticketing/types/index.mjs";
@@ -1,7 +1,7 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.mjs";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.mjs";
3
3
  import * as core from "../../../../../../../../core/index.mjs";
4
- import type * as FiveOneEat from "../../../../../../../index.mjs";
4
+ import * as FiveOneEat from "../../../../../../../index.mjs";
5
5
  export declare namespace TicketingClient {
6
6
  type Options = BaseClientOptions;
7
7
  interface RequestOptions extends BaseRequestOptions {
@@ -11,59 +11,100 @@ export declare class TicketingClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<TicketingClient.Options>;
12
12
  constructor(options?: TicketingClient.Options);
13
13
  /**
14
- * @param {FiveOneEat.customer.events.HoldTicketsTicketingRequest} request
14
+ * Place a temporary hold on tickets for the specified event. Holds expire after 10 minutes.
15
+ *
16
+ * @param {FiveOneEat.customer.events.StoreTicketHoldRequest} request
15
17
  * @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
16
18
  *
19
+ * @throws {@link FiveOneEat.UnauthorizedError}
20
+ * @throws {@link FiveOneEat.NotFoundError}
21
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
22
+ *
17
23
  * @example
18
24
  * await client.customer.events.ticketing.holdTickets({
19
- * event: "event"
25
+ * eventId: "eventId",
26
+ * tickets: [{
27
+ * ticket_type_id: "ticket_type_id",
28
+ * quantity: 1
29
+ * }]
20
30
  * })
21
31
  */
22
- holdTickets(request: FiveOneEat.customer.events.HoldTicketsTicketingRequest, requestOptions?: TicketingClient.RequestOptions): core.HttpResponsePromise<void>;
32
+ holdTickets(request: FiveOneEat.customer.events.StoreTicketHoldRequest, requestOptions?: TicketingClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.events.HoldTicketsTicketingResponse>;
23
33
  private __holdTickets;
24
34
  /**
35
+ * Release all active holds for the given session, freeing the tickets for others.
36
+ *
25
37
  * @param {FiveOneEat.customer.events.ReleaseHoldTicketingRequest} request
26
38
  * @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
27
39
  *
40
+ * @throws {@link FiveOneEat.UnauthorizedError}
41
+ * @throws {@link FiveOneEat.NotFoundError}
42
+ *
28
43
  * @example
29
44
  * await client.customer.events.ticketing.releaseHold({
30
- * event: "event",
45
+ * eventId: "eventId",
31
46
  * sessionId: "sessionId"
32
47
  * })
33
48
  */
34
49
  releaseHold(request: FiveOneEat.customer.events.ReleaseHoldTicketingRequest, requestOptions?: TicketingClient.RequestOptions): core.HttpResponsePromise<void>;
35
50
  private __releaseHold;
36
51
  /**
37
- * @param {FiveOneEat.customer.events.CalculatePriceTicketingRequest} request
52
+ * Preview the subtotal, platform fee, and total for a given ticket selection.
53
+ *
54
+ * @param {FiveOneEat.customer.events.CalculatePriceRequest} request
38
55
  * @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
39
56
  *
57
+ * @throws {@link FiveOneEat.UnauthorizedError}
58
+ * @throws {@link FiveOneEat.NotFoundError}
59
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
60
+ *
40
61
  * @example
41
62
  * await client.customer.events.ticketing.calculatePrice({
42
- * event: "event"
63
+ * eventId: "eventId",
64
+ * tickets: [{
65
+ * ticket_type_id: "ticket_type_id",
66
+ * quantity: 1
67
+ * }]
43
68
  * })
44
69
  */
45
- calculatePrice(request: FiveOneEat.customer.events.CalculatePriceTicketingRequest, requestOptions?: TicketingClient.RequestOptions): core.HttpResponsePromise<void>;
70
+ calculatePrice(request: FiveOneEat.customer.events.CalculatePriceRequest, requestOptions?: TicketingClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.events.CalculatePriceTicketingResponse>;
46
71
  private __calculatePrice;
47
72
  /**
48
- * @param {FiveOneEat.customer.events.CreatePaymentIntentTicketingRequest} request
73
+ * Create a Stripe payment intent for the tickets held in the given session.
74
+ * Returns a client_secret for the mobile app to confirm payment with Stripe.
75
+ *
76
+ * @param {FiveOneEat.customer.events.CreatePaymentIntentRequest} request
49
77
  * @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
50
78
  *
79
+ * @throws {@link FiveOneEat.UnauthorizedError}
80
+ * @throws {@link FiveOneEat.NotFoundError}
81
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
82
+ *
51
83
  * @example
52
84
  * await client.customer.events.ticketing.createPaymentIntent({
53
- * event: "event"
85
+ * eventId: "eventId",
86
+ * session_id: "session_id"
54
87
  * })
55
88
  */
56
- createPaymentIntent(request: FiveOneEat.customer.events.CreatePaymentIntentTicketingRequest, requestOptions?: TicketingClient.RequestOptions): core.HttpResponsePromise<void>;
89
+ createPaymentIntent(request: FiveOneEat.customer.events.CreatePaymentIntentRequest, requestOptions?: TicketingClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.events.CreatePaymentIntentTicketingResponse>;
57
90
  private __createPaymentIntent;
58
91
  /**
59
- * @param {FiveOneEat.customer.events.ConfirmOrderTicketingRequest} request
92
+ * Confirm a completed Stripe payment and create the ticket order.
93
+ * The payment must have succeeded before calling this endpoint.
94
+ *
95
+ * @param {FiveOneEat.customer.events.StoreTicketOrderRequest} request
60
96
  * @param {TicketingClient.RequestOptions} requestOptions - Request-specific configuration.
61
97
  *
98
+ * @throws {@link FiveOneEat.UnauthorizedError}
99
+ * @throws {@link FiveOneEat.UnprocessableEntityError}
100
+ *
62
101
  * @example
63
102
  * await client.customer.events.ticketing.confirmOrder({
64
- * event: "event"
103
+ * eventId: "eventId",
104
+ * payment_intent_id: "payment_intent_id",
105
+ * session_id: "session_id"
65
106
  * })
66
107
  */
67
- confirmOrder(request: FiveOneEat.customer.events.ConfirmOrderTicketingRequest, requestOptions?: TicketingClient.RequestOptions): core.HttpResponsePromise<void>;
108
+ confirmOrder(request: FiveOneEat.customer.events.StoreTicketOrderRequest, requestOptions?: TicketingClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.customer.events.ConfirmOrderTicketingResponse>;
68
109
  private __confirmOrder;
69
110
  }