@lcdp/api-react-rest-client 0.0.2-test-codegen.0 → 0.0.2-test-api.0

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 (82) hide show
  1. package/configuration/src/apis/ManageVariableApi.d.ts +1 -53
  2. package/configuration/src/apis/ManageVariableApi.js +1 -54
  3. package/configuration/src/apis/SearchVariableApi.d.ts +1 -53
  4. package/configuration/src/apis/SearchVariableApi.js +1 -54
  5. package/magic-cart/src/apis/ManageExpressOrderApi.d.ts +31 -0
  6. package/magic-cart/src/apis/{ManageMagicCartApi.js → ManageExpressOrderApi.js} +16 -17
  7. package/magic-cart/src/apis/index.d.ts +1 -1
  8. package/magic-cart/src/apis/index.js +1 -1
  9. package/magic-cart/src/models/AnyIdentifiedDistributionMode.d.ts +28 -0
  10. package/magic-cart/src/models/AnyIdentifiedDistributionMode.js +69 -0
  11. package/magic-cart/src/models/Barcodes.d.ts +45 -0
  12. package/magic-cart/src/models/Barcodes.js +48 -0
  13. package/magic-cart/src/models/DistributionMode.d.ts +27 -0
  14. package/magic-cart/src/models/{MagicProductBus.js → DistributionMode.js} +10 -12
  15. package/magic-cart/src/models/DistributionRange.d.ts +39 -0
  16. package/magic-cart/src/models/{MagicProposal.js → DistributionRange.js} +12 -12
  17. package/magic-cart/src/models/ExpressOrder.d.ts +28 -0
  18. package/magic-cart/src/models/ExpressOrder.js +43 -0
  19. package/magic-cart/src/models/ExpressOrderCreationParameters.d.ts +34 -0
  20. package/magic-cart/src/models/ExpressOrderCreationParameters.js +45 -0
  21. package/magic-cart/src/models/ExpressOrderNeed.d.ts +33 -0
  22. package/magic-cart/src/models/{MagicNeed.js → ExpressOrderNeed.js} +8 -10
  23. package/magic-cart/src/models/HttpLink.d.ts +27 -0
  24. package/magic-cart/src/models/HttpLink.js +41 -0
  25. package/magic-cart/src/models/IdentifiedDistributionRange.d.ts +34 -0
  26. package/magic-cart/src/models/IdentifiedDistributionRange.js +49 -0
  27. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.d.ts +33 -0
  28. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.js +43 -0
  29. package/magic-cart/src/models/IdentifiedRangeDistributionMode.d.ts +29 -0
  30. package/magic-cart/src/models/IdentifiedRangeDistributionMode.js +50 -0
  31. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.d.ts +28 -0
  32. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.js +42 -0
  33. package/magic-cart/src/models/ProductLink.d.ts +41 -0
  34. package/magic-cart/src/models/ProductLink.js +50 -0
  35. package/magic-cart/src/models/ProductLinkAllOf.d.ts +40 -0
  36. package/magic-cart/src/models/ProductLinkAllOf.js +46 -0
  37. package/magic-cart/src/models/QuotationDistributionMode.d.ts +22 -0
  38. package/magic-cart/src/models/QuotationDistributionMode.js +28 -0
  39. package/magic-cart/src/models/SaleOfferLink.d.ts +54 -0
  40. package/magic-cart/src/models/SaleOfferLink.js +52 -0
  41. package/magic-cart/src/models/SaleOfferLinkAllOf.d.ts +53 -0
  42. package/magic-cart/src/models/SaleOfferLinkAllOf.js +52 -0
  43. package/magic-cart/src/models/SaleOfferProposal.d.ts +47 -0
  44. package/magic-cart/src/models/SaleOfferProposal.js +49 -0
  45. package/magic-cart/src/models/SellerProposal.d.ts +41 -0
  46. package/magic-cart/src/models/SellerProposal.js +47 -0
  47. package/magic-cart/src/models/Stock.d.ts +39 -0
  48. package/magic-cart/src/models/Stock.js +46 -0
  49. package/magic-cart/src/models/UnitaryDistributionMode.d.ts +34 -0
  50. package/magic-cart/src/models/UnitaryDistributionMode.js +49 -0
  51. package/magic-cart/src/models/UnitaryDistributionModeAllOf.d.ts +33 -0
  52. package/magic-cart/src/models/UnitaryDistributionModeAllOf.js +43 -0
  53. package/magic-cart/src/models/UserLink.d.ts +34 -0
  54. package/magic-cart/src/models/UserLink.js +49 -0
  55. package/magic-cart/src/models/UserLinkAllOf.d.ts +33 -0
  56. package/magic-cart/src/models/UserLinkAllOf.js +43 -0
  57. package/magic-cart/src/models/index.d.ts +24 -9
  58. package/magic-cart/src/models/index.js +24 -9
  59. package/mangopay-hook/src/apis/MangopayHookApi.d.ts +0 -13
  60. package/mangopay-hook/src/apis/MangopayHookApi.js +1 -63
  61. package/package.json +1 -1
  62. package/product/src/apis/SearchProductApi.d.ts +1 -0
  63. package/product/src/apis/SearchProductApi.js +3 -0
  64. package/shopping-cart/src/models/CartSubCartLine.d.ts +0 -6
  65. package/shopping-cart/src/models/CartSubCartLine.js +0 -2
  66. package/user/src/models/UserDelegatedServices.d.ts +1 -1
  67. package/magic-cart/src/apis/ManageMagicCartApi.d.ts +0 -29
  68. package/magic-cart/src/models/AnyMagicCartCreationParameters.d.ts +0 -25
  69. package/magic-cart/src/models/AnyMagicCartCreationParameters.js +0 -64
  70. package/magic-cart/src/models/MagicCart.d.ts +0 -28
  71. package/magic-cart/src/models/MagicCart.js +0 -43
  72. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.d.ts +0 -29
  73. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.js +0 -50
  74. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.d.ts +0 -28
  75. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.js +0 -42
  76. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.d.ts +0 -29
  77. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.js +0 -50
  78. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.d.ts +0 -28
  79. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.js +0 -42
  80. package/magic-cart/src/models/MagicNeed.d.ts +0 -39
  81. package/magic-cart/src/models/MagicProductBus.d.ts +0 -33
  82. package/magic-cart/src/models/MagicProposal.d.ts +0 -39
@@ -0,0 +1,39 @@
1
+ /**
2
+ * lcdp-magic-cart
3
+ * This is the REST API of Magic cart
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 Stock
16
+ */
17
+ export interface Stock {
18
+ /**
19
+ * Number of element in the quantity
20
+ * @type {number}
21
+ * @memberof Stock
22
+ */
23
+ remainingQuantity?: number | null;
24
+ /**
25
+ * Lapsing date of items in this stock (RFC 3339, section 5.6)
26
+ * @type {Date}
27
+ * @memberof Stock
28
+ */
29
+ lapsingDate?: Date | null;
30
+ /**
31
+ * Name of this stock batch
32
+ * @type {string}
33
+ * @memberof Stock
34
+ */
35
+ batch?: string | null;
36
+ }
37
+ export declare function StockFromJSON(json: any): Stock;
38
+ export declare function StockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stock;
39
+ export declare function StockToJSON(value?: Stock | null): any;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-magic-cart
6
+ * This is the REST API of Magic cart
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.StockToJSON = exports.StockFromJSONTyped = exports.StockFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ function StockFromJSON(json) {
19
+ return StockFromJSONTyped(json, false);
20
+ }
21
+ exports.StockFromJSON = StockFromJSON;
22
+ function StockFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'remainingQuantity': !(0, runtime_1.exists)(json, 'remainingQuantity') ? json['remainingQuantity'] : json['remainingQuantity'],
28
+ 'lapsingDate': !(0, runtime_1.exists)(json, 'lapsingDate') ? json['lapsingDate'] : (new Date(json['lapsingDate'])),
29
+ 'batch': !(0, runtime_1.exists)(json, 'batch') ? json['batch'] : json['batch'],
30
+ };
31
+ }
32
+ exports.StockFromJSONTyped = StockFromJSONTyped;
33
+ function StockToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'remainingQuantity': value.remainingQuantity,
42
+ 'lapsingDate': value.lapsingDate === undefined ? undefined : (value.lapsingDate === null ? null : (0, runtime_1.toDateISOString)(value.lapsingDate)),
43
+ 'batch': value.batch,
44
+ };
45
+ }
46
+ exports.StockToJSON = StockToJSON;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * lcdp-magic-cart
3
+ * This is the REST API of Magic cart
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 { DistributionMode } from './DistributionMode';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UnitaryDistributionMode
17
+ */
18
+ export interface UnitaryDistributionMode extends DistributionMode {
19
+ /**
20
+ * The unit price as a decimal.
21
+ * @type {number}
22
+ * @memberof UnitaryDistributionMode
23
+ */
24
+ unitPrice: number;
25
+ /**
26
+ * Minimal quantity.
27
+ * @type {number}
28
+ * @memberof UnitaryDistributionMode
29
+ */
30
+ minimalQuantity: number;
31
+ }
32
+ export declare function UnitaryDistributionModeFromJSON(json: any): UnitaryDistributionMode;
33
+ export declare function UnitaryDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitaryDistributionMode;
34
+ export declare function UnitaryDistributionModeToJSON(value?: UnitaryDistributionMode | null): any;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-magic-cart
6
+ * This is the REST API of Magic cart
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.UnitaryDistributionModeToJSON = exports.UnitaryDistributionModeFromJSONTyped = exports.UnitaryDistributionModeFromJSON = void 0;
28
+ var DistributionMode_1 = require("./DistributionMode");
29
+ function UnitaryDistributionModeFromJSON(json) {
30
+ return UnitaryDistributionModeFromJSONTyped(json, false);
31
+ }
32
+ exports.UnitaryDistributionModeFromJSON = UnitaryDistributionModeFromJSON;
33
+ function UnitaryDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'unitPrice': json['unitPrice'], 'minimalQuantity': json['minimalQuantity'] });
38
+ }
39
+ exports.UnitaryDistributionModeFromJSONTyped = UnitaryDistributionModeFromJSONTyped;
40
+ function UnitaryDistributionModeToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'unitPrice': value.unitPrice, 'minimalQuantity': value.minimalQuantity });
48
+ }
49
+ exports.UnitaryDistributionModeToJSON = UnitaryDistributionModeToJSON;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * lcdp-magic-cart
3
+ * This is the REST API of Magic cart
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 UnitaryDistributionModeAllOf
16
+ */
17
+ export interface UnitaryDistributionModeAllOf {
18
+ /**
19
+ * The unit price as a decimal.
20
+ * @type {number}
21
+ * @memberof UnitaryDistributionModeAllOf
22
+ */
23
+ unitPrice: number;
24
+ /**
25
+ * Minimal quantity.
26
+ * @type {number}
27
+ * @memberof UnitaryDistributionModeAllOf
28
+ */
29
+ minimalQuantity: number;
30
+ }
31
+ export declare function UnitaryDistributionModeAllOfFromJSON(json: any): UnitaryDistributionModeAllOf;
32
+ export declare function UnitaryDistributionModeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitaryDistributionModeAllOf;
33
+ export declare function UnitaryDistributionModeAllOfToJSON(value?: UnitaryDistributionModeAllOf | null): any;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-magic-cart
6
+ * This is the REST API of Magic cart
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.UnitaryDistributionModeAllOfToJSON = exports.UnitaryDistributionModeAllOfFromJSONTyped = exports.UnitaryDistributionModeAllOfFromJSON = void 0;
17
+ function UnitaryDistributionModeAllOfFromJSON(json) {
18
+ return UnitaryDistributionModeAllOfFromJSONTyped(json, false);
19
+ }
20
+ exports.UnitaryDistributionModeAllOfFromJSON = UnitaryDistributionModeAllOfFromJSON;
21
+ function UnitaryDistributionModeAllOfFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'unitPrice': json['unitPrice'],
27
+ 'minimalQuantity': json['minimalQuantity'],
28
+ };
29
+ }
30
+ exports.UnitaryDistributionModeAllOfFromJSONTyped = UnitaryDistributionModeAllOfFromJSONTyped;
31
+ function UnitaryDistributionModeAllOfToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'unitPrice': value.unitPrice,
40
+ 'minimalQuantity': value.minimalQuantity,
41
+ };
42
+ }
43
+ exports.UnitaryDistributionModeAllOfToJSON = UnitaryDistributionModeAllOfToJSON;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * lcdp-magic-cart
3
+ * This is the REST API of Magic cart
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
+ *
15
+ * @export
16
+ * @interface UserLink
17
+ */
18
+ export interface UserLink extends HttpLink {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof UserLink
23
+ */
24
+ id: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof UserLink
29
+ */
30
+ nickname: string;
31
+ }
32
+ export declare function UserLinkFromJSON(json: any): UserLink;
33
+ export declare function UserLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLink;
34
+ export declare function UserLinkToJSON(value?: UserLink | null): any;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-magic-cart
6
+ * This is the REST API of Magic cart
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.UserLinkToJSON = exports.UserLinkFromJSONTyped = exports.UserLinkFromJSON = void 0;
28
+ var HttpLink_1 = require("./HttpLink");
29
+ function UserLinkFromJSON(json) {
30
+ return UserLinkFromJSONTyped(json, false);
31
+ }
32
+ exports.UserLinkFromJSON = UserLinkFromJSON;
33
+ function UserLinkFromJSONTyped(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'], 'nickname': json['nickname'] });
38
+ }
39
+ exports.UserLinkFromJSONTyped = UserLinkFromJSONTyped;
40
+ function UserLinkToJSON(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, 'nickname': value.nickname });
48
+ }
49
+ exports.UserLinkToJSON = UserLinkToJSON;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * lcdp-magic-cart
3
+ * This is the REST API of Magic cart
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 UserLinkAllOf
16
+ */
17
+ export interface UserLinkAllOf {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof UserLinkAllOf
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UserLinkAllOf
28
+ */
29
+ nickname: string;
30
+ }
31
+ export declare function UserLinkAllOfFromJSON(json: any): UserLinkAllOf;
32
+ export declare function UserLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLinkAllOf;
33
+ export declare function UserLinkAllOfToJSON(value?: UserLinkAllOf | null): any;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-magic-cart
6
+ * This is the REST API of Magic cart
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.UserLinkAllOfToJSON = exports.UserLinkAllOfFromJSONTyped = exports.UserLinkAllOfFromJSON = void 0;
17
+ function UserLinkAllOfFromJSON(json) {
18
+ return UserLinkAllOfFromJSONTyped(json, false);
19
+ }
20
+ exports.UserLinkAllOfFromJSON = UserLinkAllOfFromJSON;
21
+ function UserLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'id': json['id'],
27
+ 'nickname': json['nickname'],
28
+ };
29
+ }
30
+ exports.UserLinkAllOfFromJSONTyped = UserLinkAllOfFromJSONTyped;
31
+ function UserLinkAllOfToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'id': value.id,
40
+ 'nickname': value.nickname,
41
+ };
42
+ }
43
+ exports.UserLinkAllOfToJSON = UserLinkAllOfToJSON;
@@ -1,9 +1,24 @@
1
- export * from './AnyMagicCartCreationParameters';
2
- export * from './MagicCart';
3
- export * from './MagicCartWithInitialCreationParameters';
4
- export * from './MagicCartWithInitialCreationParametersAllOf';
5
- export * from './MagicCartWithNeedCreationParameters';
6
- export * from './MagicCartWithNeedCreationParametersAllOf';
7
- export * from './MagicNeed';
8
- export * from './MagicProductBus';
9
- export * from './MagicProposal';
1
+ export * from './AnyIdentifiedDistributionMode';
2
+ export * from './Barcodes';
3
+ export * from './DistributionMode';
4
+ export * from './DistributionRange';
5
+ export * from './ExpressOrder';
6
+ export * from './ExpressOrderCreationParameters';
7
+ export * from './ExpressOrderNeed';
8
+ export * from './HttpLink';
9
+ export * from './IdentifiedDistributionRange';
10
+ export * from './IdentifiedDistributionRangeAllOf';
11
+ export * from './IdentifiedRangeDistributionMode';
12
+ export * from './IdentifiedRangeDistributionModeAllOf';
13
+ export * from './ProductLink';
14
+ export * from './ProductLinkAllOf';
15
+ export * from './QuotationDistributionMode';
16
+ export * from './SaleOfferLink';
17
+ export * from './SaleOfferLinkAllOf';
18
+ export * from './SaleOfferProposal';
19
+ export * from './SellerProposal';
20
+ export * from './Stock';
21
+ export * from './UnitaryDistributionMode';
22
+ export * from './UnitaryDistributionModeAllOf';
23
+ export * from './UserLink';
24
+ export * from './UserLinkAllOf';
@@ -14,12 +14,27 @@ 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("./AnyMagicCartCreationParameters"), exports);
18
- __exportStar(require("./MagicCart"), exports);
19
- __exportStar(require("./MagicCartWithInitialCreationParameters"), exports);
20
- __exportStar(require("./MagicCartWithInitialCreationParametersAllOf"), exports);
21
- __exportStar(require("./MagicCartWithNeedCreationParameters"), exports);
22
- __exportStar(require("./MagicCartWithNeedCreationParametersAllOf"), exports);
23
- __exportStar(require("./MagicNeed"), exports);
24
- __exportStar(require("./MagicProductBus"), exports);
25
- __exportStar(require("./MagicProposal"), exports);
17
+ __exportStar(require("./AnyIdentifiedDistributionMode"), exports);
18
+ __exportStar(require("./Barcodes"), exports);
19
+ __exportStar(require("./DistributionMode"), exports);
20
+ __exportStar(require("./DistributionRange"), exports);
21
+ __exportStar(require("./ExpressOrder"), exports);
22
+ __exportStar(require("./ExpressOrderCreationParameters"), exports);
23
+ __exportStar(require("./ExpressOrderNeed"), exports);
24
+ __exportStar(require("./HttpLink"), exports);
25
+ __exportStar(require("./IdentifiedDistributionRange"), exports);
26
+ __exportStar(require("./IdentifiedDistributionRangeAllOf"), exports);
27
+ __exportStar(require("./IdentifiedRangeDistributionMode"), exports);
28
+ __exportStar(require("./IdentifiedRangeDistributionModeAllOf"), exports);
29
+ __exportStar(require("./ProductLink"), exports);
30
+ __exportStar(require("./ProductLinkAllOf"), exports);
31
+ __exportStar(require("./QuotationDistributionMode"), exports);
32
+ __exportStar(require("./SaleOfferLink"), exports);
33
+ __exportStar(require("./SaleOfferLinkAllOf"), exports);
34
+ __exportStar(require("./SaleOfferProposal"), exports);
35
+ __exportStar(require("./SellerProposal"), exports);
36
+ __exportStar(require("./Stock"), exports);
37
+ __exportStar(require("./UnitaryDistributionMode"), exports);
38
+ __exportStar(require("./UnitaryDistributionModeAllOf"), exports);
39
+ __exportStar(require("./UserLink"), exports);
40
+ __exportStar(require("./UserLinkAllOf"), exports);
@@ -15,11 +15,6 @@ export interface HookRequest {
15
15
  ressourceId: string;
16
16
  date?: string;
17
17
  }
18
- export interface OldHookRequest {
19
- eventType: string;
20
- ressourceId: string;
21
- date?: string;
22
- }
23
18
  /**
24
19
  * no description
25
20
  */
@@ -32,12 +27,4 @@ export declare class MangopayHookApi extends BaseAPI {
32
27
  * Call mangopay hook
33
28
  */
34
29
  hook(requestParameters: HookRequest): Promise<void>;
35
- /**
36
- * Call mangopay hook
37
- */
38
- oldHookRaw(requestParameters: OldHookRequest): Promise<ApiResponse<void>>;
39
- /**
40
- * Call mangopay hook
41
- */
42
- oldHook(requestParameters: OldHookRequest): Promise<void>;
43
30
  }
@@ -105,7 +105,7 @@ var MangopayHookApi = /** @class */ (function (_super) {
105
105
  _a.trys.push([1, 3, , 4]);
106
106
  return [4 /*yield*/, this.request({
107
107
  path: "/mangopay-hooks",
108
- method: 'POST',
108
+ method: 'GET',
109
109
  headers: headerParameters,
110
110
  query: queryParameters,
111
111
  })];
@@ -136,68 +136,6 @@ var MangopayHookApi = /** @class */ (function (_super) {
136
136
  });
137
137
  });
138
138
  };
139
- /**
140
- * Call mangopay hook
141
- */
142
- MangopayHookApi.prototype.oldHookRaw = function (requestParameters) {
143
- return __awaiter(this, void 0, void 0, function () {
144
- var queryParameters, headerParameters, response, response_2;
145
- return __generator(this, function (_a) {
146
- switch (_a.label) {
147
- case 0:
148
- if (requestParameters.eventType === null || requestParameters.eventType === undefined) {
149
- throw new runtime_1.RequiredError('eventType', 'Required parameter requestParameters.eventType was null or undefined when calling oldHook.');
150
- }
151
- if (requestParameters.ressourceId === null || requestParameters.ressourceId === undefined) {
152
- throw new runtime_1.RequiredError('ressourceId', 'Required parameter requestParameters.ressourceId was null or undefined when calling oldHook.');
153
- }
154
- queryParameters = {};
155
- if (requestParameters.eventType !== undefined) {
156
- queryParameters['EventType'] = requestParameters.eventType;
157
- }
158
- if (requestParameters.ressourceId !== undefined) {
159
- queryParameters['RessourceId'] = requestParameters.ressourceId;
160
- }
161
- if (requestParameters.date !== undefined) {
162
- queryParameters['Date'] = requestParameters.date;
163
- }
164
- headerParameters = {};
165
- _a.label = 1;
166
- case 1:
167
- _a.trys.push([1, 3, , 4]);
168
- return [4 /*yield*/, this.request({
169
- path: "/mangopay-hooks",
170
- method: 'GET',
171
- headers: headerParameters,
172
- query: queryParameters,
173
- })];
174
- case 2:
175
- response = _a.sent();
176
- return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
177
- case 3:
178
- response_2 = _a.sent();
179
- console.debug(response_2);
180
- throw response_2;
181
- case 4: return [2 /*return*/];
182
- }
183
- });
184
- });
185
- };
186
- /**
187
- * Call mangopay hook
188
- */
189
- MangopayHookApi.prototype.oldHook = function (requestParameters) {
190
- return __awaiter(this, void 0, void 0, function () {
191
- return __generator(this, function (_a) {
192
- switch (_a.label) {
193
- case 0: return [4 /*yield*/, this.oldHookRaw(requestParameters)];
194
- case 1:
195
- _a.sent();
196
- return [2 /*return*/];
197
- }
198
- });
199
- });
200
- };
201
139
  return MangopayHookApi;
202
140
  }(runtime_1.BaseAPI));
203
141
  exports.MangopayHookApi = MangopayHookApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "0.0.2-test-codegen.0",
3
+ "version": "0.0.2-test-api.0",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -16,6 +16,7 @@ export interface GetProductRequest {
16
16
  }
17
17
  export interface GetProductsRequest {
18
18
  q?: string;
19
+ barcodesAnyeq?: Array<string>;
19
20
  idEq?: Array<number>;
20
21
  stEq?: Array<ProductStatus>;
21
22
  ptEq?: string;
@@ -161,6 +161,9 @@ var SearchProductApi = /** @class */ (function (_super) {
161
161
  if (requestParameters.q !== undefined) {
162
162
  queryParameters['q'] = requestParameters.q;
163
163
  }
164
+ if (requestParameters.barcodesAnyeq) {
165
+ queryParameters['barcodes[anyeq]'] = requestParameters.barcodesAnyeq;
166
+ }
164
167
  if (requestParameters.idEq) {
165
168
  queryParameters['id[eq]'] = requestParameters.idEq;
166
169
  }
@@ -41,12 +41,6 @@ export interface CartSubCartLine {
41
41
  * @memberof CartSubCartLine
42
42
  */
43
43
  saleOffer?: SaleOfferLink;
44
- /**
45
- * Indicate if the line can be buy
46
- * @type {boolean}
47
- * @memberof CartSubCartLine
48
- */
49
- buyable?: boolean;
50
44
  /**
51
45
  * Indicate if the line has a good quantity
52
46
  * @type {boolean}
@@ -30,7 +30,6 @@ function CartSubCartLineFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
31
31
  'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
32
32
  'saleOffer': !(0, runtime_1.exists)(json, 'saleOffer') ? undefined : (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
33
- 'buyable': !(0, runtime_1.exists)(json, 'buyable') ? undefined : json['buyable'],
34
33
  'goodQuantity': !(0, runtime_1.exists)(json, 'goodQuantity') ? undefined : json['goodQuantity'],
35
34
  'distributionRangeId': !(0, runtime_1.exists)(json, 'distributionRangeId') ? undefined : json['distributionRangeId'],
36
35
  'totalExcludingTaxes': !(0, runtime_1.exists)(json, 'totalExcludingTaxes') ? undefined : json['totalExcludingTaxes'],
@@ -49,7 +48,6 @@ function CartSubCartLineToJSON(value) {
49
48
  'quantity': value.quantity,
50
49
  'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
51
50
  'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkToJSON)(value.saleOffer),
52
- 'buyable': value.buyable,
53
51
  'goodQuantity': value.goodQuantity,
54
52
  'distributionRangeId': value.distributionRangeId,
55
53
  'totalExcludingTaxes': value.totalExcludingTaxes,
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Service delegated by the client to lcdp. TRUE : Client use LCDP service FALSE : Client use its own service Only this combinations are accepted: Payment + Billing => payment = true, billing = true, transport = false Transport + Billing => payment = true, billing = true, transport = true Payment => payment = true, billing = false, transport = false Nothing => payment = false, billing = false, transport = false
13
+ * Service delegated by the client to lcdp. TRUE : Client use LCDP service FALSE : Client use its own service Only this combinations are accepted: - Payment + Billing => payment = true, billing = true, transport = false - Transport + Billing => payment = true, billing = true, transport = true - Payment => payment = true, billing = false, transport = false - Nothing => payment = false, billing = false, transport = false
14
14
  * @export
15
15
  * @interface UserDelegatedServices
16
16
  */