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