@drttix/drt-sdk 0.3.12 → 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 (98) 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/models/SearchCodeResponseDto.d.ts +1 -1
  6. package/dist/cjs/src/generated/scanner/core/OpenAPI.js +1 -1
  7. package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
  8. package/dist/cjs/src/generated/shopper/index.d.ts +14 -0
  9. package/dist/cjs/src/generated/shopper/index.js +3 -1
  10. package/dist/cjs/src/generated/shopper/models/CartCounts.d.ts +6 -0
  11. package/dist/cjs/src/generated/shopper/models/CartCounts.js +2 -0
  12. package/dist/cjs/src/generated/shopper/models/CheckoutDonation.d.ts +4 -0
  13. package/dist/cjs/src/generated/shopper/models/CheckoutDonation.js +2 -0
  14. package/dist/cjs/src/generated/shopper/models/CheckoutFailResponse.d.ts +5 -0
  15. package/dist/cjs/src/generated/shopper/models/CheckoutFailResponse.js +2 -0
  16. package/dist/cjs/src/generated/shopper/models/CheckoutGiftCard.d.ts +4 -0
  17. package/dist/cjs/src/generated/shopper/models/CheckoutGiftCard.js +2 -0
  18. package/dist/cjs/src/generated/shopper/models/CheckoutPageData.d.ts +18 -0
  19. package/dist/cjs/src/generated/shopper/models/CheckoutPageData.js +2 -0
  20. package/dist/cjs/src/generated/shopper/models/CheckoutProduct.d.ts +9 -0
  21. package/dist/cjs/src/generated/shopper/models/CheckoutProduct.js +2 -0
  22. package/dist/cjs/src/generated/shopper/models/CheckoutQuestion.d.ts +15 -0
  23. package/dist/cjs/src/generated/shopper/models/CheckoutQuestion.js +2 -0
  24. package/dist/cjs/src/generated/shopper/models/CheckoutSessionData.d.ts +30 -0
  25. package/dist/cjs/src/generated/shopper/models/CheckoutSessionData.js +2 -0
  26. package/dist/cjs/src/generated/shopper/models/CheckoutSubmitBody.d.ts +30 -0
  27. package/dist/cjs/src/generated/shopper/models/CheckoutSubmitBody.js +2 -0
  28. package/dist/cjs/src/generated/shopper/models/CheckoutSuccessResponse.d.ts +3 -0
  29. package/dist/cjs/src/generated/shopper/models/CheckoutSuccessResponse.js +2 -0
  30. package/dist/cjs/src/generated/shopper/models/SaveDetailsBody.d.ts +21 -0
  31. package/dist/cjs/src/generated/shopper/models/SaveDetailsBody.js +2 -0
  32. package/dist/cjs/src/generated/shopper/models/SaveNonceBody.d.ts +10 -0
  33. package/dist/cjs/src/generated/shopper/models/SaveNonceBody.js +2 -0
  34. package/dist/cjs/src/generated/shopper/models/StudioSettings.d.ts +7 -0
  35. package/dist/cjs/src/generated/shopper/models/StudioSettings.js +2 -0
  36. package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +61 -0
  37. package/dist/cjs/src/generated/shopper/services/CheckoutService.js +142 -0
  38. package/dist/cjs/src/generated/shopper/types.d.ts +13 -0
  39. package/dist/esm/index.d.ts +1 -0
  40. package/dist/esm/src/definitions/shopper.d.ts +2 -0
  41. package/dist/esm/src/definitions/shopper.js +2 -0
  42. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  43. package/dist/esm/src/generated/portal/models/SearchCodeResponseDto.d.ts +1 -1
  44. package/dist/esm/src/generated/scanner/core/OpenAPI.js +1 -1
  45. package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
  46. package/dist/esm/src/generated/shopper/index.d.ts +14 -0
  47. package/dist/esm/src/generated/shopper/index.js +1 -0
  48. package/dist/esm/src/generated/shopper/models/CartCounts.d.ts +6 -0
  49. package/dist/esm/src/generated/shopper/models/CartCounts.js +1 -0
  50. package/dist/esm/src/generated/shopper/models/CheckoutDonation.d.ts +4 -0
  51. package/dist/esm/src/generated/shopper/models/CheckoutDonation.js +1 -0
  52. package/dist/esm/src/generated/shopper/models/CheckoutFailResponse.d.ts +5 -0
  53. package/dist/esm/src/generated/shopper/models/CheckoutFailResponse.js +1 -0
  54. package/dist/esm/src/generated/shopper/models/CheckoutGiftCard.d.ts +4 -0
  55. package/dist/esm/src/generated/shopper/models/CheckoutGiftCard.js +1 -0
  56. package/dist/esm/src/generated/shopper/models/CheckoutPageData.d.ts +18 -0
  57. package/dist/esm/src/generated/shopper/models/CheckoutPageData.js +1 -0
  58. package/dist/esm/src/generated/shopper/models/CheckoutProduct.d.ts +9 -0
  59. package/dist/esm/src/generated/shopper/models/CheckoutProduct.js +1 -0
  60. package/dist/esm/src/generated/shopper/models/CheckoutQuestion.d.ts +15 -0
  61. package/dist/esm/src/generated/shopper/models/CheckoutQuestion.js +1 -0
  62. package/dist/esm/src/generated/shopper/models/CheckoutSessionData.d.ts +30 -0
  63. package/dist/esm/src/generated/shopper/models/CheckoutSessionData.js +1 -0
  64. package/dist/esm/src/generated/shopper/models/CheckoutSubmitBody.d.ts +30 -0
  65. package/dist/esm/src/generated/shopper/models/CheckoutSubmitBody.js +1 -0
  66. package/dist/esm/src/generated/shopper/models/CheckoutSuccessResponse.d.ts +3 -0
  67. package/dist/esm/src/generated/shopper/models/CheckoutSuccessResponse.js +1 -0
  68. package/dist/esm/src/generated/shopper/models/SaveDetailsBody.d.ts +21 -0
  69. package/dist/esm/src/generated/shopper/models/SaveDetailsBody.js +1 -0
  70. package/dist/esm/src/generated/shopper/models/SaveNonceBody.d.ts +10 -0
  71. package/dist/esm/src/generated/shopper/models/SaveNonceBody.js +1 -0
  72. package/dist/esm/src/generated/shopper/models/StudioSettings.d.ts +7 -0
  73. package/dist/esm/src/generated/shopper/models/StudioSettings.js +1 -0
  74. package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +61 -0
  75. package/dist/esm/src/generated/shopper/services/CheckoutService.js +138 -0
  76. package/dist/esm/src/generated/shopper/types.d.ts +13 -0
  77. package/package.json +1 -1
  78. package/src/definitions/shopper.ts +2 -0
  79. package/src/generated/portal/core/OpenAPI.ts +1 -1
  80. package/src/generated/portal/models/SearchCodeResponseDto.ts +1 -1
  81. package/src/generated/scanner/core/OpenAPI.ts +1 -1
  82. package/src/generated/shopper/core/OpenAPI.ts +1 -1
  83. package/src/generated/shopper/index.ts +14 -0
  84. package/src/generated/shopper/models/CartCounts.ts +11 -0
  85. package/src/generated/shopper/models/CheckoutDonation.ts +9 -0
  86. package/src/generated/shopper/models/CheckoutFailResponse.ts +10 -0
  87. package/src/generated/shopper/models/CheckoutGiftCard.ts +9 -0
  88. package/src/generated/shopper/models/CheckoutPageData.ts +23 -0
  89. package/src/generated/shopper/models/CheckoutProduct.ts +14 -0
  90. package/src/generated/shopper/models/CheckoutQuestion.ts +20 -0
  91. package/src/generated/shopper/models/CheckoutSessionData.ts +35 -0
  92. package/src/generated/shopper/models/CheckoutSubmitBody.ts +35 -0
  93. package/src/generated/shopper/models/CheckoutSuccessResponse.ts +8 -0
  94. package/src/generated/shopper/models/SaveDetailsBody.ts +26 -0
  95. package/src/generated/shopper/models/SaveNonceBody.ts +15 -0
  96. package/src/generated/shopper/models/StudioSettings.ts +12 -0
  97. package/src/generated/shopper/services/CheckoutService.ts +171 -0
  98. package/src/generated/shopper/types.ts +13 -0
@@ -1,5 +1,6 @@
1
1
  import { AccountService } from "../generated/shopper";
2
2
  import { CartService } from "../generated/shopper";
3
+ import { CheckoutService } from "../generated/shopper";
3
4
  import { CodeService } from "../generated/shopper";
4
5
  import { DonationService } from "../generated/shopper";
5
6
  import { EventService } from "../generated/shopper";
@@ -12,6 +13,7 @@ import { SessionService } from "../generated/shopper";
12
13
  export declare const shopper: {
13
14
  account: typeof AccountService;
14
15
  cart: typeof CartService;
16
+ checkout: typeof CheckoutService;
15
17
  code: typeof CodeService;
16
18
  donation: typeof DonationService;
17
19
  event: typeof EventService;
@@ -1,6 +1,7 @@
1
1
  // AUTO-GENERATED FILE – DO NOT EDIT
2
2
  import { AccountService } from "../generated/shopper";
3
3
  import { CartService } from "../generated/shopper";
4
+ import { CheckoutService } from "../generated/shopper";
4
5
  import { CodeService } from "../generated/shopper";
5
6
  import { DonationService } from "../generated/shopper";
6
7
  import { EventService } from "../generated/shopper";
@@ -13,6 +14,7 @@ import { SessionService } from "../generated/shopper";
13
14
  export const shopper = {
14
15
  account: AccountService,
15
16
  cart: CartService,
17
+ checkout: CheckoutService,
16
18
  code: CodeService,
17
19
  donation: DonationService,
18
20
  event: EventService,
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: '',
3
- VERSION: '20260226.1',
3
+ VERSION: '20260304.1',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -1,4 +1,4 @@
1
1
  export type SearchCodeResponseDto = {
2
2
  codeType: string;
3
- count: number;
3
+ num: number;
4
4
  };
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: 'https://api.drttix.com/scanner-v3',
3
- VERSION: '20251217.3',
3
+ VERSION: '20260303.1',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -1,6 +1,6 @@
1
1
  export const OpenAPI = {
2
2
  BASE: 'https://api.drttix.com/shopper',
3
- VERSION: '20260130.1',
3
+ VERSION: '20260303.1',
4
4
  WITH_CREDENTIALS: false,
5
5
  CREDENTIALS: 'include',
6
6
  TOKEN: undefined,
@@ -10,8 +10,18 @@ export type { AssignNamesReturn } from './models/AssignNamesReturn';
10
10
  export type { BAHold } from './models/BAHold';
11
11
  export type { BlockOfTickets } from './models/BlockOfTickets';
12
12
  export type { Cart } from './models/Cart';
13
+ export type { CartCounts } from './models/CartCounts';
13
14
  export type { CartWithTime } from './models/CartWithTime';
14
15
  export type { Chart } from './models/Chart';
16
+ export type { CheckoutDonation } from './models/CheckoutDonation';
17
+ export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
18
+ export type { CheckoutGiftCard } from './models/CheckoutGiftCard';
19
+ export type { CheckoutPageData } from './models/CheckoutPageData';
20
+ export type { CheckoutProduct } from './models/CheckoutProduct';
21
+ export type { CheckoutQuestion } from './models/CheckoutQuestion';
22
+ export type { CheckoutSessionData } from './models/CheckoutSessionData';
23
+ export type { CheckoutSubmitBody } from './models/CheckoutSubmitBody';
24
+ export type { CheckoutSuccessResponse } from './models/CheckoutSuccessResponse';
15
25
  export type { CodeDto } from './models/CodeDto';
16
26
  export type { CompleteBody } from './models/CompleteBody';
17
27
  export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
@@ -79,6 +89,8 @@ export type { RefundRequestInfo } from './models/RefundRequestInfo';
79
89
  export type { RegisterStreamRequest } from './models/RegisterStreamRequest';
80
90
  export type { RegisterStreamResponse } from './models/RegisterStreamResponse';
81
91
  export type { RootConfigResponse } from './models/RootConfigResponse';
92
+ export type { SaveDetailsBody } from './models/SaveDetailsBody';
93
+ export type { SaveNonceBody } from './models/SaveNonceBody';
82
94
  export type { SeatData } from './models/SeatData';
83
95
  export type { SeatHoldReturn } from './models/SeatHoldReturn';
84
96
  export type { SeatInCart } from './models/SeatInCart';
@@ -90,6 +102,7 @@ export type { SessionInfoDto } from './models/SessionInfoDto';
90
102
  export type { SiteDisposition } from './models/SiteDisposition';
91
103
  export type { SiteTheme } from './models/SiteTheme';
92
104
  export type { StudioOrderSettings } from './models/StudioOrderSettings';
105
+ export type { StudioSettings } from './models/StudioSettings';
93
106
  export type { SuccessResponse } from './models/SuccessResponse';
94
107
  export type { SuccessWithTime } from './models/SuccessWithTime';
95
108
  export type { SummaryBody } from './models/SummaryBody';
@@ -104,6 +117,7 @@ export type { WaitlistResponse } from './models/WaitlistResponse';
104
117
  export type { WaitlistUpdate } from './models/WaitlistUpdate';
105
118
  export { AccountService } from './services/AccountService';
106
119
  export { CartService } from './services/CartService';
120
+ export { CheckoutService } from './services/CheckoutService';
107
121
  export { CodeService } from './services/CodeService';
108
122
  export { DonationService } from './services/DonationService';
109
123
  export { EventService } from './services/EventService';
@@ -7,6 +7,7 @@ export { CancelablePromise, CancelError } from './core/CancelablePromise';
7
7
  export { OpenAPI } from './core/OpenAPI';
8
8
  export { AccountService } from './services/AccountService';
9
9
  export { CartService } from './services/CartService';
10
+ export { CheckoutService } from './services/CheckoutService';
10
11
  export { CodeService } from './services/CodeService';
11
12
  export { DonationService } from './services/DonationService';
12
13
  export { EventService } from './services/EventService';
@@ -0,0 +1,6 @@
1
+ export type CartCounts = {
2
+ numSeats: number;
3
+ numDonations: number;
4
+ numProducts: number;
5
+ numTotal: number;
6
+ };
@@ -0,0 +1,4 @@
1
+ export type CheckoutDonation = {
2
+ totalAmount: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,5 @@
1
+ export type CheckoutFailResponse = {
2
+ success: boolean;
3
+ message: string;
4
+ field?: string;
5
+ };
@@ -0,0 +1,4 @@
1
+ export type CheckoutGiftCard = {
2
+ code: string;
3
+ amount: number;
4
+ };
@@ -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.12",
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: '20260226.1',
24
+ VERSION: '20260304.1',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -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
 
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: 'https://api.drttix.com/scanner-v3',
24
- VERSION: '20251217.3',
24
+ VERSION: '20260303.1',
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: '20260130.1',
24
+ VERSION: '20260303.1',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,