@fenixalliance/abs-api-client 1.0.9 → 1.0.11
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/app/index.js +3 -3
- package/app/index.ts +2 -2
- package/clients/cartService/index.js +7 -3
- package/clients/cartService/index.ts +3 -1
- package/clients/cartService/services/CartLinesService.js +173 -0
- package/clients/cartService/services/CartLinesService.ts +203 -0
- package/clients/cartService/services/{CartsService.js → CartService.js} +137 -44
- package/clients/cartService/services/{CartsService.ts → CartService.ts} +135 -42
- package/clients/cartService/services/ECommerceService.js +1104 -0
- package/clients/cartService/services/ECommerceService.ts +1289 -0
- package/clients/cartService/services/WishListsService.js +321 -0
- package/clients/cartService/services/WishListsService.ts +373 -0
- package/clients/contentService/services/PortalsService.js +22 -11
- package/clients/contentService/services/PortalsService.ts +22 -11
- package/clients/crmService/services/ContactsService.js +86 -28
- package/clients/crmService/services/ContactsService.ts +86 -28
- package/clients/holderService/index.js +7 -3
- package/clients/holderService/index.ts +3 -2
- package/clients/holderService/services/{HolderService.js → IdentityService.js} +58 -176
- package/clients/holderService/services/{HolderService.ts → IdentityService.ts} +58 -200
- package/clients/holderService/services/TenantsService.js +151 -0
- package/clients/holderService/services/TenantsService.ts +176 -0
- package/clients/holderService/services/UserService.js +364 -0
- package/clients/holderService/services/UserService.ts +421 -0
- package/clients/storageService/services/AvatarsService.js +19 -8
- package/clients/storageService/services/AvatarsService.ts +19 -8
- package/clients/systemService/services/ModulesService.js +4 -2
- package/clients/systemService/services/ModulesService.ts +4 -2
- package/clients/systemService/services/TenantsService.js +24 -8
- package/clients/systemService/services/TenantsService.ts +24 -8
- package/clients/tenantService/index.js +1 -29
- package/clients/tenantService/index.ts +7 -20
- package/clients/{holderService/models/EmptyEnvelopeEnvelope.ts → tenantService/models/TenantIndustryDtoListEnvelope.ts} +3 -3
- package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamContactEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.ts → TenantTeamDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamEmployeeEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.ts → TenantTeamProjectEnrollmentDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.ts → TenantTeamRecordDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.ts → TenantTypeDtoListEnvelope.ts} +1 -1
- package/clients/tenantService/services/SizesService.js +15 -5
- package/clients/tenantService/services/SizesService.ts +15 -5
- package/clients/tenantService/services/TenantsService.js +2554 -233
- package/clients/tenantService/services/TenantsService.ts +3004 -307
- package/package.json +1 -1
- package/schemas/cartService/schema.s.ts +2239 -1868
- package/schemas/contentService/schema.s.ts +850 -817
- package/schemas/crmService/schema.s.ts +1776 -1516
- package/schemas/holderService/schema.s.ts +256 -115
- package/schemas/storageService/schema.s.ts +439 -394
- package/schemas/systemService/schema.s.ts +465 -387
- package/schemas/tenantService/schema.s.ts +5713 -4820
- package/clients/tenantService/services/DepartmentsService.js +0 -161
- package/clients/tenantService/services/DepartmentsService.ts +0 -192
- package/clients/tenantService/services/EmployeeEnrollmentsService.js +0 -153
- package/clients/tenantService/services/EmployeeEnrollmentsService.ts +0 -181
- package/clients/tenantService/services/EnrollmentsService.js +0 -163
- package/clients/tenantService/services/EnrollmentsService.ts +0 -195
- package/clients/tenantService/services/IndustriesService.js +0 -161
- package/clients/tenantService/services/IndustriesService.ts +0 -190
- package/clients/tenantService/services/InvitationsService.js +0 -128
- package/clients/tenantService/services/InvitationsService.ts +0 -150
- package/clients/tenantService/services/PositionsService.js +0 -161
- package/clients/tenantService/services/PositionsService.ts +0 -192
- package/clients/tenantService/services/SegmentsService.js +0 -161
- package/clients/tenantService/services/SegmentsService.ts +0 -191
- package/clients/tenantService/services/TeamContactEnrollmentsService.js +0 -161
- package/clients/tenantService/services/TeamContactEnrollmentsService.ts +0 -191
- package/clients/tenantService/services/TeamProjectEnrollmentService.js +0 -153
- package/clients/tenantService/services/TeamProjectEnrollmentService.ts +0 -181
- package/clients/tenantService/services/TeamRecordsService.js +0 -161
- package/clients/tenantService/services/TeamRecordsService.ts +0 -192
- package/clients/tenantService/services/TeamsService.js +0 -161
- package/clients/tenantService/services/TeamsService.ts +0 -192
- package/clients/tenantService/services/TerritoriesService.js +0 -161
- package/clients/tenantService/services/TerritoriesService.ts +0 -192
- package/clients/tenantService/services/TypesService.js +0 -149
- package/clients/tenantService/services/TypesService.ts +0 -176
- package/clients/tenantService/services/UnitsService.js +0 -159
- package/clients/tenantService/services/UnitsService.ts +0 -190
- /package/clients/{holderService/models/EmptyEnvelopeEnvelope.js → tenantService/models/TenantIndustryDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamContactEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamContactEnrollmentDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamDtoIReadOnlyCollectionEnvelope.js → TenantTeamDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamEmployeeEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamEmployeeEnrollmentDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamProjectEnrollmentDtoIReadOnlyCollectionEnvelope.js → TenantTeamProjectEnrollmentDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTeamRecordDtoIReadOnlyCollectionEnvelope.js → TenantTeamRecordDtoListEnvelope.js} +0 -0
- /package/clients/tenantService/models/{TenantTypeDtoIReadOnlyCollectionEnvelope.js → TenantTypeDtoListEnvelope.js} +0 -0
package/app/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrdersService = exports.ContactsService = exports.
|
|
3
|
+
exports.OrdersService = exports.ContactsService = exports.CartService = exports.TenantsService = exports.UserService = void 0;
|
|
4
4
|
var holderService_1 = require("../clients/holderService");
|
|
5
|
-
Object.defineProperty(exports, "
|
|
5
|
+
Object.defineProperty(exports, "UserService", { enumerable: true, get: function () { return holderService_1.UserService; } });
|
|
6
6
|
var tenantService_1 = require("../clients/tenantService");
|
|
7
7
|
Object.defineProperty(exports, "TenantsService", { enumerable: true, get: function () { return tenantService_1.TenantsService; } });
|
|
8
8
|
var cartService_1 = require("../clients/cartService");
|
|
9
|
-
Object.defineProperty(exports, "
|
|
9
|
+
Object.defineProperty(exports, "CartService", { enumerable: true, get: function () { return cartService_1.CartService; } });
|
|
10
10
|
var crmService_1 = require("../clients/crmService");
|
|
11
11
|
Object.defineProperty(exports, "ContactsService", { enumerable: true, get: function () { return crmService_1.ContactsService; } });
|
|
12
12
|
var ordersService_1 = require("../clients/ordersService");
|
package/app/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { UserService } from "../clients/holderService";
|
|
2
2
|
export { TenantsService } from "../clients/tenantService";
|
|
3
|
-
export {
|
|
3
|
+
export { CartService } from "../clients/cartService";
|
|
4
4
|
export { ContactsService } from "../clients/crmService";
|
|
5
5
|
export { OrdersService } from "../clients/ordersService";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WishListsService = exports.RecordsService = exports.CompareService = exports.
|
|
3
|
+
exports.WishListsService = exports.RecordsService = exports.ECommerceService = exports.CompareService = exports.CartLinesService = exports.CartService = exports.ItemCartRecordDto = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.ApiError = void 0;
|
|
4
4
|
/* generated using openapi-typescript-codegen -- do no edit */
|
|
5
5
|
/* istanbul ignore file */
|
|
6
6
|
/* tslint:disable */
|
|
@@ -14,10 +14,14 @@ var OpenAPI_1 = require("./core/OpenAPI");
|
|
|
14
14
|
Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } });
|
|
15
15
|
var ItemCartRecordDto_1 = require("./models/ItemCartRecordDto");
|
|
16
16
|
Object.defineProperty(exports, "ItemCartRecordDto", { enumerable: true, get: function () { return ItemCartRecordDto_1.ItemCartRecordDto; } });
|
|
17
|
-
var
|
|
18
|
-
Object.defineProperty(exports, "
|
|
17
|
+
var CartService_1 = require("./services/CartService");
|
|
18
|
+
Object.defineProperty(exports, "CartService", { enumerable: true, get: function () { return CartService_1.CartService; } });
|
|
19
|
+
var CartLinesService_1 = require("./services/CartLinesService");
|
|
20
|
+
Object.defineProperty(exports, "CartLinesService", { enumerable: true, get: function () { return CartLinesService_1.CartLinesService; } });
|
|
19
21
|
var CompareService_1 = require("./services/CompareService");
|
|
20
22
|
Object.defineProperty(exports, "CompareService", { enumerable: true, get: function () { return CompareService_1.CompareService; } });
|
|
23
|
+
var ECommerceService_1 = require("./services/ECommerceService");
|
|
24
|
+
Object.defineProperty(exports, "ECommerceService", { enumerable: true, get: function () { return ECommerceService_1.ECommerceService; } });
|
|
21
25
|
var RecordsService_1 = require("./services/RecordsService");
|
|
22
26
|
Object.defineProperty(exports, "RecordsService", { enumerable: true, get: function () { return RecordsService_1.RecordsService; } });
|
|
23
27
|
var WishListsService_1 = require("./services/WishListsService");
|
|
@@ -35,7 +35,9 @@ export type { WishListDtoEnvelope } from './models/WishListDtoEnvelope';
|
|
|
35
35
|
export type { WishListItemRecordDto } from './models/WishListItemRecordDto';
|
|
36
36
|
export type { WishListUpdateDto } from './models/WishListUpdateDto';
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { CartService } from './services/CartService';
|
|
39
|
+
export { CartLinesService } from './services/CartLinesService';
|
|
39
40
|
export { CompareService } from './services/CompareService';
|
|
41
|
+
export { ECommerceService } from './services/ECommerceService';
|
|
40
42
|
export { RecordsService } from './services/RecordsService';
|
|
41
43
|
export { WishListsService } from './services/WishListsService';
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CartLinesService = void 0;
|
|
4
|
+
const OpenAPI_1 = require("../core/OpenAPI");
|
|
5
|
+
const request_1 = require("../core/request");
|
|
6
|
+
class CartLinesService {
|
|
7
|
+
/**
|
|
8
|
+
* Get all cart lines
|
|
9
|
+
* Get all cart lines
|
|
10
|
+
* @param cartId
|
|
11
|
+
* @param xApiVersion
|
|
12
|
+
* @returns ItemCartRecordDtoListEnvelope OK
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
static getCartLinesAsync(cartId, xApiVersion) {
|
|
16
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
17
|
+
method: 'GET',
|
|
18
|
+
url: '/api/v2/CartService/Carts/{cartId}/Lines',
|
|
19
|
+
path: {
|
|
20
|
+
'cartId': cartId,
|
|
21
|
+
},
|
|
22
|
+
headers: {
|
|
23
|
+
'x-api-version': xApiVersion,
|
|
24
|
+
},
|
|
25
|
+
errors: {
|
|
26
|
+
401: `Unauthorized`,
|
|
27
|
+
404: `Not Found`,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Get a cart line by ID
|
|
33
|
+
* Get a cart line by ID
|
|
34
|
+
* @param cartId
|
|
35
|
+
* @param lineId
|
|
36
|
+
* @param xApiVersion
|
|
37
|
+
* @returns EmptyEnvelope OK
|
|
38
|
+
* @throws ApiError
|
|
39
|
+
*/
|
|
40
|
+
static getCartLineAsync(cartId, lineId, xApiVersion) {
|
|
41
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
42
|
+
method: 'GET',
|
|
43
|
+
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}',
|
|
44
|
+
path: {
|
|
45
|
+
'cartId': cartId,
|
|
46
|
+
'lineId': lineId,
|
|
47
|
+
},
|
|
48
|
+
headers: {
|
|
49
|
+
'x-api-version': xApiVersion,
|
|
50
|
+
},
|
|
51
|
+
errors: {
|
|
52
|
+
401: `Unauthorized`,
|
|
53
|
+
404: `Not Found`,
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Update a cart line
|
|
59
|
+
* Update a cart line
|
|
60
|
+
* @param cartId
|
|
61
|
+
* @param lineId
|
|
62
|
+
* @param xApiVersion
|
|
63
|
+
* @param requestBody
|
|
64
|
+
* @returns EmptyEnvelope OK
|
|
65
|
+
* @throws ApiError
|
|
66
|
+
*/
|
|
67
|
+
static updateCartLineAsync(cartId, lineId, xApiVersion, requestBody) {
|
|
68
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
69
|
+
method: 'PUT',
|
|
70
|
+
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}',
|
|
71
|
+
path: {
|
|
72
|
+
'cartId': cartId,
|
|
73
|
+
'lineId': lineId,
|
|
74
|
+
},
|
|
75
|
+
headers: {
|
|
76
|
+
'x-api-version': xApiVersion,
|
|
77
|
+
},
|
|
78
|
+
body: requestBody,
|
|
79
|
+
mediaType: 'application/json',
|
|
80
|
+
errors: {
|
|
81
|
+
401: `Unauthorized`,
|
|
82
|
+
404: `Not Found`,
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Remove a cart line
|
|
88
|
+
* Remove a cart line
|
|
89
|
+
* @param cartId
|
|
90
|
+
* @param lineId
|
|
91
|
+
* @param xApiVersion
|
|
92
|
+
* @returns EmptyEnvelope OK
|
|
93
|
+
* @throws ApiError
|
|
94
|
+
*/
|
|
95
|
+
static removeCartLineAsync(cartId, lineId, xApiVersion) {
|
|
96
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
97
|
+
method: 'DELETE',
|
|
98
|
+
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}',
|
|
99
|
+
path: {
|
|
100
|
+
'cartId': cartId,
|
|
101
|
+
'lineId': lineId,
|
|
102
|
+
},
|
|
103
|
+
headers: {
|
|
104
|
+
'x-api-version': xApiVersion,
|
|
105
|
+
},
|
|
106
|
+
errors: {
|
|
107
|
+
401: `Unauthorized`,
|
|
108
|
+
404: `Not Found`,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Increase the quantity of a cart line
|
|
114
|
+
* Increase the quantity of a cart line
|
|
115
|
+
* @param cartId
|
|
116
|
+
* @param lineId
|
|
117
|
+
* @param quantity
|
|
118
|
+
* @param xApiVersion
|
|
119
|
+
* @returns EmptyEnvelope OK
|
|
120
|
+
* @throws ApiError
|
|
121
|
+
*/
|
|
122
|
+
static increaseCartLineAsync(cartId, lineId, quantity = 1, xApiVersion) {
|
|
123
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
124
|
+
method: 'PUT',
|
|
125
|
+
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}/Increase',
|
|
126
|
+
path: {
|
|
127
|
+
'cartId': cartId,
|
|
128
|
+
'lineId': lineId,
|
|
129
|
+
},
|
|
130
|
+
headers: {
|
|
131
|
+
'x-api-version': xApiVersion,
|
|
132
|
+
},
|
|
133
|
+
query: {
|
|
134
|
+
'quantity': quantity,
|
|
135
|
+
},
|
|
136
|
+
errors: {
|
|
137
|
+
401: `Unauthorized`,
|
|
138
|
+
404: `Not Found`,
|
|
139
|
+
},
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Decrease the quantity of a cart line
|
|
144
|
+
* Decrease the quantity of a cart line
|
|
145
|
+
* @param cartId
|
|
146
|
+
* @param lineId
|
|
147
|
+
* @param quantity
|
|
148
|
+
* @param xApiVersion
|
|
149
|
+
* @returns EmptyEnvelope OK
|
|
150
|
+
* @throws ApiError
|
|
151
|
+
*/
|
|
152
|
+
static decreaseCartLineAsync(cartId, lineId, quantity = 1, xApiVersion) {
|
|
153
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
154
|
+
method: 'PUT',
|
|
155
|
+
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}/Decrease',
|
|
156
|
+
path: {
|
|
157
|
+
'cartId': cartId,
|
|
158
|
+
'lineId': lineId,
|
|
159
|
+
},
|
|
160
|
+
headers: {
|
|
161
|
+
'x-api-version': xApiVersion,
|
|
162
|
+
},
|
|
163
|
+
query: {
|
|
164
|
+
'quantity': quantity,
|
|
165
|
+
},
|
|
166
|
+
errors: {
|
|
167
|
+
401: `Unauthorized`,
|
|
168
|
+
404: `Not Found`,
|
|
169
|
+
},
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.CartLinesService = CartLinesService;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
import type { EmptyEnvelope } from '../models/EmptyEnvelope';
|
|
6
|
+
import type { ItemCartRecordDtoListEnvelope } from '../models/ItemCartRecordDtoListEnvelope';
|
|
7
|
+
import type { ItemCartRecordUpdateDto } from '../models/ItemCartRecordUpdateDto';
|
|
8
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
|
+
import { OpenAPI } from '../core/OpenAPI';
|
|
10
|
+
import { request as __request } from '../core/request';
|
|
11
|
+
export class CartLinesService {
|
|
12
|
+
/**
|
|
13
|
+
* Get all cart lines
|
|
14
|
+
* Get all cart lines
|
|
15
|
+
* @param cartId
|
|
16
|
+
* @param xApiVersion
|
|
17
|
+
* @returns ItemCartRecordDtoListEnvelope OK
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
public static getCartLinesAsync(
|
|
21
|
+
cartId: string,
|
|
22
|
+
xApiVersion?: string,
|
|
23
|
+
): CancelablePromise<ItemCartRecordDtoListEnvelope> {
|
|
24
|
+
return __request(OpenAPI, {
|
|
25
|
+
method: 'GET',
|
|
26
|
+
url: '/api/v2/CartService/Carts/{cartId}/Lines',
|
|
27
|
+
path: {
|
|
28
|
+
'cartId': cartId,
|
|
29
|
+
},
|
|
30
|
+
headers: {
|
|
31
|
+
'x-api-version': xApiVersion,
|
|
32
|
+
},
|
|
33
|
+
errors: {
|
|
34
|
+
401: `Unauthorized`,
|
|
35
|
+
404: `Not Found`,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Get a cart line by ID
|
|
41
|
+
* Get a cart line by ID
|
|
42
|
+
* @param cartId
|
|
43
|
+
* @param lineId
|
|
44
|
+
* @param xApiVersion
|
|
45
|
+
* @returns EmptyEnvelope OK
|
|
46
|
+
* @throws ApiError
|
|
47
|
+
*/
|
|
48
|
+
public static getCartLineAsync(
|
|
49
|
+
cartId: string,
|
|
50
|
+
lineId: string,
|
|
51
|
+
xApiVersion?: string,
|
|
52
|
+
): CancelablePromise<EmptyEnvelope> {
|
|
53
|
+
return __request(OpenAPI, {
|
|
54
|
+
method: 'GET',
|
|
55
|
+
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}',
|
|
56
|
+
path: {
|
|
57
|
+
'cartId': cartId,
|
|
58
|
+
'lineId': lineId,
|
|
59
|
+
},
|
|
60
|
+
headers: {
|
|
61
|
+
'x-api-version': xApiVersion,
|
|
62
|
+
},
|
|
63
|
+
errors: {
|
|
64
|
+
401: `Unauthorized`,
|
|
65
|
+
404: `Not Found`,
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Update a cart line
|
|
71
|
+
* Update a cart line
|
|
72
|
+
* @param cartId
|
|
73
|
+
* @param lineId
|
|
74
|
+
* @param xApiVersion
|
|
75
|
+
* @param requestBody
|
|
76
|
+
* @returns EmptyEnvelope OK
|
|
77
|
+
* @throws ApiError
|
|
78
|
+
*/
|
|
79
|
+
public static updateCartLineAsync(
|
|
80
|
+
cartId: string,
|
|
81
|
+
lineId: string,
|
|
82
|
+
xApiVersion?: string,
|
|
83
|
+
requestBody?: ItemCartRecordUpdateDto,
|
|
84
|
+
): CancelablePromise<EmptyEnvelope> {
|
|
85
|
+
return __request(OpenAPI, {
|
|
86
|
+
method: 'PUT',
|
|
87
|
+
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}',
|
|
88
|
+
path: {
|
|
89
|
+
'cartId': cartId,
|
|
90
|
+
'lineId': lineId,
|
|
91
|
+
},
|
|
92
|
+
headers: {
|
|
93
|
+
'x-api-version': xApiVersion,
|
|
94
|
+
},
|
|
95
|
+
body: requestBody,
|
|
96
|
+
mediaType: 'application/json',
|
|
97
|
+
errors: {
|
|
98
|
+
401: `Unauthorized`,
|
|
99
|
+
404: `Not Found`,
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Remove a cart line
|
|
105
|
+
* Remove a cart line
|
|
106
|
+
* @param cartId
|
|
107
|
+
* @param lineId
|
|
108
|
+
* @param xApiVersion
|
|
109
|
+
* @returns EmptyEnvelope OK
|
|
110
|
+
* @throws ApiError
|
|
111
|
+
*/
|
|
112
|
+
public static removeCartLineAsync(
|
|
113
|
+
cartId: string,
|
|
114
|
+
lineId: string,
|
|
115
|
+
xApiVersion?: string,
|
|
116
|
+
): CancelablePromise<EmptyEnvelope> {
|
|
117
|
+
return __request(OpenAPI, {
|
|
118
|
+
method: 'DELETE',
|
|
119
|
+
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}',
|
|
120
|
+
path: {
|
|
121
|
+
'cartId': cartId,
|
|
122
|
+
'lineId': lineId,
|
|
123
|
+
},
|
|
124
|
+
headers: {
|
|
125
|
+
'x-api-version': xApiVersion,
|
|
126
|
+
},
|
|
127
|
+
errors: {
|
|
128
|
+
401: `Unauthorized`,
|
|
129
|
+
404: `Not Found`,
|
|
130
|
+
},
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Increase the quantity of a cart line
|
|
135
|
+
* Increase the quantity of a cart line
|
|
136
|
+
* @param cartId
|
|
137
|
+
* @param lineId
|
|
138
|
+
* @param quantity
|
|
139
|
+
* @param xApiVersion
|
|
140
|
+
* @returns EmptyEnvelope OK
|
|
141
|
+
* @throws ApiError
|
|
142
|
+
*/
|
|
143
|
+
public static increaseCartLineAsync(
|
|
144
|
+
cartId: string,
|
|
145
|
+
lineId: string,
|
|
146
|
+
quantity: number = 1,
|
|
147
|
+
xApiVersion?: string,
|
|
148
|
+
): CancelablePromise<EmptyEnvelope> {
|
|
149
|
+
return __request(OpenAPI, {
|
|
150
|
+
method: 'PUT',
|
|
151
|
+
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}/Increase',
|
|
152
|
+
path: {
|
|
153
|
+
'cartId': cartId,
|
|
154
|
+
'lineId': lineId,
|
|
155
|
+
},
|
|
156
|
+
headers: {
|
|
157
|
+
'x-api-version': xApiVersion,
|
|
158
|
+
},
|
|
159
|
+
query: {
|
|
160
|
+
'quantity': quantity,
|
|
161
|
+
},
|
|
162
|
+
errors: {
|
|
163
|
+
401: `Unauthorized`,
|
|
164
|
+
404: `Not Found`,
|
|
165
|
+
},
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Decrease the quantity of a cart line
|
|
170
|
+
* Decrease the quantity of a cart line
|
|
171
|
+
* @param cartId
|
|
172
|
+
* @param lineId
|
|
173
|
+
* @param quantity
|
|
174
|
+
* @param xApiVersion
|
|
175
|
+
* @returns EmptyEnvelope OK
|
|
176
|
+
* @throws ApiError
|
|
177
|
+
*/
|
|
178
|
+
public static decreaseCartLineAsync(
|
|
179
|
+
cartId: string,
|
|
180
|
+
lineId: string,
|
|
181
|
+
quantity: number = 1,
|
|
182
|
+
xApiVersion?: string,
|
|
183
|
+
): CancelablePromise<EmptyEnvelope> {
|
|
184
|
+
return __request(OpenAPI, {
|
|
185
|
+
method: 'PUT',
|
|
186
|
+
url: '/api/v2/CartService/Carts/{cartId}/Lines/{lineId}/Decrease',
|
|
187
|
+
path: {
|
|
188
|
+
'cartId': cartId,
|
|
189
|
+
'lineId': lineId,
|
|
190
|
+
},
|
|
191
|
+
headers: {
|
|
192
|
+
'x-api-version': xApiVersion,
|
|
193
|
+
},
|
|
194
|
+
query: {
|
|
195
|
+
'quantity': quantity,
|
|
196
|
+
},
|
|
197
|
+
errors: {
|
|
198
|
+
401: `Unauthorized`,
|
|
199
|
+
404: `Not Found`,
|
|
200
|
+
},
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|