@lcdp/api-react-rest-client 3.1.7-LDS-5578-api-distinct-status-code-accodi.23847291272 → 3.1.7-develop.23855465779
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/auth/src/models/RestError.d.ts +5 -3
- package/auth/src/models/RestError.js +5 -3
- package/auth/src/models/index.d.ts +0 -4
- package/auth/src/models/index.js +0 -4
- package/catalog/src/models/RestError.d.ts +5 -3
- package/catalog/src/models/RestError.js +5 -3
- package/chargebee-hook/src/models/RestError.d.ts +5 -3
- package/chargebee-hook/src/models/RestError.js +5 -3
- package/configuration/src/models/RestError.d.ts +5 -3
- package/configuration/src/models/RestError.js +5 -3
- package/content/src/models/RestError.d.ts +5 -3
- package/content/src/models/RestError.js +5 -3
- package/favorite/src/models/RestError.d.ts +5 -3
- package/favorite/src/models/RestError.js +5 -3
- package/inventory/src/models/RestError.d.ts +5 -3
- package/inventory/src/models/RestError.js +5 -3
- package/invoice/src/models/RestError.d.ts +5 -3
- package/invoice/src/models/RestError.js +5 -3
- package/laboratory-store/src/models/RestError.d.ts +5 -3
- package/laboratory-store/src/models/RestError.js +5 -3
- package/lexicon/src/models/RestError.d.ts +5 -3
- package/lexicon/src/models/RestError.js +5 -3
- package/litigation/src/models/RestError.d.ts +5 -3
- package/litigation/src/models/RestError.js +5 -3
- package/magic-cart/src/models/ExpressOrder.d.ts +3 -3
- package/magic-cart/src/models/ExpressOrder.js +3 -3
- package/magic-cart/src/models/SaleOfferProposal.d.ts +51 -0
- package/magic-cart/src/models/SaleOfferProposal.js +61 -0
- package/magic-cart/src/models/SellerProposal.d.ts +45 -0
- package/magic-cart/src/models/SellerProposal.js +57 -0
- package/magic-cart/src/models/index.d.ts +2 -1
- package/magic-cart/src/models/index.js +2 -1
- package/mangopay-hook/src/models/RestError.d.ts +5 -3
- package/mangopay-hook/src/models/RestError.js +5 -3
- package/notification/src/models/RestError.d.ts +5 -3
- package/notification/src/models/RestError.js +5 -3
- package/order/src/apis/ManageMetaOrderApi.d.ts +45 -0
- package/{shopping-cart/src/apis/SearchCartLineApi.js → order/src/apis/ManageMetaOrderApi.js} +41 -46
- package/order/src/apis/ManageOrderApi.d.ts +8 -8
- package/order/src/apis/ManageOrderApi.js +10 -9
- package/order/src/apis/index.d.ts +1 -2
- package/order/src/apis/index.js +1 -2
- package/order/src/models/AnyMetaOrderWarning.d.ts +26 -0
- package/order/src/models/AnyMetaOrderWarning.js +50 -0
- package/order/src/models/MetaOrder.d.ts +64 -0
- package/order/src/models/MetaOrder.js +70 -0
- package/order/src/models/MetaOrderCreationParameters.d.ts +38 -0
- package/order/src/models/MetaOrderCreationParameters.js +52 -0
- package/order/src/models/MetaOrderCreationSubCartParameters.d.ts +31 -0
- package/order/src/models/MetaOrderCreationSubCartParameters.js +47 -0
- package/order/src/models/MetaOrderPrices.d.ts +79 -0
- package/order/src/models/MetaOrderPrices.js +79 -0
- package/order/src/models/MetaOrderWarning.d.ts +31 -0
- package/order/src/models/MetaOrderWarning.js +47 -0
- package/order/src/models/MetaOrderWithWarnings.d.ts +39 -0
- package/order/src/models/MetaOrderWithWarnings.js +49 -0
- package/order/src/models/Order.d.ts +75 -80
- package/order/src/models/Order.js +48 -53
- package/order/src/models/OrderItemPrices.d.ts +3 -3
- package/order/src/models/{ForeorderItemWarning.d.ts → OrderItemWarning.d.ts} +18 -23
- package/order/src/models/{ForeorderItemWarning.js → OrderItemWarning.js} +15 -18
- package/order/src/models/OrderWarning.d.ts +51 -0
- package/order/src/models/{ForeorderWarning.js → OrderWarning.js} +12 -12
- package/order/src/models/RestError.d.ts +5 -3
- package/order/src/models/RestError.js +5 -3
- package/order/src/models/ShoppedOffer.d.ts +2 -2
- package/order/src/models/ShoppedOffer.js +2 -2
- package/order/src/models/index.d.ts +9 -17
- package/order/src/models/index.js +9 -17
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +5 -3
- package/product/src/models/RestError.js +5 -3
- package/pub/src/models/RestError.d.ts +5 -3
- package/pub/src/models/RestError.js +5 -3
- package/rfx/src/models/RestError.d.ts +5 -3
- package/rfx/src/models/RestError.js +5 -3
- package/sale-offer/src/models/RestError.d.ts +5 -3
- package/sale-offer/src/models/RestError.js +5 -3
- package/servant/src/models/RestError.d.ts +5 -3
- package/servant/src/models/RestError.js +5 -3
- package/shipment/src/models/RestError.d.ts +5 -3
- package/shipment/src/models/RestError.js +5 -3
- package/shopping-cart/src/apis/ManageCartApi.d.ts +24 -35
- package/shopping-cart/src/apis/ManageCartApi.js +120 -57
- package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +107 -0
- package/shopping-cart/src/apis/ManageCartSubCartApi.js +556 -0
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.d.ts +151 -0
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +879 -0
- package/shopping-cart/src/apis/index.d.ts +2 -3
- package/shopping-cart/src/apis/index.js +2 -3
- package/shopping-cart/src/models/Cart.d.ts +4 -61
- package/shopping-cart/src/models/Cart.js +2 -47
- package/shopping-cart/src/models/CartSubCart.d.ts +76 -0
- package/shopping-cart/src/models/CartSubCart.js +78 -0
- package/shopping-cart/src/models/{CartLine.d.ts → CartSubCartLine.d.ts} +13 -13
- package/shopping-cart/src/models/{CartLine.js → CartSubCartLine.js} +11 -11
- package/shopping-cart/src/models/CartSubCartLineUpdateParameters.d.ts +37 -0
- package/shopping-cart/src/models/CartSubCartLineUpdateParameters.js +49 -0
- package/shopping-cart/src/models/{CartTransport.d.ts → CartSubCartTransport.d.ts} +12 -12
- package/shopping-cart/src/models/{CartTransport.js → CartSubCartTransport.js} +11 -11
- package/shopping-cart/src/models/RestError.d.ts +5 -3
- package/shopping-cart/src/models/RestError.js +5 -3
- package/shopping-cart/src/models/ShoppedOffer.d.ts +2 -2
- package/shopping-cart/src/models/ShoppedOffer.js +2 -2
- package/shopping-cart/src/models/index.d.ts +4 -12
- package/shopping-cart/src/models/index.js +4 -12
- package/smuggler/src/models/RestError.d.ts +5 -3
- package/smuggler/src/models/RestError.js +5 -3
- package/statistic/src/models/RestError.d.ts +5 -3
- package/statistic/src/models/RestError.js +5 -3
- package/third-party/src/models/RestError.d.ts +5 -3
- package/third-party/src/models/RestError.js +5 -3
- package/ubo/src/models/RestError.d.ts +5 -3
- package/ubo/src/models/RestError.js +5 -3
- package/user/src/models/RestError.d.ts +5 -3
- package/user/src/models/RestError.js +5 -3
- package/wish/src/models/RestError.d.ts +5 -3
- package/wish/src/models/RestError.js +5 -3
- package/auth/src/models/AnonymousUser.d.ts +0 -43
- package/auth/src/models/AnonymousUser.js +0 -55
- package/auth/src/models/AnyUser.d.ts +0 -26
- package/auth/src/models/AnyUser.js +0 -50
- package/auth/src/models/IdentifiedUser.d.ts +0 -37
- package/auth/src/models/IdentifiedUser.js +0 -51
- package/auth/src/models/User.d.ts +0 -31
- package/auth/src/models/User.js +0 -47
- package/magic-cart/src/models/ShoppedOffer.d.ts +0 -43
- package/magic-cart/src/models/ShoppedOffer.js +0 -53
- package/order/src/apis/ManageForeorderApi.d.ts +0 -31
- package/order/src/apis/ManageForeorderApi.js +0 -163
- package/order/src/apis/SearchForeorderItemApi.d.ts +0 -44
- package/order/src/apis/SearchForeorderItemApi.js +0 -175
- package/order/src/models/AnyForeorderCreationParameters.d.ts +0 -23
- package/order/src/models/AnyForeorderCreationParameters.js +0 -45
- package/order/src/models/AnyForeorderWarning.d.ts +0 -26
- package/order/src/models/AnyForeorderWarning.js +0 -50
- package/order/src/models/AnyOrderCreationParameters.d.ts +0 -26
- package/order/src/models/AnyOrderCreationParameters.js +0 -50
- package/order/src/models/AnySource.d.ts +0 -26
- package/order/src/models/AnySource.js +0 -50
- package/order/src/models/CartForeorderCreationParameters.d.ts +0 -37
- package/order/src/models/CartForeorderCreationParameters.js +0 -51
- package/order/src/models/CartSource.d.ts +0 -37
- package/order/src/models/CartSource.js +0 -49
- package/order/src/models/CloneOrderCreationParameters.d.ts +0 -37
- package/order/src/models/CloneOrderCreationParameters.js +0 -51
- package/order/src/models/Foreorder.d.ts +0 -155
- package/order/src/models/Foreorder.js +0 -128
- package/order/src/models/ForeorderCreationParameters.d.ts +0 -31
- package/order/src/models/ForeorderCreationParameters.js +0 -47
- package/order/src/models/ForeorderOrderCreationParameters.d.ts +0 -37
- package/order/src/models/ForeorderOrderCreationParameters.js +0 -51
- package/order/src/models/ForeorderWarning.d.ts +0 -51
- package/order/src/models/ForeorderWarningBase.d.ts +0 -37
- package/order/src/models/ForeorderWarningBase.js +0 -51
- package/order/src/models/ForeorderWithWarnings.d.ts +0 -39
- package/order/src/models/ForeorderWithWarnings.js +0 -53
- package/order/src/models/OrderCreationParameters.d.ts +0 -31
- package/order/src/models/OrderCreationParameters.js +0 -47
- package/order/src/models/OrderSource.d.ts +0 -37
- package/order/src/models/OrderSource.js +0 -49
- package/order/src/models/Source.d.ts +0 -31
- package/order/src/models/Source.js +0 -45
- package/shopping-cart/src/apis/ManageCartLineApi.d.ts +0 -45
- package/shopping-cart/src/apis/ManageCartLineApi.js +0 -238
- package/shopping-cart/src/apis/SearchCartApi.d.ts +0 -59
- package/shopping-cart/src/apis/SearchCartApi.js +0 -267
- package/shopping-cart/src/apis/SearchCartLineApi.d.ts +0 -41
- package/shopping-cart/src/models/CartCreationParameters.d.ts +0 -44
- package/shopping-cart/src/models/CartCreationParameters.js +0 -56
- package/shopping-cart/src/models/CartLineUpdateParameters.d.ts +0 -37
- package/shopping-cart/src/models/CartLineUpdateParameters.js +0 -49
- package/shopping-cart/src/models/CartLineWithWarnings.d.ts +0 -39
- package/shopping-cart/src/models/CartLineWithWarnings.js +0 -49
- package/shopping-cart/src/models/CartSummary.d.ts +0 -31
- package/shopping-cart/src/models/CartSummary.js +0 -47
- package/shopping-cart/src/models/CartUpdateParameters.d.ts +0 -31
- package/shopping-cart/src/models/CartUpdateParameters.js +0 -45
- package/shopping-cart/src/models/CartWarning.d.ts +0 -70
- package/shopping-cart/src/models/CartWarning.js +0 -67
- package/shopping-cart/src/models/CartsWithWarnings.d.ts +0 -39
- package/shopping-cart/src/models/CartsWithWarnings.js +0 -49
- package/shopping-cart/src/models/OwnerLink.d.ts +0 -43
- package/shopping-cart/src/models/OwnerLink.js +0 -53
- package/shopping-cart/src/models/PaginatedCarts.d.ts +0 -46
- package/shopping-cart/src/models/PaginatedCarts.js +0 -58
- package/shopping-cart/src/models/PagingMetadata.d.ts +0 -49
- package/shopping-cart/src/models/PagingMetadata.js +0 -55
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP products
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { Cart, PaginatedCarts } from '../models/index';
|
|
14
|
-
export interface GetCartRequest {
|
|
15
|
-
cartId: number;
|
|
16
|
-
}
|
|
17
|
-
export interface GetCartsRequest {
|
|
18
|
-
oEq?: Array<number>;
|
|
19
|
-
sEq?: Array<number>;
|
|
20
|
-
channelEq?: Array<string>;
|
|
21
|
-
orderBy?: GetCartsOrderByEnum;
|
|
22
|
-
p?: number;
|
|
23
|
-
pp?: number;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export declare class SearchCartApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
* Retrieve a single cart by its unique identifier.
|
|
31
|
-
* Get a cart by ID
|
|
32
|
-
*/
|
|
33
|
-
getCartRaw(requestParameters: GetCartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Cart | runtime.BlobWithMeta>>;
|
|
34
|
-
/**
|
|
35
|
-
* Retrieve a single cart by its unique identifier.
|
|
36
|
-
* Get a cart by ID
|
|
37
|
-
*/
|
|
38
|
-
getCart(requestParameters: GetCartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Cart | runtime.BlobWithMeta>;
|
|
39
|
-
/**
|
|
40
|
-
* Search and retrieve carts with filtering, sorting and pagination. Note: Empty carts (carts with no lines) are automatically excluded from results.
|
|
41
|
-
* Search carts
|
|
42
|
-
*/
|
|
43
|
-
getCartsRaw(requestParameters: GetCartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedCarts | runtime.BlobWithMeta>>;
|
|
44
|
-
/**
|
|
45
|
-
* Search and retrieve carts with filtering, sorting and pagination. Note: Empty carts (carts with no lines) are automatically excluded from results.
|
|
46
|
-
* Search carts
|
|
47
|
-
*/
|
|
48
|
-
getCarts(requestParameters?: GetCartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedCarts | runtime.BlobWithMeta>;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @export
|
|
52
|
-
*/
|
|
53
|
-
export declare const GetCartsOrderByEnum: {
|
|
54
|
-
readonly UPDATED_AT_ASC: "UPDATED_AT:asc";
|
|
55
|
-
readonly UPDATED_AT_DESC: "UPDATED_AT:desc";
|
|
56
|
-
readonly TOTAL_EXCLUDING_TAXES_ASC: "TOTAL_EXCLUDING_TAXES:asc";
|
|
57
|
-
readonly TOTAL_EXCLUDING_TAXES_DESC: "TOTAL_EXCLUDING_TAXES:desc";
|
|
58
|
-
};
|
|
59
|
-
export declare type GetCartsOrderByEnum = typeof GetCartsOrderByEnum[keyof typeof GetCartsOrderByEnum];
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP products
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (_) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.GetCartsOrderByEnum = exports.SearchCartApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var index_1 = require("../models/index");
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var SearchCartApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(SearchCartApi, _super);
|
|
75
|
-
function SearchCartApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Retrieve a single cart by its unique identifier.
|
|
80
|
-
* Get a cart by ID
|
|
81
|
-
*/
|
|
82
|
-
SearchCartApi.prototype.getCartRaw = function (requestParameters, initOverrides) {
|
|
83
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_1;
|
|
85
|
-
return __generator(this, function (_c) {
|
|
86
|
-
switch (_c.label) {
|
|
87
|
-
case 0:
|
|
88
|
-
if (requestParameters['cartId'] == null) {
|
|
89
|
-
throw new runtime.RequiredError('cartId', 'Required parameter "cartId" was null or undefined when calling getCart().');
|
|
90
|
-
}
|
|
91
|
-
queryParameters = {};
|
|
92
|
-
headerParameters = {};
|
|
93
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
94
|
-
_a = headerParameters;
|
|
95
|
-
_b = "x-api-key";
|
|
96
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
97
|
-
case 1:
|
|
98
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
99
|
-
_c.label = 2;
|
|
100
|
-
case 2:
|
|
101
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
102
|
-
token = this.configuration.accessToken;
|
|
103
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
104
|
-
case 3:
|
|
105
|
-
tokenString = _c.sent();
|
|
106
|
-
if (tokenString) {
|
|
107
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
108
|
-
}
|
|
109
|
-
_c.label = 4;
|
|
110
|
-
case 4:
|
|
111
|
-
_c.trys.push([4, 6, , 7]);
|
|
112
|
-
return [4 /*yield*/, this.request({
|
|
113
|
-
path: "/carts/{cartId}".replace("{".concat("cartId", "}"), encodeURIComponent(String(requestParameters['cartId']))),
|
|
114
|
-
method: 'GET',
|
|
115
|
-
headers: headerParameters,
|
|
116
|
-
query: queryParameters,
|
|
117
|
-
}, initOverrides)];
|
|
118
|
-
case 5:
|
|
119
|
-
response = _c.sent();
|
|
120
|
-
contentType = response.headers.get("content-type");
|
|
121
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
122
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CartFromJSON)(jsonValue); })];
|
|
123
|
-
}
|
|
124
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
125
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
// TODO : Better handling of others application types
|
|
129
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
130
|
-
}
|
|
131
|
-
return [3 /*break*/, 7];
|
|
132
|
-
case 6:
|
|
133
|
-
response_1 = _c.sent();
|
|
134
|
-
console.debug(response_1);
|
|
135
|
-
throw response_1;
|
|
136
|
-
case 7: return [2 /*return*/];
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Retrieve a single cart by its unique identifier.
|
|
143
|
-
* Get a cart by ID
|
|
144
|
-
*/
|
|
145
|
-
SearchCartApi.prototype.getCart = function (requestParameters, initOverrides) {
|
|
146
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
147
|
-
var response;
|
|
148
|
-
return __generator(this, function (_a) {
|
|
149
|
-
switch (_a.label) {
|
|
150
|
-
case 0: return [4 /*yield*/, this.getCartRaw(requestParameters, initOverrides)];
|
|
151
|
-
case 1:
|
|
152
|
-
response = _a.sent();
|
|
153
|
-
return [4 /*yield*/, response.value()];
|
|
154
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* Search and retrieve carts with filtering, sorting and pagination. Note: Empty carts (carts with no lines) are automatically excluded from results.
|
|
161
|
-
* Search carts
|
|
162
|
-
*/
|
|
163
|
-
SearchCartApi.prototype.getCartsRaw = function (requestParameters, initOverrides) {
|
|
164
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
165
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_2;
|
|
166
|
-
return __generator(this, function (_c) {
|
|
167
|
-
switch (_c.label) {
|
|
168
|
-
case 0:
|
|
169
|
-
queryParameters = {};
|
|
170
|
-
if (requestParameters['oEq'] != null) {
|
|
171
|
-
queryParameters['o[eq]'] = requestParameters['oEq'];
|
|
172
|
-
}
|
|
173
|
-
if (requestParameters['sEq'] != null) {
|
|
174
|
-
queryParameters['s[eq]'] = requestParameters['sEq'];
|
|
175
|
-
}
|
|
176
|
-
if (requestParameters['channelEq'] != null) {
|
|
177
|
-
queryParameters['channel[eq]'] = requestParameters['channelEq'];
|
|
178
|
-
}
|
|
179
|
-
if (requestParameters['orderBy'] != null) {
|
|
180
|
-
queryParameters['orderBy'] = requestParameters['orderBy'];
|
|
181
|
-
}
|
|
182
|
-
if (requestParameters['p'] != null) {
|
|
183
|
-
queryParameters['p'] = requestParameters['p'];
|
|
184
|
-
}
|
|
185
|
-
if (requestParameters['pp'] != null) {
|
|
186
|
-
queryParameters['pp'] = requestParameters['pp'];
|
|
187
|
-
}
|
|
188
|
-
headerParameters = {};
|
|
189
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
190
|
-
_a = headerParameters;
|
|
191
|
-
_b = "x-api-key";
|
|
192
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
193
|
-
case 1:
|
|
194
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
195
|
-
_c.label = 2;
|
|
196
|
-
case 2:
|
|
197
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
198
|
-
token = this.configuration.accessToken;
|
|
199
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
200
|
-
case 3:
|
|
201
|
-
tokenString = _c.sent();
|
|
202
|
-
if (tokenString) {
|
|
203
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
204
|
-
}
|
|
205
|
-
_c.label = 4;
|
|
206
|
-
case 4:
|
|
207
|
-
_c.trys.push([4, 6, , 7]);
|
|
208
|
-
return [4 /*yield*/, this.request({
|
|
209
|
-
path: "/carts",
|
|
210
|
-
method: 'GET',
|
|
211
|
-
headers: headerParameters,
|
|
212
|
-
query: queryParameters,
|
|
213
|
-
}, initOverrides)];
|
|
214
|
-
case 5:
|
|
215
|
-
response = _c.sent();
|
|
216
|
-
contentType = response.headers.get("content-type");
|
|
217
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
218
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedCartsFromJSON)(jsonValue); })];
|
|
219
|
-
}
|
|
220
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
221
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
// TODO : Better handling of others application types
|
|
225
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
226
|
-
}
|
|
227
|
-
return [3 /*break*/, 7];
|
|
228
|
-
case 6:
|
|
229
|
-
response_2 = _c.sent();
|
|
230
|
-
console.debug(response_2);
|
|
231
|
-
throw response_2;
|
|
232
|
-
case 7: return [2 /*return*/];
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* Search and retrieve carts with filtering, sorting and pagination. Note: Empty carts (carts with no lines) are automatically excluded from results.
|
|
239
|
-
* Search carts
|
|
240
|
-
*/
|
|
241
|
-
SearchCartApi.prototype.getCarts = function (requestParameters, initOverrides) {
|
|
242
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
243
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
244
|
-
var response;
|
|
245
|
-
return __generator(this, function (_a) {
|
|
246
|
-
switch (_a.label) {
|
|
247
|
-
case 0: return [4 /*yield*/, this.getCartsRaw(requestParameters, initOverrides)];
|
|
248
|
-
case 1:
|
|
249
|
-
response = _a.sent();
|
|
250
|
-
return [4 /*yield*/, response.value()];
|
|
251
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
});
|
|
255
|
-
};
|
|
256
|
-
return SearchCartApi;
|
|
257
|
-
}(runtime.BaseAPI));
|
|
258
|
-
exports.SearchCartApi = SearchCartApi;
|
|
259
|
-
/**
|
|
260
|
-
* @export
|
|
261
|
-
*/
|
|
262
|
-
exports.GetCartsOrderByEnum = {
|
|
263
|
-
UPDATED_AT_ASC: 'UPDATED_AT:asc',
|
|
264
|
-
UPDATED_AT_DESC: 'UPDATED_AT:desc',
|
|
265
|
-
TOTAL_EXCLUDING_TAXES_ASC: 'TOTAL_EXCLUDING_TAXES:asc',
|
|
266
|
-
TOTAL_EXCLUDING_TAXES_DESC: 'TOTAL_EXCLUDING_TAXES:desc'
|
|
267
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP products
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { CartLine } from '../models/index';
|
|
14
|
-
export interface GetCartLineRequest {
|
|
15
|
-
cartId: number;
|
|
16
|
-
lineId: number;
|
|
17
|
-
}
|
|
18
|
-
export interface GetCartLinesRequest {
|
|
19
|
-
cartId: number;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
export declare class SearchCartLineApi extends runtime.BaseAPI {
|
|
25
|
-
/**
|
|
26
|
-
* Get a cart line
|
|
27
|
-
*/
|
|
28
|
-
getCartLineRaw(requestParameters: GetCartLineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CartLine | runtime.BlobWithMeta>>;
|
|
29
|
-
/**
|
|
30
|
-
* Get a cart line
|
|
31
|
-
*/
|
|
32
|
-
getCartLine(requestParameters: GetCartLineRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CartLine | runtime.BlobWithMeta>;
|
|
33
|
-
/**
|
|
34
|
-
* Get all cart lines
|
|
35
|
-
*/
|
|
36
|
-
getCartLinesRaw(requestParameters: GetCartLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CartLine> | runtime.BlobWithMeta>>;
|
|
37
|
-
/**
|
|
38
|
-
* Get all cart lines
|
|
39
|
-
*/
|
|
40
|
-
getCartLines(requestParameters: GetCartLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CartLine> | runtime.BlobWithMeta>;
|
|
41
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP products
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { ShoppedOffer } from './ShoppedOffer';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CartCreationParameters
|
|
17
|
-
*/
|
|
18
|
-
export interface CartCreationParameters {
|
|
19
|
-
/**
|
|
20
|
-
* Id of the cart owner
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof CartCreationParameters
|
|
23
|
-
*/
|
|
24
|
-
ownerId: number;
|
|
25
|
-
/**
|
|
26
|
-
* Channel identifier (e.g. "express-order:uuid")
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof CartCreationParameters
|
|
29
|
-
*/
|
|
30
|
-
channel: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {Array<ShoppedOffer>}
|
|
34
|
-
* @memberof CartCreationParameters
|
|
35
|
-
*/
|
|
36
|
-
shoppedOffers: Array<ShoppedOffer>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the CartCreationParameters interface.
|
|
40
|
-
*/
|
|
41
|
-
export declare function instanceOfCartCreationParameters(value: object): value is CartCreationParameters;
|
|
42
|
-
export declare function CartCreationParametersFromJSON(json: any): CartCreationParameters;
|
|
43
|
-
export declare function CartCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCreationParameters;
|
|
44
|
-
export declare function CartCreationParametersToJSON(value?: CartCreationParameters | null): any;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP products
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CartCreationParametersToJSON = exports.CartCreationParametersFromJSONTyped = exports.CartCreationParametersFromJSON = exports.instanceOfCartCreationParameters = void 0;
|
|
17
|
-
var ShoppedOffer_1 = require("./ShoppedOffer");
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the CartCreationParameters interface.
|
|
20
|
-
*/
|
|
21
|
-
function instanceOfCartCreationParameters(value) {
|
|
22
|
-
if (!('ownerId' in value) || value['ownerId'] === undefined)
|
|
23
|
-
return false;
|
|
24
|
-
if (!('channel' in value) || value['channel'] === undefined)
|
|
25
|
-
return false;
|
|
26
|
-
if (!('shoppedOffers' in value) || value['shoppedOffers'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
exports.instanceOfCartCreationParameters = instanceOfCartCreationParameters;
|
|
31
|
-
function CartCreationParametersFromJSON(json) {
|
|
32
|
-
return CartCreationParametersFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
exports.CartCreationParametersFromJSON = CartCreationParametersFromJSON;
|
|
35
|
-
function CartCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (json == null) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'ownerId': json['ownerId'],
|
|
41
|
-
'channel': json['channel'],
|
|
42
|
-
'shoppedOffers': (json['shoppedOffers'] === null || json['shoppedOffers'] === undefined) ? json['shoppedOffers'] : json['shoppedOffers'].map(ShoppedOffer_1.ShoppedOfferFromJSON),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
exports.CartCreationParametersFromJSONTyped = CartCreationParametersFromJSONTyped;
|
|
46
|
-
function CartCreationParametersToJSON(value) {
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'ownerId': value['ownerId'],
|
|
52
|
-
'channel': value['channel'],
|
|
53
|
-
'shoppedOffers': (value['shoppedOffers'] === null || value['shoppedOffers'] === undefined) ? value['shoppedOffers'] : value['shoppedOffers'].map(ShoppedOffer_1.ShoppedOfferToJSON),
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
exports.CartCreationParametersToJSON = CartCreationParametersToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP products
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface CartLineUpdateParameters
|
|
16
|
-
*/
|
|
17
|
-
export interface CartLineUpdateParameters {
|
|
18
|
-
/**
|
|
19
|
-
* Identifier of the distribution range to change in cart line
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof CartLineUpdateParameters
|
|
22
|
-
*/
|
|
23
|
-
distributionRangeId?: number;
|
|
24
|
-
/**
|
|
25
|
-
* New quantity for the cart line
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof CartLineUpdateParameters
|
|
28
|
-
*/
|
|
29
|
-
quantity: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the CartLineUpdateParameters interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfCartLineUpdateParameters(value: object): value is CartLineUpdateParameters;
|
|
35
|
-
export declare function CartLineUpdateParametersFromJSON(json: any): CartLineUpdateParameters;
|
|
36
|
-
export declare function CartLineUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartLineUpdateParameters;
|
|
37
|
-
export declare function CartLineUpdateParametersToJSON(value?: CartLineUpdateParameters | null): any;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP products
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CartLineUpdateParametersToJSON = exports.CartLineUpdateParametersFromJSONTyped = exports.CartLineUpdateParametersFromJSON = exports.instanceOfCartLineUpdateParameters = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the CartLineUpdateParameters interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfCartLineUpdateParameters(value) {
|
|
21
|
-
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfCartLineUpdateParameters = instanceOfCartLineUpdateParameters;
|
|
26
|
-
function CartLineUpdateParametersFromJSON(json) {
|
|
27
|
-
return CartLineUpdateParametersFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.CartLineUpdateParametersFromJSON = CartLineUpdateParametersFromJSON;
|
|
30
|
-
function CartLineUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'distributionRangeId': json['distributionRangeId'],
|
|
36
|
-
'quantity': json['quantity'],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.CartLineUpdateParametersFromJSONTyped = CartLineUpdateParametersFromJSONTyped;
|
|
40
|
-
function CartLineUpdateParametersToJSON(value) {
|
|
41
|
-
if (value == null) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'distributionRangeId': value['distributionRangeId'],
|
|
46
|
-
'quantity': value['quantity'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.CartLineUpdateParametersToJSON = CartLineUpdateParametersToJSON;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP products
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { CartWarning } from './CartWarning';
|
|
13
|
-
import type { CartLine } from './CartLine';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface CartLineWithWarnings
|
|
18
|
-
*/
|
|
19
|
-
export interface CartLineWithWarnings {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {CartLine}
|
|
23
|
-
* @memberof CartLineWithWarnings
|
|
24
|
-
*/
|
|
25
|
-
cartLine?: CartLine;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {Array<CartWarning>}
|
|
29
|
-
* @memberof CartLineWithWarnings
|
|
30
|
-
*/
|
|
31
|
-
warnings?: Array<CartWarning>;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the CartLineWithWarnings interface.
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfCartLineWithWarnings(value: object): value is CartLineWithWarnings;
|
|
37
|
-
export declare function CartLineWithWarningsFromJSON(json: any): CartLineWithWarnings;
|
|
38
|
-
export declare function CartLineWithWarningsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartLineWithWarnings;
|
|
39
|
-
export declare function CartLineWithWarningsToJSON(value?: CartLineWithWarnings | null): any;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP products
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CartLineWithWarningsToJSON = exports.CartLineWithWarningsFromJSONTyped = exports.CartLineWithWarningsFromJSON = exports.instanceOfCartLineWithWarnings = void 0;
|
|
17
|
-
var CartWarning_1 = require("./CartWarning");
|
|
18
|
-
var CartLine_1 = require("./CartLine");
|
|
19
|
-
/**
|
|
20
|
-
* Check if a given object implements the CartLineWithWarnings interface.
|
|
21
|
-
*/
|
|
22
|
-
function instanceOfCartLineWithWarnings(value) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
exports.instanceOfCartLineWithWarnings = instanceOfCartLineWithWarnings;
|
|
26
|
-
function CartLineWithWarningsFromJSON(json) {
|
|
27
|
-
return CartLineWithWarningsFromJSONTyped(json, false);
|
|
28
|
-
}
|
|
29
|
-
exports.CartLineWithWarningsFromJSON = CartLineWithWarningsFromJSON;
|
|
30
|
-
function CartLineWithWarningsFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'cartLine': (json['cartLine'] === null || json['cartLine'] === undefined) ? json['cartLine'] : (0, CartLine_1.CartLineFromJSON)(json['cartLine']),
|
|
36
|
-
'warnings': (json['warnings'] === null || json['warnings'] === undefined) ? json['warnings'] : json['warnings'].map(CartWarning_1.CartWarningFromJSON),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.CartLineWithWarningsFromJSONTyped = CartLineWithWarningsFromJSONTyped;
|
|
40
|
-
function CartLineWithWarningsToJSON(value) {
|
|
41
|
-
if (value == null) {
|
|
42
|
-
return value;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'cartLine': (0, CartLine_1.CartLineToJSON)(value['cartLine']),
|
|
46
|
-
'warnings': (value['warnings'] === null || value['warnings'] === undefined) ? value['warnings'] : value['warnings'].map(CartWarning_1.CartWarningToJSON),
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.CartLineWithWarningsToJSON = CartLineWithWarningsToJSON;
|