@drttix/drt-sdk 1.2.5 → 1.3.2

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 (67) hide show
  1. package/azure-pipelines.yml +2 -0
  2. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  3. package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
  4. package/dist/cjs/src/generated/shopper/index.d.ts +8 -0
  5. package/dist/cjs/src/generated/shopper/models/CartHashResponse.d.ts +6 -0
  6. package/dist/cjs/src/generated/shopper/models/CartHashResponse.js +2 -0
  7. package/dist/cjs/src/generated/shopper/models/CartItemCounts.d.ts +10 -0
  8. package/dist/cjs/src/generated/shopper/models/CartItemCounts.js +2 -0
  9. package/dist/cjs/src/generated/shopper/models/CartSummary.d.ts +26 -0
  10. package/dist/cjs/src/generated/shopper/models/CartSummary.js +2 -0
  11. package/dist/cjs/src/generated/shopper/models/CashPaymentDetail.d.ts +18 -0
  12. package/dist/cjs/src/generated/shopper/models/CashPaymentDetail.js +2 -0
  13. package/dist/cjs/src/generated/shopper/models/DonateOrderRequest.d.ts +4 -0
  14. package/dist/cjs/src/generated/shopper/models/DonateOrderRequest.js +2 -0
  15. package/dist/cjs/src/generated/shopper/models/ExchangeRequest.d.ts +11 -0
  16. package/dist/cjs/src/generated/shopper/models/ExchangeRequest.js +2 -0
  17. package/dist/cjs/src/generated/shopper/models/SeatIdInput.d.ts +4 -0
  18. package/dist/cjs/src/generated/shopper/models/SeatIdInput.js +2 -0
  19. package/dist/cjs/src/generated/shopper/models/SeatsByShow.d.ts +18 -0
  20. package/dist/cjs/src/generated/shopper/models/SeatsByShow.js +2 -0
  21. package/dist/cjs/src/generated/shopper/services/CartService.d.ts +24 -0
  22. package/dist/cjs/src/generated/shopper/services/CartService.js +51 -0
  23. package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +18 -0
  24. package/dist/cjs/src/generated/shopper/services/OrderService.js +40 -0
  25. package/dist/cjs/src/generated/shopper/types.d.ts +8 -0
  26. package/dist/cjs/src/scripts/build-all.js +10 -15
  27. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  28. package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
  29. package/dist/esm/src/generated/shopper/index.d.ts +8 -0
  30. package/dist/esm/src/generated/shopper/models/CartHashResponse.d.ts +6 -0
  31. package/dist/esm/src/generated/shopper/models/CartHashResponse.js +1 -0
  32. package/dist/esm/src/generated/shopper/models/CartItemCounts.d.ts +10 -0
  33. package/dist/esm/src/generated/shopper/models/CartItemCounts.js +1 -0
  34. package/dist/esm/src/generated/shopper/models/CartSummary.d.ts +26 -0
  35. package/dist/esm/src/generated/shopper/models/CartSummary.js +1 -0
  36. package/dist/esm/src/generated/shopper/models/CashPaymentDetail.d.ts +18 -0
  37. package/dist/esm/src/generated/shopper/models/CashPaymentDetail.js +1 -0
  38. package/dist/esm/src/generated/shopper/models/DonateOrderRequest.d.ts +4 -0
  39. package/dist/esm/src/generated/shopper/models/DonateOrderRequest.js +1 -0
  40. package/dist/esm/src/generated/shopper/models/ExchangeRequest.d.ts +11 -0
  41. package/dist/esm/src/generated/shopper/models/ExchangeRequest.js +1 -0
  42. package/dist/esm/src/generated/shopper/models/SeatIdInput.d.ts +4 -0
  43. package/dist/esm/src/generated/shopper/models/SeatIdInput.js +1 -0
  44. package/dist/esm/src/generated/shopper/models/SeatsByShow.d.ts +18 -0
  45. package/dist/esm/src/generated/shopper/models/SeatsByShow.js +1 -0
  46. package/dist/esm/src/generated/shopper/services/CartService.d.ts +24 -0
  47. package/dist/esm/src/generated/shopper/services/CartService.js +51 -0
  48. package/dist/esm/src/generated/shopper/services/OrderService.d.ts +18 -0
  49. package/dist/esm/src/generated/shopper/services/OrderService.js +40 -0
  50. package/dist/esm/src/generated/shopper/types.d.ts +8 -0
  51. package/dist/esm/src/scripts/build-all.js +11 -16
  52. package/package.json +2 -2
  53. package/src/generated/portal/core/OpenAPI.ts +1 -1
  54. package/src/generated/shopper/core/OpenAPI.ts +1 -1
  55. package/src/generated/shopper/index.ts +8 -0
  56. package/src/generated/shopper/models/CartHashResponse.ts +11 -0
  57. package/src/generated/shopper/models/CartItemCounts.ts +15 -0
  58. package/src/generated/shopper/models/CartSummary.ts +31 -0
  59. package/src/generated/shopper/models/CashPaymentDetail.ts +23 -0
  60. package/src/generated/shopper/models/DonateOrderRequest.ts +9 -0
  61. package/src/generated/shopper/models/ExchangeRequest.ts +16 -0
  62. package/src/generated/shopper/models/SeatIdInput.ts +9 -0
  63. package/src/generated/shopper/models/SeatsByShow.ts +23 -0
  64. package/src/generated/shopper/services/CartService.ts +57 -0
  65. package/src/generated/shopper/services/OrderService.ts +46 -0
  66. package/src/generated/shopper/types.ts +8 -0
  67. package/src/scripts/build-all.ts +22 -23
@@ -0,0 +1,11 @@
1
+ import type { SeatIdInput } from './SeatIdInput';
2
+ export type ExchangeRequest = {
3
+ /**
4
+ * Order GUID
5
+ */
6
+ guid: string;
7
+ /**
8
+ * Seats to exchange out
9
+ */
10
+ seats: Array<SeatIdInput>;
11
+ };
@@ -0,0 +1,4 @@
1
+ export type SeatIdInput = {
2
+ showId: number;
3
+ seatId: number;
4
+ };
@@ -0,0 +1,18 @@
1
+ export type SeatsByShow = {
2
+ /**
3
+ * Number of seats held for the show.
4
+ */
5
+ numSeats: number;
6
+ /**
7
+ * Full name of the show.
8
+ */
9
+ showName: string;
10
+ /**
11
+ * Short display name of the show.
12
+ */
13
+ shortName: string;
14
+ /**
15
+ * Title of the show.
16
+ */
17
+ showTitle: Record<string, any>;
18
+ };
@@ -1,4 +1,7 @@
1
+ import type { CartHashResponse } from '../models/CartHashResponse';
2
+ import type { CartSummary } from '../models/CartSummary';
1
3
  import type { CartWithTime } from '../models/CartWithTime';
4
+ import type { CashPaymentDetail } from '../models/CashPaymentDetail';
2
5
  import type { CancelablePromise } from '../core/CancelablePromise';
3
6
  export declare class CartService {
4
7
  /**
@@ -15,4 +18,25 @@ export declare class CartService {
15
18
  * @throws ApiError
16
19
  */
17
20
  static deleteCart(): CancelablePromise<any>;
21
+ /**
22
+ * Get Cart Summary
23
+ * Returns a consolidated summary of the shopper's current cart, including: products in session, donations in session, held seats grouped by show, the count of available shows, and the count of available products and donation funds for the account based on the session date.
24
+ * @returns CartSummary Cart summary retrieved successfully.
25
+ * @throws ApiError
26
+ */
27
+ static getCartSummary(): CancelablePromise<CartSummary>;
28
+ /**
29
+ * Get Cart Hash
30
+ * Returns the computed cart hash for the current shopper session.
31
+ * @returns CartHashResponse Cart hash retrieved successfully.
32
+ * @throws ApiError
33
+ */
34
+ static getCartHash(): CancelablePromise<CartHashResponse>;
35
+ /**
36
+ * Get Cash Payment Detail
37
+ * Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials.
38
+ * @returns CashPaymentDetail Cash payment detail retrieved successfully.
39
+ * @throws ApiError
40
+ */
41
+ static getCashPaymentDetail(): CancelablePromise<CashPaymentDetail>;
18
42
  }
@@ -35,4 +35,55 @@ export class CartService {
35
35
  },
36
36
  });
37
37
  }
38
+ /**
39
+ * Get Cart Summary
40
+ * Returns a consolidated summary of the shopper's current cart, including: products in session, donations in session, held seats grouped by show, the count of available shows, and the count of available products and donation funds for the account based on the session date.
41
+ * @returns CartSummary Cart summary retrieved successfully.
42
+ * @throws ApiError
43
+ */
44
+ static getCartSummary() {
45
+ return __request(OpenAPI, {
46
+ method: 'GET',
47
+ url: '/cart/summary',
48
+ errors: {
49
+ 400: `Bad Request error with error details.`,
50
+ 404: `Not found error with error details.`,
51
+ 500: `Internal Server Error, please contact developers.`,
52
+ },
53
+ });
54
+ }
55
+ /**
56
+ * Get Cart Hash
57
+ * Returns the computed cart hash for the current shopper session.
58
+ * @returns CartHashResponse Cart hash retrieved successfully.
59
+ * @throws ApiError
60
+ */
61
+ static getCartHash() {
62
+ return __request(OpenAPI, {
63
+ method: 'GET',
64
+ url: '/cart/hash',
65
+ errors: {
66
+ 400: `Bad Request error with error details.`,
67
+ 404: `Not found error with error details.`,
68
+ 500: `Internal Server Error, please contact developers.`,
69
+ },
70
+ });
71
+ }
72
+ /**
73
+ * Get Cash Payment Detail
74
+ * Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials.
75
+ * @returns CashPaymentDetail Cash payment detail retrieved successfully.
76
+ * @throws ApiError
77
+ */
78
+ static getCashPaymentDetail() {
79
+ return __request(OpenAPI, {
80
+ method: 'GET',
81
+ url: '/cart/cash-payment-detail',
82
+ errors: {
83
+ 400: `Bad Request error with error details.`,
84
+ 404: `Not found error with error details.`,
85
+ 500: `Internal Server Error, please contact developers.`,
86
+ },
87
+ });
88
+ }
38
89
  }
@@ -1,5 +1,7 @@
1
1
  import type { AssignNamesReturn } from '../models/AssignNamesReturn';
2
+ import type { DonateOrderRequest } from '../models/DonateOrderRequest';
2
3
  import type { EmailUpdate } from '../models/EmailUpdate';
4
+ import type { ExchangeRequest } from '../models/ExchangeRequest';
3
5
  import type { GuidReturn } from '../models/GuidReturn';
4
6
  import type { LinkWithSuccess } from '../models/LinkWithSuccess';
5
7
  import type { NameUpdate } from '../models/NameUpdate';
@@ -114,6 +116,14 @@ export declare class OrderService {
114
116
  * @throws ApiError
115
117
  */
116
118
  static postRecalcOrder(guid: string, requestBody: OrderRecalc): CancelablePromise<RecalcResponse>;
119
+ /**
120
+ * Donate order in lieu of refund
121
+ * Marks an order as donated in lieu of refund using the provided order guid and donated IP address.
122
+ * @param requestBody Donate order payload containing guid and donatedIpAddress.
123
+ * @returns SuccessResponse Returns success status after donating the order.
124
+ * @throws ApiError
125
+ */
126
+ static postDonateOrder(requestBody: DonateOrderRequest): CancelablePromise<SuccessResponse>;
117
127
  /**
118
128
  * Register a stream for a shopper
119
129
  * Registers a stream for the specified shopper and account using the provided stream registration details.
@@ -130,4 +140,12 @@ export declare class OrderService {
130
140
  * @throws ApiError
131
141
  */
132
142
  static deleteRegisteredStream(requestBody: RegisterStreamRequest): CancelablePromise<SuccessResponse>;
143
+ /**
144
+ * Execute a seat exchange for an order
145
+ * Swaps seats held in the cart for the seats specified in seatIds on an existing order.
146
+ * @param requestBody Exchange request containing the order GUID and seat IDs to exchange out.
147
+ * @returns SuccessResponse Returns success after completing the exchange.
148
+ * @throws ApiError
149
+ */
150
+ static postExchange(requestBody: ExchangeRequest): CancelablePromise<SuccessResponse>;
133
151
  }
@@ -265,6 +265,26 @@ export class OrderService {
265
265
  },
266
266
  });
267
267
  }
268
+ /**
269
+ * Donate order in lieu of refund
270
+ * Marks an order as donated in lieu of refund using the provided order guid and donated IP address.
271
+ * @param requestBody Donate order payload containing guid and donatedIpAddress.
272
+ * @returns SuccessResponse Returns success status after donating the order.
273
+ * @throws ApiError
274
+ */
275
+ static postDonateOrder(requestBody) {
276
+ return __request(OpenAPI, {
277
+ method: 'POST',
278
+ url: '/order/donate-order',
279
+ body: requestBody,
280
+ mediaType: 'application/json',
281
+ errors: {
282
+ 400: `Bad Request error with error details.`,
283
+ 404: `Not found error with error details.`,
284
+ 500: `Internal Server Error, please contact developers.`,
285
+ },
286
+ });
287
+ }
268
288
  /**
269
289
  * Register a stream for a shopper
270
290
  * Registers a stream for the specified shopper and account using the provided stream registration details.
@@ -305,4 +325,24 @@ export class OrderService {
305
325
  },
306
326
  });
307
327
  }
328
+ /**
329
+ * Execute a seat exchange for an order
330
+ * Swaps seats held in the cart for the seats specified in seatIds on an existing order.
331
+ * @param requestBody Exchange request containing the order GUID and seat IDs to exchange out.
332
+ * @returns SuccessResponse Returns success after completing the exchange.
333
+ * @throws ApiError
334
+ */
335
+ static postExchange(requestBody) {
336
+ return __request(OpenAPI, {
337
+ method: 'POST',
338
+ url: '/order/exchange',
339
+ body: requestBody,
340
+ mediaType: 'application/json',
341
+ errors: {
342
+ 400: `Bad Request error with error details.`,
343
+ 404: `Not found error with error details.`,
344
+ 500: `Internal Server Error, please contact developers.`,
345
+ },
346
+ });
347
+ }
308
348
  }
@@ -7,7 +7,11 @@ export type { BAHold } from './models/BAHold';
7
7
  export type { BlockOfTickets } from './models/BlockOfTickets';
8
8
  export type { Cart } from './models/Cart';
9
9
  export type { CartCounts } from './models/CartCounts';
10
+ export type { CartHashResponse } from './models/CartHashResponse';
11
+ export type { CartItemCounts } from './models/CartItemCounts';
12
+ export type { CartSummary } from './models/CartSummary';
10
13
  export type { CartWithTime } from './models/CartWithTime';
14
+ export type { CashPaymentDetail } from './models/CashPaymentDetail';
11
15
  export type { Chart } from './models/Chart';
12
16
  export type { CheckoutDonation } from './models/CheckoutDonation';
13
17
  export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
@@ -23,6 +27,7 @@ export type { CompleteBody } from './models/CompleteBody';
23
27
  export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
24
28
  export type { CreateSessionDto } from './models/CreateSessionDto';
25
29
  export type { DigitalAsset } from './models/DigitalAsset';
30
+ export type { DonateOrderRequest } from './models/DonateOrderRequest';
26
31
  export type { DonationContribution } from './models/DonationContribution';
27
32
  export type { DonationFund } from './models/DonationFund';
28
33
  export type { DonationInCart } from './models/DonationInCart';
@@ -33,6 +38,7 @@ export type { EmailUpdate } from './models/EmailUpdate';
33
38
  export type { EngineSeat } from './models/EngineSeat';
34
39
  export type { EventDetails } from './models/EventDetails';
35
40
  export type { EventGroup } from './models/EventGroup';
41
+ export type { ExchangeRequest } from './models/ExchangeRequest';
36
42
  export type { ExistingRefundDetails } from './models/ExistingRefundDetails';
37
43
  export type { FullEventDetails } from './models/FullEventDetails';
38
44
  export type { GAHold } from './models/GAHold';
@@ -90,8 +96,10 @@ export type { SaveDetailsBody } from './models/SaveDetailsBody';
90
96
  export type { SaveNonceBody } from './models/SaveNonceBody';
91
97
  export type { SeatData } from './models/SeatData';
92
98
  export type { SeatHoldReturn } from './models/SeatHoldReturn';
99
+ export type { SeatIdInput } from './models/SeatIdInput';
93
100
  export type { SeatInCart } from './models/SeatInCart';
94
101
  export type { SeatingTier } from './models/SeatingTier';
102
+ export type { SeatsByShow } from './models/SeatsByShow';
95
103
  export type { Section } from './models/Section';
96
104
  export type { SectionRule } from './models/SectionRule';
97
105
  export type { SessionHeartbeatDto } from './models/SessionHeartbeatDto';
@@ -1,17 +1,6 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
- import { execSync, execFileSync } from 'child_process';
4
- // On Windows, execFileSync with shell:true joins args without quoting, so paths
5
- // containing spaces are split. Use execSync with manual quoting on Windows instead.
6
- function runCommand(cmd, args) {
7
- if (process.platform === 'win32') {
8
- const quotedArgs = args.map((a) => (a.includes(' ') ? `"${a}"` : a));
9
- execSync([cmd, ...quotedArgs].join(' '), { stdio: 'inherit' });
10
- }
11
- else {
12
- execFileSync(cmd, args, { stdio: 'inherit' });
13
- }
14
- }
3
+ import { execFileSync } from 'child_process';
15
4
  // Load the spec list (use staging specs when --staging flag is passed)
16
5
  const isStaging = process.argv.includes('--staging');
17
6
  const specsFile = isStaging
@@ -33,8 +22,11 @@ for (const spec of specs) {
33
22
  const tempSpecFile = path.join(process.cwd(), `${name}-spec.json`);
34
23
  try {
35
24
  console.log(`📥 Downloading spec from ${url}...`);
36
- runCommand(CURL_CMD, ['-s', '-o', tempSpecFile, url]);
37
- runCommand(NPX_CMD, [
25
+ execFileSync(CURL_CMD, ['-s', '-o', tempSpecFile, url], {
26
+ stdio: 'inherit',
27
+ shell: true,
28
+ });
29
+ execFileSync(NPX_CMD, [
38
30
  'openapi-typescript-codegen',
39
31
  '--input',
40
32
  tempSpecFile,
@@ -42,7 +34,7 @@ for (const spec of specs) {
42
34
  outputDir,
43
35
  '--client',
44
36
  'fetch',
45
- ]);
37
+ ], { stdio: 'inherit', shell: true });
46
38
  // Clean up temp file
47
39
  fs.unlinkSync(tempSpecFile);
48
40
  }
@@ -54,7 +46,10 @@ for (const spec of specs) {
54
46
  throw error;
55
47
  }
56
48
  console.log(`⚙️ Generating wrapper for ${name}...`);
57
- runCommand(NPX_CMD, ['tsx', 'src/scripts/generate-definition.ts', name]);
49
+ execFileSync(NPX_CMD, ['tsx', 'src/scripts/generate-definition.ts', name], {
50
+ stdio: 'inherit',
51
+ shell: true,
52
+ });
58
53
  }
59
54
  // After generating all clients and definitions, replace request.ts for all services
60
55
  const customRequestPath = path.resolve('src/custom/custom-request.txt');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@drttix/drt-sdk",
3
3
  "description": "DRT SDK",
4
- "version": "1.2.5",
4
+ "version": "1.3.2",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/esm/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "scripts": {
27
27
  "build": "npx tsc --project tsconfig.esm.json && npx tsc --project tsconfig.cjs.json && node scripts/fix-import-extensions.mjs",
28
- "build:bundle": "npm run build && npx esbuild dist/esm/index.js --bundle --format=esm --outfile=dist/bundle/drt-sdk.js --minify",
28
+ "build:bundle": "npm run build && npx esbuild dist/esm/index.js --bundle --format=esm --outfile=dist/bundle/drt-sdk.js --minify && npx esbuild dist/esm/staging.js --bundle --format=esm --outfile=dist/bundle/staging.js --minify",
29
29
  "generate": "npx tsx src/scripts/build-all.ts && npx tsx src/scripts/build-all.ts --staging",
30
30
  "prepublishOnly": "npx tsx src/scripts/check-version-not-published.ts && npm run build"
31
31
  },
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: '',
24
- VERSION: '20260615.1',
24
+ VERSION: '20260615.2',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: 'https://api.drttix.com/shopper',
24
- VERSION: '20260615.1',
24
+ VERSION: '20260619.2',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -16,7 +16,11 @@ export type { BAHold } from './models/BAHold';
16
16
  export type { BlockOfTickets } from './models/BlockOfTickets';
17
17
  export type { Cart } from './models/Cart';
18
18
  export type { CartCounts } from './models/CartCounts';
19
+ export type { CartHashResponse } from './models/CartHashResponse';
20
+ export type { CartItemCounts } from './models/CartItemCounts';
21
+ export type { CartSummary } from './models/CartSummary';
19
22
  export type { CartWithTime } from './models/CartWithTime';
23
+ export type { CashPaymentDetail } from './models/CashPaymentDetail';
20
24
  export type { Chart } from './models/Chart';
21
25
  export type { CheckoutDonation } from './models/CheckoutDonation';
22
26
  export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
@@ -32,6 +36,7 @@ export type { CompleteBody } from './models/CompleteBody';
32
36
  export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
33
37
  export type { CreateSessionDto } from './models/CreateSessionDto';
34
38
  export type { DigitalAsset } from './models/DigitalAsset';
39
+ export type { DonateOrderRequest } from './models/DonateOrderRequest';
35
40
  export type { DonationContribution } from './models/DonationContribution';
36
41
  export type { DonationFund } from './models/DonationFund';
37
42
  export type { DonationInCart } from './models/DonationInCart';
@@ -42,6 +47,7 @@ export type { EmailUpdate } from './models/EmailUpdate';
42
47
  export type { EngineSeat } from './models/EngineSeat';
43
48
  export type { EventDetails } from './models/EventDetails';
44
49
  export type { EventGroup } from './models/EventGroup';
50
+ export type { ExchangeRequest } from './models/ExchangeRequest';
45
51
  export type { ExistingRefundDetails } from './models/ExistingRefundDetails';
46
52
  export type { FullEventDetails } from './models/FullEventDetails';
47
53
  export type { GAHold } from './models/GAHold';
@@ -99,8 +105,10 @@ export type { SaveDetailsBody } from './models/SaveDetailsBody';
99
105
  export type { SaveNonceBody } from './models/SaveNonceBody';
100
106
  export type { SeatData } from './models/SeatData';
101
107
  export type { SeatHoldReturn } from './models/SeatHoldReturn';
108
+ export type { SeatIdInput } from './models/SeatIdInput';
102
109
  export type { SeatInCart } from './models/SeatInCart';
103
110
  export type { SeatingTier } from './models/SeatingTier';
111
+ export type { SeatsByShow } from './models/SeatsByShow';
104
112
  export type { Section } from './models/Section';
105
113
  export type { SectionRule } from './models/SectionRule';
106
114
  export type { SessionHeartbeatDto } from './models/SessionHeartbeatDto';
@@ -0,0 +1,11 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type CartHashResponse = {
6
+ /**
7
+ * The computed hash string for the shopper cart.
8
+ */
9
+ hash: string;
10
+ };
11
+
@@ -0,0 +1,15 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type CartItemCounts = {
6
+ /**
7
+ * Number of products available for the account on the session date.
8
+ */
9
+ numProducts: number;
10
+ /**
11
+ * Number of donation funds available for the account on the session date.
12
+ */
13
+ numFunds: number;
14
+ };
15
+
@@ -0,0 +1,31 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { CartItemCounts } from './CartItemCounts';
6
+ import type { CheckoutDonation } from './CheckoutDonation';
7
+ import type { CheckoutProduct } from './CheckoutProduct';
8
+ import type { SeatsByShow } from './SeatsByShow';
9
+ export type CartSummary = {
10
+ /**
11
+ * Number of shows currently available to the shopper.
12
+ */
13
+ availableShowCount: number;
14
+ /**
15
+ * Products currently in the session.
16
+ */
17
+ products: Array<CheckoutProduct>;
18
+ /**
19
+ * Donations currently in the session.
20
+ */
21
+ donations: Array<CheckoutDonation>;
22
+ /**
23
+ * Held seats grouped by show.
24
+ */
25
+ seatsGroupedByShow: Array<SeatsByShow>;
26
+ /**
27
+ * Count of available products and donation funds.
28
+ */
29
+ availableItemCounts: CartItemCounts;
30
+ };
31
+
@@ -0,0 +1,23 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type CashPaymentDetail = {
6
+ /**
7
+ * The total amount of the order
8
+ */
9
+ orderTotal: number;
10
+ /**
11
+ * The total amount paid via cash/adjustments
12
+ */
13
+ paymentsTotal: number;
14
+ /**
15
+ * House card code for cash payment
16
+ */
17
+ code: string;
18
+ /**
19
+ * House card PIN for cash payment
20
+ */
21
+ pin: string;
22
+ };
23
+
@@ -0,0 +1,9 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type DonateOrderRequest = {
6
+ guid: string;
7
+ donatedIpAddress: string;
8
+ };
9
+
@@ -0,0 +1,16 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { SeatIdInput } from './SeatIdInput';
6
+ export type ExchangeRequest = {
7
+ /**
8
+ * Order GUID
9
+ */
10
+ guid: string;
11
+ /**
12
+ * Seats to exchange out
13
+ */
14
+ seats: Array<SeatIdInput>;
15
+ };
16
+
@@ -0,0 +1,9 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type SeatIdInput = {
6
+ showId: number;
7
+ seatId: number;
8
+ };
9
+
@@ -0,0 +1,23 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type SeatsByShow = {
6
+ /**
7
+ * Number of seats held for the show.
8
+ */
9
+ numSeats: number;
10
+ /**
11
+ * Full name of the show.
12
+ */
13
+ showName: string;
14
+ /**
15
+ * Short display name of the show.
16
+ */
17
+ shortName: string;
18
+ /**
19
+ * Title of the show.
20
+ */
21
+ showTitle: Record<string, any>;
22
+ };
23
+
@@ -2,7 +2,10 @@
2
2
  /* istanbul ignore file */
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
+ import type { CartHashResponse } from '../models/CartHashResponse';
6
+ import type { CartSummary } from '../models/CartSummary';
5
7
  import type { CartWithTime } from '../models/CartWithTime';
8
+ import type { CashPaymentDetail } from '../models/CashPaymentDetail';
6
9
  import type { CancelablePromise } from '../core/CancelablePromise';
7
10
  import { OpenAPI } from '../core/OpenAPI';
8
11
  import { request as __request } from '../core/request';
@@ -43,4 +46,58 @@ export class CartService {
43
46
  },
44
47
  });
45
48
  }
49
+ /**
50
+ * Get Cart Summary
51
+ * Returns a consolidated summary of the shopper's current cart, including: products in session, donations in session, held seats grouped by show, the count of available shows, and the count of available products and donation funds for the account based on the session date.
52
+ * @returns CartSummary Cart summary retrieved successfully.
53
+ * @throws ApiError
54
+ */
55
+ public static getCartSummary(
56
+ ): CancelablePromise<CartSummary> {
57
+ return __request(OpenAPI, {
58
+ method: 'GET',
59
+ url: '/cart/summary',
60
+ errors: {
61
+ 400: `Bad Request error with error details.`,
62
+ 404: `Not found error with error details.`,
63
+ 500: `Internal Server Error, please contact developers.`,
64
+ },
65
+ });
66
+ }
67
+ /**
68
+ * Get Cart Hash
69
+ * Returns the computed cart hash for the current shopper session.
70
+ * @returns CartHashResponse Cart hash retrieved successfully.
71
+ * @throws ApiError
72
+ */
73
+ public static getCartHash(
74
+ ): CancelablePromise<CartHashResponse> {
75
+ return __request(OpenAPI, {
76
+ method: 'GET',
77
+ url: '/cart/hash',
78
+ errors: {
79
+ 400: `Bad Request error with error details.`,
80
+ 404: `Not found error with error details.`,
81
+ 500: `Internal Server Error, please contact developers.`,
82
+ },
83
+ });
84
+ }
85
+ /**
86
+ * Get Cash Payment Detail
87
+ * Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials.
88
+ * @returns CashPaymentDetail Cash payment detail retrieved successfully.
89
+ * @throws ApiError
90
+ */
91
+ public static getCashPaymentDetail(
92
+ ): CancelablePromise<CashPaymentDetail> {
93
+ return __request(OpenAPI, {
94
+ method: 'GET',
95
+ url: '/cart/cash-payment-detail',
96
+ errors: {
97
+ 400: `Bad Request error with error details.`,
98
+ 404: `Not found error with error details.`,
99
+ 500: `Internal Server Error, please contact developers.`,
100
+ },
101
+ });
102
+ }
46
103
  }