@lcdp/api-react-rest-client 1.1.1-develop.10 → 1.1.1-develop.11

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.
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { Address } from './Address';
12
13
  import { Anomalies } from './Anomalies';
13
14
  import { HttpLink } from './HttpLink';
14
15
  import { OrderPrices } from './OrderPrices';
@@ -17,7 +18,7 @@ import { OrderThreads } from './OrderThreads';
17
18
  import { OrderType } from './OrderType';
18
19
  import { UserLink } from './UserLink';
19
20
  /**
20
- * One order contain all items that a buyer request to one seller.
21
+ * One order contain all items that a buyer request to one seller. If shipping address is empty, use billing address as shipping address
21
22
  * @export
22
23
  * @interface Order
23
24
  */
@@ -94,6 +95,18 @@ export interface Order {
94
95
  * @memberof Order
95
96
  */
96
97
  buyer?: UserLink;
98
+ /**
99
+ *
100
+ * @type {Address}
101
+ * @memberof Order
102
+ */
103
+ shippingAddress?: Address;
104
+ /**
105
+ *
106
+ * @type {Address}
107
+ * @memberof Order
108
+ */
109
+ billingAddress?: Address;
97
110
  /**
98
111
  *
99
112
  * @type {HttpLink}
@@ -15,6 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.OrderToJSON = exports.OrderFromJSONTyped = exports.OrderFromJSON = void 0;
17
17
  var runtime_1 = require("../runtime");
18
+ var Address_1 = require("./Address");
18
19
  var Anomalies_1 = require("./Anomalies");
19
20
  var HttpLink_1 = require("./HttpLink");
20
21
  var OrderPrices_1 = require("./OrderPrices");
@@ -43,6 +44,8 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
43
44
  'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
44
45
  'seller': !(0, runtime_1.exists)(json, 'seller') ? undefined : (0, UserLink_1.UserLinkFromJSON)(json['seller']),
45
46
  'buyer': !(0, runtime_1.exists)(json, 'buyer') ? undefined : (0, UserLink_1.UserLinkFromJSON)(json['buyer']),
47
+ 'shippingAddress': !(0, runtime_1.exists)(json, 'shippingAddress') ? undefined : (0, Address_1.AddressFromJSON)(json['shippingAddress']),
48
+ 'billingAddress': !(0, runtime_1.exists)(json, 'billingAddress') ? undefined : (0, Address_1.AddressFromJSON)(json['billingAddress']),
46
49
  'shipments': !(0, runtime_1.exists)(json, 'shipments') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['shipments']),
47
50
  'maxShipment': !(0, runtime_1.exists)(json, 'maxShipment') ? undefined : json['maxShipment'],
48
51
  'maxShippingDate': !(0, runtime_1.exists)(json, 'maxShippingDate') ? undefined : (new Date(json['maxShippingDate'])),
@@ -80,6 +83,8 @@ function OrderToJSON(value) {
80
83
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
81
84
  'seller': (0, UserLink_1.UserLinkToJSON)(value.seller),
82
85
  'buyer': (0, UserLink_1.UserLinkToJSON)(value.buyer),
86
+ 'shippingAddress': (0, Address_1.AddressToJSON)(value.shippingAddress),
87
+ 'billingAddress': (0, Address_1.AddressToJSON)(value.billingAddress),
83
88
  'shipments': (0, HttpLink_1.HttpLinkToJSON)(value.shipments),
84
89
  'maxShipment': value.maxShipment,
85
90
  'maxShippingDate': value.maxShippingDate === undefined ? undefined : ((0, runtime_1.toDateISOString)(value.maxShippingDate)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "1.1.1-develop.10",
3
+ "version": "1.1.1-develop.11",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },