@lcdp/api-react-rest-client 3.1.9 → 3.1.10
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 -5
- package/auth/src/models/RestError.js +3 -5
- package/catalog/src/models/RestError.d.ts +3 -5
- package/catalog/src/models/RestError.js +3 -5
- package/chargebee-hook/src/models/RestError.d.ts +3 -5
- package/chargebee-hook/src/models/RestError.js +3 -5
- package/configuration/src/models/RestError.d.ts +3 -5
- package/configuration/src/models/RestError.js +3 -5
- package/content/src/models/RestError.d.ts +3 -5
- package/content/src/models/RestError.js +3 -5
- package/favorite/src/models/RestError.d.ts +3 -5
- package/favorite/src/models/RestError.js +3 -5
- package/inventory/src/models/RestError.d.ts +3 -5
- package/inventory/src/models/RestError.js +3 -5
- package/invoice/src/models/RestError.d.ts +3 -5
- package/invoice/src/models/RestError.js +3 -5
- package/laboratory-store/src/models/RestError.d.ts +3 -5
- package/laboratory-store/src/models/RestError.js +3 -5
- package/lexicon/src/models/RestError.d.ts +3 -5
- package/lexicon/src/models/RestError.js +3 -5
- package/litigation/src/models/RestError.d.ts +3 -5
- package/litigation/src/models/RestError.js +3 -5
- package/magic-cart/src/models/ExpressOrder.d.ts +4 -4
- package/magic-cart/src/models/ExpressOrder.js +7 -3
- package/magic-cart/src/models/ShoppedOffer.d.ts +43 -0
- package/magic-cart/src/models/ShoppedOffer.js +53 -0
- package/magic-cart/src/models/index.d.ts +1 -2
- package/magic-cart/src/models/index.js +1 -2
- package/mangopay-hook/src/models/RestError.d.ts +3 -5
- package/mangopay-hook/src/models/RestError.js +3 -5
- package/notification/src/models/NotificationTypeId.d.ts +0 -1
- package/notification/src/models/NotificationTypeId.js +0 -1
- package/notification/src/models/RestError.d.ts +3 -5
- package/notification/src/models/RestError.js +3 -5
- package/order/src/apis/ManageForeorderApi.d.ts +31 -0
- package/order/src/apis/ManageForeorderApi.js +163 -0
- package/order/src/apis/ManageOrderApi.d.ts +9 -9
- package/order/src/apis/ManageOrderApi.js +12 -13
- package/order/src/apis/SearchForeorderItemApi.d.ts +44 -0
- package/order/src/apis/SearchForeorderItemApi.js +175 -0
- package/order/src/apis/index.d.ts +2 -1
- package/order/src/apis/index.js +2 -1
- package/order/src/models/AnyForeorderCreationParameters.d.ts +23 -0
- package/order/src/models/AnyForeorderCreationParameters.js +45 -0
- package/order/src/models/AnyForeorderWarning.d.ts +26 -0
- package/order/src/models/AnyForeorderWarning.js +50 -0
- package/order/src/models/AnyOrderCreationParameters.d.ts +26 -0
- package/order/src/models/AnyOrderCreationParameters.js +50 -0
- package/order/src/models/AnySource.d.ts +26 -0
- package/order/src/models/AnySource.js +50 -0
- package/order/src/models/CartForeorderCreationParameters.d.ts +37 -0
- package/order/src/models/CartForeorderCreationParameters.js +51 -0
- package/order/src/models/CartSource.d.ts +37 -0
- package/order/src/models/CartSource.js +49 -0
- package/order/src/models/CloneOrderCreationParameters.d.ts +37 -0
- package/order/src/models/CloneOrderCreationParameters.js +51 -0
- package/order/src/models/Foreorder.d.ts +155 -0
- package/order/src/models/Foreorder.js +128 -0
- package/order/src/models/ForeorderCreationParameters.d.ts +31 -0
- package/order/src/models/ForeorderCreationParameters.js +47 -0
- package/order/src/models/ForeorderItemWarning.d.ts +77 -0
- package/order/src/models/{OrderItemWarning.js → ForeorderItemWarning.js} +21 -18
- package/order/src/models/ForeorderOrderCreationParameters.d.ts +37 -0
- package/order/src/models/ForeorderOrderCreationParameters.js +51 -0
- package/order/src/models/ForeorderWarning.d.ts +51 -0
- package/order/src/models/{OrderWarning.js → ForeorderWarning.js} +12 -12
- package/order/src/models/ForeorderWarningBase.d.ts +37 -0
- package/order/src/models/ForeorderWarningBase.js +51 -0
- package/order/src/models/ForeordersWithWarnings.d.ts +39 -0
- package/order/src/models/ForeordersWithWarnings.js +53 -0
- package/order/src/models/Order.d.ts +80 -75
- package/order/src/models/Order.js +53 -48
- package/order/src/models/OrderAddedItem.d.ts +9 -9
- package/order/src/models/OrderAddedItem.js +18 -0
- package/order/src/models/OrderCreationParameters.d.ts +31 -0
- package/order/src/models/OrderCreationParameters.js +47 -0
- package/order/src/models/OrderItem.d.ts +9 -9
- package/order/src/models/OrderItem.js +18 -0
- package/order/src/models/OrderItemPrices.d.ts +8 -8
- package/order/src/models/OrderItemPrices.js +10 -0
- package/order/src/models/OrderPrices.d.ts +9 -9
- package/order/src/models/OrderPrices.js +18 -0
- package/order/src/models/OrderRefundedItem.d.ts +9 -9
- package/order/src/models/OrderRefundedItem.js +18 -0
- package/order/src/models/OrderRemovedItem.d.ts +9 -9
- package/order/src/models/OrderRemovedItem.js +18 -0
- package/order/src/models/OrderSource.d.ts +37 -0
- package/order/src/models/OrderSource.js +49 -0
- package/order/src/models/Reservation.d.ts +7 -7
- package/order/src/models/Reservation.js +14 -0
- package/order/src/models/RestError.d.ts +3 -5
- package/order/src/models/RestError.js +3 -5
- package/order/src/models/ShoppedOffer.d.ts +2 -2
- package/order/src/models/ShoppedOffer.js +2 -2
- package/order/src/models/Source.d.ts +31 -0
- package/order/src/models/Source.js +45 -0
- package/order/src/models/index.d.ts +17 -9
- package/order/src/models/index.js +17 -9
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +3 -5
- package/product/src/models/RestError.js +3 -5
- package/pub/src/models/RestError.d.ts +3 -5
- package/pub/src/models/RestError.js +3 -5
- package/rfx/src/models/RestError.d.ts +3 -5
- package/rfx/src/models/RestError.js +3 -5
- package/sale-offer/src/models/RestError.d.ts +3 -5
- package/sale-offer/src/models/RestError.js +3 -5
- package/servant/src/models/RestError.d.ts +3 -5
- package/servant/src/models/RestError.js +3 -5
- package/shipment/src/models/RestError.d.ts +3 -5
- package/shipment/src/models/RestError.js +3 -5
- package/shopping-cart/src/apis/ManageCartApi.d.ts +35 -24
- package/shopping-cart/src/apis/ManageCartApi.js +57 -120
- package/shopping-cart/src/apis/ManageCartLineApi.d.ts +45 -0
- package/shopping-cart/src/apis/ManageCartLineApi.js +238 -0
- package/shopping-cart/src/apis/SearchCartApi.d.ts +59 -0
- package/shopping-cart/src/apis/SearchCartApi.js +267 -0
- package/shopping-cart/src/apis/SearchCartLineApi.d.ts +41 -0
- package/{order/src/apis/ManageMetaOrderApi.js → shopping-cart/src/apis/SearchCartLineApi.js} +46 -41
- package/shopping-cart/src/apis/index.d.ts +3 -2
- package/shopping-cart/src/apis/index.js +3 -2
- package/shopping-cart/src/models/Cart.d.ts +61 -4
- package/shopping-cart/src/models/Cart.js +47 -2
- package/shopping-cart/src/models/CartCreationParameters.d.ts +44 -0
- package/shopping-cart/src/models/CartCreationParameters.js +56 -0
- package/shopping-cart/src/models/{CartSubCartLine.d.ts → CartLine.d.ts} +13 -13
- package/shopping-cart/src/models/{CartSubCartLine.js → CartLine.js} +11 -11
- package/shopping-cart/src/models/CartLineUpdateParameters.d.ts +37 -0
- package/shopping-cart/src/models/CartLineUpdateParameters.js +49 -0
- package/shopping-cart/src/models/CartLineWithWarnings.d.ts +39 -0
- package/shopping-cart/src/models/CartLineWithWarnings.js +49 -0
- package/shopping-cart/src/models/CartSummary.d.ts +31 -0
- package/shopping-cart/src/models/CartSummary.js +47 -0
- package/shopping-cart/src/models/{CartSubCartTransport.d.ts → CartTransport.d.ts} +12 -12
- package/shopping-cart/src/models/{CartSubCartTransport.js → CartTransport.js} +11 -11
- package/shopping-cart/src/models/CartUpdateParameters.d.ts +31 -0
- package/shopping-cart/src/models/CartUpdateParameters.js +45 -0
- package/shopping-cart/src/models/CartWarning.d.ts +76 -0
- package/shopping-cart/src/models/CartWarning.js +69 -0
- package/shopping-cart/src/models/CartsWithWarnings.d.ts +39 -0
- package/shopping-cart/src/models/CartsWithWarnings.js +49 -0
- package/shopping-cart/src/models/OwnerLink.d.ts +43 -0
- package/shopping-cart/src/models/OwnerLink.js +53 -0
- package/shopping-cart/src/models/PaginatedCarts.d.ts +46 -0
- package/shopping-cart/src/models/PaginatedCarts.js +58 -0
- package/shopping-cart/src/models/PagingMetadata.d.ts +49 -0
- package/shopping-cart/src/models/PagingMetadata.js +55 -0
- package/shopping-cart/src/models/RestError.d.ts +3 -5
- package/shopping-cart/src/models/RestError.js +3 -5
- 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 +12 -4
- package/shopping-cart/src/models/index.js +12 -4
- package/smuggler/src/models/RestError.d.ts +3 -5
- package/smuggler/src/models/RestError.js +3 -5
- package/statistic/src/models/RestError.d.ts +3 -5
- package/statistic/src/models/RestError.js +3 -5
- package/third-party/src/models/RestError.d.ts +3 -5
- package/third-party/src/models/RestError.js +3 -5
- package/ubo/src/apis/ManageUboDeclarationApi.d.ts +2 -2
- package/ubo/src/apis/ManageUboDeclarationApi.js +2 -2
- package/ubo/src/models/RestError.d.ts +3 -5
- package/ubo/src/models/RestError.js +3 -5
- package/user/src/models/NotificationTypeId.d.ts +0 -1
- package/user/src/models/NotificationTypeId.js +0 -1
- package/user/src/models/RestError.d.ts +3 -5
- package/user/src/models/RestError.js +3 -5
- package/user/src/models/User.d.ts +7 -0
- package/user/src/models/User.js +3 -0
- package/user/src/models/UserMangopayUbo.d.ts +31 -0
- package/user/src/models/UserMangopayUbo.js +45 -0
- package/user/src/models/index.d.ts +1 -0
- package/user/src/models/index.js +1 -0
- package/wish/src/models/RestError.d.ts +3 -5
- package/wish/src/models/RestError.js +3 -5
- package/magic-cart/src/models/SaleOfferProposal.d.ts +0 -51
- package/magic-cart/src/models/SaleOfferProposal.js +0 -61
- package/magic-cart/src/models/SellerProposal.d.ts +0 -45
- package/magic-cart/src/models/SellerProposal.js +0 -57
- package/order/src/apis/ManageMetaOrderApi.d.ts +0 -45
- package/order/src/models/AnyMetaOrderWarning.d.ts +0 -26
- package/order/src/models/AnyMetaOrderWarning.js +0 -50
- package/order/src/models/MetaOrder.d.ts +0 -64
- package/order/src/models/MetaOrder.js +0 -70
- package/order/src/models/MetaOrderCreationParameters.d.ts +0 -38
- package/order/src/models/MetaOrderCreationParameters.js +0 -52
- package/order/src/models/MetaOrderCreationSubCartParameters.d.ts +0 -31
- package/order/src/models/MetaOrderCreationSubCartParameters.js +0 -47
- package/order/src/models/MetaOrderPrices.d.ts +0 -79
- package/order/src/models/MetaOrderPrices.js +0 -79
- package/order/src/models/MetaOrderWarning.d.ts +0 -31
- package/order/src/models/MetaOrderWarning.js +0 -47
- package/order/src/models/MetaOrderWithWarnings.d.ts +0 -39
- package/order/src/models/MetaOrderWithWarnings.js +0 -49
- package/order/src/models/OrderItemWarning.d.ts +0 -72
- package/order/src/models/OrderWarning.d.ts +0 -51
- package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +0 -107
- package/shopping-cart/src/apis/ManageCartSubCartApi.js +0 -556
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.d.ts +0 -151
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +0 -879
- package/shopping-cart/src/models/CartSubCart.d.ts +0 -76
- package/shopping-cart/src/models/CartSubCart.js +0 -78
- package/shopping-cart/src/models/CartSubCartLineUpdateParameters.d.ts +0 -37
- package/shopping-cart/src/models/CartSubCartLineUpdateParameters.js +0 -49
|
@@ -0,0 +1,128 @@
|
|
|
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.ForeorderToJSON = exports.ForeorderFromJSONTyped = exports.ForeorderFromJSON = exports.instanceOfForeorder = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var UserLink_1 = require("./UserLink");
|
|
19
|
+
var OrderPrices_1 = require("./OrderPrices");
|
|
20
|
+
var OrderType_1 = require("./OrderType");
|
|
21
|
+
var Address_1 = require("./Address");
|
|
22
|
+
var OrderJournal_1 = require("./OrderJournal");
|
|
23
|
+
var OrderStorageType_1 = require("./OrderStorageType");
|
|
24
|
+
var HttpLink_1 = require("./HttpLink");
|
|
25
|
+
var AnySource_1 = require("./AnySource");
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the Foreorder interface.
|
|
28
|
+
*/
|
|
29
|
+
function instanceOfForeorder(value) {
|
|
30
|
+
if (!('reference' in value) || value['reference'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('estimatedDeliveryDate' in value) || value['estimatedDeliveryDate'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('seller' in value) || value['seller'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('buyer' in value) || value['buyer'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('shippingAddress' in value) || value['shippingAddress'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('billingAddress' in value) || value['billingAddress'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('shipments' in value) || value['shipments'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('maxShipment' in value) || value['maxShipment'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('maxParcelPerShipment' in value) || value['maxParcelPerShipment'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('prices' in value) || value['prices'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('reservations' in value) || value['reservations'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('journal' in value) || value['journal'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('eTag' in value) || value['eTag'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
exports.instanceOfForeorder = instanceOfForeorder;
|
|
69
|
+
function ForeorderFromJSON(json) {
|
|
70
|
+
return ForeorderFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
exports.ForeorderFromJSON = ForeorderFromJSON;
|
|
73
|
+
function ForeorderFromJSONTyped(json, ignoreDiscriminator) {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
'reference': json['reference'],
|
|
79
|
+
'type': (json['type'] === null || json['type'] === undefined) ? json['type'] : (0, OrderType_1.OrderTypeFromJSON)(json['type']),
|
|
80
|
+
'estimatedDeliveryDate': (json['estimatedDeliveryDate'] === null || json['estimatedDeliveryDate'] === undefined) ? json['estimatedDeliveryDate'] : new Date(json['estimatedDeliveryDate']),
|
|
81
|
+
'createdAt': (json['createdAt'] === null || json['createdAt'] === undefined) ? json['createdAt'] : new Date(json['createdAt']),
|
|
82
|
+
'seller': (json['seller'] === null || json['seller'] === undefined) ? json['seller'] : (0, UserLink_1.UserLinkFromJSON)(json['seller']),
|
|
83
|
+
'buyer': (json['buyer'] === null || json['buyer'] === undefined) ? json['buyer'] : (0, UserLink_1.UserLinkFromJSON)(json['buyer']),
|
|
84
|
+
'shippingAddress': (json['shippingAddress'] === null || json['shippingAddress'] === undefined) ? json['shippingAddress'] : (0, Address_1.AddressFromJSON)(json['shippingAddress']),
|
|
85
|
+
'billingAddress': (json['billingAddress'] === null || json['billingAddress'] === undefined) ? json['billingAddress'] : (0, Address_1.AddressFromJSON)(json['billingAddress']),
|
|
86
|
+
'shipments': (json['shipments'] === null || json['shipments'] === undefined) ? json['shipments'] : (0, HttpLink_1.HttpLinkFromJSON)(json['shipments']),
|
|
87
|
+
'storageTypes': (json['storageTypes'] === null || json['storageTypes'] === undefined) ? json['storageTypes'] : json['storageTypes'].map(OrderStorageType_1.OrderStorageTypeFromJSON),
|
|
88
|
+
'maxShipment': json['maxShipment'],
|
|
89
|
+
'maxShippingDate': (json['maxShippingDate'] === null || json['maxShippingDate'] === undefined) ? json['maxShippingDate'] : new Date(json['maxShippingDate']),
|
|
90
|
+
'maxParcelPerShipment': json['maxParcelPerShipment'],
|
|
91
|
+
'prices': (json['prices'] === null || json['prices'] === undefined) ? json['prices'] : (0, OrderPrices_1.OrderPricesFromJSON)(json['prices']),
|
|
92
|
+
'items': (json['items'] === null || json['items'] === undefined) ? json['items'] : (0, HttpLink_1.HttpLinkFromJSON)(json['items']),
|
|
93
|
+
'reservations': (json['reservations'] === null || json['reservations'] === undefined) ? json['reservations'] : (0, HttpLink_1.HttpLinkFromJSON)(json['reservations']),
|
|
94
|
+
'tags': json['tags'],
|
|
95
|
+
'journal': (json['journal'] === null || json['journal'] === undefined) ? json['journal'] : (0, OrderJournal_1.OrderJournalFromJSON)(json['journal']),
|
|
96
|
+
'eTag': json['eTag'],
|
|
97
|
+
'source': (json['source'] === null || json['source'] === undefined) ? json['source'] : (0, AnySource_1.AnySourceFromJSON)(json['source']),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
exports.ForeorderFromJSONTyped = ForeorderFromJSONTyped;
|
|
101
|
+
function ForeorderToJSON(value) {
|
|
102
|
+
if (value == null) {
|
|
103
|
+
return value;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
'reference': value['reference'],
|
|
107
|
+
'type': (0, OrderType_1.OrderTypeToJSON)(value['type']),
|
|
108
|
+
'estimatedDeliveryDate': (value['estimatedDeliveryDate'] === null || value['estimatedDeliveryDate'] === undefined) ? value['estimatedDeliveryDate'] : (0, runtime_1.toDateISOString)(value['estimatedDeliveryDate']),
|
|
109
|
+
'createdAt': (value['createdAt'] === null || value['createdAt'] === undefined) ? value['createdAt'] : (value['createdAt']).toISOString(),
|
|
110
|
+
'seller': (0, UserLink_1.UserLinkToJSON)(value['seller']),
|
|
111
|
+
'buyer': (0, UserLink_1.UserLinkToJSON)(value['buyer']),
|
|
112
|
+
'shippingAddress': (0, Address_1.AddressToJSON)(value['shippingAddress']),
|
|
113
|
+
'billingAddress': (0, Address_1.AddressToJSON)(value['billingAddress']),
|
|
114
|
+
'shipments': (0, HttpLink_1.HttpLinkToJSON)(value['shipments']),
|
|
115
|
+
'storageTypes': (value['storageTypes'] === null || value['storageTypes'] === undefined) ? value['storageTypes'] : value['storageTypes'].map(OrderStorageType_1.OrderStorageTypeToJSON),
|
|
116
|
+
'maxShipment': value['maxShipment'],
|
|
117
|
+
'maxShippingDate': (value['maxShippingDate'] === null || value['maxShippingDate'] === undefined) ? value['maxShippingDate'] : (0, runtime_1.toDateISOString)(value['maxShippingDate']),
|
|
118
|
+
'maxParcelPerShipment': value['maxParcelPerShipment'],
|
|
119
|
+
'prices': (0, OrderPrices_1.OrderPricesToJSON)(value['prices']),
|
|
120
|
+
'items': (0, HttpLink_1.HttpLinkToJSON)(value['items']),
|
|
121
|
+
'reservations': (0, HttpLink_1.HttpLinkToJSON)(value['reservations']),
|
|
122
|
+
'tags': value['tags'],
|
|
123
|
+
'journal': (0, OrderJournal_1.OrderJournalToJSON)(value['journal']),
|
|
124
|
+
'eTag': value['eTag'],
|
|
125
|
+
'source': (0, AnySource_1.AnySourceToJSON)(value['source']),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
exports.ForeorderToJSON = ForeorderToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 ForeorderCreationParameters
|
|
16
|
+
*/
|
|
17
|
+
export interface ForeorderCreationParameters {
|
|
18
|
+
/**
|
|
19
|
+
* Source from which to create foreorders
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ForeorderCreationParameters
|
|
22
|
+
*/
|
|
23
|
+
source: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ForeorderCreationParameters interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfForeorderCreationParameters(value: object): value is ForeorderCreationParameters;
|
|
29
|
+
export declare function ForeorderCreationParametersFromJSON(json: any): ForeorderCreationParameters;
|
|
30
|
+
export declare function ForeorderCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForeorderCreationParameters;
|
|
31
|
+
export declare function ForeorderCreationParametersToJSON(value?: ForeorderCreationParameters | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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.ForeorderCreationParametersToJSON = exports.ForeorderCreationParametersFromJSONTyped = exports.ForeorderCreationParametersFromJSON = exports.instanceOfForeorderCreationParameters = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ForeorderCreationParameters interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfForeorderCreationParameters(value) {
|
|
21
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfForeorderCreationParameters = instanceOfForeorderCreationParameters;
|
|
26
|
+
function ForeorderCreationParametersFromJSON(json) {
|
|
27
|
+
return ForeorderCreationParametersFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.ForeorderCreationParametersFromJSON = ForeorderCreationParametersFromJSON;
|
|
30
|
+
function ForeorderCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'source': json['source'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.ForeorderCreationParametersFromJSONTyped = ForeorderCreationParametersFromJSONTyped;
|
|
39
|
+
function ForeorderCreationParametersToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'source': value['source'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.ForeorderCreationParametersToJSON = ForeorderCreationParametersToJSON;
|
|
@@ -0,0 +1,77 @@
|
|
|
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 ForeorderItemWarning
|
|
16
|
+
*/
|
|
17
|
+
export interface ForeorderItemWarning {
|
|
18
|
+
/**
|
|
19
|
+
* What type of warning is it
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ForeorderItemWarning
|
|
22
|
+
*/
|
|
23
|
+
type: string;
|
|
24
|
+
/**
|
|
25
|
+
* User nickname of the seller associated to this order
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ForeorderItemWarning
|
|
28
|
+
*/
|
|
29
|
+
sellerNickname: string;
|
|
30
|
+
/**
|
|
31
|
+
* Id of the order linked to this warning. Note : Could be absent if all lines from a subcart were ignored.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ForeorderItemWarning
|
|
34
|
+
*/
|
|
35
|
+
foreorderId?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Name of the product associated to this line
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ForeorderItemWarning
|
|
40
|
+
*/
|
|
41
|
+
productName: string;
|
|
42
|
+
/**
|
|
43
|
+
* Number of items requested by the user
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ForeorderItemWarning
|
|
46
|
+
*/
|
|
47
|
+
targetQuantity: number;
|
|
48
|
+
/**
|
|
49
|
+
* Number of items finally selected for this line
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ForeorderItemWarning
|
|
52
|
+
*/
|
|
53
|
+
finalQuantity: number;
|
|
54
|
+
/**
|
|
55
|
+
* Warning cause
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ForeorderItemWarning
|
|
58
|
+
*/
|
|
59
|
+
cause: ForeorderItemWarningCauseEnum;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const ForeorderItemWarningCauseEnum: {
|
|
65
|
+
readonly BAD_QUANTITY: "BAD_QUANTITY";
|
|
66
|
+
readonly MAX_QUANTITY: "MAX_QUANTITY";
|
|
67
|
+
readonly OUTDATED_AD: "OUTDATED_AD";
|
|
68
|
+
readonly RESTRICTED_PRODUCT: "RESTRICTED_PRODUCT";
|
|
69
|
+
};
|
|
70
|
+
export declare type ForeorderItemWarningCauseEnum = typeof ForeorderItemWarningCauseEnum[keyof typeof ForeorderItemWarningCauseEnum];
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the ForeorderItemWarning interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfForeorderItemWarning(value: object): value is ForeorderItemWarning;
|
|
75
|
+
export declare function ForeorderItemWarningFromJSON(json: any): ForeorderItemWarning;
|
|
76
|
+
export declare function ForeorderItemWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForeorderItemWarning;
|
|
77
|
+
export declare function ForeorderItemWarningToJSON(value?: ForeorderItemWarning | null): any;
|
|
@@ -13,26 +13,27 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.ForeorderItemWarningToJSON = exports.ForeorderItemWarningFromJSONTyped = exports.ForeorderItemWarningFromJSON = exports.instanceOfForeorderItemWarning = exports.ForeorderItemWarningCauseEnum = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
|
-
exports.
|
|
21
|
-
EMPTY_QUANTITY: 'EMPTY_QUANTITY',
|
|
20
|
+
exports.ForeorderItemWarningCauseEnum = {
|
|
22
21
|
BAD_QUANTITY: 'BAD_QUANTITY',
|
|
23
22
|
MAX_QUANTITY: 'MAX_QUANTITY',
|
|
24
23
|
OUTDATED_AD: 'OUTDATED_AD',
|
|
25
24
|
RESTRICTED_PRODUCT: 'RESTRICTED_PRODUCT'
|
|
26
25
|
};
|
|
27
26
|
/**
|
|
28
|
-
* Check if a given object implements the
|
|
27
|
+
* Check if a given object implements the ForeorderItemWarning interface.
|
|
29
28
|
*/
|
|
30
|
-
function
|
|
29
|
+
function instanceOfForeorderItemWarning(value) {
|
|
31
30
|
if (!('type' in value) || value['type'] === undefined)
|
|
32
31
|
return false;
|
|
32
|
+
if (!('sellerNickname' in value) || value['sellerNickname'] === undefined)
|
|
33
|
+
return false;
|
|
33
34
|
if (!('productName' in value) || value['productName'] === undefined)
|
|
34
35
|
return false;
|
|
35
|
-
if (!('
|
|
36
|
+
if (!('targetQuantity' in value) || value['targetQuantity'] === undefined)
|
|
36
37
|
return false;
|
|
37
38
|
if (!('finalQuantity' in value) || value['finalQuantity'] === undefined)
|
|
38
39
|
return false;
|
|
@@ -40,36 +41,38 @@ function instanceOfOrderItemWarning(value) {
|
|
|
40
41
|
return false;
|
|
41
42
|
return true;
|
|
42
43
|
}
|
|
43
|
-
exports.
|
|
44
|
-
function
|
|
45
|
-
return
|
|
44
|
+
exports.instanceOfForeorderItemWarning = instanceOfForeorderItemWarning;
|
|
45
|
+
function ForeorderItemWarningFromJSON(json) {
|
|
46
|
+
return ForeorderItemWarningFromJSONTyped(json, false);
|
|
46
47
|
}
|
|
47
|
-
exports.
|
|
48
|
-
function
|
|
48
|
+
exports.ForeorderItemWarningFromJSON = ForeorderItemWarningFromJSON;
|
|
49
|
+
function ForeorderItemWarningFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
50
|
if (json == null) {
|
|
50
51
|
return json;
|
|
51
52
|
}
|
|
52
53
|
return {
|
|
53
54
|
'type': json['type'],
|
|
54
|
-
'
|
|
55
|
+
'sellerNickname': json['sellerNickname'],
|
|
56
|
+
'foreorderId': json['foreorderId'],
|
|
55
57
|
'productName': json['productName'],
|
|
56
|
-
'
|
|
58
|
+
'targetQuantity': json['targetQuantity'],
|
|
57
59
|
'finalQuantity': json['finalQuantity'],
|
|
58
60
|
'cause': json['cause'],
|
|
59
61
|
};
|
|
60
62
|
}
|
|
61
|
-
exports.
|
|
62
|
-
function
|
|
63
|
+
exports.ForeorderItemWarningFromJSONTyped = ForeorderItemWarningFromJSONTyped;
|
|
64
|
+
function ForeorderItemWarningToJSON(value) {
|
|
63
65
|
if (value == null) {
|
|
64
66
|
return value;
|
|
65
67
|
}
|
|
66
68
|
return {
|
|
67
69
|
'type': value['type'],
|
|
68
|
-
'
|
|
70
|
+
'sellerNickname': value['sellerNickname'],
|
|
71
|
+
'foreorderId': value['foreorderId'],
|
|
69
72
|
'productName': value['productName'],
|
|
70
|
-
'
|
|
73
|
+
'targetQuantity': value['targetQuantity'],
|
|
71
74
|
'finalQuantity': value['finalQuantity'],
|
|
72
75
|
'cause': value['cause'],
|
|
73
76
|
};
|
|
74
77
|
}
|
|
75
|
-
exports.
|
|
78
|
+
exports.ForeorderItemWarningToJSON = ForeorderItemWarningToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 ForeorderOrderCreationParameters
|
|
16
|
+
*/
|
|
17
|
+
export interface ForeorderOrderCreationParameters {
|
|
18
|
+
/**
|
|
19
|
+
* Source from which to create orders.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ForeorderOrderCreationParameters
|
|
22
|
+
*/
|
|
23
|
+
source: string;
|
|
24
|
+
/**
|
|
25
|
+
* List of foreorder references
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof ForeorderOrderCreationParameters
|
|
28
|
+
*/
|
|
29
|
+
references: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ForeorderOrderCreationParameters interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfForeorderOrderCreationParameters(value: object): value is ForeorderOrderCreationParameters;
|
|
35
|
+
export declare function ForeorderOrderCreationParametersFromJSON(json: any): ForeorderOrderCreationParameters;
|
|
36
|
+
export declare function ForeorderOrderCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForeorderOrderCreationParameters;
|
|
37
|
+
export declare function ForeorderOrderCreationParametersToJSON(value?: ForeorderOrderCreationParameters | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.ForeorderOrderCreationParametersToJSON = exports.ForeorderOrderCreationParametersFromJSONTyped = exports.ForeorderOrderCreationParametersFromJSON = exports.instanceOfForeorderOrderCreationParameters = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ForeorderOrderCreationParameters interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfForeorderOrderCreationParameters(value) {
|
|
21
|
+
if (!('source' in value) || value['source'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('references' in value) || value['references'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfForeorderOrderCreationParameters = instanceOfForeorderOrderCreationParameters;
|
|
28
|
+
function ForeorderOrderCreationParametersFromJSON(json) {
|
|
29
|
+
return ForeorderOrderCreationParametersFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.ForeorderOrderCreationParametersFromJSON = ForeorderOrderCreationParametersFromJSON;
|
|
32
|
+
function ForeorderOrderCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'source': json['source'],
|
|
38
|
+
'references': json['references'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.ForeorderOrderCreationParametersFromJSONTyped = ForeorderOrderCreationParametersFromJSONTyped;
|
|
42
|
+
function ForeorderOrderCreationParametersToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'source': value['source'],
|
|
48
|
+
'references': value['references'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.ForeorderOrderCreationParametersToJSON = ForeorderOrderCreationParametersToJSON;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 ForeorderWarning
|
|
16
|
+
*/
|
|
17
|
+
export interface ForeorderWarning {
|
|
18
|
+
/**
|
|
19
|
+
* What type of warning is it
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ForeorderWarning
|
|
22
|
+
*/
|
|
23
|
+
type: string;
|
|
24
|
+
/**
|
|
25
|
+
* User nickname of the seller associated to this order
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ForeorderWarning
|
|
28
|
+
*/
|
|
29
|
+
sellerNickname: string;
|
|
30
|
+
/**
|
|
31
|
+
* Warning cause
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ForeorderWarning
|
|
34
|
+
*/
|
|
35
|
+
cause: ForeorderWarningCauseEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const ForeorderWarningCauseEnum: {
|
|
41
|
+
readonly MINIMUM_PRICE: "MINIMUM_PRICE";
|
|
42
|
+
readonly FORBIDDEN_SELLER: "FORBIDDEN_SELLER";
|
|
43
|
+
};
|
|
44
|
+
export declare type ForeorderWarningCauseEnum = typeof ForeorderWarningCauseEnum[keyof typeof ForeorderWarningCauseEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the ForeorderWarning interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfForeorderWarning(value: object): value is ForeorderWarning;
|
|
49
|
+
export declare function ForeorderWarningFromJSON(json: any): ForeorderWarning;
|
|
50
|
+
export declare function ForeorderWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForeorderWarning;
|
|
51
|
+
export declare function ForeorderWarningToJSON(value?: ForeorderWarning | null): any;
|
|
@@ -13,18 +13,18 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.ForeorderWarningToJSON = exports.ForeorderWarningFromJSONTyped = exports.ForeorderWarningFromJSON = exports.instanceOfForeorderWarning = exports.ForeorderWarningCauseEnum = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
|
-
exports.
|
|
20
|
+
exports.ForeorderWarningCauseEnum = {
|
|
21
21
|
MINIMUM_PRICE: 'MINIMUM_PRICE',
|
|
22
22
|
FORBIDDEN_SELLER: 'FORBIDDEN_SELLER'
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
|
-
* Check if a given object implements the
|
|
25
|
+
* Check if a given object implements the ForeorderWarning interface.
|
|
26
26
|
*/
|
|
27
|
-
function
|
|
27
|
+
function instanceOfForeorderWarning(value) {
|
|
28
28
|
if (!('type' in value) || value['type'] === undefined)
|
|
29
29
|
return false;
|
|
30
30
|
if (!('sellerNickname' in value) || value['sellerNickname'] === undefined)
|
|
@@ -33,12 +33,12 @@ function instanceOfOrderWarning(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
return true;
|
|
35
35
|
}
|
|
36
|
-
exports.
|
|
37
|
-
function
|
|
38
|
-
return
|
|
36
|
+
exports.instanceOfForeorderWarning = instanceOfForeorderWarning;
|
|
37
|
+
function ForeorderWarningFromJSON(json) {
|
|
38
|
+
return ForeorderWarningFromJSONTyped(json, false);
|
|
39
39
|
}
|
|
40
|
-
exports.
|
|
41
|
-
function
|
|
40
|
+
exports.ForeorderWarningFromJSON = ForeorderWarningFromJSON;
|
|
41
|
+
function ForeorderWarningFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
42
|
if (json == null) {
|
|
43
43
|
return json;
|
|
44
44
|
}
|
|
@@ -48,8 +48,8 @@ function OrderWarningFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'cause': json['cause'],
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
exports.
|
|
52
|
-
function
|
|
51
|
+
exports.ForeorderWarningFromJSONTyped = ForeorderWarningFromJSONTyped;
|
|
52
|
+
function ForeorderWarningToJSON(value) {
|
|
53
53
|
if (value == null) {
|
|
54
54
|
return value;
|
|
55
55
|
}
|
|
@@ -59,4 +59,4 @@ function OrderWarningToJSON(value) {
|
|
|
59
59
|
'cause': value['cause'],
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
exports.
|
|
62
|
+
exports.ForeorderWarningToJSON = ForeorderWarningToJSON;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 ForeorderWarningBase
|
|
16
|
+
*/
|
|
17
|
+
export interface ForeorderWarningBase {
|
|
18
|
+
/**
|
|
19
|
+
* What type of warning is it
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ForeorderWarningBase
|
|
22
|
+
*/
|
|
23
|
+
type: string;
|
|
24
|
+
/**
|
|
25
|
+
* User nickname of the seller associated to this order
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ForeorderWarningBase
|
|
28
|
+
*/
|
|
29
|
+
sellerNickname: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ForeorderWarningBase interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfForeorderWarningBase(value: object): value is ForeorderWarningBase;
|
|
35
|
+
export declare function ForeorderWarningBaseFromJSON(json: any): ForeorderWarningBase;
|
|
36
|
+
export declare function ForeorderWarningBaseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForeorderWarningBase;
|
|
37
|
+
export declare function ForeorderWarningBaseToJSON(value?: ForeorderWarningBase | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.ForeorderWarningBaseToJSON = exports.ForeorderWarningBaseFromJSONTyped = exports.ForeorderWarningBaseFromJSON = exports.instanceOfForeorderWarningBase = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the ForeorderWarningBase interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfForeorderWarningBase(value) {
|
|
21
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('sellerNickname' in value) || value['sellerNickname'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfForeorderWarningBase = instanceOfForeorderWarningBase;
|
|
28
|
+
function ForeorderWarningBaseFromJSON(json) {
|
|
29
|
+
return ForeorderWarningBaseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.ForeorderWarningBaseFromJSON = ForeorderWarningBaseFromJSON;
|
|
32
|
+
function ForeorderWarningBaseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'type': json['type'],
|
|
38
|
+
'sellerNickname': json['sellerNickname'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.ForeorderWarningBaseFromJSONTyped = ForeorderWarningBaseFromJSONTyped;
|
|
42
|
+
function ForeorderWarningBaseToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'type': value['type'],
|
|
48
|
+
'sellerNickname': value['sellerNickname'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.ForeorderWarningBaseToJSON = ForeorderWarningBaseToJSON;
|