yellowgrid-api-ts 3.2.71-dev.0 → 3.2.74-dev.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.
package/api.ts CHANGED
@@ -657,6 +657,127 @@ export interface AddressRequestModel {
657
657
  */
658
658
  'addressPostcode'?: string;
659
659
  }
660
+ /**
661
+ * Admin Number Port Response
662
+ * @export
663
+ * @interface AdminNumberPortDTO
664
+ */
665
+ export interface AdminNumberPortDTO {
666
+ /**
667
+ * Company Name
668
+ * @type {string}
669
+ * @memberof AdminNumberPortDTO
670
+ */
671
+ 'companyName'?: string | null;
672
+ /**
673
+ * Address Line 1
674
+ * @type {string}
675
+ * @memberof AdminNumberPortDTO
676
+ */
677
+ 'addressLine1'?: string | null;
678
+ /**
679
+ * Address Line 2
680
+ * @type {string}
681
+ * @memberof AdminNumberPortDTO
682
+ */
683
+ 'addressLine2'?: string | null;
684
+ /**
685
+ * City
686
+ * @type {string}
687
+ * @memberof AdminNumberPortDTO
688
+ */
689
+ 'city'?: string | null;
690
+ /**
691
+ * Post Code
692
+ * @type {string}
693
+ * @memberof AdminNumberPortDTO
694
+ */
695
+ 'postCode'?: string | null;
696
+ /**
697
+ * Trunk ID
698
+ * @type {number}
699
+ * @memberof AdminNumberPortDTO
700
+ */
701
+ 'trunkId'?: number | null;
702
+ /**
703
+ * Starter Bundle ID
704
+ * @type {string}
705
+ * @memberof AdminNumberPortDTO
706
+ */
707
+ 'tenantId'?: string | null;
708
+ /**
709
+ * Requested Port Date
710
+ * @type {string}
711
+ * @memberof AdminNumberPortDTO
712
+ */
713
+ 'requestedPortDate'?: string | null;
714
+ /**
715
+ * Port Date ASAP
716
+ * @type {boolean}
717
+ * @memberof AdminNumberPortDTO
718
+ */
719
+ 'asap'?: boolean | null;
720
+ /**
721
+ * Comment
722
+ * @type {string}
723
+ * @memberof AdminNumberPortDTO
724
+ */
725
+ 'comment'?: string | null;
726
+ /**
727
+ * Number Port ID
728
+ * @type {number}
729
+ * @memberof AdminNumberPortDTO
730
+ */
731
+ 'id'?: number;
732
+ /**
733
+ * Reseller ID
734
+ * @type {number}
735
+ * @memberof AdminNumberPortDTO
736
+ */
737
+ 'customerId'?: number;
738
+ /**
739
+ * Customer Name
740
+ * @type {string}
741
+ * @memberof AdminNumberPortDTO
742
+ */
743
+ 'customerName'?: string;
744
+ /**
745
+ * Porting Date
746
+ * @type {string}
747
+ * @memberof AdminNumberPortDTO
748
+ */
749
+ 'portDate'?: string;
750
+ /**
751
+ * Number Ranges
752
+ * @type {Array<NumberPortRangeDTO>}
753
+ * @memberof AdminNumberPortDTO
754
+ */
755
+ 'numberRanges'?: Array<NumberPortRangeDTO>;
756
+ /**
757
+ * Status
758
+ * @type {number}
759
+ * @memberof AdminNumberPortDTO
760
+ */
761
+ 'status'?: number;
762
+ /**
763
+ * Status Text
764
+ * @type {string}
765
+ * @memberof AdminNumberPortDTO
766
+ */
767
+ 'statusText'?: string;
768
+ /**
769
+ * Ticket ID
770
+ * @type {number}
771
+ * @memberof AdminNumberPortDTO
772
+ */
773
+ 'ticketId'?: number | null;
774
+ /**
775
+ * Notes
776
+ * @type {Array<NumberPortNoteDTO>}
777
+ * @memberof AdminNumberPortDTO
778
+ */
779
+ 'notes'?: Array<NumberPortNoteDTO>;
780
+ }
660
781
  /**
661
782
  * Admin Order Request
662
783
  * @export
@@ -1114,6 +1235,7 @@ export const AuditLogEntityTypeEnum = {
1114
1235
  PopsLinkedOrders: 'pops_linked_orders',
1115
1236
  NumberPorts: 'number_ports',
1116
1237
  NumberPortRanges: 'number_port_ranges',
1238
+ NumberPortNotes: 'number_port_notes',
1117
1239
  PopsOfflineInstances: 'pops_offline_instances',
1118
1240
  PopsOrderedItems: 'pops_ordered_items',
1119
1241
  PopsPrizes: 'pops_prizes',
@@ -4245,107 +4367,41 @@ export interface NumberPortDTO {
4245
4367
  'ticketId'?: number | null;
4246
4368
  }
4247
4369
  /**
4248
- * Number Port Model
4370
+ * Number Port Note DTO
4249
4371
  * @export
4250
- * @interface NumberPortModel
4372
+ * @interface NumberPortNoteDTO
4251
4373
  */
4252
- export interface NumberPortModel {
4374
+ export interface NumberPortNoteDTO {
4253
4375
  /**
4254
- * Number Port ID
4376
+ * id
4255
4377
  * @type {number}
4256
- * @memberof NumberPortModel
4378
+ * @memberof NumberPortNoteDTO
4257
4379
  */
4258
4380
  'id'?: number;
4259
4381
  /**
4260
- * Customer ID
4382
+ * portId
4261
4383
  * @type {number}
4262
- * @memberof NumberPortModel
4263
- */
4264
- 'customerId'?: number;
4265
- /**
4266
- * End User
4267
- * @type {string}
4268
- * @memberof NumberPortModel
4384
+ * @memberof NumberPortNoteDTO
4269
4385
  */
4270
- 'endUser'?: string | null;
4271
- /**
4272
- * Address Line 1
4273
- * @type {string}
4274
- * @memberof NumberPortModel
4275
- */
4276
- 'addressLine1'?: string | null;
4277
- /**
4278
- * Address Line 2
4279
- * @type {string}
4280
- * @memberof NumberPortModel
4281
- */
4282
- 'addressLine2'?: string | null;
4283
- /**
4284
- * City
4285
- * @type {string}
4286
- * @memberof NumberPortModel
4287
- */
4288
- 'city'?: string | null;
4289
- /**
4290
- * Post Code
4291
- * @type {string}
4292
- * @memberof NumberPortModel
4293
- */
4294
- 'postCode'?: string | null;
4295
- /**
4296
- * Trunk ID
4297
- * @type {number}
4298
- * @memberof NumberPortModel
4299
- */
4300
- 'trunkId'?: number | null;
4301
- /**
4302
- * Tenant ID
4303
- * @type {string}
4304
- * @memberof NumberPortModel
4305
- */
4306
- 'tenantId'?: string | null;
4307
- /**
4308
- * Requested Port Date
4309
- * @type {string}
4310
- * @memberof NumberPortModel
4311
- */
4312
- 'requestedPortDate'?: string | null;
4386
+ 'portId'?: number;
4313
4387
  /**
4314
- * Port Date
4388
+ * note
4315
4389
  * @type {string}
4316
- * @memberof NumberPortModel
4390
+ * @memberof NumberPortNoteDTO
4317
4391
  */
4318
- 'portDate'?: string | null;
4392
+ 'note'?: string;
4319
4393
  /**
4320
- * Comment
4394
+ * user
4321
4395
  * @type {string}
4322
- * @memberof NumberPortModel
4323
- */
4324
- 'comment'?: string | null;
4325
- /**
4326
- * Status
4327
- * @type {number}
4328
- * @memberof NumberPortModel
4396
+ * @memberof NumberPortNoteDTO
4329
4397
  */
4330
- 'status'?: number | null;
4331
- /**
4332
- * Ticket ID
4333
- * @type {number}
4334
- * @memberof NumberPortModel
4335
- */
4336
- 'ticketId'?: number | null;
4337
- /**
4338
- * Number Port Ranges
4339
- * @type {Array<any>}
4340
- * @memberof NumberPortModel
4341
- */
4342
- 'ranges'?: Array<any>;
4398
+ 'user'?: string;
4343
4399
  /**
4344
- * Customer Company Name
4400
+ * timestamp
4345
4401
  * @type {string}
4346
- * @memberof NumberPortModel
4402
+ * @memberof NumberPortNoteDTO
4347
4403
  */
4348
- 'customerName'?: string;
4404
+ 'timestamp'?: string;
4349
4405
  }
4350
4406
  /**
4351
4407
  * Number Port Range Response
@@ -18205,6 +18261,45 @@ export const NumberPortingApiAxiosParamCreator = function (configuration?: Confi
18205
18261
  options: localVarRequestOptions,
18206
18262
  };
18207
18263
  },
18264
+ /**
18265
+ *
18266
+ * @param {number} id Number Port ID
18267
+ * @param {string} body
18268
+ * @param {*} [options] Override http request option.
18269
+ * @throws {RequiredError}
18270
+ */
18271
+ postAddAdminNote: async (id: number, body: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18272
+ // verify required parameter 'id' is not null or undefined
18273
+ assertParamExists('postAddAdminNote', 'id', id)
18274
+ // verify required parameter 'body' is not null or undefined
18275
+ assertParamExists('postAddAdminNote', 'body', body)
18276
+ const localVarPath = `/admin/sip/numbers/ports/{id}/notes`
18277
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18279
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18280
+ let baseOptions;
18281
+ if (configuration) {
18282
+ baseOptions = configuration.baseOptions;
18283
+ }
18284
+
18285
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18286
+ const localVarHeaderParameter = {} as any;
18287
+ const localVarQueryParameter = {} as any;
18288
+
18289
+
18290
+
18291
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18292
+
18293
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18295
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18296
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
18297
+
18298
+ return {
18299
+ url: toPathString(localVarUrlObj),
18300
+ options: localVarRequestOptions,
18301
+ };
18302
+ },
18208
18303
  /**
18209
18304
  *
18210
18305
  * @param {string | null} [companyName] Company Name
@@ -18573,7 +18668,7 @@ export const NumberPortingApiFp = function(configuration?: Configuration) {
18573
18668
  * @param {*} [options] Override http request option.
18574
18669
  * @throws {RequiredError}
18575
18670
  */
18576
- async getGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>> {
18671
+ async getGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
18577
18672
  const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminNumberPort(id, options);
18578
18673
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18579
18674
  const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.getGetAdminNumberPort']?.[localVarOperationServerIndex]?.url;
@@ -18611,12 +18706,25 @@ export const NumberPortingApiFp = function(configuration?: Configuration) {
18611
18706
  * @param {*} [options] Override http request option.
18612
18707
  * @throws {RequiredError}
18613
18708
  */
18614
- async patchCloseAdminNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>> {
18709
+ async patchCloseAdminNumberPort(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
18615
18710
  const localVarAxiosArgs = await localVarAxiosParamCreator.patchCloseAdminNumberPort(id, options);
18616
18711
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18617
18712
  const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.patchCloseAdminNumberPort']?.[localVarOperationServerIndex]?.url;
18618
18713
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18619
18714
  },
18715
+ /**
18716
+ *
18717
+ * @param {number} id Number Port ID
18718
+ * @param {string} body
18719
+ * @param {*} [options] Override http request option.
18720
+ * @throws {RequiredError}
18721
+ */
18722
+ async postAddAdminNote(id: number, body: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
18723
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postAddAdminNote(id, body, options);
18724
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18725
+ const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.postAddAdminNote']?.[localVarOperationServerIndex]?.url;
18726
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18727
+ },
18620
18728
  /**
18621
18729
  *
18622
18730
  * @param {string | null} [companyName] Company Name
@@ -18695,7 +18803,7 @@ export const NumberPortingApiFp = function(configuration?: Configuration) {
18695
18803
  * @param {*} [options] Override http request option.
18696
18804
  * @throws {RequiredError}
18697
18805
  */
18698
- async putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NumberPortDTO>> {
18806
+ async putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminNumberPortDTO>> {
18699
18807
  const localVarAxiosArgs = await localVarAxiosParamCreator.putGetAdminNumberPort(id, numberPortDTO, options);
18700
18808
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18701
18809
  const localVarOperationServerBasePath = operationServerMap['NumberPortingApi.putGetAdminNumberPort']?.[localVarOperationServerIndex]?.url;
@@ -18737,7 +18845,7 @@ export const NumberPortingApiFactory = function (configuration?: Configuration,
18737
18845
  * @param {*} [options] Override http request option.
18738
18846
  * @throws {RequiredError}
18739
18847
  */
18740
- getGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
18848
+ getGetAdminNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
18741
18849
  return localVarFp.getGetAdminNumberPort(id, options).then((request) => request(axios, basePath));
18742
18850
  },
18743
18851
  /**
@@ -18766,9 +18874,19 @@ export const NumberPortingApiFactory = function (configuration?: Configuration,
18766
18874
  * @param {*} [options] Override http request option.
18767
18875
  * @throws {RequiredError}
18768
18876
  */
18769
- patchCloseAdminNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
18877
+ patchCloseAdminNumberPort(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
18770
18878
  return localVarFp.patchCloseAdminNumberPort(id, options).then((request) => request(axios, basePath));
18771
18879
  },
18880
+ /**
18881
+ *
18882
+ * @param {number} id Number Port ID
18883
+ * @param {string} body
18884
+ * @param {*} [options] Override http request option.
18885
+ * @throws {RequiredError}
18886
+ */
18887
+ postAddAdminNote(id: number, body: string, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
18888
+ return localVarFp.postAddAdminNote(id, body, options).then((request) => request(axios, basePath));
18889
+ },
18772
18890
  /**
18773
18891
  *
18774
18892
  * @param {string | null} [companyName] Company Name
@@ -18838,7 +18956,7 @@ export const NumberPortingApiFactory = function (configuration?: Configuration,
18838
18956
  * @param {*} [options] Override http request option.
18839
18957
  * @throws {RequiredError}
18840
18958
  */
18841
- putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig): AxiosPromise<NumberPortDTO> {
18959
+ putGetAdminNumberPort(id: number, numberPortDTO: NumberPortDTO, options?: RawAxiosRequestConfig): AxiosPromise<AdminNumberPortDTO> {
18842
18960
  return localVarFp.putGetAdminNumberPort(id, numberPortDTO, options).then((request) => request(axios, basePath));
18843
18961
  },
18844
18962
  };
@@ -18921,6 +19039,18 @@ export class NumberPortingApi extends BaseAPI {
18921
19039
  return NumberPortingApiFp(this.configuration).patchCloseAdminNumberPort(id, options).then((request) => request(this.axios, this.basePath));
18922
19040
  }
18923
19041
 
19042
+ /**
19043
+ *
19044
+ * @param {number} id Number Port ID
19045
+ * @param {string} body
19046
+ * @param {*} [options] Override http request option.
19047
+ * @throws {RequiredError}
19048
+ * @memberof NumberPortingApi
19049
+ */
19050
+ public postAddAdminNote(id: number, body: string, options?: RawAxiosRequestConfig) {
19051
+ return NumberPortingApiFp(this.configuration).postAddAdminNote(id, body, options).then((request) => request(this.axios, this.basePath));
19052
+ }
19053
+
18924
19054
  /**
18925
19055
  *
18926
19056
  * @param {string | null} [companyName] Company Name
@@ -19713,25 +19843,17 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
19713
19843
  };
19714
19844
  },
19715
19845
  /**
19716
- * Delete Shipment (Admin)
19717
- * @summary Delete Shipment (Admin)
19846
+ * Delete Orders (Beta)
19847
+ * @summary Delete Orders (Beta)
19718
19848
  * @param {number} id Order ID
19719
- * @param {number} batchId Batch ID
19720
- * @param {number} shipmentId Shipment ID
19721
19849
  * @param {*} [options] Override http request option.
19722
19850
  * @throws {RequiredError}
19723
19851
  */
19724
- deleteDeleteShipment: async (id: number, batchId: number, shipmentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19852
+ deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19725
19853
  // verify required parameter 'id' is not null or undefined
19726
- assertParamExists('deleteDeleteShipment', 'id', id)
19727
- // verify required parameter 'batchId' is not null or undefined
19728
- assertParamExists('deleteDeleteShipment', 'batchId', batchId)
19729
- // verify required parameter 'shipmentId' is not null or undefined
19730
- assertParamExists('deleteDeleteShipment', 'shipmentId', shipmentId)
19731
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}`
19732
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
19733
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
19734
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
19854
+ assertParamExists('deleteUpdateOrder', 'id', id)
19855
+ const localVarPath = `/orders/{id}`
19856
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
19735
19857
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19736
19858
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19737
19859
  let baseOptions;
@@ -19755,17 +19877,25 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
19755
19877
  };
19756
19878
  },
19757
19879
  /**
19758
- * Delete Orders (Beta)
19759
- * @summary Delete Orders (Beta)
19880
+ * Delete Shipment (Admin)
19881
+ * @summary Delete Shipment (Admin)
19760
19882
  * @param {number} id Order ID
19883
+ * @param {number} batchId Batch ID
19884
+ * @param {number} shipmentId Shipment ID
19761
19885
  * @param {*} [options] Override http request option.
19762
19886
  * @throws {RequiredError}
19763
19887
  */
19764
- deleteUpdateOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19888
+ deleteUpdateShipment: async (id: number, batchId: number, shipmentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19765
19889
  // verify required parameter 'id' is not null or undefined
19766
- assertParamExists('deleteUpdateOrder', 'id', id)
19767
- const localVarPath = `/orders/{id}`
19768
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
19890
+ assertParamExists('deleteUpdateShipment', 'id', id)
19891
+ // verify required parameter 'batchId' is not null or undefined
19892
+ assertParamExists('deleteUpdateShipment', 'batchId', batchId)
19893
+ // verify required parameter 'shipmentId' is not null or undefined
19894
+ assertParamExists('deleteUpdateShipment', 'shipmentId', shipmentId)
19895
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}`
19896
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
19897
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
19898
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
19769
19899
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19770
19900
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19771
19901
  let baseOptions;
@@ -20435,26 +20565,19 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20435
20565
  };
20436
20566
  },
20437
20567
  /**
20438
- * Update Shipment (Admin)
20439
- * @summary Update Shipment (Admin)
20568
+ * Update An Order (Admin)
20569
+ * @summary Update An Order (Admin)
20440
20570
  * @param {number} id Order ID
20441
- * @param {number} batchId Batch ID
20442
- * @param {number} shipmentId Shipment ID
20443
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
20571
+ * @param {boolean} [readonly] Readonly Order
20572
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
20444
20573
  * @param {*} [options] Override http request option.
20445
20574
  * @throws {RequiredError}
20446
20575
  */
20447
- putCreateShipment: async (id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20576
+ putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20448
20577
  // verify required parameter 'id' is not null or undefined
20449
- assertParamExists('putCreateShipment', 'id', id)
20450
- // verify required parameter 'batchId' is not null or undefined
20451
- assertParamExists('putCreateShipment', 'batchId', batchId)
20452
- // verify required parameter 'shipmentId' is not null or undefined
20453
- assertParamExists('putCreateShipment', 'shipmentId', shipmentId)
20454
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
20455
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
20456
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
20457
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
20578
+ assertParamExists('putUpdateAdminOrder', 'id', id)
20579
+ const localVarPath = `/admin/orders/{id}`
20580
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
20458
20581
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20459
20582
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20460
20583
  let baseOptions;
@@ -20466,6 +20589,10 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20466
20589
  const localVarHeaderParameter = {} as any;
20467
20590
  const localVarQueryParameter = {} as any;
20468
20591
 
20592
+ if (readonly !== undefined) {
20593
+ localVarQueryParameter['readonly'] = readonly;
20594
+ }
20595
+
20469
20596
 
20470
20597
 
20471
20598
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -20473,7 +20600,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20473
20600
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20474
20601
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20475
20602
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20476
- localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
20603
+ localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
20477
20604
 
20478
20605
  return {
20479
20606
  url: toPathString(localVarUrlObj),
@@ -20481,18 +20608,18 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20481
20608
  };
20482
20609
  },
20483
20610
  /**
20484
- * Update An Order (Admin)
20485
- * @summary Update An Order (Admin)
20611
+ * Update An Order (Beta)
20612
+ * @summary Update An Order (Beta)
20486
20613
  * @param {number} id Order ID
20487
20614
  * @param {boolean} [readonly] Readonly Order
20488
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
20615
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
20489
20616
  * @param {*} [options] Override http request option.
20490
20617
  * @throws {RequiredError}
20491
20618
  */
20492
- putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20619
+ putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20493
20620
  // verify required parameter 'id' is not null or undefined
20494
- assertParamExists('putUpdateAdminOrder', 'id', id)
20495
- const localVarPath = `/admin/orders/{id}`
20621
+ assertParamExists('putUpdateOrder', 'id', id)
20622
+ const localVarPath = `/orders/{id}`
20496
20623
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
20497
20624
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20498
20625
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -20516,7 +20643,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20516
20643
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20517
20644
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20518
20645
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20519
- localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
20646
+ localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
20520
20647
 
20521
20648
  return {
20522
20649
  url: toPathString(localVarUrlObj),
@@ -20524,19 +20651,26 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20524
20651
  };
20525
20652
  },
20526
20653
  /**
20527
- * Update An Order (Beta)
20528
- * @summary Update An Order (Beta)
20654
+ * Update Shipment (Admin)
20655
+ * @summary Update Shipment (Admin)
20529
20656
  * @param {number} id Order ID
20530
- * @param {boolean} [readonly] Readonly Order
20531
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
20657
+ * @param {number} batchId Batch ID
20658
+ * @param {number} shipmentId Shipment ID
20659
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
20532
20660
  * @param {*} [options] Override http request option.
20533
20661
  * @throws {RequiredError}
20534
20662
  */
20535
- putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20663
+ putUpdateShipment: async (id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20536
20664
  // verify required parameter 'id' is not null or undefined
20537
- assertParamExists('putUpdateOrder', 'id', id)
20538
- const localVarPath = `/orders/{id}`
20539
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
20665
+ assertParamExists('putUpdateShipment', 'id', id)
20666
+ // verify required parameter 'batchId' is not null or undefined
20667
+ assertParamExists('putUpdateShipment', 'batchId', batchId)
20668
+ // verify required parameter 'shipmentId' is not null or undefined
20669
+ assertParamExists('putUpdateShipment', 'shipmentId', shipmentId)
20670
+ const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments/{shipment_id}`
20671
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
20672
+ .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
20673
+ .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
20540
20674
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
20541
20675
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20542
20676
  let baseOptions;
@@ -20548,10 +20682,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20548
20682
  const localVarHeaderParameter = {} as any;
20549
20683
  const localVarQueryParameter = {} as any;
20550
20684
 
20551
- if (readonly !== undefined) {
20552
- localVarQueryParameter['readonly'] = readonly;
20553
- }
20554
-
20555
20685
 
20556
20686
 
20557
20687
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -20559,7 +20689,7 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20559
20689
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20560
20690
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20561
20691
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20562
- localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
20692
+ localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
20563
20693
 
20564
20694
  return {
20565
20695
  url: toPathString(localVarUrlObj),
@@ -20590,31 +20720,31 @@ export const OrdersApiFp = function(configuration?: Configuration) {
20590
20720
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20591
20721
  },
20592
20722
  /**
20593
- * Delete Shipment (Admin)
20594
- * @summary Delete Shipment (Admin)
20723
+ * Delete Orders (Beta)
20724
+ * @summary Delete Orders (Beta)
20595
20725
  * @param {number} id Order ID
20596
- * @param {number} batchId Batch ID
20597
- * @param {number} shipmentId Shipment ID
20598
20726
  * @param {*} [options] Override http request option.
20599
20727
  * @throws {RequiredError}
20600
20728
  */
20601
- async deleteDeleteShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
20602
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteShipment(id, batchId, shipmentId, options);
20729
+ async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
20730
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
20603
20731
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20604
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteDeleteShipment']?.[localVarOperationServerIndex]?.url;
20732
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
20605
20733
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20606
20734
  },
20607
20735
  /**
20608
- * Delete Orders (Beta)
20609
- * @summary Delete Orders (Beta)
20736
+ * Delete Shipment (Admin)
20737
+ * @summary Delete Shipment (Admin)
20610
20738
  * @param {number} id Order ID
20739
+ * @param {number} batchId Batch ID
20740
+ * @param {number} shipmentId Shipment ID
20611
20741
  * @param {*} [options] Override http request option.
20612
20742
  * @throws {RequiredError}
20613
20743
  */
20614
- async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
20615
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
20744
+ async deleteUpdateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
20745
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateShipment(id, batchId, shipmentId, options);
20616
20746
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20617
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
20747
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateShipment']?.[localVarOperationServerIndex]?.url;
20618
20748
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20619
20749
  },
20620
20750
  /**
@@ -20846,22 +20976,6 @@ export const OrdersApiFp = function(configuration?: Configuration) {
20846
20976
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.putAllocateItems']?.[localVarOperationServerIndex]?.url;
20847
20977
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20848
20978
  },
20849
- /**
20850
- * Update Shipment (Admin)
20851
- * @summary Update Shipment (Admin)
20852
- * @param {number} id Order ID
20853
- * @param {number} batchId Batch ID
20854
- * @param {number} shipmentId Shipment ID
20855
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
20856
- * @param {*} [options] Override http request option.
20857
- * @throws {RequiredError}
20858
- */
20859
- async putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
20860
- const localVarAxiosArgs = await localVarAxiosParamCreator.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options);
20861
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20862
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.putCreateShipment']?.[localVarOperationServerIndex]?.url;
20863
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20864
- },
20865
20979
  /**
20866
20980
  * Update An Order (Admin)
20867
20981
  * @summary Update An Order (Admin)
@@ -20892,6 +21006,22 @@ export const OrdersApiFp = function(configuration?: Configuration) {
20892
21006
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateOrder']?.[localVarOperationServerIndex]?.url;
20893
21007
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20894
21008
  },
21009
+ /**
21010
+ * Update Shipment (Admin)
21011
+ * @summary Update Shipment (Admin)
21012
+ * @param {number} id Order ID
21013
+ * @param {number} batchId Batch ID
21014
+ * @param {number} shipmentId Shipment ID
21015
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
21016
+ * @param {*} [options] Override http request option.
21017
+ * @throws {RequiredError}
21018
+ */
21019
+ async putUpdateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
21020
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putUpdateShipment(id, batchId, shipmentId, shipmentRequestDTO, options);
21021
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21022
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.putUpdateShipment']?.[localVarOperationServerIndex]?.url;
21023
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21024
+ },
20895
21025
  }
20896
21026
  };
20897
21027
 
@@ -20913,26 +21043,26 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
20913
21043
  return localVarFp.deleteDeleteBatch(id, batchId, options).then((request) => request(axios, basePath));
20914
21044
  },
20915
21045
  /**
20916
- * Delete Shipment (Admin)
20917
- * @summary Delete Shipment (Admin)
21046
+ * Delete Orders (Beta)
21047
+ * @summary Delete Orders (Beta)
20918
21048
  * @param {number} id Order ID
20919
- * @param {number} batchId Batch ID
20920
- * @param {number} shipmentId Shipment ID
20921
21049
  * @param {*} [options] Override http request option.
20922
21050
  * @throws {RequiredError}
20923
21051
  */
20924
- deleteDeleteShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
20925
- return localVarFp.deleteDeleteShipment(id, batchId, shipmentId, options).then((request) => request(axios, basePath));
21052
+ deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21053
+ return localVarFp.deleteUpdateOrder(id, options).then((request) => request(axios, basePath));
20926
21054
  },
20927
21055
  /**
20928
- * Delete Orders (Beta)
20929
- * @summary Delete Orders (Beta)
21056
+ * Delete Shipment (Admin)
21057
+ * @summary Delete Shipment (Admin)
20930
21058
  * @param {number} id Order ID
21059
+ * @param {number} batchId Batch ID
21060
+ * @param {number} shipmentId Shipment ID
20931
21061
  * @param {*} [options] Override http request option.
20932
21062
  * @throws {RequiredError}
20933
21063
  */
20934
- deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
20935
- return localVarFp.deleteUpdateOrder(id, options).then((request) => request(axios, basePath));
21064
+ deleteUpdateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21065
+ return localVarFp.deleteUpdateShipment(id, batchId, shipmentId, options).then((request) => request(axios, basePath));
20936
21066
  },
20937
21067
  /**
20938
21068
  * Get Editable Order (Admin)
@@ -21115,19 +21245,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
21115
21245
  putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<BatchDTO>> {
21116
21246
  return localVarFp.putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(axios, basePath));
21117
21247
  },
21118
- /**
21119
- * Update Shipment (Admin)
21120
- * @summary Update Shipment (Admin)
21121
- * @param {number} id Order ID
21122
- * @param {number} batchId Batch ID
21123
- * @param {number} shipmentId Shipment ID
21124
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
21125
- * @param {*} [options] Override http request option.
21126
- * @throws {RequiredError}
21127
- */
21128
- putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
21129
- return localVarFp.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
21130
- },
21131
21248
  /**
21132
21249
  * Update An Order (Admin)
21133
21250
  * @summary Update An Order (Admin)
@@ -21152,6 +21269,19 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
21152
21269
  putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
21153
21270
  return localVarFp.putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
21154
21271
  },
21272
+ /**
21273
+ * Update Shipment (Admin)
21274
+ * @summary Update Shipment (Admin)
21275
+ * @param {number} id Order ID
21276
+ * @param {number} batchId Batch ID
21277
+ * @param {number} shipmentId Shipment ID
21278
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
21279
+ * @param {*} [options] Override http request option.
21280
+ * @throws {RequiredError}
21281
+ */
21282
+ putUpdateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
21283
+ return localVarFp.putUpdateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
21284
+ },
21155
21285
  };
21156
21286
  };
21157
21287
 
@@ -21175,29 +21305,29 @@ export class OrdersApi extends BaseAPI {
21175
21305
  }
21176
21306
 
21177
21307
  /**
21178
- * Delete Shipment (Admin)
21179
- * @summary Delete Shipment (Admin)
21308
+ * Delete Orders (Beta)
21309
+ * @summary Delete Orders (Beta)
21180
21310
  * @param {number} id Order ID
21181
- * @param {number} batchId Batch ID
21182
- * @param {number} shipmentId Shipment ID
21183
21311
  * @param {*} [options] Override http request option.
21184
21312
  * @throws {RequiredError}
21185
21313
  * @memberof OrdersApi
21186
21314
  */
21187
- public deleteDeleteShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig) {
21188
- return OrdersApiFp(this.configuration).deleteDeleteShipment(id, batchId, shipmentId, options).then((request) => request(this.axios, this.basePath));
21315
+ public deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig) {
21316
+ return OrdersApiFp(this.configuration).deleteUpdateOrder(id, options).then((request) => request(this.axios, this.basePath));
21189
21317
  }
21190
21318
 
21191
21319
  /**
21192
- * Delete Orders (Beta)
21193
- * @summary Delete Orders (Beta)
21320
+ * Delete Shipment (Admin)
21321
+ * @summary Delete Shipment (Admin)
21194
21322
  * @param {number} id Order ID
21323
+ * @param {number} batchId Batch ID
21324
+ * @param {number} shipmentId Shipment ID
21195
21325
  * @param {*} [options] Override http request option.
21196
21326
  * @throws {RequiredError}
21197
21327
  * @memberof OrdersApi
21198
21328
  */
21199
- public deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig) {
21200
- return OrdersApiFp(this.configuration).deleteUpdateOrder(id, options).then((request) => request(this.axios, this.basePath));
21329
+ public deleteUpdateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig) {
21330
+ return OrdersApiFp(this.configuration).deleteUpdateShipment(id, batchId, shipmentId, options).then((request) => request(this.axios, this.basePath));
21201
21331
  }
21202
21332
 
21203
21333
  /**
@@ -21413,21 +21543,6 @@ export class OrdersApi extends BaseAPI {
21413
21543
  return OrdersApiFp(this.configuration).putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(this.axios, this.basePath));
21414
21544
  }
21415
21545
 
21416
- /**
21417
- * Update Shipment (Admin)
21418
- * @summary Update Shipment (Admin)
21419
- * @param {number} id Order ID
21420
- * @param {number} batchId Batch ID
21421
- * @param {number} shipmentId Shipment ID
21422
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
21423
- * @param {*} [options] Override http request option.
21424
- * @throws {RequiredError}
21425
- * @memberof OrdersApi
21426
- */
21427
- public putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
21428
- return OrdersApiFp(this.configuration).putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
21429
- }
21430
-
21431
21546
  /**
21432
21547
  * Update An Order (Admin)
21433
21548
  * @summary Update An Order (Admin)
@@ -21455,6 +21570,21 @@ export class OrdersApi extends BaseAPI {
21455
21570
  public putUpdateOrder(id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig) {
21456
21571
  return OrdersApiFp(this.configuration).putUpdateOrder(id, readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
21457
21572
  }
21573
+
21574
+ /**
21575
+ * Update Shipment (Admin)
21576
+ * @summary Update Shipment (Admin)
21577
+ * @param {number} id Order ID
21578
+ * @param {number} batchId Batch ID
21579
+ * @param {number} shipmentId Shipment ID
21580
+ * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
21581
+ * @param {*} [options] Override http request option.
21582
+ * @throws {RequiredError}
21583
+ * @memberof OrdersApi
21584
+ */
21585
+ public putUpdateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
21586
+ return OrdersApiFp(this.configuration).putUpdateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
21587
+ }
21458
21588
  }
21459
21589
 
21460
21590
  /**