@ignos/api-client 20240805.0.9909 → 20240805.0.9915

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.
@@ -1566,6 +1566,7 @@ export interface IMoveBookingClient {
1566
1566
  updateBooking(bookingRequest: BookingUpdateDto): Promise<BookingDto>;
1567
1567
  createBookingTransport(bookingRequest: BookingTransportRequestDto): Promise<BookingDto>;
1568
1568
  createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
1569
+ updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
1569
1570
  cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
1570
1571
  revertBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
1571
1572
  startDelivery(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
@@ -1590,6 +1591,8 @@ export declare class MoveBookingClient extends AuthorizedApiBase implements IMov
1590
1591
  protected processCreateBookingTransport(response: Response): Promise<BookingDto>;
1591
1592
  createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
1592
1593
  protected processCreateBookingGeneral(response: Response): Promise<BookingDto>;
1594
+ updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
1595
+ protected processUpdateBookingStatus(response: Response): Promise<BookingDto>;
1593
1596
  cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
1594
1597
  protected processCancelBooking(response: Response): Promise<BookingDto>;
1595
1598
  revertBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
@@ -9188,26 +9191,18 @@ export interface IBookingGeneralRequestDto {
9188
9191
  comment?: string | null;
9189
9192
  itemCount: number;
9190
9193
  }
9191
- export declare class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
9192
- bookingId: string;
9193
- constructor(data?: IBookingUpdateStatusDto);
9194
- init(_data?: any): void;
9195
- static fromJS(data: any): BookingUpdateStatusDto;
9196
- toJSON(data?: any): any;
9197
- }
9198
- export interface IBookingUpdateStatusDto {
9199
- bookingId: string;
9200
- }
9201
- export declare class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
9194
+ export declare class BookingStatusUpdateDto implements IBookingStatusUpdateDto {
9202
9195
  bookingId: string;
9196
+ status: BookingStatusDto;
9203
9197
  deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
9204
- constructor(data?: IBookingDeliveryUpdateDto);
9198
+ constructor(data?: IBookingStatusUpdateDto);
9205
9199
  init(_data?: any): void;
9206
- static fromJS(data: any): BookingDeliveryUpdateDto;
9200
+ static fromJS(data: any): BookingStatusUpdateDto;
9207
9201
  toJSON(data?: any): any;
9208
9202
  }
9209
- export interface IBookingDeliveryUpdateDto {
9203
+ export interface IBookingStatusUpdateDto {
9210
9204
  bookingId: string;
9205
+ status: BookingStatusDto;
9211
9206
  deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
9212
9207
  }
9213
9208
  export declare class BookingDeliveryExceptionDto implements IBookingDeliveryExceptionDto {
@@ -9224,6 +9219,28 @@ export interface IBookingDeliveryExceptionDto {
9224
9219
  toLocationId?: string | null;
9225
9220
  comment?: string | null;
9226
9221
  }
9222
+ export declare class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
9223
+ bookingId: string;
9224
+ constructor(data?: IBookingUpdateStatusDto);
9225
+ init(_data?: any): void;
9226
+ static fromJS(data: any): BookingUpdateStatusDto;
9227
+ toJSON(data?: any): any;
9228
+ }
9229
+ export interface IBookingUpdateStatusDto {
9230
+ bookingId: string;
9231
+ }
9232
+ export declare class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
9233
+ bookingId: string;
9234
+ deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
9235
+ constructor(data?: IBookingDeliveryUpdateDto);
9236
+ init(_data?: any): void;
9237
+ static fromJS(data: any): BookingDeliveryUpdateDto;
9238
+ toJSON(data?: any): any;
9239
+ }
9240
+ export interface IBookingDeliveryUpdateDto {
9241
+ bookingId: string;
9242
+ deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
9243
+ }
9227
9244
  export declare class LocationSuggestionsDto implements ILocationSuggestionsDto {
9228
9245
  items: LocationSuggestionsItemDto[];
9229
9246
  locationKindFilter?: LocationKindDto[] | null;
@@ -12994,6 +12994,46 @@ export class MoveBookingClient extends AuthorizedApiBase {
12994
12994
  }
12995
12995
  return Promise.resolve(null);
12996
12996
  }
12997
+ updateBookingStatus(bookingUpdate) {
12998
+ let url_ = this.baseUrl + "/move/booking/updatestatus";
12999
+ url_ = url_.replace(/[?&]$/, "");
13000
+ const content_ = JSON.stringify(bookingUpdate);
13001
+ let options_ = {
13002
+ body: content_,
13003
+ method: "PUT",
13004
+ headers: {
13005
+ "Content-Type": "application/json",
13006
+ "Accept": "application/json"
13007
+ }
13008
+ };
13009
+ return this.transformOptions(options_).then(transformedOptions_ => {
13010
+ return this.http.fetch(url_, transformedOptions_);
13011
+ }).then((_response) => {
13012
+ return this.processUpdateBookingStatus(_response);
13013
+ });
13014
+ }
13015
+ processUpdateBookingStatus(response) {
13016
+ const status = response.status;
13017
+ let _headers = {};
13018
+ if (response.headers && response.headers.forEach) {
13019
+ response.headers.forEach((v, k) => _headers[k] = v);
13020
+ }
13021
+ ;
13022
+ if (status === 200) {
13023
+ return response.text().then((_responseText) => {
13024
+ let result200 = null;
13025
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13026
+ result200 = BookingDto.fromJS(resultData200);
13027
+ return result200;
13028
+ });
13029
+ }
13030
+ else if (status !== 200 && status !== 204) {
13031
+ return response.text().then((_responseText) => {
13032
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13033
+ });
13034
+ }
13035
+ return Promise.resolve(null);
13036
+ }
12997
13037
  cancelBooking(bookingUpdate) {
12998
13038
  let url_ = this.baseUrl + "/move/booking/cancel";
12999
13039
  url_ = url_.replace(/[?&]$/, "");
@@ -33054,7 +33094,7 @@ export class BookingGeneralRequestDto {
33054
33094
  return data;
33055
33095
  }
33056
33096
  }
33057
- export class BookingUpdateStatusDto {
33097
+ export class BookingStatusUpdateDto {
33058
33098
  constructor(data) {
33059
33099
  if (data) {
33060
33100
  for (var property in data) {
@@ -33066,21 +33106,33 @@ export class BookingUpdateStatusDto {
33066
33106
  init(_data) {
33067
33107
  if (_data) {
33068
33108
  this.bookingId = _data["bookingId"];
33109
+ this.status = _data["status"];
33110
+ if (Array.isArray(_data["deliveryExceptions"])) {
33111
+ this.deliveryExceptions = [];
33112
+ for (let item of _data["deliveryExceptions"])
33113
+ this.deliveryExceptions.push(BookingDeliveryExceptionDto.fromJS(item));
33114
+ }
33069
33115
  }
33070
33116
  }
33071
33117
  static fromJS(data) {
33072
33118
  data = typeof data === 'object' ? data : {};
33073
- let result = new BookingUpdateStatusDto();
33119
+ let result = new BookingStatusUpdateDto();
33074
33120
  result.init(data);
33075
33121
  return result;
33076
33122
  }
33077
33123
  toJSON(data) {
33078
33124
  data = typeof data === 'object' ? data : {};
33079
33125
  data["bookingId"] = this.bookingId;
33126
+ data["status"] = this.status;
33127
+ if (Array.isArray(this.deliveryExceptions)) {
33128
+ data["deliveryExceptions"] = [];
33129
+ for (let item of this.deliveryExceptions)
33130
+ data["deliveryExceptions"].push(item.toJSON());
33131
+ }
33080
33132
  return data;
33081
33133
  }
33082
33134
  }
33083
- export class BookingDeliveryUpdateDto {
33135
+ export class BookingDeliveryExceptionDto {
33084
33136
  constructor(data) {
33085
33137
  if (data) {
33086
33138
  for (var property in data) {
@@ -33091,32 +33143,52 @@ export class BookingDeliveryUpdateDto {
33091
33143
  }
33092
33144
  init(_data) {
33093
33145
  if (_data) {
33094
- this.bookingId = _data["bookingId"];
33095
- if (Array.isArray(_data["deliveryExceptions"])) {
33096
- this.deliveryExceptions = [];
33097
- for (let item of _data["deliveryExceptions"])
33098
- this.deliveryExceptions.push(BookingDeliveryExceptionDto.fromJS(item));
33146
+ this.trackingId = _data["trackingId"];
33147
+ this.toLocationId = _data["toLocationId"];
33148
+ this.comment = _data["comment"];
33149
+ }
33150
+ }
33151
+ static fromJS(data) {
33152
+ data = typeof data === 'object' ? data : {};
33153
+ let result = new BookingDeliveryExceptionDto();
33154
+ result.init(data);
33155
+ return result;
33156
+ }
33157
+ toJSON(data) {
33158
+ data = typeof data === 'object' ? data : {};
33159
+ data["trackingId"] = this.trackingId;
33160
+ data["toLocationId"] = this.toLocationId;
33161
+ data["comment"] = this.comment;
33162
+ return data;
33163
+ }
33164
+ }
33165
+ export class BookingUpdateStatusDto {
33166
+ constructor(data) {
33167
+ if (data) {
33168
+ for (var property in data) {
33169
+ if (data.hasOwnProperty(property))
33170
+ this[property] = data[property];
33099
33171
  }
33100
33172
  }
33101
33173
  }
33174
+ init(_data) {
33175
+ if (_data) {
33176
+ this.bookingId = _data["bookingId"];
33177
+ }
33178
+ }
33102
33179
  static fromJS(data) {
33103
33180
  data = typeof data === 'object' ? data : {};
33104
- let result = new BookingDeliveryUpdateDto();
33181
+ let result = new BookingUpdateStatusDto();
33105
33182
  result.init(data);
33106
33183
  return result;
33107
33184
  }
33108
33185
  toJSON(data) {
33109
33186
  data = typeof data === 'object' ? data : {};
33110
33187
  data["bookingId"] = this.bookingId;
33111
- if (Array.isArray(this.deliveryExceptions)) {
33112
- data["deliveryExceptions"] = [];
33113
- for (let item of this.deliveryExceptions)
33114
- data["deliveryExceptions"].push(item.toJSON());
33115
- }
33116
33188
  return data;
33117
33189
  }
33118
33190
  }
33119
- export class BookingDeliveryExceptionDto {
33191
+ export class BookingDeliveryUpdateDto {
33120
33192
  constructor(data) {
33121
33193
  if (data) {
33122
33194
  for (var property in data) {
@@ -33127,22 +33199,28 @@ export class BookingDeliveryExceptionDto {
33127
33199
  }
33128
33200
  init(_data) {
33129
33201
  if (_data) {
33130
- this.trackingId = _data["trackingId"];
33131
- this.toLocationId = _data["toLocationId"];
33132
- this.comment = _data["comment"];
33202
+ this.bookingId = _data["bookingId"];
33203
+ if (Array.isArray(_data["deliveryExceptions"])) {
33204
+ this.deliveryExceptions = [];
33205
+ for (let item of _data["deliveryExceptions"])
33206
+ this.deliveryExceptions.push(BookingDeliveryExceptionDto.fromJS(item));
33207
+ }
33133
33208
  }
33134
33209
  }
33135
33210
  static fromJS(data) {
33136
33211
  data = typeof data === 'object' ? data : {};
33137
- let result = new BookingDeliveryExceptionDto();
33212
+ let result = new BookingDeliveryUpdateDto();
33138
33213
  result.init(data);
33139
33214
  return result;
33140
33215
  }
33141
33216
  toJSON(data) {
33142
33217
  data = typeof data === 'object' ? data : {};
33143
- data["trackingId"] = this.trackingId;
33144
- data["toLocationId"] = this.toLocationId;
33145
- data["comment"] = this.comment;
33218
+ data["bookingId"] = this.bookingId;
33219
+ if (Array.isArray(this.deliveryExceptions)) {
33220
+ data["deliveryExceptions"] = [];
33221
+ for (let item of this.deliveryExceptions)
33222
+ data["deliveryExceptions"].push(item.toJSON());
33223
+ }
33146
33224
  return data;
33147
33225
  }
33148
33226
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ignos/api-client",
3
- "version": "20240805.0.9909",
3
+ "version": "20240805.0.9915",
4
4
  "description": "IGNOS API Client",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -13632,6 +13632,8 @@ export interface IMoveBookingClient {
13632
13632
 
13633
13633
  createBookingGeneral(bookingRequest: BookingGeneralRequestDto): Promise<BookingDto>;
13634
13634
 
13635
+ updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto>;
13636
+
13635
13637
  cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
13636
13638
 
13637
13639
  revertBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto>;
@@ -13894,6 +13896,46 @@ export class MoveBookingClient extends AuthorizedApiBase implements IMoveBooking
13894
13896
  return Promise.resolve<BookingDto>(null as any);
13895
13897
  }
13896
13898
 
13899
+ updateBookingStatus(bookingUpdate: BookingStatusUpdateDto): Promise<BookingDto> {
13900
+ let url_ = this.baseUrl + "/move/booking/updatestatus";
13901
+ url_ = url_.replace(/[?&]$/, "");
13902
+
13903
+ const content_ = JSON.stringify(bookingUpdate);
13904
+
13905
+ let options_: RequestInit = {
13906
+ body: content_,
13907
+ method: "PUT",
13908
+ headers: {
13909
+ "Content-Type": "application/json",
13910
+ "Accept": "application/json"
13911
+ }
13912
+ };
13913
+
13914
+ return this.transformOptions(options_).then(transformedOptions_ => {
13915
+ return this.http.fetch(url_, transformedOptions_);
13916
+ }).then((_response: Response) => {
13917
+ return this.processUpdateBookingStatus(_response);
13918
+ });
13919
+ }
13920
+
13921
+ protected processUpdateBookingStatus(response: Response): Promise<BookingDto> {
13922
+ const status = response.status;
13923
+ let _headers: any = {}; if (response.headers && response.headers.forEach) { response.headers.forEach((v: any, k: any) => _headers[k] = v); };
13924
+ if (status === 200) {
13925
+ return response.text().then((_responseText) => {
13926
+ let result200: any = null;
13927
+ let resultData200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
13928
+ result200 = BookingDto.fromJS(resultData200);
13929
+ return result200;
13930
+ });
13931
+ } else if (status !== 200 && status !== 204) {
13932
+ return response.text().then((_responseText) => {
13933
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
13934
+ });
13935
+ }
13936
+ return Promise.resolve<BookingDto>(null as any);
13937
+ }
13938
+
13897
13939
  cancelBooking(bookingUpdate: BookingUpdateStatusDto): Promise<BookingDto> {
13898
13940
  let url_ = this.baseUrl + "/move/booking/cancel";
13899
13941
  url_ = url_.replace(/[?&]$/, "");
@@ -41262,10 +41304,12 @@ export interface IBookingGeneralRequestDto {
41262
41304
  itemCount: number;
41263
41305
  }
41264
41306
 
41265
- export class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
41307
+ export class BookingStatusUpdateDto implements IBookingStatusUpdateDto {
41266
41308
  bookingId!: string;
41309
+ status!: BookingStatusDto;
41310
+ deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
41267
41311
 
41268
- constructor(data?: IBookingUpdateStatusDto) {
41312
+ constructor(data?: IBookingStatusUpdateDto) {
41269
41313
  if (data) {
41270
41314
  for (var property in data) {
41271
41315
  if (data.hasOwnProperty(property))
@@ -41277,12 +41321,18 @@ export class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
41277
41321
  init(_data?: any) {
41278
41322
  if (_data) {
41279
41323
  this.bookingId = _data["bookingId"];
41324
+ this.status = _data["status"];
41325
+ if (Array.isArray(_data["deliveryExceptions"])) {
41326
+ this.deliveryExceptions = [] as any;
41327
+ for (let item of _data["deliveryExceptions"])
41328
+ this.deliveryExceptions!.push(BookingDeliveryExceptionDto.fromJS(item));
41329
+ }
41280
41330
  }
41281
41331
  }
41282
41332
 
41283
- static fromJS(data: any): BookingUpdateStatusDto {
41333
+ static fromJS(data: any): BookingStatusUpdateDto {
41284
41334
  data = typeof data === 'object' ? data : {};
41285
- let result = new BookingUpdateStatusDto();
41335
+ let result = new BookingStatusUpdateDto();
41286
41336
  result.init(data);
41287
41337
  return result;
41288
41338
  }
@@ -41290,19 +41340,70 @@ export class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
41290
41340
  toJSON(data?: any) {
41291
41341
  data = typeof data === 'object' ? data : {};
41292
41342
  data["bookingId"] = this.bookingId;
41343
+ data["status"] = this.status;
41344
+ if (Array.isArray(this.deliveryExceptions)) {
41345
+ data["deliveryExceptions"] = [];
41346
+ for (let item of this.deliveryExceptions)
41347
+ data["deliveryExceptions"].push(item.toJSON());
41348
+ }
41293
41349
  return data;
41294
41350
  }
41295
41351
  }
41296
41352
 
41297
- export interface IBookingUpdateStatusDto {
41353
+ export interface IBookingStatusUpdateDto {
41298
41354
  bookingId: string;
41355
+ status: BookingStatusDto;
41356
+ deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
41299
41357
  }
41300
41358
 
41301
- export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
41359
+ export class BookingDeliveryExceptionDto implements IBookingDeliveryExceptionDto {
41360
+ trackingId!: string;
41361
+ toLocationId?: string | null;
41362
+ comment?: string | null;
41363
+
41364
+ constructor(data?: IBookingDeliveryExceptionDto) {
41365
+ if (data) {
41366
+ for (var property in data) {
41367
+ if (data.hasOwnProperty(property))
41368
+ (<any>this)[property] = (<any>data)[property];
41369
+ }
41370
+ }
41371
+ }
41372
+
41373
+ init(_data?: any) {
41374
+ if (_data) {
41375
+ this.trackingId = _data["trackingId"];
41376
+ this.toLocationId = _data["toLocationId"];
41377
+ this.comment = _data["comment"];
41378
+ }
41379
+ }
41380
+
41381
+ static fromJS(data: any): BookingDeliveryExceptionDto {
41382
+ data = typeof data === 'object' ? data : {};
41383
+ let result = new BookingDeliveryExceptionDto();
41384
+ result.init(data);
41385
+ return result;
41386
+ }
41387
+
41388
+ toJSON(data?: any) {
41389
+ data = typeof data === 'object' ? data : {};
41390
+ data["trackingId"] = this.trackingId;
41391
+ data["toLocationId"] = this.toLocationId;
41392
+ data["comment"] = this.comment;
41393
+ return data;
41394
+ }
41395
+ }
41396
+
41397
+ export interface IBookingDeliveryExceptionDto {
41398
+ trackingId: string;
41399
+ toLocationId?: string | null;
41400
+ comment?: string | null;
41401
+ }
41402
+
41403
+ export class BookingUpdateStatusDto implements IBookingUpdateStatusDto {
41302
41404
  bookingId!: string;
41303
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
41304
41405
 
41305
- constructor(data?: IBookingDeliveryUpdateDto) {
41406
+ constructor(data?: IBookingUpdateStatusDto) {
41306
41407
  if (data) {
41307
41408
  for (var property in data) {
41308
41409
  if (data.hasOwnProperty(property))
@@ -41314,17 +41415,12 @@ export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
41314
41415
  init(_data?: any) {
41315
41416
  if (_data) {
41316
41417
  this.bookingId = _data["bookingId"];
41317
- if (Array.isArray(_data["deliveryExceptions"])) {
41318
- this.deliveryExceptions = [] as any;
41319
- for (let item of _data["deliveryExceptions"])
41320
- this.deliveryExceptions!.push(BookingDeliveryExceptionDto.fromJS(item));
41321
- }
41322
41418
  }
41323
41419
  }
41324
41420
 
41325
- static fromJS(data: any): BookingDeliveryUpdateDto {
41421
+ static fromJS(data: any): BookingUpdateStatusDto {
41326
41422
  data = typeof data === 'object' ? data : {};
41327
- let result = new BookingDeliveryUpdateDto();
41423
+ let result = new BookingUpdateStatusDto();
41328
41424
  result.init(data);
41329
41425
  return result;
41330
41426
  }
@@ -41332,26 +41428,19 @@ export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
41332
41428
  toJSON(data?: any) {
41333
41429
  data = typeof data === 'object' ? data : {};
41334
41430
  data["bookingId"] = this.bookingId;
41335
- if (Array.isArray(this.deliveryExceptions)) {
41336
- data["deliveryExceptions"] = [];
41337
- for (let item of this.deliveryExceptions)
41338
- data["deliveryExceptions"].push(item.toJSON());
41339
- }
41340
41431
  return data;
41341
41432
  }
41342
41433
  }
41343
41434
 
41344
- export interface IBookingDeliveryUpdateDto {
41435
+ export interface IBookingUpdateStatusDto {
41345
41436
  bookingId: string;
41346
- deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
41347
41437
  }
41348
41438
 
41349
- export class BookingDeliveryExceptionDto implements IBookingDeliveryExceptionDto {
41350
- trackingId!: string;
41351
- toLocationId?: string | null;
41352
- comment?: string | null;
41439
+ export class BookingDeliveryUpdateDto implements IBookingDeliveryUpdateDto {
41440
+ bookingId!: string;
41441
+ deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
41353
41442
 
41354
- constructor(data?: IBookingDeliveryExceptionDto) {
41443
+ constructor(data?: IBookingDeliveryUpdateDto) {
41355
41444
  if (data) {
41356
41445
  for (var property in data) {
41357
41446
  if (data.hasOwnProperty(property))
@@ -41362,32 +41451,37 @@ export class BookingDeliveryExceptionDto implements IBookingDeliveryExceptionDto
41362
41451
 
41363
41452
  init(_data?: any) {
41364
41453
  if (_data) {
41365
- this.trackingId = _data["trackingId"];
41366
- this.toLocationId = _data["toLocationId"];
41367
- this.comment = _data["comment"];
41454
+ this.bookingId = _data["bookingId"];
41455
+ if (Array.isArray(_data["deliveryExceptions"])) {
41456
+ this.deliveryExceptions = [] as any;
41457
+ for (let item of _data["deliveryExceptions"])
41458
+ this.deliveryExceptions!.push(BookingDeliveryExceptionDto.fromJS(item));
41459
+ }
41368
41460
  }
41369
41461
  }
41370
41462
 
41371
- static fromJS(data: any): BookingDeliveryExceptionDto {
41463
+ static fromJS(data: any): BookingDeliveryUpdateDto {
41372
41464
  data = typeof data === 'object' ? data : {};
41373
- let result = new BookingDeliveryExceptionDto();
41465
+ let result = new BookingDeliveryUpdateDto();
41374
41466
  result.init(data);
41375
41467
  return result;
41376
41468
  }
41377
41469
 
41378
41470
  toJSON(data?: any) {
41379
41471
  data = typeof data === 'object' ? data : {};
41380
- data["trackingId"] = this.trackingId;
41381
- data["toLocationId"] = this.toLocationId;
41382
- data["comment"] = this.comment;
41472
+ data["bookingId"] = this.bookingId;
41473
+ if (Array.isArray(this.deliveryExceptions)) {
41474
+ data["deliveryExceptions"] = [];
41475
+ for (let item of this.deliveryExceptions)
41476
+ data["deliveryExceptions"].push(item.toJSON());
41477
+ }
41383
41478
  return data;
41384
41479
  }
41385
41480
  }
41386
41481
 
41387
- export interface IBookingDeliveryExceptionDto {
41388
- trackingId: string;
41389
- toLocationId?: string | null;
41390
- comment?: string | null;
41482
+ export interface IBookingDeliveryUpdateDto {
41483
+ bookingId: string;
41484
+ deliveryExceptions?: BookingDeliveryExceptionDto[] | null;
41391
41485
  }
41392
41486
 
41393
41487
  export class LocationSuggestionsDto implements ILocationSuggestionsDto {