@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
|
@@ -10,25 +10,14 @@ export class CartService {
|
|
|
10
10
|
/**
|
|
11
11
|
* Get Cart
|
|
12
12
|
* Retrieves the cart along with its associated time.
|
|
13
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
14
|
-
* @param accountid Unique identifier for the account.
|
|
15
|
-
* @param apikey API key for authentication.
|
|
16
13
|
* @returns CartWithTime Cart retrieved successfully with time.
|
|
17
14
|
* @throws ApiError
|
|
18
15
|
*/
|
|
19
16
|
public static getCart(
|
|
20
|
-
shopperguid: string,
|
|
21
|
-
accountid: string,
|
|
22
|
-
apikey: string,
|
|
23
17
|
): CancelablePromise<CartWithTime> {
|
|
24
18
|
return __request(OpenAPI, {
|
|
25
19
|
method: 'GET',
|
|
26
20
|
url: '/cart',
|
|
27
|
-
headers: {
|
|
28
|
-
'shopperguid': shopperguid,
|
|
29
|
-
'accountid': accountid,
|
|
30
|
-
'apikey': apikey,
|
|
31
|
-
},
|
|
32
21
|
errors: {
|
|
33
22
|
400: `Bad Request error with error details.`,
|
|
34
23
|
404: `Not found error with error details.`,
|
|
@@ -39,25 +28,14 @@ export class CartService {
|
|
|
39
28
|
/**
|
|
40
29
|
* Delete Cart
|
|
41
30
|
* Deletes the cart for the specified shopper and account.
|
|
42
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
43
|
-
* @param accountid Unique identifier for the account.
|
|
44
|
-
* @param apikey API key for authentication.
|
|
45
31
|
* @returns any Cart deleted successfully.
|
|
46
32
|
* @throws ApiError
|
|
47
33
|
*/
|
|
48
34
|
public static deleteCart(
|
|
49
|
-
shopperguid: string,
|
|
50
|
-
accountid: string,
|
|
51
|
-
apikey: string,
|
|
52
35
|
): CancelablePromise<any> {
|
|
53
36
|
return __request(OpenAPI, {
|
|
54
37
|
method: 'DELETE',
|
|
55
38
|
url: '/cart',
|
|
56
|
-
headers: {
|
|
57
|
-
'shopperguid': shopperguid,
|
|
58
|
-
'accountid': accountid,
|
|
59
|
-
'apikey': apikey,
|
|
60
|
-
},
|
|
61
39
|
errors: {
|
|
62
40
|
400: `Bad Request error with error details.`,
|
|
63
41
|
404: `Not found error with error details.`,
|
|
@@ -14,25 +14,14 @@ export class CheckoutService {
|
|
|
14
14
|
/**
|
|
15
15
|
* Get checkout page data
|
|
16
16
|
* Returns all data needed to render the checkout page including session, studio settings, questions, products, donations, gift cards, and shipping info.
|
|
17
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
18
|
-
* @param accountid Unique identifier for the account.
|
|
19
|
-
* @param apikey API key for authentication.
|
|
20
17
|
* @returns CheckoutPageData Returns checkout page data.
|
|
21
18
|
* @throws ApiError
|
|
22
19
|
*/
|
|
23
20
|
public static getCheckout(
|
|
24
|
-
shopperguid: string,
|
|
25
|
-
accountid: string,
|
|
26
|
-
apikey: string,
|
|
27
21
|
): CancelablePromise<CheckoutPageData> {
|
|
28
22
|
return __request(OpenAPI, {
|
|
29
23
|
method: 'GET',
|
|
30
24
|
url: '/checkout',
|
|
31
|
-
headers: {
|
|
32
|
-
'shopperguid': shopperguid,
|
|
33
|
-
'accountid': accountid,
|
|
34
|
-
'apikey': apikey,
|
|
35
|
-
},
|
|
36
25
|
errors: {
|
|
37
26
|
400: `Bad Request error with error details.`,
|
|
38
27
|
404: `Not found error with error details.`,
|
|
@@ -43,27 +32,16 @@ export class CheckoutService {
|
|
|
43
32
|
/**
|
|
44
33
|
* Submit checkout
|
|
45
34
|
* Validates and saves checkout form data. Supports both token (Authorize.net/Moneris) and Stripe payment flows.
|
|
46
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
47
|
-
* @param accountid Unique identifier for the account.
|
|
48
|
-
* @param apikey API key for authentication.
|
|
49
35
|
* @param requestBody Checkout form data.
|
|
50
36
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
51
37
|
* @throws ApiError
|
|
52
38
|
*/
|
|
53
39
|
public static submitCheckout(
|
|
54
|
-
shopperguid: string,
|
|
55
|
-
accountid: string,
|
|
56
|
-
apikey: string,
|
|
57
40
|
requestBody: CheckoutSubmitBody,
|
|
58
41
|
): CancelablePromise<CheckoutSuccessResponse> {
|
|
59
42
|
return __request(OpenAPI, {
|
|
60
43
|
method: 'POST',
|
|
61
44
|
url: '/checkout',
|
|
62
|
-
headers: {
|
|
63
|
-
'shopperguid': shopperguid,
|
|
64
|
-
'accountid': accountid,
|
|
65
|
-
'apikey': apikey,
|
|
66
|
-
},
|
|
67
45
|
body: requestBody,
|
|
68
46
|
mediaType: 'application/json',
|
|
69
47
|
errors: {
|
|
@@ -76,27 +54,16 @@ export class CheckoutService {
|
|
|
76
54
|
/**
|
|
77
55
|
* Save payment nonce
|
|
78
56
|
* Saves a payment nonce (token) from Authorize.net or Moneris to the session.
|
|
79
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
80
|
-
* @param accountid Unique identifier for the account.
|
|
81
|
-
* @param apikey API key for authentication.
|
|
82
57
|
* @param requestBody Nonce data to save.
|
|
83
58
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
84
59
|
* @throws ApiError
|
|
85
60
|
*/
|
|
86
61
|
public static saveNonce(
|
|
87
|
-
shopperguid: string,
|
|
88
|
-
accountid: string,
|
|
89
|
-
apikey: string,
|
|
90
62
|
requestBody: SaveNonceBody,
|
|
91
63
|
): CancelablePromise<CheckoutSuccessResponse> {
|
|
92
64
|
return __request(OpenAPI, {
|
|
93
65
|
method: 'POST',
|
|
94
66
|
url: '/checkout/nonce',
|
|
95
|
-
headers: {
|
|
96
|
-
'shopperguid': shopperguid,
|
|
97
|
-
'accountid': accountid,
|
|
98
|
-
'apikey': apikey,
|
|
99
|
-
},
|
|
100
67
|
body: requestBody,
|
|
101
68
|
mediaType: 'application/json',
|
|
102
69
|
errors: {
|
|
@@ -109,25 +76,14 @@ export class CheckoutService {
|
|
|
109
76
|
/**
|
|
110
77
|
* Clear payment nonce
|
|
111
78
|
* Clears the payment nonce and related CC fields from the session.
|
|
112
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
113
|
-
* @param accountid Unique identifier for the account.
|
|
114
|
-
* @param apikey API key for authentication.
|
|
115
79
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
116
80
|
* @throws ApiError
|
|
117
81
|
*/
|
|
118
82
|
public static clearNonce(
|
|
119
|
-
shopperguid: string,
|
|
120
|
-
accountid: string,
|
|
121
|
-
apikey: string,
|
|
122
83
|
): CancelablePromise<CheckoutSuccessResponse> {
|
|
123
84
|
return __request(OpenAPI, {
|
|
124
85
|
method: 'DELETE',
|
|
125
86
|
url: '/checkout/nonce',
|
|
126
|
-
headers: {
|
|
127
|
-
'shopperguid': shopperguid,
|
|
128
|
-
'accountid': accountid,
|
|
129
|
-
'apikey': apikey,
|
|
130
|
-
},
|
|
131
87
|
errors: {
|
|
132
88
|
400: `Bad Request error with error details.`,
|
|
133
89
|
404: `Not found error with error details.`,
|
|
@@ -138,27 +94,16 @@ export class CheckoutService {
|
|
|
138
94
|
/**
|
|
139
95
|
* Auto-save checkout details
|
|
140
96
|
* Auto-saves checkout form fields without full validation. Used for partial saves as the user fills out the form.
|
|
141
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
142
|
-
* @param accountid Unique identifier for the account.
|
|
143
|
-
* @param apikey API key for authentication.
|
|
144
97
|
* @param requestBody Partial checkout data to auto-save.
|
|
145
98
|
* @returns CheckoutSuccessResponse Returns success response.
|
|
146
99
|
* @throws ApiError
|
|
147
100
|
*/
|
|
148
101
|
public static saveDetails(
|
|
149
|
-
shopperguid: string,
|
|
150
|
-
accountid: string,
|
|
151
|
-
apikey: string,
|
|
152
102
|
requestBody: SaveDetailsBody,
|
|
153
103
|
): CancelablePromise<CheckoutSuccessResponse> {
|
|
154
104
|
return __request(OpenAPI, {
|
|
155
105
|
method: 'POST',
|
|
156
106
|
url: '/checkout/details',
|
|
157
|
-
headers: {
|
|
158
|
-
'shopperguid': shopperguid,
|
|
159
|
-
'accountid': accountid,
|
|
160
|
-
'apikey': apikey,
|
|
161
|
-
},
|
|
162
107
|
body: requestBody,
|
|
163
108
|
mediaType: 'application/json',
|
|
164
109
|
errors: {
|
|
@@ -15,26 +15,15 @@ export class CodeService {
|
|
|
15
15
|
* Request access to an event
|
|
16
16
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
17
17
|
* @param eventId ID of the event for which access is requested
|
|
18
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
19
|
-
* @param accountid Unique identifier for the account.
|
|
20
|
-
* @param apikey API key for authentication.
|
|
21
18
|
* @returns HasAccessResponse Access request submitted successfully.
|
|
22
19
|
* @throws ApiError
|
|
23
20
|
*/
|
|
24
21
|
public static requestEventAccess(
|
|
25
22
|
eventId: number,
|
|
26
|
-
shopperguid: string,
|
|
27
|
-
accountid: string,
|
|
28
|
-
apikey: string,
|
|
29
23
|
): CancelablePromise<HasAccessResponse> {
|
|
30
24
|
return __request(OpenAPI, {
|
|
31
25
|
method: 'GET',
|
|
32
26
|
url: '/code/access',
|
|
33
|
-
headers: {
|
|
34
|
-
'shopperguid': shopperguid,
|
|
35
|
-
'accountid': accountid,
|
|
36
|
-
'apikey': apikey,
|
|
37
|
-
},
|
|
38
27
|
query: {
|
|
39
28
|
'eventId': eventId,
|
|
40
29
|
},
|
|
@@ -48,27 +37,16 @@ export class CodeService {
|
|
|
48
37
|
/**
|
|
49
38
|
* Apply a code to the current shopper session
|
|
50
39
|
* Applies a code to the current shopper session.
|
|
51
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
52
|
-
* @param accountid Unique identifier for the account.
|
|
53
|
-
* @param apikey API key for authentication.
|
|
54
40
|
* @param requestBody Code to be applied
|
|
55
41
|
* @returns SuccessWithTime Code applied successfully.
|
|
56
42
|
* @throws ApiError
|
|
57
43
|
*/
|
|
58
44
|
public static applyCode(
|
|
59
|
-
shopperguid: string,
|
|
60
|
-
accountid: string,
|
|
61
|
-
apikey: string,
|
|
62
45
|
requestBody: CodeDto,
|
|
63
46
|
): CancelablePromise<SuccessWithTime> {
|
|
64
47
|
return __request(OpenAPI, {
|
|
65
48
|
method: 'POST',
|
|
66
49
|
url: '/code',
|
|
67
|
-
headers: {
|
|
68
|
-
'shopperguid': shopperguid,
|
|
69
|
-
'accountid': accountid,
|
|
70
|
-
'apikey': apikey,
|
|
71
|
-
},
|
|
72
50
|
body: requestBody,
|
|
73
51
|
mediaType: 'application/json',
|
|
74
52
|
errors: {
|
|
@@ -81,27 +59,16 @@ export class CodeService {
|
|
|
81
59
|
/**
|
|
82
60
|
* Apply a coupon to the current shopper session
|
|
83
61
|
* Applies a coupon to the current shopper session.
|
|
84
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
85
|
-
* @param accountid Unique identifier for the account.
|
|
86
|
-
* @param apikey API key for authentication.
|
|
87
62
|
* @param requestBody Coupon code to be applied
|
|
88
63
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
89
64
|
* @throws ApiError
|
|
90
65
|
*/
|
|
91
66
|
public static applyCoupon(
|
|
92
|
-
shopperguid: string,
|
|
93
|
-
accountid: string,
|
|
94
|
-
apikey: string,
|
|
95
67
|
requestBody: CodeDto,
|
|
96
68
|
): CancelablePromise<UniversalCodeResponse> {
|
|
97
69
|
return __request(OpenAPI, {
|
|
98
70
|
method: 'POST',
|
|
99
71
|
url: '/code/discount',
|
|
100
|
-
headers: {
|
|
101
|
-
'shopperguid': shopperguid,
|
|
102
|
-
'accountid': accountid,
|
|
103
|
-
'apikey': apikey,
|
|
104
|
-
},
|
|
105
72
|
body: requestBody,
|
|
106
73
|
mediaType: 'application/json',
|
|
107
74
|
errors: {
|
|
@@ -114,27 +81,16 @@ export class CodeService {
|
|
|
114
81
|
/**
|
|
115
82
|
* Remove a coupon from the current shopper session
|
|
116
83
|
* Removes a coupon from the current shopper session.
|
|
117
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
118
|
-
* @param accountid Unique identifier for the account.
|
|
119
|
-
* @param apikey API key for authentication.
|
|
120
84
|
* @param requestBody Coupon code to be removed
|
|
121
85
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
122
86
|
* @throws ApiError
|
|
123
87
|
*/
|
|
124
88
|
public static removeCoupon(
|
|
125
|
-
shopperguid: string,
|
|
126
|
-
accountid: string,
|
|
127
|
-
apikey: string,
|
|
128
89
|
requestBody: CodeDto,
|
|
129
90
|
): CancelablePromise<UniversalCodeResponse> {
|
|
130
91
|
return __request(OpenAPI, {
|
|
131
92
|
method: 'DELETE',
|
|
132
93
|
url: '/code/discount',
|
|
133
|
-
headers: {
|
|
134
|
-
'shopperguid': shopperguid,
|
|
135
|
-
'accountid': accountid,
|
|
136
|
-
'apikey': apikey,
|
|
137
|
-
},
|
|
138
94
|
body: requestBody,
|
|
139
95
|
mediaType: 'application/json',
|
|
140
96
|
errors: {
|
|
@@ -147,27 +103,16 @@ export class CodeService {
|
|
|
147
103
|
/**
|
|
148
104
|
* Apply Priority Code
|
|
149
105
|
* Applies a priority code to the cart.
|
|
150
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
151
|
-
* @param accountid Unique identifier for the account.
|
|
152
|
-
* @param apikey API key for authentication.
|
|
153
106
|
* @param requestBody Priority code data to be applied
|
|
154
107
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
155
108
|
* @throws ApiError
|
|
156
109
|
*/
|
|
157
110
|
public static applyPriorityCode(
|
|
158
|
-
shopperguid: string,
|
|
159
|
-
accountid: string,
|
|
160
|
-
apikey: string,
|
|
161
111
|
requestBody: PriorityCode,
|
|
162
112
|
): CancelablePromise<SuccessWithTime> {
|
|
163
113
|
return __request(OpenAPI, {
|
|
164
114
|
method: 'POST',
|
|
165
115
|
url: '/code/priority',
|
|
166
|
-
headers: {
|
|
167
|
-
'shopperguid': shopperguid,
|
|
168
|
-
'accountid': accountid,
|
|
169
|
-
'apikey': apikey,
|
|
170
|
-
},
|
|
171
116
|
body: requestBody,
|
|
172
117
|
mediaType: 'application/json',
|
|
173
118
|
errors: {
|
|
@@ -12,25 +12,14 @@ export class DonationService {
|
|
|
12
12
|
/**
|
|
13
13
|
* Get all donations for a shopper
|
|
14
14
|
* Retrieves all donations and contributions associated with the specified shopper and account.
|
|
15
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
16
|
-
* @param accountid Unique identifier for the account.
|
|
17
|
-
* @param apikey API key for authentication.
|
|
18
15
|
* @returns DonationsandContributions Returns a list of donations and contributions for the shopper.
|
|
19
16
|
* @throws ApiError
|
|
20
17
|
*/
|
|
21
18
|
public static getDonations(
|
|
22
|
-
shopperguid: string,
|
|
23
|
-
accountid: string,
|
|
24
|
-
apikey: string,
|
|
25
19
|
): CancelablePromise<DonationsandContributions> {
|
|
26
20
|
return __request(OpenAPI, {
|
|
27
21
|
method: 'GET',
|
|
28
22
|
url: '/donation',
|
|
29
|
-
headers: {
|
|
30
|
-
'shopperguid': shopperguid,
|
|
31
|
-
'accountid': accountid,
|
|
32
|
-
'apikey': apikey,
|
|
33
|
-
},
|
|
34
23
|
errors: {
|
|
35
24
|
400: `Bad Request error with error details.`,
|
|
36
25
|
404: `Not found error with error details.`,
|
|
@@ -42,18 +31,12 @@ export class DonationService {
|
|
|
42
31
|
* Add a donation or contribution
|
|
43
32
|
* Adds a new donation or contribution for the specified shopper and account.
|
|
44
33
|
* @param ipAddress API key for authentication.
|
|
45
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
46
|
-
* @param accountid Unique identifier for the account.
|
|
47
|
-
* @param apikey API key for authentication.
|
|
48
34
|
* @param requestBody Donation or contribution details to add.
|
|
49
35
|
* @returns DonationResult Returns the result of the donation addition.
|
|
50
36
|
* @throws ApiError
|
|
51
37
|
*/
|
|
52
38
|
public static postDonation(
|
|
53
39
|
ipAddress: string,
|
|
54
|
-
shopperguid: string,
|
|
55
|
-
accountid: string,
|
|
56
|
-
apikey: string,
|
|
57
40
|
requestBody: DonationContribution,
|
|
58
41
|
): CancelablePromise<DonationResult> {
|
|
59
42
|
return __request(OpenAPI, {
|
|
@@ -61,9 +44,6 @@ export class DonationService {
|
|
|
61
44
|
url: '/donation',
|
|
62
45
|
headers: {
|
|
63
46
|
'ipAddress': ipAddress,
|
|
64
|
-
'shopperguid': shopperguid,
|
|
65
|
-
'accountid': accountid,
|
|
66
|
-
'apikey': apikey,
|
|
67
47
|
},
|
|
68
48
|
body: requestBody,
|
|
69
49
|
mediaType: 'application/json',
|
|
@@ -14,25 +14,14 @@ export class EventService {
|
|
|
14
14
|
/**
|
|
15
15
|
* Get all events for a shopper
|
|
16
16
|
* Retrieves all events associated with the shopper.
|
|
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 GetEventsResponse Returns a list of events and their groups.
|
|
21
18
|
* @throws ApiError
|
|
22
19
|
*/
|
|
23
20
|
public static getEvents(
|
|
24
|
-
shopperguid: string,
|
|
25
|
-
accountid: string,
|
|
26
|
-
apikey: string,
|
|
27
21
|
): CancelablePromise<GetEventsResponse> {
|
|
28
22
|
return __request(OpenAPI, {
|
|
29
23
|
method: 'GET',
|
|
30
24
|
url: '/event',
|
|
31
|
-
headers: {
|
|
32
|
-
'shopperguid': shopperguid,
|
|
33
|
-
'accountid': accountid,
|
|
34
|
-
'apikey': apikey,
|
|
35
|
-
},
|
|
36
25
|
errors: {
|
|
37
26
|
400: `Bad Request error with error details.`,
|
|
38
27
|
404: `Not found error with error details.`,
|
|
@@ -44,26 +33,15 @@ export class EventService {
|
|
|
44
33
|
* Get events for a specific performer
|
|
45
34
|
* Retrieves events associated with a specific performer.
|
|
46
35
|
* @param performer The name of the performer to filter events by.
|
|
47
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
48
|
-
* @param accountid Unique identifier for the account.
|
|
49
|
-
* @param apikey API key for authentication.
|
|
50
36
|
* @returns PerformerEventList Returns a list of event IDs and their primary status.
|
|
51
37
|
* @throws ApiError
|
|
52
38
|
*/
|
|
53
39
|
public static getPerformers(
|
|
54
40
|
performer: string,
|
|
55
|
-
shopperguid: string,
|
|
56
|
-
accountid: string,
|
|
57
|
-
apikey: string,
|
|
58
41
|
): CancelablePromise<Array<PerformerEventList>> {
|
|
59
42
|
return __request(OpenAPI, {
|
|
60
43
|
method: 'GET',
|
|
61
44
|
url: '/event/performer',
|
|
62
|
-
headers: {
|
|
63
|
-
'shopperguid': shopperguid,
|
|
64
|
-
'accountid': accountid,
|
|
65
|
-
'apikey': apikey,
|
|
66
|
-
},
|
|
67
45
|
query: {
|
|
68
46
|
'performer': performer,
|
|
69
47
|
},
|
|
@@ -78,17 +56,11 @@ export class EventService {
|
|
|
78
56
|
* Get event details by ID
|
|
79
57
|
* Retrieves detailed information for a specific event.
|
|
80
58
|
* @param id
|
|
81
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
82
|
-
* @param accountid Unique identifier for the account.
|
|
83
|
-
* @param apikey API key for authentication.
|
|
84
59
|
* @returns FullEventDetails Returns the event details.
|
|
85
60
|
* @throws ApiError
|
|
86
61
|
*/
|
|
87
62
|
public static getEventById(
|
|
88
63
|
id: number,
|
|
89
|
-
shopperguid: string,
|
|
90
|
-
accountid: string,
|
|
91
|
-
apikey: string,
|
|
92
64
|
): CancelablePromise<FullEventDetails> {
|
|
93
65
|
return __request(OpenAPI, {
|
|
94
66
|
method: 'GET',
|
|
@@ -96,11 +68,6 @@ export class EventService {
|
|
|
96
68
|
path: {
|
|
97
69
|
'id': id,
|
|
98
70
|
},
|
|
99
|
-
headers: {
|
|
100
|
-
'shopperguid': shopperguid,
|
|
101
|
-
'accountid': accountid,
|
|
102
|
-
'apikey': apikey,
|
|
103
|
-
},
|
|
104
71
|
errors: {
|
|
105
72
|
400: `Bad Request error with error details.`,
|
|
106
73
|
404: `Not found error with error details.`,
|
|
@@ -111,27 +78,16 @@ export class EventService {
|
|
|
111
78
|
/**
|
|
112
79
|
* Assign names to the waitlist
|
|
113
80
|
* Updates the waitlist with shopper details.
|
|
114
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
115
|
-
* @param accountid Unique identifier for the account.
|
|
116
|
-
* @param apikey API key for authentication.
|
|
117
81
|
* @param requestBody Details of the waitlist update
|
|
118
82
|
* @returns WaitlistResponse Returns the result of the waitlist update.
|
|
119
83
|
* @throws ApiError
|
|
120
84
|
*/
|
|
121
85
|
public static postWishlist(
|
|
122
|
-
shopperguid: string,
|
|
123
|
-
accountid: string,
|
|
124
|
-
apikey: string,
|
|
125
86
|
requestBody: WaitlistUpdate,
|
|
126
87
|
): CancelablePromise<WaitlistResponse> {
|
|
127
88
|
return __request(OpenAPI, {
|
|
128
89
|
method: 'POST',
|
|
129
90
|
url: '/event/waitlist',
|
|
130
|
-
headers: {
|
|
131
|
-
'shopperguid': shopperguid,
|
|
132
|
-
'accountid': accountid,
|
|
133
|
-
'apikey': apikey,
|
|
134
|
-
},
|
|
135
91
|
body: requestBody,
|
|
136
92
|
mediaType: 'application/json',
|
|
137
93
|
errors: {
|
|
@@ -17,27 +17,16 @@ export class GiftCardService {
|
|
|
17
17
|
* Retrieves gift card balance and availability information for the specified code and PIN.
|
|
18
18
|
* @param code Gift card code
|
|
19
19
|
* @param pin Gift card PIN
|
|
20
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
21
|
-
* @param accountid Unique identifier for the account.
|
|
22
|
-
* @param apikey API key for authentication.
|
|
23
20
|
* @returns GiftCardLookupResponse Returns gift card balance and availability information.
|
|
24
21
|
* @throws ApiError
|
|
25
22
|
*/
|
|
26
23
|
public static lookupGiftCard(
|
|
27
24
|
code: string,
|
|
28
25
|
pin: string,
|
|
29
|
-
shopperguid: string,
|
|
30
|
-
accountid: string,
|
|
31
|
-
apikey: string,
|
|
32
26
|
): CancelablePromise<GiftCardLookupResponse> {
|
|
33
27
|
return __request(OpenAPI, {
|
|
34
28
|
method: 'GET',
|
|
35
29
|
url: '/gift-card',
|
|
36
|
-
headers: {
|
|
37
|
-
'shopperguid': shopperguid,
|
|
38
|
-
'accountid': accountid,
|
|
39
|
-
'apikey': apikey,
|
|
40
|
-
},
|
|
41
30
|
query: {
|
|
42
31
|
'code': code,
|
|
43
32
|
'pin': pin,
|
|
@@ -52,27 +41,16 @@ export class GiftCardService {
|
|
|
52
41
|
/**
|
|
53
42
|
* Apply a gift card to the current session
|
|
54
43
|
* Applies a gift card to the current shopper session. Removes any previously applied gift card.
|
|
55
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
56
|
-
* @param accountid Unique identifier for the account.
|
|
57
|
-
* @param apikey API key for authentication.
|
|
58
44
|
* @param requestBody Gift card details to apply
|
|
59
45
|
* @returns GiftCardApplyResponse Gift card applied successfully.
|
|
60
46
|
* @throws ApiError
|
|
61
47
|
*/
|
|
62
48
|
public static applyGiftCard(
|
|
63
|
-
shopperguid: string,
|
|
64
|
-
accountid: string,
|
|
65
|
-
apikey: string,
|
|
66
49
|
requestBody: GiftCardApplyDto,
|
|
67
50
|
): CancelablePromise<GiftCardApplyResponse> {
|
|
68
51
|
return __request(OpenAPI, {
|
|
69
52
|
method: 'POST',
|
|
70
53
|
url: '/gift-card',
|
|
71
|
-
headers: {
|
|
72
|
-
'shopperguid': shopperguid,
|
|
73
|
-
'accountid': accountid,
|
|
74
|
-
'apikey': apikey,
|
|
75
|
-
},
|
|
76
54
|
body: requestBody,
|
|
77
55
|
mediaType: 'application/json',
|
|
78
56
|
errors: {
|
|
@@ -85,25 +63,14 @@ export class GiftCardService {
|
|
|
85
63
|
/**
|
|
86
64
|
* Remove the gift card from the current session
|
|
87
65
|
* Removes all gift cards from the current shopper session and recalculates payment totals.
|
|
88
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
89
|
-
* @param accountid Unique identifier for the account.
|
|
90
|
-
* @param apikey API key for authentication.
|
|
91
66
|
* @returns GiftCardRemoveResponse Gift card removed successfully.
|
|
92
67
|
* @throws ApiError
|
|
93
68
|
*/
|
|
94
69
|
public static removeGiftCard(
|
|
95
|
-
shopperguid: string,
|
|
96
|
-
accountid: string,
|
|
97
|
-
apikey: string,
|
|
98
70
|
): CancelablePromise<GiftCardRemoveResponse> {
|
|
99
71
|
return __request(OpenAPI, {
|
|
100
72
|
method: 'DELETE',
|
|
101
73
|
url: '/gift-card',
|
|
102
|
-
headers: {
|
|
103
|
-
'shopperguid': shopperguid,
|
|
104
|
-
'accountid': accountid,
|
|
105
|
-
'apikey': apikey,
|
|
106
|
-
},
|
|
107
74
|
errors: {
|
|
108
75
|
400: `Bad Request error with error details.`,
|
|
109
76
|
404: `Not found error with error details.`,
|
|
@@ -114,25 +81,14 @@ export class GiftCardService {
|
|
|
114
81
|
/**
|
|
115
82
|
* Get gift card checkout information
|
|
116
83
|
* Retrieves gift card information for the checkout page, including applied gift card details and remaining balance.
|
|
117
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
118
|
-
* @param accountid Unique identifier for the account.
|
|
119
|
-
* @param apikey API key for authentication.
|
|
120
84
|
* @returns GiftCardCheckoutInfo Returns gift card checkout information.
|
|
121
85
|
* @throws ApiError
|
|
122
86
|
*/
|
|
123
87
|
public static getGiftCardCheckoutInfo(
|
|
124
|
-
shopperguid: string,
|
|
125
|
-
accountid: string,
|
|
126
|
-
apikey: string,
|
|
127
88
|
): CancelablePromise<GiftCardCheckoutInfo> {
|
|
128
89
|
return __request(OpenAPI, {
|
|
129
90
|
method: 'GET',
|
|
130
91
|
url: '/gift-card/checkout',
|
|
131
|
-
headers: {
|
|
132
|
-
'shopperguid': shopperguid,
|
|
133
|
-
'accountid': accountid,
|
|
134
|
-
'apikey': apikey,
|
|
135
|
-
},
|
|
136
92
|
errors: {
|
|
137
93
|
400: `Bad Request error with error details.`,
|
|
138
94
|
404: `Not found error with error details.`,
|
|
@@ -143,25 +99,14 @@ export class GiftCardService {
|
|
|
143
99
|
/**
|
|
144
100
|
* Get gift card edit form data
|
|
145
101
|
* Retrieves the currently applied gift card information for editing purposes.
|
|
146
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
147
|
-
* @param accountid Unique identifier for the account.
|
|
148
|
-
* @param apikey API key for authentication.
|
|
149
102
|
* @returns GiftCardEditFormResponse Returns the applied gift card code and amount.
|
|
150
103
|
* @throws ApiError
|
|
151
104
|
*/
|
|
152
105
|
public static getGiftCardEditForm(
|
|
153
|
-
shopperguid: string,
|
|
154
|
-
accountid: string,
|
|
155
|
-
apikey: string,
|
|
156
106
|
): CancelablePromise<GiftCardEditFormResponse> {
|
|
157
107
|
return __request(OpenAPI, {
|
|
158
108
|
method: 'GET',
|
|
159
109
|
url: '/gift-card/edit',
|
|
160
|
-
headers: {
|
|
161
|
-
'shopperguid': shopperguid,
|
|
162
|
-
'accountid': accountid,
|
|
163
|
-
'apikey': apikey,
|
|
164
|
-
},
|
|
165
110
|
errors: {
|
|
166
111
|
400: `Bad Request error with error details.`,
|
|
167
112
|
404: `Not found error with error details.`,
|