@emilgroup/public-api-sdk-node 1.26.0 → 1.27.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.
Files changed (172) hide show
  1. package/README.md +2 -2
  2. package/dist/api/address-completions-validations-api.d.ts +215 -0
  3. package/dist/api/address-completions-validations-api.js +373 -0
  4. package/dist/api/default-api.d.ts +66 -0
  5. package/dist/api/default-api.js +200 -0
  6. package/dist/api/documents-api.d.ts +539 -0
  7. package/dist/api/documents-api.js +855 -0
  8. package/dist/api/leads-api.d.ts +441 -0
  9. package/dist/api/leads-api.js +791 -0
  10. package/dist/api/notifications-api.d.ts +211 -0
  11. package/dist/api/notifications-api.js +414 -0
  12. package/dist/api/payments-setup-api.d.ts +228 -0
  13. package/dist/api/payments-setup-api.js +426 -0
  14. package/dist/api/products-api.d.ts +563 -0
  15. package/dist/api/products-api.js +926 -0
  16. package/dist/api.d.ts +18 -0
  17. package/dist/api.js +36 -0
  18. package/dist/base.d.ts +78 -0
  19. package/dist/base.js +394 -0
  20. package/dist/common.d.ts +92 -0
  21. package/dist/common.js +277 -0
  22. package/dist/configuration.d.ts +90 -0
  23. package/dist/configuration.js +44 -0
  24. package/dist/index.d.ts +15 -0
  25. package/dist/index.js +36 -0
  26. package/dist/models/address-completion-item-class.d.ts +49 -0
  27. package/dist/models/address-completion-item-class.js +15 -0
  28. package/dist/models/address-completion-response-class.d.ts +25 -0
  29. package/dist/models/address-completion-response-class.js +15 -0
  30. package/dist/models/address-field-score-class.d.ts +48 -0
  31. package/dist/models/address-field-score-class.js +15 -0
  32. package/dist/models/calculate-product-fields-request-dto.d.ts +31 -0
  33. package/dist/models/calculate-product-fields-request-dto.js +15 -0
  34. package/dist/models/calculate-product-fields-response-class.d.ts +25 -0
  35. package/dist/models/calculate-product-fields-response-class.js +15 -0
  36. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  37. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  38. package/dist/models/complete-email-verification-dto.d.ts +30 -0
  39. package/dist/models/complete-email-verification-dto.js +15 -0
  40. package/dist/models/complete-email-verification-response-class.d.ts +24 -0
  41. package/dist/models/complete-email-verification-response-class.js +15 -0
  42. package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
  43. package/dist/models/complete-payment-setup-request-dto.js +15 -0
  44. package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
  45. package/dist/models/complete-payment-setup-response-class.js +15 -0
  46. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  47. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  48. package/dist/models/create-account-request-dto.d.ts +132 -0
  49. package/dist/models/create-account-request-dto.js +31 -0
  50. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  51. package/dist/models/create-bank-account-request-dto.js +15 -0
  52. package/dist/models/create-custom-application-request-dto.d.ts +35 -0
  53. package/dist/models/create-custom-application-request-dto.js +20 -0
  54. package/dist/models/create-custom-application-response-class.d.ts +24 -0
  55. package/dist/models/create-custom-application-response-class.js +15 -0
  56. package/dist/models/create-document-request-dto.d.ts +132 -0
  57. package/dist/models/create-document-request-dto.js +43 -0
  58. package/dist/models/create-estimated-invoice-request-dto.d.ts +55 -0
  59. package/dist/models/create-estimated-invoice-request-dto.js +20 -0
  60. package/dist/models/create-estimated-invoice-response-class.d.ts +38 -0
  61. package/dist/models/create-estimated-invoice-response-class.js +15 -0
  62. package/dist/models/create-lead-async-response-class.d.ts +24 -0
  63. package/dist/models/create-lead-async-response-class.js +15 -0
  64. package/dist/models/create-lead-request-dto.d.ts +108 -0
  65. package/dist/models/create-lead-request-dto.js +15 -0
  66. package/dist/models/create-lead-response-class.d.ts +25 -0
  67. package/dist/models/create-lead-response-class.js +15 -0
  68. package/dist/models/create-payment-method-request-dto.d.ts +36 -0
  69. package/dist/models/create-payment-method-request-dto.js +20 -0
  70. package/dist/models/create-presigned-post-request-dto.d.ts +128 -0
  71. package/dist/models/create-presigned-post-request-dto.js +52 -0
  72. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  73. package/dist/models/create-presigned-post-response-class.js +15 -0
  74. package/dist/models/document-class.d.ts +144 -0
  75. package/dist/models/document-class.js +49 -0
  76. package/dist/models/get-custom-css-response-class.d.ts +24 -0
  77. package/dist/models/get-custom-css-response-class.js +15 -0
  78. package/dist/models/get-lead-response-class.d.ts +25 -0
  79. package/dist/models/get-lead-response-class.js +15 -0
  80. package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
  81. package/dist/models/get-product-document-download-url-response-class.js +15 -0
  82. package/dist/models/get-public-psp-settings-response-class.d.ts +30 -0
  83. package/dist/models/get-public-psp-settings-response-class.js +15 -0
  84. package/dist/models/index.d.ts +72 -0
  85. package/dist/models/index.js +88 -0
  86. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
  87. package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
  88. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  89. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  90. package/dist/models/initiate-email-verification-dto.d.ts +30 -0
  91. package/dist/models/initiate-email-verification-dto.js +15 -0
  92. package/dist/models/initiate-email-verification-response-class.d.ts +24 -0
  93. package/dist/models/initiate-email-verification-response-class.js +15 -0
  94. package/dist/models/initiate-lead-response-class.d.ts +24 -0
  95. package/dist/models/initiate-lead-response-class.js +15 -0
  96. package/dist/models/initiate-payment-setup-request-dto.d.ts +32 -0
  97. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  98. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  99. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  100. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
  101. package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
  102. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  103. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  104. package/dist/models/inline-response200.d.ts +54 -0
  105. package/dist/models/inline-response200.js +15 -0
  106. package/dist/models/inline-response503.d.ts +54 -0
  107. package/dist/models/inline-response503.js +15 -0
  108. package/dist/models/insured-object-class.d.ts +85 -0
  109. package/dist/models/insured-object-class.js +15 -0
  110. package/dist/models/insured-object-type-class.d.ts +48 -0
  111. package/dist/models/insured-object-type-class.js +15 -0
  112. package/dist/models/invoice-class.d.ts +134 -0
  113. package/dist/models/invoice-class.js +15 -0
  114. package/dist/models/invoice-item-class.d.ts +120 -0
  115. package/dist/models/invoice-item-class.js +15 -0
  116. package/dist/models/invoice-status-class.d.ts +42 -0
  117. package/dist/models/invoice-status-class.js +15 -0
  118. package/dist/models/lead-account-class.d.ts +109 -0
  119. package/dist/models/lead-account-class.js +22 -0
  120. package/dist/models/lead-bank-account-class.d.ts +30 -0
  121. package/dist/models/lead-bank-account-class.js +15 -0
  122. package/dist/models/lead-class.d.ts +109 -0
  123. package/dist/models/lead-class.js +15 -0
  124. package/dist/models/lead-policy-class.d.ts +43 -0
  125. package/dist/models/lead-policy-class.js +15 -0
  126. package/dist/models/lead-policy-object-class.d.ts +36 -0
  127. package/dist/models/lead-policy-object-class.js +15 -0
  128. package/dist/models/list-documents-response-class.d.ts +31 -0
  129. package/dist/models/list-documents-response-class.js +15 -0
  130. package/dist/models/list-product-documents-response-class.d.ts +31 -0
  131. package/dist/models/list-product-documents-response-class.js +15 -0
  132. package/dist/models/list-products-response-class.d.ts +31 -0
  133. package/dist/models/list-products-response-class.js +15 -0
  134. package/dist/models/payment-method-class.d.ts +60 -0
  135. package/dist/models/payment-method-class.js +15 -0
  136. package/dist/models/policy-object-request-dto.d.ts +42 -0
  137. package/dist/models/policy-object-request-dto.js +15 -0
  138. package/dist/models/policy-object-response-class.d.ts +36 -0
  139. package/dist/models/policy-object-response-class.js +15 -0
  140. package/dist/models/premium-override-dto.d.ts +55 -0
  141. package/dist/models/premium-override-dto.js +27 -0
  142. package/dist/models/premium-override-request-dto.d.ts +25 -0
  143. package/dist/models/premium-override-request-dto.js +15 -0
  144. package/dist/models/product-class.d.ts +80 -0
  145. package/dist/models/product-class.js +15 -0
  146. package/dist/models/product-document-class.d.ts +111 -0
  147. package/dist/models/product-document-class.js +36 -0
  148. package/dist/models/product-factor-for-version-class.d.ts +60 -0
  149. package/dist/models/product-factor-for-version-class.js +15 -0
  150. package/dist/models/product-field-class.d.ts +132 -0
  151. package/dist/models/product-field-class.js +15 -0
  152. package/dist/models/product-version-class.d.ts +61 -0
  153. package/dist/models/product-version-class.js +22 -0
  154. package/dist/models/send-notification-request-dto.d.ts +36 -0
  155. package/dist/models/send-notification-request-dto.js +15 -0
  156. package/dist/models/send-notification-response-class.d.ts +24 -0
  157. package/dist/models/send-notification-response-class.js +15 -0
  158. package/dist/models/sepa-dto.d.ts +30 -0
  159. package/dist/models/sepa-dto.js +15 -0
  160. package/dist/models/structured-address-class.d.ts +54 -0
  161. package/dist/models/structured-address-class.js +15 -0
  162. package/dist/models/suggested-address-details-class.d.ts +90 -0
  163. package/dist/models/suggested-address-details-class.js +15 -0
  164. package/dist/models/update-lead-request-dto.d.ts +95 -0
  165. package/dist/models/update-lead-request-dto.js +15 -0
  166. package/dist/models/update-lead-response-class.d.ts +25 -0
  167. package/dist/models/update-lead-response-class.js +15 -0
  168. package/dist/models/uploaded-document-dto.d.ts +24 -0
  169. package/dist/models/uploaded-document-dto.js +15 -0
  170. package/dist/models/validate-address-response-class.d.ts +50 -0
  171. package/dist/models/validate-address-response-class.js +15 -0
  172. package/package.json +1 -1
@@ -0,0 +1,926 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * ProductsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ProductsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This will calculate product fields.
101
+ * @summary Create the product fields
102
+ * @param {string} productCode
103
+ * @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
104
+ * @param {string} [authorization] Bearer Token
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'productCode' is not null or undefined
116
+ (0, common_1.assertParamExists)('calculateProductFields', 'productCode', productCode);
117
+ // verify required parameter 'calculateProductFieldsRequestDto' is not null or undefined
118
+ (0, common_1.assertParamExists)('calculateProductFields', 'calculateProductFieldsRequestDto', calculateProductFieldsRequestDto);
119
+ localVarPath = "/publicapi/v1/products/{product_code}/calculate-product-fields"
120
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ }
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(calculateProductFieldsRequestDto, localVarRequestOptions, configuration);
144
+ return [2 /*return*/, {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ }];
148
+ }
149
+ });
150
+ });
151
+ },
152
+ /**
153
+ * This will create an invoice product.
154
+ * @summary Create the invoice product
155
+ * @param {string} productCode
156
+ * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
157
+ * @param {string} [authorization] Bearer Token
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, authorization, options) {
162
+ if (options === void 0) { options = {}; }
163
+ return __awaiter(_this, void 0, void 0, function () {
164
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
165
+ return __generator(this, function (_a) {
166
+ switch (_a.label) {
167
+ case 0:
168
+ // verify required parameter 'productCode' is not null or undefined
169
+ (0, common_1.assertParamExists)('createEstimatedInvoice', 'productCode', productCode);
170
+ // verify required parameter 'createEstimatedInvoiceRequestDto' is not null or undefined
171
+ (0, common_1.assertParamExists)('createEstimatedInvoice', 'createEstimatedInvoiceRequestDto', createEstimatedInvoiceRequestDto);
172
+ localVarPath = "/publicapi/v1/products/{product_code}/product-invoice"
173
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
174
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
175
+ if (configuration) {
176
+ baseOptions = configuration.baseOptions;
177
+ baseAccessToken = configuration.accessToken;
178
+ }
179
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
180
+ localVarHeaderParameter = {};
181
+ localVarQueryParameter = {};
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
185
+ case 1:
186
+ // authentication bearer required
187
+ // http bearer authentication required
188
+ _a.sent();
189
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
190
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
191
+ }
192
+ localVarHeaderParameter['Content-Type'] = 'application/json';
193
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
194
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
195
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
196
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEstimatedInvoiceRequestDto, localVarRequestOptions, configuration);
197
+ return [2 /*return*/, {
198
+ url: (0, common_1.toPathString)(localVarUrlObj),
199
+ options: localVarRequestOptions,
200
+ }];
201
+ }
202
+ });
203
+ });
204
+ },
205
+ /**
206
+ * This will create a custom application for a specific provider.
207
+ * @summary Create the custom application
208
+ * @param {string} productCode
209
+ * @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
210
+ * @param {string} [authorization] Bearer Token
211
+ * @param {*} [options] Override http request option.
212
+ * @throws {RequiredError}
213
+ */
214
+ customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
215
+ if (options === void 0) { options = {}; }
216
+ return __awaiter(_this, void 0, void 0, function () {
217
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
218
+ return __generator(this, function (_a) {
219
+ switch (_a.label) {
220
+ case 0:
221
+ // verify required parameter 'productCode' is not null or undefined
222
+ (0, common_1.assertParamExists)('customApplication', 'productCode', productCode);
223
+ // verify required parameter 'createCustomApplicationRequestDto' is not null or undefined
224
+ (0, common_1.assertParamExists)('customApplication', 'createCustomApplicationRequestDto', createCustomApplicationRequestDto);
225
+ localVarPath = "/publicapi/v1/products/{product_code}/custom-application"
226
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
227
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
228
+ if (configuration) {
229
+ baseOptions = configuration.baseOptions;
230
+ baseAccessToken = configuration.accessToken;
231
+ }
232
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
233
+ localVarHeaderParameter = {};
234
+ localVarQueryParameter = {};
235
+ // authentication bearer required
236
+ // http bearer authentication required
237
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
238
+ case 1:
239
+ // authentication bearer required
240
+ // http bearer authentication required
241
+ _a.sent();
242
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
243
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
244
+ }
245
+ localVarHeaderParameter['Content-Type'] = 'application/json';
246
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
247
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
248
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
249
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomApplicationRequestDto, localVarRequestOptions, configuration);
250
+ return [2 /*return*/, {
251
+ url: (0, common_1.toPathString)(localVarUrlObj),
252
+ options: localVarRequestOptions,
253
+ }];
254
+ }
255
+ });
256
+ });
257
+ },
258
+ /**
259
+ * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
260
+ * @summary List insured object types
261
+ * @param {string} [authorization] Bearer Token
262
+ * @param {*} [options] Override http request option.
263
+ * @throws {RequiredError}
264
+ */
265
+ getInsuredObjectTypes: function (authorization, options) {
266
+ if (options === void 0) { options = {}; }
267
+ return __awaiter(_this, void 0, void 0, function () {
268
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
269
+ return __generator(this, function (_a) {
270
+ switch (_a.label) {
271
+ case 0:
272
+ localVarPath = "/publicapi/v1/products/{product_code}/insured-object-types";
273
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
274
+ if (configuration) {
275
+ baseOptions = configuration.baseOptions;
276
+ baseAccessToken = configuration.accessToken;
277
+ }
278
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
279
+ localVarHeaderParameter = {};
280
+ localVarQueryParameter = {};
281
+ // authentication bearer required
282
+ // http bearer authentication required
283
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
284
+ case 1:
285
+ // authentication bearer required
286
+ // http bearer authentication required
287
+ _a.sent();
288
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
289
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
290
+ }
291
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
292
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
293
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
294
+ return [2 /*return*/, {
295
+ url: (0, common_1.toPathString)(localVarUrlObj),
296
+ options: localVarRequestOptions,
297
+ }];
298
+ }
299
+ });
300
+ });
301
+ },
302
+ /**
303
+ * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
304
+ * @summary List insured objects
305
+ * @param {string} productCode
306
+ * @param {string} [authorization] Bearer Token
307
+ * @param {*} [options] Override http request option.
308
+ * @throws {RequiredError}
309
+ */
310
+ getInsuredObjects: function (productCode, authorization, options) {
311
+ if (options === void 0) { options = {}; }
312
+ return __awaiter(_this, void 0, void 0, function () {
313
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
314
+ return __generator(this, function (_a) {
315
+ switch (_a.label) {
316
+ case 0:
317
+ // verify required parameter 'productCode' is not null or undefined
318
+ (0, common_1.assertParamExists)('getInsuredObjects', 'productCode', productCode);
319
+ localVarPath = "/publicapi/v1/products/{product_code}/insured-objects"
320
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
321
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
322
+ if (configuration) {
323
+ baseOptions = configuration.baseOptions;
324
+ baseAccessToken = configuration.accessToken;
325
+ }
326
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
327
+ localVarHeaderParameter = {};
328
+ localVarQueryParameter = {};
329
+ // authentication bearer required
330
+ // http bearer authentication required
331
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
332
+ case 1:
333
+ // authentication bearer required
334
+ // http bearer authentication required
335
+ _a.sent();
336
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
337
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
338
+ }
339
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
340
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
341
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
342
+ return [2 /*return*/, {
343
+ url: (0, common_1.toPathString)(localVarUrlObj),
344
+ options: localVarRequestOptions,
345
+ }];
346
+ }
347
+ });
348
+ });
349
+ },
350
+ /**
351
+ * This will generate a custom css for booking funnel, based on product.
352
+ * @summary Generate a custom CSS
353
+ * @param {string} productCode
354
+ * @param {string} [authorization] Bearer Token
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ */
358
+ getProductCustomCss: function (productCode, authorization, options) {
359
+ if (options === void 0) { options = {}; }
360
+ return __awaiter(_this, void 0, void 0, function () {
361
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
362
+ return __generator(this, function (_a) {
363
+ switch (_a.label) {
364
+ case 0:
365
+ // verify required parameter 'productCode' is not null or undefined
366
+ (0, common_1.assertParamExists)('getProductCustomCss', 'productCode', productCode);
367
+ localVarPath = "/publicapi/v1/products/{product_code}/custom-css"
368
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
369
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
370
+ if (configuration) {
371
+ baseOptions = configuration.baseOptions;
372
+ baseAccessToken = configuration.accessToken;
373
+ }
374
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
375
+ localVarHeaderParameter = {};
376
+ localVarQueryParameter = {};
377
+ // authentication bearer required
378
+ // http bearer authentication required
379
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
380
+ case 1:
381
+ // authentication bearer required
382
+ // http bearer authentication required
383
+ _a.sent();
384
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
385
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
386
+ }
387
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
388
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
389
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
390
+ return [2 /*return*/, {
391
+ url: (0, common_1.toPathString)(localVarUrlObj),
392
+ options: localVarRequestOptions,
393
+ }];
394
+ }
395
+ });
396
+ });
397
+ },
398
+ /**
399
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
400
+ * @summary List product factors
401
+ * @param {string} productCode
402
+ * @param {string} allValues
403
+ * @param {string} [authorization] Bearer Token
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ */
407
+ getProductFactors: function (productCode, allValues, authorization, options) {
408
+ if (options === void 0) { options = {}; }
409
+ return __awaiter(_this, void 0, void 0, function () {
410
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
411
+ return __generator(this, function (_a) {
412
+ switch (_a.label) {
413
+ case 0:
414
+ // verify required parameter 'productCode' is not null or undefined
415
+ (0, common_1.assertParamExists)('getProductFactors', 'productCode', productCode);
416
+ // verify required parameter 'allValues' is not null or undefined
417
+ (0, common_1.assertParamExists)('getProductFactors', 'allValues', allValues);
418
+ localVarPath = "/publicapi/v1/products/{product_code}/product-factors"
419
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
420
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
421
+ if (configuration) {
422
+ baseOptions = configuration.baseOptions;
423
+ baseAccessToken = configuration.accessToken;
424
+ }
425
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
426
+ localVarHeaderParameter = {};
427
+ localVarQueryParameter = {};
428
+ // authentication bearer required
429
+ // http bearer authentication required
430
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
431
+ case 1:
432
+ // authentication bearer required
433
+ // http bearer authentication required
434
+ _a.sent();
435
+ if (allValues !== undefined) {
436
+ localVarQueryParameter['all_values'] = allValues;
437
+ }
438
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
439
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
440
+ }
441
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
442
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
443
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
444
+ return [2 /*return*/, {
445
+ url: (0, common_1.toPathString)(localVarUrlObj),
446
+ options: localVarRequestOptions,
447
+ }];
448
+ }
449
+ });
450
+ });
451
+ },
452
+ /**
453
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
454
+ * @summary List products
455
+ * @param {string} [authorization] Bearer Token
456
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
457
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
458
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
459
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
460
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
461
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
466
+ if (options === void 0) { options = {}; }
467
+ return __awaiter(_this, void 0, void 0, function () {
468
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
469
+ return __generator(this, function (_a) {
470
+ switch (_a.label) {
471
+ case 0:
472
+ localVarPath = "/publicapi/v1/products";
473
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
474
+ if (configuration) {
475
+ baseOptions = configuration.baseOptions;
476
+ baseAccessToken = configuration.accessToken;
477
+ }
478
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
479
+ localVarHeaderParameter = {};
480
+ localVarQueryParameter = {};
481
+ // authentication bearer required
482
+ // http bearer authentication required
483
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
484
+ case 1:
485
+ // authentication bearer required
486
+ // http bearer authentication required
487
+ _a.sent();
488
+ if (pageSize !== undefined) {
489
+ localVarQueryParameter['pageSize'] = pageSize;
490
+ }
491
+ if (pageToken !== undefined) {
492
+ localVarQueryParameter['pageToken'] = pageToken;
493
+ }
494
+ if (filter !== undefined) {
495
+ localVarQueryParameter['filter'] = filter;
496
+ }
497
+ if (search !== undefined) {
498
+ localVarQueryParameter['search'] = search;
499
+ }
500
+ if (order !== undefined) {
501
+ localVarQueryParameter['order'] = order;
502
+ }
503
+ if (expand !== undefined) {
504
+ localVarQueryParameter['expand'] = expand;
505
+ }
506
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
507
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
508
+ }
509
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
510
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
511
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
512
+ return [2 /*return*/, {
513
+ url: (0, common_1.toPathString)(localVarUrlObj),
514
+ options: localVarRequestOptions,
515
+ }];
516
+ }
517
+ });
518
+ });
519
+ },
520
+ };
521
+ };
522
+ exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
523
+ /**
524
+ * ProductsApi - functional programming interface
525
+ * @export
526
+ */
527
+ var ProductsApiFp = function (configuration) {
528
+ var localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
529
+ return {
530
+ /**
531
+ * This will calculate product fields.
532
+ * @summary Create the product fields
533
+ * @param {string} productCode
534
+ * @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
535
+ * @param {string} [authorization] Bearer Token
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ */
539
+ calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
540
+ return __awaiter(this, void 0, void 0, function () {
541
+ var localVarAxiosArgs;
542
+ return __generator(this, function (_a) {
543
+ switch (_a.label) {
544
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.calculateProductFields(productCode, calculateProductFieldsRequestDto, authorization, options)];
545
+ case 1:
546
+ localVarAxiosArgs = _a.sent();
547
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
548
+ }
549
+ });
550
+ });
551
+ },
552
+ /**
553
+ * This will create an invoice product.
554
+ * @summary Create the invoice product
555
+ * @param {string} productCode
556
+ * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
557
+ * @param {string} [authorization] Bearer Token
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ */
561
+ createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, authorization, options) {
562
+ return __awaiter(this, void 0, void 0, function () {
563
+ var localVarAxiosArgs;
564
+ return __generator(this, function (_a) {
565
+ switch (_a.label) {
566
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createEstimatedInvoice(productCode, createEstimatedInvoiceRequestDto, authorization, options)];
567
+ case 1:
568
+ localVarAxiosArgs = _a.sent();
569
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
570
+ }
571
+ });
572
+ });
573
+ },
574
+ /**
575
+ * This will create a custom application for a specific provider.
576
+ * @summary Create the custom application
577
+ * @param {string} productCode
578
+ * @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
579
+ * @param {string} [authorization] Bearer Token
580
+ * @param {*} [options] Override http request option.
581
+ * @throws {RequiredError}
582
+ */
583
+ customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
584
+ return __awaiter(this, void 0, void 0, function () {
585
+ var localVarAxiosArgs;
586
+ return __generator(this, function (_a) {
587
+ switch (_a.label) {
588
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.customApplication(productCode, createCustomApplicationRequestDto, authorization, options)];
589
+ case 1:
590
+ localVarAxiosArgs = _a.sent();
591
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
592
+ }
593
+ });
594
+ });
595
+ },
596
+ /**
597
+ * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
598
+ * @summary List insured object types
599
+ * @param {string} [authorization] Bearer Token
600
+ * @param {*} [options] Override http request option.
601
+ * @throws {RequiredError}
602
+ */
603
+ getInsuredObjectTypes: function (authorization, options) {
604
+ return __awaiter(this, void 0, void 0, function () {
605
+ var localVarAxiosArgs;
606
+ return __generator(this, function (_a) {
607
+ switch (_a.label) {
608
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjectTypes(authorization, options)];
609
+ case 1:
610
+ localVarAxiosArgs = _a.sent();
611
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
612
+ }
613
+ });
614
+ });
615
+ },
616
+ /**
617
+ * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
618
+ * @summary List insured objects
619
+ * @param {string} productCode
620
+ * @param {string} [authorization] Bearer Token
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ */
624
+ getInsuredObjects: function (productCode, authorization, options) {
625
+ return __awaiter(this, void 0, void 0, function () {
626
+ var localVarAxiosArgs;
627
+ return __generator(this, function (_a) {
628
+ switch (_a.label) {
629
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options)];
630
+ case 1:
631
+ localVarAxiosArgs = _a.sent();
632
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
633
+ }
634
+ });
635
+ });
636
+ },
637
+ /**
638
+ * This will generate a custom css for booking funnel, based on product.
639
+ * @summary Generate a custom CSS
640
+ * @param {string} productCode
641
+ * @param {string} [authorization] Bearer Token
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
645
+ getProductCustomCss: function (productCode, authorization, options) {
646
+ return __awaiter(this, void 0, void 0, function () {
647
+ var localVarAxiosArgs;
648
+ return __generator(this, function (_a) {
649
+ switch (_a.label) {
650
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options)];
651
+ case 1:
652
+ localVarAxiosArgs = _a.sent();
653
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
654
+ }
655
+ });
656
+ });
657
+ },
658
+ /**
659
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
660
+ * @summary List product factors
661
+ * @param {string} productCode
662
+ * @param {string} allValues
663
+ * @param {string} [authorization] Bearer Token
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ */
667
+ getProductFactors: function (productCode, allValues, authorization, options) {
668
+ return __awaiter(this, void 0, void 0, function () {
669
+ var localVarAxiosArgs;
670
+ return __generator(this, function (_a) {
671
+ switch (_a.label) {
672
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options)];
673
+ case 1:
674
+ localVarAxiosArgs = _a.sent();
675
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
676
+ }
677
+ });
678
+ });
679
+ },
680
+ /**
681
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
682
+ * @summary List products
683
+ * @param {string} [authorization] Bearer Token
684
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
685
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
686
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
687
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
688
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
689
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ */
693
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
694
+ return __awaiter(this, void 0, void 0, function () {
695
+ var localVarAxiosArgs;
696
+ return __generator(this, function (_a) {
697
+ switch (_a.label) {
698
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
699
+ case 1:
700
+ localVarAxiosArgs = _a.sent();
701
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
702
+ }
703
+ });
704
+ });
705
+ },
706
+ };
707
+ };
708
+ exports.ProductsApiFp = ProductsApiFp;
709
+ /**
710
+ * ProductsApi - factory interface
711
+ * @export
712
+ */
713
+ var ProductsApiFactory = function (configuration, basePath, axios) {
714
+ var localVarFp = (0, exports.ProductsApiFp)(configuration);
715
+ return {
716
+ /**
717
+ * This will calculate product fields.
718
+ * @summary Create the product fields
719
+ * @param {string} productCode
720
+ * @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
721
+ * @param {string} [authorization] Bearer Token
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ */
725
+ calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
726
+ return localVarFp.calculateProductFields(productCode, calculateProductFieldsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
727
+ },
728
+ /**
729
+ * This will create an invoice product.
730
+ * @summary Create the invoice product
731
+ * @param {string} productCode
732
+ * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
733
+ * @param {string} [authorization] Bearer Token
734
+ * @param {*} [options] Override http request option.
735
+ * @throws {RequiredError}
736
+ */
737
+ createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, authorization, options) {
738
+ return localVarFp.createEstimatedInvoice(productCode, createEstimatedInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
739
+ },
740
+ /**
741
+ * This will create a custom application for a specific provider.
742
+ * @summary Create the custom application
743
+ * @param {string} productCode
744
+ * @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
745
+ * @param {string} [authorization] Bearer Token
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
750
+ return localVarFp.customApplication(productCode, createCustomApplicationRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
751
+ },
752
+ /**
753
+ * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
754
+ * @summary List insured object types
755
+ * @param {string} [authorization] Bearer Token
756
+ * @param {*} [options] Override http request option.
757
+ * @throws {RequiredError}
758
+ */
759
+ getInsuredObjectTypes: function (authorization, options) {
760
+ return localVarFp.getInsuredObjectTypes(authorization, options).then(function (request) { return request(axios, basePath); });
761
+ },
762
+ /**
763
+ * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
764
+ * @summary List insured objects
765
+ * @param {string} productCode
766
+ * @param {string} [authorization] Bearer Token
767
+ * @param {*} [options] Override http request option.
768
+ * @throws {RequiredError}
769
+ */
770
+ getInsuredObjects: function (productCode, authorization, options) {
771
+ return localVarFp.getInsuredObjects(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
772
+ },
773
+ /**
774
+ * This will generate a custom css for booking funnel, based on product.
775
+ * @summary Generate a custom CSS
776
+ * @param {string} productCode
777
+ * @param {string} [authorization] Bearer Token
778
+ * @param {*} [options] Override http request option.
779
+ * @throws {RequiredError}
780
+ */
781
+ getProductCustomCss: function (productCode, authorization, options) {
782
+ return localVarFp.getProductCustomCss(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
783
+ },
784
+ /**
785
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
786
+ * @summary List product factors
787
+ * @param {string} productCode
788
+ * @param {string} allValues
789
+ * @param {string} [authorization] Bearer Token
790
+ * @param {*} [options] Override http request option.
791
+ * @throws {RequiredError}
792
+ */
793
+ getProductFactors: function (productCode, allValues, authorization, options) {
794
+ return localVarFp.getProductFactors(productCode, allValues, authorization, options).then(function (request) { return request(axios, basePath); });
795
+ },
796
+ /**
797
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
798
+ * @summary List products
799
+ * @param {string} [authorization] Bearer Token
800
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
801
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
802
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
803
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
804
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
805
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
806
+ * @param {*} [options] Override http request option.
807
+ * @throws {RequiredError}
808
+ */
809
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
810
+ return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
811
+ },
812
+ };
813
+ };
814
+ exports.ProductsApiFactory = ProductsApiFactory;
815
+ /**
816
+ * ProductsApi - object-oriented interface
817
+ * @export
818
+ * @class ProductsApi
819
+ * @extends {BaseAPI}
820
+ */
821
+ var ProductsApi = /** @class */ (function (_super) {
822
+ __extends(ProductsApi, _super);
823
+ function ProductsApi() {
824
+ return _super !== null && _super.apply(this, arguments) || this;
825
+ }
826
+ /**
827
+ * This will calculate product fields.
828
+ * @summary Create the product fields
829
+ * @param {ProductsApiCalculateProductFieldsRequest} requestParameters Request parameters.
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ * @memberof ProductsApi
833
+ */
834
+ ProductsApi.prototype.calculateProductFields = function (requestParameters, options) {
835
+ var _this = this;
836
+ return (0, exports.ProductsApiFp)(this.configuration).calculateProductFields(requestParameters.productCode, requestParameters.calculateProductFieldsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
837
+ };
838
+ /**
839
+ * This will create an invoice product.
840
+ * @summary Create the invoice product
841
+ * @param {ProductsApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
842
+ * @param {*} [options] Override http request option.
843
+ * @throws {RequiredError}
844
+ * @memberof ProductsApi
845
+ */
846
+ ProductsApi.prototype.createEstimatedInvoice = function (requestParameters, options) {
847
+ var _this = this;
848
+ return (0, exports.ProductsApiFp)(this.configuration).createEstimatedInvoice(requestParameters.productCode, requestParameters.createEstimatedInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
849
+ };
850
+ /**
851
+ * This will create a custom application for a specific provider.
852
+ * @summary Create the custom application
853
+ * @param {ProductsApiCustomApplicationRequest} requestParameters Request parameters.
854
+ * @param {*} [options] Override http request option.
855
+ * @throws {RequiredError}
856
+ * @memberof ProductsApi
857
+ */
858
+ ProductsApi.prototype.customApplication = function (requestParameters, options) {
859
+ var _this = this;
860
+ return (0, exports.ProductsApiFp)(this.configuration).customApplication(requestParameters.productCode, requestParameters.createCustomApplicationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
861
+ };
862
+ /**
863
+ * Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
864
+ * @summary List insured object types
865
+ * @param {ProductsApiGetInsuredObjectTypesRequest} requestParameters Request parameters.
866
+ * @param {*} [options] Override http request option.
867
+ * @throws {RequiredError}
868
+ * @memberof ProductsApi
869
+ */
870
+ ProductsApi.prototype.getInsuredObjectTypes = function (requestParameters, options) {
871
+ var _this = this;
872
+ if (requestParameters === void 0) { requestParameters = {}; }
873
+ return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjectTypes(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
874
+ };
875
+ /**
876
+ * Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
877
+ * @summary List insured objects
878
+ * @param {ProductsApiGetInsuredObjectsRequest} requestParameters Request parameters.
879
+ * @param {*} [options] Override http request option.
880
+ * @throws {RequiredError}
881
+ * @memberof ProductsApi
882
+ */
883
+ ProductsApi.prototype.getInsuredObjects = function (requestParameters, options) {
884
+ var _this = this;
885
+ return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
886
+ };
887
+ /**
888
+ * This will generate a custom css for booking funnel, based on product.
889
+ * @summary Generate a custom CSS
890
+ * @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
891
+ * @param {*} [options] Override http request option.
892
+ * @throws {RequiredError}
893
+ * @memberof ProductsApi
894
+ */
895
+ ProductsApi.prototype.getProductCustomCss = function (requestParameters, options) {
896
+ var _this = this;
897
+ return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
898
+ };
899
+ /**
900
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
901
+ * @summary List product factors
902
+ * @param {ProductsApiGetProductFactorsRequest} requestParameters Request parameters.
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ * @memberof ProductsApi
906
+ */
907
+ ProductsApi.prototype.getProductFactors = function (requestParameters, options) {
908
+ var _this = this;
909
+ return (0, exports.ProductsApiFp)(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
910
+ };
911
+ /**
912
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
913
+ * @summary List products
914
+ * @param {ProductsApiListProductsRequest} requestParameters Request parameters.
915
+ * @param {*} [options] Override http request option.
916
+ * @throws {RequiredError}
917
+ * @memberof ProductsApi
918
+ */
919
+ ProductsApi.prototype.listProducts = function (requestParameters, options) {
920
+ var _this = this;
921
+ if (requestParameters === void 0) { requestParameters = {}; }
922
+ return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
923
+ };
924
+ return ProductsApi;
925
+ }(base_1.BaseAPI));
926
+ exports.ProductsApi = ProductsApi;