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