@infisale-client/api-client 1.2.108 → 1.2.110

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.js CHANGED
@@ -2691,6 +2691,34 @@ const OrderApiAxiosParamCreator = function (configuration) {
2691
2691
  options: localVarRequestOptions,
2692
2692
  };
2693
2693
  },
2694
+ /**
2695
+ *
2696
+ * @param {string} orderId
2697
+ * @param {*} [options] Override http request option.
2698
+ * @throws {RequiredError}
2699
+ */
2700
+ getOrderInvoice: async (orderId, options = {}) => {
2701
+ // verify required parameter 'orderId' is not null or undefined
2702
+ (0, common_1.assertParamExists)('getOrderInvoice', 'orderId', orderId);
2703
+ const localVarPath = `/api/orders/{orderId}/invoice`
2704
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
2705
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2706
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2707
+ let baseOptions;
2708
+ if (configuration) {
2709
+ baseOptions = configuration.baseOptions;
2710
+ }
2711
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2712
+ const localVarHeaderParameter = {};
2713
+ const localVarQueryParameter = {};
2714
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2715
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2716
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2717
+ return {
2718
+ url: (0, common_1.toPathString)(localVarUrlObj),
2719
+ options: localVarRequestOptions,
2720
+ };
2721
+ },
2694
2722
  /**
2695
2723
  *
2696
2724
  * @param {string} id
@@ -2909,6 +2937,18 @@ const OrderApiFp = function (configuration) {
2909
2937
  const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrderById']?.[localVarOperationServerIndex]?.url;
2910
2938
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2911
2939
  },
2940
+ /**
2941
+ *
2942
+ * @param {string} orderId
2943
+ * @param {*} [options] Override http request option.
2944
+ * @throws {RequiredError}
2945
+ */
2946
+ async getOrderInvoice(orderId, options) {
2947
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderInvoice(orderId, options);
2948
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2949
+ const localVarOperationServerBasePath = base_1.operationServerMap['OrderApi.getOrderInvoice']?.[localVarOperationServerIndex]?.url;
2950
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2951
+ },
2912
2952
  /**
2913
2953
  *
2914
2954
  * @param {string} id
@@ -3012,6 +3052,15 @@ const OrderApiFactory = function (configuration, basePath, axios) {
3012
3052
  getOrderById(requestParameters, options) {
3013
3053
  return localVarFp.getOrderById(requestParameters.id, options).then((request) => request(axios, basePath));
3014
3054
  },
3055
+ /**
3056
+ *
3057
+ * @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
3058
+ * @param {*} [options] Override http request option.
3059
+ * @throws {RequiredError}
3060
+ */
3061
+ getOrderInvoice(requestParameters, options) {
3062
+ return localVarFp.getOrderInvoice(requestParameters.orderId, options).then((request) => request(axios, basePath));
3063
+ },
3015
3064
  /**
3016
3065
  *
3017
3066
  * @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
@@ -3099,6 +3148,16 @@ class OrderApi extends base_1.BaseAPI {
3099
3148
  getOrderById(requestParameters, options) {
3100
3149
  return (0, exports.OrderApiFp)(this.configuration).getOrderById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3101
3150
  }
3151
+ /**
3152
+ *
3153
+ * @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
3154
+ * @param {*} [options] Override http request option.
3155
+ * @throws {RequiredError}
3156
+ * @memberof OrderApi
3157
+ */
3158
+ getOrderInvoice(requestParameters, options) {
3159
+ return (0, exports.OrderApiFp)(this.configuration).getOrderInvoice(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
3160
+ }
3102
3161
  /**
3103
3162
  *
3104
3163
  * @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
package/dist/api/api.mjs CHANGED
@@ -2656,6 +2656,34 @@ export const OrderApiAxiosParamCreator = function (configuration) {
2656
2656
  options: localVarRequestOptions,
2657
2657
  };
2658
2658
  },
2659
+ /**
2660
+ *
2661
+ * @param {string} orderId
2662
+ * @param {*} [options] Override http request option.
2663
+ * @throws {RequiredError}
2664
+ */
2665
+ getOrderInvoice: async (orderId, options = {}) => {
2666
+ // verify required parameter 'orderId' is not null or undefined
2667
+ assertParamExists('getOrderInvoice', 'orderId', orderId);
2668
+ const localVarPath = `/api/orders/{orderId}/invoice`
2669
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
2670
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2671
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2672
+ let baseOptions;
2673
+ if (configuration) {
2674
+ baseOptions = configuration.baseOptions;
2675
+ }
2676
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2677
+ const localVarHeaderParameter = {};
2678
+ const localVarQueryParameter = {};
2679
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2680
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2681
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2682
+ return {
2683
+ url: toPathString(localVarUrlObj),
2684
+ options: localVarRequestOptions,
2685
+ };
2686
+ },
2659
2687
  /**
2660
2688
  *
2661
2689
  * @param {string} id
@@ -2873,6 +2901,18 @@ export const OrderApiFp = function (configuration) {
2873
2901
  const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrderById']?.[localVarOperationServerIndex]?.url;
2874
2902
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2875
2903
  },
2904
+ /**
2905
+ *
2906
+ * @param {string} orderId
2907
+ * @param {*} [options] Override http request option.
2908
+ * @throws {RequiredError}
2909
+ */
2910
+ async getOrderInvoice(orderId, options) {
2911
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrderInvoice(orderId, options);
2912
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2913
+ const localVarOperationServerBasePath = operationServerMap['OrderApi.getOrderInvoice']?.[localVarOperationServerIndex]?.url;
2914
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2915
+ },
2876
2916
  /**
2877
2917
  *
2878
2918
  * @param {string} id
@@ -2975,6 +3015,15 @@ export const OrderApiFactory = function (configuration, basePath, axios) {
2975
3015
  getOrderById(requestParameters, options) {
2976
3016
  return localVarFp.getOrderById(requestParameters.id, options).then((request) => request(axios, basePath));
2977
3017
  },
3018
+ /**
3019
+ *
3020
+ * @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
3021
+ * @param {*} [options] Override http request option.
3022
+ * @throws {RequiredError}
3023
+ */
3024
+ getOrderInvoice(requestParameters, options) {
3025
+ return localVarFp.getOrderInvoice(requestParameters.orderId, options).then((request) => request(axios, basePath));
3026
+ },
2978
3027
  /**
2979
3028
  *
2980
3029
  * @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
@@ -3061,6 +3110,16 @@ export class OrderApi extends BaseAPI {
3061
3110
  getOrderById(requestParameters, options) {
3062
3111
  return OrderApiFp(this.configuration).getOrderById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
3063
3112
  }
3113
+ /**
3114
+ *
3115
+ * @param {OrderApiGetOrderInvoiceRequest} requestParameters Request parameters.
3116
+ * @param {*} [options] Override http request option.
3117
+ * @throws {RequiredError}
3118
+ * @memberof OrderApi
3119
+ */
3120
+ getOrderInvoice(requestParameters, options) {
3121
+ return OrderApiFp(this.configuration).getOrderInvoice(requestParameters.orderId, options).then((request) => request(this.axios, this.basePath));
3122
+ }
3064
3123
  /**
3065
3124
  *
3066
3125
  * @param {OrderApiGetOrderProductReviewRequest} requestParameters Request parameters.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.108",
3
+ "version": "1.2.110",
4
4
  "description": "api-client-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": "1284a6ca4e26b558c40d27266b8ef96b73563d66"
41
41
  }