@lcdp/api-react-rest-client 2.5.14-develop.7801552709 → 2.5.14-develop.8063982322

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.
Files changed (39) hide show
  1. package/configuration/src/apis/ManageVariableApi.d.ts +28 -1
  2. package/configuration/src/apis/ManageVariableApi.js +160 -4
  3. package/configuration/src/models/Variable.d.ts +2 -2
  4. package/configuration/src/models/Variable.js +2 -3
  5. package/configuration/src/models/Vat.d.ts +3 -3
  6. package/configuration/src/models/Vat.js +3 -4
  7. package/order/src/apis/ManageFreeCarriageCouponApi.d.ts +42 -0
  8. package/order/src/apis/ManageFreeCarriageCouponApi.js +233 -0
  9. package/order/src/apis/SearchFreeCarriageCouponApi.d.ts +49 -0
  10. package/order/src/apis/SearchFreeCarriageCouponApi.js +202 -0
  11. package/order/src/apis/SearchOrderApi.d.ts +1 -1
  12. package/order/src/apis/SearchOrderApi.js +2 -2
  13. package/order/src/apis/index.d.ts +2 -0
  14. package/order/src/apis/index.js +2 -0
  15. package/order/src/models/FreeCarriageCoupon.d.ts +82 -0
  16. package/order/src/models/FreeCarriageCoupon.js +61 -0
  17. package/order/src/models/FreeCarriageCouponCreationParameters.d.ts +57 -0
  18. package/order/src/models/FreeCarriageCouponCreationParameters.js +52 -0
  19. package/order/src/models/FreeCarriageCouponOwnerLink.d.ts +28 -0
  20. package/order/src/models/FreeCarriageCouponOwnerLink.js +49 -0
  21. package/order/src/models/FreeCarriageCouponOwnerLinkAllOf.d.ts +27 -0
  22. package/order/src/models/FreeCarriageCouponOwnerLinkAllOf.js +41 -0
  23. package/order/src/models/OrderJournal.d.ts +1 -1
  24. package/order/src/models/OrderJournal.js +2 -2
  25. package/order/src/models/PaginatedFreeCarriageCoupons.d.ts +29 -0
  26. package/order/src/models/PaginatedFreeCarriageCoupons.js +50 -0
  27. package/order/src/models/PaginatedFreeCarriageCouponsAllOf.d.ts +28 -0
  28. package/order/src/models/PaginatedFreeCarriageCouponsAllOf.js +42 -0
  29. package/order/src/models/index.d.ts +6 -0
  30. package/order/src/models/index.js +6 -0
  31. package/package.json +1 -1
  32. package/product/src/apis/SearchProductApi.d.ts +1 -1
  33. package/product/src/apis/SearchProductApi.js +2 -2
  34. package/product/src/models/Vat.d.ts +3 -3
  35. package/product/src/models/Vat.js +3 -4
  36. package/pub/src/apis/SearchPubApi.d.ts +1 -1
  37. package/pub/src/apis/SearchPubApi.js +2 -2
  38. package/user/src/apis/SearchUserApi.d.ts +1 -1
  39. package/user/src/apis/SearchUserApi.js +2 -2
@@ -0,0 +1,202 @@
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.GetFreeCarriageCouponsOrderByEnum = exports.SearchFreeCarriageCouponApi = void 0;
68
+ var runtime_1 = require("../runtime");
69
+ var models_1 = require("../models");
70
+ /**
71
+ * no description
72
+ */
73
+ var SearchFreeCarriageCouponApi = /** @class */ (function (_super) {
74
+ __extends(SearchFreeCarriageCouponApi, _super);
75
+ function SearchFreeCarriageCouponApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * This endpoint allow you to retrieve the free carriage coupons of the system
80
+ * Get free carriage coupons
81
+ */
82
+ SearchFreeCarriageCouponApi.prototype.getFreeCarriageCouponsRaw = function (requestParameters) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, token, tokenString, _a, response, contentType, response_1;
85
+ return __generator(this, function (_b) {
86
+ switch (_b.label) {
87
+ case 0:
88
+ queryParameters = {};
89
+ if (requestParameters.ownerEq) {
90
+ queryParameters['owner[eq]'] = requestParameters.ownerEq;
91
+ }
92
+ if (requestParameters.validFromGte !== undefined) {
93
+ queryParameters['validFrom[gte]'] = requestParameters.validFromGte.toISOString();
94
+ }
95
+ if (requestParameters.validFromLte !== undefined) {
96
+ queryParameters['validFrom[lte]'] = requestParameters.validFromLte.toISOString();
97
+ }
98
+ if (requestParameters.validToGte !== undefined) {
99
+ queryParameters['validTo[gte]'] = requestParameters.validToGte.toISOString();
100
+ }
101
+ if (requestParameters.validToLte !== undefined) {
102
+ queryParameters['validTo[lte]'] = requestParameters.validToLte.toISOString();
103
+ }
104
+ if (requestParameters.usedAtPr !== undefined) {
105
+ queryParameters['usedAt[pr]'] = requestParameters.usedAtPr;
106
+ }
107
+ if (requestParameters.tagsCo) {
108
+ queryParameters['tags[co]'] = requestParameters.tagsCo;
109
+ }
110
+ if (requestParameters.tagsNco) {
111
+ queryParameters['tags[nco]'] = requestParameters.tagsNco;
112
+ }
113
+ if (requestParameters.orderBy !== undefined) {
114
+ queryParameters['orderBy'] = requestParameters.orderBy;
115
+ }
116
+ if (requestParameters.p !== undefined) {
117
+ queryParameters['p'] = requestParameters.p;
118
+ }
119
+ if (requestParameters.pp !== undefined) {
120
+ queryParameters['pp'] = requestParameters.pp;
121
+ }
122
+ headerParameters = {};
123
+ if (this.configuration && this.configuration.apiKey) {
124
+ headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
125
+ }
126
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
127
+ token = this.configuration.accessToken;
128
+ if (!(typeof token === 'function')) return [3 /*break*/, 2];
129
+ return [4 /*yield*/, token("bearerAuth", [])];
130
+ case 1:
131
+ _a = _b.sent();
132
+ return [3 /*break*/, 3];
133
+ case 2:
134
+ _a = token;
135
+ _b.label = 3;
136
+ case 3:
137
+ tokenString = _a;
138
+ if (tokenString) {
139
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
140
+ }
141
+ _b.label = 4;
142
+ case 4:
143
+ _b.trys.push([4, 6, , 7]);
144
+ return [4 /*yield*/, this.request({
145
+ path: "/free-carriage-coupons",
146
+ method: 'GET',
147
+ headers: headerParameters,
148
+ query: queryParameters,
149
+ })];
150
+ case 5:
151
+ response = _b.sent();
152
+ contentType = response.headers.get("content-type");
153
+ if (contentType && contentType.indexOf("application/json") !== -1) {
154
+ return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.PaginatedFreeCarriageCouponsFromJSON)(jsonValue); })];
155
+ }
156
+ else if (contentType && contentType.indexOf("text/plain") !== -1) {
157
+ return [2 /*return*/, new runtime_1.TextApiResponse(response)];
158
+ }
159
+ else {
160
+ // TODO : Better handling of others application types
161
+ return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
162
+ }
163
+ return [3 /*break*/, 7];
164
+ case 6:
165
+ response_1 = _b.sent();
166
+ console.debug(response_1);
167
+ throw response_1;
168
+ case 7: return [2 /*return*/];
169
+ }
170
+ });
171
+ });
172
+ };
173
+ /**
174
+ * This endpoint allow you to retrieve the free carriage coupons of the system
175
+ * Get free carriage coupons
176
+ */
177
+ SearchFreeCarriageCouponApi.prototype.getFreeCarriageCoupons = function (requestParameters) {
178
+ return __awaiter(this, void 0, void 0, function () {
179
+ var response;
180
+ return __generator(this, function (_a) {
181
+ switch (_a.label) {
182
+ case 0: return [4 /*yield*/, this.getFreeCarriageCouponsRaw(requestParameters)];
183
+ case 1:
184
+ response = _a.sent();
185
+ return [4 /*yield*/, response.value()];
186
+ case 2: return [2 /*return*/, _a.sent()];
187
+ }
188
+ });
189
+ });
190
+ };
191
+ return SearchFreeCarriageCouponApi;
192
+ }(runtime_1.BaseAPI));
193
+ exports.SearchFreeCarriageCouponApi = SearchFreeCarriageCouponApi;
194
+ /**
195
+ * @export
196
+ * @enum {string}
197
+ */
198
+ var GetFreeCarriageCouponsOrderByEnum;
199
+ (function (GetFreeCarriageCouponsOrderByEnum) {
200
+ GetFreeCarriageCouponsOrderByEnum["ASC"] = "CREATED_AT:ASC";
201
+ GetFreeCarriageCouponsOrderByEnum["DESC"] = "CREATED_AT:DESC";
202
+ })(GetFreeCarriageCouponsOrderByEnum = exports.GetFreeCarriageCouponsOrderByEnum || (exports.GetFreeCarriageCouponsOrderByEnum = {}));
@@ -37,7 +37,7 @@ export interface GetOrdersRequest {
37
37
  dcEq?: boolean;
38
38
  refLi?: string;
39
39
  pausedEq?: boolean;
40
- tagCo?: Array<string>;
40
+ tagsCo?: Array<string>;
41
41
  orderBy?: GetOrdersOrderByEnum;
42
42
  p?: number;
43
43
  pp?: number;
@@ -380,8 +380,8 @@ var SearchOrderApi = /** @class */ (function (_super) {
380
380
  if (requestParameters.pausedEq !== undefined) {
381
381
  queryParameters['paused[eq]'] = requestParameters.pausedEq;
382
382
  }
383
- if (requestParameters.tagCo) {
384
- queryParameters['tag[co]'] = requestParameters.tagCo;
383
+ if (requestParameters.tagsCo) {
384
+ queryParameters['tags[co]'] = requestParameters.tagsCo;
385
385
  }
386
386
  if (requestParameters.orderBy !== undefined) {
387
387
  queryParameters['orderBy'] = requestParameters.orderBy;
@@ -1,5 +1,7 @@
1
+ export * from './ManageFreeCarriageCouponApi';
1
2
  export * from './ManageMetaOrderApi';
2
3
  export * from './ManageOrderApi';
3
4
  export * from './ManageOrderItemApi';
5
+ export * from './SearchFreeCarriageCouponApi';
4
6
  export * from './SearchOrderApi';
5
7
  export * from './SearchOrderItemApi';
@@ -14,8 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ManageFreeCarriageCouponApi"), exports);
17
18
  __exportStar(require("./ManageMetaOrderApi"), exports);
18
19
  __exportStar(require("./ManageOrderApi"), exports);
19
20
  __exportStar(require("./ManageOrderItemApi"), exports);
21
+ __exportStar(require("./SearchFreeCarriageCouponApi"), exports);
20
22
  __exportStar(require("./SearchOrderApi"), exports);
21
23
  __exportStar(require("./SearchOrderItemApi"), exports);
@@ -0,0 +1,82 @@
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 { FreeCarriageCouponOwnerLink } from './FreeCarriageCouponOwnerLink';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface FreeCarriageCoupon
17
+ */
18
+ export interface FreeCarriageCoupon {
19
+ /**
20
+ * Id of the coupon
21
+ * @type {number}
22
+ * @memberof FreeCarriageCoupon
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {FreeCarriageCouponOwnerLink}
28
+ * @memberof FreeCarriageCoupon
29
+ */
30
+ owner: FreeCarriageCouponOwnerLink;
31
+ /**
32
+ * Coupon is valid starting from this date (Format uses RFC 3339, section 5.6 - null value is considered as start of universe which means coupon will is valid until validTo)
33
+ * @type {Date}
34
+ * @memberof FreeCarriageCoupon
35
+ */
36
+ validFrom: Date | null;
37
+ /**
38
+ * Coupon is valid until this date (Format uses RFC 3339, section 5.6 - null value is considered as infinite which means coupon will never expires)
39
+ * @type {Date}
40
+ * @memberof FreeCarriageCoupon
41
+ */
42
+ validTo: Date | null;
43
+ /**
44
+ * Indicate the priority of the coupon. The higher the value, the higher the priority
45
+ * @type {number}
46
+ * @memberof FreeCarriageCoupon
47
+ */
48
+ weight: number;
49
+ /**
50
+ * Comment about coupon
51
+ * @type {string}
52
+ * @memberof FreeCarriageCoupon
53
+ */
54
+ comment?: string | null;
55
+ /**
56
+ * A list of free texts to qualify the coupon
57
+ * @type {Array<string>}
58
+ * @memberof FreeCarriageCoupon
59
+ */
60
+ tags: Array<string>;
61
+ /**
62
+ * Creation date of this Content
63
+ * @type {Date}
64
+ * @memberof FreeCarriageCoupon
65
+ */
66
+ createdAt: Date;
67
+ /**
68
+ * Last update date of this Content
69
+ * @type {Date}
70
+ * @memberof FreeCarriageCoupon
71
+ */
72
+ updatedAt: Date;
73
+ /**
74
+ * Date when coupon was used. If null, the coupon is still unused.
75
+ * @type {Date}
76
+ * @memberof FreeCarriageCoupon
77
+ */
78
+ usedAt: Date | null;
79
+ }
80
+ export declare function FreeCarriageCouponFromJSON(json: any): FreeCarriageCoupon;
81
+ export declare function FreeCarriageCouponFromJSONTyped(json: any, ignoreDiscriminator: boolean): FreeCarriageCoupon;
82
+ export declare function FreeCarriageCouponToJSON(value?: FreeCarriageCoupon | null): any;
@@ -0,0 +1,61 @@
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.FreeCarriageCouponToJSON = exports.FreeCarriageCouponFromJSONTyped = exports.FreeCarriageCouponFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var FreeCarriageCouponOwnerLink_1 = require("./FreeCarriageCouponOwnerLink");
19
+ function FreeCarriageCouponFromJSON(json) {
20
+ return FreeCarriageCouponFromJSONTyped(json, false);
21
+ }
22
+ exports.FreeCarriageCouponFromJSON = FreeCarriageCouponFromJSON;
23
+ function FreeCarriageCouponFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'id': json['id'],
29
+ 'owner': (0, FreeCarriageCouponOwnerLink_1.FreeCarriageCouponOwnerLinkFromJSON)(json['owner']),
30
+ 'validFrom': (json['validFrom'] === null ? null : new Date(json['validFrom'])),
31
+ 'validTo': (json['validTo'] === null ? null : new Date(json['validTo'])),
32
+ 'weight': json['weight'],
33
+ 'comment': !(0, runtime_1.exists)(json, 'comment') ? json['comment'] : json['comment'],
34
+ 'tags': json['tags'],
35
+ 'createdAt': (new Date(json['createdAt'])),
36
+ 'updatedAt': (new Date(json['updatedAt'])),
37
+ 'usedAt': (json['usedAt'] === null ? null : new Date(json['usedAt'])),
38
+ };
39
+ }
40
+ exports.FreeCarriageCouponFromJSONTyped = FreeCarriageCouponFromJSONTyped;
41
+ function FreeCarriageCouponToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'id': value.id,
50
+ 'owner': (0, FreeCarriageCouponOwnerLink_1.FreeCarriageCouponOwnerLinkToJSON)(value.owner),
51
+ 'validFrom': (value.validFrom === null ? null : value.validFrom.toISOString()),
52
+ 'validTo': (value.validTo === null ? null : value.validTo.toISOString()),
53
+ 'weight': value.weight,
54
+ 'comment': value.comment,
55
+ 'tags': value.tags,
56
+ 'createdAt': (value.createdAt.toISOString()),
57
+ 'updatedAt': (value.updatedAt.toISOString()),
58
+ 'usedAt': (value.usedAt === null ? null : value.usedAt.toISOString()),
59
+ };
60
+ }
61
+ exports.FreeCarriageCouponToJSON = FreeCarriageCouponToJSON;
@@ -0,0 +1,57 @@
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 FreeCarriageCouponCreationParameters
16
+ */
17
+ export interface FreeCarriageCouponCreationParameters {
18
+ /**
19
+ * Client owner of the free carriage coupon
20
+ * @type {number}
21
+ * @memberof FreeCarriageCouponCreationParameters
22
+ */
23
+ ownerId: number;
24
+ /**
25
+ * Coupon is valid starting from this date (Format uses RFC 3339, section 5.6 - null value is considered as start of universe which means coupon will is valid until validTo)
26
+ * @type {Date}
27
+ * @memberof FreeCarriageCouponCreationParameters
28
+ */
29
+ validFrom: Date | null;
30
+ /**
31
+ * Coupon is valid until this date (Format uses RFC 3339, section 5.6 - null value is considered as infinite which means coupon will never expires)
32
+ * @type {Date}
33
+ * @memberof FreeCarriageCouponCreationParameters
34
+ */
35
+ validTo: Date | null;
36
+ /**
37
+ * Indicate the priority of the coupon. The higher the value, the higher the priority
38
+ * @type {number}
39
+ * @memberof FreeCarriageCouponCreationParameters
40
+ */
41
+ weight: number;
42
+ /**
43
+ * Comment about coupon
44
+ * @type {string}
45
+ * @memberof FreeCarriageCouponCreationParameters
46
+ */
47
+ comment?: string | null;
48
+ /**
49
+ * A list of free texts to qualify the coupon
50
+ * @type {Array<string>}
51
+ * @memberof FreeCarriageCouponCreationParameters
52
+ */
53
+ tags?: Array<string>;
54
+ }
55
+ export declare function FreeCarriageCouponCreationParametersFromJSON(json: any): FreeCarriageCouponCreationParameters;
56
+ export declare function FreeCarriageCouponCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): FreeCarriageCouponCreationParameters;
57
+ export declare function FreeCarriageCouponCreationParametersToJSON(value?: FreeCarriageCouponCreationParameters | null): any;
@@ -0,0 +1,52 @@
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.FreeCarriageCouponCreationParametersToJSON = exports.FreeCarriageCouponCreationParametersFromJSONTyped = exports.FreeCarriageCouponCreationParametersFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function FreeCarriageCouponCreationParametersFromJSON(json) {
19
+ return FreeCarriageCouponCreationParametersFromJSONTyped(json, false);
20
+ }
21
+ exports.FreeCarriageCouponCreationParametersFromJSON = FreeCarriageCouponCreationParametersFromJSON;
22
+ function FreeCarriageCouponCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'ownerId': json['ownerId'],
28
+ 'validFrom': (json['validFrom'] === null ? null : new Date(json['validFrom'])),
29
+ 'validTo': (json['validTo'] === null ? null : new Date(json['validTo'])),
30
+ 'weight': json['weight'],
31
+ 'comment': !(0, runtime_1.exists)(json, 'comment') ? json['comment'] : json['comment'],
32
+ 'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
33
+ };
34
+ }
35
+ exports.FreeCarriageCouponCreationParametersFromJSONTyped = FreeCarriageCouponCreationParametersFromJSONTyped;
36
+ function FreeCarriageCouponCreationParametersToJSON(value) {
37
+ if (value === undefined) {
38
+ return undefined;
39
+ }
40
+ if (value === null) {
41
+ return null;
42
+ }
43
+ return {
44
+ 'ownerId': value.ownerId,
45
+ 'validFrom': (value.validFrom === null ? null : value.validFrom.toISOString()),
46
+ 'validTo': (value.validTo === null ? null : value.validTo.toISOString()),
47
+ 'weight': value.weight,
48
+ 'comment': value.comment,
49
+ 'tags': value.tags,
50
+ };
51
+ }
52
+ exports.FreeCarriageCouponCreationParametersToJSON = FreeCarriageCouponCreationParametersToJSON;
@@ -0,0 +1,28 @@
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 { HttpLink } from './HttpLink';
13
+ /**
14
+ * Owner of the free carriage coupon
15
+ * @export
16
+ * @interface FreeCarriageCouponOwnerLink
17
+ */
18
+ export interface FreeCarriageCouponOwnerLink extends HttpLink {
19
+ /**
20
+ * Id of the owner
21
+ * @type {number}
22
+ * @memberof FreeCarriageCouponOwnerLink
23
+ */
24
+ id: number;
25
+ }
26
+ export declare function FreeCarriageCouponOwnerLinkFromJSON(json: any): FreeCarriageCouponOwnerLink;
27
+ export declare function FreeCarriageCouponOwnerLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): FreeCarriageCouponOwnerLink;
28
+ export declare function FreeCarriageCouponOwnerLinkToJSON(value?: FreeCarriageCouponOwnerLink | null): any;
@@ -0,0 +1,49 @@
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.FreeCarriageCouponOwnerLinkToJSON = exports.FreeCarriageCouponOwnerLinkFromJSONTyped = exports.FreeCarriageCouponOwnerLinkFromJSON = void 0;
28
+ var HttpLink_1 = require("./HttpLink");
29
+ function FreeCarriageCouponOwnerLinkFromJSON(json) {
30
+ return FreeCarriageCouponOwnerLinkFromJSONTyped(json, false);
31
+ }
32
+ exports.FreeCarriageCouponOwnerLinkFromJSON = FreeCarriageCouponOwnerLinkFromJSON;
33
+ function FreeCarriageCouponOwnerLinkFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': json['id'] });
38
+ }
39
+ exports.FreeCarriageCouponOwnerLinkFromJSONTyped = FreeCarriageCouponOwnerLinkFromJSONTyped;
40
+ function FreeCarriageCouponOwnerLinkToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id });
48
+ }
49
+ exports.FreeCarriageCouponOwnerLinkToJSON = FreeCarriageCouponOwnerLinkToJSON;
@@ -0,0 +1,27 @@
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 FreeCarriageCouponOwnerLinkAllOf
16
+ */
17
+ export interface FreeCarriageCouponOwnerLinkAllOf {
18
+ /**
19
+ * Id of the owner
20
+ * @type {number}
21
+ * @memberof FreeCarriageCouponOwnerLinkAllOf
22
+ */
23
+ id: number;
24
+ }
25
+ export declare function FreeCarriageCouponOwnerLinkAllOfFromJSON(json: any): FreeCarriageCouponOwnerLinkAllOf;
26
+ export declare function FreeCarriageCouponOwnerLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): FreeCarriageCouponOwnerLinkAllOf;
27
+ export declare function FreeCarriageCouponOwnerLinkAllOfToJSON(value?: FreeCarriageCouponOwnerLinkAllOf | null): any;
@@ -0,0 +1,41 @@
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.FreeCarriageCouponOwnerLinkAllOfToJSON = exports.FreeCarriageCouponOwnerLinkAllOfFromJSONTyped = exports.FreeCarriageCouponOwnerLinkAllOfFromJSON = void 0;
17
+ function FreeCarriageCouponOwnerLinkAllOfFromJSON(json) {
18
+ return FreeCarriageCouponOwnerLinkAllOfFromJSONTyped(json, false);
19
+ }
20
+ exports.FreeCarriageCouponOwnerLinkAllOfFromJSON = FreeCarriageCouponOwnerLinkAllOfFromJSON;
21
+ function FreeCarriageCouponOwnerLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'id': json['id'],
27
+ };
28
+ }
29
+ exports.FreeCarriageCouponOwnerLinkAllOfFromJSONTyped = FreeCarriageCouponOwnerLinkAllOfFromJSONTyped;
30
+ function FreeCarriageCouponOwnerLinkAllOfToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'id': value.id,
39
+ };
40
+ }
41
+ exports.FreeCarriageCouponOwnerLinkAllOfToJSON = FreeCarriageCouponOwnerLinkAllOfToJSON;
@@ -39,7 +39,7 @@ export interface OrderJournal {
39
39
  * @type {Date}
40
40
  * @memberof OrderJournal
41
41
  */
42
- freeShippingReachedDate: Date | null;
42
+ freeCarriageThresholdReachedDate: Date | null;
43
43
  }
44
44
  export declare function OrderJournalFromJSON(json: any): OrderJournal;
45
45
  export declare function OrderJournalFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderJournal;