@emilgroup/public-api-sdk 1.24.0 → 1.25.1

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 +369 -0
  4. package/dist/api/default-api.d.ts +66 -0
  5. package/dist/api/default-api.js +196 -0
  6. package/dist/api/documents-api.d.ts +539 -0
  7. package/dist/api/documents-api.js +851 -0
  8. package/dist/api/leads-api.d.ts +441 -0
  9. package/dist/api/leads-api.js +787 -0
  10. package/dist/api/notifications-api.d.ts +211 -0
  11. package/dist/api/notifications-api.js +410 -0
  12. package/dist/api/payments-setup-api.d.ts +228 -0
  13. package/dist/api/payments-setup-api.js +422 -0
  14. package/dist/api/products-api.d.ts +563 -0
  15. package/dist/api/products-api.js +922 -0
  16. package/dist/api.d.ts +18 -0
  17. package/dist/api.js +36 -0
  18. package/dist/base.d.ts +74 -0
  19. package/dist/base.js +298 -0
  20. package/dist/common.d.ts +91 -0
  21. package/dist/common.js +276 -0
  22. package/dist/configuration.d.ts +83 -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,922 @@
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
+ /**
89
+ * ProductsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var ProductsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This will calculate product fields.
97
+ * @summary Create the product fields
98
+ * @param {string} productCode
99
+ * @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
100
+ * @param {string} [authorization] Bearer Token
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
105
+ if (options === void 0) { options = {}; }
106
+ return __awaiter(_this, void 0, void 0, function () {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
110
+ case 0:
111
+ // verify required parameter 'productCode' is not null or undefined
112
+ (0, common_1.assertParamExists)('calculateProductFields', 'productCode', productCode);
113
+ // verify required parameter 'calculateProductFieldsRequestDto' is not null or undefined
114
+ (0, common_1.assertParamExists)('calculateProductFields', 'calculateProductFieldsRequestDto', calculateProductFieldsRequestDto);
115
+ localVarPath = "/publicapi/v1/products/{product_code}/calculate-product-fields"
116
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
117
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(calculateProductFieldsRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * This will create an invoice product.
150
+ * @summary Create the invoice product
151
+ * @param {string} productCode
152
+ * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
153
+ * @param {string} [authorization] Bearer Token
154
+ * @param {*} [options] Override http request option.
155
+ * @throws {RequiredError}
156
+ */
157
+ createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, authorization, options) {
158
+ if (options === void 0) { options = {}; }
159
+ return __awaiter(_this, void 0, void 0, function () {
160
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
+ return __generator(this, function (_a) {
162
+ switch (_a.label) {
163
+ case 0:
164
+ // verify required parameter 'productCode' is not null or undefined
165
+ (0, common_1.assertParamExists)('createEstimatedInvoice', 'productCode', productCode);
166
+ // verify required parameter 'createEstimatedInvoiceRequestDto' is not null or undefined
167
+ (0, common_1.assertParamExists)('createEstimatedInvoice', 'createEstimatedInvoiceRequestDto', createEstimatedInvoiceRequestDto);
168
+ localVarPath = "/publicapi/v1/products/{product_code}/product-invoice"
169
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
170
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ baseAccessToken = configuration.accessToken;
174
+ }
175
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
176
+ localVarHeaderParameter = {};
177
+ localVarQueryParameter = {};
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ case 1:
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ _a.sent();
185
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
186
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ }
188
+ localVarHeaderParameter['Content-Type'] = 'application/json';
189
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
190
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
192
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEstimatedInvoiceRequestDto, localVarRequestOptions, configuration);
193
+ return [2 /*return*/, {
194
+ url: (0, common_1.toPathString)(localVarUrlObj),
195
+ options: localVarRequestOptions,
196
+ }];
197
+ }
198
+ });
199
+ });
200
+ },
201
+ /**
202
+ * This will create a custom application for a specific provider.
203
+ * @summary Create the custom application
204
+ * @param {string} productCode
205
+ * @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
206
+ * @param {string} [authorization] Bearer Token
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
211
+ if (options === void 0) { options = {}; }
212
+ return __awaiter(_this, void 0, void 0, function () {
213
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ return __generator(this, function (_a) {
215
+ switch (_a.label) {
216
+ case 0:
217
+ // verify required parameter 'productCode' is not null or undefined
218
+ (0, common_1.assertParamExists)('customApplication', 'productCode', productCode);
219
+ // verify required parameter 'createCustomApplicationRequestDto' is not null or undefined
220
+ (0, common_1.assertParamExists)('customApplication', 'createCustomApplicationRequestDto', createCustomApplicationRequestDto);
221
+ localVarPath = "/publicapi/v1/products/{product_code}/custom-application"
222
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
223
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
224
+ if (configuration) {
225
+ baseOptions = configuration.baseOptions;
226
+ baseAccessToken = configuration.accessToken;
227
+ }
228
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
229
+ localVarHeaderParameter = {};
230
+ localVarQueryParameter = {};
231
+ // authentication bearer required
232
+ // http bearer authentication required
233
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
234
+ case 1:
235
+ // authentication bearer required
236
+ // http bearer authentication required
237
+ _a.sent();
238
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
239
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
240
+ }
241
+ localVarHeaderParameter['Content-Type'] = 'application/json';
242
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
243
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
244
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
245
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomApplicationRequestDto, localVarRequestOptions, configuration);
246
+ return [2 /*return*/, {
247
+ url: (0, common_1.toPathString)(localVarUrlObj),
248
+ options: localVarRequestOptions,
249
+ }];
250
+ }
251
+ });
252
+ });
253
+ },
254
+ /**
255
+ * 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.
256
+ * @summary List insured object types
257
+ * @param {string} [authorization] Bearer Token
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ */
261
+ getInsuredObjectTypes: function (authorization, options) {
262
+ if (options === void 0) { options = {}; }
263
+ return __awaiter(_this, void 0, void 0, function () {
264
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
265
+ return __generator(this, function (_a) {
266
+ switch (_a.label) {
267
+ case 0:
268
+ localVarPath = "/publicapi/v1/products/{product_code}/insured-object-types";
269
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
270
+ if (configuration) {
271
+ baseOptions = configuration.baseOptions;
272
+ baseAccessToken = configuration.accessToken;
273
+ }
274
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
275
+ localVarHeaderParameter = {};
276
+ localVarQueryParameter = {};
277
+ // authentication bearer required
278
+ // http bearer authentication required
279
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
280
+ case 1:
281
+ // authentication bearer required
282
+ // http bearer authentication required
283
+ _a.sent();
284
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
286
+ }
287
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
288
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
289
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
290
+ return [2 /*return*/, {
291
+ url: (0, common_1.toPathString)(localVarUrlObj),
292
+ options: localVarRequestOptions,
293
+ }];
294
+ }
295
+ });
296
+ });
297
+ },
298
+ /**
299
+ * 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.
300
+ * @summary List insured objects
301
+ * @param {string} productCode
302
+ * @param {string} [authorization] Bearer Token
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ getInsuredObjects: function (productCode, authorization, options) {
307
+ if (options === void 0) { options = {}; }
308
+ return __awaiter(_this, void 0, void 0, function () {
309
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
310
+ return __generator(this, function (_a) {
311
+ switch (_a.label) {
312
+ case 0:
313
+ // verify required parameter 'productCode' is not null or undefined
314
+ (0, common_1.assertParamExists)('getInsuredObjects', 'productCode', productCode);
315
+ localVarPath = "/publicapi/v1/products/{product_code}/insured-objects"
316
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
317
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
318
+ if (configuration) {
319
+ baseOptions = configuration.baseOptions;
320
+ baseAccessToken = configuration.accessToken;
321
+ }
322
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
323
+ localVarHeaderParameter = {};
324
+ localVarQueryParameter = {};
325
+ // authentication bearer required
326
+ // http bearer authentication required
327
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
328
+ case 1:
329
+ // authentication bearer required
330
+ // http bearer authentication required
331
+ _a.sent();
332
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
333
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
334
+ }
335
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
336
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
337
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
338
+ return [2 /*return*/, {
339
+ url: (0, common_1.toPathString)(localVarUrlObj),
340
+ options: localVarRequestOptions,
341
+ }];
342
+ }
343
+ });
344
+ });
345
+ },
346
+ /**
347
+ * This will generate a custom css for booking funnel, based on product.
348
+ * @summary Generate a custom CSS
349
+ * @param {string} productCode
350
+ * @param {string} [authorization] Bearer Token
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ */
354
+ getProductCustomCss: function (productCode, authorization, options) {
355
+ if (options === void 0) { options = {}; }
356
+ return __awaiter(_this, void 0, void 0, function () {
357
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
358
+ return __generator(this, function (_a) {
359
+ switch (_a.label) {
360
+ case 0:
361
+ // verify required parameter 'productCode' is not null or undefined
362
+ (0, common_1.assertParamExists)('getProductCustomCss', 'productCode', productCode);
363
+ localVarPath = "/publicapi/v1/products/{product_code}/custom-css"
364
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
365
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
366
+ if (configuration) {
367
+ baseOptions = configuration.baseOptions;
368
+ baseAccessToken = configuration.accessToken;
369
+ }
370
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
371
+ localVarHeaderParameter = {};
372
+ localVarQueryParameter = {};
373
+ // authentication bearer required
374
+ // http bearer authentication required
375
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
376
+ case 1:
377
+ // authentication bearer required
378
+ // http bearer authentication required
379
+ _a.sent();
380
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
381
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
382
+ }
383
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
384
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
385
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
386
+ return [2 /*return*/, {
387
+ url: (0, common_1.toPathString)(localVarUrlObj),
388
+ options: localVarRequestOptions,
389
+ }];
390
+ }
391
+ });
392
+ });
393
+ },
394
+ /**
395
+ * 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.
396
+ * @summary List product factors
397
+ * @param {string} productCode
398
+ * @param {string} allValues
399
+ * @param {string} [authorization] Bearer Token
400
+ * @param {*} [options] Override http request option.
401
+ * @throws {RequiredError}
402
+ */
403
+ getProductFactors: function (productCode, allValues, authorization, options) {
404
+ if (options === void 0) { options = {}; }
405
+ return __awaiter(_this, void 0, void 0, function () {
406
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
407
+ return __generator(this, function (_a) {
408
+ switch (_a.label) {
409
+ case 0:
410
+ // verify required parameter 'productCode' is not null or undefined
411
+ (0, common_1.assertParamExists)('getProductFactors', 'productCode', productCode);
412
+ // verify required parameter 'allValues' is not null or undefined
413
+ (0, common_1.assertParamExists)('getProductFactors', 'allValues', allValues);
414
+ localVarPath = "/publicapi/v1/products/{product_code}/product-factors"
415
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
416
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
417
+ if (configuration) {
418
+ baseOptions = configuration.baseOptions;
419
+ baseAccessToken = configuration.accessToken;
420
+ }
421
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
422
+ localVarHeaderParameter = {};
423
+ localVarQueryParameter = {};
424
+ // authentication bearer required
425
+ // http bearer authentication required
426
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
427
+ case 1:
428
+ // authentication bearer required
429
+ // http bearer authentication required
430
+ _a.sent();
431
+ if (allValues !== undefined) {
432
+ localVarQueryParameter['all_values'] = allValues;
433
+ }
434
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
435
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
436
+ }
437
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
438
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
439
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
440
+ return [2 /*return*/, {
441
+ url: (0, common_1.toPathString)(localVarUrlObj),
442
+ options: localVarRequestOptions,
443
+ }];
444
+ }
445
+ });
446
+ });
447
+ },
448
+ /**
449
+ * 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.
450
+ * @summary List products
451
+ * @param {string} [authorization] Bearer Token
452
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
453
+ * @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.
454
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
455
+ * @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.
456
+ * @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.
457
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
458
+ * @param {*} [options] Override http request option.
459
+ * @throws {RequiredError}
460
+ */
461
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
462
+ if (options === void 0) { options = {}; }
463
+ return __awaiter(_this, void 0, void 0, function () {
464
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
465
+ return __generator(this, function (_a) {
466
+ switch (_a.label) {
467
+ case 0:
468
+ localVarPath = "/publicapi/v1/products";
469
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
470
+ if (configuration) {
471
+ baseOptions = configuration.baseOptions;
472
+ baseAccessToken = configuration.accessToken;
473
+ }
474
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
475
+ localVarHeaderParameter = {};
476
+ localVarQueryParameter = {};
477
+ // authentication bearer required
478
+ // http bearer authentication required
479
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
480
+ case 1:
481
+ // authentication bearer required
482
+ // http bearer authentication required
483
+ _a.sent();
484
+ if (pageSize !== undefined) {
485
+ localVarQueryParameter['pageSize'] = pageSize;
486
+ }
487
+ if (pageToken !== undefined) {
488
+ localVarQueryParameter['pageToken'] = pageToken;
489
+ }
490
+ if (filter !== undefined) {
491
+ localVarQueryParameter['filter'] = filter;
492
+ }
493
+ if (search !== undefined) {
494
+ localVarQueryParameter['search'] = search;
495
+ }
496
+ if (order !== undefined) {
497
+ localVarQueryParameter['order'] = order;
498
+ }
499
+ if (expand !== undefined) {
500
+ localVarQueryParameter['expand'] = expand;
501
+ }
502
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
503
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
504
+ }
505
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
506
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
507
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
508
+ return [2 /*return*/, {
509
+ url: (0, common_1.toPathString)(localVarUrlObj),
510
+ options: localVarRequestOptions,
511
+ }];
512
+ }
513
+ });
514
+ });
515
+ },
516
+ };
517
+ };
518
+ exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
519
+ /**
520
+ * ProductsApi - functional programming interface
521
+ * @export
522
+ */
523
+ var ProductsApiFp = function (configuration) {
524
+ var localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
525
+ return {
526
+ /**
527
+ * This will calculate product fields.
528
+ * @summary Create the product fields
529
+ * @param {string} productCode
530
+ * @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
531
+ * @param {string} [authorization] Bearer Token
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ */
535
+ calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
536
+ return __awaiter(this, void 0, void 0, function () {
537
+ var localVarAxiosArgs;
538
+ return __generator(this, function (_a) {
539
+ switch (_a.label) {
540
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.calculateProductFields(productCode, calculateProductFieldsRequestDto, authorization, options)];
541
+ case 1:
542
+ localVarAxiosArgs = _a.sent();
543
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
544
+ }
545
+ });
546
+ });
547
+ },
548
+ /**
549
+ * This will create an invoice product.
550
+ * @summary Create the invoice product
551
+ * @param {string} productCode
552
+ * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
553
+ * @param {string} [authorization] Bearer Token
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ */
557
+ createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, authorization, options) {
558
+ return __awaiter(this, void 0, void 0, function () {
559
+ var localVarAxiosArgs;
560
+ return __generator(this, function (_a) {
561
+ switch (_a.label) {
562
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createEstimatedInvoice(productCode, createEstimatedInvoiceRequestDto, authorization, options)];
563
+ case 1:
564
+ localVarAxiosArgs = _a.sent();
565
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
566
+ }
567
+ });
568
+ });
569
+ },
570
+ /**
571
+ * This will create a custom application for a specific provider.
572
+ * @summary Create the custom application
573
+ * @param {string} productCode
574
+ * @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
575
+ * @param {string} [authorization] Bearer Token
576
+ * @param {*} [options] Override http request option.
577
+ * @throws {RequiredError}
578
+ */
579
+ customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
580
+ return __awaiter(this, void 0, void 0, function () {
581
+ var localVarAxiosArgs;
582
+ return __generator(this, function (_a) {
583
+ switch (_a.label) {
584
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.customApplication(productCode, createCustomApplicationRequestDto, authorization, options)];
585
+ case 1:
586
+ localVarAxiosArgs = _a.sent();
587
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
588
+ }
589
+ });
590
+ });
591
+ },
592
+ /**
593
+ * 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.
594
+ * @summary List insured object types
595
+ * @param {string} [authorization] Bearer Token
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ */
599
+ getInsuredObjectTypes: function (authorization, options) {
600
+ return __awaiter(this, void 0, void 0, function () {
601
+ var localVarAxiosArgs;
602
+ return __generator(this, function (_a) {
603
+ switch (_a.label) {
604
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjectTypes(authorization, options)];
605
+ case 1:
606
+ localVarAxiosArgs = _a.sent();
607
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
608
+ }
609
+ });
610
+ });
611
+ },
612
+ /**
613
+ * 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.
614
+ * @summary List insured objects
615
+ * @param {string} productCode
616
+ * @param {string} [authorization] Bearer Token
617
+ * @param {*} [options] Override http request option.
618
+ * @throws {RequiredError}
619
+ */
620
+ getInsuredObjects: function (productCode, authorization, options) {
621
+ return __awaiter(this, void 0, void 0, function () {
622
+ var localVarAxiosArgs;
623
+ return __generator(this, function (_a) {
624
+ switch (_a.label) {
625
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options)];
626
+ case 1:
627
+ localVarAxiosArgs = _a.sent();
628
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
629
+ }
630
+ });
631
+ });
632
+ },
633
+ /**
634
+ * This will generate a custom css for booking funnel, based on product.
635
+ * @summary Generate a custom CSS
636
+ * @param {string} productCode
637
+ * @param {string} [authorization] Bearer Token
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ getProductCustomCss: function (productCode, authorization, options) {
642
+ return __awaiter(this, void 0, void 0, function () {
643
+ var localVarAxiosArgs;
644
+ return __generator(this, function (_a) {
645
+ switch (_a.label) {
646
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options)];
647
+ case 1:
648
+ localVarAxiosArgs = _a.sent();
649
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
650
+ }
651
+ });
652
+ });
653
+ },
654
+ /**
655
+ * 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.
656
+ * @summary List product factors
657
+ * @param {string} productCode
658
+ * @param {string} allValues
659
+ * @param {string} [authorization] Bearer Token
660
+ * @param {*} [options] Override http request option.
661
+ * @throws {RequiredError}
662
+ */
663
+ getProductFactors: function (productCode, allValues, authorization, options) {
664
+ return __awaiter(this, void 0, void 0, function () {
665
+ var localVarAxiosArgs;
666
+ return __generator(this, function (_a) {
667
+ switch (_a.label) {
668
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options)];
669
+ case 1:
670
+ localVarAxiosArgs = _a.sent();
671
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
672
+ }
673
+ });
674
+ });
675
+ },
676
+ /**
677
+ * 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.
678
+ * @summary List products
679
+ * @param {string} [authorization] Bearer Token
680
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
681
+ * @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.
682
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
683
+ * @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.
684
+ * @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.
685
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ */
689
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
690
+ return __awaiter(this, void 0, void 0, function () {
691
+ var localVarAxiosArgs;
692
+ return __generator(this, function (_a) {
693
+ switch (_a.label) {
694
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
695
+ case 1:
696
+ localVarAxiosArgs = _a.sent();
697
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
698
+ }
699
+ });
700
+ });
701
+ },
702
+ };
703
+ };
704
+ exports.ProductsApiFp = ProductsApiFp;
705
+ /**
706
+ * ProductsApi - factory interface
707
+ * @export
708
+ */
709
+ var ProductsApiFactory = function (configuration, basePath, axios) {
710
+ var localVarFp = (0, exports.ProductsApiFp)(configuration);
711
+ return {
712
+ /**
713
+ * This will calculate product fields.
714
+ * @summary Create the product fields
715
+ * @param {string} productCode
716
+ * @param {CalculateProductFieldsRequestDto} calculateProductFieldsRequestDto
717
+ * @param {string} [authorization] Bearer Token
718
+ * @param {*} [options] Override http request option.
719
+ * @throws {RequiredError}
720
+ */
721
+ calculateProductFields: function (productCode, calculateProductFieldsRequestDto, authorization, options) {
722
+ return localVarFp.calculateProductFields(productCode, calculateProductFieldsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
723
+ },
724
+ /**
725
+ * This will create an invoice product.
726
+ * @summary Create the invoice product
727
+ * @param {string} productCode
728
+ * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
729
+ * @param {string} [authorization] Bearer Token
730
+ * @param {*} [options] Override http request option.
731
+ * @throws {RequiredError}
732
+ */
733
+ createEstimatedInvoice: function (productCode, createEstimatedInvoiceRequestDto, authorization, options) {
734
+ return localVarFp.createEstimatedInvoice(productCode, createEstimatedInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
735
+ },
736
+ /**
737
+ * This will create a custom application for a specific provider.
738
+ * @summary Create the custom application
739
+ * @param {string} productCode
740
+ * @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
741
+ * @param {string} [authorization] Bearer Token
742
+ * @param {*} [options] Override http request option.
743
+ * @throws {RequiredError}
744
+ */
745
+ customApplication: function (productCode, createCustomApplicationRequestDto, authorization, options) {
746
+ return localVarFp.customApplication(productCode, createCustomApplicationRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
747
+ },
748
+ /**
749
+ * 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.
750
+ * @summary List insured object types
751
+ * @param {string} [authorization] Bearer Token
752
+ * @param {*} [options] Override http request option.
753
+ * @throws {RequiredError}
754
+ */
755
+ getInsuredObjectTypes: function (authorization, options) {
756
+ return localVarFp.getInsuredObjectTypes(authorization, options).then(function (request) { return request(axios, basePath); });
757
+ },
758
+ /**
759
+ * 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.
760
+ * @summary List insured objects
761
+ * @param {string} productCode
762
+ * @param {string} [authorization] Bearer Token
763
+ * @param {*} [options] Override http request option.
764
+ * @throws {RequiredError}
765
+ */
766
+ getInsuredObjects: function (productCode, authorization, options) {
767
+ return localVarFp.getInsuredObjects(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
768
+ },
769
+ /**
770
+ * This will generate a custom css for booking funnel, based on product.
771
+ * @summary Generate a custom CSS
772
+ * @param {string} productCode
773
+ * @param {string} [authorization] Bearer Token
774
+ * @param {*} [options] Override http request option.
775
+ * @throws {RequiredError}
776
+ */
777
+ getProductCustomCss: function (productCode, authorization, options) {
778
+ return localVarFp.getProductCustomCss(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
779
+ },
780
+ /**
781
+ * 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.
782
+ * @summary List product factors
783
+ * @param {string} productCode
784
+ * @param {string} allValues
785
+ * @param {string} [authorization] Bearer Token
786
+ * @param {*} [options] Override http request option.
787
+ * @throws {RequiredError}
788
+ */
789
+ getProductFactors: function (productCode, allValues, authorization, options) {
790
+ return localVarFp.getProductFactors(productCode, allValues, authorization, options).then(function (request) { return request(axios, basePath); });
791
+ },
792
+ /**
793
+ * 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.
794
+ * @summary List products
795
+ * @param {string} [authorization] Bearer Token
796
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
797
+ * @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.
798
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
799
+ * @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.
800
+ * @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.
801
+ * @param {any} [expand] You can expand product versions and insured object types list in this endpoint.
802
+ * @param {*} [options] Override http request option.
803
+ * @throws {RequiredError}
804
+ */
805
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
806
+ return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
807
+ },
808
+ };
809
+ };
810
+ exports.ProductsApiFactory = ProductsApiFactory;
811
+ /**
812
+ * ProductsApi - object-oriented interface
813
+ * @export
814
+ * @class ProductsApi
815
+ * @extends {BaseAPI}
816
+ */
817
+ var ProductsApi = /** @class */ (function (_super) {
818
+ __extends(ProductsApi, _super);
819
+ function ProductsApi() {
820
+ return _super !== null && _super.apply(this, arguments) || this;
821
+ }
822
+ /**
823
+ * This will calculate product fields.
824
+ * @summary Create the product fields
825
+ * @param {ProductsApiCalculateProductFieldsRequest} requestParameters Request parameters.
826
+ * @param {*} [options] Override http request option.
827
+ * @throws {RequiredError}
828
+ * @memberof ProductsApi
829
+ */
830
+ ProductsApi.prototype.calculateProductFields = function (requestParameters, options) {
831
+ var _this = this;
832
+ return (0, exports.ProductsApiFp)(this.configuration).calculateProductFields(requestParameters.productCode, requestParameters.calculateProductFieldsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
833
+ };
834
+ /**
835
+ * This will create an invoice product.
836
+ * @summary Create the invoice product
837
+ * @param {ProductsApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ * @memberof ProductsApi
841
+ */
842
+ ProductsApi.prototype.createEstimatedInvoice = function (requestParameters, options) {
843
+ var _this = this;
844
+ return (0, exports.ProductsApiFp)(this.configuration).createEstimatedInvoice(requestParameters.productCode, requestParameters.createEstimatedInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
845
+ };
846
+ /**
847
+ * This will create a custom application for a specific provider.
848
+ * @summary Create the custom application
849
+ * @param {ProductsApiCustomApplicationRequest} requestParameters Request parameters.
850
+ * @param {*} [options] Override http request option.
851
+ * @throws {RequiredError}
852
+ * @memberof ProductsApi
853
+ */
854
+ ProductsApi.prototype.customApplication = function (requestParameters, options) {
855
+ var _this = this;
856
+ return (0, exports.ProductsApiFp)(this.configuration).customApplication(requestParameters.productCode, requestParameters.createCustomApplicationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
857
+ };
858
+ /**
859
+ * 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.
860
+ * @summary List insured object types
861
+ * @param {ProductsApiGetInsuredObjectTypesRequest} requestParameters Request parameters.
862
+ * @param {*} [options] Override http request option.
863
+ * @throws {RequiredError}
864
+ * @memberof ProductsApi
865
+ */
866
+ ProductsApi.prototype.getInsuredObjectTypes = function (requestParameters, options) {
867
+ var _this = this;
868
+ if (requestParameters === void 0) { requestParameters = {}; }
869
+ return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjectTypes(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
870
+ };
871
+ /**
872
+ * 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.
873
+ * @summary List insured objects
874
+ * @param {ProductsApiGetInsuredObjectsRequest} requestParameters Request parameters.
875
+ * @param {*} [options] Override http request option.
876
+ * @throws {RequiredError}
877
+ * @memberof ProductsApi
878
+ */
879
+ ProductsApi.prototype.getInsuredObjects = function (requestParameters, options) {
880
+ var _this = this;
881
+ return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
882
+ };
883
+ /**
884
+ * This will generate a custom css for booking funnel, based on product.
885
+ * @summary Generate a custom CSS
886
+ * @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
887
+ * @param {*} [options] Override http request option.
888
+ * @throws {RequiredError}
889
+ * @memberof ProductsApi
890
+ */
891
+ ProductsApi.prototype.getProductCustomCss = function (requestParameters, options) {
892
+ var _this = this;
893
+ return (0, exports.ProductsApiFp)(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
894
+ };
895
+ /**
896
+ * 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.
897
+ * @summary List product factors
898
+ * @param {ProductsApiGetProductFactorsRequest} requestParameters Request parameters.
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ * @memberof ProductsApi
902
+ */
903
+ ProductsApi.prototype.getProductFactors = function (requestParameters, options) {
904
+ var _this = this;
905
+ return (0, exports.ProductsApiFp)(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
906
+ };
907
+ /**
908
+ * 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.
909
+ * @summary List products
910
+ * @param {ProductsApiListProductsRequest} requestParameters Request parameters.
911
+ * @param {*} [options] Override http request option.
912
+ * @throws {RequiredError}
913
+ * @memberof ProductsApi
914
+ */
915
+ ProductsApi.prototype.listProducts = function (requestParameters, options) {
916
+ var _this = this;
917
+ if (requestParameters === void 0) { requestParameters = {}; }
918
+ 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); });
919
+ };
920
+ return ProductsApi;
921
+ }(base_1.BaseAPI));
922
+ exports.ProductsApi = ProductsApi;