@drttix/drt-sdk 0.3.11 → 0.3.13

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 (129) hide show
  1. package/dist/cjs/index.d.ts +1 -0
  2. package/dist/cjs/src/definitions/shopper.d.ts +2 -0
  3. package/dist/cjs/src/definitions/shopper.js +11 -9
  4. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  5. package/dist/cjs/src/generated/portal/index.d.ts +3 -0
  6. package/dist/cjs/src/generated/portal/models/CheckoutResponseShowResponseDto.d.ts +5 -0
  7. package/dist/cjs/src/generated/portal/models/CheckoutResponseShowResponseDto.js +2 -0
  8. package/dist/cjs/src/generated/portal/models/SearchCodeResponseDto.d.ts +1 -1
  9. package/dist/cjs/src/generated/portal/models/ShowSeatDetailResponseDto.d.ts +6 -0
  10. package/dist/cjs/src/generated/portal/models/ShowSeatDetailResponseDto.js +2 -0
  11. package/dist/cjs/src/generated/portal/models/UpdateEmailRequestDto.d.ts +3 -0
  12. package/dist/cjs/src/generated/portal/models/UpdateEmailRequestDto.js +2 -0
  13. package/dist/cjs/src/generated/portal/services/OrderLookupService.d.ts +11 -0
  14. package/dist/cjs/src/generated/portal/services/OrderLookupService.js +23 -0
  15. package/dist/cjs/src/generated/portal/services/ReportsService.d.ts +21 -0
  16. package/dist/cjs/src/generated/portal/services/ReportsService.js +42 -0
  17. package/dist/cjs/src/generated/portal/types.d.ts +3 -0
  18. package/dist/cjs/src/generated/scanner/core/OpenAPI.js +1 -1
  19. package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
  20. package/dist/cjs/src/generated/shopper/index.d.ts +14 -0
  21. package/dist/cjs/src/generated/shopper/index.js +3 -1
  22. package/dist/cjs/src/generated/shopper/models/CartCounts.d.ts +6 -0
  23. package/dist/cjs/src/generated/shopper/models/CartCounts.js +2 -0
  24. package/dist/cjs/src/generated/shopper/models/CheckoutDonation.d.ts +4 -0
  25. package/dist/cjs/src/generated/shopper/models/CheckoutDonation.js +2 -0
  26. package/dist/cjs/src/generated/shopper/models/CheckoutFailResponse.d.ts +5 -0
  27. package/dist/cjs/src/generated/shopper/models/CheckoutFailResponse.js +2 -0
  28. package/dist/cjs/src/generated/shopper/models/CheckoutGiftCard.d.ts +4 -0
  29. package/dist/cjs/src/generated/shopper/models/CheckoutGiftCard.js +2 -0
  30. package/dist/cjs/src/generated/shopper/models/CheckoutPageData.d.ts +18 -0
  31. package/dist/cjs/src/generated/shopper/models/CheckoutPageData.js +2 -0
  32. package/dist/cjs/src/generated/shopper/models/CheckoutProduct.d.ts +9 -0
  33. package/dist/cjs/src/generated/shopper/models/CheckoutProduct.js +2 -0
  34. package/dist/cjs/src/generated/shopper/models/CheckoutQuestion.d.ts +15 -0
  35. package/dist/cjs/src/generated/shopper/models/CheckoutQuestion.js +2 -0
  36. package/dist/cjs/src/generated/shopper/models/CheckoutSessionData.d.ts +30 -0
  37. package/dist/cjs/src/generated/shopper/models/CheckoutSessionData.js +2 -0
  38. package/dist/cjs/src/generated/shopper/models/CheckoutSubmitBody.d.ts +30 -0
  39. package/dist/cjs/src/generated/shopper/models/CheckoutSubmitBody.js +2 -0
  40. package/dist/cjs/src/generated/shopper/models/CheckoutSuccessResponse.d.ts +3 -0
  41. package/dist/cjs/src/generated/shopper/models/CheckoutSuccessResponse.js +2 -0
  42. package/dist/cjs/src/generated/shopper/models/SaveDetailsBody.d.ts +21 -0
  43. package/dist/cjs/src/generated/shopper/models/SaveDetailsBody.js +2 -0
  44. package/dist/cjs/src/generated/shopper/models/SaveNonceBody.d.ts +10 -0
  45. package/dist/cjs/src/generated/shopper/models/SaveNonceBody.js +2 -0
  46. package/dist/cjs/src/generated/shopper/models/StudioSettings.d.ts +7 -0
  47. package/dist/cjs/src/generated/shopper/models/StudioSettings.js +2 -0
  48. package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +61 -0
  49. package/dist/cjs/src/generated/shopper/services/CheckoutService.js +142 -0
  50. package/dist/cjs/src/generated/shopper/types.d.ts +13 -0
  51. package/dist/esm/index.d.ts +1 -0
  52. package/dist/esm/src/definitions/shopper.d.ts +2 -0
  53. package/dist/esm/src/definitions/shopper.js +2 -0
  54. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  55. package/dist/esm/src/generated/portal/index.d.ts +3 -0
  56. package/dist/esm/src/generated/portal/models/CheckoutResponseShowResponseDto.d.ts +5 -0
  57. package/dist/esm/src/generated/portal/models/CheckoutResponseShowResponseDto.js +1 -0
  58. package/dist/esm/src/generated/portal/models/SearchCodeResponseDto.d.ts +1 -1
  59. package/dist/esm/src/generated/portal/models/ShowSeatDetailResponseDto.d.ts +6 -0
  60. package/dist/esm/src/generated/portal/models/ShowSeatDetailResponseDto.js +1 -0
  61. package/dist/esm/src/generated/portal/models/UpdateEmailRequestDto.d.ts +3 -0
  62. package/dist/esm/src/generated/portal/models/UpdateEmailRequestDto.js +1 -0
  63. package/dist/esm/src/generated/portal/services/OrderLookupService.d.ts +11 -0
  64. package/dist/esm/src/generated/portal/services/OrderLookupService.js +23 -0
  65. package/dist/esm/src/generated/portal/services/ReportsService.d.ts +21 -0
  66. package/dist/esm/src/generated/portal/services/ReportsService.js +42 -0
  67. package/dist/esm/src/generated/portal/types.d.ts +3 -0
  68. package/dist/esm/src/generated/scanner/core/OpenAPI.js +1 -1
  69. package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
  70. package/dist/esm/src/generated/shopper/index.d.ts +14 -0
  71. package/dist/esm/src/generated/shopper/index.js +1 -0
  72. package/dist/esm/src/generated/shopper/models/CartCounts.d.ts +6 -0
  73. package/dist/esm/src/generated/shopper/models/CartCounts.js +1 -0
  74. package/dist/esm/src/generated/shopper/models/CheckoutDonation.d.ts +4 -0
  75. package/dist/esm/src/generated/shopper/models/CheckoutDonation.js +1 -0
  76. package/dist/esm/src/generated/shopper/models/CheckoutFailResponse.d.ts +5 -0
  77. package/dist/esm/src/generated/shopper/models/CheckoutFailResponse.js +1 -0
  78. package/dist/esm/src/generated/shopper/models/CheckoutGiftCard.d.ts +4 -0
  79. package/dist/esm/src/generated/shopper/models/CheckoutGiftCard.js +1 -0
  80. package/dist/esm/src/generated/shopper/models/CheckoutPageData.d.ts +18 -0
  81. package/dist/esm/src/generated/shopper/models/CheckoutPageData.js +1 -0
  82. package/dist/esm/src/generated/shopper/models/CheckoutProduct.d.ts +9 -0
  83. package/dist/esm/src/generated/shopper/models/CheckoutProduct.js +1 -0
  84. package/dist/esm/src/generated/shopper/models/CheckoutQuestion.d.ts +15 -0
  85. package/dist/esm/src/generated/shopper/models/CheckoutQuestion.js +1 -0
  86. package/dist/esm/src/generated/shopper/models/CheckoutSessionData.d.ts +30 -0
  87. package/dist/esm/src/generated/shopper/models/CheckoutSessionData.js +1 -0
  88. package/dist/esm/src/generated/shopper/models/CheckoutSubmitBody.d.ts +30 -0
  89. package/dist/esm/src/generated/shopper/models/CheckoutSubmitBody.js +1 -0
  90. package/dist/esm/src/generated/shopper/models/CheckoutSuccessResponse.d.ts +3 -0
  91. package/dist/esm/src/generated/shopper/models/CheckoutSuccessResponse.js +1 -0
  92. package/dist/esm/src/generated/shopper/models/SaveDetailsBody.d.ts +21 -0
  93. package/dist/esm/src/generated/shopper/models/SaveDetailsBody.js +1 -0
  94. package/dist/esm/src/generated/shopper/models/SaveNonceBody.d.ts +10 -0
  95. package/dist/esm/src/generated/shopper/models/SaveNonceBody.js +1 -0
  96. package/dist/esm/src/generated/shopper/models/StudioSettings.d.ts +7 -0
  97. package/dist/esm/src/generated/shopper/models/StudioSettings.js +1 -0
  98. package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +61 -0
  99. package/dist/esm/src/generated/shopper/services/CheckoutService.js +138 -0
  100. package/dist/esm/src/generated/shopper/types.d.ts +13 -0
  101. package/package.json +1 -1
  102. package/src/definitions/shopper.ts +2 -0
  103. package/src/generated/portal/core/OpenAPI.ts +1 -1
  104. package/src/generated/portal/index.ts +3 -0
  105. package/src/generated/portal/models/CheckoutResponseShowResponseDto.ts +10 -0
  106. package/src/generated/portal/models/SearchCodeResponseDto.ts +1 -1
  107. package/src/generated/portal/models/ShowSeatDetailResponseDto.ts +11 -0
  108. package/src/generated/portal/models/UpdateEmailRequestDto.ts +8 -0
  109. package/src/generated/portal/services/OrderLookupService.ts +28 -0
  110. package/src/generated/portal/services/ReportsService.ts +51 -0
  111. package/src/generated/portal/types.ts +3 -0
  112. package/src/generated/scanner/core/OpenAPI.ts +1 -1
  113. package/src/generated/shopper/core/OpenAPI.ts +1 -1
  114. package/src/generated/shopper/index.ts +14 -0
  115. package/src/generated/shopper/models/CartCounts.ts +11 -0
  116. package/src/generated/shopper/models/CheckoutDonation.ts +9 -0
  117. package/src/generated/shopper/models/CheckoutFailResponse.ts +10 -0
  118. package/src/generated/shopper/models/CheckoutGiftCard.ts +9 -0
  119. package/src/generated/shopper/models/CheckoutPageData.ts +23 -0
  120. package/src/generated/shopper/models/CheckoutProduct.ts +14 -0
  121. package/src/generated/shopper/models/CheckoutQuestion.ts +20 -0
  122. package/src/generated/shopper/models/CheckoutSessionData.ts +35 -0
  123. package/src/generated/shopper/models/CheckoutSubmitBody.ts +35 -0
  124. package/src/generated/shopper/models/CheckoutSuccessResponse.ts +8 -0
  125. package/src/generated/shopper/models/SaveDetailsBody.ts +26 -0
  126. package/src/generated/shopper/models/SaveNonceBody.ts +15 -0
  127. package/src/generated/shopper/models/StudioSettings.ts +12 -0
  128. package/src/generated/shopper/services/CheckoutService.ts +171 -0
  129. package/src/generated/shopper/types.ts +13 -0
@@ -0,0 +1,18 @@
1
+ import type { CartCounts } from './CartCounts';
2
+ import type { CheckoutDonation } from './CheckoutDonation';
3
+ import type { CheckoutGiftCard } from './CheckoutGiftCard';
4
+ import type { CheckoutProduct } from './CheckoutProduct';
5
+ import type { CheckoutQuestion } from './CheckoutQuestion';
6
+ import type { CheckoutSessionData } from './CheckoutSessionData';
7
+ import type { StudioSettings } from './StudioSettings';
8
+ export type CheckoutPageData = {
9
+ session: CheckoutSessionData;
10
+ studioSettings: StudioSettings;
11
+ questions: Array<CheckoutQuestion>;
12
+ products: Array<CheckoutProduct>;
13
+ donations: Array<CheckoutDonation>;
14
+ giftCards: Array<CheckoutGiftCard>;
15
+ shippingRequired: boolean;
16
+ shippingVisible: boolean;
17
+ cartCounts: CartCounts;
18
+ };
@@ -0,0 +1,9 @@
1
+ export type CheckoutProduct = {
2
+ name: string;
3
+ variantName?: string;
4
+ qty: number;
5
+ itemPrice: number;
6
+ itemFee: number;
7
+ iconSrc?: string;
8
+ requiresShipping: number;
9
+ };
@@ -0,0 +1,15 @@
1
+ export type CheckoutQuestion = {
2
+ id: number;
3
+ question: string;
4
+ comment?: string;
5
+ questionType: string;
6
+ answers?: string;
7
+ isOptional: number;
8
+ hasAddlDetails: number;
9
+ selectedAnswer?: string;
10
+ showId: number;
11
+ seatId: number;
12
+ showName?: string;
13
+ secRowSeat?: string;
14
+ productId?: number;
15
+ };
@@ -0,0 +1,30 @@
1
+ export type CheckoutSessionData = {
2
+ firstName: string;
3
+ lastName: string;
4
+ email: string;
5
+ phone: string;
6
+ orderTotal: number;
7
+ paymentsTotal: number;
8
+ couponId?: number;
9
+ couponCode?: string;
10
+ couponAmount: number;
11
+ ccNum?: string;
12
+ ccExpMonth?: string;
13
+ ccExpYear?: string;
14
+ ccType?: string;
15
+ billingFirstName?: string;
16
+ billingLastName?: string;
17
+ billingPostal?: string;
18
+ billingCountry?: string;
19
+ nonceValue?: string;
20
+ nonceDescriptor?: string;
21
+ shippingAddress1?: string;
22
+ shippingAddress2?: string;
23
+ shippingCity?: string;
24
+ shippingState?: string;
25
+ shippingPostal?: string;
26
+ shippingCountry?: string;
27
+ studentCredit?: string;
28
+ numSeats: number;
29
+ paymentBeforeCc: number;
30
+ };
@@ -0,0 +1,30 @@
1
+ export type CheckoutSubmitBody = {
2
+ shopperEmail: string;
3
+ shopperFirstName: string;
4
+ shopperLastName: string;
5
+ shopperPhone: string;
6
+ receiveSms?: string;
7
+ billingFirstName?: string;
8
+ billingLastName?: string;
9
+ billingPostal?: string;
10
+ billingCountry?: string;
11
+ ccType?: string;
12
+ ccNum?: string;
13
+ ccExpMonth?: string;
14
+ ccExpYear?: string;
15
+ nonceDescriptor?: string;
16
+ nonceValue?: string;
17
+ shippingAddress1?: string;
18
+ shippingAddress2?: string;
19
+ shippingCity?: string;
20
+ shippingState?: string;
21
+ shippingPostal?: string;
22
+ shippingCountry?: string;
23
+ couponCode?: string;
24
+ studentCredit?: string;
25
+ answers?: Array<string>;
26
+ /**
27
+ * Payment gateway type: "token" for Authorize.net/Moneris, "stripe" for Stripe
28
+ */
29
+ paymentGateway?: string;
30
+ };
@@ -0,0 +1,3 @@
1
+ export type CheckoutSuccessResponse = {
2
+ success: boolean;
3
+ };
@@ -0,0 +1,21 @@
1
+ export type SaveDetailsBody = {
2
+ shopperEmail?: string;
3
+ shopperFirstName?: string;
4
+ shopperLastName?: string;
5
+ shopperPhone?: string;
6
+ receiveSms?: string;
7
+ billingFirstName?: string;
8
+ billingLastName?: string;
9
+ billingAddress1?: string;
10
+ billingCity?: string;
11
+ billingState?: string;
12
+ billingPostal?: string;
13
+ billingCountry?: string;
14
+ ccType?: string;
15
+ ccNum?: string;
16
+ ccCvn?: string;
17
+ ccExpMonth?: string;
18
+ ccExpYear?: string;
19
+ studentCredit?: string;
20
+ answers?: Array<string>;
21
+ };
@@ -0,0 +1,10 @@
1
+ export type SaveNonceBody = {
2
+ descriptor: string;
3
+ value: string;
4
+ firstName: string;
5
+ lastName: string;
6
+ ccType?: string;
7
+ ccNum4?: string;
8
+ ccExpMonth?: string;
9
+ ccExpYear?: string;
10
+ };
@@ -0,0 +1,7 @@
1
+ export type StudioSettings = {
2
+ refundExchangePolicy?: string;
3
+ creditStudents: number;
4
+ creditStudentsRequired: number;
5
+ enableShipping: number;
6
+ posShippingRequired: number;
7
+ };
@@ -0,0 +1,61 @@
1
+ import type { CheckoutPageData } from '../models/CheckoutPageData';
2
+ import type { CheckoutSubmitBody } from '../models/CheckoutSubmitBody';
3
+ import type { CheckoutSuccessResponse } from '../models/CheckoutSuccessResponse';
4
+ import type { SaveDetailsBody } from '../models/SaveDetailsBody';
5
+ import type { SaveNonceBody } from '../models/SaveNonceBody';
6
+ import type { CancelablePromise } from '../core/CancelablePromise';
7
+ export declare class CheckoutService {
8
+ /**
9
+ * Get checkout page data
10
+ * Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
11
+ * @param shopperguid Unique identifier for the shopper.
12
+ * @param accountid Unique identifier for the account.
13
+ * @param apikey API key for authentication.
14
+ * @returns CheckoutPageData Returns checkout page data.
15
+ * @throws ApiError
16
+ */
17
+ static getCheckout(shopperguid: string, accountid: string, apikey: string): CancelablePromise<CheckoutPageData>;
18
+ /**
19
+ * Submit checkout
20
+ * Validates and saves checkout form data. Supports both token (Authorize.net/Moneris) and Stripe payment flows.
21
+ * @param shopperguid Unique identifier for the shopper.
22
+ * @param accountid Unique identifier for the account.
23
+ * @param apikey API key for authentication.
24
+ * @param requestBody Checkout form data.
25
+ * @returns CheckoutSuccessResponse Returns success response.
26
+ * @throws ApiError
27
+ */
28
+ static submitCheckout(shopperguid: string, accountid: string, apikey: string, requestBody: CheckoutSubmitBody): CancelablePromise<CheckoutSuccessResponse>;
29
+ /**
30
+ * Save payment nonce
31
+ * Saves a payment nonce (token) from Authorize.net or Moneris to the session.
32
+ * @param shopperguid Unique identifier for the shopper.
33
+ * @param accountid Unique identifier for the account.
34
+ * @param apikey API key for authentication.
35
+ * @param requestBody Nonce data to save.
36
+ * @returns CheckoutSuccessResponse Returns success response.
37
+ * @throws ApiError
38
+ */
39
+ static saveNonce(shopperguid: string, accountid: string, apikey: string, requestBody: SaveNonceBody): CancelablePromise<CheckoutSuccessResponse>;
40
+ /**
41
+ * Clear payment nonce
42
+ * Clears the payment nonce and related CC fields from the session.
43
+ * @param shopperguid Unique identifier for the shopper.
44
+ * @param accountid Unique identifier for the account.
45
+ * @param apikey API key for authentication.
46
+ * @returns CheckoutSuccessResponse Returns success response.
47
+ * @throws ApiError
48
+ */
49
+ static clearNonce(shopperguid: string, accountid: string, apikey: string): CancelablePromise<CheckoutSuccessResponse>;
50
+ /**
51
+ * Auto-save checkout details
52
+ * Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
53
+ * @param shopperguid Unique identifier for the shopper.
54
+ * @param accountid Unique identifier for the account.
55
+ * @param apikey API key for authentication.
56
+ * @param requestBody Partial checkout data to auto-save.
57
+ * @returns CheckoutSuccessResponse Returns success response.
58
+ * @throws ApiError
59
+ */
60
+ static saveDetails(shopperguid: string, accountid: string, apikey: string, requestBody: SaveDetailsBody): CancelablePromise<CheckoutSuccessResponse>;
61
+ }
@@ -0,0 +1,138 @@
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class CheckoutService {
4
+ /**
5
+ * Get checkout page data
6
+ * Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
7
+ * @param shopperguid Unique identifier for the shopper.
8
+ * @param accountid Unique identifier for the account.
9
+ * @param apikey API key for authentication.
10
+ * @returns CheckoutPageData Returns checkout page data.
11
+ * @throws ApiError
12
+ */
13
+ static getCheckout(shopperguid, accountid, apikey) {
14
+ return __request(OpenAPI, {
15
+ method: 'GET',
16
+ url: '/checkout',
17
+ headers: {
18
+ 'shopperguid': shopperguid,
19
+ 'accountid': accountid,
20
+ 'apikey': apikey,
21
+ },
22
+ errors: {
23
+ 400: `Bad Request error with error details.`,
24
+ 404: `Not found error with error details.`,
25
+ 500: `Internal Server Error, please contact developers.`,
26
+ },
27
+ });
28
+ }
29
+ /**
30
+ * Submit checkout
31
+ * Validates and saves checkout form data. Supports both token (Authorize.net/Moneris) and Stripe payment flows.
32
+ * @param shopperguid Unique identifier for the shopper.
33
+ * @param accountid Unique identifier for the account.
34
+ * @param apikey API key for authentication.
35
+ * @param requestBody Checkout form data.
36
+ * @returns CheckoutSuccessResponse Returns success response.
37
+ * @throws ApiError
38
+ */
39
+ static submitCheckout(shopperguid, accountid, apikey, requestBody) {
40
+ return __request(OpenAPI, {
41
+ method: 'POST',
42
+ url: '/checkout',
43
+ headers: {
44
+ 'shopperguid': shopperguid,
45
+ 'accountid': accountid,
46
+ 'apikey': apikey,
47
+ },
48
+ body: requestBody,
49
+ mediaType: 'application/json',
50
+ errors: {
51
+ 400: `Returns validation error.`,
52
+ 404: `Not found error with error details.`,
53
+ 500: `Internal Server Error, please contact developers.`,
54
+ },
55
+ });
56
+ }
57
+ /**
58
+ * Save payment nonce
59
+ * Saves a payment nonce (token) from Authorize.net or Moneris to the session.
60
+ * @param shopperguid Unique identifier for the shopper.
61
+ * @param accountid Unique identifier for the account.
62
+ * @param apikey API key for authentication.
63
+ * @param requestBody Nonce data to save.
64
+ * @returns CheckoutSuccessResponse Returns success response.
65
+ * @throws ApiError
66
+ */
67
+ static saveNonce(shopperguid, accountid, apikey, requestBody) {
68
+ return __request(OpenAPI, {
69
+ method: 'POST',
70
+ url: '/checkout/nonce',
71
+ headers: {
72
+ 'shopperguid': shopperguid,
73
+ 'accountid': accountid,
74
+ 'apikey': apikey,
75
+ },
76
+ body: requestBody,
77
+ mediaType: 'application/json',
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
+ * Clear payment nonce
87
+ * Clears the payment nonce and related CC fields from the session.
88
+ * @param shopperguid Unique identifier for the shopper.
89
+ * @param accountid Unique identifier for the account.
90
+ * @param apikey API key for authentication.
91
+ * @returns CheckoutSuccessResponse Returns success response.
92
+ * @throws ApiError
93
+ */
94
+ static clearNonce(shopperguid, accountid, apikey) {
95
+ return __request(OpenAPI, {
96
+ method: 'DELETE',
97
+ url: '/checkout/nonce',
98
+ headers: {
99
+ 'shopperguid': shopperguid,
100
+ 'accountid': accountid,
101
+ 'apikey': apikey,
102
+ },
103
+ errors: {
104
+ 400: `Bad Request error with error details.`,
105
+ 404: `Not found error with error details.`,
106
+ 500: `Internal Server Error, please contact developers.`,
107
+ },
108
+ });
109
+ }
110
+ /**
111
+ * Auto-save checkout details
112
+ * Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
113
+ * @param shopperguid Unique identifier for the shopper.
114
+ * @param accountid Unique identifier for the account.
115
+ * @param apikey API key for authentication.
116
+ * @param requestBody Partial checkout data to auto-save.
117
+ * @returns CheckoutSuccessResponse Returns success response.
118
+ * @throws ApiError
119
+ */
120
+ static saveDetails(shopperguid, accountid, apikey, requestBody) {
121
+ return __request(OpenAPI, {
122
+ method: 'POST',
123
+ url: '/checkout/details',
124
+ headers: {
125
+ 'shopperguid': shopperguid,
126
+ 'accountid': accountid,
127
+ 'apikey': apikey,
128
+ },
129
+ body: requestBody,
130
+ mediaType: 'application/json',
131
+ errors: {
132
+ 400: `Bad Request error with error details.`,
133
+ 404: `Not found error with error details.`,
134
+ 500: `Internal Server Error, please contact developers.`,
135
+ },
136
+ });
137
+ }
138
+ }
@@ -6,8 +6,18 @@ export type { AssignNamesReturn } from './models/AssignNamesReturn';
6
6
  export type { BAHold } from './models/BAHold';
7
7
  export type { BlockOfTickets } from './models/BlockOfTickets';
8
8
  export type { Cart } from './models/Cart';
9
+ export type { CartCounts } from './models/CartCounts';
9
10
  export type { CartWithTime } from './models/CartWithTime';
10
11
  export type { Chart } from './models/Chart';
12
+ export type { CheckoutDonation } from './models/CheckoutDonation';
13
+ export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
14
+ export type { CheckoutGiftCard } from './models/CheckoutGiftCard';
15
+ export type { CheckoutPageData } from './models/CheckoutPageData';
16
+ export type { CheckoutProduct } from './models/CheckoutProduct';
17
+ export type { CheckoutQuestion } from './models/CheckoutQuestion';
18
+ export type { CheckoutSessionData } from './models/CheckoutSessionData';
19
+ export type { CheckoutSubmitBody } from './models/CheckoutSubmitBody';
20
+ export type { CheckoutSuccessResponse } from './models/CheckoutSuccessResponse';
11
21
  export type { CodeDto } from './models/CodeDto';
12
22
  export type { CompleteBody } from './models/CompleteBody';
13
23
  export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
@@ -75,6 +85,8 @@ export type { RefundRequestInfo } from './models/RefundRequestInfo';
75
85
  export type { RegisterStreamRequest } from './models/RegisterStreamRequest';
76
86
  export type { RegisterStreamResponse } from './models/RegisterStreamResponse';
77
87
  export type { RootConfigResponse } from './models/RootConfigResponse';
88
+ export type { SaveDetailsBody } from './models/SaveDetailsBody';
89
+ export type { SaveNonceBody } from './models/SaveNonceBody';
78
90
  export type { SeatData } from './models/SeatData';
79
91
  export type { SeatHoldReturn } from './models/SeatHoldReturn';
80
92
  export type { SeatInCart } from './models/SeatInCart';
@@ -86,6 +98,7 @@ export type { SessionInfoDto } from './models/SessionInfoDto';
86
98
  export type { SiteDisposition } from './models/SiteDisposition';
87
99
  export type { SiteTheme } from './models/SiteTheme';
88
100
  export type { StudioOrderSettings } from './models/StudioOrderSettings';
101
+ export type { StudioSettings } from './models/StudioSettings';
89
102
  export type { SuccessResponse } from './models/SuccessResponse';
90
103
  export type { SuccessWithTime } from './models/SuccessWithTime';
91
104
  export type { SummaryBody } from './models/SummaryBody';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@drttix/drt-sdk",
3
3
  "description": "DRT SDK",
4
- "version": "0.3.11",
4
+ "version": "0.3.13",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/esm/index.d.ts",
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { AccountService } from "../generated/shopper";
4
4
  import { CartService } from "../generated/shopper";
5
+ import { CheckoutService } from "../generated/shopper";
5
6
  import { CodeService } from "../generated/shopper";
6
7
  import { DonationService } from "../generated/shopper";
7
8
  import { EventService } from "../generated/shopper";
@@ -15,6 +16,7 @@ import { SessionService } from "../generated/shopper";
15
16
  export const shopper = {
16
17
  account: AccountService,
17
18
  cart: CartService,
19
+ checkout: CheckoutService,
18
20
  code: CodeService,
19
21
  donation: DonationService,
20
22
  event: EventService,
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: '',
24
- VERSION: '20260225.1',
24
+ VERSION: '20260304.1',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -39,6 +39,7 @@ export type { CheckoutAnswerOrderRequestDto } from './models/CheckoutAnswerOrder
39
39
  export type { CheckoutAnswerOrderResponseDto } from './models/CheckoutAnswerOrderResponseDto';
40
40
  export type { CheckoutAnswerQuestionResponseDto } from './models/CheckoutAnswerQuestionResponseDto';
41
41
  export type { CheckoutQuestionResponseDto } from './models/CheckoutQuestionResponseDto';
42
+ export type { CheckoutResponseShowResponseDto } from './models/CheckoutResponseShowResponseDto';
42
43
  export type { CheckSelectedSeatResponseDto } from './models/CheckSelectedSeatResponseDto';
43
44
  export type { CodeDetailResponseDto } from './models/CodeDetailResponseDto';
44
45
  export type { CodeDetailsResponseDto } from './models/CodeDetailsResponseDto';
@@ -232,6 +233,7 @@ export type { ShowPricing } from './models/ShowPricing';
232
233
  export type { ShowPricingDetail } from './models/ShowPricingDetail';
233
234
  export type { ShowReportListResponseDto } from './models/ShowReportListResponseDto';
234
235
  export type { Shows } from './models/Shows';
236
+ export type { ShowSeatDetailResponseDto } from './models/ShowSeatDetailResponseDto';
235
237
  export type { ShowSectionDetail } from './models/ShowSectionDetail';
236
238
  export type { ShowsList } from './models/ShowsList';
237
239
  export type { ShowSnapshotResponseDto } from './models/ShowSnapshotResponseDto';
@@ -293,6 +295,7 @@ export type { UnblockSeatsRequestDto } from './models/UnblockSeatsRequestDto';
293
295
  export type { UnsoldTicketsResponseDto } from './models/UnsoldTicketsResponseDto';
294
296
  export type { UpdateBankingRequestDto } from './models/UpdateBankingRequestDto';
295
297
  export type { UpdateDiscountCodeRequestDto } from './models/UpdateDiscountCodeRequestDto';
298
+ export type { UpdateEmailRequestDto } from './models/UpdateEmailRequestDto';
296
299
  export type { UpdateImageUploadRequestDto } from './models/UpdateImageUploadRequestDto';
297
300
  export type { UpdateLandingPageConfigSettingRequestDto } from './models/UpdateLandingPageConfigSettingRequestDto';
298
301
  export type { UpdateLandingPageRequestDto } from './models/UpdateLandingPageRequestDto';
@@ -0,0 +1,10 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type CheckoutResponseShowResponseDto = {
6
+ id: number;
7
+ designation: string;
8
+ title: string;
9
+ };
10
+
@@ -4,6 +4,6 @@
4
4
  /* eslint-disable */
5
5
  export type SearchCodeResponseDto = {
6
6
  codeType: string;
7
- count: number;
7
+ num: number;
8
8
  };
9
9
 
@@ -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 ShowSeatDetailResponseDto = {
6
+ id: number;
7
+ firstName: string;
8
+ lastName: string;
9
+ numSeats: number;
10
+ };
11
+
@@ -0,0 +1,8 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export type UpdateEmailRequestDto = {
6
+ email: string;
7
+ };
8
+
@@ -19,6 +19,7 @@ import type { SingleOrderDetailResponseDto } from '../models/SingleOrderDetailRe
19
19
  import type { SuccessResponse } from '../models/SuccessResponse';
20
20
  import type { ToggleTierRequestDto } from '../models/ToggleTierRequestDto';
21
21
  import type { ToggleTierResponseDto } from '../models/ToggleTierResponseDto';
22
+ import type { UpdateEmailRequestDto } from '../models/UpdateEmailRequestDto';
22
23
  import type { CancelablePromise } from '../core/CancelablePromise';
23
24
  import { OpenAPI } from '../core/OpenAPI';
24
25
  import { request as __request } from '../core/request';
@@ -325,4 +326,31 @@ export class OrderLookupService {
325
326
  },
326
327
  });
327
328
  }
329
+ /**
330
+ * Update email id for the order
331
+ * To update the new email id for the order and scheduled emails
332
+ * @param xStudioId The ID of the studio
333
+ * @param orderId The ID of the order
334
+ * @param requestBody Email details
335
+ * @returns SuccessResponse Email ID updated successfully
336
+ * @throws ApiError
337
+ */
338
+ public static updateEmailId(
339
+ xStudioId: string,
340
+ orderId: string,
341
+ requestBody: UpdateEmailRequestDto,
342
+ ): CancelablePromise<SuccessResponse> {
343
+ return __request(OpenAPI, {
344
+ method: 'PUT',
345
+ url: '/order-lookup/{orderId}/update-email',
346
+ path: {
347
+ 'orderId': orderId,
348
+ },
349
+ headers: {
350
+ 'x-studio-id': xStudioId,
351
+ },
352
+ body: requestBody,
353
+ mediaType: 'application/json',
354
+ });
355
+ }
328
356
  }
@@ -6,6 +6,7 @@ import type { BuyerResponseDto } from '../models/BuyerResponseDto';
6
6
  import type { CheckoutAnswerOrderRequestDto } from '../models/CheckoutAnswerOrderRequestDto';
7
7
  import type { CheckoutAnswerOrderResponseDto } from '../models/CheckoutAnswerOrderResponseDto';
8
8
  import type { CheckoutAnswerQuestionResponseDto } from '../models/CheckoutAnswerQuestionResponseDto';
9
+ import type { CheckoutResponseShowResponseDto } from '../models/CheckoutResponseShowResponseDto';
9
10
  import type { DonationFundsResponseDto } from '../models/DonationFundsResponseDto';
10
11
  import type { DonationReportResponseDto } from '../models/DonationReportResponseDto';
11
12
  import type { DonationRequestDto } from '../models/DonationRequestDto';
@@ -19,6 +20,7 @@ import type { SalesByTierReponseDto } from '../models/SalesByTierReponseDto';
19
20
  import type { SalesProductResponseDto } from '../models/SalesProductResponseDto';
20
21
  import type { ScannedTicketOrderResponseDto } from '../models/ScannedTicketOrderResponseDto';
21
22
  import type { ShowReportListResponseDto } from '../models/ShowReportListResponseDto';
23
+ import type { ShowSeatDetailResponseDto } from '../models/ShowSeatDetailResponseDto';
22
24
  import type { SoldTicketsResponseDto } from '../models/SoldTicketsResponseDto';
23
25
  import type { StudentCreditOrdersResponseDto } from '../models/StudentCreditOrdersResponseDto';
24
26
  import type { StudentCreditResponseDto } from '../models/StudentCreditResponseDto';
@@ -153,6 +155,37 @@ export class ReportsService {
153
155
  },
154
156
  });
155
157
  }
158
+ /**
159
+ * Fetch the show seat sales details
160
+ * Fetch the show seat sales details
161
+ * @param xStudioId The ID of the studio
162
+ * @param showId The ID of the show
163
+ * @param price
164
+ * @param name
165
+ * @returns ShowSeatDetailResponseDto Show seat sales details fetched successfully
166
+ * @throws ApiError
167
+ */
168
+ public static getShowSeatSales(
169
+ xStudioId: string,
170
+ showId: string,
171
+ price: number,
172
+ name: string,
173
+ ): CancelablePromise<Array<ShowSeatDetailResponseDto>> {
174
+ return __request(OpenAPI, {
175
+ method: 'GET',
176
+ url: '/reports/sales-by-tier/{showId}/seat-sales',
177
+ path: {
178
+ 'showId': showId,
179
+ },
180
+ headers: {
181
+ 'x-studio-id': xStudioId,
182
+ },
183
+ query: {
184
+ 'price': price,
185
+ 'name': name,
186
+ },
187
+ });
188
+ }
156
189
  /**
157
190
  * Fetch the show revenue details
158
191
  * Fetch the Show revenue details
@@ -290,6 +323,24 @@ export class ReportsService {
290
323
  mediaType: 'application/json',
291
324
  });
292
325
  }
326
+ /**
327
+ * Fetch the checkout response shows
328
+ * Fetch the checkout response shows
329
+ * @param xStudioId The ID of the studio
330
+ * @returns CheckoutResponseShowResponseDto Checkout response shows fetched successfully
331
+ * @throws ApiError
332
+ */
333
+ public static getCheckoutResponsesShow(
334
+ xStudioId: string,
335
+ ): CancelablePromise<Array<CheckoutResponseShowResponseDto>> {
336
+ return __request(OpenAPI, {
337
+ method: 'GET',
338
+ url: '/reports/checkout-responses-show',
339
+ headers: {
340
+ 'x-studio-id': xStudioId,
341
+ },
342
+ });
343
+ }
293
344
  /**
294
345
  * Fetch the checkout response report details
295
346
  * Fetch the checkout response report details