@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,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP orders
|
|
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 { OrderItem } from '../models/index';
|
|
14
|
-
export interface GetForeorderItemsRequest {
|
|
15
|
-
orderReference: string;
|
|
16
|
-
orderBy?: GetForeorderItemsOrderByEnum;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
export declare class SearchForeorderItemApi extends runtime.BaseAPI {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* Get items for foreorder identified by orderReference
|
|
25
|
-
*/
|
|
26
|
-
getForeorderItemsRaw(requestParameters: GetForeorderItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OrderItem> | runtime.BlobWithMeta>>;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* Get items for foreorder identified by orderReference
|
|
30
|
-
*/
|
|
31
|
-
getForeorderItems(requestParameters: GetForeorderItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OrderItem> | runtime.BlobWithMeta>;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @export
|
|
35
|
-
*/
|
|
36
|
-
export declare const GetForeorderItemsOrderByEnum: {
|
|
37
|
-
readonly PRODUCT_NAME_ASC: "PRODUCT_NAME:ASC";
|
|
38
|
-
readonly PRODUCT_NAME_DESC: "PRODUCT_NAME:DESC";
|
|
39
|
-
readonly CREATED_AT_ASC: "CREATED_AT:ASC";
|
|
40
|
-
readonly CREATED_AT_DESC: "CREATED_AT:DESC";
|
|
41
|
-
readonly UPDATED_AT_ASC: "UPDATED_AT:ASC";
|
|
42
|
-
readonly UPDATED_AT_DESC: "UPDATED_AT:DESC";
|
|
43
|
-
};
|
|
44
|
-
export declare type GetForeorderItemsOrderByEnum = typeof GetForeorderItemsOrderByEnum[keyof typeof GetForeorderItemsOrderByEnum];
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP orders
|
|
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.GetForeorderItemsOrderByEnum = exports.SearchForeorderItemApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var index_1 = require("../models/index");
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var SearchForeorderItemApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(SearchForeorderItemApi, _super);
|
|
75
|
-
function SearchForeorderItemApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* Get items for foreorder identified by orderReference
|
|
81
|
-
*/
|
|
82
|
-
SearchForeorderItemApi.prototype.getForeorderItemsRaw = 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['orderReference'] == null) {
|
|
89
|
-
throw new runtime.RequiredError('orderReference', 'Required parameter "orderReference" was null or undefined when calling getForeorderItems().');
|
|
90
|
-
}
|
|
91
|
-
queryParameters = {};
|
|
92
|
-
if (requestParameters['orderBy'] != null) {
|
|
93
|
-
queryParameters['orderBy'] = requestParameters['orderBy'];
|
|
94
|
-
}
|
|
95
|
-
headerParameters = {};
|
|
96
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
97
|
-
_a = headerParameters;
|
|
98
|
-
_b = "x-api-key";
|
|
99
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
100
|
-
case 1:
|
|
101
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
102
|
-
_c.label = 2;
|
|
103
|
-
case 2:
|
|
104
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
105
|
-
token = this.configuration.accessToken;
|
|
106
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
107
|
-
case 3:
|
|
108
|
-
tokenString = _c.sent();
|
|
109
|
-
if (tokenString) {
|
|
110
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
111
|
-
}
|
|
112
|
-
_c.label = 4;
|
|
113
|
-
case 4:
|
|
114
|
-
_c.trys.push([4, 6, , 7]);
|
|
115
|
-
return [4 /*yield*/, this.request({
|
|
116
|
-
path: "/foreorders/{orderReference}/items".replace("{".concat("orderReference", "}"), encodeURIComponent(String(requestParameters['orderReference']))),
|
|
117
|
-
method: 'GET',
|
|
118
|
-
headers: headerParameters,
|
|
119
|
-
query: queryParameters,
|
|
120
|
-
}, initOverrides)];
|
|
121
|
-
case 5:
|
|
122
|
-
response = _c.sent();
|
|
123
|
-
contentType = response.headers.get("content-type");
|
|
124
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
125
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.OrderItemFromJSON); })];
|
|
126
|
-
}
|
|
127
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
128
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
// TODO : Better handling of others application types
|
|
132
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
133
|
-
}
|
|
134
|
-
return [3 /*break*/, 7];
|
|
135
|
-
case 6:
|
|
136
|
-
response_1 = _c.sent();
|
|
137
|
-
console.debug(response_1);
|
|
138
|
-
throw response_1;
|
|
139
|
-
case 7: return [2 /*return*/];
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* Get items for foreorder identified by orderReference
|
|
147
|
-
*/
|
|
148
|
-
SearchForeorderItemApi.prototype.getForeorderItems = function (requestParameters, initOverrides) {
|
|
149
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
150
|
-
var response;
|
|
151
|
-
return __generator(this, function (_a) {
|
|
152
|
-
switch (_a.label) {
|
|
153
|
-
case 0: return [4 /*yield*/, this.getForeorderItemsRaw(requestParameters, initOverrides)];
|
|
154
|
-
case 1:
|
|
155
|
-
response = _a.sent();
|
|
156
|
-
return [4 /*yield*/, response.value()];
|
|
157
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
});
|
|
161
|
-
};
|
|
162
|
-
return SearchForeorderItemApi;
|
|
163
|
-
}(runtime.BaseAPI));
|
|
164
|
-
exports.SearchForeorderItemApi = SearchForeorderItemApi;
|
|
165
|
-
/**
|
|
166
|
-
* @export
|
|
167
|
-
*/
|
|
168
|
-
exports.GetForeorderItemsOrderByEnum = {
|
|
169
|
-
PRODUCT_NAME_ASC: 'PRODUCT_NAME:ASC',
|
|
170
|
-
PRODUCT_NAME_DESC: 'PRODUCT_NAME:DESC',
|
|
171
|
-
CREATED_AT_ASC: 'CREATED_AT:ASC',
|
|
172
|
-
CREATED_AT_DESC: 'CREATED_AT:DESC',
|
|
173
|
-
UPDATED_AT_ASC: 'UPDATED_AT:ASC',
|
|
174
|
-
UPDATED_AT_DESC: 'UPDATED_AT:DESC'
|
|
175
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP orders
|
|
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 { CartForeorderCreationParameters } from './CartForeorderCreationParameters';
|
|
13
|
-
/**
|
|
14
|
-
* @type AnyForeorderCreationParameters
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export declare type AnyForeorderCreationParameters = {
|
|
19
|
-
source: 'cart';
|
|
20
|
-
} & CartForeorderCreationParameters;
|
|
21
|
-
export declare function AnyForeorderCreationParametersFromJSON(json: any): AnyForeorderCreationParameters;
|
|
22
|
-
export declare function AnyForeorderCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyForeorderCreationParameters;
|
|
23
|
-
export declare function AnyForeorderCreationParametersToJSON(value?: AnyForeorderCreationParameters | null): any;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP orders
|
|
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.AnyForeorderCreationParametersToJSON = exports.AnyForeorderCreationParametersFromJSONTyped = exports.AnyForeorderCreationParametersFromJSON = void 0;
|
|
17
|
-
var CartForeorderCreationParameters_1 = require("./CartForeorderCreationParameters");
|
|
18
|
-
function AnyForeorderCreationParametersFromJSON(json) {
|
|
19
|
-
return AnyForeorderCreationParametersFromJSONTyped(json, false);
|
|
20
|
-
}
|
|
21
|
-
exports.AnyForeorderCreationParametersFromJSON = AnyForeorderCreationParametersFromJSON;
|
|
22
|
-
function AnyForeorderCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
-
if (json == null) {
|
|
24
|
-
return json;
|
|
25
|
-
}
|
|
26
|
-
switch (json['source']) {
|
|
27
|
-
case 'cart':
|
|
28
|
-
return Object.assign({}, (0, CartForeorderCreationParameters_1.CartForeorderCreationParametersFromJSONTyped)(json, true), { source: 'cart' });
|
|
29
|
-
default:
|
|
30
|
-
throw new Error("No variant of AnyForeorderCreationParameters exists with 'source=".concat(json['source'], "'"));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.AnyForeorderCreationParametersFromJSONTyped = AnyForeorderCreationParametersFromJSONTyped;
|
|
34
|
-
function AnyForeorderCreationParametersToJSON(value) {
|
|
35
|
-
if (value == null) {
|
|
36
|
-
return value;
|
|
37
|
-
}
|
|
38
|
-
switch (value['source']) {
|
|
39
|
-
case 'cart':
|
|
40
|
-
return (0, CartForeorderCreationParameters_1.CartForeorderCreationParametersToJSON)(value);
|
|
41
|
-
default:
|
|
42
|
-
throw new Error("No variant of AnyForeorderCreationParameters exists with 'source=".concat(value['source'], "'"));
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.AnyForeorderCreationParametersToJSON = AnyForeorderCreationParametersToJSON;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP orders
|
|
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 { ForeorderItemWarning } from './ForeorderItemWarning';
|
|
13
|
-
import type { ForeorderWarning } from './ForeorderWarning';
|
|
14
|
-
/**
|
|
15
|
-
* @type AnyForeorderWarning
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export declare type AnyForeorderWarning = {
|
|
20
|
-
type: 'foreorder';
|
|
21
|
-
} & ForeorderWarning | {
|
|
22
|
-
type: 'foreorder_item';
|
|
23
|
-
} & ForeorderItemWarning;
|
|
24
|
-
export declare function AnyForeorderWarningFromJSON(json: any): AnyForeorderWarning;
|
|
25
|
-
export declare function AnyForeorderWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyForeorderWarning;
|
|
26
|
-
export declare function AnyForeorderWarningToJSON(value?: AnyForeorderWarning | null): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP orders
|
|
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.AnyForeorderWarningToJSON = exports.AnyForeorderWarningFromJSONTyped = exports.AnyForeorderWarningFromJSON = void 0;
|
|
17
|
-
var ForeorderItemWarning_1 = require("./ForeorderItemWarning");
|
|
18
|
-
var ForeorderWarning_1 = require("./ForeorderWarning");
|
|
19
|
-
function AnyForeorderWarningFromJSON(json) {
|
|
20
|
-
return AnyForeorderWarningFromJSONTyped(json, false);
|
|
21
|
-
}
|
|
22
|
-
exports.AnyForeorderWarningFromJSON = AnyForeorderWarningFromJSON;
|
|
23
|
-
function AnyForeorderWarningFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
switch (json['type']) {
|
|
28
|
-
case 'foreorder':
|
|
29
|
-
return Object.assign({}, (0, ForeorderWarning_1.ForeorderWarningFromJSONTyped)(json, true), { type: 'foreorder' });
|
|
30
|
-
case 'foreorder_item':
|
|
31
|
-
return Object.assign({}, (0, ForeorderItemWarning_1.ForeorderItemWarningFromJSONTyped)(json, true), { type: 'foreorder_item' });
|
|
32
|
-
default:
|
|
33
|
-
throw new Error("No variant of AnyForeorderWarning exists with 'type=".concat(json['type'], "'"));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.AnyForeorderWarningFromJSONTyped = AnyForeorderWarningFromJSONTyped;
|
|
37
|
-
function AnyForeorderWarningToJSON(value) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
switch (value['type']) {
|
|
42
|
-
case 'foreorder':
|
|
43
|
-
return (0, ForeorderWarning_1.ForeorderWarningToJSON)(value);
|
|
44
|
-
case 'foreorder_item':
|
|
45
|
-
return (0, ForeorderItemWarning_1.ForeorderItemWarningToJSON)(value);
|
|
46
|
-
default:
|
|
47
|
-
throw new Error("No variant of AnyForeorderWarning exists with 'type=".concat(value['type'], "'"));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.AnyForeorderWarningToJSON = AnyForeorderWarningToJSON;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP orders
|
|
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 { CloneOrderCreationParameters } from './CloneOrderCreationParameters';
|
|
13
|
-
import type { ForeorderOrderCreationParameters } from './ForeorderOrderCreationParameters';
|
|
14
|
-
/**
|
|
15
|
-
* @type AnyOrderCreationParameters
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export declare type AnyOrderCreationParameters = {
|
|
20
|
-
source: 'foreorder';
|
|
21
|
-
} & ForeorderOrderCreationParameters | {
|
|
22
|
-
source: 'order';
|
|
23
|
-
} & CloneOrderCreationParameters;
|
|
24
|
-
export declare function AnyOrderCreationParametersFromJSON(json: any): AnyOrderCreationParameters;
|
|
25
|
-
export declare function AnyOrderCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyOrderCreationParameters;
|
|
26
|
-
export declare function AnyOrderCreationParametersToJSON(value?: AnyOrderCreationParameters | null): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP orders
|
|
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.AnyOrderCreationParametersToJSON = exports.AnyOrderCreationParametersFromJSONTyped = exports.AnyOrderCreationParametersFromJSON = void 0;
|
|
17
|
-
var CloneOrderCreationParameters_1 = require("./CloneOrderCreationParameters");
|
|
18
|
-
var ForeorderOrderCreationParameters_1 = require("./ForeorderOrderCreationParameters");
|
|
19
|
-
function AnyOrderCreationParametersFromJSON(json) {
|
|
20
|
-
return AnyOrderCreationParametersFromJSONTyped(json, false);
|
|
21
|
-
}
|
|
22
|
-
exports.AnyOrderCreationParametersFromJSON = AnyOrderCreationParametersFromJSON;
|
|
23
|
-
function AnyOrderCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
switch (json['source']) {
|
|
28
|
-
case 'foreorder':
|
|
29
|
-
return Object.assign({}, (0, ForeorderOrderCreationParameters_1.ForeorderOrderCreationParametersFromJSONTyped)(json, true), { source: 'foreorder' });
|
|
30
|
-
case 'order':
|
|
31
|
-
return Object.assign({}, (0, CloneOrderCreationParameters_1.CloneOrderCreationParametersFromJSONTyped)(json, true), { source: 'order' });
|
|
32
|
-
default:
|
|
33
|
-
throw new Error("No variant of AnyOrderCreationParameters exists with 'source=".concat(json['source'], "'"));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.AnyOrderCreationParametersFromJSONTyped = AnyOrderCreationParametersFromJSONTyped;
|
|
37
|
-
function AnyOrderCreationParametersToJSON(value) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
switch (value['source']) {
|
|
42
|
-
case 'foreorder':
|
|
43
|
-
return (0, ForeorderOrderCreationParameters_1.ForeorderOrderCreationParametersToJSON)(value);
|
|
44
|
-
case 'order':
|
|
45
|
-
return (0, CloneOrderCreationParameters_1.CloneOrderCreationParametersToJSON)(value);
|
|
46
|
-
default:
|
|
47
|
-
throw new Error("No variant of AnyOrderCreationParameters exists with 'source=".concat(value['source'], "'"));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.AnyOrderCreationParametersToJSON = AnyOrderCreationParametersToJSON;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP orders
|
|
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 { CartSource } from './CartSource';
|
|
13
|
-
import type { OrderSource } from './OrderSource';
|
|
14
|
-
/**
|
|
15
|
-
* @type AnySource
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export declare type AnySource = {
|
|
20
|
-
source: 'cart';
|
|
21
|
-
} & CartSource | {
|
|
22
|
-
source: 'order';
|
|
23
|
-
} & OrderSource;
|
|
24
|
-
export declare function AnySourceFromJSON(json: any): AnySource;
|
|
25
|
-
export declare function AnySourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnySource;
|
|
26
|
-
export declare function AnySourceToJSON(value?: AnySource | null): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP orders
|
|
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.AnySourceToJSON = exports.AnySourceFromJSONTyped = exports.AnySourceFromJSON = void 0;
|
|
17
|
-
var CartSource_1 = require("./CartSource");
|
|
18
|
-
var OrderSource_1 = require("./OrderSource");
|
|
19
|
-
function AnySourceFromJSON(json) {
|
|
20
|
-
return AnySourceFromJSONTyped(json, false);
|
|
21
|
-
}
|
|
22
|
-
exports.AnySourceFromJSON = AnySourceFromJSON;
|
|
23
|
-
function AnySourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
-
if (json == null) {
|
|
25
|
-
return json;
|
|
26
|
-
}
|
|
27
|
-
switch (json['source']) {
|
|
28
|
-
case 'cart':
|
|
29
|
-
return Object.assign({}, (0, CartSource_1.CartSourceFromJSONTyped)(json, true), { source: 'cart' });
|
|
30
|
-
case 'order':
|
|
31
|
-
return Object.assign({}, (0, OrderSource_1.OrderSourceFromJSONTyped)(json, true), { source: 'order' });
|
|
32
|
-
default:
|
|
33
|
-
throw new Error("No variant of AnySource exists with 'source=".concat(json['source'], "'"));
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.AnySourceFromJSONTyped = AnySourceFromJSONTyped;
|
|
37
|
-
function AnySourceToJSON(value) {
|
|
38
|
-
if (value == null) {
|
|
39
|
-
return value;
|
|
40
|
-
}
|
|
41
|
-
switch (value['source']) {
|
|
42
|
-
case 'cart':
|
|
43
|
-
return (0, CartSource_1.CartSourceToJSON)(value);
|
|
44
|
-
case 'order':
|
|
45
|
-
return (0, OrderSource_1.OrderSourceToJSON)(value);
|
|
46
|
-
default:
|
|
47
|
-
throw new Error("No variant of AnySource exists with 'source=".concat(value['source'], "'"));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.AnySourceToJSON = AnySourceToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP orders
|
|
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 CartForeorderCreationParameters
|
|
16
|
-
*/
|
|
17
|
-
export interface CartForeorderCreationParameters {
|
|
18
|
-
/**
|
|
19
|
-
* Source from which to create foreorders
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CartForeorderCreationParameters
|
|
22
|
-
*/
|
|
23
|
-
source: string;
|
|
24
|
-
/**
|
|
25
|
-
* List of cart ids
|
|
26
|
-
* @type {Array<number>}
|
|
27
|
-
* @memberof CartForeorderCreationParameters
|
|
28
|
-
*/
|
|
29
|
-
ids: Array<number>;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the CartForeorderCreationParameters interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfCartForeorderCreationParameters(value: object): value is CartForeorderCreationParameters;
|
|
35
|
-
export declare function CartForeorderCreationParametersFromJSON(json: any): CartForeorderCreationParameters;
|
|
36
|
-
export declare function CartForeorderCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartForeorderCreationParameters;
|
|
37
|
-
export declare function CartForeorderCreationParametersToJSON(value?: CartForeorderCreationParameters | null): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP orders
|
|
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.CartForeorderCreationParametersToJSON = exports.CartForeorderCreationParametersFromJSONTyped = exports.CartForeorderCreationParametersFromJSON = exports.instanceOfCartForeorderCreationParameters = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the CartForeorderCreationParameters interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfCartForeorderCreationParameters(value) {
|
|
21
|
-
if (!('source' in value) || value['source'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('ids' in value) || value['ids'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfCartForeorderCreationParameters = instanceOfCartForeorderCreationParameters;
|
|
28
|
-
function CartForeorderCreationParametersFromJSON(json) {
|
|
29
|
-
return CartForeorderCreationParametersFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.CartForeorderCreationParametersFromJSON = CartForeorderCreationParametersFromJSON;
|
|
32
|
-
function CartForeorderCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'source': json['source'],
|
|
38
|
-
'ids': json['ids'],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
exports.CartForeorderCreationParametersFromJSONTyped = CartForeorderCreationParametersFromJSONTyped;
|
|
42
|
-
function CartForeorderCreationParametersToJSON(value) {
|
|
43
|
-
if (value == null) {
|
|
44
|
-
return value;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'source': value['source'],
|
|
48
|
-
'ids': value['ids'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.CartForeorderCreationParametersToJSON = CartForeorderCreationParametersToJSON;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP orders
|
|
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 CartSource
|
|
16
|
-
*/
|
|
17
|
-
export interface CartSource {
|
|
18
|
-
/**
|
|
19
|
-
* Source from which the object have been created
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CartSource
|
|
22
|
-
*/
|
|
23
|
-
source?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Source Cart id
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof CartSource
|
|
28
|
-
*/
|
|
29
|
-
id: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the CartSource interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfCartSource(value: object): value is CartSource;
|
|
35
|
-
export declare function CartSourceFromJSON(json: any): CartSource;
|
|
36
|
-
export declare function CartSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartSource;
|
|
37
|
-
export declare function CartSourceToJSON(value?: CartSource | null): any;
|