@drttix/drt-sdk 0.9.7 → 0.9.9
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/demo/test.html +1554 -674
- package/dist/bundle/drt-sdk.js +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/src/definitions/portal.d.ts +2 -0
- package/dist/cjs/src/definitions/portal.js +2 -0
- 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/index.js +3 -1
- package/dist/cjs/src/generated/portal/models/SupportTicketResponseDto.d.ts +26 -0
- package/dist/cjs/src/generated/portal/models/SupportTicketResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SupportTicketStatusResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/SupportTicketStatusResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/services/SuperUserSupportTicketsService.d.ts +21 -0
- package/dist/cjs/src/generated/portal/services/SuperUserSupportTicketsService.js +40 -0
- package/dist/cjs/src/generated/portal/types.d.ts +2 -0
- package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +4 -16
- package/dist/cjs/src/generated/shopper/services/AccountService.js +4 -36
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +2 -8
- package/dist/cjs/src/generated/shopper/services/CartService.js +2 -18
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +5 -20
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +5 -45
- package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +5 -20
- package/dist/cjs/src/generated/shopper/services/CodeService.js +5 -45
- package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +2 -8
- package/dist/cjs/src/generated/shopper/services/DonationService.js +2 -16
- package/dist/cjs/src/generated/shopper/services/EventService.d.ts +4 -16
- package/dist/cjs/src/generated/shopper/services/EventService.js +4 -36
- package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +5 -20
- package/dist/cjs/src/generated/shopper/services/GiftCardService.js +5 -45
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +14 -56
- package/dist/cjs/src/generated/shopper/services/OrderService.js +14 -126
- package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +3 -12
- package/dist/cjs/src/generated/shopper/services/PaymentService.js +3 -27
- package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +3 -12
- package/dist/cjs/src/generated/shopper/services/ProductService.js +3 -27
- package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +6 -24
- package/dist/cjs/src/generated/shopper/services/SeatService.js +6 -54
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +2 -8
- package/dist/cjs/src/generated/shopper/services/SessionService.js +2 -18
- package/dist/cjs/src/scripts/build-all.js +46 -2
- package/dist/cjs/src/staging/wrapService.js +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/src/definitions/portal.d.ts +2 -0
- package/dist/esm/src/definitions/portal.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/index.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportTicketResponseDto.d.ts +26 -0
- package/dist/esm/src/generated/portal/models/SupportTicketResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportTicketStatusResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/SupportTicketStatusResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/services/SuperUserSupportTicketsService.d.ts +21 -0
- package/dist/esm/src/generated/portal/services/SuperUserSupportTicketsService.js +36 -0
- package/dist/esm/src/generated/portal/types.d.ts +2 -0
- package/dist/esm/src/generated/shopper/services/AccountService.d.ts +4 -16
- package/dist/esm/src/generated/shopper/services/AccountService.js +4 -36
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +2 -8
- package/dist/esm/src/generated/shopper/services/CartService.js +2 -18
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +5 -20
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +5 -45
- package/dist/esm/src/generated/shopper/services/CodeService.d.ts +5 -20
- package/dist/esm/src/generated/shopper/services/CodeService.js +5 -45
- package/dist/esm/src/generated/shopper/services/DonationService.d.ts +2 -8
- package/dist/esm/src/generated/shopper/services/DonationService.js +2 -16
- package/dist/esm/src/generated/shopper/services/EventService.d.ts +4 -16
- package/dist/esm/src/generated/shopper/services/EventService.js +4 -36
- package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +5 -20
- package/dist/esm/src/generated/shopper/services/GiftCardService.js +5 -45
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +14 -56
- package/dist/esm/src/generated/shopper/services/OrderService.js +14 -126
- package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +3 -12
- package/dist/esm/src/generated/shopper/services/PaymentService.js +3 -27
- package/dist/esm/src/generated/shopper/services/ProductService.d.ts +3 -12
- package/dist/esm/src/generated/shopper/services/ProductService.js +3 -27
- package/dist/esm/src/generated/shopper/services/SeatService.d.ts +6 -24
- package/dist/esm/src/generated/shopper/services/SeatService.js +6 -54
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +2 -8
- package/dist/esm/src/generated/shopper/services/SessionService.js +2 -18
- package/dist/esm/src/scripts/build-all.js +46 -2
- package/dist/esm/src/staging/wrapService.js +1 -1
- package/drt-api-specs-staging.json +14 -0
- package/package.json +38 -38
- package/public/sdk/latest/drt-sdk.js +1 -1
- package/src/definitions/portal.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/SupportTicketResponseDto.ts +31 -0
- package/src/generated/portal/models/SupportTicketStatusResponseDto.ts +9 -0
- package/src/generated/portal/services/SuperUserSupportTicketsService.ts +46 -0
- package/src/generated/portal/types.ts +2 -0
- package/src/generated/shopper/services/AccountService.ts +0 -44
- package/src/generated/shopper/services/CartService.ts +0 -22
- package/src/generated/shopper/services/CheckoutService.ts +0 -55
- package/src/generated/shopper/services/CodeService.ts +0 -55
- package/src/generated/shopper/services/DonationService.ts +0 -20
- package/src/generated/shopper/services/EventService.ts +0 -44
- package/src/generated/shopper/services/GiftCardService.ts +0 -55
- package/src/generated/shopper/services/OrderService.ts +0 -154
- package/src/generated/shopper/services/PaymentService.ts +0 -33
- package/src/generated/shopper/services/ProductService.ts +0 -33
- package/src/generated/shopper/services/SeatService.ts +0 -66
- package/src/generated/shopper/services/SessionService.ts +0 -22
- package/src/scripts/build-all.ts +59 -2
- package/src/staging/wrapService.ts +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type SupportTicketResponseDto = {
|
|
2
|
+
id: number;
|
|
3
|
+
guid: string;
|
|
4
|
+
adminUserId: number;
|
|
5
|
+
statusId: number;
|
|
6
|
+
typeId: number;
|
|
7
|
+
leadId: number;
|
|
8
|
+
orderId: number;
|
|
9
|
+
reasonId: number;
|
|
10
|
+
reasonOther: string;
|
|
11
|
+
pocId: number;
|
|
12
|
+
name: string;
|
|
13
|
+
email: string;
|
|
14
|
+
phone: string;
|
|
15
|
+
description: string;
|
|
16
|
+
isFromVm: number;
|
|
17
|
+
vmPhoneNumber: string;
|
|
18
|
+
voicemailId: number;
|
|
19
|
+
dateCreated: string;
|
|
20
|
+
lastShowStart: string;
|
|
21
|
+
statusName: string;
|
|
22
|
+
reasonName: string;
|
|
23
|
+
numNotes: number;
|
|
24
|
+
adminUserName: string;
|
|
25
|
+
hashValue: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SupportTicketResponseDto } from '../models/SupportTicketResponseDto';
|
|
2
|
+
import type { SupportTicketStatusResponseDto } from '../models/SupportTicketStatusResponseDto';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
export declare class SuperUserSupportTicketsService {
|
|
5
|
+
/**
|
|
6
|
+
* Fetch the list of support tickets for a studio
|
|
7
|
+
* Fetch the list of support tickets for a studio
|
|
8
|
+
* @param xStudioId The ID of the studio
|
|
9
|
+
* @param statusId The ID of the support ticket status
|
|
10
|
+
* @returns SupportTicketResponseDto Support ticket statuses fetched successfully
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
static getSupportTickets(xStudioId: string, statusId: string): CancelablePromise<Array<SupportTicketResponseDto>>;
|
|
14
|
+
/**
|
|
15
|
+
* Fetch the list of support ticket status for a studio
|
|
16
|
+
* Fetch the list of support ticket status for a studio
|
|
17
|
+
* @returns SupportTicketStatusResponseDto Support ticket status fetched successfully
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static getSupportTicketStatus(): CancelablePromise<Array<SupportTicketStatusResponseDto>>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SuperUserSupportTicketsService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class SuperUserSupportTicketsService {
|
|
7
|
+
/**
|
|
8
|
+
* Fetch the list of support tickets for a studio
|
|
9
|
+
* Fetch the list of support tickets for a studio
|
|
10
|
+
* @param xStudioId The ID of the studio
|
|
11
|
+
* @param statusId The ID of the support ticket status
|
|
12
|
+
* @returns SupportTicketResponseDto Support ticket statuses fetched successfully
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
static getSupportTickets(xStudioId, statusId) {
|
|
16
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
17
|
+
method: 'GET',
|
|
18
|
+
url: '/superuser/support-tickets',
|
|
19
|
+
headers: {
|
|
20
|
+
'x-studio-id': xStudioId,
|
|
21
|
+
},
|
|
22
|
+
query: {
|
|
23
|
+
'statusId': statusId,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Fetch the list of support ticket status for a studio
|
|
29
|
+
* Fetch the list of support ticket status for a studio
|
|
30
|
+
* @returns SupportTicketStatusResponseDto Support ticket status fetched successfully
|
|
31
|
+
* @throws ApiError
|
|
32
|
+
*/
|
|
33
|
+
static getSupportTicketStatus() {
|
|
34
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
35
|
+
method: 'GET',
|
|
36
|
+
url: '/superuser/support-tickets/status',
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.SuperUserSupportTicketsService = SuperUserSupportTicketsService;
|
|
@@ -271,6 +271,8 @@ export type { StudentCreditOrdersResponseDto } from './models/StudentCreditOrder
|
|
|
271
271
|
export type { StudentCreditResponseDto } from './models/StudentCreditResponseDto';
|
|
272
272
|
export type { StudioIntegratorDetailResponseDto } from './models/StudioIntegratorDetailResponseDto';
|
|
273
273
|
export type { SuccessResponse } from './models/SuccessResponse';
|
|
274
|
+
export type { SupportTicketResponseDto } from './models/SupportTicketResponseDto';
|
|
275
|
+
export type { SupportTicketStatusResponseDto } from './models/SupportTicketStatusResponseDto';
|
|
274
276
|
export type { TaxAndBankDetailsResponseDto } from './models/TaxAndBankDetailsResponseDto';
|
|
275
277
|
export type { TaxByMonthRequestDto } from './models/TaxByMonthRequestDto';
|
|
276
278
|
export type { TaxByMonthResponseDto } from './models/TaxByMonthResponseDto';
|
|
@@ -7,41 +7,29 @@ export declare class AccountService {
|
|
|
7
7
|
/**
|
|
8
8
|
* Get the site theme
|
|
9
9
|
* Retrieves the current theme for the site.
|
|
10
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
11
|
-
* @param accountid Unique identifier for the account.
|
|
12
|
-
* @param apikey API key for authentication.
|
|
13
10
|
* @returns SiteTheme Returns the site theme.
|
|
14
11
|
* @throws ApiError
|
|
15
12
|
*/
|
|
16
|
-
static getTheme(
|
|
13
|
+
static getTheme(): CancelablePromise<SiteTheme>;
|
|
17
14
|
/**
|
|
18
15
|
* Get the site disposition
|
|
19
16
|
* Retrieves the current disposition for the site.
|
|
20
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
21
|
-
* @param accountid Unique identifier for the account.
|
|
22
|
-
* @param apikey API key for authentication.
|
|
23
17
|
* @returns SiteDisposition Returns the site disposition.
|
|
24
18
|
* @throws ApiError
|
|
25
19
|
*/
|
|
26
|
-
static getDisposition(
|
|
20
|
+
static getDisposition(): CancelablePromise<SiteDisposition>;
|
|
27
21
|
/**
|
|
28
22
|
* Get the root site configuration
|
|
29
23
|
* Retrieves the root configuration including theme, disposition, and details.
|
|
30
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
31
|
-
* @param accountid Unique identifier for the account.
|
|
32
|
-
* @param apikey API key for authentication.
|
|
33
24
|
* @returns RootConfigResponse Returns the root site configuration.
|
|
34
25
|
* @throws ApiError
|
|
35
26
|
*/
|
|
36
|
-
static getRoot(
|
|
27
|
+
static getRoot(): CancelablePromise<RootConfigResponse>;
|
|
37
28
|
/**
|
|
38
29
|
* Get the landing page configuration
|
|
39
30
|
* Retrieves the landing page configuration including theme, disposition, and album details.
|
|
40
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
41
|
-
* @param accountid Unique identifier for the account.
|
|
42
|
-
* @param apikey API key for authentication.
|
|
43
31
|
* @returns LandingPageResponse Returns the landing page configuration.
|
|
44
32
|
* @throws ApiError
|
|
45
33
|
*/
|
|
46
|
-
static getLandingPage(
|
|
34
|
+
static getLandingPage(): CancelablePromise<LandingPageResponse>;
|
|
47
35
|
}
|
|
@@ -7,21 +7,13 @@ class AccountService {
|
|
|
7
7
|
/**
|
|
8
8
|
* Get the site theme
|
|
9
9
|
* Retrieves the current theme for the site.
|
|
10
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
11
|
-
* @param accountid Unique identifier for the account.
|
|
12
|
-
* @param apikey API key for authentication.
|
|
13
10
|
* @returns SiteTheme Returns the site theme.
|
|
14
11
|
* @throws ApiError
|
|
15
12
|
*/
|
|
16
|
-
static getTheme(
|
|
13
|
+
static getTheme() {
|
|
17
14
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
18
15
|
method: 'GET',
|
|
19
16
|
url: '/theme',
|
|
20
|
-
headers: {
|
|
21
|
-
'shopperguid': shopperguid,
|
|
22
|
-
'accountid': accountid,
|
|
23
|
-
'apikey': apikey,
|
|
24
|
-
},
|
|
25
17
|
errors: {
|
|
26
18
|
400: `Bad Request error with error details.`,
|
|
27
19
|
404: `Not found error with error details.`,
|
|
@@ -32,21 +24,13 @@ class AccountService {
|
|
|
32
24
|
/**
|
|
33
25
|
* Get the site disposition
|
|
34
26
|
* Retrieves the current disposition for the site.
|
|
35
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
36
|
-
* @param accountid Unique identifier for the account.
|
|
37
|
-
* @param apikey API key for authentication.
|
|
38
27
|
* @returns SiteDisposition Returns the site disposition.
|
|
39
28
|
* @throws ApiError
|
|
40
29
|
*/
|
|
41
|
-
static getDisposition(
|
|
30
|
+
static getDisposition() {
|
|
42
31
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
43
32
|
method: 'GET',
|
|
44
33
|
url: '/disposition',
|
|
45
|
-
headers: {
|
|
46
|
-
'shopperguid': shopperguid,
|
|
47
|
-
'accountid': accountid,
|
|
48
|
-
'apikey': apikey,
|
|
49
|
-
},
|
|
50
34
|
errors: {
|
|
51
35
|
400: `Bad Request error with error details.`,
|
|
52
36
|
404: `Not found error with error details.`,
|
|
@@ -57,21 +41,13 @@ class AccountService {
|
|
|
57
41
|
/**
|
|
58
42
|
* Get the root site configuration
|
|
59
43
|
* Retrieves the root configuration including theme, disposition, and details.
|
|
60
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
61
|
-
* @param accountid Unique identifier for the account.
|
|
62
|
-
* @param apikey API key for authentication.
|
|
63
44
|
* @returns RootConfigResponse Returns the root site configuration.
|
|
64
45
|
* @throws ApiError
|
|
65
46
|
*/
|
|
66
|
-
static getRoot(
|
|
47
|
+
static getRoot() {
|
|
67
48
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
68
49
|
method: 'GET',
|
|
69
50
|
url: '/root',
|
|
70
|
-
headers: {
|
|
71
|
-
'shopperguid': shopperguid,
|
|
72
|
-
'accountid': accountid,
|
|
73
|
-
'apikey': apikey,
|
|
74
|
-
},
|
|
75
51
|
errors: {
|
|
76
52
|
400: `Bad Request error with error details.`,
|
|
77
53
|
404: `Not found error with error details.`,
|
|
@@ -82,21 +58,13 @@ class AccountService {
|
|
|
82
58
|
/**
|
|
83
59
|
* Get the landing page configuration
|
|
84
60
|
* Retrieves the landing page configuration including theme, disposition, and album details.
|
|
85
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
86
|
-
* @param accountid Unique identifier for the account.
|
|
87
|
-
* @param apikey API key for authentication.
|
|
88
61
|
* @returns LandingPageResponse Returns the landing page configuration.
|
|
89
62
|
* @throws ApiError
|
|
90
63
|
*/
|
|
91
|
-
static getLandingPage(
|
|
64
|
+
static getLandingPage() {
|
|
92
65
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
93
66
|
method: 'GET',
|
|
94
67
|
url: '/landing',
|
|
95
|
-
headers: {
|
|
96
|
-
'shopperguid': shopperguid,
|
|
97
|
-
'accountid': accountid,
|
|
98
|
-
'apikey': apikey,
|
|
99
|
-
},
|
|
100
68
|
errors: {
|
|
101
69
|
400: `Bad Request error with error details.`,
|
|
102
70
|
404: `Not found error with error details.`,
|
|
@@ -4,21 +4,15 @@ export declare class CartService {
|
|
|
4
4
|
/**
|
|
5
5
|
* Get Cart
|
|
6
6
|
* Retrieves the cart along with its associated time.
|
|
7
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
8
|
-
* @param accountid Unique identifier for the account.
|
|
9
|
-
* @param apikey API key for authentication.
|
|
10
7
|
* @returns CartWithTime Cart retrieved successfully with time.
|
|
11
8
|
* @throws ApiError
|
|
12
9
|
*/
|
|
13
|
-
static getCart(
|
|
10
|
+
static getCart(): CancelablePromise<CartWithTime>;
|
|
14
11
|
/**
|
|
15
12
|
* Delete Cart
|
|
16
13
|
* Deletes the cart for the specified shopper and account.
|
|
17
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
18
|
-
* @param accountid Unique identifier for the account.
|
|
19
|
-
* @param apikey API key for authentication.
|
|
20
14
|
* @returns any Cart deleted successfully.
|
|
21
15
|
* @throws ApiError
|
|
22
16
|
*/
|
|
23
|
-
static deleteCart(
|
|
17
|
+
static deleteCart(): CancelablePromise<any>;
|
|
24
18
|
}
|
|
@@ -7,21 +7,13 @@ class CartService {
|
|
|
7
7
|
/**
|
|
8
8
|
* Get Cart
|
|
9
9
|
* Retrieves the cart along with its associated time.
|
|
10
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
11
|
-
* @param accountid Unique identifier for the account.
|
|
12
|
-
* @param apikey API key for authentication.
|
|
13
10
|
* @returns CartWithTime Cart retrieved successfully with time.
|
|
14
11
|
* @throws ApiError
|
|
15
12
|
*/
|
|
16
|
-
static getCart(
|
|
13
|
+
static getCart() {
|
|
17
14
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
18
15
|
method: 'GET',
|
|
19
16
|
url: '/cart',
|
|
20
|
-
headers: {
|
|
21
|
-
'shopperguid': shopperguid,
|
|
22
|
-
'accountid': accountid,
|
|
23
|
-
'apikey': apikey,
|
|
24
|
-
},
|
|
25
17
|
errors: {
|
|
26
18
|
400: `Bad Request error with error details.`,
|
|
27
19
|
404: `Not found error with error details.`,
|
|
@@ -32,21 +24,13 @@ class CartService {
|
|
|
32
24
|
/**
|
|
33
25
|
* Delete Cart
|
|
34
26
|
* Deletes the cart for the specified shopper and account.
|
|
35
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
36
|
-
* @param accountid Unique identifier for the account.
|
|
37
|
-
* @param apikey API key for authentication.
|
|
38
27
|
* @returns any Cart deleted successfully.
|
|
39
28
|
* @throws ApiError
|
|
40
29
|
*/
|
|
41
|
-
static deleteCart(
|
|
30
|
+
static deleteCart() {
|
|
42
31
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
43
32
|
method: 'DELETE',
|
|
44
33
|
url: '/cart',
|
|
45
|
-
headers: {
|
|
46
|
-
'shopperguid': shopperguid,
|
|
47
|
-
'accountid': accountid,
|
|
48
|
-
'apikey': apikey,
|
|
49
|
-
},
|
|
50
34
|
errors: {
|
|
51
35
|
400: `Bad Request error with error details.`,
|
|
52
36
|
404: `Not found error with error details.`,
|
|
@@ -8,54 +8,39 @@ export declare class CheckoutService {
|
|
|
8
8
|
/**
|
|
9
9
|
* Get checkout page data
|
|
10
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
11
|
* @returns CheckoutPageData Returns checkout page data.
|
|
15
12
|
* @throws ApiError
|
|
16
13
|
*/
|
|
17
|
-
static getCheckout(
|
|
14
|
+
static getCheckout(): CancelablePromise<CheckoutPageData>;
|
|
18
15
|
/**
|
|
19
16
|
* Submit checkout
|
|
20
17
|
* 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
18
|
* @param requestBody Checkout form data.
|
|
25
19
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
26
20
|
* @throws ApiError
|
|
27
21
|
*/
|
|
28
|
-
static submitCheckout(
|
|
22
|
+
static submitCheckout(requestBody: CheckoutSubmitBody): CancelablePromise<CheckoutSuccessResponse>;
|
|
29
23
|
/**
|
|
30
24
|
* Save payment nonce
|
|
31
25
|
* 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
26
|
* @param requestBody Nonce data to save.
|
|
36
27
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
37
28
|
* @throws ApiError
|
|
38
29
|
*/
|
|
39
|
-
static saveNonce(
|
|
30
|
+
static saveNonce(requestBody: SaveNonceBody): CancelablePromise<CheckoutSuccessResponse>;
|
|
40
31
|
/**
|
|
41
32
|
* Clear payment nonce
|
|
42
33
|
* 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
34
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
47
35
|
* @throws ApiError
|
|
48
36
|
*/
|
|
49
|
-
static clearNonce(
|
|
37
|
+
static clearNonce(): CancelablePromise<CheckoutSuccessResponse>;
|
|
50
38
|
/**
|
|
51
39
|
* Auto-save checkout details
|
|
52
40
|
* 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
41
|
* @param requestBody Partial checkout data to auto-save.
|
|
57
42
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
58
43
|
* @throws ApiError
|
|
59
44
|
*/
|
|
60
|
-
static saveDetails(
|
|
45
|
+
static saveDetails(requestBody: SaveDetailsBody): CancelablePromise<CheckoutSuccessResponse>;
|
|
61
46
|
}
|
|
@@ -7,21 +7,13 @@ class CheckoutService {
|
|
|
7
7
|
/**
|
|
8
8
|
* Get checkout page data
|
|
9
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
10
|
* @returns CheckoutPageData Returns checkout page data.
|
|
14
11
|
* @throws ApiError
|
|
15
12
|
*/
|
|
16
|
-
static getCheckout(
|
|
13
|
+
static getCheckout() {
|
|
17
14
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
18
15
|
method: 'GET',
|
|
19
16
|
url: '/checkout',
|
|
20
|
-
headers: {
|
|
21
|
-
'shopperguid': shopperguid,
|
|
22
|
-
'accountid': accountid,
|
|
23
|
-
'apikey': apikey,
|
|
24
|
-
},
|
|
25
17
|
errors: {
|
|
26
18
|
400: `Bad Request error with error details.`,
|
|
27
19
|
404: `Not found error with error details.`,
|
|
@@ -32,22 +24,14 @@ class CheckoutService {
|
|
|
32
24
|
/**
|
|
33
25
|
* Submit checkout
|
|
34
26
|
* 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
27
|
* @param requestBody Checkout form data.
|
|
39
28
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
40
29
|
* @throws ApiError
|
|
41
30
|
*/
|
|
42
|
-
static submitCheckout(
|
|
31
|
+
static submitCheckout(requestBody) {
|
|
43
32
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
44
33
|
method: 'POST',
|
|
45
34
|
url: '/checkout',
|
|
46
|
-
headers: {
|
|
47
|
-
'shopperguid': shopperguid,
|
|
48
|
-
'accountid': accountid,
|
|
49
|
-
'apikey': apikey,
|
|
50
|
-
},
|
|
51
35
|
body: requestBody,
|
|
52
36
|
mediaType: 'application/json',
|
|
53
37
|
errors: {
|
|
@@ -60,22 +44,14 @@ class CheckoutService {
|
|
|
60
44
|
/**
|
|
61
45
|
* Save payment nonce
|
|
62
46
|
* 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
47
|
* @param requestBody Nonce data to save.
|
|
67
48
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
68
49
|
* @throws ApiError
|
|
69
50
|
*/
|
|
70
|
-
static saveNonce(
|
|
51
|
+
static saveNonce(requestBody) {
|
|
71
52
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
72
53
|
method: 'POST',
|
|
73
54
|
url: '/checkout/nonce',
|
|
74
|
-
headers: {
|
|
75
|
-
'shopperguid': shopperguid,
|
|
76
|
-
'accountid': accountid,
|
|
77
|
-
'apikey': apikey,
|
|
78
|
-
},
|
|
79
55
|
body: requestBody,
|
|
80
56
|
mediaType: 'application/json',
|
|
81
57
|
errors: {
|
|
@@ -88,21 +64,13 @@ class CheckoutService {
|
|
|
88
64
|
/**
|
|
89
65
|
* Clear payment nonce
|
|
90
66
|
* 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
67
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
95
68
|
* @throws ApiError
|
|
96
69
|
*/
|
|
97
|
-
static clearNonce(
|
|
70
|
+
static clearNonce() {
|
|
98
71
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
99
72
|
method: 'DELETE',
|
|
100
73
|
url: '/checkout/nonce',
|
|
101
|
-
headers: {
|
|
102
|
-
'shopperguid': shopperguid,
|
|
103
|
-
'accountid': accountid,
|
|
104
|
-
'apikey': apikey,
|
|
105
|
-
},
|
|
106
74
|
errors: {
|
|
107
75
|
400: `Bad Request error with error details.`,
|
|
108
76
|
404: `Not found error with error details.`,
|
|
@@ -113,22 +81,14 @@ class CheckoutService {
|
|
|
113
81
|
/**
|
|
114
82
|
* Auto-save checkout details
|
|
115
83
|
* 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
84
|
* @param requestBody Partial checkout data to auto-save.
|
|
120
85
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
121
86
|
* @throws ApiError
|
|
122
87
|
*/
|
|
123
|
-
static saveDetails(
|
|
88
|
+
static saveDetails(requestBody) {
|
|
124
89
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
125
90
|
method: 'POST',
|
|
126
91
|
url: '/checkout/details',
|
|
127
|
-
headers: {
|
|
128
|
-
'shopperguid': shopperguid,
|
|
129
|
-
'accountid': accountid,
|
|
130
|
-
'apikey': apikey,
|
|
131
|
-
},
|
|
132
92
|
body: requestBody,
|
|
133
93
|
mediaType: 'application/json',
|
|
134
94
|
errors: {
|
|
@@ -9,55 +9,40 @@ export declare class CodeService {
|
|
|
9
9
|
* Request access to an event
|
|
10
10
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
11
11
|
* @param eventId ID of the event for which access is requested
|
|
12
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
13
|
-
* @param accountid Unique identifier for the account.
|
|
14
|
-
* @param apikey API key for authentication.
|
|
15
12
|
* @returns HasAccessResponse Access request submitted successfully.
|
|
16
13
|
* @throws ApiError
|
|
17
14
|
*/
|
|
18
|
-
static requestEventAccess(eventId: number
|
|
15
|
+
static requestEventAccess(eventId: number): CancelablePromise<HasAccessResponse>;
|
|
19
16
|
/**
|
|
20
17
|
* Apply a code to the current shopper session
|
|
21
18
|
* Applies a code to the current shopper session.
|
|
22
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
23
|
-
* @param accountid Unique identifier for the account.
|
|
24
|
-
* @param apikey API key for authentication.
|
|
25
19
|
* @param requestBody Code to be applied
|
|
26
20
|
* @returns SuccessWithTime Code applied successfully.
|
|
27
21
|
* @throws ApiError
|
|
28
22
|
*/
|
|
29
|
-
static applyCode(
|
|
23
|
+
static applyCode(requestBody: CodeDto): CancelablePromise<SuccessWithTime>;
|
|
30
24
|
/**
|
|
31
25
|
* Apply a coupon to the current shopper session
|
|
32
26
|
* Applies a coupon to the current shopper session.
|
|
33
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
34
|
-
* @param accountid Unique identifier for the account.
|
|
35
|
-
* @param apikey API key for authentication.
|
|
36
27
|
* @param requestBody Coupon code to be applied
|
|
37
28
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
38
29
|
* @throws ApiError
|
|
39
30
|
*/
|
|
40
|
-
static applyCoupon(
|
|
31
|
+
static applyCoupon(requestBody: CodeDto): CancelablePromise<UniversalCodeResponse>;
|
|
41
32
|
/**
|
|
42
33
|
* Remove a coupon from the current shopper session
|
|
43
34
|
* Removes a coupon from the current shopper session.
|
|
44
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
45
|
-
* @param accountid Unique identifier for the account.
|
|
46
|
-
* @param apikey API key for authentication.
|
|
47
35
|
* @param requestBody Coupon code to be removed
|
|
48
36
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
49
37
|
* @throws ApiError
|
|
50
38
|
*/
|
|
51
|
-
static removeCoupon(
|
|
39
|
+
static removeCoupon(requestBody: CodeDto): CancelablePromise<UniversalCodeResponse>;
|
|
52
40
|
/**
|
|
53
41
|
* Apply Priority Code
|
|
54
42
|
* Applies a priority code to the cart.
|
|
55
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
56
|
-
* @param accountid Unique identifier for the account.
|
|
57
|
-
* @param apikey API key for authentication.
|
|
58
43
|
* @param requestBody Priority code data to be applied
|
|
59
44
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
60
45
|
* @throws ApiError
|
|
61
46
|
*/
|
|
62
|
-
static applyPriorityCode(
|
|
47
|
+
static applyPriorityCode(requestBody: PriorityCode): CancelablePromise<SuccessWithTime>;
|
|
63
48
|
}
|