@lcdp/api-react-rest-client 2.1.3-develop.4618517491 → 2.1.3
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 +3 -3
- package/auth/src/models/RestError.js +1 -1
- package/configuration/src/models/RestError.d.ts +3 -3
- package/configuration/src/models/RestError.js +1 -1
- package/content/src/models/RestError.d.ts +3 -3
- package/content/src/models/RestError.js +1 -1
- package/favorite/src/models/RestError.d.ts +3 -3
- package/favorite/src/models/RestError.js +1 -1
- package/inventory/src/models/RestError.d.ts +3 -3
- package/inventory/src/models/RestError.js +1 -1
- package/invoice/src/models/RestError.d.ts +3 -3
- package/invoice/src/models/RestError.js +1 -1
- package/laboratory-store/src/models/RestError.d.ts +3 -3
- package/laboratory-store/src/models/RestError.js +1 -1
- package/lexicon/src/models/RestError.d.ts +3 -3
- package/lexicon/src/models/RestError.js +1 -1
- package/litigation/src/models/RestError.d.ts +3 -3
- package/litigation/src/models/RestError.js +1 -1
- package/mangopay-hook/src/models/RestError.d.ts +3 -3
- package/mangopay-hook/src/models/RestError.js +1 -1
- package/notification/src/models/RestError.d.ts +3 -3
- package/notification/src/models/RestError.js +1 -1
- package/order/src/models/MetaOrderWarning.d.ts +38 -2
- package/order/src/models/MetaOrderWarning.js +25 -3
- package/order/src/models/MetaOrderWithWarnings.d.ts +3 -3
- package/order/src/models/MetaOrderWithWarnings.js +3 -3
- package/order/src/models/RestError.d.ts +3 -3
- package/order/src/models/RestError.js +1 -1
- package/order/src/models/index.d.ts +0 -5
- package/order/src/models/index.js +0 -5
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +3 -3
- package/product/src/models/RestError.js +1 -1
- package/pub/src/models/RestError.d.ts +3 -3
- package/pub/src/models/RestError.js +1 -1
- package/rfx/src/models/RestError.d.ts +3 -3
- package/rfx/src/models/RestError.js +1 -1
- package/sale-offer/src/models/RestError.d.ts +3 -3
- package/sale-offer/src/models/RestError.js +1 -1
- package/servant/src/models/RestError.d.ts +3 -3
- package/servant/src/models/RestError.js +1 -1
- package/shipment/src/models/RestError.d.ts +3 -3
- package/shipment/src/models/RestError.js +1 -1
- package/shopping-cart/src/models/RestError.d.ts +3 -3
- package/shopping-cart/src/models/RestError.js +1 -1
- package/statistic/src/models/RestError.d.ts +3 -3
- package/statistic/src/models/RestError.js +1 -1
- package/subscription/src/models/RestError.d.ts +3 -3
- package/subscription/src/models/RestError.js +1 -1
- package/ubo/src/models/RestError.d.ts +3 -3
- package/ubo/src/models/RestError.js +1 -1
- package/user/src/models/RestError.d.ts +3 -3
- package/user/src/models/RestError.js +1 -1
- package/wish/src/models/RestError.d.ts +3 -3
- package/wish/src/models/RestError.js +1 -1
- package/order/src/models/AnyMetaOrderWarning.d.ts +0 -25
- package/order/src/models/AnyMetaOrderWarning.js +0 -64
- package/order/src/models/OrderItemWarning.d.ts +0 -63
- package/order/src/models/OrderItemWarning.js +0 -62
- package/order/src/models/OrderItemWarningAllOf.d.ts +0 -62
- package/order/src/models/OrderItemWarningAllOf.js +0 -62
- package/order/src/models/OrderWarning.d.ts +0 -42
- package/order/src/models/OrderWarning.js +0 -58
- package/order/src/models/OrderWarningAllOf.d.ts +0 -41
- package/order/src/models/OrderWarningAllOf.js +0 -52
|
@@ -1,25 +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 { OrderItemWarning } from './OrderItemWarning';
|
|
13
|
-
import { OrderWarning } from './OrderWarning';
|
|
14
|
-
/**
|
|
15
|
-
* @type AnyMetaOrderWarning
|
|
16
|
-
* @export
|
|
17
|
-
*/
|
|
18
|
-
export declare type AnyMetaOrderWarning = {
|
|
19
|
-
type: 'ORDER';
|
|
20
|
-
} & OrderWarning | {
|
|
21
|
-
type: 'ORDER_ITEM';
|
|
22
|
-
} & OrderItemWarning;
|
|
23
|
-
export declare function AnyMetaOrderWarningFromJSON(json: any): AnyMetaOrderWarning;
|
|
24
|
-
export declare function AnyMetaOrderWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyMetaOrderWarning;
|
|
25
|
-
export declare function AnyMetaOrderWarningToJSON(value?: AnyMetaOrderWarning | null): any;
|
|
@@ -1,64 +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 __assign = (this && this.__assign) || function () {
|
|
16
|
-
__assign = Object.assign || function(t) {
|
|
17
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
-
s = arguments[i];
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
return __assign.apply(this, arguments);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.AnyMetaOrderWarningToJSON = exports.AnyMetaOrderWarningFromJSONTyped = exports.AnyMetaOrderWarningFromJSON = void 0;
|
|
28
|
-
var OrderItemWarning_1 = require("./OrderItemWarning");
|
|
29
|
-
var OrderWarning_1 = require("./OrderWarning");
|
|
30
|
-
function AnyMetaOrderWarningFromJSON(json) {
|
|
31
|
-
return AnyMetaOrderWarningFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
exports.AnyMetaOrderWarningFromJSON = AnyMetaOrderWarningFromJSON;
|
|
34
|
-
function AnyMetaOrderWarningFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if ((json === undefined) || (json === null)) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
switch (json['type']) {
|
|
39
|
-
case 'ORDER':
|
|
40
|
-
return __assign(__assign({}, (0, OrderWarning_1.OrderWarningFromJSONTyped)(json, true)), { type: 'ORDER' });
|
|
41
|
-
case 'ORDER_ITEM':
|
|
42
|
-
return __assign(__assign({}, (0, OrderItemWarning_1.OrderItemWarningFromJSONTyped)(json, true)), { type: 'ORDER_ITEM' });
|
|
43
|
-
default:
|
|
44
|
-
throw new Error("No variant of AnyMetaOrderWarning exists with 'type=".concat(json['type'], "'"));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.AnyMetaOrderWarningFromJSONTyped = AnyMetaOrderWarningFromJSONTyped;
|
|
48
|
-
function AnyMetaOrderWarningToJSON(value) {
|
|
49
|
-
if (value === undefined) {
|
|
50
|
-
return undefined;
|
|
51
|
-
}
|
|
52
|
-
if (value === null) {
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
switch (value['type']) {
|
|
56
|
-
case 'ORDER':
|
|
57
|
-
return (0, OrderWarning_1.OrderWarningToJSON)(value);
|
|
58
|
-
case 'ORDER_ITEM':
|
|
59
|
-
return (0, OrderItemWarning_1.OrderItemWarningToJSON)(value);
|
|
60
|
-
default:
|
|
61
|
-
throw new Error("No variant of AnyMetaOrderWarning exists with 'type=".concat(value['type'], "'"));
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
exports.AnyMetaOrderWarningToJSON = AnyMetaOrderWarningToJSON;
|
|
@@ -1,63 +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 { MetaOrderWarning } from './MetaOrderWarning';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface OrderItemWarning
|
|
17
|
-
*/
|
|
18
|
-
export interface OrderItemWarning extends MetaOrderWarning {
|
|
19
|
-
/**
|
|
20
|
-
* Id of the order linked to this warning. Note : Could be absent if all lines from a subcart were ignored.
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof OrderItemWarning
|
|
23
|
-
*/
|
|
24
|
-
orderId?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Name of the product associated to this line
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof OrderItemWarning
|
|
29
|
-
*/
|
|
30
|
-
productName: string;
|
|
31
|
-
/**
|
|
32
|
-
* Number of items requested by the user
|
|
33
|
-
* @type {number}
|
|
34
|
-
* @memberof OrderItemWarning
|
|
35
|
-
*/
|
|
36
|
-
requestedQuantity: number;
|
|
37
|
-
/**
|
|
38
|
-
* Number of items finally selected for this line
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof OrderItemWarning
|
|
41
|
-
*/
|
|
42
|
-
finalQuantity: number;
|
|
43
|
-
/**
|
|
44
|
-
* Warning cause
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof OrderItemWarning
|
|
47
|
-
*/
|
|
48
|
-
cause: OrderItemWarningCauseEnum;
|
|
49
|
-
}
|
|
50
|
-
export declare function OrderItemWarningFromJSON(json: any): OrderItemWarning;
|
|
51
|
-
export declare function OrderItemWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemWarning;
|
|
52
|
-
export declare function OrderItemWarningToJSON(value?: OrderItemWarning | null): any;
|
|
53
|
-
/**
|
|
54
|
-
* @export
|
|
55
|
-
* @enum {string}
|
|
56
|
-
*/
|
|
57
|
-
export declare enum OrderItemWarningCauseEnum {
|
|
58
|
-
EMPTYQUANTITY = "EMPTY_QUANTITY",
|
|
59
|
-
BADQUANTITY = "BAD_QUANTITY",
|
|
60
|
-
MAXQUANTITY = "MAX_QUANTITY",
|
|
61
|
-
OUTDATEDAD = "OUTDATED_AD",
|
|
62
|
-
RESTRICTEDPRODUCT = "RESTRICTED_PRODUCT"
|
|
63
|
-
}
|
|
@@ -1,62 +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 __assign = (this && this.__assign) || function () {
|
|
16
|
-
__assign = Object.assign || function(t) {
|
|
17
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
-
s = arguments[i];
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
return __assign.apply(this, arguments);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.OrderItemWarningCauseEnum = exports.OrderItemWarningToJSON = exports.OrderItemWarningFromJSONTyped = exports.OrderItemWarningFromJSON = void 0;
|
|
28
|
-
var runtime_1 = require("../runtime");
|
|
29
|
-
var MetaOrderWarning_1 = require("./MetaOrderWarning");
|
|
30
|
-
function OrderItemWarningFromJSON(json) {
|
|
31
|
-
return OrderItemWarningFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
exports.OrderItemWarningFromJSON = OrderItemWarningFromJSON;
|
|
34
|
-
function OrderItemWarningFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if ((json === undefined) || (json === null)) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return __assign(__assign({}, (0, MetaOrderWarning_1.MetaOrderWarningFromJSONTyped)(json, ignoreDiscriminator)), { 'orderId': !(0, runtime_1.exists)(json, 'orderId') ? undefined : json['orderId'], 'productName': json['productName'], 'requestedQuantity': json['requestedQuantity'], 'finalQuantity': json['finalQuantity'], 'cause': json['cause'] });
|
|
39
|
-
}
|
|
40
|
-
exports.OrderItemWarningFromJSONTyped = OrderItemWarningFromJSONTyped;
|
|
41
|
-
function OrderItemWarningToJSON(value) {
|
|
42
|
-
if (value === undefined) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
if (value === null) {
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
return __assign(__assign({}, (0, MetaOrderWarning_1.MetaOrderWarningToJSON)(value)), { 'orderId': value.orderId, 'productName': value.productName, 'requestedQuantity': value.requestedQuantity, 'finalQuantity': value.finalQuantity, 'cause': value.cause });
|
|
49
|
-
}
|
|
50
|
-
exports.OrderItemWarningToJSON = OrderItemWarningToJSON;
|
|
51
|
-
/**
|
|
52
|
-
* @export
|
|
53
|
-
* @enum {string}
|
|
54
|
-
*/
|
|
55
|
-
var OrderItemWarningCauseEnum;
|
|
56
|
-
(function (OrderItemWarningCauseEnum) {
|
|
57
|
-
OrderItemWarningCauseEnum["EMPTYQUANTITY"] = "EMPTY_QUANTITY";
|
|
58
|
-
OrderItemWarningCauseEnum["BADQUANTITY"] = "BAD_QUANTITY";
|
|
59
|
-
OrderItemWarningCauseEnum["MAXQUANTITY"] = "MAX_QUANTITY";
|
|
60
|
-
OrderItemWarningCauseEnum["OUTDATEDAD"] = "OUTDATED_AD";
|
|
61
|
-
OrderItemWarningCauseEnum["RESTRICTEDPRODUCT"] = "RESTRICTED_PRODUCT";
|
|
62
|
-
})(OrderItemWarningCauseEnum = exports.OrderItemWarningCauseEnum || (exports.OrderItemWarningCauseEnum = {}));
|
|
@@ -1,62 +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 OrderItemWarningAllOf
|
|
16
|
-
*/
|
|
17
|
-
export interface OrderItemWarningAllOf {
|
|
18
|
-
/**
|
|
19
|
-
* Id of the order linked to this warning. Note : Could be absent if all lines from a subcart were ignored.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof OrderItemWarningAllOf
|
|
22
|
-
*/
|
|
23
|
-
orderId?: number;
|
|
24
|
-
/**
|
|
25
|
-
* Name of the product associated to this line
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof OrderItemWarningAllOf
|
|
28
|
-
*/
|
|
29
|
-
productName: string;
|
|
30
|
-
/**
|
|
31
|
-
* Number of items requested by the user
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof OrderItemWarningAllOf
|
|
34
|
-
*/
|
|
35
|
-
requestedQuantity: number;
|
|
36
|
-
/**
|
|
37
|
-
* Number of items finally selected for this line
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof OrderItemWarningAllOf
|
|
40
|
-
*/
|
|
41
|
-
finalQuantity: number;
|
|
42
|
-
/**
|
|
43
|
-
* Warning cause
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof OrderItemWarningAllOf
|
|
46
|
-
*/
|
|
47
|
-
cause: OrderItemWarningAllOfCauseEnum;
|
|
48
|
-
}
|
|
49
|
-
export declare function OrderItemWarningAllOfFromJSON(json: any): OrderItemWarningAllOf;
|
|
50
|
-
export declare function OrderItemWarningAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemWarningAllOf;
|
|
51
|
-
export declare function OrderItemWarningAllOfToJSON(value?: OrderItemWarningAllOf | null): any;
|
|
52
|
-
/**
|
|
53
|
-
* @export
|
|
54
|
-
* @enum {string}
|
|
55
|
-
*/
|
|
56
|
-
export declare enum OrderItemWarningAllOfCauseEnum {
|
|
57
|
-
EMPTYQUANTITY = "EMPTY_QUANTITY",
|
|
58
|
-
BADQUANTITY = "BAD_QUANTITY",
|
|
59
|
-
MAXQUANTITY = "MAX_QUANTITY",
|
|
60
|
-
OUTDATEDAD = "OUTDATED_AD",
|
|
61
|
-
RESTRICTEDPRODUCT = "RESTRICTED_PRODUCT"
|
|
62
|
-
}
|
|
@@ -1,62 +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.OrderItemWarningAllOfCauseEnum = exports.OrderItemWarningAllOfToJSON = exports.OrderItemWarningAllOfFromJSONTyped = exports.OrderItemWarningAllOfFromJSON = void 0;
|
|
17
|
-
var runtime_1 = require("../runtime");
|
|
18
|
-
function OrderItemWarningAllOfFromJSON(json) {
|
|
19
|
-
return OrderItemWarningAllOfFromJSONTyped(json, false);
|
|
20
|
-
}
|
|
21
|
-
exports.OrderItemWarningAllOfFromJSON = OrderItemWarningAllOfFromJSON;
|
|
22
|
-
function OrderItemWarningAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
-
if ((json === undefined) || (json === null)) {
|
|
24
|
-
return json;
|
|
25
|
-
}
|
|
26
|
-
return {
|
|
27
|
-
'orderId': !(0, runtime_1.exists)(json, 'orderId') ? undefined : json['orderId'],
|
|
28
|
-
'productName': json['productName'],
|
|
29
|
-
'requestedQuantity': json['requestedQuantity'],
|
|
30
|
-
'finalQuantity': json['finalQuantity'],
|
|
31
|
-
'cause': json['cause'],
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
exports.OrderItemWarningAllOfFromJSONTyped = OrderItemWarningAllOfFromJSONTyped;
|
|
35
|
-
function OrderItemWarningAllOfToJSON(value) {
|
|
36
|
-
if (value === undefined) {
|
|
37
|
-
return undefined;
|
|
38
|
-
}
|
|
39
|
-
if (value === null) {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'orderId': value.orderId,
|
|
44
|
-
'productName': value.productName,
|
|
45
|
-
'requestedQuantity': value.requestedQuantity,
|
|
46
|
-
'finalQuantity': value.finalQuantity,
|
|
47
|
-
'cause': value.cause,
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
exports.OrderItemWarningAllOfToJSON = OrderItemWarningAllOfToJSON;
|
|
51
|
-
/**
|
|
52
|
-
* @export
|
|
53
|
-
* @enum {string}
|
|
54
|
-
*/
|
|
55
|
-
var OrderItemWarningAllOfCauseEnum;
|
|
56
|
-
(function (OrderItemWarningAllOfCauseEnum) {
|
|
57
|
-
OrderItemWarningAllOfCauseEnum["EMPTYQUANTITY"] = "EMPTY_QUANTITY";
|
|
58
|
-
OrderItemWarningAllOfCauseEnum["BADQUANTITY"] = "BAD_QUANTITY";
|
|
59
|
-
OrderItemWarningAllOfCauseEnum["MAXQUANTITY"] = "MAX_QUANTITY";
|
|
60
|
-
OrderItemWarningAllOfCauseEnum["OUTDATEDAD"] = "OUTDATED_AD";
|
|
61
|
-
OrderItemWarningAllOfCauseEnum["RESTRICTEDPRODUCT"] = "RESTRICTED_PRODUCT";
|
|
62
|
-
})(OrderItemWarningAllOfCauseEnum = exports.OrderItemWarningAllOfCauseEnum || (exports.OrderItemWarningAllOfCauseEnum = {}));
|
|
@@ -1,42 +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 { MetaOrderWarning } from './MetaOrderWarning';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface OrderWarning
|
|
17
|
-
*/
|
|
18
|
-
export interface OrderWarning extends MetaOrderWarning {
|
|
19
|
-
/**
|
|
20
|
-
* User nickname of the seller associated to this order
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof OrderWarning
|
|
23
|
-
*/
|
|
24
|
-
sellerNickname: string;
|
|
25
|
-
/**
|
|
26
|
-
* Warning cause
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof OrderWarning
|
|
29
|
-
*/
|
|
30
|
-
cause: OrderWarningCauseEnum;
|
|
31
|
-
}
|
|
32
|
-
export declare function OrderWarningFromJSON(json: any): OrderWarning;
|
|
33
|
-
export declare function OrderWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderWarning;
|
|
34
|
-
export declare function OrderWarningToJSON(value?: OrderWarning | null): any;
|
|
35
|
-
/**
|
|
36
|
-
* @export
|
|
37
|
-
* @enum {string}
|
|
38
|
-
*/
|
|
39
|
-
export declare enum OrderWarningCauseEnum {
|
|
40
|
-
MINIMUMPRICE = "MINIMUM_PRICE",
|
|
41
|
-
FORBIDDENSELLER = "FORBIDDEN_SELLER"
|
|
42
|
-
}
|
|
@@ -1,58 +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 __assign = (this && this.__assign) || function () {
|
|
16
|
-
__assign = Object.assign || function(t) {
|
|
17
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
-
s = arguments[i];
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
return __assign.apply(this, arguments);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.OrderWarningCauseEnum = exports.OrderWarningToJSON = exports.OrderWarningFromJSONTyped = exports.OrderWarningFromJSON = void 0;
|
|
28
|
-
var MetaOrderWarning_1 = require("./MetaOrderWarning");
|
|
29
|
-
function OrderWarningFromJSON(json) {
|
|
30
|
-
return OrderWarningFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
exports.OrderWarningFromJSON = OrderWarningFromJSON;
|
|
33
|
-
function OrderWarningFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if ((json === undefined) || (json === null)) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return __assign(__assign({}, (0, MetaOrderWarning_1.MetaOrderWarningFromJSONTyped)(json, ignoreDiscriminator)), { 'sellerNickname': json['sellerNickname'], 'cause': json['cause'] });
|
|
38
|
-
}
|
|
39
|
-
exports.OrderWarningFromJSONTyped = OrderWarningFromJSONTyped;
|
|
40
|
-
function OrderWarningToJSON(value) {
|
|
41
|
-
if (value === undefined) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return __assign(__assign({}, (0, MetaOrderWarning_1.MetaOrderWarningToJSON)(value)), { 'sellerNickname': value.sellerNickname, 'cause': value.cause });
|
|
48
|
-
}
|
|
49
|
-
exports.OrderWarningToJSON = OrderWarningToJSON;
|
|
50
|
-
/**
|
|
51
|
-
* @export
|
|
52
|
-
* @enum {string}
|
|
53
|
-
*/
|
|
54
|
-
var OrderWarningCauseEnum;
|
|
55
|
-
(function (OrderWarningCauseEnum) {
|
|
56
|
-
OrderWarningCauseEnum["MINIMUMPRICE"] = "MINIMUM_PRICE";
|
|
57
|
-
OrderWarningCauseEnum["FORBIDDENSELLER"] = "FORBIDDEN_SELLER";
|
|
58
|
-
})(OrderWarningCauseEnum = exports.OrderWarningCauseEnum || (exports.OrderWarningCauseEnum = {}));
|
|
@@ -1,41 +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 OrderWarningAllOf
|
|
16
|
-
*/
|
|
17
|
-
export interface OrderWarningAllOf {
|
|
18
|
-
/**
|
|
19
|
-
* User nickname of the seller associated to this order
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof OrderWarningAllOf
|
|
22
|
-
*/
|
|
23
|
-
sellerNickname: string;
|
|
24
|
-
/**
|
|
25
|
-
* Warning cause
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof OrderWarningAllOf
|
|
28
|
-
*/
|
|
29
|
-
cause: OrderWarningAllOfCauseEnum;
|
|
30
|
-
}
|
|
31
|
-
export declare function OrderWarningAllOfFromJSON(json: any): OrderWarningAllOf;
|
|
32
|
-
export declare function OrderWarningAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderWarningAllOf;
|
|
33
|
-
export declare function OrderWarningAllOfToJSON(value?: OrderWarningAllOf | null): any;
|
|
34
|
-
/**
|
|
35
|
-
* @export
|
|
36
|
-
* @enum {string}
|
|
37
|
-
*/
|
|
38
|
-
export declare enum OrderWarningAllOfCauseEnum {
|
|
39
|
-
MINIMUMPRICE = "MINIMUM_PRICE",
|
|
40
|
-
FORBIDDENSELLER = "FORBIDDEN_SELLER"
|
|
41
|
-
}
|
|
@@ -1,52 +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.OrderWarningAllOfCauseEnum = exports.OrderWarningAllOfToJSON = exports.OrderWarningAllOfFromJSONTyped = exports.OrderWarningAllOfFromJSON = void 0;
|
|
17
|
-
function OrderWarningAllOfFromJSON(json) {
|
|
18
|
-
return OrderWarningAllOfFromJSONTyped(json, false);
|
|
19
|
-
}
|
|
20
|
-
exports.OrderWarningAllOfFromJSON = OrderWarningAllOfFromJSON;
|
|
21
|
-
function OrderWarningAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if ((json === undefined) || (json === null)) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'sellerNickname': json['sellerNickname'],
|
|
27
|
-
'cause': json['cause'],
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
exports.OrderWarningAllOfFromJSONTyped = OrderWarningAllOfFromJSONTyped;
|
|
31
|
-
function OrderWarningAllOfToJSON(value) {
|
|
32
|
-
if (value === undefined) {
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
if (value === null) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'sellerNickname': value.sellerNickname,
|
|
40
|
-
'cause': value.cause,
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
exports.OrderWarningAllOfToJSON = OrderWarningAllOfToJSON;
|
|
44
|
-
/**
|
|
45
|
-
* @export
|
|
46
|
-
* @enum {string}
|
|
47
|
-
*/
|
|
48
|
-
var OrderWarningAllOfCauseEnum;
|
|
49
|
-
(function (OrderWarningAllOfCauseEnum) {
|
|
50
|
-
OrderWarningAllOfCauseEnum["MINIMUMPRICE"] = "MINIMUM_PRICE";
|
|
51
|
-
OrderWarningAllOfCauseEnum["FORBIDDENSELLER"] = "FORBIDDEN_SELLER";
|
|
52
|
-
})(OrderWarningAllOfCauseEnum = exports.OrderWarningAllOfCauseEnum || (exports.OrderWarningAllOfCauseEnum = {}));
|