@drttix/drt-sdk 0.9.7 → 0.9.8
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/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 +39 -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 +39 -0
- package/package.json +1 -1
- package/public/sdk/latest/drt-sdk.js +1 -1
- 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 +52 -0
|
@@ -24,22 +24,14 @@ class SeatService {
|
|
|
24
24
|
/**
|
|
25
25
|
* Hold a reserved seat
|
|
26
26
|
* Holds a reserved seat for the shopper.
|
|
27
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
28
|
-
* @param accountid Unique identifier for the account.
|
|
29
|
-
* @param apikey API key for authentication.
|
|
30
27
|
* @param requestBody Seat data for holding a reserved seat
|
|
31
28
|
* @returns SeatHoldReturn Successfully held the reserved seat.
|
|
32
29
|
* @throws ApiError
|
|
33
30
|
*/
|
|
34
|
-
static holdReservedSeat(
|
|
31
|
+
static holdReservedSeat(requestBody) {
|
|
35
32
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
36
33
|
method: 'POST',
|
|
37
34
|
url: '/seat/hold-reserved',
|
|
38
|
-
headers: {
|
|
39
|
-
'shopperguid': shopperguid,
|
|
40
|
-
'accountid': accountid,
|
|
41
|
-
'apikey': apikey,
|
|
42
|
-
},
|
|
43
35
|
body: requestBody,
|
|
44
36
|
mediaType: 'application/json',
|
|
45
37
|
errors: {
|
|
@@ -52,22 +44,14 @@ class SeatService {
|
|
|
52
44
|
/**
|
|
53
45
|
* Hold a general admission seat
|
|
54
46
|
* Holds a general admission seat for the shopper.
|
|
55
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
56
|
-
* @param accountid Unique identifier for the account.
|
|
57
|
-
* @param apikey API key for authentication.
|
|
58
47
|
* @param requestBody Seat data for holding a general admission seat
|
|
59
48
|
* @returns GAResponse Successfully held the general admission seat.
|
|
60
49
|
* @throws ApiError
|
|
61
50
|
*/
|
|
62
|
-
static holdGaSeat(
|
|
51
|
+
static holdGaSeat(requestBody) {
|
|
63
52
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
64
53
|
method: 'POST',
|
|
65
54
|
url: '/seat/hold-ga',
|
|
66
|
-
headers: {
|
|
67
|
-
'shopperguid': shopperguid,
|
|
68
|
-
'accountid': accountid,
|
|
69
|
-
'apikey': apikey,
|
|
70
|
-
},
|
|
71
55
|
body: requestBody,
|
|
72
56
|
mediaType: 'application/json',
|
|
73
57
|
errors: {
|
|
@@ -80,22 +64,14 @@ class SeatService {
|
|
|
80
64
|
/**
|
|
81
65
|
* Hold a reserved seat for a BA event
|
|
82
66
|
* Holds a reserved seat for a BA event.
|
|
83
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
84
|
-
* @param accountid Unique identifier for the account.
|
|
85
|
-
* @param apikey API key for authentication.
|
|
86
67
|
* @param requestBody Seat data for holding a reserved seat for a BA event
|
|
87
68
|
* @returns SeatHoldReturn Successfully held the reserved seat for a BA event.
|
|
88
69
|
* @throws ApiError
|
|
89
70
|
*/
|
|
90
|
-
static holdBaSeat(
|
|
71
|
+
static holdBaSeat(requestBody) {
|
|
91
72
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
92
73
|
method: 'POST',
|
|
93
74
|
url: '/seat/hold-ba',
|
|
94
|
-
headers: {
|
|
95
|
-
'shopperguid': shopperguid,
|
|
96
|
-
'accountid': accountid,
|
|
97
|
-
'apikey': apikey,
|
|
98
|
-
},
|
|
99
75
|
body: requestBody,
|
|
100
76
|
mediaType: 'application/json',
|
|
101
77
|
errors: {
|
|
@@ -108,22 +84,14 @@ class SeatService {
|
|
|
108
84
|
/**
|
|
109
85
|
* Release a reserved seat
|
|
110
86
|
* Releases a reserved seat for the shopper.
|
|
111
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
112
|
-
* @param accountid Unique identifier for the account.
|
|
113
|
-
* @param apikey API key for authentication.
|
|
114
87
|
* @param requestBody Seat data for releasing a reserved seat
|
|
115
88
|
* @returns any Successfully released the reserved seat.
|
|
116
89
|
* @throws ApiError
|
|
117
90
|
*/
|
|
118
|
-
static releaseReservedSeat(
|
|
91
|
+
static releaseReservedSeat(requestBody) {
|
|
119
92
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
120
93
|
method: 'DELETE',
|
|
121
94
|
url: '/seat/release-reserved',
|
|
122
|
-
headers: {
|
|
123
|
-
'shopperguid': shopperguid,
|
|
124
|
-
'accountid': accountid,
|
|
125
|
-
'apikey': apikey,
|
|
126
|
-
},
|
|
127
95
|
body: requestBody,
|
|
128
96
|
mediaType: 'application/json',
|
|
129
97
|
errors: {
|
|
@@ -136,22 +104,14 @@ class SeatService {
|
|
|
136
104
|
/**
|
|
137
105
|
* Release a general admission seat
|
|
138
106
|
* Releases a general admission seat for the shopper.
|
|
139
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
140
|
-
* @param accountid Unique identifier for the account.
|
|
141
|
-
* @param apikey API key for authentication.
|
|
142
107
|
* @param requestBody Seat data for releasing a general admission seat
|
|
143
108
|
* @returns any
|
|
144
109
|
* @throws ApiError
|
|
145
110
|
*/
|
|
146
|
-
static releaseGaSeat(
|
|
111
|
+
static releaseGaSeat(requestBody) {
|
|
147
112
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
148
113
|
method: 'DELETE',
|
|
149
114
|
url: '/seat/release-ga',
|
|
150
|
-
headers: {
|
|
151
|
-
'shopperguid': shopperguid,
|
|
152
|
-
'accountid': accountid,
|
|
153
|
-
'apikey': apikey,
|
|
154
|
-
},
|
|
155
115
|
body: requestBody,
|
|
156
116
|
mediaType: 'application/json',
|
|
157
117
|
errors: {
|
|
@@ -164,22 +124,14 @@ class SeatService {
|
|
|
164
124
|
/**
|
|
165
125
|
* Update tier information for a seat
|
|
166
126
|
* Updates the tier information for a seat.
|
|
167
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
168
|
-
* @param accountid Unique identifier for the account.
|
|
169
|
-
* @param apikey API key for authentication.
|
|
170
127
|
* @param requestBody Data for updating tier information
|
|
171
128
|
* @returns UpdateTierData Successfully updated the tier information.
|
|
172
129
|
* @throws ApiError
|
|
173
130
|
*/
|
|
174
|
-
static updateTier(
|
|
131
|
+
static updateTier(requestBody) {
|
|
175
132
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
176
133
|
method: 'POST',
|
|
177
134
|
url: '/seat/update-tier',
|
|
178
|
-
headers: {
|
|
179
|
-
'shopperguid': shopperguid,
|
|
180
|
-
'accountid': accountid,
|
|
181
|
-
'apikey': apikey,
|
|
182
|
-
},
|
|
183
135
|
body: requestBody,
|
|
184
136
|
mediaType: 'application/json',
|
|
185
137
|
errors: {
|
|
@@ -14,21 +14,15 @@ export declare class SessionService {
|
|
|
14
14
|
/**
|
|
15
15
|
* Get Session information
|
|
16
16
|
* Retrieves all Sessions available for the specified 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
17
|
* @returns SessionInfoDto Returns session data for the provided shopperguid.
|
|
21
18
|
* @throws ApiError
|
|
22
19
|
*/
|
|
23
|
-
static getSessions(
|
|
20
|
+
static getSessions(): CancelablePromise<SessionInfoDto>;
|
|
24
21
|
/**
|
|
25
22
|
* Get Session Timer Heartbeat
|
|
26
23
|
* Retrieves the heartbeat for the sessions timer in ms.
|
|
27
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
28
|
-
* @param accountid Unique identifier for the account.
|
|
29
|
-
* @param apikey API key for authentication.
|
|
30
24
|
* @returns SessionHeartbeatDto Returns session data for the provided shopperguid.
|
|
31
25
|
* @throws ApiError
|
|
32
26
|
*/
|
|
33
|
-
static getHeartbeat(
|
|
27
|
+
static getHeartbeat(): CancelablePromise<SessionHeartbeatDto>;
|
|
34
28
|
}
|
|
@@ -27,21 +27,13 @@ class SessionService {
|
|
|
27
27
|
/**
|
|
28
28
|
* Get Session information
|
|
29
29
|
* Retrieves all Sessions available for the specified account.
|
|
30
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
31
|
-
* @param accountid Unique identifier for the account.
|
|
32
|
-
* @param apikey API key for authentication.
|
|
33
30
|
* @returns SessionInfoDto Returns session data for the provided shopperguid.
|
|
34
31
|
* @throws ApiError
|
|
35
32
|
*/
|
|
36
|
-
static getSessions(
|
|
33
|
+
static getSessions() {
|
|
37
34
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
38
35
|
method: 'GET',
|
|
39
36
|
url: '/session',
|
|
40
|
-
headers: {
|
|
41
|
-
'shopperguid': shopperguid,
|
|
42
|
-
'accountid': accountid,
|
|
43
|
-
'apikey': apikey,
|
|
44
|
-
},
|
|
45
37
|
errors: {
|
|
46
38
|
400: `Bad Request error with error details.`,
|
|
47
39
|
404: `Not found error with error details.`,
|
|
@@ -52,21 +44,13 @@ class SessionService {
|
|
|
52
44
|
/**
|
|
53
45
|
* Get Session Timer Heartbeat
|
|
54
46
|
* Retrieves the heartbeat for the sessions timer in ms.
|
|
55
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
56
|
-
* @param accountid Unique identifier for the account.
|
|
57
|
-
* @param apikey API key for authentication.
|
|
58
47
|
* @returns SessionHeartbeatDto Returns session data for the provided shopperguid.
|
|
59
48
|
* @throws ApiError
|
|
60
49
|
*/
|
|
61
|
-
static getHeartbeat(
|
|
50
|
+
static getHeartbeat() {
|
|
62
51
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
63
52
|
method: 'GET',
|
|
64
53
|
url: '/session/heartbeat',
|
|
65
|
-
headers: {
|
|
66
|
-
'shopperguid': shopperguid,
|
|
67
|
-
'accountid': accountid,
|
|
68
|
-
'apikey': apikey,
|
|
69
|
-
},
|
|
70
54
|
errors: {
|
|
71
55
|
400: `Bad Request error with error details.`,
|
|
72
56
|
404: `Not found error with error details.`,
|
|
@@ -63,6 +63,45 @@ fs_1.default.writeFileSync(portalRequestPath, customRequestContent);
|
|
|
63
63
|
console.log('✅ Replaced portal/core/request.ts with custom-request.txt');
|
|
64
64
|
fs_1.default.writeFileSync(scannerRequestPath, customRequestContent);
|
|
65
65
|
console.log('✅ Replaced scanner/core/request.ts with custom-request.txt');
|
|
66
|
+
// Strip credential params (shopperguid/accountid/apikey) from all generated service methods.
|
|
67
|
+
// DRT.init() injects these globally via OpenAPI.HEADERS, so callers never need to pass them.
|
|
68
|
+
console.log('⚙️ Stripping credential params from generated services...');
|
|
69
|
+
function walkServices(dir) {
|
|
70
|
+
const results = [];
|
|
71
|
+
for (const entry of fs_1.default.readdirSync(dir, { withFileTypes: true })) {
|
|
72
|
+
const full = path_1.default.join(dir, entry.name);
|
|
73
|
+
if (entry.isDirectory())
|
|
74
|
+
results.push(...walkServices(full));
|
|
75
|
+
else if (entry.isFile() &&
|
|
76
|
+
entry.name.endsWith('.ts') &&
|
|
77
|
+
dir.endsWith('services'))
|
|
78
|
+
results.push(full);
|
|
79
|
+
}
|
|
80
|
+
return results;
|
|
81
|
+
}
|
|
82
|
+
const serviceFiles = walkServices(GENERATED_BASE);
|
|
83
|
+
for (const file of serviceFiles) {
|
|
84
|
+
let src = fs_1.default.readFileSync(file, 'utf-8');
|
|
85
|
+
let patched = src
|
|
86
|
+
// Remove param lines from function signatures
|
|
87
|
+
.replace(/\n\s*shopperguid: string(?:\s*\|\s*undefined)?\s*(?:=\s*undefined)?,/g, '')
|
|
88
|
+
.replace(/\n\s*accountid: string(?:\s*\|\s*undefined)?\s*(?:=\s*undefined)?,/g, '')
|
|
89
|
+
.replace(/\n\s*apikey: string(?:\s*\|\s*undefined)?\s*(?:=\s*undefined)?,/g, '')
|
|
90
|
+
// Remove @param jsdoc lines
|
|
91
|
+
.replace(/\n\s*\* @param shopperguid[^\n]*/g, '')
|
|
92
|
+
.replace(/\n\s*\* @param accountid[^\n]*/g, '')
|
|
93
|
+
.replace(/\n\s*\* @param apikey[^\n]*/g, '')
|
|
94
|
+
// Remove header entries inside __request
|
|
95
|
+
.replace(/\n\s*'shopperguid': shopperguid,/g, '')
|
|
96
|
+
.replace(/\n\s*'accountid': accountid,/g, '')
|
|
97
|
+
.replace(/\n\s*'apikey': apikey,/g, '')
|
|
98
|
+
// Remove empty headers: {} blocks left behind
|
|
99
|
+
.replace(/\n\s*headers: \{\s*\},/g, '');
|
|
100
|
+
if (patched !== src) {
|
|
101
|
+
fs_1.default.writeFileSync(file, patched);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
console.log(`✅ Stripped credentials from ${serviceFiles.length} service files`);
|
|
66
105
|
// --- Generate index.ts
|
|
67
106
|
console.log(`🧩 Generating DRT index...`);
|
|
68
107
|
const lines = [];
|
|
@@ -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
|
}
|
|
@@ -4,21 +4,13 @@ export class AccountService {
|
|
|
4
4
|
/**
|
|
5
5
|
* Get the site theme
|
|
6
6
|
* Retrieves the current theme for the site.
|
|
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 SiteTheme Returns the site theme.
|
|
11
8
|
* @throws ApiError
|
|
12
9
|
*/
|
|
13
|
-
static getTheme(
|
|
10
|
+
static getTheme() {
|
|
14
11
|
return __request(OpenAPI, {
|
|
15
12
|
method: 'GET',
|
|
16
13
|
url: '/theme',
|
|
17
|
-
headers: {
|
|
18
|
-
'shopperguid': shopperguid,
|
|
19
|
-
'accountid': accountid,
|
|
20
|
-
'apikey': apikey,
|
|
21
|
-
},
|
|
22
14
|
errors: {
|
|
23
15
|
400: `Bad Request error with error details.`,
|
|
24
16
|
404: `Not found error with error details.`,
|
|
@@ -29,21 +21,13 @@ export class AccountService {
|
|
|
29
21
|
/**
|
|
30
22
|
* Get the site disposition
|
|
31
23
|
* Retrieves the current disposition for the site.
|
|
32
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
33
|
-
* @param accountid Unique identifier for the account.
|
|
34
|
-
* @param apikey API key for authentication.
|
|
35
24
|
* @returns SiteDisposition Returns the site disposition.
|
|
36
25
|
* @throws ApiError
|
|
37
26
|
*/
|
|
38
|
-
static getDisposition(
|
|
27
|
+
static getDisposition() {
|
|
39
28
|
return __request(OpenAPI, {
|
|
40
29
|
method: 'GET',
|
|
41
30
|
url: '/disposition',
|
|
42
|
-
headers: {
|
|
43
|
-
'shopperguid': shopperguid,
|
|
44
|
-
'accountid': accountid,
|
|
45
|
-
'apikey': apikey,
|
|
46
|
-
},
|
|
47
31
|
errors: {
|
|
48
32
|
400: `Bad Request error with error details.`,
|
|
49
33
|
404: `Not found error with error details.`,
|
|
@@ -54,21 +38,13 @@ export class AccountService {
|
|
|
54
38
|
/**
|
|
55
39
|
* Get the root site configuration
|
|
56
40
|
* Retrieves the root configuration including theme, disposition, and details.
|
|
57
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
58
|
-
* @param accountid Unique identifier for the account.
|
|
59
|
-
* @param apikey API key for authentication.
|
|
60
41
|
* @returns RootConfigResponse Returns the root site configuration.
|
|
61
42
|
* @throws ApiError
|
|
62
43
|
*/
|
|
63
|
-
static getRoot(
|
|
44
|
+
static getRoot() {
|
|
64
45
|
return __request(OpenAPI, {
|
|
65
46
|
method: 'GET',
|
|
66
47
|
url: '/root',
|
|
67
|
-
headers: {
|
|
68
|
-
'shopperguid': shopperguid,
|
|
69
|
-
'accountid': accountid,
|
|
70
|
-
'apikey': apikey,
|
|
71
|
-
},
|
|
72
48
|
errors: {
|
|
73
49
|
400: `Bad Request error with error details.`,
|
|
74
50
|
404: `Not found error with error details.`,
|
|
@@ -79,21 +55,13 @@ export class AccountService {
|
|
|
79
55
|
/**
|
|
80
56
|
* Get the landing page configuration
|
|
81
57
|
* Retrieves the landing page configuration including theme, disposition, and album details.
|
|
82
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
83
|
-
* @param accountid Unique identifier for the account.
|
|
84
|
-
* @param apikey API key for authentication.
|
|
85
58
|
* @returns LandingPageResponse Returns the landing page configuration.
|
|
86
59
|
* @throws ApiError
|
|
87
60
|
*/
|
|
88
|
-
static getLandingPage(
|
|
61
|
+
static getLandingPage() {
|
|
89
62
|
return __request(OpenAPI, {
|
|
90
63
|
method: 'GET',
|
|
91
64
|
url: '/landing',
|
|
92
|
-
headers: {
|
|
93
|
-
'shopperguid': shopperguid,
|
|
94
|
-
'accountid': accountid,
|
|
95
|
-
'apikey': apikey,
|
|
96
|
-
},
|
|
97
65
|
errors: {
|
|
98
66
|
400: `Bad Request error with error details.`,
|
|
99
67
|
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
|
}
|
|
@@ -4,21 +4,13 @@ export 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() {
|
|
14
11
|
return __request(OpenAPI, {
|
|
15
12
|
method: 'GET',
|
|
16
13
|
url: '/cart',
|
|
17
|
-
headers: {
|
|
18
|
-
'shopperguid': shopperguid,
|
|
19
|
-
'accountid': accountid,
|
|
20
|
-
'apikey': apikey,
|
|
21
|
-
},
|
|
22
14
|
errors: {
|
|
23
15
|
400: `Bad Request error with error details.`,
|
|
24
16
|
404: `Not found error with error details.`,
|
|
@@ -29,21 +21,13 @@ export class CartService {
|
|
|
29
21
|
/**
|
|
30
22
|
* Delete Cart
|
|
31
23
|
* Deletes the cart for the specified shopper and account.
|
|
32
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
33
|
-
* @param accountid Unique identifier for the account.
|
|
34
|
-
* @param apikey API key for authentication.
|
|
35
24
|
* @returns any Cart deleted successfully.
|
|
36
25
|
* @throws ApiError
|
|
37
26
|
*/
|
|
38
|
-
static deleteCart(
|
|
27
|
+
static deleteCart() {
|
|
39
28
|
return __request(OpenAPI, {
|
|
40
29
|
method: 'DELETE',
|
|
41
30
|
url: '/cart',
|
|
42
|
-
headers: {
|
|
43
|
-
'shopperguid': shopperguid,
|
|
44
|
-
'accountid': accountid,
|
|
45
|
-
'apikey': apikey,
|
|
46
|
-
},
|
|
47
31
|
errors: {
|
|
48
32
|
400: `Bad Request error with error details.`,
|
|
49
33
|
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
|
}
|
|
@@ -4,21 +4,13 @@ export class CheckoutService {
|
|
|
4
4
|
/**
|
|
5
5
|
* Get checkout page data
|
|
6
6
|
* Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
|
|
7
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
8
|
-
* @param accountid Unique identifier for the account.
|
|
9
|
-
* @param apikey API key for authentication.
|
|
10
7
|
* @returns CheckoutPageData Returns checkout page data.
|
|
11
8
|
* @throws ApiError
|
|
12
9
|
*/
|
|
13
|
-
static getCheckout(
|
|
10
|
+
static getCheckout() {
|
|
14
11
|
return __request(OpenAPI, {
|
|
15
12
|
method: 'GET',
|
|
16
13
|
url: '/checkout',
|
|
17
|
-
headers: {
|
|
18
|
-
'shopperguid': shopperguid,
|
|
19
|
-
'accountid': accountid,
|
|
20
|
-
'apikey': apikey,
|
|
21
|
-
},
|
|
22
14
|
errors: {
|
|
23
15
|
400: `Bad Request error with error details.`,
|
|
24
16
|
404: `Not found error with error details.`,
|
|
@@ -29,22 +21,14 @@ export class CheckoutService {
|
|
|
29
21
|
/**
|
|
30
22
|
* Submit checkout
|
|
31
23
|
* Validates and saves checkout form data. Supports both token (Authorize.net/Moneris) and Stripe payment flows.
|
|
32
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
33
|
-
* @param accountid Unique identifier for the account.
|
|
34
|
-
* @param apikey API key for authentication.
|
|
35
24
|
* @param requestBody Checkout form data.
|
|
36
25
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
37
26
|
* @throws ApiError
|
|
38
27
|
*/
|
|
39
|
-
static submitCheckout(
|
|
28
|
+
static submitCheckout(requestBody) {
|
|
40
29
|
return __request(OpenAPI, {
|
|
41
30
|
method: 'POST',
|
|
42
31
|
url: '/checkout',
|
|
43
|
-
headers: {
|
|
44
|
-
'shopperguid': shopperguid,
|
|
45
|
-
'accountid': accountid,
|
|
46
|
-
'apikey': apikey,
|
|
47
|
-
},
|
|
48
32
|
body: requestBody,
|
|
49
33
|
mediaType: 'application/json',
|
|
50
34
|
errors: {
|
|
@@ -57,22 +41,14 @@ export class CheckoutService {
|
|
|
57
41
|
/**
|
|
58
42
|
* Save payment nonce
|
|
59
43
|
* Saves a payment nonce (token) from Authorize.net or Moneris to the session.
|
|
60
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
61
|
-
* @param accountid Unique identifier for the account.
|
|
62
|
-
* @param apikey API key for authentication.
|
|
63
44
|
* @param requestBody Nonce data to save.
|
|
64
45
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
65
46
|
* @throws ApiError
|
|
66
47
|
*/
|
|
67
|
-
static saveNonce(
|
|
48
|
+
static saveNonce(requestBody) {
|
|
68
49
|
return __request(OpenAPI, {
|
|
69
50
|
method: 'POST',
|
|
70
51
|
url: '/checkout/nonce',
|
|
71
|
-
headers: {
|
|
72
|
-
'shopperguid': shopperguid,
|
|
73
|
-
'accountid': accountid,
|
|
74
|
-
'apikey': apikey,
|
|
75
|
-
},
|
|
76
52
|
body: requestBody,
|
|
77
53
|
mediaType: 'application/json',
|
|
78
54
|
errors: {
|
|
@@ -85,21 +61,13 @@ export class CheckoutService {
|
|
|
85
61
|
/**
|
|
86
62
|
* Clear payment nonce
|
|
87
63
|
* Clears the payment nonce and related CC fields from the session.
|
|
88
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
89
|
-
* @param accountid Unique identifier for the account.
|
|
90
|
-
* @param apikey API key for authentication.
|
|
91
64
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
92
65
|
* @throws ApiError
|
|
93
66
|
*/
|
|
94
|
-
static clearNonce(
|
|
67
|
+
static clearNonce() {
|
|
95
68
|
return __request(OpenAPI, {
|
|
96
69
|
method: 'DELETE',
|
|
97
70
|
url: '/checkout/nonce',
|
|
98
|
-
headers: {
|
|
99
|
-
'shopperguid': shopperguid,
|
|
100
|
-
'accountid': accountid,
|
|
101
|
-
'apikey': apikey,
|
|
102
|
-
},
|
|
103
71
|
errors: {
|
|
104
72
|
400: `Bad Request error with error details.`,
|
|
105
73
|
404: `Not found error with error details.`,
|
|
@@ -110,22 +78,14 @@ export class CheckoutService {
|
|
|
110
78
|
/**
|
|
111
79
|
* Auto-save checkout details
|
|
112
80
|
* Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
|
|
113
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
114
|
-
* @param accountid Unique identifier for the account.
|
|
115
|
-
* @param apikey API key for authentication.
|
|
116
81
|
* @param requestBody Partial checkout data to auto-save.
|
|
117
82
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
118
83
|
* @throws ApiError
|
|
119
84
|
*/
|
|
120
|
-
static saveDetails(
|
|
85
|
+
static saveDetails(requestBody) {
|
|
121
86
|
return __request(OpenAPI, {
|
|
122
87
|
method: 'POST',
|
|
123
88
|
url: '/checkout/details',
|
|
124
|
-
headers: {
|
|
125
|
-
'shopperguid': shopperguid,
|
|
126
|
-
'accountid': accountid,
|
|
127
|
-
'apikey': apikey,
|
|
128
|
-
},
|
|
129
89
|
body: requestBody,
|
|
130
90
|
mediaType: 'application/json',
|
|
131
91
|
errors: {
|