@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
|
@@ -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
|
}
|
|
@@ -8,21 +8,13 @@ class CodeService {
|
|
|
8
8
|
* Request access to an event
|
|
9
9
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
10
10
|
* @param eventId ID of the event for which access is requested
|
|
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 HasAccessResponse Access request submitted successfully.
|
|
15
12
|
* @throws ApiError
|
|
16
13
|
*/
|
|
17
|
-
static requestEventAccess(eventId
|
|
14
|
+
static requestEventAccess(eventId) {
|
|
18
15
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
19
16
|
method: 'GET',
|
|
20
17
|
url: '/code/access',
|
|
21
|
-
headers: {
|
|
22
|
-
'shopperguid': shopperguid,
|
|
23
|
-
'accountid': accountid,
|
|
24
|
-
'apikey': apikey,
|
|
25
|
-
},
|
|
26
18
|
query: {
|
|
27
19
|
'eventId': eventId,
|
|
28
20
|
},
|
|
@@ -36,22 +28,14 @@ class CodeService {
|
|
|
36
28
|
/**
|
|
37
29
|
* Apply a code to the current shopper session
|
|
38
30
|
* Applies a code to the current shopper session.
|
|
39
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
40
|
-
* @param accountid Unique identifier for the account.
|
|
41
|
-
* @param apikey API key for authentication.
|
|
42
31
|
* @param requestBody Code to be applied
|
|
43
32
|
* @returns SuccessWithTime Code applied successfully.
|
|
44
33
|
* @throws ApiError
|
|
45
34
|
*/
|
|
46
|
-
static applyCode(
|
|
35
|
+
static applyCode(requestBody) {
|
|
47
36
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
48
37
|
method: 'POST',
|
|
49
38
|
url: '/code',
|
|
50
|
-
headers: {
|
|
51
|
-
'shopperguid': shopperguid,
|
|
52
|
-
'accountid': accountid,
|
|
53
|
-
'apikey': apikey,
|
|
54
|
-
},
|
|
55
39
|
body: requestBody,
|
|
56
40
|
mediaType: 'application/json',
|
|
57
41
|
errors: {
|
|
@@ -64,22 +48,14 @@ class CodeService {
|
|
|
64
48
|
/**
|
|
65
49
|
* Apply a coupon to the current shopper session
|
|
66
50
|
* Applies a coupon to the current shopper session.
|
|
67
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
68
|
-
* @param accountid Unique identifier for the account.
|
|
69
|
-
* @param apikey API key for authentication.
|
|
70
51
|
* @param requestBody Coupon code to be applied
|
|
71
52
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
72
53
|
* @throws ApiError
|
|
73
54
|
*/
|
|
74
|
-
static applyCoupon(
|
|
55
|
+
static applyCoupon(requestBody) {
|
|
75
56
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
76
57
|
method: 'POST',
|
|
77
58
|
url: '/code/discount',
|
|
78
|
-
headers: {
|
|
79
|
-
'shopperguid': shopperguid,
|
|
80
|
-
'accountid': accountid,
|
|
81
|
-
'apikey': apikey,
|
|
82
|
-
},
|
|
83
59
|
body: requestBody,
|
|
84
60
|
mediaType: 'application/json',
|
|
85
61
|
errors: {
|
|
@@ -92,22 +68,14 @@ class CodeService {
|
|
|
92
68
|
/**
|
|
93
69
|
* Remove a coupon from the current shopper session
|
|
94
70
|
* Removes a coupon from the current shopper session.
|
|
95
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
96
|
-
* @param accountid Unique identifier for the account.
|
|
97
|
-
* @param apikey API key for authentication.
|
|
98
71
|
* @param requestBody Coupon code to be removed
|
|
99
72
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
100
73
|
* @throws ApiError
|
|
101
74
|
*/
|
|
102
|
-
static removeCoupon(
|
|
75
|
+
static removeCoupon(requestBody) {
|
|
103
76
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
104
77
|
method: 'DELETE',
|
|
105
78
|
url: '/code/discount',
|
|
106
|
-
headers: {
|
|
107
|
-
'shopperguid': shopperguid,
|
|
108
|
-
'accountid': accountid,
|
|
109
|
-
'apikey': apikey,
|
|
110
|
-
},
|
|
111
79
|
body: requestBody,
|
|
112
80
|
mediaType: 'application/json',
|
|
113
81
|
errors: {
|
|
@@ -120,22 +88,14 @@ class CodeService {
|
|
|
120
88
|
/**
|
|
121
89
|
* Apply Priority Code
|
|
122
90
|
* Applies a priority code to the cart.
|
|
123
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
124
|
-
* @param accountid Unique identifier for the account.
|
|
125
|
-
* @param apikey API key for authentication.
|
|
126
91
|
* @param requestBody Priority code data to be applied
|
|
127
92
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
128
93
|
* @throws ApiError
|
|
129
94
|
*/
|
|
130
|
-
static applyPriorityCode(
|
|
95
|
+
static applyPriorityCode(requestBody) {
|
|
131
96
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
132
97
|
method: 'POST',
|
|
133
98
|
url: '/code/priority',
|
|
134
|
-
headers: {
|
|
135
|
-
'shopperguid': shopperguid,
|
|
136
|
-
'accountid': accountid,
|
|
137
|
-
'apikey': apikey,
|
|
138
|
-
},
|
|
139
99
|
body: requestBody,
|
|
140
100
|
mediaType: 'application/json',
|
|
141
101
|
errors: {
|
|
@@ -6,23 +6,17 @@ export declare class DonationService {
|
|
|
6
6
|
/**
|
|
7
7
|
* Get all donations for a shopper
|
|
8
8
|
* Retrieves all donations and contributions associated with the specified shopper and account.
|
|
9
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
10
|
-
* @param accountid Unique identifier for the account.
|
|
11
|
-
* @param apikey API key for authentication.
|
|
12
9
|
* @returns DonationsandContributions Returns a list of donations and contributions for the shopper.
|
|
13
10
|
* @throws ApiError
|
|
14
11
|
*/
|
|
15
|
-
static getDonations(
|
|
12
|
+
static getDonations(): CancelablePromise<DonationsandContributions>;
|
|
16
13
|
/**
|
|
17
14
|
* Add a donation or contribution
|
|
18
15
|
* Adds a new donation or contribution for the specified shopper and account.
|
|
19
16
|
* @param ipAddress API key for authentication.
|
|
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
|
* @param requestBody Donation or contribution details to add.
|
|
24
18
|
* @returns DonationResult Returns the result of the donation addition.
|
|
25
19
|
* @throws ApiError
|
|
26
20
|
*/
|
|
27
|
-
static postDonation(ipAddress: string,
|
|
21
|
+
static postDonation(ipAddress: string, requestBody: DonationContribution): CancelablePromise<DonationResult>;
|
|
28
22
|
}
|
|
@@ -7,21 +7,13 @@ class DonationService {
|
|
|
7
7
|
/**
|
|
8
8
|
* Get all donations for a shopper
|
|
9
9
|
* Retrieves all donations and contributions associated with the specified shopper and account.
|
|
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 DonationsandContributions Returns a list of donations and contributions for the shopper.
|
|
14
11
|
* @throws ApiError
|
|
15
12
|
*/
|
|
16
|
-
static getDonations(
|
|
13
|
+
static getDonations() {
|
|
17
14
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
18
15
|
method: 'GET',
|
|
19
16
|
url: '/donation',
|
|
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.`,
|
|
@@ -33,22 +25,16 @@ class DonationService {
|
|
|
33
25
|
* Add a donation or contribution
|
|
34
26
|
* Adds a new donation or contribution for the specified shopper and account.
|
|
35
27
|
* @param ipAddress API key for authentication.
|
|
36
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
37
|
-
* @param accountid Unique identifier for the account.
|
|
38
|
-
* @param apikey API key for authentication.
|
|
39
28
|
* @param requestBody Donation or contribution details to add.
|
|
40
29
|
* @returns DonationResult Returns the result of the donation addition.
|
|
41
30
|
* @throws ApiError
|
|
42
31
|
*/
|
|
43
|
-
static postDonation(ipAddress,
|
|
32
|
+
static postDonation(ipAddress, requestBody) {
|
|
44
33
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
45
34
|
method: 'POST',
|
|
46
35
|
url: '/donation',
|
|
47
36
|
headers: {
|
|
48
37
|
'ipAddress': ipAddress,
|
|
49
|
-
'shopperguid': shopperguid,
|
|
50
|
-
'accountid': accountid,
|
|
51
|
-
'apikey': apikey,
|
|
52
38
|
},
|
|
53
39
|
body: requestBody,
|
|
54
40
|
mediaType: 'application/json',
|
|
@@ -8,44 +8,32 @@ export declare class EventService {
|
|
|
8
8
|
/**
|
|
9
9
|
* Get all events for a shopper
|
|
10
10
|
* Retrieves all events associated with the shopper.
|
|
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 GetEventsResponse Returns a list of events and their groups.
|
|
15
12
|
* @throws ApiError
|
|
16
13
|
*/
|
|
17
|
-
static getEvents(
|
|
14
|
+
static getEvents(): CancelablePromise<GetEventsResponse>;
|
|
18
15
|
/**
|
|
19
16
|
* Get events for a specific performer
|
|
20
17
|
* Retrieves events associated with a specific performer.
|
|
21
18
|
* @param performer The name of the performer to filter events by.
|
|
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
|
* @returns PerformerEventList Returns a list of event IDs and their primary status.
|
|
26
20
|
* @throws ApiError
|
|
27
21
|
*/
|
|
28
|
-
static getPerformers(performer: string
|
|
22
|
+
static getPerformers(performer: string): CancelablePromise<Array<PerformerEventList>>;
|
|
29
23
|
/**
|
|
30
24
|
* Get event details by ID
|
|
31
25
|
* Retrieves detailed information for a specific event.
|
|
32
26
|
* @param id
|
|
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
|
* @returns FullEventDetails Returns the event details.
|
|
37
28
|
* @throws ApiError
|
|
38
29
|
*/
|
|
39
|
-
static getEventById(id: number
|
|
30
|
+
static getEventById(id: number): CancelablePromise<FullEventDetails>;
|
|
40
31
|
/**
|
|
41
32
|
* Assign names to the waitlist
|
|
42
33
|
* Updates the waitlist with shopper details.
|
|
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
|
* @param requestBody Details of the waitlist update
|
|
47
35
|
* @returns WaitlistResponse Returns the result of the waitlist update.
|
|
48
36
|
* @throws ApiError
|
|
49
37
|
*/
|
|
50
|
-
static postWishlist(
|
|
38
|
+
static postWishlist(requestBody: WaitlistUpdate): CancelablePromise<WaitlistResponse>;
|
|
51
39
|
}
|