@ignos/api-client 20240906.0.10275 → 20240909.0.10285
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.
- package/lib/ignosportal-api.d.ts +29 -4
- package/lib/ignosportal-api.js +93 -3
- package/package.json +1 -1
- package/src/ignosportal-api.ts +117 -6
package/lib/ignosportal-api.d.ts
CHANGED
|
@@ -1444,6 +1444,10 @@ export interface IMoveBookingClient {
|
|
|
1444
1444
|
getBooking(bookingId: string): Promise<BookingDto>;
|
|
1445
1445
|
getParcelBooking(parcelId: string): Promise<BookingDto[]>;
|
|
1446
1446
|
updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
|
|
1447
|
+
/**
|
|
1448
|
+
* @deprecated
|
|
1449
|
+
*/
|
|
1450
|
+
createBookingTransportOld(bookingRequest: BookingTransportRequestOldDto): Promise<BookingDto[]>;
|
|
1447
1451
|
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
1448
1452
|
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
1449
1453
|
updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
|
|
@@ -1463,6 +1467,11 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
|
|
|
1463
1467
|
protected processGetParcelBooking(response: Response): Promise<BookingDto[]>;
|
|
1464
1468
|
updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
|
|
1465
1469
|
protected processUpdateBooking(response: Response): Promise<BookingDto>;
|
|
1470
|
+
/**
|
|
1471
|
+
* @deprecated
|
|
1472
|
+
*/
|
|
1473
|
+
createBookingTransportOld(bookingRequest: BookingTransportRequestOldDto): Promise<BookingDto[]>;
|
|
1474
|
+
protected processCreateBookingTransportOld(response: Response): Promise<BookingDto[]>;
|
|
1466
1475
|
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
1467
1476
|
protected processCreateBookingTransport(response: Response): Promise<BookingDto[]>;
|
|
1468
1477
|
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
@@ -8104,17 +8113,17 @@ export interface IBookingUpdateDto {
|
|
|
8104
8113
|
fromLocationId: string;
|
|
8105
8114
|
toLocationId: string;
|
|
8106
8115
|
}
|
|
8107
|
-
export declare class
|
|
8116
|
+
export declare class BookingTransportRequestOldDto implements IBookingTransportRequestOldDto {
|
|
8108
8117
|
transportKind: TransportKindDto;
|
|
8109
8118
|
items: BookingItemRequestDto[];
|
|
8110
8119
|
fromLocationId: string;
|
|
8111
8120
|
toLocationId: string;
|
|
8112
|
-
constructor(data?:
|
|
8121
|
+
constructor(data?: IBookingTransportRequestOldDto);
|
|
8113
8122
|
init(_data?: any): void;
|
|
8114
|
-
static fromJS(data: any):
|
|
8123
|
+
static fromJS(data: any): BookingTransportRequestOldDto;
|
|
8115
8124
|
toJSON(data?: any): any;
|
|
8116
8125
|
}
|
|
8117
|
-
export interface
|
|
8126
|
+
export interface IBookingTransportRequestOldDto {
|
|
8118
8127
|
transportKind: TransportKindDto;
|
|
8119
8128
|
items: BookingItemRequestDto[];
|
|
8120
8129
|
fromLocationId: string;
|
|
@@ -8123,6 +8132,8 @@ export interface IBookingTransportRequestDto {
|
|
|
8123
8132
|
export declare class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
8124
8133
|
parcelId: string;
|
|
8125
8134
|
trackingId: string;
|
|
8135
|
+
fromLocationId: string;
|
|
8136
|
+
toLocationId: string;
|
|
8126
8137
|
comment?: string | null;
|
|
8127
8138
|
constructor(data?: IBookingItemRequestDto);
|
|
8128
8139
|
init(_data?: any): void;
|
|
@@ -8132,8 +8143,22 @@ export declare class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
8132
8143
|
export interface IBookingItemRequestDto {
|
|
8133
8144
|
parcelId: string;
|
|
8134
8145
|
trackingId: string;
|
|
8146
|
+
fromLocationId: string;
|
|
8147
|
+
toLocationId: string;
|
|
8135
8148
|
comment?: string | null;
|
|
8136
8149
|
}
|
|
8150
|
+
export declare class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
8151
|
+
transportKind: TransportKindDto;
|
|
8152
|
+
items: BookingItemRequestDto[];
|
|
8153
|
+
constructor(data?: IBookingTransportRequestDto);
|
|
8154
|
+
init(_data?: any): void;
|
|
8155
|
+
static fromJS(data: any): BookingTransportRequestDto;
|
|
8156
|
+
toJSON(data?: any): any;
|
|
8157
|
+
}
|
|
8158
|
+
export interface IBookingTransportRequestDto {
|
|
8159
|
+
transportKind: TransportKindDto;
|
|
8160
|
+
items: BookingItemRequestDto[];
|
|
8161
|
+
}
|
|
8137
8162
|
export declare class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
|
|
8138
8163
|
parcelKind: ParcelKindDto;
|
|
8139
8164
|
transportKind: TransportKindDto;
|
package/lib/ignosportal-api.js
CHANGED
|
@@ -12001,7 +12001,10 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
12001
12001
|
}
|
|
12002
12002
|
return Promise.resolve(null);
|
|
12003
12003
|
}
|
|
12004
|
-
|
|
12004
|
+
/**
|
|
12005
|
+
* @deprecated
|
|
12006
|
+
*/
|
|
12007
|
+
createBookingTransportOld(bookingRequest) {
|
|
12005
12008
|
let url_ = this.baseUrl + "/move/booking/transport";
|
|
12006
12009
|
url_ = url_.replace(/[?&]$/, "");
|
|
12007
12010
|
const content_ = JSON.stringify(bookingRequest);
|
|
@@ -12013,6 +12016,50 @@ export class MoveBookingClient extends AuthorizedApiBase {
|
|
|
12013
12016
|
"Accept": "application/json"
|
|
12014
12017
|
}
|
|
12015
12018
|
};
|
|
12019
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12020
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12021
|
+
}).then((_response) => {
|
|
12022
|
+
return this.processCreateBookingTransportOld(_response);
|
|
12023
|
+
});
|
|
12024
|
+
}
|
|
12025
|
+
processCreateBookingTransportOld(response) {
|
|
12026
|
+
const status = response.status;
|
|
12027
|
+
let _headers = {};
|
|
12028
|
+
if (response.headers && response.headers.forEach) {
|
|
12029
|
+
response.headers.forEach((v, k) => _headers[k] = v);
|
|
12030
|
+
}
|
|
12031
|
+
;
|
|
12032
|
+
if (status === 200) {
|
|
12033
|
+
return response.text().then((_responseText) => {
|
|
12034
|
+
let result200 = null;
|
|
12035
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12036
|
+
if (Array.isArray(resultData200)) {
|
|
12037
|
+
result200 = [];
|
|
12038
|
+
for (let item of resultData200)
|
|
12039
|
+
result200.push(BookingDto.fromJS(item));
|
|
12040
|
+
}
|
|
12041
|
+
return result200;
|
|
12042
|
+
});
|
|
12043
|
+
}
|
|
12044
|
+
else if (status !== 200 && status !== 204) {
|
|
12045
|
+
return response.text().then((_responseText) => {
|
|
12046
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12047
|
+
});
|
|
12048
|
+
}
|
|
12049
|
+
return Promise.resolve(null);
|
|
12050
|
+
}
|
|
12051
|
+
createBookingTransport(bookingRequest) {
|
|
12052
|
+
let url_ = this.baseUrl + "/move/booking/transport2";
|
|
12053
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12054
|
+
const content_ = JSON.stringify(bookingRequest);
|
|
12055
|
+
let options_ = {
|
|
12056
|
+
body: content_,
|
|
12057
|
+
method: "POST",
|
|
12058
|
+
headers: {
|
|
12059
|
+
"Content-Type": "application/json",
|
|
12060
|
+
"Accept": "application/json"
|
|
12061
|
+
}
|
|
12062
|
+
};
|
|
12016
12063
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12017
12064
|
return this.http.fetch(url_, transformedOptions_);
|
|
12018
12065
|
}).then((_response) => {
|
|
@@ -31166,7 +31213,7 @@ export class BookingUpdateDto {
|
|
|
31166
31213
|
return data;
|
|
31167
31214
|
}
|
|
31168
31215
|
}
|
|
31169
|
-
export class
|
|
31216
|
+
export class BookingTransportRequestOldDto {
|
|
31170
31217
|
constructor(data) {
|
|
31171
31218
|
if (data) {
|
|
31172
31219
|
for (var property in data) {
|
|
@@ -31192,7 +31239,7 @@ export class BookingTransportRequestDto {
|
|
|
31192
31239
|
}
|
|
31193
31240
|
static fromJS(data) {
|
|
31194
31241
|
data = typeof data === 'object' ? data : {};
|
|
31195
|
-
let result = new
|
|
31242
|
+
let result = new BookingTransportRequestOldDto();
|
|
31196
31243
|
result.init(data);
|
|
31197
31244
|
return result;
|
|
31198
31245
|
}
|
|
@@ -31222,6 +31269,8 @@ export class BookingItemRequestDto {
|
|
|
31222
31269
|
if (_data) {
|
|
31223
31270
|
this.parcelId = _data["parcelId"];
|
|
31224
31271
|
this.trackingId = _data["trackingId"];
|
|
31272
|
+
this.fromLocationId = _data["fromLocationId"];
|
|
31273
|
+
this.toLocationId = _data["toLocationId"];
|
|
31225
31274
|
this.comment = _data["comment"];
|
|
31226
31275
|
}
|
|
31227
31276
|
}
|
|
@@ -31235,10 +31284,51 @@ export class BookingItemRequestDto {
|
|
|
31235
31284
|
data = typeof data === 'object' ? data : {};
|
|
31236
31285
|
data["parcelId"] = this.parcelId;
|
|
31237
31286
|
data["trackingId"] = this.trackingId;
|
|
31287
|
+
data["fromLocationId"] = this.fromLocationId;
|
|
31288
|
+
data["toLocationId"] = this.toLocationId;
|
|
31238
31289
|
data["comment"] = this.comment;
|
|
31239
31290
|
return data;
|
|
31240
31291
|
}
|
|
31241
31292
|
}
|
|
31293
|
+
export class BookingTransportRequestDto {
|
|
31294
|
+
constructor(data) {
|
|
31295
|
+
if (data) {
|
|
31296
|
+
for (var property in data) {
|
|
31297
|
+
if (data.hasOwnProperty(property))
|
|
31298
|
+
this[property] = data[property];
|
|
31299
|
+
}
|
|
31300
|
+
}
|
|
31301
|
+
if (!data) {
|
|
31302
|
+
this.items = [];
|
|
31303
|
+
}
|
|
31304
|
+
}
|
|
31305
|
+
init(_data) {
|
|
31306
|
+
if (_data) {
|
|
31307
|
+
this.transportKind = _data["transportKind"];
|
|
31308
|
+
if (Array.isArray(_data["items"])) {
|
|
31309
|
+
this.items = [];
|
|
31310
|
+
for (let item of _data["items"])
|
|
31311
|
+
this.items.push(BookingItemRequestDto.fromJS(item));
|
|
31312
|
+
}
|
|
31313
|
+
}
|
|
31314
|
+
}
|
|
31315
|
+
static fromJS(data) {
|
|
31316
|
+
data = typeof data === 'object' ? data : {};
|
|
31317
|
+
let result = new BookingTransportRequestDto();
|
|
31318
|
+
result.init(data);
|
|
31319
|
+
return result;
|
|
31320
|
+
}
|
|
31321
|
+
toJSON(data) {
|
|
31322
|
+
data = typeof data === 'object' ? data : {};
|
|
31323
|
+
data["transportKind"] = this.transportKind;
|
|
31324
|
+
if (Array.isArray(this.items)) {
|
|
31325
|
+
data["items"] = [];
|
|
31326
|
+
for (let item of this.items)
|
|
31327
|
+
data["items"].push(item.toJSON());
|
|
31328
|
+
}
|
|
31329
|
+
return data;
|
|
31330
|
+
}
|
|
31331
|
+
}
|
|
31242
31332
|
export class BookingGeneralRequestDto {
|
|
31243
31333
|
constructor(data) {
|
|
31244
31334
|
if (data) {
|
package/package.json
CHANGED
package/src/ignosportal-api.ts
CHANGED
|
@@ -12646,6 +12646,11 @@ export interface IMoveBookingClient {
|
|
|
12646
12646
|
|
|
12647
12647
|
updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
|
|
12648
12648
|
|
|
12649
|
+
/**
|
|
12650
|
+
* @deprecated
|
|
12651
|
+
*/
|
|
12652
|
+
createBookingTransportOld(bookingRequest: BookingTransportRequestOldDto): Promise<BookingDto[]>;
|
|
12653
|
+
|
|
12649
12654
|
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]>;
|
|
12650
12655
|
|
|
12651
12656
|
createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto[]>;
|
|
@@ -12826,7 +12831,10 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
12826
12831
|
return Promise.resolve<BookingDto>(null as any);
|
|
12827
12832
|
}
|
|
12828
12833
|
|
|
12829
|
-
|
|
12834
|
+
/**
|
|
12835
|
+
* @deprecated
|
|
12836
|
+
*/
|
|
12837
|
+
createBookingTransportOld(bookingRequest: BookingTransportRequestOldDto): Promise<BookingDto[]> {
|
|
12830
12838
|
let url_ = this.baseUrl + "/move/booking/transport";
|
|
12831
12839
|
url_ = url_.replace(/[?&]$/, "");
|
|
12832
12840
|
|
|
@@ -12841,6 +12849,50 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
|
|
|
12841
12849
|
}
|
|
12842
12850
|
};
|
|
12843
12851
|
|
|
12852
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12853
|
+
return this.http.fetch(url_, transformedOptions_);
|
|
12854
|
+
}).then((_response: Response) => {
|
|
12855
|
+
return this.processCreateBookingTransportOld(_response);
|
|
12856
|
+
});
|
|
12857
|
+
}
|
|
12858
|
+
|
|
12859
|
+
protected processCreateBookingTransportOld(response: Response): Promise<BookingDto[]> {
|
|
12860
|
+
const status = response.status;
|
|
12861
|
+
let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
|
|
12862
|
+
if (status === 200) {
|
|
12863
|
+
return response.text().then((_responseText) => {
|
|
12864
|
+
let result200: any = null;
|
|
12865
|
+
let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
12866
|
+
if (Array.isArray(resultData200)) {
|
|
12867
|
+
result200 = [] as any;
|
|
12868
|
+
for (let item of resultData200)
|
|
12869
|
+
result200!.push(BookingDto.fromJS(item));
|
|
12870
|
+
}
|
|
12871
|
+
return result200;
|
|
12872
|
+
});
|
|
12873
|
+
} else if (status !== 200 && status !== 204) {
|
|
12874
|
+
return response.text().then((_responseText) => {
|
|
12875
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
12876
|
+
});
|
|
12877
|
+
}
|
|
12878
|
+
return Promise.resolve<BookingDto[]>(null as any);
|
|
12879
|
+
}
|
|
12880
|
+
|
|
12881
|
+
createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto[]> {
|
|
12882
|
+
let url_ = this.baseUrl + "/move/booking/transport2";
|
|
12883
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
12884
|
+
|
|
12885
|
+
const content_ = JSON.stringify(bookingRequest);
|
|
12886
|
+
|
|
12887
|
+
let options_: RequestInit = {
|
|
12888
|
+
body: content_,
|
|
12889
|
+
method: "POST",
|
|
12890
|
+
headers: {
|
|
12891
|
+
"Content-Type": "application/json",
|
|
12892
|
+
"Accept": "application/json"
|
|
12893
|
+
}
|
|
12894
|
+
};
|
|
12895
|
+
|
|
12844
12896
|
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
12845
12897
|
return this.http.fetch(url_, transformedOptions_);
|
|
12846
12898
|
}).then((_response: Response) => {
|
|
@@ -38257,13 +38309,13 @@ export interface IBookingUpdateDto {
|
|
|
38257
38309
|
toLocationId: string;
|
|
38258
38310
|
}
|
|
38259
38311
|
|
|
38260
|
-
export class
|
|
38312
|
+
export class BookingTransportRequestOldDto implements IBookingTransportRequestOldDto {
|
|
38261
38313
|
transportKind!: TransportKindDto;
|
|
38262
38314
|
items!: BookingItemRequestDto[];
|
|
38263
38315
|
fromLocationId!: string;
|
|
38264
38316
|
toLocationId!: string;
|
|
38265
38317
|
|
|
38266
|
-
constructor(data?:
|
|
38318
|
+
constructor(data?: IBookingTransportRequestOldDto) {
|
|
38267
38319
|
if (data) {
|
|
38268
38320
|
for (var property in data) {
|
|
38269
38321
|
if (data.hasOwnProperty(property))
|
|
@@ -38288,9 +38340,9 @@ export class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
|
38288
38340
|
}
|
|
38289
38341
|
}
|
|
38290
38342
|
|
|
38291
|
-
static fromJS(data: any):
|
|
38343
|
+
static fromJS(data: any): BookingTransportRequestOldDto {
|
|
38292
38344
|
data = typeof data === 'object' ? data : {};
|
|
38293
|
-
let result = new
|
|
38345
|
+
let result = new BookingTransportRequestOldDto();
|
|
38294
38346
|
result.init(data);
|
|
38295
38347
|
return result;
|
|
38296
38348
|
}
|
|
@@ -38309,7 +38361,7 @@ export class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
|
38309
38361
|
}
|
|
38310
38362
|
}
|
|
38311
38363
|
|
|
38312
|
-
export interface
|
|
38364
|
+
export interface IBookingTransportRequestOldDto {
|
|
38313
38365
|
transportKind: TransportKindDto;
|
|
38314
38366
|
items: BookingItemRequestDto[];
|
|
38315
38367
|
fromLocationId: string;
|
|
@@ -38319,6 +38371,8 @@ export interface IBookingTransportRequestDto {
|
|
|
38319
38371
|
export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
38320
38372
|
parcelId!: string;
|
|
38321
38373
|
trackingId!: string;
|
|
38374
|
+
fromLocationId!: string;
|
|
38375
|
+
toLocationId!: string;
|
|
38322
38376
|
comment?: string | null;
|
|
38323
38377
|
|
|
38324
38378
|
constructor(data?: IBookingItemRequestDto) {
|
|
@@ -38334,6 +38388,8 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
38334
38388
|
if (_data) {
|
|
38335
38389
|
this.parcelId = _data["parcelId"];
|
|
38336
38390
|
this.trackingId = _data["trackingId"];
|
|
38391
|
+
this.fromLocationId = _data["fromLocationId"];
|
|
38392
|
+
this.toLocationId = _data["toLocationId"];
|
|
38337
38393
|
this.comment = _data["comment"];
|
|
38338
38394
|
}
|
|
38339
38395
|
}
|
|
@@ -38349,6 +38405,8 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
38349
38405
|
data = typeof data === 'object' ? data : {};
|
|
38350
38406
|
data["parcelId"] = this.parcelId;
|
|
38351
38407
|
data["trackingId"] = this.trackingId;
|
|
38408
|
+
data["fromLocationId"] = this.fromLocationId;
|
|
38409
|
+
data["toLocationId"] = this.toLocationId;
|
|
38352
38410
|
data["comment"] = this.comment;
|
|
38353
38411
|
return data;
|
|
38354
38412
|
}
|
|
@@ -38357,9 +38415,62 @@ export class BookingItemRequestDto implements IBookingItemRequestDto {
|
|
|
38357
38415
|
export interface IBookingItemRequestDto {
|
|
38358
38416
|
parcelId: string;
|
|
38359
38417
|
trackingId: string;
|
|
38418
|
+
fromLocationId: string;
|
|
38419
|
+
toLocationId: string;
|
|
38360
38420
|
comment?: string | null;
|
|
38361
38421
|
}
|
|
38362
38422
|
|
|
38423
|
+
export class BookingTransportRequestDto implements IBookingTransportRequestDto {
|
|
38424
|
+
transportKind!: TransportKindDto;
|
|
38425
|
+
items!: BookingItemRequestDto[];
|
|
38426
|
+
|
|
38427
|
+
constructor(data?: IBookingTransportRequestDto) {
|
|
38428
|
+
if (data) {
|
|
38429
|
+
for (var property in data) {
|
|
38430
|
+
if (data.hasOwnProperty(property))
|
|
38431
|
+
(<any>this)[property] = (<any>data)[property];
|
|
38432
|
+
}
|
|
38433
|
+
}
|
|
38434
|
+
if (!data) {
|
|
38435
|
+
this.items = [];
|
|
38436
|
+
}
|
|
38437
|
+
}
|
|
38438
|
+
|
|
38439
|
+
init(_data?: any) {
|
|
38440
|
+
if (_data) {
|
|
38441
|
+
this.transportKind = _data["transportKind"];
|
|
38442
|
+
if (Array.isArray(_data["items"])) {
|
|
38443
|
+
this.items = [] as any;
|
|
38444
|
+
for (let item of _data["items"])
|
|
38445
|
+
this.items!.push(BookingItemRequestDto.fromJS(item));
|
|
38446
|
+
}
|
|
38447
|
+
}
|
|
38448
|
+
}
|
|
38449
|
+
|
|
38450
|
+
static fromJS(data: any): BookingTransportRequestDto {
|
|
38451
|
+
data = typeof data === 'object' ? data : {};
|
|
38452
|
+
let result = new BookingTransportRequestDto();
|
|
38453
|
+
result.init(data);
|
|
38454
|
+
return result;
|
|
38455
|
+
}
|
|
38456
|
+
|
|
38457
|
+
toJSON(data?: any) {
|
|
38458
|
+
data = typeof data === 'object' ? data : {};
|
|
38459
|
+
data["transportKind"] = this.transportKind;
|
|
38460
|
+
if (Array.isArray(this.items)) {
|
|
38461
|
+
data["items"] = [];
|
|
38462
|
+
for (let item of this.items)
|
|
38463
|
+
data["items"].push(item.toJSON());
|
|
38464
|
+
}
|
|
38465
|
+
return data;
|
|
38466
|
+
}
|
|
38467
|
+
}
|
|
38468
|
+
|
|
38469
|
+
export interface IBookingTransportRequestDto {
|
|
38470
|
+
transportKind: TransportKindDto;
|
|
38471
|
+
items: BookingItemRequestDto[];
|
|
38472
|
+
}
|
|
38473
|
+
|
|
38363
38474
|
export class BookingGeneralRequestDto implements IBookingGeneralRequestDto {
|
|
38364
38475
|
parcelKind!: ParcelKindDto;
|
|
38365
38476
|
transportKind!: TransportKindDto;
|