@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.
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/src/definitions/shopper.d.ts +2 -0
- package/dist/cjs/src/definitions/shopper.js +11 -9
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/index.d.ts +3 -0
- package/dist/cjs/src/generated/portal/models/CheckoutResponseShowResponseDto.d.ts +5 -0
- package/dist/cjs/src/generated/portal/models/CheckoutResponseShowResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SearchCodeResponseDto.d.ts +1 -1
- package/dist/cjs/src/generated/portal/models/ShowSeatDetailResponseDto.d.ts +6 -0
- package/dist/cjs/src/generated/portal/models/ShowSeatDetailResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/UpdateEmailRequestDto.d.ts +3 -0
- package/dist/cjs/src/generated/portal/models/UpdateEmailRequestDto.js +2 -0
- package/dist/cjs/src/generated/portal/services/OrderLookupService.d.ts +11 -0
- package/dist/cjs/src/generated/portal/services/OrderLookupService.js +23 -0
- package/dist/cjs/src/generated/portal/services/ReportsService.d.ts +21 -0
- package/dist/cjs/src/generated/portal/services/ReportsService.js +42 -0
- package/dist/cjs/src/generated/portal/types.d.ts +3 -0
- package/dist/cjs/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/index.d.ts +14 -0
- package/dist/cjs/src/generated/shopper/index.js +3 -1
- package/dist/cjs/src/generated/shopper/models/CartCounts.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/CartCounts.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutDonation.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutDonation.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutFailResponse.d.ts +5 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutFailResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutGiftCard.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutGiftCard.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutPageData.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutPageData.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutProduct.d.ts +9 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutProduct.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutQuestion.d.ts +15 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutQuestion.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutSessionData.d.ts +30 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutSessionData.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutSubmitBody.d.ts +30 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutSubmitBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutSuccessResponse.d.ts +3 -0
- package/dist/cjs/src/generated/shopper/models/CheckoutSuccessResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SaveDetailsBody.d.ts +21 -0
- package/dist/cjs/src/generated/shopper/models/SaveDetailsBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SaveNonceBody.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/SaveNonceBody.js +2 -0
- package/dist/cjs/src/generated/shopper/models/StudioSettings.d.ts +7 -0
- package/dist/cjs/src/generated/shopper/models/StudioSettings.js +2 -0
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +61 -0
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +142 -0
- package/dist/cjs/src/generated/shopper/types.d.ts +13 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/src/definitions/shopper.d.ts +2 -0
- package/dist/esm/src/definitions/shopper.js +2 -0
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/index.d.ts +3 -0
- package/dist/esm/src/generated/portal/models/CheckoutResponseShowResponseDto.d.ts +5 -0
- package/dist/esm/src/generated/portal/models/CheckoutResponseShowResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SearchCodeResponseDto.d.ts +1 -1
- package/dist/esm/src/generated/portal/models/ShowSeatDetailResponseDto.d.ts +6 -0
- package/dist/esm/src/generated/portal/models/ShowSeatDetailResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/UpdateEmailRequestDto.d.ts +3 -0
- package/dist/esm/src/generated/portal/models/UpdateEmailRequestDto.js +1 -0
- package/dist/esm/src/generated/portal/services/OrderLookupService.d.ts +11 -0
- package/dist/esm/src/generated/portal/services/OrderLookupService.js +23 -0
- package/dist/esm/src/generated/portal/services/ReportsService.d.ts +21 -0
- package/dist/esm/src/generated/portal/services/ReportsService.js +42 -0
- package/dist/esm/src/generated/portal/types.d.ts +3 -0
- package/dist/esm/src/generated/scanner/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/index.d.ts +14 -0
- package/dist/esm/src/generated/shopper/index.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartCounts.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/CartCounts.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutDonation.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/CheckoutDonation.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutFailResponse.d.ts +5 -0
- package/dist/esm/src/generated/shopper/models/CheckoutFailResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutGiftCard.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/CheckoutGiftCard.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutPageData.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/CheckoutPageData.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutProduct.d.ts +9 -0
- package/dist/esm/src/generated/shopper/models/CheckoutProduct.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutQuestion.d.ts +15 -0
- package/dist/esm/src/generated/shopper/models/CheckoutQuestion.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutSessionData.d.ts +30 -0
- package/dist/esm/src/generated/shopper/models/CheckoutSessionData.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutSubmitBody.d.ts +30 -0
- package/dist/esm/src/generated/shopper/models/CheckoutSubmitBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/CheckoutSuccessResponse.d.ts +3 -0
- package/dist/esm/src/generated/shopper/models/CheckoutSuccessResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/SaveDetailsBody.d.ts +21 -0
- package/dist/esm/src/generated/shopper/models/SaveDetailsBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/SaveNonceBody.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/SaveNonceBody.js +1 -0
- package/dist/esm/src/generated/shopper/models/StudioSettings.d.ts +7 -0
- package/dist/esm/src/generated/shopper/models/StudioSettings.js +1 -0
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +61 -0
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +138 -0
- package/dist/esm/src/generated/shopper/types.d.ts +13 -0
- package/package.json +1 -1
- package/src/definitions/shopper.ts +2 -0
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/index.ts +3 -0
- package/src/generated/portal/models/CheckoutResponseShowResponseDto.ts +10 -0
- package/src/generated/portal/models/SearchCodeResponseDto.ts +1 -1
- package/src/generated/portal/models/ShowSeatDetailResponseDto.ts +11 -0
- package/src/generated/portal/models/UpdateEmailRequestDto.ts +8 -0
- package/src/generated/portal/services/OrderLookupService.ts +28 -0
- package/src/generated/portal/services/ReportsService.ts +51 -0
- package/src/generated/portal/types.ts +3 -0
- package/src/generated/scanner/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/index.ts +14 -0
- package/src/generated/shopper/models/CartCounts.ts +11 -0
- package/src/generated/shopper/models/CheckoutDonation.ts +9 -0
- package/src/generated/shopper/models/CheckoutFailResponse.ts +10 -0
- package/src/generated/shopper/models/CheckoutGiftCard.ts +9 -0
- package/src/generated/shopper/models/CheckoutPageData.ts +23 -0
- package/src/generated/shopper/models/CheckoutProduct.ts +14 -0
- package/src/generated/shopper/models/CheckoutQuestion.ts +20 -0
- package/src/generated/shopper/models/CheckoutSessionData.ts +35 -0
- package/src/generated/shopper/models/CheckoutSubmitBody.ts +35 -0
- package/src/generated/shopper/models/CheckoutSuccessResponse.ts +8 -0
- package/src/generated/shopper/models/SaveDetailsBody.ts +26 -0
- package/src/generated/shopper/models/SaveNonceBody.ts +15 -0
- package/src/generated/shopper/models/StudioSettings.ts +12 -0
- package/src/generated/shopper/services/CheckoutService.ts +171 -0
- package/src/generated/shopper/types.ts +13 -0
|
@@ -33,6 +33,7 @@ export type { CheckoutAnswerOrderRequestDto } from './models/CheckoutAnswerOrder
|
|
|
33
33
|
export type { CheckoutAnswerOrderResponseDto } from './models/CheckoutAnswerOrderResponseDto';
|
|
34
34
|
export type { CheckoutAnswerQuestionResponseDto } from './models/CheckoutAnswerQuestionResponseDto';
|
|
35
35
|
export type { CheckoutQuestionResponseDto } from './models/CheckoutQuestionResponseDto';
|
|
36
|
+
export type { CheckoutResponseShowResponseDto } from './models/CheckoutResponseShowResponseDto';
|
|
36
37
|
export type { CheckSelectedSeatResponseDto } from './models/CheckSelectedSeatResponseDto';
|
|
37
38
|
export type { CodeDetailResponseDto } from './models/CodeDetailResponseDto';
|
|
38
39
|
export type { CodeDetailsResponseDto } from './models/CodeDetailsResponseDto';
|
|
@@ -226,6 +227,7 @@ export type { ShowPricing } from './models/ShowPricing';
|
|
|
226
227
|
export type { ShowPricingDetail } from './models/ShowPricingDetail';
|
|
227
228
|
export type { ShowReportListResponseDto } from './models/ShowReportListResponseDto';
|
|
228
229
|
export type { Shows } from './models/Shows';
|
|
230
|
+
export type { ShowSeatDetailResponseDto } from './models/ShowSeatDetailResponseDto';
|
|
229
231
|
export type { ShowSectionDetail } from './models/ShowSectionDetail';
|
|
230
232
|
export type { ShowsList } from './models/ShowsList';
|
|
231
233
|
export type { ShowSnapshotResponseDto } from './models/ShowSnapshotResponseDto';
|
|
@@ -287,6 +289,7 @@ export type { UnblockSeatsRequestDto } from './models/UnblockSeatsRequestDto';
|
|
|
287
289
|
export type { UnsoldTicketsResponseDto } from './models/UnsoldTicketsResponseDto';
|
|
288
290
|
export type { UpdateBankingRequestDto } from './models/UpdateBankingRequestDto';
|
|
289
291
|
export type { UpdateDiscountCodeRequestDto } from './models/UpdateDiscountCodeRequestDto';
|
|
292
|
+
export type { UpdateEmailRequestDto } from './models/UpdateEmailRequestDto';
|
|
290
293
|
export type { UpdateImageUploadRequestDto } from './models/UpdateImageUploadRequestDto';
|
|
291
294
|
export type { UpdateLandingPageConfigSettingRequestDto } from './models/UpdateLandingPageConfigSettingRequestDto';
|
|
292
295
|
export type { UpdateLandingPageRequestDto } from './models/UpdateLandingPageRequestDto';
|
|
@@ -15,8 +15,18 @@ export type { AssignNamesReturn } from './models/AssignNamesReturn';
|
|
|
15
15
|
export type { BAHold } from './models/BAHold';
|
|
16
16
|
export type { BlockOfTickets } from './models/BlockOfTickets';
|
|
17
17
|
export type { Cart } from './models/Cart';
|
|
18
|
+
export type { CartCounts } from './models/CartCounts';
|
|
18
19
|
export type { CartWithTime } from './models/CartWithTime';
|
|
19
20
|
export type { Chart } from './models/Chart';
|
|
21
|
+
export type { CheckoutDonation } from './models/CheckoutDonation';
|
|
22
|
+
export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
|
|
23
|
+
export type { CheckoutGiftCard } from './models/CheckoutGiftCard';
|
|
24
|
+
export type { CheckoutPageData } from './models/CheckoutPageData';
|
|
25
|
+
export type { CheckoutProduct } from './models/CheckoutProduct';
|
|
26
|
+
export type { CheckoutQuestion } from './models/CheckoutQuestion';
|
|
27
|
+
export type { CheckoutSessionData } from './models/CheckoutSessionData';
|
|
28
|
+
export type { CheckoutSubmitBody } from './models/CheckoutSubmitBody';
|
|
29
|
+
export type { CheckoutSuccessResponse } from './models/CheckoutSuccessResponse';
|
|
20
30
|
export type { CodeDto } from './models/CodeDto';
|
|
21
31
|
export type { CompleteBody } from './models/CompleteBody';
|
|
22
32
|
export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
|
|
@@ -84,6 +94,8 @@ export type { RefundRequestInfo } from './models/RefundRequestInfo';
|
|
|
84
94
|
export type { RegisterStreamRequest } from './models/RegisterStreamRequest';
|
|
85
95
|
export type { RegisterStreamResponse } from './models/RegisterStreamResponse';
|
|
86
96
|
export type { RootConfigResponse } from './models/RootConfigResponse';
|
|
97
|
+
export type { SaveDetailsBody } from './models/SaveDetailsBody';
|
|
98
|
+
export type { SaveNonceBody } from './models/SaveNonceBody';
|
|
87
99
|
export type { SeatData } from './models/SeatData';
|
|
88
100
|
export type { SeatHoldReturn } from './models/SeatHoldReturn';
|
|
89
101
|
export type { SeatInCart } from './models/SeatInCart';
|
|
@@ -95,6 +107,7 @@ export type { SessionInfoDto } from './models/SessionInfoDto';
|
|
|
95
107
|
export type { SiteDisposition } from './models/SiteDisposition';
|
|
96
108
|
export type { SiteTheme } from './models/SiteTheme';
|
|
97
109
|
export type { StudioOrderSettings } from './models/StudioOrderSettings';
|
|
110
|
+
export type { StudioSettings } from './models/StudioSettings';
|
|
98
111
|
export type { SuccessResponse } from './models/SuccessResponse';
|
|
99
112
|
export type { SuccessWithTime } from './models/SuccessWithTime';
|
|
100
113
|
export type { SummaryBody } from './models/SummaryBody';
|
|
@@ -110,6 +123,7 @@ export type { WaitlistUpdate } from './models/WaitlistUpdate';
|
|
|
110
123
|
|
|
111
124
|
export { AccountService } from './services/AccountService';
|
|
112
125
|
export { CartService } from './services/CartService';
|
|
126
|
+
export { CheckoutService } from './services/CheckoutService';
|
|
113
127
|
export { CodeService } from './services/CodeService';
|
|
114
128
|
export { DonationService } from './services/DonationService';
|
|
115
129
|
export { EventService } from './services/EventService';
|
|
@@ -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 CartCounts = {
|
|
6
|
+
numSeats: number;
|
|
7
|
+
numDonations: number;
|
|
8
|
+
numProducts: number;
|
|
9
|
+
numTotal: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { CartCounts } from './CartCounts';
|
|
6
|
+
import type { CheckoutDonation } from './CheckoutDonation';
|
|
7
|
+
import type { CheckoutGiftCard } from './CheckoutGiftCard';
|
|
8
|
+
import type { CheckoutProduct } from './CheckoutProduct';
|
|
9
|
+
import type { CheckoutQuestion } from './CheckoutQuestion';
|
|
10
|
+
import type { CheckoutSessionData } from './CheckoutSessionData';
|
|
11
|
+
import type { StudioSettings } from './StudioSettings';
|
|
12
|
+
export type CheckoutPageData = {
|
|
13
|
+
session: CheckoutSessionData;
|
|
14
|
+
studioSettings: StudioSettings;
|
|
15
|
+
questions: Array<CheckoutQuestion>;
|
|
16
|
+
products: Array<CheckoutProduct>;
|
|
17
|
+
donations: Array<CheckoutDonation>;
|
|
18
|
+
giftCards: Array<CheckoutGiftCard>;
|
|
19
|
+
shippingRequired: boolean;
|
|
20
|
+
shippingVisible: boolean;
|
|
21
|
+
cartCounts: CartCounts;
|
|
22
|
+
};
|
|
23
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type CheckoutProduct = {
|
|
6
|
+
name: string;
|
|
7
|
+
variantName?: string;
|
|
8
|
+
qty: number;
|
|
9
|
+
itemPrice: number;
|
|
10
|
+
itemFee: number;
|
|
11
|
+
iconSrc?: string;
|
|
12
|
+
requiresShipping: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type CheckoutQuestion = {
|
|
6
|
+
id: number;
|
|
7
|
+
question: string;
|
|
8
|
+
comment?: string;
|
|
9
|
+
questionType: string;
|
|
10
|
+
answers?: string;
|
|
11
|
+
isOptional: number;
|
|
12
|
+
hasAddlDetails: number;
|
|
13
|
+
selectedAnswer?: string;
|
|
14
|
+
showId: number;
|
|
15
|
+
seatId: number;
|
|
16
|
+
showName?: string;
|
|
17
|
+
secRowSeat?: string;
|
|
18
|
+
productId?: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type CheckoutSessionData = {
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
email: string;
|
|
9
|
+
phone: string;
|
|
10
|
+
orderTotal: number;
|
|
11
|
+
paymentsTotal: number;
|
|
12
|
+
couponId?: number;
|
|
13
|
+
couponCode?: string;
|
|
14
|
+
couponAmount: number;
|
|
15
|
+
ccNum?: string;
|
|
16
|
+
ccExpMonth?: string;
|
|
17
|
+
ccExpYear?: string;
|
|
18
|
+
ccType?: string;
|
|
19
|
+
billingFirstName?: string;
|
|
20
|
+
billingLastName?: string;
|
|
21
|
+
billingPostal?: string;
|
|
22
|
+
billingCountry?: string;
|
|
23
|
+
nonceValue?: string;
|
|
24
|
+
nonceDescriptor?: string;
|
|
25
|
+
shippingAddress1?: string;
|
|
26
|
+
shippingAddress2?: string;
|
|
27
|
+
shippingCity?: string;
|
|
28
|
+
shippingState?: string;
|
|
29
|
+
shippingPostal?: string;
|
|
30
|
+
shippingCountry?: string;
|
|
31
|
+
studentCredit?: string;
|
|
32
|
+
numSeats: number;
|
|
33
|
+
paymentBeforeCc: number;
|
|
34
|
+
};
|
|
35
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type CheckoutSubmitBody = {
|
|
6
|
+
shopperEmail: string;
|
|
7
|
+
shopperFirstName: string;
|
|
8
|
+
shopperLastName: string;
|
|
9
|
+
shopperPhone: string;
|
|
10
|
+
receiveSms?: string;
|
|
11
|
+
billingFirstName?: string;
|
|
12
|
+
billingLastName?: string;
|
|
13
|
+
billingPostal?: string;
|
|
14
|
+
billingCountry?: string;
|
|
15
|
+
ccType?: string;
|
|
16
|
+
ccNum?: string;
|
|
17
|
+
ccExpMonth?: string;
|
|
18
|
+
ccExpYear?: string;
|
|
19
|
+
nonceDescriptor?: string;
|
|
20
|
+
nonceValue?: string;
|
|
21
|
+
shippingAddress1?: string;
|
|
22
|
+
shippingAddress2?: string;
|
|
23
|
+
shippingCity?: string;
|
|
24
|
+
shippingState?: string;
|
|
25
|
+
shippingPostal?: string;
|
|
26
|
+
shippingCountry?: string;
|
|
27
|
+
couponCode?: string;
|
|
28
|
+
studentCredit?: string;
|
|
29
|
+
answers?: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Payment gateway type: "token" for Authorize.net/Moneris, "stripe" for Stripe
|
|
32
|
+
*/
|
|
33
|
+
paymentGateway?: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type SaveDetailsBody = {
|
|
6
|
+
shopperEmail?: string;
|
|
7
|
+
shopperFirstName?: string;
|
|
8
|
+
shopperLastName?: string;
|
|
9
|
+
shopperPhone?: string;
|
|
10
|
+
receiveSms?: string;
|
|
11
|
+
billingFirstName?: string;
|
|
12
|
+
billingLastName?: string;
|
|
13
|
+
billingAddress1?: string;
|
|
14
|
+
billingCity?: string;
|
|
15
|
+
billingState?: string;
|
|
16
|
+
billingPostal?: string;
|
|
17
|
+
billingCountry?: string;
|
|
18
|
+
ccType?: string;
|
|
19
|
+
ccNum?: string;
|
|
20
|
+
ccCvn?: string;
|
|
21
|
+
ccExpMonth?: string;
|
|
22
|
+
ccExpYear?: string;
|
|
23
|
+
studentCredit?: string;
|
|
24
|
+
answers?: Array<string>;
|
|
25
|
+
};
|
|
26
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type SaveNonceBody = {
|
|
6
|
+
descriptor: string;
|
|
7
|
+
value: string;
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
ccType?: string;
|
|
11
|
+
ccNum4?: string;
|
|
12
|
+
ccExpMonth?: string;
|
|
13
|
+
ccExpYear?: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
export type StudioSettings = {
|
|
6
|
+
refundExchangePolicy?: string;
|
|
7
|
+
creditStudents: number;
|
|
8
|
+
creditStudentsRequired: number;
|
|
9
|
+
enableShipping: number;
|
|
10
|
+
posShippingRequired: number;
|
|
11
|
+
};
|
|
12
|
+
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { CheckoutPageData } from '../models/CheckoutPageData';
|
|
6
|
+
import type { CheckoutSubmitBody } from '../models/CheckoutSubmitBody';
|
|
7
|
+
import type { CheckoutSuccessResponse } from '../models/CheckoutSuccessResponse';
|
|
8
|
+
import type { SaveDetailsBody } from '../models/SaveDetailsBody';
|
|
9
|
+
import type { SaveNonceBody } from '../models/SaveNonceBody';
|
|
10
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
11
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
12
|
+
import { request as __request } from '../core/request';
|
|
13
|
+
export class CheckoutService {
|
|
14
|
+
/**
|
|
15
|
+
* Get checkout page data
|
|
16
|
+
* Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
|
|
17
|
+
* @param shopperguid Unique identifier for the shopper.
|
|
18
|
+
* @param accountid Unique identifier for the account.
|
|
19
|
+
* @param apikey API key for authentication.
|
|
20
|
+
* @returns CheckoutPageData Returns checkout page data.
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
public static getCheckout(
|
|
24
|
+
shopperguid: string,
|
|
25
|
+
accountid: string,
|
|
26
|
+
apikey: string,
|
|
27
|
+
): CancelablePromise<CheckoutPageData> {
|
|
28
|
+
return __request(OpenAPI, {
|
|
29
|
+
method: 'GET',
|
|
30
|
+
url: '/checkout',
|
|
31
|
+
headers: {
|
|
32
|
+
'shopperguid': shopperguid,
|
|
33
|
+
'accountid': accountid,
|
|
34
|
+
'apikey': apikey,
|
|
35
|
+
},
|
|
36
|
+
errors: {
|
|
37
|
+
400: `Bad Request error with error details.`,
|
|
38
|
+
404: `Not found error with error details.`,
|
|
39
|
+
500: `Internal Server Error, please contact developers.`,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Submit checkout
|
|
45
|
+
* Validates and saves checkout form data. Supports both token (Authorize.net/Moneris) and Stripe payment flows.
|
|
46
|
+
* @param shopperguid Unique identifier for the shopper.
|
|
47
|
+
* @param accountid Unique identifier for the account.
|
|
48
|
+
* @param apikey API key for authentication.
|
|
49
|
+
* @param requestBody Checkout form data.
|
|
50
|
+
* @returns CheckoutSuccessResponse Returns success response.
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
public static submitCheckout(
|
|
54
|
+
shopperguid: string,
|
|
55
|
+
accountid: string,
|
|
56
|
+
apikey: string,
|
|
57
|
+
requestBody: CheckoutSubmitBody,
|
|
58
|
+
): CancelablePromise<CheckoutSuccessResponse> {
|
|
59
|
+
return __request(OpenAPI, {
|
|
60
|
+
method: 'POST',
|
|
61
|
+
url: '/checkout',
|
|
62
|
+
headers: {
|
|
63
|
+
'shopperguid': shopperguid,
|
|
64
|
+
'accountid': accountid,
|
|
65
|
+
'apikey': apikey,
|
|
66
|
+
},
|
|
67
|
+
body: requestBody,
|
|
68
|
+
mediaType: 'application/json',
|
|
69
|
+
errors: {
|
|
70
|
+
400: `Returns validation error.`,
|
|
71
|
+
404: `Not found error with error details.`,
|
|
72
|
+
500: `Internal Server Error, please contact developers.`,
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Save payment nonce
|
|
78
|
+
* Saves a payment nonce (token) from Authorize.net or Moneris to the session.
|
|
79
|
+
* @param shopperguid Unique identifier for the shopper.
|
|
80
|
+
* @param accountid Unique identifier for the account.
|
|
81
|
+
* @param apikey API key for authentication.
|
|
82
|
+
* @param requestBody Nonce data to save.
|
|
83
|
+
* @returns CheckoutSuccessResponse Returns success response.
|
|
84
|
+
* @throws ApiError
|
|
85
|
+
*/
|
|
86
|
+
public static saveNonce(
|
|
87
|
+
shopperguid: string,
|
|
88
|
+
accountid: string,
|
|
89
|
+
apikey: string,
|
|
90
|
+
requestBody: SaveNonceBody,
|
|
91
|
+
): CancelablePromise<CheckoutSuccessResponse> {
|
|
92
|
+
return __request(OpenAPI, {
|
|
93
|
+
method: 'POST',
|
|
94
|
+
url: '/checkout/nonce',
|
|
95
|
+
headers: {
|
|
96
|
+
'shopperguid': shopperguid,
|
|
97
|
+
'accountid': accountid,
|
|
98
|
+
'apikey': apikey,
|
|
99
|
+
},
|
|
100
|
+
body: requestBody,
|
|
101
|
+
mediaType: 'application/json',
|
|
102
|
+
errors: {
|
|
103
|
+
400: `Bad Request error with error details.`,
|
|
104
|
+
404: `Not found error with error details.`,
|
|
105
|
+
500: `Internal Server Error, please contact developers.`,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Clear payment nonce
|
|
111
|
+
* Clears the payment nonce and related CC fields from the session.
|
|
112
|
+
* @param shopperguid Unique identifier for the shopper.
|
|
113
|
+
* @param accountid Unique identifier for the account.
|
|
114
|
+
* @param apikey API key for authentication.
|
|
115
|
+
* @returns CheckoutSuccessResponse Returns success response.
|
|
116
|
+
* @throws ApiError
|
|
117
|
+
*/
|
|
118
|
+
public static clearNonce(
|
|
119
|
+
shopperguid: string,
|
|
120
|
+
accountid: string,
|
|
121
|
+
apikey: string,
|
|
122
|
+
): CancelablePromise<CheckoutSuccessResponse> {
|
|
123
|
+
return __request(OpenAPI, {
|
|
124
|
+
method: 'DELETE',
|
|
125
|
+
url: '/checkout/nonce',
|
|
126
|
+
headers: {
|
|
127
|
+
'shopperguid': shopperguid,
|
|
128
|
+
'accountid': accountid,
|
|
129
|
+
'apikey': apikey,
|
|
130
|
+
},
|
|
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
|
+
/**
|
|
139
|
+
* Auto-save checkout details
|
|
140
|
+
* Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
|
|
141
|
+
* @param shopperguid Unique identifier for the shopper.
|
|
142
|
+
* @param accountid Unique identifier for the account.
|
|
143
|
+
* @param apikey API key for authentication.
|
|
144
|
+
* @param requestBody Partial checkout data to auto-save.
|
|
145
|
+
* @returns CheckoutSuccessResponse Returns success response.
|
|
146
|
+
* @throws ApiError
|
|
147
|
+
*/
|
|
148
|
+
public static saveDetails(
|
|
149
|
+
shopperguid: string,
|
|
150
|
+
accountid: string,
|
|
151
|
+
apikey: string,
|
|
152
|
+
requestBody: SaveDetailsBody,
|
|
153
|
+
): CancelablePromise<CheckoutSuccessResponse> {
|
|
154
|
+
return __request(OpenAPI, {
|
|
155
|
+
method: 'POST',
|
|
156
|
+
url: '/checkout/details',
|
|
157
|
+
headers: {
|
|
158
|
+
'shopperguid': shopperguid,
|
|
159
|
+
'accountid': accountid,
|
|
160
|
+
'apikey': apikey,
|
|
161
|
+
},
|
|
162
|
+
body: requestBody,
|
|
163
|
+
mediaType: 'application/json',
|
|
164
|
+
errors: {
|
|
165
|
+
400: `Bad Request error with error details.`,
|
|
166
|
+
404: `Not found error with error details.`,
|
|
167
|
+
500: `Internal Server Error, please contact developers.`,
|
|
168
|
+
},
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -9,8 +9,18 @@ export type { AssignNamesReturn } from './models/AssignNamesReturn';
|
|
|
9
9
|
export type { BAHold } from './models/BAHold';
|
|
10
10
|
export type { BlockOfTickets } from './models/BlockOfTickets';
|
|
11
11
|
export type { Cart } from './models/Cart';
|
|
12
|
+
export type { CartCounts } from './models/CartCounts';
|
|
12
13
|
export type { CartWithTime } from './models/CartWithTime';
|
|
13
14
|
export type { Chart } from './models/Chart';
|
|
15
|
+
export type { CheckoutDonation } from './models/CheckoutDonation';
|
|
16
|
+
export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
|
|
17
|
+
export type { CheckoutGiftCard } from './models/CheckoutGiftCard';
|
|
18
|
+
export type { CheckoutPageData } from './models/CheckoutPageData';
|
|
19
|
+
export type { CheckoutProduct } from './models/CheckoutProduct';
|
|
20
|
+
export type { CheckoutQuestion } from './models/CheckoutQuestion';
|
|
21
|
+
export type { CheckoutSessionData } from './models/CheckoutSessionData';
|
|
22
|
+
export type { CheckoutSubmitBody } from './models/CheckoutSubmitBody';
|
|
23
|
+
export type { CheckoutSuccessResponse } from './models/CheckoutSuccessResponse';
|
|
14
24
|
export type { CodeDto } from './models/CodeDto';
|
|
15
25
|
export type { CompleteBody } from './models/CompleteBody';
|
|
16
26
|
export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
|
|
@@ -78,6 +88,8 @@ export type { RefundRequestInfo } from './models/RefundRequestInfo';
|
|
|
78
88
|
export type { RegisterStreamRequest } from './models/RegisterStreamRequest';
|
|
79
89
|
export type { RegisterStreamResponse } from './models/RegisterStreamResponse';
|
|
80
90
|
export type { RootConfigResponse } from './models/RootConfigResponse';
|
|
91
|
+
export type { SaveDetailsBody } from './models/SaveDetailsBody';
|
|
92
|
+
export type { SaveNonceBody } from './models/SaveNonceBody';
|
|
81
93
|
export type { SeatData } from './models/SeatData';
|
|
82
94
|
export type { SeatHoldReturn } from './models/SeatHoldReturn';
|
|
83
95
|
export type { SeatInCart } from './models/SeatInCart';
|
|
@@ -89,6 +101,7 @@ export type { SessionInfoDto } from './models/SessionInfoDto';
|
|
|
89
101
|
export type { SiteDisposition } from './models/SiteDisposition';
|
|
90
102
|
export type { SiteTheme } from './models/SiteTheme';
|
|
91
103
|
export type { StudioOrderSettings } from './models/StudioOrderSettings';
|
|
104
|
+
export type { StudioSettings } from './models/StudioSettings';
|
|
92
105
|
export type { SuccessResponse } from './models/SuccessResponse';
|
|
93
106
|
export type { SuccessWithTime } from './models/SuccessWithTime';
|
|
94
107
|
export type { SummaryBody } from './models/SummaryBody';
|