@drttix/drt-sdk 0.9.7 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo/test.html +1554 -674
- package/dist/bundle/drt-sdk.js +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/src/definitions/portal.d.ts +2 -0
- package/dist/cjs/src/definitions/portal.js +2 -0
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/index.d.ts +3 -0
- package/dist/cjs/src/generated/portal/index.js +3 -1
- package/dist/cjs/src/generated/portal/models/SupportTicketResponseDto.d.ts +26 -0
- package/dist/cjs/src/generated/portal/models/SupportTicketResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SupportTicketStatusResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/SupportTicketStatusResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/services/SuperUserSupportTicketsService.d.ts +21 -0
- package/dist/cjs/src/generated/portal/services/SuperUserSupportTicketsService.js +40 -0
- package/dist/cjs/src/generated/portal/types.d.ts +2 -0
- package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +4 -16
- package/dist/cjs/src/generated/shopper/services/AccountService.js +4 -36
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +2 -8
- package/dist/cjs/src/generated/shopper/services/CartService.js +2 -18
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +5 -20
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +5 -45
- package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +5 -20
- package/dist/cjs/src/generated/shopper/services/CodeService.js +5 -45
- package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +2 -8
- package/dist/cjs/src/generated/shopper/services/DonationService.js +2 -16
- package/dist/cjs/src/generated/shopper/services/EventService.d.ts +4 -16
- package/dist/cjs/src/generated/shopper/services/EventService.js +4 -36
- package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +5 -20
- package/dist/cjs/src/generated/shopper/services/GiftCardService.js +5 -45
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +14 -56
- package/dist/cjs/src/generated/shopper/services/OrderService.js +14 -126
- package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +3 -12
- package/dist/cjs/src/generated/shopper/services/PaymentService.js +3 -27
- package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +3 -12
- package/dist/cjs/src/generated/shopper/services/ProductService.js +3 -27
- package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +6 -24
- package/dist/cjs/src/generated/shopper/services/SeatService.js +6 -54
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +2 -8
- package/dist/cjs/src/generated/shopper/services/SessionService.js +2 -18
- package/dist/cjs/src/scripts/build-all.js +46 -2
- package/dist/cjs/src/staging/wrapService.js +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/src/definitions/portal.d.ts +2 -0
- package/dist/esm/src/definitions/portal.js +2 -0
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/index.d.ts +3 -0
- package/dist/esm/src/generated/portal/index.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportTicketResponseDto.d.ts +26 -0
- package/dist/esm/src/generated/portal/models/SupportTicketResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportTicketStatusResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/SupportTicketStatusResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/services/SuperUserSupportTicketsService.d.ts +21 -0
- package/dist/esm/src/generated/portal/services/SuperUserSupportTicketsService.js +36 -0
- package/dist/esm/src/generated/portal/types.d.ts +2 -0
- package/dist/esm/src/generated/shopper/services/AccountService.d.ts +4 -16
- package/dist/esm/src/generated/shopper/services/AccountService.js +4 -36
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +2 -8
- package/dist/esm/src/generated/shopper/services/CartService.js +2 -18
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +5 -20
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +5 -45
- package/dist/esm/src/generated/shopper/services/CodeService.d.ts +5 -20
- package/dist/esm/src/generated/shopper/services/CodeService.js +5 -45
- package/dist/esm/src/generated/shopper/services/DonationService.d.ts +2 -8
- package/dist/esm/src/generated/shopper/services/DonationService.js +2 -16
- package/dist/esm/src/generated/shopper/services/EventService.d.ts +4 -16
- package/dist/esm/src/generated/shopper/services/EventService.js +4 -36
- package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +5 -20
- package/dist/esm/src/generated/shopper/services/GiftCardService.js +5 -45
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +14 -56
- package/dist/esm/src/generated/shopper/services/OrderService.js +14 -126
- package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +3 -12
- package/dist/esm/src/generated/shopper/services/PaymentService.js +3 -27
- package/dist/esm/src/generated/shopper/services/ProductService.d.ts +3 -12
- package/dist/esm/src/generated/shopper/services/ProductService.js +3 -27
- package/dist/esm/src/generated/shopper/services/SeatService.d.ts +6 -24
- package/dist/esm/src/generated/shopper/services/SeatService.js +6 -54
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +2 -8
- package/dist/esm/src/generated/shopper/services/SessionService.js +2 -18
- package/dist/esm/src/scripts/build-all.js +46 -2
- package/dist/esm/src/staging/wrapService.js +1 -1
- package/drt-api-specs-staging.json +14 -0
- package/package.json +38 -38
- package/public/sdk/latest/drt-sdk.js +1 -1
- package/src/definitions/portal.ts +2 -0
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/index.ts +3 -0
- package/src/generated/portal/models/SupportTicketResponseDto.ts +31 -0
- package/src/generated/portal/models/SupportTicketStatusResponseDto.ts +9 -0
- package/src/generated/portal/services/SuperUserSupportTicketsService.ts +46 -0
- package/src/generated/portal/types.ts +2 -0
- package/src/generated/shopper/services/AccountService.ts +0 -44
- package/src/generated/shopper/services/CartService.ts +0 -22
- package/src/generated/shopper/services/CheckoutService.ts +0 -55
- package/src/generated/shopper/services/CodeService.ts +0 -55
- package/src/generated/shopper/services/DonationService.ts +0 -20
- package/src/generated/shopper/services/EventService.ts +0 -44
- package/src/generated/shopper/services/GiftCardService.ts +0 -55
- package/src/generated/shopper/services/OrderService.ts +0 -154
- package/src/generated/shopper/services/PaymentService.ts +0 -33
- package/src/generated/shopper/services/ProductService.ts +0 -33
- package/src/generated/shopper/services/SeatService.ts +0 -66
- package/src/generated/shopper/services/SessionService.ts +0 -22
- package/src/scripts/build-all.ts +59 -2
- package/src/staging/wrapService.ts +1 -1
|
@@ -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: {
|
|
@@ -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
|
}
|
|
@@ -5,21 +5,13 @@ export class CodeService {
|
|
|
5
5
|
* Request access to an event
|
|
6
6
|
* Allows a shopper to request access to an event using their shopper GUID and account ID.
|
|
7
7
|
* @param eventId ID of the event for which access is requested
|
|
8
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
9
|
-
* @param accountid Unique identifier for the account.
|
|
10
|
-
* @param apikey API key for authentication.
|
|
11
8
|
* @returns HasAccessResponse Access request submitted successfully.
|
|
12
9
|
* @throws ApiError
|
|
13
10
|
*/
|
|
14
|
-
static requestEventAccess(eventId
|
|
11
|
+
static requestEventAccess(eventId) {
|
|
15
12
|
return __request(OpenAPI, {
|
|
16
13
|
method: 'GET',
|
|
17
14
|
url: '/code/access',
|
|
18
|
-
headers: {
|
|
19
|
-
'shopperguid': shopperguid,
|
|
20
|
-
'accountid': accountid,
|
|
21
|
-
'apikey': apikey,
|
|
22
|
-
},
|
|
23
15
|
query: {
|
|
24
16
|
'eventId': eventId,
|
|
25
17
|
},
|
|
@@ -33,22 +25,14 @@ export class CodeService {
|
|
|
33
25
|
/**
|
|
34
26
|
* Apply a code to the current shopper session
|
|
35
27
|
* Applies a code to the current shopper session.
|
|
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 Code to be applied
|
|
40
29
|
* @returns SuccessWithTime Code applied successfully.
|
|
41
30
|
* @throws ApiError
|
|
42
31
|
*/
|
|
43
|
-
static applyCode(
|
|
32
|
+
static applyCode(requestBody) {
|
|
44
33
|
return __request(OpenAPI, {
|
|
45
34
|
method: 'POST',
|
|
46
35
|
url: '/code',
|
|
47
|
-
headers: {
|
|
48
|
-
'shopperguid': shopperguid,
|
|
49
|
-
'accountid': accountid,
|
|
50
|
-
'apikey': apikey,
|
|
51
|
-
},
|
|
52
36
|
body: requestBody,
|
|
53
37
|
mediaType: 'application/json',
|
|
54
38
|
errors: {
|
|
@@ -61,22 +45,14 @@ export class CodeService {
|
|
|
61
45
|
/**
|
|
62
46
|
* Apply a coupon to the current shopper session
|
|
63
47
|
* Applies a coupon to the current shopper session.
|
|
64
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
65
|
-
* @param accountid Unique identifier for the account.
|
|
66
|
-
* @param apikey API key for authentication.
|
|
67
48
|
* @param requestBody Coupon code to be applied
|
|
68
49
|
* @returns UniversalCodeResponse Coupon applied successfully.
|
|
69
50
|
* @throws ApiError
|
|
70
51
|
*/
|
|
71
|
-
static applyCoupon(
|
|
52
|
+
static applyCoupon(requestBody) {
|
|
72
53
|
return __request(OpenAPI, {
|
|
73
54
|
method: 'POST',
|
|
74
55
|
url: '/code/discount',
|
|
75
|
-
headers: {
|
|
76
|
-
'shopperguid': shopperguid,
|
|
77
|
-
'accountid': accountid,
|
|
78
|
-
'apikey': apikey,
|
|
79
|
-
},
|
|
80
56
|
body: requestBody,
|
|
81
57
|
mediaType: 'application/json',
|
|
82
58
|
errors: {
|
|
@@ -89,22 +65,14 @@ export class CodeService {
|
|
|
89
65
|
/**
|
|
90
66
|
* Remove a coupon from the current shopper session
|
|
91
67
|
* Removes a coupon from the current shopper session.
|
|
92
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
93
|
-
* @param accountid Unique identifier for the account.
|
|
94
|
-
* @param apikey API key for authentication.
|
|
95
68
|
* @param requestBody Coupon code to be removed
|
|
96
69
|
* @returns UniversalCodeResponse Coupon removed successfully.
|
|
97
70
|
* @throws ApiError
|
|
98
71
|
*/
|
|
99
|
-
static removeCoupon(
|
|
72
|
+
static removeCoupon(requestBody) {
|
|
100
73
|
return __request(OpenAPI, {
|
|
101
74
|
method: 'DELETE',
|
|
102
75
|
url: '/code/discount',
|
|
103
|
-
headers: {
|
|
104
|
-
'shopperguid': shopperguid,
|
|
105
|
-
'accountid': accountid,
|
|
106
|
-
'apikey': apikey,
|
|
107
|
-
},
|
|
108
76
|
body: requestBody,
|
|
109
77
|
mediaType: 'application/json',
|
|
110
78
|
errors: {
|
|
@@ -117,22 +85,14 @@ export class CodeService {
|
|
|
117
85
|
/**
|
|
118
86
|
* Apply Priority Code
|
|
119
87
|
* Applies a priority code to the cart.
|
|
120
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
121
|
-
* @param accountid Unique identifier for the account.
|
|
122
|
-
* @param apikey API key for authentication.
|
|
123
88
|
* @param requestBody Priority code data to be applied
|
|
124
89
|
* @returns SuccessWithTime Priority code applied successfully.
|
|
125
90
|
* @throws ApiError
|
|
126
91
|
*/
|
|
127
|
-
static applyPriorityCode(
|
|
92
|
+
static applyPriorityCode(requestBody) {
|
|
128
93
|
return __request(OpenAPI, {
|
|
129
94
|
method: 'POST',
|
|
130
95
|
url: '/code/priority',
|
|
131
|
-
headers: {
|
|
132
|
-
'shopperguid': shopperguid,
|
|
133
|
-
'accountid': accountid,
|
|
134
|
-
'apikey': apikey,
|
|
135
|
-
},
|
|
136
96
|
body: requestBody,
|
|
137
97
|
mediaType: 'application/json',
|
|
138
98
|
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
|
}
|
|
@@ -4,21 +4,13 @@ export class DonationService {
|
|
|
4
4
|
/**
|
|
5
5
|
* Get all donations for a shopper
|
|
6
6
|
* Retrieves all donations and contributions associated with the specified shopper and account.
|
|
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 DonationsandContributions Returns a list of donations and contributions for the shopper.
|
|
11
8
|
* @throws ApiError
|
|
12
9
|
*/
|
|
13
|
-
static getDonations(
|
|
10
|
+
static getDonations() {
|
|
14
11
|
return __request(OpenAPI, {
|
|
15
12
|
method: 'GET',
|
|
16
13
|
url: '/donation',
|
|
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.`,
|
|
@@ -30,22 +22,16 @@ export class DonationService {
|
|
|
30
22
|
* Add a donation or contribution
|
|
31
23
|
* Adds a new donation or contribution for the specified shopper and account.
|
|
32
24
|
* @param ipAddress API key for authentication.
|
|
33
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
34
|
-
* @param accountid Unique identifier for the account.
|
|
35
|
-
* @param apikey API key for authentication.
|
|
36
25
|
* @param requestBody Donation or contribution details to add.
|
|
37
26
|
* @returns DonationResult Returns the result of the donation addition.
|
|
38
27
|
* @throws ApiError
|
|
39
28
|
*/
|
|
40
|
-
static postDonation(ipAddress,
|
|
29
|
+
static postDonation(ipAddress, requestBody) {
|
|
41
30
|
return __request(OpenAPI, {
|
|
42
31
|
method: 'POST',
|
|
43
32
|
url: '/donation',
|
|
44
33
|
headers: {
|
|
45
34
|
'ipAddress': ipAddress,
|
|
46
|
-
'shopperguid': shopperguid,
|
|
47
|
-
'accountid': accountid,
|
|
48
|
-
'apikey': apikey,
|
|
49
35
|
},
|
|
50
36
|
body: requestBody,
|
|
51
37
|
mediaType: 'application/json',
|