@lcdp/api-react-rest-client 1.1.1-develop.6 → 1.1.1-develop.8

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.
@@ -28,7 +28,7 @@ export interface OrderItemPrices {
28
28
  */
29
29
  totalExcludingTaxes?: number;
30
30
  /**
31
- * Total V.A.T amount for this meta-order
31
+ * Total taxes (V.A.T, ...) amount for this meta-order
32
32
  * @type {number}
33
33
  * @memberof OrderItemPrices
34
34
  */
@@ -39,6 +39,12 @@ export interface OrderItemPrices {
39
39
  * @memberof OrderItemPrices
40
40
  */
41
41
  totalIncludingTaxes?: number;
42
+ /**
43
+ * Vat rate for this meta-order
44
+ * @type {number}
45
+ * @memberof OrderItemPrices
46
+ */
47
+ vatRate?: number;
42
48
  }
43
49
  export declare function OrderItemPricesFromJSON(json: any): OrderItemPrices;
44
50
  export declare function OrderItemPricesFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemPrices;
@@ -28,6 +28,7 @@ function OrderItemPricesFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'totalExcludingTaxes': !(0, runtime_1.exists)(json, 'totalExcludingTaxes') ? undefined : json['totalExcludingTaxes'],
29
29
  'totalTaxes': !(0, runtime_1.exists)(json, 'totalTaxes') ? undefined : json['totalTaxes'],
30
30
  'totalIncludingTaxes': !(0, runtime_1.exists)(json, 'totalIncludingTaxes') ? undefined : json['totalIncludingTaxes'],
31
+ 'vatRate': !(0, runtime_1.exists)(json, 'vatRate') ? undefined : json['vatRate'],
31
32
  };
32
33
  }
33
34
  exports.OrderItemPricesFromJSONTyped = OrderItemPricesFromJSONTyped;
@@ -43,6 +44,7 @@ function OrderItemPricesToJSON(value) {
43
44
  'totalExcludingTaxes': value.totalExcludingTaxes,
44
45
  'totalTaxes': value.totalTaxes,
45
46
  'totalIncludingTaxes': value.totalIncludingTaxes,
47
+ 'vatRate': value.vatRate,
46
48
  };
47
49
  }
48
50
  exports.OrderItemPricesToJSON = OrderItemPricesToJSON;
@@ -22,7 +22,7 @@ export interface OrderPrices {
22
22
  */
23
23
  totalItemsExcludingTaxes?: number;
24
24
  /**
25
- * Total items V.A.T amount for this order
25
+ * Total items taxes (V.A.T, ...) amount for this order
26
26
  * @type {number}
27
27
  * @memberof OrderPrices
28
28
  */
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import { Barcodes } from './Barcodes';
13
13
  import { HttpLink } from './HttpLink';
14
- import { Vat } from './Vat';
15
14
  /**
16
15
  *
17
16
  * @export
@@ -36,12 +35,6 @@ export interface ProductLink extends HttpLink {
36
35
  * @memberof ProductLink
37
36
  */
38
37
  name?: string;
39
- /**
40
- *
41
- * @type {Vat}
42
- * @memberof ProductLink
43
- */
44
- vat?: Vat | null;
45
38
  }
46
39
  export declare function ProductLinkFromJSON(json: any): ProductLink;
47
40
  export declare function ProductLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLink;
@@ -28,7 +28,6 @@ exports.ProductLinkToJSON = exports.ProductLinkFromJSONTyped = exports.ProductLi
28
28
  var runtime_1 = require("../runtime");
29
29
  var Barcodes_1 = require("./Barcodes");
30
30
  var HttpLink_1 = require("./HttpLink");
31
- var Vat_1 = require("./Vat");
32
31
  function ProductLinkFromJSON(json) {
33
32
  return ProductLinkFromJSONTyped(json, false);
34
33
  }
@@ -37,7 +36,7 @@ function ProductLinkFromJSONTyped(json, ignoreDiscriminator) {
37
36
  if ((json === undefined) || (json === null)) {
38
37
  return json;
39
38
  }
40
- return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']), 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'], 'vat': !(0, runtime_1.exists)(json, 'vat') ? json['vat'] : (0, Vat_1.VatFromJSON)(json['vat']) });
39
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'], 'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']), 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'] });
41
40
  }
42
41
  exports.ProductLinkFromJSONTyped = ProductLinkFromJSONTyped;
43
42
  function ProductLinkToJSON(value) {
@@ -47,6 +46,6 @@ function ProductLinkToJSON(value) {
47
46
  if (value === null) {
48
47
  return null;
49
48
  }
50
- return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'name': value.name, 'vat': (0, Vat_1.VatToJSON)(value.vat) });
49
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes), 'name': value.name });
51
50
  }
52
51
  exports.ProductLinkToJSON = ProductLinkToJSON;
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { Barcodes } from './Barcodes';
13
- import { Vat } from './Vat';
14
13
  /**
15
14
  *
16
15
  * @export
@@ -35,12 +34,6 @@ export interface ProductLinkAllOf {
35
34
  * @memberof ProductLinkAllOf
36
35
  */
37
36
  name?: string;
38
- /**
39
- *
40
- * @type {Vat}
41
- * @memberof ProductLinkAllOf
42
- */
43
- vat?: Vat | null;
44
37
  }
45
38
  export declare function ProductLinkAllOfFromJSON(json: any): ProductLinkAllOf;
46
39
  export declare function ProductLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLinkAllOf;
@@ -16,7 +16,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProductLinkAllOfToJSON = exports.ProductLinkAllOfFromJSONTyped = exports.ProductLinkAllOfFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
18
  var Barcodes_1 = require("./Barcodes");
19
- var Vat_1 = require("./Vat");
20
19
  function ProductLinkAllOfFromJSON(json) {
21
20
  return ProductLinkAllOfFromJSONTyped(json, false);
22
21
  }
@@ -29,7 +28,6 @@ function ProductLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
29
28
  'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
30
29
  'barcodes': !(0, runtime_1.exists)(json, 'barcodes') ? undefined : (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
31
30
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
32
- 'vat': !(0, runtime_1.exists)(json, 'vat') ? json['vat'] : (0, Vat_1.VatFromJSON)(json['vat']),
33
31
  };
34
32
  }
35
33
  exports.ProductLinkAllOfFromJSONTyped = ProductLinkAllOfFromJSONTyped;
@@ -44,7 +42,6 @@ function ProductLinkAllOfToJSON(value) {
44
42
  'id': value.id,
45
43
  'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
46
44
  'name': value.name,
47
- 'vat': (0, Vat_1.VatToJSON)(value.vat),
48
45
  };
49
46
  }
50
47
  exports.ProductLinkAllOfToJSON = ProductLinkAllOfToJSON;
@@ -41,4 +41,3 @@ export * from './UpdateOrderStatusParameters';
41
41
  export * from './UserLink';
42
42
  export * from './UserLinkAllOf';
43
43
  export * from './UserLinkAllOfCompany';
44
- export * from './Vat';
@@ -57,4 +57,3 @@ __exportStar(require("./UpdateOrderStatusParameters"), exports);
57
57
  __exportStar(require("./UserLink"), exports);
58
58
  __exportStar(require("./UserLinkAllOf"), exports);
59
59
  __exportStar(require("./UserLinkAllOfCompany"), exports);
60
- __exportStar(require("./Vat"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "1.1.1-develop.6",
3
+ "version": "1.1.1-develop.8",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -1,39 +0,0 @@
1
- /**
2
- * lcdp-monolith-service
3
- * This is the REST API of LCDP orders
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface Vat
16
- */
17
- export interface Vat {
18
- /**
19
- * Vat Id
20
- * @type {string}
21
- * @memberof Vat
22
- */
23
- id?: string;
24
- /**
25
- * Vat name
26
- * @type {string}
27
- * @memberof Vat
28
- */
29
- name?: string;
30
- /**
31
- * Vat value
32
- * @type {number}
33
- * @memberof Vat
34
- */
35
- value?: number;
36
- }
37
- export declare function VatFromJSON(json: any): Vat;
38
- export declare function VatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vat;
39
- export declare function VatToJSON(value?: Vat | null): any;
@@ -1,46 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-monolith-service
6
- * This is the REST API of LCDP orders
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.VatToJSON = exports.VatFromJSONTyped = exports.VatFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
- function VatFromJSON(json) {
19
- return VatFromJSONTyped(json, false);
20
- }
21
- exports.VatFromJSON = VatFromJSON;
22
- function VatFromJSONTyped(json, ignoreDiscriminator) {
23
- if ((json === undefined) || (json === null)) {
24
- return json;
25
- }
26
- return {
27
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
28
- 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
29
- 'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
30
- };
31
- }
32
- exports.VatFromJSONTyped = VatFromJSONTyped;
33
- function VatToJSON(value) {
34
- if (value === undefined) {
35
- return undefined;
36
- }
37
- if (value === null) {
38
- return null;
39
- }
40
- return {
41
- 'id': value.id,
42
- 'name': value.name,
43
- 'value': value.value,
44
- };
45
- }
46
- exports.VatToJSON = VatToJSON;