@lcdp/api-react-rest-client 1.6.1-LDS-2482-Move-JSON-codegen-of-API-somewhere-else.2 → 1.6.1-json-test-15.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.
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { Address } from './Address';
|
|
13
12
|
import { Anomalies } from './Anomalies';
|
|
14
13
|
import { HttpLink } from './HttpLink';
|
|
15
14
|
import { OrderPrices } from './OrderPrices';
|
|
@@ -18,7 +17,7 @@ import { OrderThreads } from './OrderThreads';
|
|
|
18
17
|
import { OrderType } from './OrderType';
|
|
19
18
|
import { UserLink } from './UserLink';
|
|
20
19
|
/**
|
|
21
|
-
* One order contain all items that a buyer request to one seller.
|
|
20
|
+
* One order contain all items that a buyer request to one seller.
|
|
22
21
|
* @export
|
|
23
22
|
* @interface Order
|
|
24
23
|
*/
|
|
@@ -95,18 +94,6 @@ export interface Order {
|
|
|
95
94
|
* @memberof Order
|
|
96
95
|
*/
|
|
97
96
|
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;
|
|
110
97
|
/**
|
|
111
98
|
*
|
|
112
99
|
* @type {HttpLink}
|
|
@@ -15,7 +15,6 @@
|
|
|
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");
|
|
19
18
|
var Anomalies_1 = require("./Anomalies");
|
|
20
19
|
var HttpLink_1 = require("./HttpLink");
|
|
21
20
|
var OrderPrices_1 = require("./OrderPrices");
|
|
@@ -44,8 +43,6 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
43
|
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
45
44
|
'seller': !(0, runtime_1.exists)(json, 'seller') ? undefined : (0, UserLink_1.UserLinkFromJSON)(json['seller']),
|
|
46
45
|
'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']),
|
|
49
46
|
'shipments': !(0, runtime_1.exists)(json, 'shipments') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['shipments']),
|
|
50
47
|
'maxShipment': !(0, runtime_1.exists)(json, 'maxShipment') ? undefined : json['maxShipment'],
|
|
51
48
|
'maxShippingDate': !(0, runtime_1.exists)(json, 'maxShippingDate') ? undefined : (new Date(json['maxShippingDate'])),
|
|
@@ -83,8 +80,6 @@ function OrderToJSON(value) {
|
|
|
83
80
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
84
81
|
'seller': (0, UserLink_1.UserLinkToJSON)(value.seller),
|
|
85
82
|
'buyer': (0, UserLink_1.UserLinkToJSON)(value.buyer),
|
|
86
|
-
'shippingAddress': (0, Address_1.AddressToJSON)(value.shippingAddress),
|
|
87
|
-
'billingAddress': (0, Address_1.AddressToJSON)(value.billingAddress),
|
|
88
83
|
'shipments': (0, HttpLink_1.HttpLinkToJSON)(value.shipments),
|
|
89
84
|
'maxShipment': value.maxShipment,
|
|
90
85
|
'maxShippingDate': value.maxShippingDate === undefined ? undefined : ((0, runtime_1.toDateISOString)(value.maxShippingDate)),
|
package/package.json
CHANGED
|
@@ -28,12 +28,6 @@ export interface UserCreationParameters {
|
|
|
28
28
|
* @memberof UserCreationParameters
|
|
29
29
|
*/
|
|
30
30
|
lastname: string;
|
|
31
|
-
/**
|
|
32
|
-
* Date of birth
|
|
33
|
-
* @type {Date}
|
|
34
|
-
* @memberof UserCreationParameters
|
|
35
|
-
*/
|
|
36
|
-
birthdate: Date | null;
|
|
37
31
|
/**
|
|
38
32
|
* An email in conformity with pattern
|
|
39
33
|
* @type {string}
|
|
@@ -27,7 +27,6 @@ function UserCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
return {
|
|
28
28
|
'firstname': json['firstname'],
|
|
29
29
|
'lastname': json['lastname'],
|
|
30
|
-
'birthdate': (json['birthdate'] === null ? null : new Date(json['birthdate'])),
|
|
31
30
|
'email': json['email'],
|
|
32
31
|
'phone': json['phone'],
|
|
33
32
|
'password': json['password'],
|
|
@@ -45,7 +44,6 @@ function UserCreationParametersToJSON(value) {
|
|
|
45
44
|
return {
|
|
46
45
|
'firstname': value.firstname,
|
|
47
46
|
'lastname': value.lastname,
|
|
48
|
-
'birthdate': (value.birthdate === null ? null : (0, runtime_1.toDateISOString)(value.birthdate)),
|
|
49
47
|
'email': value.email,
|
|
50
48
|
'phone': value.phone,
|
|
51
49
|
'password': value.password,
|