ob-parking-sdk 0.0.53 → 0.0.54

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/api.ts CHANGED
@@ -670,50 +670,6 @@ export interface CreateVehicleBrandBody {
670
670
  */
671
671
  'name': string;
672
672
  }
673
- /**
674
- *
675
- * @export
676
- * @interface CreateVehicleModelBody
677
- */
678
- export interface CreateVehicleModelBody {
679
- /**
680
- *
681
- * @type {string}
682
- * @memberof CreateVehicleModelBody
683
- */
684
- 'brand_id': string;
685
- /**
686
- *
687
- * @type {string}
688
- * @memberof CreateVehicleModelBody
689
- */
690
- 'name': string;
691
- }
692
- /**
693
- *
694
- * @export
695
- * @interface CreateVehicleModelResponse
696
- */
697
- export interface CreateVehicleModelResponse {
698
- /**
699
- *
700
- * @type {string}
701
- * @memberof CreateVehicleModelResponse
702
- */
703
- 'brand_id': string;
704
- /**
705
- *
706
- * @type {string}
707
- * @memberof CreateVehicleModelResponse
708
- */
709
- 'name': string;
710
- /**
711
- *
712
- * @type {string}
713
- * @memberof CreateVehicleModelResponse
714
- */
715
- 'id': string;
716
- }
717
673
  /**
718
674
  *
719
675
  * @export
@@ -733,31 +689,6 @@ export interface DeleteVehicleBrandResponse {
733
689
  */
734
690
  'id': string;
735
691
  }
736
- /**
737
- *
738
- * @export
739
- * @interface DeleteVehicleModelResponse
740
- */
741
- export interface DeleteVehicleModelResponse {
742
- /**
743
- *
744
- * @type {string}
745
- * @memberof DeleteVehicleModelResponse
746
- */
747
- 'brand_id': string;
748
- /**
749
- *
750
- * @type {string}
751
- * @memberof DeleteVehicleModelResponse
752
- */
753
- 'name': string;
754
- /**
755
- *
756
- * @type {string}
757
- * @memberof DeleteVehicleModelResponse
758
- */
759
- 'id': string;
760
- }
761
692
  /**
762
693
  *
763
694
  * @export
@@ -3049,6 +2980,12 @@ export interface UpdateRegisteredVehicleBody {
3049
2980
  * @memberof UpdateRegisteredVehicleBody
3050
2981
  */
3051
2982
  'vehicle_type'?: VehicleType;
2983
+ /**
2984
+ *
2985
+ * @type {string}
2986
+ * @memberof UpdateRegisteredVehicleBody
2987
+ */
2988
+ 'id': string;
3052
2989
  }
3053
2990
 
3054
2991
 
@@ -3065,50 +3002,6 @@ export interface UpdateVehicleBrandBody {
3065
3002
  */
3066
3003
  'name'?: string;
3067
3004
  }
3068
- /**
3069
- *
3070
- * @export
3071
- * @interface UpdateVehicleModelBody
3072
- */
3073
- export interface UpdateVehicleModelBody {
3074
- /**
3075
- *
3076
- * @type {string}
3077
- * @memberof UpdateVehicleModelBody
3078
- */
3079
- 'brand_id'?: string;
3080
- /**
3081
- *
3082
- * @type {string}
3083
- * @memberof UpdateVehicleModelBody
3084
- */
3085
- 'name'?: string;
3086
- }
3087
- /**
3088
- *
3089
- * @export
3090
- * @interface UpdateVehicleModelResponse
3091
- */
3092
- export interface UpdateVehicleModelResponse {
3093
- /**
3094
- *
3095
- * @type {string}
3096
- * @memberof UpdateVehicleModelResponse
3097
- */
3098
- 'brand_id': string;
3099
- /**
3100
- *
3101
- * @type {string}
3102
- * @memberof UpdateVehicleModelResponse
3103
- */
3104
- 'name': string;
3105
- /**
3106
- *
3107
- * @type {string}
3108
- * @memberof UpdateVehicleModelResponse
3109
- */
3110
- 'id': string;
3111
- }
3112
3005
  /**
3113
3006
  *
3114
3007
  * @export
@@ -3260,69 +3153,6 @@ export interface VehicleBrandResponse {
3260
3153
  */
3261
3154
  'id': string;
3262
3155
  }
3263
- /**
3264
- *
3265
- * @export
3266
- * @interface VehicleModelIndexQuery
3267
- */
3268
- export interface VehicleModelIndexQuery {
3269
- /**
3270
- *
3271
- * @type {string}
3272
- * @memberof VehicleModelIndexQuery
3273
- */
3274
- 'name'?: string;
3275
- /**
3276
- *
3277
- * @type {string}
3278
- * @memberof VehicleModelIndexQuery
3279
- */
3280
- 'brand_id'?: string;
3281
- }
3282
- /**
3283
- *
3284
- * @export
3285
- * @interface VehicleModelIndexResponse
3286
- */
3287
- export interface VehicleModelIndexResponse {
3288
- /**
3289
- *
3290
- * @type {VehicleModelIndexResponseBrand}
3291
- * @memberof VehicleModelIndexResponse
3292
- */
3293
- 'brand': VehicleModelIndexResponseBrand;
3294
- /**
3295
- *
3296
- * @type {string}
3297
- * @memberof VehicleModelIndexResponse
3298
- */
3299
- 'name': string;
3300
- /**
3301
- *
3302
- * @type {string}
3303
- * @memberof VehicleModelIndexResponse
3304
- */
3305
- 'id': string;
3306
- }
3307
- /**
3308
- *
3309
- * @export
3310
- * @interface VehicleModelIndexResponseBrand
3311
- */
3312
- export interface VehicleModelIndexResponseBrand {
3313
- /**
3314
- *
3315
- * @type {string}
3316
- * @memberof VehicleModelIndexResponseBrand
3317
- */
3318
- 'name': string;
3319
- /**
3320
- *
3321
- * @type {string}
3322
- * @memberof VehicleModelIndexResponseBrand
3323
- */
3324
- 'id': string;
3325
- }
3326
3156
  /**
3327
3157
  *
3328
3158
  * @export
@@ -4780,15 +4610,12 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4780
4610
  },
4781
4611
  /**
4782
4612
  *
4783
- * @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
4784
4613
  * @param {string} [xAccountId]
4785
4614
  * @param {*} [options] Override http request option.
4786
4615
  * @throws {RequiredError}
4787
4616
  */
4788
- registeredVehiclesCreate: async (createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4789
- // verify required parameter 'createRegisteredVehicleBody' is not null or undefined
4790
- assertParamExists('registeredVehiclesCreate', 'createRegisteredVehicleBody', createRegisteredVehicleBody)
4791
- const localVarPath = `/registered-vehicles`;
4617
+ registeredVehiclesGetVehiclesByAccount: async (xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4618
+ const localVarPath = `/registered-vehicles/account`;
4792
4619
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4793
4620
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4794
4621
  let baseOptions;
@@ -4796,7 +4623,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4796
4623
  baseOptions = configuration.baseOptions;
4797
4624
  }
4798
4625
 
4799
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4626
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4800
4627
  const localVarHeaderParameter = {} as any;
4801
4628
  const localVarQueryParameter = {} as any;
4802
4629
 
@@ -4806,12 +4633,9 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4806
4633
 
4807
4634
 
4808
4635
 
4809
- localVarHeaderParameter['Content-Type'] = 'application/json';
4810
-
4811
4636
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4812
4637
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4813
4638
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4814
- localVarRequestOptions.data = serializeDataIfNeeded(createRegisteredVehicleBody, localVarRequestOptions, configuration)
4815
4639
 
4816
4640
  return {
4817
4641
  url: toPathString(localVarUrlObj),
@@ -4820,15 +4644,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4820
4644
  },
4821
4645
  /**
4822
4646
  *
4823
- * @param {string} id
4647
+ * @param {string} plateNo
4648
+ * @param {string} [xAccountId]
4824
4649
  * @param {*} [options] Override http request option.
4825
4650
  * @throws {RequiredError}
4826
4651
  */
4827
- registeredVehiclesDelete: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4828
- // verify required parameter 'id' is not null or undefined
4829
- assertParamExists('registeredVehiclesDelete', 'id', id)
4830
- const localVarPath = `/registered-vehicles/{id}`
4831
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4652
+ registeredVehiclesIsLicensePlateRegistered: async (plateNo: string, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4653
+ // verify required parameter 'plateNo' is not null or undefined
4654
+ assertParamExists('registeredVehiclesIsLicensePlateRegistered', 'plateNo', plateNo)
4655
+ const localVarPath = `/registered-vehicles/is-license-plate-registered`;
4832
4656
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4833
4657
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4834
4658
  let baseOptions;
@@ -4836,42 +4660,17 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4836
4660
  baseOptions = configuration.baseOptions;
4837
4661
  }
4838
4662
 
4839
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
4663
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4840
4664
  const localVarHeaderParameter = {} as any;
4841
4665
  const localVarQueryParameter = {} as any;
4842
4666
 
4843
-
4844
-
4845
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4846
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4847
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4848
-
4849
- return {
4850
- url: toPathString(localVarUrlObj),
4851
- options: localVarRequestOptions,
4852
- };
4853
- },
4854
- /**
4855
- *
4856
- * @param {string} id
4857
- * @param {*} [options] Override http request option.
4858
- * @throws {RequiredError}
4859
- */
4860
- registeredVehiclesGet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4861
- // verify required parameter 'id' is not null or undefined
4862
- assertParamExists('registeredVehiclesGet', 'id', id)
4863
- const localVarPath = `/registered-vehicles/{id}`
4864
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4865
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4866
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4867
- let baseOptions;
4868
- if (configuration) {
4869
- baseOptions = configuration.baseOptions;
4667
+ if (plateNo !== undefined) {
4668
+ localVarQueryParameter['plate_no'] = plateNo;
4870
4669
  }
4871
4670
 
4872
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4873
- const localVarHeaderParameter = {} as any;
4874
- const localVarQueryParameter = {} as any;
4671
+ if (xAccountId != null) {
4672
+ localVarHeaderParameter['x-account-id'] = String(xAccountId);
4673
+ }
4875
4674
 
4876
4675
 
4877
4676
 
@@ -4886,12 +4685,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4886
4685
  },
4887
4686
  /**
4888
4687
  *
4688
+ * @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
4889
4689
  * @param {string} [xAccountId]
4890
4690
  * @param {*} [options] Override http request option.
4891
4691
  * @throws {RequiredError}
4892
4692
  */
4893
- registeredVehiclesGetByAccountId: async (xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4894
- const localVarPath = `/registered-vehicles/account`;
4693
+ registeredVehiclesRegister: async (createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4694
+ // verify required parameter 'createRegisteredVehicleBody' is not null or undefined
4695
+ assertParamExists('registeredVehiclesRegister', 'createRegisteredVehicleBody', createRegisteredVehicleBody)
4696
+ const localVarPath = `/registered-vehicles/register`;
4895
4697
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4896
4698
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4897
4699
  let baseOptions;
@@ -4899,7 +4701,7 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4899
4701
  baseOptions = configuration.baseOptions;
4900
4702
  }
4901
4703
 
4902
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4704
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4903
4705
  const localVarHeaderParameter = {} as any;
4904
4706
  const localVarQueryParameter = {} as any;
4905
4707
 
@@ -4909,38 +4711,12 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4909
4711
 
4910
4712
 
4911
4713
 
4912
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4913
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4914
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4915
-
4916
- return {
4917
- url: toPathString(localVarUrlObj),
4918
- options: localVarRequestOptions,
4919
- };
4920
- },
4921
- /**
4922
- *
4923
- * @param {*} [options] Override http request option.
4924
- * @throws {RequiredError}
4925
- */
4926
- registeredVehiclesIndex: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4927
- const localVarPath = `/registered-vehicles`;
4928
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4929
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4930
- let baseOptions;
4931
- if (configuration) {
4932
- baseOptions = configuration.baseOptions;
4933
- }
4934
-
4935
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4936
- const localVarHeaderParameter = {} as any;
4937
- const localVarQueryParameter = {} as any;
4938
-
4714
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4939
4715
 
4940
-
4941
4716
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4942
4717
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4943
4718
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4719
+ localVarRequestOptions.data = serializeDataIfNeeded(createRegisteredVehicleBody, localVarRequestOptions, configuration)
4944
4720
 
4945
4721
  return {
4946
4722
  url: toPathString(localVarUrlObj),
@@ -4949,18 +4725,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4949
4725
  },
4950
4726
  /**
4951
4727
  *
4952
- * @param {string} id
4953
4728
  * @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
4729
+ * @param {string} [xAccountId]
4954
4730
  * @param {*} [options] Override http request option.
4955
4731
  * @throws {RequiredError}
4956
4732
  */
4957
- registeredVehiclesUpdate: async (id: string, updateRegisteredVehicleBody: UpdateRegisteredVehicleBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4958
- // verify required parameter 'id' is not null or undefined
4959
- assertParamExists('registeredVehiclesUpdate', 'id', id)
4733
+ registeredVehiclesUpdate: async (updateRegisteredVehicleBody: UpdateRegisteredVehicleBody, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4960
4734
  // verify required parameter 'updateRegisteredVehicleBody' is not null or undefined
4961
4735
  assertParamExists('registeredVehiclesUpdate', 'updateRegisteredVehicleBody', updateRegisteredVehicleBody)
4962
- const localVarPath = `/registered-vehicles/{id}`
4963
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4736
+ const localVarPath = `/registered-vehicles/update/{id}`;
4964
4737
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4965
4738
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4966
4739
  let baseOptions;
@@ -4972,6 +4745,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4972
4745
  const localVarHeaderParameter = {} as any;
4973
4746
  const localVarQueryParameter = {} as any;
4974
4747
 
4748
+ if (xAccountId != null) {
4749
+ localVarHeaderParameter['x-account-id'] = String(xAccountId);
4750
+ }
4751
+
4975
4752
 
4976
4753
 
4977
4754
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -5184,152 +4961,6 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
5184
4961
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5185
4962
  localVarRequestOptions.data = serializeDataIfNeeded(updateVehicleBrandBody, localVarRequestOptions, configuration)
5186
4963
 
5187
- return {
5188
- url: toPathString(localVarUrlObj),
5189
- options: localVarRequestOptions,
5190
- };
5191
- },
5192
- /**
5193
- *
5194
- * @param {CreateVehicleModelBody} createVehicleModelBody
5195
- * @param {*} [options] Override http request option.
5196
- * @throws {RequiredError}
5197
- */
5198
- vehicleModelsCreate: async (createVehicleModelBody: CreateVehicleModelBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5199
- // verify required parameter 'createVehicleModelBody' is not null or undefined
5200
- assertParamExists('vehicleModelsCreate', 'createVehicleModelBody', createVehicleModelBody)
5201
- const localVarPath = `/vehicle-models`;
5202
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5203
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5204
- let baseOptions;
5205
- if (configuration) {
5206
- baseOptions = configuration.baseOptions;
5207
- }
5208
-
5209
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5210
- const localVarHeaderParameter = {} as any;
5211
- const localVarQueryParameter = {} as any;
5212
-
5213
-
5214
-
5215
- localVarHeaderParameter['Content-Type'] = 'application/json';
5216
-
5217
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5218
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5219
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5220
- localVarRequestOptions.data = serializeDataIfNeeded(createVehicleModelBody, localVarRequestOptions, configuration)
5221
-
5222
- return {
5223
- url: toPathString(localVarUrlObj),
5224
- options: localVarRequestOptions,
5225
- };
5226
- },
5227
- /**
5228
- *
5229
- * @param {string} id
5230
- * @param {*} [options] Override http request option.
5231
- * @throws {RequiredError}
5232
- */
5233
- vehicleModelsDelete: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5234
- // verify required parameter 'id' is not null or undefined
5235
- assertParamExists('vehicleModelsDelete', 'id', id)
5236
- const localVarPath = `/vehicle-models/{id}`
5237
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
5238
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5239
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5240
- let baseOptions;
5241
- if (configuration) {
5242
- baseOptions = configuration.baseOptions;
5243
- }
5244
-
5245
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
5246
- const localVarHeaderParameter = {} as any;
5247
- const localVarQueryParameter = {} as any;
5248
-
5249
-
5250
-
5251
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5252
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5253
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5254
-
5255
- return {
5256
- url: toPathString(localVarUrlObj),
5257
- options: localVarRequestOptions,
5258
- };
5259
- },
5260
- /**
5261
- *
5262
- * @param {string} [name]
5263
- * @param {string} [brandId]
5264
- * @param {*} [options] Override http request option.
5265
- * @throws {RequiredError}
5266
- */
5267
- vehicleModelsIndex: async (name?: string, brandId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5268
- const localVarPath = `/vehicle-models`;
5269
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5270
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5271
- let baseOptions;
5272
- if (configuration) {
5273
- baseOptions = configuration.baseOptions;
5274
- }
5275
-
5276
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5277
- const localVarHeaderParameter = {} as any;
5278
- const localVarQueryParameter = {} as any;
5279
-
5280
- if (name !== undefined) {
5281
- localVarQueryParameter['name'] = name;
5282
- }
5283
-
5284
- if (brandId !== undefined) {
5285
- localVarQueryParameter['brand_id'] = brandId;
5286
- }
5287
-
5288
-
5289
-
5290
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5291
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5292
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5293
-
5294
- return {
5295
- url: toPathString(localVarUrlObj),
5296
- options: localVarRequestOptions,
5297
- };
5298
- },
5299
- /**
5300
- *
5301
- * @param {string} id
5302
- * @param {UpdateVehicleModelBody} updateVehicleModelBody
5303
- * @param {*} [options] Override http request option.
5304
- * @throws {RequiredError}
5305
- */
5306
- vehicleModelsUpdate: async (id: string, updateVehicleModelBody: UpdateVehicleModelBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5307
- // verify required parameter 'id' is not null or undefined
5308
- assertParamExists('vehicleModelsUpdate', 'id', id)
5309
- // verify required parameter 'updateVehicleModelBody' is not null or undefined
5310
- assertParamExists('vehicleModelsUpdate', 'updateVehicleModelBody', updateVehicleModelBody)
5311
- const localVarPath = `/vehicle-models/{id}`
5312
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
5313
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5314
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5315
- let baseOptions;
5316
- if (configuration) {
5317
- baseOptions = configuration.baseOptions;
5318
- }
5319
-
5320
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
5321
- const localVarHeaderParameter = {} as any;
5322
- const localVarQueryParameter = {} as any;
5323
-
5324
-
5325
-
5326
- localVarHeaderParameter['Content-Type'] = 'application/json';
5327
-
5328
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5329
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5330
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5331
- localVarRequestOptions.data = serializeDataIfNeeded(updateVehicleModelBody, localVarRequestOptions, configuration)
5332
-
5333
4964
  return {
5334
4965
  url: toPathString(localVarUrlObj),
5335
4966
  options: localVarRequestOptions,
@@ -5741,63 +5372,45 @@ export const DefaultApiFp = function(configuration?: Configuration) {
5741
5372
  },
5742
5373
  /**
5743
5374
  *
5744
- * @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
5745
5375
  * @param {string} [xAccountId]
5746
5376
  * @param {*} [options] Override http request option.
5747
5377
  * @throws {RequiredError}
5748
5378
  */
5749
- async registeredVehiclesCreate(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
5750
- const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesCreate(createRegisteredVehicleBody, xAccountId, options);
5751
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5752
- },
5753
- /**
5754
- *
5755
- * @param {string} id
5756
- * @param {*} [options] Override http request option.
5757
- * @throws {RequiredError}
5758
- */
5759
- async registeredVehiclesDelete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
5760
- const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesDelete(id, options);
5761
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5762
- },
5763
- /**
5764
- *
5765
- * @param {string} id
5766
- * @param {*} [options] Override http request option.
5767
- * @throws {RequiredError}
5768
- */
5769
- async registeredVehiclesGet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
5770
- const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesGet(id, options);
5379
+ async registeredVehiclesGetVehiclesByAccount(xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RegisteredVehicleIndexResponse>>> {
5380
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesGetVehiclesByAccount(xAccountId, options);
5771
5381
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5772
5382
  },
5773
5383
  /**
5774
5384
  *
5385
+ * @param {string} plateNo
5775
5386
  * @param {string} [xAccountId]
5776
5387
  * @param {*} [options] Override http request option.
5777
5388
  * @throws {RequiredError}
5778
5389
  */
5779
- async registeredVehiclesGetByAccountId(xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleIndexResponse>> {
5780
- const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesGetByAccountId(xAccountId, options);
5390
+ async registeredVehiclesIsLicensePlateRegistered(plateNo: string, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
5391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesIsLicensePlateRegistered(plateNo, xAccountId, options);
5781
5392
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5782
5393
  },
5783
5394
  /**
5784
5395
  *
5396
+ * @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
5397
+ * @param {string} [xAccountId]
5785
5398
  * @param {*} [options] Override http request option.
5786
5399
  * @throws {RequiredError}
5787
5400
  */
5788
- async registeredVehiclesIndex(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RegisteredVehicleIndexResponse>>> {
5789
- const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesIndex(options);
5401
+ async registeredVehiclesRegister(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
5402
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options);
5790
5403
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5791
5404
  },
5792
5405
  /**
5793
5406
  *
5794
- * @param {string} id
5795
5407
  * @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
5408
+ * @param {string} [xAccountId]
5796
5409
  * @param {*} [options] Override http request option.
5797
5410
  * @throws {RequiredError}
5798
5411
  */
5799
- async registeredVehiclesUpdate(id: string, updateRegisteredVehicleBody: UpdateRegisteredVehicleBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
5800
- const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesUpdate(id, updateRegisteredVehicleBody, options);
5412
+ async registeredVehiclesUpdate(updateRegisteredVehicleBody: UpdateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
5413
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesUpdate(updateRegisteredVehicleBody, xAccountId, options);
5801
5414
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5802
5415
  },
5803
5416
  /**
@@ -5860,48 +5473,6 @@ export const DefaultApiFp = function(configuration?: Configuration) {
5860
5473
  const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleBrandsUpdate(id, updateVehicleBrandBody, options);
5861
5474
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5862
5475
  },
5863
- /**
5864
- *
5865
- * @param {CreateVehicleModelBody} createVehicleModelBody
5866
- * @param {*} [options] Override http request option.
5867
- * @throws {RequiredError}
5868
- */
5869
- async vehicleModelsCreate(createVehicleModelBody: CreateVehicleModelBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateVehicleModelResponse>> {
5870
- const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleModelsCreate(createVehicleModelBody, options);
5871
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5872
- },
5873
- /**
5874
- *
5875
- * @param {string} id
5876
- * @param {*} [options] Override http request option.
5877
- * @throws {RequiredError}
5878
- */
5879
- async vehicleModelsDelete(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteVehicleModelResponse>> {
5880
- const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleModelsDelete(id, options);
5881
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5882
- },
5883
- /**
5884
- *
5885
- * @param {string} [name]
5886
- * @param {string} [brandId]
5887
- * @param {*} [options] Override http request option.
5888
- * @throws {RequiredError}
5889
- */
5890
- async vehicleModelsIndex(name?: string, brandId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VehicleModelIndexResponse>>> {
5891
- const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleModelsIndex(name, brandId, options);
5892
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5893
- },
5894
- /**
5895
- *
5896
- * @param {string} id
5897
- * @param {UpdateVehicleModelBody} updateVehicleModelBody
5898
- * @param {*} [options] Override http request option.
5899
- * @throws {RequiredError}
5900
- */
5901
- async vehicleModelsUpdate(id: string, updateVehicleModelBody: UpdateVehicleModelBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateVehicleModelResponse>> {
5902
- const localVarAxiosArgs = await localVarAxiosParamCreator.vehicleModelsUpdate(id, updateVehicleModelBody, options);
5903
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5904
- },
5905
5476
  }
5906
5477
  };
5907
5478
 
@@ -6274,58 +5845,42 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
6274
5845
  },
6275
5846
  /**
6276
5847
  *
6277
- * @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
6278
5848
  * @param {string} [xAccountId]
6279
5849
  * @param {*} [options] Override http request option.
6280
5850
  * @throws {RequiredError}
6281
5851
  */
6282
- registeredVehiclesCreate(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: any): AxiosPromise<RegisteredVehicleResponse> {
6283
- return localVarFp.registeredVehiclesCreate(createRegisteredVehicleBody, xAccountId, options).then((request) => request(axios, basePath));
6284
- },
6285
- /**
6286
- *
6287
- * @param {string} id
6288
- * @param {*} [options] Override http request option.
6289
- * @throws {RequiredError}
6290
- */
6291
- registeredVehiclesDelete(id: string, options?: any): AxiosPromise<RegisteredVehicleResponse> {
6292
- return localVarFp.registeredVehiclesDelete(id, options).then((request) => request(axios, basePath));
6293
- },
6294
- /**
6295
- *
6296
- * @param {string} id
6297
- * @param {*} [options] Override http request option.
6298
- * @throws {RequiredError}
6299
- */
6300
- registeredVehiclesGet(id: string, options?: any): AxiosPromise<RegisteredVehicleResponse> {
6301
- return localVarFp.registeredVehiclesGet(id, options).then((request) => request(axios, basePath));
5852
+ registeredVehiclesGetVehiclesByAccount(xAccountId?: string, options?: any): AxiosPromise<Array<RegisteredVehicleIndexResponse>> {
5853
+ return localVarFp.registeredVehiclesGetVehiclesByAccount(xAccountId, options).then((request) => request(axios, basePath));
6302
5854
  },
6303
5855
  /**
6304
5856
  *
5857
+ * @param {string} plateNo
6305
5858
  * @param {string} [xAccountId]
6306
5859
  * @param {*} [options] Override http request option.
6307
5860
  * @throws {RequiredError}
6308
5861
  */
6309
- registeredVehiclesGetByAccountId(xAccountId?: string, options?: any): AxiosPromise<RegisteredVehicleIndexResponse> {
6310
- return localVarFp.registeredVehiclesGetByAccountId(xAccountId, options).then((request) => request(axios, basePath));
5862
+ registeredVehiclesIsLicensePlateRegistered(plateNo: string, xAccountId?: string, options?: any): AxiosPromise<boolean> {
5863
+ return localVarFp.registeredVehiclesIsLicensePlateRegistered(plateNo, xAccountId, options).then((request) => request(axios, basePath));
6311
5864
  },
6312
5865
  /**
6313
5866
  *
5867
+ * @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
5868
+ * @param {string} [xAccountId]
6314
5869
  * @param {*} [options] Override http request option.
6315
5870
  * @throws {RequiredError}
6316
5871
  */
6317
- registeredVehiclesIndex(options?: any): AxiosPromise<Array<RegisteredVehicleIndexResponse>> {
6318
- return localVarFp.registeredVehiclesIndex(options).then((request) => request(axios, basePath));
5872
+ registeredVehiclesRegister(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: any): AxiosPromise<RegisteredVehicleResponse> {
5873
+ return localVarFp.registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options).then((request) => request(axios, basePath));
6319
5874
  },
6320
5875
  /**
6321
5876
  *
6322
- * @param {string} id
6323
5877
  * @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
5878
+ * @param {string} [xAccountId]
6324
5879
  * @param {*} [options] Override http request option.
6325
5880
  * @throws {RequiredError}
6326
5881
  */
6327
- registeredVehiclesUpdate(id: string, updateRegisteredVehicleBody: UpdateRegisteredVehicleBody, options?: any): AxiosPromise<RegisteredVehicleResponse> {
6328
- return localVarFp.registeredVehiclesUpdate(id, updateRegisteredVehicleBody, options).then((request) => request(axios, basePath));
5882
+ registeredVehiclesUpdate(updateRegisteredVehicleBody: UpdateRegisteredVehicleBody, xAccountId?: string, options?: any): AxiosPromise<RegisteredVehicleResponse> {
5883
+ return localVarFp.registeredVehiclesUpdate(updateRegisteredVehicleBody, xAccountId, options).then((request) => request(axios, basePath));
6329
5884
  },
6330
5885
  /**
6331
5886
  *
@@ -6381,44 +5936,6 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
6381
5936
  vehicleBrandsUpdate(id: string, updateVehicleBrandBody: UpdateVehicleBrandBody, options?: any): AxiosPromise<VehicleBrandResponse> {
6382
5937
  return localVarFp.vehicleBrandsUpdate(id, updateVehicleBrandBody, options).then((request) => request(axios, basePath));
6383
5938
  },
6384
- /**
6385
- *
6386
- * @param {CreateVehicleModelBody} createVehicleModelBody
6387
- * @param {*} [options] Override http request option.
6388
- * @throws {RequiredError}
6389
- */
6390
- vehicleModelsCreate(createVehicleModelBody: CreateVehicleModelBody, options?: any): AxiosPromise<CreateVehicleModelResponse> {
6391
- return localVarFp.vehicleModelsCreate(createVehicleModelBody, options).then((request) => request(axios, basePath));
6392
- },
6393
- /**
6394
- *
6395
- * @param {string} id
6396
- * @param {*} [options] Override http request option.
6397
- * @throws {RequiredError}
6398
- */
6399
- vehicleModelsDelete(id: string, options?: any): AxiosPromise<DeleteVehicleModelResponse> {
6400
- return localVarFp.vehicleModelsDelete(id, options).then((request) => request(axios, basePath));
6401
- },
6402
- /**
6403
- *
6404
- * @param {string} [name]
6405
- * @param {string} [brandId]
6406
- * @param {*} [options] Override http request option.
6407
- * @throws {RequiredError}
6408
- */
6409
- vehicleModelsIndex(name?: string, brandId?: string, options?: any): AxiosPromise<Array<VehicleModelIndexResponse>> {
6410
- return localVarFp.vehicleModelsIndex(name, brandId, options).then((request) => request(axios, basePath));
6411
- },
6412
- /**
6413
- *
6414
- * @param {string} id
6415
- * @param {UpdateVehicleModelBody} updateVehicleModelBody
6416
- * @param {*} [options] Override http request option.
6417
- * @throws {RequiredError}
6418
- */
6419
- vehicleModelsUpdate(id: string, updateVehicleModelBody: UpdateVehicleModelBody, options?: any): AxiosPromise<UpdateVehicleModelResponse> {
6420
- return localVarFp.vehicleModelsUpdate(id, updateVehicleModelBody, options).then((request) => request(axios, basePath));
6421
- },
6422
5939
  };
6423
5940
  };
6424
5941
 
@@ -6859,69 +6376,49 @@ export class DefaultApi extends BaseAPI {
6859
6376
 
6860
6377
  /**
6861
6378
  *
6862
- * @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
6863
6379
  * @param {string} [xAccountId]
6864
6380
  * @param {*} [options] Override http request option.
6865
6381
  * @throws {RequiredError}
6866
6382
  * @memberof DefaultApi
6867
6383
  */
6868
- public registeredVehiclesCreate(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig) {
6869
- return DefaultApiFp(this.configuration).registeredVehiclesCreate(createRegisteredVehicleBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
6870
- }
6871
-
6872
- /**
6873
- *
6874
- * @param {string} id
6875
- * @param {*} [options] Override http request option.
6876
- * @throws {RequiredError}
6877
- * @memberof DefaultApi
6878
- */
6879
- public registeredVehiclesDelete(id: string, options?: AxiosRequestConfig) {
6880
- return DefaultApiFp(this.configuration).registeredVehiclesDelete(id, options).then((request) => request(this.axios, this.basePath));
6881
- }
6882
-
6883
- /**
6884
- *
6885
- * @param {string} id
6886
- * @param {*} [options] Override http request option.
6887
- * @throws {RequiredError}
6888
- * @memberof DefaultApi
6889
- */
6890
- public registeredVehiclesGet(id: string, options?: AxiosRequestConfig) {
6891
- return DefaultApiFp(this.configuration).registeredVehiclesGet(id, options).then((request) => request(this.axios, this.basePath));
6384
+ public registeredVehiclesGetVehiclesByAccount(xAccountId?: string, options?: AxiosRequestConfig) {
6385
+ return DefaultApiFp(this.configuration).registeredVehiclesGetVehiclesByAccount(xAccountId, options).then((request) => request(this.axios, this.basePath));
6892
6386
  }
6893
6387
 
6894
6388
  /**
6895
6389
  *
6390
+ * @param {string} plateNo
6896
6391
  * @param {string} [xAccountId]
6897
6392
  * @param {*} [options] Override http request option.
6898
6393
  * @throws {RequiredError}
6899
6394
  * @memberof DefaultApi
6900
6395
  */
6901
- public registeredVehiclesGetByAccountId(xAccountId?: string, options?: AxiosRequestConfig) {
6902
- return DefaultApiFp(this.configuration).registeredVehiclesGetByAccountId(xAccountId, options).then((request) => request(this.axios, this.basePath));
6396
+ public registeredVehiclesIsLicensePlateRegistered(plateNo: string, xAccountId?: string, options?: AxiosRequestConfig) {
6397
+ return DefaultApiFp(this.configuration).registeredVehiclesIsLicensePlateRegistered(plateNo, xAccountId, options).then((request) => request(this.axios, this.basePath));
6903
6398
  }
6904
6399
 
6905
6400
  /**
6906
6401
  *
6402
+ * @param {CreateRegisteredVehicleBody} createRegisteredVehicleBody
6403
+ * @param {string} [xAccountId]
6907
6404
  * @param {*} [options] Override http request option.
6908
6405
  * @throws {RequiredError}
6909
6406
  * @memberof DefaultApi
6910
6407
  */
6911
- public registeredVehiclesIndex(options?: AxiosRequestConfig) {
6912
- return DefaultApiFp(this.configuration).registeredVehiclesIndex(options).then((request) => request(this.axios, this.basePath));
6408
+ public registeredVehiclesRegister(createRegisteredVehicleBody: CreateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig) {
6409
+ return DefaultApiFp(this.configuration).registeredVehiclesRegister(createRegisteredVehicleBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
6913
6410
  }
6914
6411
 
6915
6412
  /**
6916
6413
  *
6917
- * @param {string} id
6918
6414
  * @param {UpdateRegisteredVehicleBody} updateRegisteredVehicleBody
6415
+ * @param {string} [xAccountId]
6919
6416
  * @param {*} [options] Override http request option.
6920
6417
  * @throws {RequiredError}
6921
6418
  * @memberof DefaultApi
6922
6419
  */
6923
- public registeredVehiclesUpdate(id: string, updateRegisteredVehicleBody: UpdateRegisteredVehicleBody, options?: AxiosRequestConfig) {
6924
- return DefaultApiFp(this.configuration).registeredVehiclesUpdate(id, updateRegisteredVehicleBody, options).then((request) => request(this.axios, this.basePath));
6420
+ public registeredVehiclesUpdate(updateRegisteredVehicleBody: UpdateRegisteredVehicleBody, xAccountId?: string, options?: AxiosRequestConfig) {
6421
+ return DefaultApiFp(this.configuration).registeredVehiclesUpdate(updateRegisteredVehicleBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
6925
6422
  }
6926
6423
 
6927
6424
  /**
@@ -6989,52 +6486,6 @@ export class DefaultApi extends BaseAPI {
6989
6486
  public vehicleBrandsUpdate(id: string, updateVehicleBrandBody: UpdateVehicleBrandBody, options?: AxiosRequestConfig) {
6990
6487
  return DefaultApiFp(this.configuration).vehicleBrandsUpdate(id, updateVehicleBrandBody, options).then((request) => request(this.axios, this.basePath));
6991
6488
  }
6992
-
6993
- /**
6994
- *
6995
- * @param {CreateVehicleModelBody} createVehicleModelBody
6996
- * @param {*} [options] Override http request option.
6997
- * @throws {RequiredError}
6998
- * @memberof DefaultApi
6999
- */
7000
- public vehicleModelsCreate(createVehicleModelBody: CreateVehicleModelBody, options?: AxiosRequestConfig) {
7001
- return DefaultApiFp(this.configuration).vehicleModelsCreate(createVehicleModelBody, options).then((request) => request(this.axios, this.basePath));
7002
- }
7003
-
7004
- /**
7005
- *
7006
- * @param {string} id
7007
- * @param {*} [options] Override http request option.
7008
- * @throws {RequiredError}
7009
- * @memberof DefaultApi
7010
- */
7011
- public vehicleModelsDelete(id: string, options?: AxiosRequestConfig) {
7012
- return DefaultApiFp(this.configuration).vehicleModelsDelete(id, options).then((request) => request(this.axios, this.basePath));
7013
- }
7014
-
7015
- /**
7016
- *
7017
- * @param {string} [name]
7018
- * @param {string} [brandId]
7019
- * @param {*} [options] Override http request option.
7020
- * @throws {RequiredError}
7021
- * @memberof DefaultApi
7022
- */
7023
- public vehicleModelsIndex(name?: string, brandId?: string, options?: AxiosRequestConfig) {
7024
- return DefaultApiFp(this.configuration).vehicleModelsIndex(name, brandId, options).then((request) => request(this.axios, this.basePath));
7025
- }
7026
-
7027
- /**
7028
- *
7029
- * @param {string} id
7030
- * @param {UpdateVehicleModelBody} updateVehicleModelBody
7031
- * @param {*} [options] Override http request option.
7032
- * @throws {RequiredError}
7033
- * @memberof DefaultApi
7034
- */
7035
- public vehicleModelsUpdate(id: string, updateVehicleModelBody: UpdateVehicleModelBody, options?: AxiosRequestConfig) {
7036
- return DefaultApiFp(this.configuration).vehicleModelsUpdate(id, updateVehicleModelBody, options).then((request) => request(this.axios, this.basePath));
7037
- }
7038
6489
  }
7039
6490
 
7040
6491