@emilgroup/insurance-sdk 1.107.1-beta.11 → 1.107.1-beta.111

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 (134) hide show
  1. package/.openapi-generator/FILES +5 -2
  2. package/README.md +2 -2
  3. package/api/booking-funnel-versions-api.ts +8 -4
  4. package/api/booking-funnels-api.ts +24 -12
  5. package/api/commission-agreement-items-api.ts +20 -10
  6. package/api/commission-agreement-products-api.ts +20 -10
  7. package/api/commission-agreement-versions-api.ts +16 -8
  8. package/api/commission-agreements-api.ts +20 -10
  9. package/api/commission-recipients-api.ts +20 -10
  10. package/api/emil-functions-api.ts +44 -22
  11. package/api/health-check-api.ts +6 -10
  12. package/api/insured-object-types-api.ts +4 -2
  13. package/api/insured-objects-api.ts +16 -8
  14. package/api/lead-statuses-api.ts +20 -10
  15. package/api/lead-versions-api.ts +8 -4
  16. package/api/leads-api.ts +44 -24
  17. package/api/named-ranges-api.ts +24 -12
  18. package/api/partner-links-api.ts +24 -12
  19. package/api/partner-roles-api.ts +20 -10
  20. package/api/policies-api.ts +100 -66
  21. package/api/premium-calculation-api.ts +167 -0
  22. package/api/premium-formulas-api.ts +24 -12
  23. package/api/product-configs-api.ts +24 -12
  24. package/api/product-factors-api.ts +28 -14
  25. package/api/product-fields-api.ts +28 -14
  26. package/api/product-versions-api.ts +8 -4
  27. package/api/products-api.ts +24 -12
  28. package/api/status-transition-rules-api.ts +24 -12
  29. package/api.ts +2 -0
  30. package/base.ts +174 -41
  31. package/common.ts +3 -2
  32. package/configuration.ts +20 -0
  33. package/dist/api/booking-funnel-versions-api.d.ts +2 -2
  34. package/dist/api/booking-funnel-versions-api.js +11 -7
  35. package/dist/api/booking-funnels-api.d.ts +6 -6
  36. package/dist/api/booking-funnels-api.js +39 -23
  37. package/dist/api/commission-agreement-items-api.d.ts +5 -5
  38. package/dist/api/commission-agreement-items-api.js +29 -18
  39. package/dist/api/commission-agreement-products-api.d.ts +5 -5
  40. package/dist/api/commission-agreement-products-api.js +29 -18
  41. package/dist/api/commission-agreement-versions-api.d.ts +4 -4
  42. package/dist/api/commission-agreement-versions-api.js +22 -14
  43. package/dist/api/commission-agreements-api.d.ts +5 -5
  44. package/dist/api/commission-agreements-api.js +29 -18
  45. package/dist/api/commission-recipients-api.d.ts +5 -5
  46. package/dist/api/commission-recipients-api.js +32 -19
  47. package/dist/api/emil-functions-api.d.ts +11 -11
  48. package/dist/api/emil-functions-api.js +74 -43
  49. package/dist/api/health-check-api.d.ts +7 -8
  50. package/dist/api/health-check-api.js +4 -4
  51. package/dist/api/insured-object-types-api.d.ts +1 -1
  52. package/dist/api/insured-object-types-api.js +4 -3
  53. package/dist/api/insured-objects-api.d.ts +4 -4
  54. package/dist/api/insured-objects-api.js +22 -14
  55. package/dist/api/lead-statuses-api.d.ts +5 -5
  56. package/dist/api/lead-statuses-api.js +32 -19
  57. package/dist/api/lead-versions-api.d.ts +2 -2
  58. package/dist/api/lead-versions-api.js +11 -7
  59. package/dist/api/leads-api.d.ts +14 -14
  60. package/dist/api/leads-api.js +67 -41
  61. package/dist/api/named-ranges-api.d.ts +6 -6
  62. package/dist/api/named-ranges-api.js +36 -22
  63. package/dist/api/partner-links-api.d.ts +6 -6
  64. package/dist/api/partner-links-api.js +36 -22
  65. package/dist/api/partner-roles-api.d.ts +5 -5
  66. package/dist/api/partner-roles-api.js +32 -19
  67. package/dist/api/policies-api.d.ts +49 -49
  68. package/dist/api/policies-api.js +129 -90
  69. package/dist/api/premium-calculation-api.d.ts +97 -0
  70. package/dist/api/premium-calculation-api.js +227 -0
  71. package/dist/api/premium-formulas-api.d.ts +6 -6
  72. package/dist/api/premium-formulas-api.js +39 -23
  73. package/dist/api/product-configs-api.d.ts +6 -6
  74. package/dist/api/product-configs-api.js +39 -23
  75. package/dist/api/product-factors-api.d.ts +7 -7
  76. package/dist/api/product-factors-api.js +37 -24
  77. package/dist/api/product-fields-api.d.ts +7 -7
  78. package/dist/api/product-fields-api.js +43 -26
  79. package/dist/api/product-versions-api.d.ts +2 -2
  80. package/dist/api/product-versions-api.js +11 -7
  81. package/dist/api/products-api.d.ts +6 -6
  82. package/dist/api/products-api.js +33 -21
  83. package/dist/api/status-transition-rules-api.d.ts +6 -6
  84. package/dist/api/status-transition-rules-api.js +36 -22
  85. package/dist/api.d.ts +1 -0
  86. package/dist/api.js +1 -0
  87. package/dist/base.d.ts +24 -0
  88. package/dist/base.js +178 -59
  89. package/dist/common.d.ts +1 -1
  90. package/dist/common.js +1 -0
  91. package/dist/configuration.d.ts +17 -0
  92. package/dist/configuration.js +2 -0
  93. package/dist/models/calculate-premium-response-class.d.ts +39 -0
  94. package/dist/models/calculated-policy-objects-class.d.ts +25 -0
  95. package/dist/models/claim-config-class.d.ts +7 -0
  96. package/dist/models/create-draft-policy-request-dto.d.ts +1 -1
  97. package/dist/models/create-premium-formula-request-dto.d.ts +6 -0
  98. package/dist/models/create-product-request-dto.d.ts +12 -0
  99. package/dist/models/create-product-version-request-dto.d.ts +6 -0
  100. package/dist/models/get-draft-policy-request-dto.d.ts +1 -1
  101. package/dist/models/index.d.ts +4 -2
  102. package/dist/models/index.js +4 -2
  103. package/dist/models/partner-class.d.ts +6 -0
  104. package/dist/models/patch-draft-policy-request-dto.d.ts +2 -2
  105. package/dist/models/policy-object-dto.d.ts +1 -1
  106. package/dist/models/policy-premium-item-class.d.ts +1 -1
  107. package/dist/models/premium-formula-class.d.ts +6 -0
  108. package/dist/models/regulation-subtype-class.d.ts +30 -0
  109. package/dist/models/regulation-subtype-class.js +15 -0
  110. package/dist/models/regulation-subtypes-class.d.ts +37 -0
  111. package/dist/models/regulation-subtypes-class.js +15 -0
  112. package/models/calculate-premium-response-class.ts +45 -0
  113. package/models/calculated-policy-objects-class.ts +31 -0
  114. package/models/claim-config-class.ts +7 -0
  115. package/models/create-draft-policy-request-dto.ts +1 -1
  116. package/models/create-premium-formula-request-dto.ts +6 -0
  117. package/models/create-product-request-dto.ts +12 -0
  118. package/models/create-product-version-request-dto.ts +6 -0
  119. package/models/get-draft-policy-request-dto.ts +1 -1
  120. package/models/index.ts +4 -2
  121. package/models/partner-class.ts +6 -0
  122. package/models/patch-draft-policy-request-dto.ts +2 -2
  123. package/models/policy-object-dto.ts +1 -1
  124. package/models/policy-premium-item-class.ts +1 -1
  125. package/models/premium-formula-class.ts +6 -0
  126. package/models/regulation-subtype-class.ts +36 -0
  127. package/models/regulation-subtypes-class.ts +43 -0
  128. package/package.json +2 -2
  129. package/dist/models/inline-response200.d.ts +0 -54
  130. package/dist/models/inline-response503.d.ts +0 -54
  131. package/models/inline-response200.ts +0 -48
  132. package/models/inline-response503.ts +0 -48
  133. /package/dist/models/{inline-response200.js → calculate-premium-response-class.js} +0 -0
  134. /package/dist/models/{inline-response503.js → calculated-policy-objects-class.js} +0 -0
@@ -21,6 +21,7 @@ api/named-ranges-api.ts
21
21
  api/partner-links-api.ts
22
22
  api/partner-roles-api.ts
23
23
  api/policies-api.ts
24
+ api/premium-calculation-api.ts
24
25
  api/premium-formulas-api.ts
25
26
  api/product-configs-api.ts
26
27
  api/product-factors-api.ts
@@ -42,8 +43,10 @@ models/billing-address-dto.ts
42
43
  models/booking-funnel-class.ts
43
44
  models/calculate-custom-premium-request-dto.ts
44
45
  models/calculate-premium-request-dto.ts
46
+ models/calculate-premium-response-class.ts
45
47
  models/calculate-product-fields-request-dto.ts
46
48
  models/calculated-policy-object-class.ts
49
+ models/calculated-policy-objects-class.ts
47
50
  models/calculation-errors-class.ts
48
51
  models/calculation-item-errors-class.ts
49
52
  models/calculation-message-class.ts
@@ -158,8 +161,6 @@ models/grouped-product-factor-value-class.ts
158
161
  models/grouped-product-factors-response-class.ts
159
162
  models/grpc-mandate-dto.ts
160
163
  models/index.ts
161
- models/inline-response200.ts
162
- models/inline-response503.ts
163
164
  models/insured-object-class.ts
164
165
  models/insured-object-type-class.ts
165
166
  models/invoice-item-class.ts
@@ -232,6 +233,8 @@ models/product-factor-value-for-version-class.ts
232
233
  models/product-field-class.ts
233
234
  models/product-field-type-class.ts
234
235
  models/product-version-class.ts
236
+ models/regulation-subtype-class.ts
237
+ models/regulation-subtypes-class.ts
235
238
  models/rest-calculate-product-tariff-quote-request-dto.ts
236
239
  models/rest-calculate-product-tariff-quote-response-class.ts
237
240
  models/rest-clone-lead-account-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/insurance-sdk@1.107.1-beta.11 --save
20
+ npm install @emilgroup/insurance-sdk@1.107.1-beta.111 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk@1.107.1-beta.11
24
+ yarn add @emilgroup/insurance-sdk@1.107.1-beta.111
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -60,8 +60,10 @@ export const BookingFunnelVersionsApiAxiosParamCreator = function (configuration
60
60
  // http bearer authentication required
61
61
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
62
62
 
63
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
63
+ // Only Authorization falls back to the configured token; an empty value is never sent.
64
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
65
+ if (authorizationValue) {
66
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
65
67
  }
66
68
 
67
69
 
@@ -140,8 +142,10 @@ export const BookingFunnelVersionsApiAxiosParamCreator = function (configuration
140
142
  localVarQueryParameter['filters'] = filters;
141
143
  }
142
144
 
143
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
144
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
145
+ // Only Authorization falls back to the configured token; an empty value is never sent.
146
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
147
+ if (authorizationValue) {
148
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
145
149
  }
146
150
 
147
151
 
@@ -73,8 +73,10 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
73
73
  // http bearer authentication required
74
74
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
75
 
76
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ // Only Authorization falls back to the configured token; an empty value is never sent.
77
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
78
+ if (authorizationValue) {
79
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
78
80
  }
79
81
 
80
82
 
@@ -121,8 +123,10 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
121
123
  // http bearer authentication required
122
124
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
125
 
124
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
126
+ // Only Authorization falls back to the configured token; an empty value is never sent.
127
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
128
+ if (authorizationValue) {
129
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
126
130
  }
127
131
 
128
132
 
@@ -166,8 +170,10 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
166
170
  // http bearer authentication required
167
171
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
172
 
169
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
173
+ // Only Authorization falls back to the configured token; an empty value is never sent.
174
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
175
+ if (authorizationValue) {
176
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
171
177
  }
172
178
 
173
179
 
@@ -242,8 +248,10 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
242
248
  localVarQueryParameter['filters'] = filters;
243
249
  }
244
250
 
245
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
251
+ // Only Authorization falls back to the configured token; an empty value is never sent.
252
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
253
+ if (authorizationValue) {
254
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
247
255
  }
248
256
 
249
257
 
@@ -289,8 +297,10 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
289
297
  // http bearer authentication required
290
298
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
291
299
 
292
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
293
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
+ // Only Authorization falls back to the configured token; an empty value is never sent.
301
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
302
+ if (authorizationValue) {
303
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
294
304
  }
295
305
 
296
306
 
@@ -340,8 +350,10 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
340
350
  // http bearer authentication required
341
351
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
342
352
 
343
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
344
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
353
+ // Only Authorization falls back to the configured token; an empty value is never sent.
354
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
355
+ if (authorizationValue) {
356
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
345
357
  }
346
358
 
347
359
 
@@ -73,8 +73,10 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
73
73
  // http bearer authentication required
74
74
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
75
 
76
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ // Only Authorization falls back to the configured token; an empty value is never sent.
77
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
78
+ if (authorizationValue) {
79
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
78
80
  }
79
81
 
80
82
 
@@ -121,8 +123,10 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
121
123
  // http bearer authentication required
122
124
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
125
 
124
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
126
+ // Only Authorization falls back to the configured token; an empty value is never sent.
127
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
128
+ if (authorizationValue) {
129
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
126
130
  }
127
131
 
128
132
 
@@ -173,8 +177,10 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
173
177
  localVarQueryParameter['expand'] = expand;
174
178
  }
175
179
 
176
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ // Only Authorization falls back to the configured token; an empty value is never sent.
181
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
182
+ if (authorizationValue) {
183
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
178
184
  }
179
185
 
180
186
 
@@ -249,8 +255,10 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
249
255
  localVarQueryParameter['filters'] = filters;
250
256
  }
251
257
 
252
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
253
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
258
+ // Only Authorization falls back to the configured token; an empty value is never sent.
259
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
260
+ if (authorizationValue) {
261
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
254
262
  }
255
263
 
256
264
 
@@ -297,8 +305,10 @@ export const CommissionAgreementItemsApiAxiosParamCreator = function (configurat
297
305
  // http bearer authentication required
298
306
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
299
307
 
300
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
301
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
308
+ // Only Authorization falls back to the configured token; an empty value is never sent.
309
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
310
+ if (authorizationValue) {
311
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
302
312
  }
303
313
 
304
314
 
@@ -73,8 +73,10 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
73
73
  // http bearer authentication required
74
74
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
75
 
76
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ // Only Authorization falls back to the configured token; an empty value is never sent.
77
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
78
+ if (authorizationValue) {
79
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
78
80
  }
79
81
 
80
82
 
@@ -121,8 +123,10 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
121
123
  // http bearer authentication required
122
124
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
125
 
124
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
126
+ // Only Authorization falls back to the configured token; an empty value is never sent.
127
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
128
+ if (authorizationValue) {
129
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
126
130
  }
127
131
 
128
132
 
@@ -171,8 +175,10 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
171
175
  localVarQueryParameter['expand'] = expand;
172
176
  }
173
177
 
174
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
175
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
178
+ // Only Authorization falls back to the configured token; an empty value is never sent.
179
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
180
+ if (authorizationValue) {
181
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
176
182
  }
177
183
 
178
184
 
@@ -247,8 +253,10 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
247
253
  localVarQueryParameter['filters'] = filters;
248
254
  }
249
255
 
250
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
256
+ // Only Authorization falls back to the configured token; an empty value is never sent.
257
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
258
+ if (authorizationValue) {
259
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
252
260
  }
253
261
 
254
262
 
@@ -295,8 +303,10 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
295
303
  // http bearer authentication required
296
304
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
297
305
 
298
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
306
+ // Only Authorization falls back to the configured token; an empty value is never sent.
307
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
308
+ if (authorizationValue) {
309
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
300
310
  }
301
311
 
302
312
 
@@ -69,8 +69,10 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
69
69
  // http bearer authentication required
70
70
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
71
71
 
72
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
73
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ // Only Authorization falls back to the configured token; an empty value is never sent.
73
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
74
+ if (authorizationValue) {
75
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
74
76
  }
75
77
 
76
78
 
@@ -117,8 +119,10 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
117
119
  // http bearer authentication required
118
120
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
119
121
 
120
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
121
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
122
+ // Only Authorization falls back to the configured token; an empty value is never sent.
123
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
124
+ if (authorizationValue) {
125
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
122
126
  }
123
127
 
124
128
 
@@ -169,8 +173,10 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
169
173
  localVarQueryParameter['expand'] = expand;
170
174
  }
171
175
 
172
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
173
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
176
+ // Only Authorization falls back to the configured token; an empty value is never sent.
177
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
178
+ if (authorizationValue) {
179
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
174
180
  }
175
181
 
176
182
 
@@ -245,8 +251,10 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
245
251
  localVarQueryParameter['filters'] = filters;
246
252
  }
247
253
 
248
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
249
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
254
+ // Only Authorization falls back to the configured token; an empty value is never sent.
255
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
256
+ if (authorizationValue) {
257
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
250
258
  }
251
259
 
252
260
 
@@ -69,8 +69,10 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
69
69
  // http bearer authentication required
70
70
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
71
71
 
72
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
73
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ // Only Authorization falls back to the configured token; an empty value is never sent.
73
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
74
+ if (authorizationValue) {
75
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
74
76
  }
75
77
 
76
78
 
@@ -117,8 +119,10 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
117
119
  // http bearer authentication required
118
120
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
119
121
 
120
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
121
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
122
+ // Only Authorization falls back to the configured token; an empty value is never sent.
123
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
124
+ if (authorizationValue) {
125
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
122
126
  }
123
127
 
124
128
 
@@ -167,8 +171,10 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
167
171
  localVarQueryParameter['expand'] = expand;
168
172
  }
169
173
 
170
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
171
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
174
+ // Only Authorization falls back to the configured token; an empty value is never sent.
175
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
176
+ if (authorizationValue) {
177
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
172
178
  }
173
179
 
174
180
 
@@ -243,8 +249,10 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
243
249
  localVarQueryParameter['filters'] = filters;
244
250
  }
245
251
 
246
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
+ // Only Authorization falls back to the configured token; an empty value is never sent.
253
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
254
+ if (authorizationValue) {
255
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
248
256
  }
249
257
 
250
258
 
@@ -291,8 +299,10 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
291
299
  // http bearer authentication required
292
300
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
293
301
 
294
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
302
+ // Only Authorization falls back to the configured token; an empty value is never sent.
303
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
304
+ if (authorizationValue) {
305
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
296
306
  }
297
307
 
298
308
 
@@ -73,8 +73,10 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
73
73
  // http bearer authentication required
74
74
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
75
 
76
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
77
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ // Only Authorization falls back to the configured token; an empty value is never sent.
77
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
78
+ if (authorizationValue) {
79
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
78
80
  }
79
81
 
80
82
 
@@ -121,8 +123,10 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
121
123
  // http bearer authentication required
122
124
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
125
 
124
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
125
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
126
+ // Only Authorization falls back to the configured token; an empty value is never sent.
127
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
128
+ if (authorizationValue) {
129
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
126
130
  }
127
131
 
128
132
 
@@ -166,8 +170,10 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
166
170
  // http bearer authentication required
167
171
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
172
 
169
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
173
+ // Only Authorization falls back to the configured token; an empty value is never sent.
174
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
175
+ if (authorizationValue) {
176
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
171
177
  }
172
178
 
173
179
 
@@ -242,8 +248,10 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
242
248
  localVarQueryParameter['filters'] = filters;
243
249
  }
244
250
 
245
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
251
+ // Only Authorization falls back to the configured token; an empty value is never sent.
252
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
253
+ if (authorizationValue) {
254
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
247
255
  }
248
256
 
249
257
 
@@ -290,8 +298,10 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
290
298
  // http bearer authentication required
291
299
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
292
300
 
293
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
294
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
301
+ // Only Authorization falls back to the configured token; an empty value is never sent.
302
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
303
+ if (authorizationValue) {
304
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
295
305
  }
296
306
 
297
307