@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
@@ -5,6 +5,7 @@ export declare const DRT: {
5
5
  shopper: {
6
6
  account: typeof import("./src/generated/shopper").AccountService;
7
7
  cart: typeof import("./src/generated/shopper").CartService;
8
+ checkout: typeof import("./src/generated/shopper").CheckoutService;
8
9
  code: typeof import("./src/generated/shopper").CodeService;
9
10
  donation: typeof import("./src/generated/shopper").DonationService;
10
11
  event: typeof import("./src/generated/shopper").EventService;
@@ -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;
@@ -46,18 +46,20 @@ const shopper_8 = require("../generated/shopper");
46
46
  const shopper_9 = require("../generated/shopper");
47
47
  const shopper_10 = require("../generated/shopper");
48
48
  const shopper_11 = require("../generated/shopper");
49
+ const shopper_12 = require("../generated/shopper");
49
50
  exports.shopper = {
50
51
  account: shopper_1.AccountService,
51
52
  cart: shopper_2.CartService,
52
- code: shopper_3.CodeService,
53
- donation: shopper_4.DonationService,
54
- event: shopper_5.EventService,
55
- giftcard: shopper_6.GiftCardService,
56
- order: shopper_7.OrderService,
57
- payment: shopper_8.PaymentService,
58
- product: shopper_9.ProductService,
59
- seat: shopper_10.SeatService,
60
- session: shopper_11.SessionService,
53
+ checkout: shopper_3.CheckoutService,
54
+ code: shopper_4.CodeService,
55
+ donation: shopper_5.DonationService,
56
+ event: shopper_6.EventService,
57
+ giftcard: shopper_7.GiftCardService,
58
+ order: shopper_8.OrderService,
59
+ payment: shopper_9.PaymentService,
60
+ product: shopper_10.ProductService,
61
+ seat: shopper_11.SeatService,
62
+ session: shopper_12.SessionService,
61
63
  };
62
64
  // Re-export all types as a namespace
63
65
  exports.ShopperTypes = __importStar(require("../generated/shopper/types"));
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '',
6
- VERSION: '20260226.1',
6
+ VERSION: '20260304.1',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -1,4 +1,4 @@
1
1
  export type SearchCodeResponseDto = {
2
2
  codeType: string;
3
- count: number;
3
+ num: number;
4
4
  };
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: 'https://api.drttix.com/scanner-v3',
6
- VERSION: '20251217.3',
6
+ VERSION: '20260303.1',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: 'https://api.drttix.com/shopper',
6
- VERSION: '20260130.1',
6
+ VERSION: '20260303.1',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  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';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SessionService = exports.SeatService = exports.ProductService = exports.PaymentService = exports.OrderService = exports.GiftCardService = exports.EventService = exports.DonationService = exports.CodeService = exports.CartService = exports.AccountService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
3
+ exports.SessionService = exports.SeatService = exports.ProductService = exports.PaymentService = exports.OrderService = exports.GiftCardService = exports.EventService = exports.DonationService = exports.CodeService = exports.CheckoutService = exports.CartService = exports.AccountService = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
4
4
  /* generated using openapi-typescript-codegen -- do not edit */
5
5
  /* istanbul ignore file */
6
6
  /* tslint:disable */
@@ -16,6 +16,8 @@ var AccountService_1 = require("./services/AccountService");
16
16
  Object.defineProperty(exports, "AccountService", { enumerable: true, get: function () { return AccountService_1.AccountService; } });
17
17
  var CartService_1 = require("./services/CartService");
18
18
  Object.defineProperty(exports, "CartService", { enumerable: true, get: function () { return CartService_1.CartService; } });
19
+ var CheckoutService_1 = require("./services/CheckoutService");
20
+ Object.defineProperty(exports, "CheckoutService", { enumerable: true, get: function () { return CheckoutService_1.CheckoutService; } });
19
21
  var CodeService_1 = require("./services/CodeService");
20
22
  Object.defineProperty(exports, "CodeService", { enumerable: true, get: function () { return CodeService_1.CodeService; } });
21
23
  var DonationService_1 = require("./services/DonationService");
@@ -0,0 +1,6 @@
1
+ export type CartCounts = {
2
+ numSeats: number;
3
+ numDonations: number;
4
+ numProducts: number;
5
+ numTotal: number;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export type CheckoutDonation = {
2
+ totalAmount: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export type CheckoutFailResponse = {
2
+ success: boolean;
3
+ message: string;
4
+ field?: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export type CheckoutGiftCard = {
2
+ code: string;
3
+ amount: number;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type CheckoutSuccessResponse = {
2
+ success: boolean;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,142 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CheckoutService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class CheckoutService {
7
+ /**
8
+ * Get checkout page data
9
+ * Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
10
+ * @param shopperguid Unique identifier for the shopper.
11
+ * @param accountid Unique identifier for the account.
12
+ * @param apikey API key for authentication.
13
+ * @returns CheckoutPageData Returns checkout page data.
14
+ * @throws ApiError
15
+ */
16
+ static getCheckout(shopperguid, accountid, apikey) {
17
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
18
+ method: 'GET',
19
+ url: '/checkout',
20
+ headers: {
21
+ 'shopperguid': shopperguid,
22
+ 'accountid': accountid,
23
+ 'apikey': apikey,
24
+ },
25
+ errors: {
26
+ 400: `Bad Request error with error details.`,
27
+ 404: `Not found error with error details.`,
28
+ 500: `Internal Server Error, please contact developers.`,
29
+ },
30
+ });
31
+ }
32
+ /**
33
+ * Submit checkout
34
+ * Validates and saves checkout form data. Supports both token (Authorize.net/Moneris) and Stripe payment flows.
35
+ * @param shopperguid Unique identifier for the shopper.
36
+ * @param accountid Unique identifier for the account.
37
+ * @param apikey API key for authentication.
38
+ * @param requestBody Checkout form data.
39
+ * @returns CheckoutSuccessResponse Returns success response.
40
+ * @throws ApiError
41
+ */
42
+ static submitCheckout(shopperguid, accountid, apikey, requestBody) {
43
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
44
+ method: 'POST',
45
+ url: '/checkout',
46
+ headers: {
47
+ 'shopperguid': shopperguid,
48
+ 'accountid': accountid,
49
+ 'apikey': apikey,
50
+ },
51
+ body: requestBody,
52
+ mediaType: 'application/json',
53
+ errors: {
54
+ 400: `Returns validation error.`,
55
+ 404: `Not found error with error details.`,
56
+ 500: `Internal Server Error, please contact developers.`,
57
+ },
58
+ });
59
+ }
60
+ /**
61
+ * Save payment nonce
62
+ * Saves a payment nonce (token) from Authorize.net or Moneris to the session.
63
+ * @param shopperguid Unique identifier for the shopper.
64
+ * @param accountid Unique identifier for the account.
65
+ * @param apikey API key for authentication.
66
+ * @param requestBody Nonce data to save.
67
+ * @returns CheckoutSuccessResponse Returns success response.
68
+ * @throws ApiError
69
+ */
70
+ static saveNonce(shopperguid, accountid, apikey, requestBody) {
71
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
72
+ method: 'POST',
73
+ url: '/checkout/nonce',
74
+ headers: {
75
+ 'shopperguid': shopperguid,
76
+ 'accountid': accountid,
77
+ 'apikey': apikey,
78
+ },
79
+ body: requestBody,
80
+ mediaType: 'application/json',
81
+ errors: {
82
+ 400: `Bad Request error with error details.`,
83
+ 404: `Not found error with error details.`,
84
+ 500: `Internal Server Error, please contact developers.`,
85
+ },
86
+ });
87
+ }
88
+ /**
89
+ * Clear payment nonce
90
+ * Clears the payment nonce and related CC fields from the session.
91
+ * @param shopperguid Unique identifier for the shopper.
92
+ * @param accountid Unique identifier for the account.
93
+ * @param apikey API key for authentication.
94
+ * @returns CheckoutSuccessResponse Returns success response.
95
+ * @throws ApiError
96
+ */
97
+ static clearNonce(shopperguid, accountid, apikey) {
98
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
99
+ method: 'DELETE',
100
+ url: '/checkout/nonce',
101
+ headers: {
102
+ 'shopperguid': shopperguid,
103
+ 'accountid': accountid,
104
+ 'apikey': apikey,
105
+ },
106
+ errors: {
107
+ 400: `Bad Request error with error details.`,
108
+ 404: `Not found error with error details.`,
109
+ 500: `Internal Server Error, please contact developers.`,
110
+ },
111
+ });
112
+ }
113
+ /**
114
+ * Auto-save checkout details
115
+ * Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
116
+ * @param shopperguid Unique identifier for the shopper.
117
+ * @param accountid Unique identifier for the account.
118
+ * @param apikey API key for authentication.
119
+ * @param requestBody Partial checkout data to auto-save.
120
+ * @returns CheckoutSuccessResponse Returns success response.
121
+ * @throws ApiError
122
+ */
123
+ static saveDetails(shopperguid, accountid, apikey, requestBody) {
124
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
125
+ method: 'POST',
126
+ url: '/checkout/details',
127
+ headers: {
128
+ 'shopperguid': shopperguid,
129
+ 'accountid': accountid,
130
+ 'apikey': apikey,
131
+ },
132
+ body: requestBody,
133
+ mediaType: 'application/json',
134
+ errors: {
135
+ 400: `Bad Request error with error details.`,
136
+ 404: `Not found error with error details.`,
137
+ 500: `Internal Server Error, please contact developers.`,
138
+ },
139
+ });
140
+ }
141
+ }
142
+ exports.CheckoutService = CheckoutService;
@@ -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';
@@ -5,6 +5,7 @@ export declare const DRT: {
5
5
  shopper: {
6
6
  account: typeof import("./src/generated/shopper").AccountService;
7
7
  cart: typeof import("./src/generated/shopper").CartService;
8
+ checkout: typeof import("./src/generated/shopper").CheckoutService;
8
9
  code: typeof import("./src/generated/shopper").CodeService;
9
10
  donation: typeof import("./src/generated/shopper").DonationService;
10
11
  event: typeof import("./src/generated/shopper").EventService;