@infisale-client/api 1.2.108 → 1.2.109

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/dist/api/api.d.ts CHANGED
@@ -2057,12 +2057,6 @@ export interface ICompany {
2057
2057
  * @memberof ICompany
2058
2058
  */
2059
2059
  'domains': Array<string>;
2060
- /**
2061
- *
2062
- * @type {string}
2063
- * @memberof ICompany
2064
- */
2065
- 'dnsZoneId'?: string;
2066
2060
  /**
2067
2061
  *
2068
2062
  * @type {string}
@@ -2384,12 +2378,6 @@ export interface ICompanyAdminResponse {
2384
2378
  * @memberof ICompanyAdminResponse
2385
2379
  */
2386
2380
  'domains': Array<string>;
2387
- /**
2388
- *
2389
- * @type {string}
2390
- * @memberof ICompanyAdminResponse
2391
- */
2392
- 'dnsZoneId'?: string;
2393
2381
  /**
2394
2382
  *
2395
2383
  * @type {string}
@@ -3090,12 +3078,6 @@ export interface ICompanyPatchRequest {
3090
3078
  * @memberof ICompanyPatchRequest
3091
3079
  */
3092
3080
  'paymentGateways'?: Array<ICompanyPatchRequestPaymentGatewaysInner>;
3093
- /**
3094
- *
3095
- * @type {string}
3096
- * @memberof ICompanyPatchRequest
3097
- */
3098
- 'dnsZoneId'?: string;
3099
3081
  /**
3100
3082
  *
3101
3083
  * @type {string}
@@ -3435,12 +3417,6 @@ export interface ICompanyResponse {
3435
3417
  * @memberof ICompanyResponse
3436
3418
  */
3437
3419
  'domains': Array<string>;
3438
- /**
3439
- *
3440
- * @type {string}
3441
- * @memberof ICompanyResponse
3442
- */
3443
- 'dnsZoneId'?: string;
3444
3420
  /**
3445
3421
  *
3446
3422
  * @type {string}
@@ -5833,6 +5809,12 @@ export interface IOrderResponse {
5833
5809
  * @memberof IOrderResponse
5834
5810
  */
5835
5811
  'paymentStatus': OrderPaymentStatusEnum;
5812
+ /**
5813
+ *
5814
+ * @type {boolean}
5815
+ * @memberof IOrderResponse
5816
+ */
5817
+ 'invoiceAdded': boolean;
5836
5818
  }
5837
5819
  /**
5838
5820
  *
@@ -10077,12 +10059,6 @@ export interface PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys {
10077
10059
  * @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
10078
10060
  */
10079
10061
  'domains': Array<string>;
10080
- /**
10081
- *
10082
- * @type {string}
10083
- * @memberof PickICompanyExcludeKeyofICompanyKeyofICompanyResponseOmitKeys
10084
- */
10085
- 'dnsZoneId'?: string;
10086
10062
  /**
10087
10063
  *
10088
10064
  * @type {string}
@@ -10657,6 +10633,12 @@ export interface PickIOrderExcludeKeyofIOrderHtmlOrIframe {
10657
10633
  * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
10658
10634
  */
10659
10635
  'paymentStatus': OrderPaymentStatusEnum;
10636
+ /**
10637
+ *
10638
+ * @type {boolean}
10639
+ * @memberof PickIOrderExcludeKeyofIOrderHtmlOrIframe
10640
+ */
10641
+ 'invoiceAdded': boolean;
10660
10642
  }
10661
10643
  /**
10662
10644
  *
@@ -18275,6 +18257,13 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
18275
18257
  * @throws {RequiredError}
18276
18258
  */
18277
18259
  getOrderById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18260
+ /**
18261
+ *
18262
+ * @param {string} orderId
18263
+ * @param {*} [options] Override http request option.
18264
+ * @throws {RequiredError}
18265
+ */
18266
+ getOrderInvoice: (orderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18278
18267
  /**
18279
18268
  *
18280
18269
  * @param {string} id
@@ -18342,6 +18331,14 @@ export declare const OrderApiAxiosParamCreator: (configuration?: Configuration)
18342
18331
  * @throws {RequiredError}
18343
18332
  */
18344
18333
  updateShipped: (orderId: string, shippedId: string, iOrderShippedUpdatePatchRequest: IOrderShippedUpdatePatchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18334
+ /**
18335
+ *
18336
+ * @param {string} orderId
18337
+ * @param {File} file
18338
+ * @param {*} [options] Override http request option.
18339
+ * @throws {RequiredError}
18340
+ */
18341
+ uploadOrderInvoice: (orderId: string, file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
18345
18342
  };
18346
18343
  /**
18347
18344
  * OrderApi - functional programming interface
@@ -18408,6 +18405,13 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
18408
18405
  * @throws {RequiredError}
18409
18406
  */
18410
18407
  getOrderById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IOrderResponse>>;
18408
+ /**
18409
+ *
18410
+ * @param {string} orderId
18411
+ * @param {*} [options] Override http request option.
18412
+ * @throws {RequiredError}
18413
+ */
18414
+ getOrderInvoice(orderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
18411
18415
  /**
18412
18416
  *
18413
18417
  * @param {string} id
@@ -18475,6 +18479,14 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
18475
18479
  * @throws {RequiredError}
18476
18480
  */
18477
18481
  updateShipped(orderId: string, shippedId: string, iOrderShippedUpdatePatchRequest: IOrderShippedUpdatePatchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
18482
+ /**
18483
+ *
18484
+ * @param {string} orderId
18485
+ * @param {File} file
18486
+ * @param {*} [options] Override http request option.
18487
+ * @throws {RequiredError}
18488
+ */
18489
+ uploadOrderInvoice(orderId: string, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
18478
18490
  };
18479
18491
  /**
18480
18492
  * OrderApi - factory interface
@@ -18530,6 +18542,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
18530
18542
  * @throws {RequiredError}
18531
18543
  */
18532
18544
  getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IOrderResponse>;
18545
+ /**
18546
+ *
18547
+ * @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
18548
+ * @param {*} [options] Override http request option.
18549
+ * @throws {RequiredError}
18550
+ */
18551
+ getOrderInvoice(requestParameters: OrderApiGetOrderInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;
18533
18552
  /**
18534
18553
  *
18535
18554
  * @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
@@ -18579,6 +18598,13 @@ export declare const OrderApiFactory: (configuration?: Configuration, basePath?:
18579
18598
  * @throws {RequiredError}
18580
18599
  */
18581
18600
  updateShipped(requestParameters: OrderApiUpdateShippedRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
18601
+ /**
18602
+ *
18603
+ * @param {OrderApiUploadOrderInvoiceRequest} requestParameters Request parameters.
18604
+ * @param {*} [options] Override http request option.
18605
+ * @throws {RequiredError}
18606
+ */
18607
+ uploadOrderInvoice(requestParameters: OrderApiUploadOrderInvoiceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
18582
18608
  };
18583
18609
  /**
18584
18610
  * Request parameters for createOrder operation in OrderApi.
@@ -18737,6 +18763,19 @@ export interface OrderApiGetOrderByIdRequest {
18737
18763
  */
18738
18764
  readonly id: string;
18739
18765
  }
18766
+ /**
18767
+ * Request parameters for getOrderInvoice operation in OrderApi.
18768
+ * @export
18769
+ * @interface OrderApiGetOrderInvoiceRequest
18770
+ */
18771
+ export interface OrderApiGetOrderInvoiceRequest {
18772
+ /**
18773
+ *
18774
+ * @type {string}
18775
+ * @memberof OrderApiGetOrderInvoice
18776
+ */
18777
+ readonly orderId: string;
18778
+ }
18740
18779
  /**
18741
18780
  * Request parameters for getOrderProductReview operation in OrderApi.
18742
18781
  * @export
@@ -18936,6 +18975,25 @@ export interface OrderApiUpdateShippedRequest {
18936
18975
  */
18937
18976
  readonly iOrderShippedUpdatePatchRequest: IOrderShippedUpdatePatchRequest;
18938
18977
  }
18978
+ /**
18979
+ * Request parameters for uploadOrderInvoice operation in OrderApi.
18980
+ * @export
18981
+ * @interface OrderApiUploadOrderInvoiceRequest
18982
+ */
18983
+ export interface OrderApiUploadOrderInvoiceRequest {
18984
+ /**
18985
+ *
18986
+ * @type {string}
18987
+ * @memberof OrderApiUploadOrderInvoice
18988
+ */
18989
+ readonly orderId: string;
18990
+ /**
18991
+ *
18992
+ * @type {File}
18993
+ * @memberof OrderApiUploadOrderInvoice
18994
+ */
18995
+ readonly file: File;
18996
+ }
18939
18997
  /**
18940
18998
  * OrderApi - object-oriented interface
18941
18999
  * @export
@@ -18999,6 +19057,14 @@ export declare class OrderApi extends BaseAPI {
18999
19057
  * @memberof OrderApi
19000
19058
  */
19001
19059
  getOrderById(requestParameters: OrderApiGetOrderByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IOrderResponse, any>>;
19060
+ /**
19061
+ *
19062
+ * @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
19063
+ * @param {*} [options] Override http request option.
19064
+ * @throws {RequiredError}
19065
+ * @memberof OrderApi
19066
+ */
19067
+ getOrderInvoice(requestParameters: OrderApiGetOrderInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
19002
19068
  /**
19003
19069
  *
19004
19070
  * @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
@@ -19055,6 +19121,14 @@ export declare class OrderApi extends BaseAPI {
19055
19121
  * @memberof OrderApi
19056
19122
  */
19057
19123
  updateShipped(requestParameters: OrderApiUpdateShippedRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
19124
+ /**
19125
+ *
19126
+ * @param {OrderApiUploadOrderInvoiceRequest} requestParameters Request parameters.
19127
+ * @param {*} [options] Override http request option.
19128
+ * @throws {RequiredError}
19129
+ * @memberof OrderApi
19130
+ */
19131
+ uploadOrderInvoice(requestParameters: OrderApiUploadOrderInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
19058
19132
  }
19059
19133
  /**
19060
19134
  * @export
package/dist/api/api.js CHANGED
@@ -8310,6 +8310,34 @@ const OrderApiAxiosParamCreator = function (configuration) {
8310
8310
  options: localVarRequestOptions,
8311
8311
  };
8312
8312
  },
8313
+ /**
8314
+ *
8315
+ * @param {string} orderId
8316
+ * @param {*} [options] Override http request option.
8317
+ * @throws {RequiredError}
8318
+ */
8319
+ getOrderInvoice: async (orderId, options = {}) => {
8320
+ // verify required parameter 'orderId' is not null or undefined
8321
+ (0, common_1.assertParamExists)('getOrderInvoice', 'orderId', orderId);
8322
+ const localVarPath = `/api/orders/{orderId}/invoice`
8323
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
8324
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8325
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8326
+ let baseOptions;
8327
+ if (configuration) {
8328
+ baseOptions = configuration.baseOptions;
8329
+ }
8330
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
8331
+ const localVarHeaderParameter = {};
8332
+ const localVarQueryParameter = {};
8333
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8334
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8335
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8336
+ return {
8337
+ url: (0, common_1.toPathString)(localVarUrlObj),
8338
+ options: localVarRequestOptions,
8339
+ };
8340
+ },
8313
8341
  /**
8314
8342
  *
8315
8343
  * @param {string} id
@@ -8589,6 +8617,43 @@ const OrderApiAxiosParamCreator = function (configuration) {
8589
8617
  options: localVarRequestOptions,
8590
8618
  };
8591
8619
  },
8620
+ /**
8621
+ *
8622
+ * @param {string} orderId
8623
+ * @param {File} file
8624
+ * @param {*} [options] Override http request option.
8625
+ * @throws {RequiredError}
8626
+ */
8627
+ uploadOrderInvoice: async (orderId, file, options = {}) => {
8628
+ // verify required parameter 'orderId' is not null or undefined
8629
+ (0, common_1.assertParamExists)('uploadOrderInvoice', 'orderId', orderId);
8630
+ // verify required parameter 'file' is not null or undefined
8631
+ (0, common_1.assertParamExists)('uploadOrderInvoice', 'file', file);
8632
+ const localVarPath = `/api/orders/{orderId}/invoice`
8633
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
8634
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8635
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8636
+ let baseOptions;
8637
+ if (configuration) {
8638
+ baseOptions = configuration.baseOptions;
8639
+ }
8640
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
8641
+ const localVarHeaderParameter = {};
8642
+ const localVarQueryParameter = {};
8643
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
8644
+ if (file !== undefined) {
8645
+ localVarFormParams.append('file', file);
8646
+ }
8647
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
8648
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8649
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8650
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8651
+ localVarRequestOptions.data = localVarFormParams;
8652
+ return {
8653
+ url: (0, common_1.toPathString)(localVarUrlObj),
8654
+ options: localVarRequestOptions,
8655
+ };
8656
+ },
8592
8657
  };
8593
8658
  };
8594
8659
  exports.OrderApiAxiosParamCreator = OrderApiAxiosParamCreator;
@@ -8694,6 +8759,18 @@ const OrderApiFp = function (configuration) {
8694
8759
  const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrderById']?.[localVarOperationServerIndex]?.url;
8695
8760
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8696
8761
  },
8762
+ /**
8763
+ *
8764
+ * @param {string} orderId
8765
+ * @param {*} [options] Override http request option.
8766
+ * @throws {RequiredError}
8767
+ */
8768
+ async getOrderInvoice(orderId, options) {
8769
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderInvoice(orderId, options);
8770
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8771
+ const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrderInvoice']?.[localVarOperationServerIndex]?.url;
8772
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8773
+ },
8697
8774
  /**
8698
8775
  *
8699
8776
  * @param {string} id
@@ -8796,6 +8873,19 @@ const OrderApiFp = function (configuration) {
8796
8873
  const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.updateShipped']?.[localVarOperationServerIndex]?.url;
8797
8874
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8798
8875
  },
8876
+ /**
8877
+ *
8878
+ * @param {string} orderId
8879
+ * @param {File} file
8880
+ * @param {*} [options] Override http request option.
8881
+ * @throws {RequiredError}
8882
+ */
8883
+ async uploadOrderInvoice(orderId, file, options) {
8884
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadOrderInvoice(orderId, file, options);
8885
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8886
+ const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.uploadOrderInvoice']?.[localVarOperationServerIndex]?.url;
8887
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8888
+ },
8799
8889
  };
8800
8890
  };
8801
8891
  exports.OrderApiFp = OrderApiFp;
@@ -8869,6 +8959,15 @@ const OrderApiFactory = function (configuration, basePath, axios) {
8869
8959
  getOrderById(requestParameters, options) {
8870
8960
  return localVarFp.getOrderById(requestParameters.id, options).then((request) => request(axios, basePath));
8871
8961
  },
8962
+ /**
8963
+ *
8964
+ * @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
8965
+ * @param {*} [options] Override http request option.
8966
+ * @throws {RequiredError}
8967
+ */
8968
+ getOrderInvoice(requestParameters, options) {
8969
+ return localVarFp.getOrderInvoice(requestParameters.orderId, options).then((request) => request(axios, basePath));
8970
+ },
8872
8971
  /**
8873
8972
  *
8874
8973
  * @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
@@ -8932,6 +9031,15 @@ const OrderApiFactory = function (configuration, basePath, axios) {
8932
9031
  updateShipped(requestParameters, options) {
8933
9032
  return localVarFp.updateShipped(requestParameters.orderId, requestParameters.shippedId, requestParameters.iOrderShippedUpdatePatchRequest, options).then((request) => request(axios, basePath));
8934
9033
  },
9034
+ /**
9035
+ *
9036
+ * @param {OrderApiUploadOrderInvoiceRequest} requestParameters Request parameters.
9037
+ * @param {*} [options] Override http request option.
9038
+ * @throws {RequiredError}
9039
+ */
9040
+ uploadOrderInvoice(requestParameters, options) {
9041
+ return localVarFp.uploadOrderInvoice(requestParameters.orderId, requestParameters.file, options).then((request) => request(axios, basePath));
9042
+ },
8935
9043
  };
8936
9044
  };
8937
9045
  exports.OrderApiFactory = OrderApiFactory;
@@ -9012,6 +9120,16 @@ class OrderApi extends base_1.BaseAPI {
9012
9120
  getOrderById(requestParameters, options) {
9013
9121
  return (0, exports.OrderApiFp)(this.configuration).getOrderById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
9014
9122
  }
9123
+ /**
9124
+ *
9125
+ * @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
9126
+ * @param {*} [options] Override http request option.
9127
+ * @throws {RequiredError}
9128
+ * @memberof OrderApi
9129
+ */
9130
+ getOrderInvoice(requestParameters, options) {
9131
+ return (0, exports.OrderApiFp)(this.configuration).getOrderInvoice(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
9132
+ }
9015
9133
  /**
9016
9134
  *
9017
9135
  * @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
@@ -9082,6 +9200,16 @@ class OrderApi extends base_1.BaseAPI {
9082
9200
  updateShipped(requestParameters, options) {
9083
9201
  return (0, exports.OrderApiFp)(this.configuration).updateShipped(requestParameters.orderId, requestParameters.shippedId, requestParameters.iOrderShippedUpdatePatchRequest, options).then((request) => request(this.axios, this.basePath));
9084
9202
  }
9203
+ /**
9204
+ *
9205
+ * @param {OrderApiUploadOrderInvoiceRequest} requestParameters Request parameters.
9206
+ * @param {*} [options] Override http request option.
9207
+ * @throws {RequiredError}
9208
+ * @memberof OrderApi
9209
+ */
9210
+ uploadOrderInvoice(requestParameters, options) {
9211
+ return (0, exports.OrderApiFp)(this.configuration).uploadOrderInvoice(requestParameters.orderId, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
9212
+ }
9085
9213
  }
9086
9214
  exports.OrderApi = OrderApi;
9087
9215
  /**
package/dist/api/api.mjs CHANGED
@@ -8254,6 +8254,34 @@ export const OrderApiAxiosParamCreator = function (configuration) {
8254
8254
  options: localVarRequestOptions,
8255
8255
  };
8256
8256
  },
8257
+ /**
8258
+ *
8259
+ * @param {string} orderId
8260
+ * @param {*} [options] Override http request option.
8261
+ * @throws {RequiredError}
8262
+ */
8263
+ getOrderInvoice: async (orderId, options = {}) => {
8264
+ // verify required parameter 'orderId' is not null or undefined
8265
+ assertParamExists('getOrderInvoice', 'orderId', orderId);
8266
+ const localVarPath = `/api/orders/{orderId}/invoice`
8267
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
8268
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8269
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8270
+ let baseOptions;
8271
+ if (configuration) {
8272
+ baseOptions = configuration.baseOptions;
8273
+ }
8274
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
8275
+ const localVarHeaderParameter = {};
8276
+ const localVarQueryParameter = {};
8277
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8278
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8279
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8280
+ return {
8281
+ url: toPathString(localVarUrlObj),
8282
+ options: localVarRequestOptions,
8283
+ };
8284
+ },
8257
8285
  /**
8258
8286
  *
8259
8287
  * @param {string} id
@@ -8533,6 +8561,43 @@ export const OrderApiAxiosParamCreator = function (configuration) {
8533
8561
  options: localVarRequestOptions,
8534
8562
  };
8535
8563
  },
8564
+ /**
8565
+ *
8566
+ * @param {string} orderId
8567
+ * @param {File} file
8568
+ * @param {*} [options] Override http request option.
8569
+ * @throws {RequiredError}
8570
+ */
8571
+ uploadOrderInvoice: async (orderId, file, options = {}) => {
8572
+ // verify required parameter 'orderId' is not null or undefined
8573
+ assertParamExists('uploadOrderInvoice', 'orderId', orderId);
8574
+ // verify required parameter 'file' is not null or undefined
8575
+ assertParamExists('uploadOrderInvoice', 'file', file);
8576
+ const localVarPath = `/api/orders/{orderId}/invoice`
8577
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
8578
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8579
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8580
+ let baseOptions;
8581
+ if (configuration) {
8582
+ baseOptions = configuration.baseOptions;
8583
+ }
8584
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
8585
+ const localVarHeaderParameter = {};
8586
+ const localVarQueryParameter = {};
8587
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
8588
+ if (file !== undefined) {
8589
+ localVarFormParams.append('file', file);
8590
+ }
8591
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
8592
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8593
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8594
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8595
+ localVarRequestOptions.data = localVarFormParams;
8596
+ return {
8597
+ url: toPathString(localVarUrlObj),
8598
+ options: localVarRequestOptions,
8599
+ };
8600
+ },
8536
8601
  };
8537
8602
  };
8538
8603
  /**
@@ -8637,6 +8702,18 @@ export const OrderApiFp = function (configuration) {
8637
8702
  const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrderById']?.[localVarOperationServerIndex]?.url;
8638
8703
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8639
8704
  },
8705
+ /**
8706
+ *
8707
+ * @param {string} orderId
8708
+ * @param {*} [options] Override http request option.
8709
+ * @throws {RequiredError}
8710
+ */
8711
+ async getOrderInvoice(orderId, options) {
8712
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderInvoice(orderId, options);
8713
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8714
+ const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrderInvoice']?.[localVarOperationServerIndex]?.url;
8715
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8716
+ },
8640
8717
  /**
8641
8718
  *
8642
8719
  * @param {string} id
@@ -8739,6 +8816,19 @@ export const OrderApiFp = function (configuration) {
8739
8816
  const localVarOperationServerBasePath = operationServerMap['OrderApi.updateShipped']?.[localVarOperationServerIndex]?.url;
8740
8817
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8741
8818
  },
8819
+ /**
8820
+ *
8821
+ * @param {string} orderId
8822
+ * @param {File} file
8823
+ * @param {*} [options] Override http request option.
8824
+ * @throws {RequiredError}
8825
+ */
8826
+ async uploadOrderInvoice(orderId, file, options) {
8827
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadOrderInvoice(orderId, file, options);
8828
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8829
+ const localVarOperationServerBasePath = operationServerMap['OrderApi.uploadOrderInvoice']?.[localVarOperationServerIndex]?.url;
8830
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8831
+ },
8742
8832
  };
8743
8833
  };
8744
8834
  /**
@@ -8811,6 +8901,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
8811
8901
  getOrderById(requestParameters, options) {
8812
8902
  return localVarFp.getOrderById(requestParameters.id, options).then((request) => request(axios, basePath));
8813
8903
  },
8904
+ /**
8905
+ *
8906
+ * @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
8907
+ * @param {*} [options] Override http request option.
8908
+ * @throws {RequiredError}
8909
+ */
8910
+ getOrderInvoice(requestParameters, options) {
8911
+ return localVarFp.getOrderInvoice(requestParameters.orderId, options).then((request) => request(axios, basePath));
8912
+ },
8814
8913
  /**
8815
8914
  *
8816
8915
  * @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
@@ -8874,6 +8973,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
8874
8973
  updateShipped(requestParameters, options) {
8875
8974
  return localVarFp.updateShipped(requestParameters.orderId, requestParameters.shippedId, requestParameters.iOrderShippedUpdatePatchRequest, options).then((request) => request(axios, basePath));
8876
8975
  },
8976
+ /**
8977
+ *
8978
+ * @param {OrderApiUploadOrderInvoiceRequest} requestParameters Request parameters.
8979
+ * @param {*} [options] Override http request option.
8980
+ * @throws {RequiredError}
8981
+ */
8982
+ uploadOrderInvoice(requestParameters, options) {
8983
+ return localVarFp.uploadOrderInvoice(requestParameters.orderId, requestParameters.file, options).then((request) => request(axios, basePath));
8984
+ },
8877
8985
  };
8878
8986
  };
8879
8987
  /**
@@ -8953,6 +9061,16 @@ export class OrderApi extends BaseAPI {
8953
9061
  getOrderById(requestParameters, options) {
8954
9062
  return OrderApiFp(this.configuration).getOrderById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
8955
9063
  }
9064
+ /**
9065
+ *
9066
+ * @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
9067
+ * @param {*} [options] Override http request option.
9068
+ * @throws {RequiredError}
9069
+ * @memberof OrderApi
9070
+ */
9071
+ getOrderInvoice(requestParameters, options) {
9072
+ return OrderApiFp(this.configuration).getOrderInvoice(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
9073
+ }
8956
9074
  /**
8957
9075
  *
8958
9076
  * @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
@@ -9023,6 +9141,16 @@ export class OrderApi extends BaseAPI {
9023
9141
  updateShipped(requestParameters, options) {
9024
9142
  return OrderApiFp(this.configuration).updateShipped(requestParameters.orderId, requestParameters.shippedId, requestParameters.iOrderShippedUpdatePatchRequest, options).then((request) => request(this.axios, this.basePath));
9025
9143
  }
9144
+ /**
9145
+ *
9146
+ * @param {OrderApiUploadOrderInvoiceRequest} requestParameters Request parameters.
9147
+ * @param {*} [options] Override http request option.
9148
+ * @throws {RequiredError}
9149
+ * @memberof OrderApi
9150
+ */
9151
+ uploadOrderInvoice(requestParameters, options) {
9152
+ return OrderApiFp(this.configuration).uploadOrderInvoice(requestParameters.orderId, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
9153
+ }
9026
9154
  }
9027
9155
  /**
9028
9156
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api",
3
- "version": "1.2.108",
3
+ "version": "1.2.109",
4
4
  "description": "api-sdk",
5
5
  "author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/infisale/infisale-client#readme",
@@ -37,5 +37,5 @@
37
37
  "bugs": {
38
38
  "url": "https://github.com/infisale/infisale-client/issues"
39
39
  },
40
- "gitHead": "e5a6d0c044c421d1902f1513504aca522af880af"
40
+ "gitHead": "e76a9d0c15c33cd39a1c81974553df8968a8e29a"
41
41
  }