@emilgroup/customer-sdk-node 1.26.0 → 1.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/README.md +2 -2
  2. package/dist/api/authentication-api.d.ts +332 -0
  3. package/dist/api/authentication-api.js +604 -0
  4. package/dist/api/claims-api.d.ts +431 -0
  5. package/dist/api/claims-api.js +670 -0
  6. package/dist/api/customers-api.d.ts +271 -0
  7. package/dist/api/customers-api.js +425 -0
  8. package/dist/api/default-api.d.ts +66 -0
  9. package/dist/api/default-api.js +200 -0
  10. package/dist/api/documents-api.d.ts +262 -0
  11. package/dist/api/documents-api.js +417 -0
  12. package/dist/api/invites-api.d.ts +249 -0
  13. package/dist/api/invites-api.js +456 -0
  14. package/dist/api/invoices-api.d.ts +150 -0
  15. package/dist/api/invoices-api.js +253 -0
  16. package/dist/api/leads-api.d.ts +365 -0
  17. package/dist/api/leads-api.js +571 -0
  18. package/dist/api/payments-api.d.ts +162 -0
  19. package/dist/api/payments-api.js +306 -0
  20. package/dist/api/policies-api.d.ts +578 -0
  21. package/dist/api/policies-api.js +808 -0
  22. package/dist/api/products-api.d.ts +215 -0
  23. package/dist/api/products-api.js +341 -0
  24. package/dist/api.d.ts +22 -0
  25. package/dist/api.js +40 -0
  26. package/dist/base.d.ts +82 -0
  27. package/dist/base.js +502 -0
  28. package/dist/common.d.ts +66 -0
  29. package/dist/common.js +244 -0
  30. package/dist/configuration.d.ts +98 -0
  31. package/dist/configuration.js +45 -0
  32. package/dist/index.d.ts +15 -0
  33. package/dist/index.js +36 -0
  34. package/dist/models/account-class.d.ts +169 -0
  35. package/dist/models/account-class.js +26 -0
  36. package/dist/models/account-policy-class.d.ts +30 -0
  37. package/dist/models/account-policy-class.js +15 -0
  38. package/dist/models/authentication-result-class.d.ts +30 -0
  39. package/dist/models/authentication-result-class.js +15 -0
  40. package/dist/models/claim-class.d.ts +162 -0
  41. package/dist/models/claim-class.js +15 -0
  42. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  43. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  44. package/dist/models/complete-payment-setup-psp-request.d.ts +32 -0
  45. package/dist/models/complete-payment-setup-psp-request.js +15 -0
  46. package/dist/models/complete-payment-setup-response-class.d.ts +24 -0
  47. package/dist/models/complete-payment-setup-response-class.js +15 -0
  48. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +60 -0
  49. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  50. package/dist/models/create-account-request-dto.d.ts +132 -0
  51. package/dist/models/create-account-request-dto.js +31 -0
  52. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  53. package/dist/models/create-bank-account-request-dto.js +15 -0
  54. package/dist/models/create-customer-claim-request-dto.d.ts +114 -0
  55. package/dist/models/create-customer-claim-request-dto.js +15 -0
  56. package/dist/models/create-customer-claim-response-class.d.ts +25 -0
  57. package/dist/models/create-customer-claim-response-class.js +15 -0
  58. package/dist/models/create-customer-request-dto.d.ts +43 -0
  59. package/dist/models/create-customer-request-dto.js +15 -0
  60. package/dist/models/create-customer-response-class.d.ts +25 -0
  61. package/dist/models/create-customer-response-class.js +15 -0
  62. package/dist/models/create-lead-request-dto.d.ts +83 -0
  63. package/dist/models/create-lead-request-dto.js +15 -0
  64. package/dist/models/create-lead-response-class.d.ts +25 -0
  65. package/dist/models/create-lead-response-class.js +15 -0
  66. package/dist/models/create-payment-method-request-dto.d.ts +31 -0
  67. package/dist/models/create-payment-method-request-dto.js +15 -0
  68. package/dist/models/create-policy-request-dto.d.ts +56 -0
  69. package/dist/models/create-policy-request-dto.js +15 -0
  70. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  71. package/dist/models/create-presigned-post-response-class.js +15 -0
  72. package/dist/models/customer-class.d.ts +73 -0
  73. package/dist/models/customer-class.js +15 -0
  74. package/dist/models/customer-document-class.d.ts +99 -0
  75. package/dist/models/customer-document-class.js +36 -0
  76. package/dist/models/customer-product-class.d.ts +54 -0
  77. package/dist/models/customer-product-class.js +15 -0
  78. package/dist/models/forgot-password-request-dto.d.ts +30 -0
  79. package/dist/models/forgot-password-request-dto.js +15 -0
  80. package/dist/models/get-customer-claim-response-class.d.ts +25 -0
  81. package/dist/models/get-customer-claim-response-class.js +15 -0
  82. package/dist/models/get-customer-document-download-url-response-class.d.ts +24 -0
  83. package/dist/models/get-customer-document-download-url-response-class.js +15 -0
  84. package/dist/models/get-customer-response-class.d.ts +25 -0
  85. package/dist/models/get-customer-response-class.js +15 -0
  86. package/dist/models/get-lead-response-class.d.ts +25 -0
  87. package/dist/models/get-lead-response-class.js +15 -0
  88. package/dist/models/get-policy-response-class.d.ts +25 -0
  89. package/dist/models/get-policy-response-class.js +15 -0
  90. package/dist/models/get-product-response-class.d.ts +25 -0
  91. package/dist/models/get-product-response-class.js +15 -0
  92. package/dist/models/grpc-update-lead-request-dto.d.ts +50 -0
  93. package/dist/models/grpc-update-lead-request-dto.js +15 -0
  94. package/dist/models/index.d.ts +85 -0
  95. package/dist/models/index.js +101 -0
  96. package/dist/models/initiate-auth-request-dto.d.ts +36 -0
  97. package/dist/models/initiate-auth-request-dto.js +15 -0
  98. package/dist/models/initiate-auth-response-class.d.ts +43 -0
  99. package/dist/models/initiate-auth-response-class.js +15 -0
  100. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
  101. package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
  102. package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
  103. package/dist/models/initiate-payment-setup-response-class.js +15 -0
  104. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
  105. package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
  106. package/dist/models/inline-response200.d.ts +54 -0
  107. package/dist/models/inline-response200.js +15 -0
  108. package/dist/models/inline-response503.d.ts +54 -0
  109. package/dist/models/inline-response503.js +15 -0
  110. package/dist/models/invite-by-customer-request-dto.d.ts +30 -0
  111. package/dist/models/invite-by-customer-request-dto.js +15 -0
  112. package/dist/models/invite-by-customer-response-class.d.ts +25 -0
  113. package/dist/models/invite-by-customer-response-class.js +15 -0
  114. package/dist/models/invite-by-tenant-request-dto.d.ts +24 -0
  115. package/dist/models/invite-by-tenant-request-dto.js +15 -0
  116. package/dist/models/invite-by-tenant-response-class.d.ts +25 -0
  117. package/dist/models/invite-by-tenant-response-class.js +15 -0
  118. package/dist/models/invite-class.d.ts +54 -0
  119. package/dist/models/invite-class.js +15 -0
  120. package/dist/models/invoice-class.d.ts +148 -0
  121. package/dist/models/invoice-class.js +28 -0
  122. package/dist/models/lead-bank-account-class.d.ts +30 -0
  123. package/dist/models/lead-bank-account-class.js +15 -0
  124. package/dist/models/lead-class.d.ts +127 -0
  125. package/dist/models/lead-class.js +15 -0
  126. package/dist/models/list-customer-claims-response-class.d.ts +31 -0
  127. package/dist/models/list-customer-claims-response-class.js +15 -0
  128. package/dist/models/list-documents-response-class.d.ts +31 -0
  129. package/dist/models/list-documents-response-class.js +15 -0
  130. package/dist/models/list-invoices-response-class.d.ts +31 -0
  131. package/dist/models/list-invoices-response-class.js +15 -0
  132. package/dist/models/list-leads-response-class.d.ts +43 -0
  133. package/dist/models/list-leads-response-class.js +15 -0
  134. package/dist/models/list-policies-response-class.d.ts +43 -0
  135. package/dist/models/list-policies-response-class.js +15 -0
  136. package/dist/models/list-products-response-class.d.ts +31 -0
  137. package/dist/models/list-products-response-class.js +15 -0
  138. package/dist/models/policy-class.d.ts +80 -0
  139. package/dist/models/policy-class.js +15 -0
  140. package/dist/models/policy-object-class.d.ts +54 -0
  141. package/dist/models/policy-object-class.js +15 -0
  142. package/dist/models/policy-object-dto.d.ts +42 -0
  143. package/dist/models/policy-object-dto.js +15 -0
  144. package/dist/models/policy-premium-class.d.ts +43 -0
  145. package/dist/models/policy-premium-class.js +15 -0
  146. package/dist/models/policy-premium-item-class.d.ts +36 -0
  147. package/dist/models/policy-premium-item-class.js +15 -0
  148. package/dist/models/policy-version-class.d.ts +49 -0
  149. package/dist/models/policy-version-class.js +15 -0
  150. package/dist/models/premium-override-dto.d.ts +55 -0
  151. package/dist/models/premium-override-dto.js +27 -0
  152. package/dist/models/premium-override-request-class.d.ts +25 -0
  153. package/dist/models/premium-override-request-class.js +15 -0
  154. package/dist/models/premium-override-request-dto.d.ts +25 -0
  155. package/dist/models/premium-override-request-dto.js +15 -0
  156. package/dist/models/refresh-token-dto.d.ts +30 -0
  157. package/dist/models/refresh-token-dto.js +15 -0
  158. package/dist/models/request-policy-update-request-dto.d.ts +43 -0
  159. package/dist/models/request-policy-update-request-dto.js +15 -0
  160. package/dist/models/request-policy-update-response-class.d.ts +25 -0
  161. package/dist/models/request-policy-update-response-class.js +15 -0
  162. package/dist/models/reset-password-by-customer-request-dto.d.ts +36 -0
  163. package/dist/models/reset-password-by-customer-request-dto.js +15 -0
  164. package/dist/models/respond-to-auth-challenge-class.d.ts +43 -0
  165. package/dist/models/respond-to-auth-challenge-class.js +15 -0
  166. package/dist/models/respond-to-auth-challenge-request-dto.d.ts +42 -0
  167. package/dist/models/respond-to-auth-challenge-request-dto.js +15 -0
  168. package/dist/models/sepa-dto.d.ts +30 -0
  169. package/dist/models/sepa-dto.js +15 -0
  170. package/dist/models/shared-customer-policy-object-request-dto.d.ts +36 -0
  171. package/dist/models/shared-customer-policy-object-request-dto.js +15 -0
  172. package/dist/models/shared-invoice-item-class.d.ts +129 -0
  173. package/dist/models/shared-invoice-item-class.js +24 -0
  174. package/dist/models/shared-invoice-status-class.d.ts +47 -0
  175. package/dist/models/shared-invoice-status-class.js +20 -0
  176. package/dist/models/terminate-customer-policy-request-dto.d.ts +24 -0
  177. package/dist/models/terminate-customer-policy-request-dto.js +15 -0
  178. package/dist/models/terminate-customer-policy-response-class.d.ts +25 -0
  179. package/dist/models/terminate-customer-policy-response-class.js +15 -0
  180. package/dist/models/timeslice-class.d.ts +56 -0
  181. package/dist/models/timeslice-class.js +15 -0
  182. package/dist/models/update-account-request-dto.d.ts +113 -0
  183. package/dist/models/update-account-request-dto.js +25 -0
  184. package/dist/models/update-customer-claim-request-dto.d.ts +114 -0
  185. package/dist/models/update-customer-claim-request-dto.js +15 -0
  186. package/dist/models/update-customer-claim-response-class.d.ts +25 -0
  187. package/dist/models/update-customer-claim-response-class.js +15 -0
  188. package/dist/models/update-customer-request-dto.d.ts +31 -0
  189. package/dist/models/update-customer-request-dto.js +15 -0
  190. package/dist/models/update-customer-response-class.d.ts +25 -0
  191. package/dist/models/update-customer-response-class.js +15 -0
  192. package/dist/models/update-lead-request-dto.d.ts +44 -0
  193. package/dist/models/update-lead-request-dto.js +15 -0
  194. package/dist/models/update-lead-response-class.d.ts +25 -0
  195. package/dist/models/update-lead-response-class.js +15 -0
  196. package/dist/models/upload-customer-claim-documents-request-dto.d.ts +36 -0
  197. package/dist/models/upload-customer-claim-documents-request-dto.js +15 -0
  198. package/dist/models/upload-customer-policy-documents-request-dto.d.ts +47 -0
  199. package/dist/models/upload-customer-policy-documents-request-dto.js +20 -0
  200. package/dist/models/uploaded-document-dto.d.ts +24 -0
  201. package/dist/models/uploaded-document-dto.js +15 -0
  202. package/dist/models/verify-customer-invite-response-class.d.ts +36 -0
  203. package/dist/models/verify-customer-invite-response-class.js +15 -0
  204. package/dist/models/withdraw-customer-policy-response-class.d.ts +25 -0
  205. package/dist/models/withdraw-customer-policy-response-class.js +15 -0
  206. package/package.json +1 -1
@@ -0,0 +1,670 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.ClaimsApi = exports.ClaimsApiFactory = exports.ClaimsApiFp = exports.ClaimsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * ClaimsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ClaimsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Create a new claim for customer.
101
+ * @summary Create a new claim
102
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
103
+ * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
104
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'customerCode' is not null or undefined
116
+ (0, common_1.assertParamExists)('createCustomerClaim', 'customerCode', customerCode);
117
+ // verify required parameter 'createCustomerClaimRequestDto' is not null or undefined
118
+ (0, common_1.assertParamExists)('createCustomerClaim', 'createCustomerClaimRequestDto', createCustomerClaimRequestDto);
119
+ localVarPath = "/v1/customers/{customerCode}/claims"
120
+ .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ }
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerClaimRequestDto, localVarRequestOptions, configuration);
144
+ return [2 /*return*/, {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ }];
148
+ }
149
+ });
150
+ });
151
+ },
152
+ /**
153
+ * Get claim for customer.
154
+ * @summary Get claim
155
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
156
+ * @param {string} claimCode The claim code to identify a claim.
157
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ getCustomerClaim: function (customerCode, claimCode, authorization, options) {
162
+ if (options === void 0) { options = {}; }
163
+ return __awaiter(_this, void 0, void 0, function () {
164
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
165
+ return __generator(this, function (_a) {
166
+ switch (_a.label) {
167
+ case 0:
168
+ // verify required parameter 'customerCode' is not null or undefined
169
+ (0, common_1.assertParamExists)('getCustomerClaim', 'customerCode', customerCode);
170
+ // verify required parameter 'claimCode' is not null or undefined
171
+ (0, common_1.assertParamExists)('getCustomerClaim', 'claimCode', claimCode);
172
+ localVarPath = "/v1/customers/{customerCode}/claims/{claimCode}"
173
+ .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)))
174
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
175
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
176
+ if (configuration) {
177
+ baseOptions = configuration.baseOptions;
178
+ baseAccessToken = configuration.accessToken;
179
+ }
180
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
181
+ localVarHeaderParameter = {};
182
+ localVarQueryParameter = {};
183
+ // authentication bearer required
184
+ // http bearer authentication required
185
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
186
+ case 1:
187
+ // authentication bearer required
188
+ // http bearer authentication required
189
+ _a.sent();
190
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
192
+ }
193
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
194
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
195
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
196
+ return [2 /*return*/, {
197
+ url: (0, common_1.toPathString)(localVarUrlObj),
198
+ options: localVarRequestOptions,
199
+ }];
200
+ }
201
+ });
202
+ });
203
+ },
204
+ /**
205
+ * List claims by customer.
206
+ * @summary List claims
207
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
208
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
209
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
210
+ * @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.
211
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
212
+ * @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.
213
+ * @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.
214
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
219
+ if (options === void 0) { options = {}; }
220
+ return __awaiter(_this, void 0, void 0, function () {
221
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
222
+ return __generator(this, function (_a) {
223
+ switch (_a.label) {
224
+ case 0:
225
+ // verify required parameter 'customerCode' is not null or undefined
226
+ (0, common_1.assertParamExists)('listCustomerClaims', 'customerCode', customerCode);
227
+ localVarPath = "/v1/customers/{customerCode}/claims"
228
+ .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
229
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
230
+ if (configuration) {
231
+ baseOptions = configuration.baseOptions;
232
+ baseAccessToken = configuration.accessToken;
233
+ }
234
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
235
+ localVarHeaderParameter = {};
236
+ localVarQueryParameter = {};
237
+ // authentication bearer required
238
+ // http bearer authentication required
239
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
240
+ case 1:
241
+ // authentication bearer required
242
+ // http bearer authentication required
243
+ _a.sent();
244
+ if (pageSize !== undefined) {
245
+ localVarQueryParameter['pageSize'] = pageSize;
246
+ }
247
+ if (pageToken !== undefined) {
248
+ localVarQueryParameter['pageToken'] = pageToken;
249
+ }
250
+ if (filter !== undefined) {
251
+ localVarQueryParameter['filter'] = filter;
252
+ }
253
+ if (search !== undefined) {
254
+ localVarQueryParameter['search'] = search;
255
+ }
256
+ if (order !== undefined) {
257
+ localVarQueryParameter['order'] = order;
258
+ }
259
+ if (expand !== undefined) {
260
+ localVarQueryParameter['expand'] = expand;
261
+ }
262
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
263
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
264
+ }
265
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
266
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
267
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
268
+ return [2 /*return*/, {
269
+ url: (0, common_1.toPathString)(localVarUrlObj),
270
+ options: localVarRequestOptions,
271
+ }];
272
+ }
273
+ });
274
+ });
275
+ },
276
+ /**
277
+ * Update claim for customer.
278
+ * @summary Update claim
279
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
280
+ * @param {string} claimCode The claim code to identify a claim.
281
+ * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
282
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, authorization, options) {
287
+ if (options === void 0) { options = {}; }
288
+ return __awaiter(_this, void 0, void 0, function () {
289
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
290
+ return __generator(this, function (_a) {
291
+ switch (_a.label) {
292
+ case 0:
293
+ // verify required parameter 'customerCode' is not null or undefined
294
+ (0, common_1.assertParamExists)('updateCustomerClaim', 'customerCode', customerCode);
295
+ // verify required parameter 'claimCode' is not null or undefined
296
+ (0, common_1.assertParamExists)('updateCustomerClaim', 'claimCode', claimCode);
297
+ // verify required parameter 'updateCustomerClaimRequestDto' is not null or undefined
298
+ (0, common_1.assertParamExists)('updateCustomerClaim', 'updateCustomerClaimRequestDto', updateCustomerClaimRequestDto);
299
+ localVarPath = "/v1/customers/{customerCode}/claims/{claimCode}"
300
+ .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)))
301
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
302
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
303
+ if (configuration) {
304
+ baseOptions = configuration.baseOptions;
305
+ baseAccessToken = configuration.accessToken;
306
+ }
307
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
308
+ localVarHeaderParameter = {};
309
+ localVarQueryParameter = {};
310
+ // authentication bearer required
311
+ // http bearer authentication required
312
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
313
+ case 1:
314
+ // authentication bearer required
315
+ // http bearer authentication required
316
+ _a.sent();
317
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
318
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
319
+ }
320
+ localVarHeaderParameter['Content-Type'] = 'application/json';
321
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
322
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
323
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
324
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerClaimRequestDto, localVarRequestOptions, configuration);
325
+ return [2 /*return*/, {
326
+ url: (0, common_1.toPathString)(localVarUrlObj),
327
+ options: localVarRequestOptions,
328
+ }];
329
+ }
330
+ });
331
+ });
332
+ },
333
+ /**
334
+ * API to upload and attach documents to a claim.
335
+ * @summary Upload claim documents
336
+ * @param {string} customerCode
337
+ * @param {string} claimCode The claim code to identify a claim.
338
+ * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
339
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
340
+ * @param {*} [options] Override http request option.
341
+ * @throws {RequiredError}
342
+ */
343
+ uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, options) {
344
+ if (options === void 0) { options = {}; }
345
+ return __awaiter(_this, void 0, void 0, function () {
346
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
347
+ return __generator(this, function (_a) {
348
+ switch (_a.label) {
349
+ case 0:
350
+ // verify required parameter 'customerCode' is not null or undefined
351
+ (0, common_1.assertParamExists)('uploadCustomerClaimDocuments', 'customerCode', customerCode);
352
+ // verify required parameter 'claimCode' is not null or undefined
353
+ (0, common_1.assertParamExists)('uploadCustomerClaimDocuments', 'claimCode', claimCode);
354
+ // verify required parameter 'uploadCustomerClaimDocumentsRequestDto' is not null or undefined
355
+ (0, common_1.assertParamExists)('uploadCustomerClaimDocuments', 'uploadCustomerClaimDocumentsRequestDto', uploadCustomerClaimDocumentsRequestDto);
356
+ localVarPath = "/v1/customers/{customerCode}/claims/{claimCode}/documents"
357
+ .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)))
358
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
359
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
360
+ if (configuration) {
361
+ baseOptions = configuration.baseOptions;
362
+ baseAccessToken = configuration.accessToken;
363
+ }
364
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
365
+ localVarHeaderParameter = {};
366
+ localVarQueryParameter = {};
367
+ // authentication bearer required
368
+ // http bearer authentication required
369
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
370
+ case 1:
371
+ // authentication bearer required
372
+ // http bearer authentication required
373
+ _a.sent();
374
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
375
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
376
+ }
377
+ localVarHeaderParameter['Content-Type'] = 'application/json';
378
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
379
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
380
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
381
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadCustomerClaimDocumentsRequestDto, localVarRequestOptions, configuration);
382
+ return [2 /*return*/, {
383
+ url: (0, common_1.toPathString)(localVarUrlObj),
384
+ options: localVarRequestOptions,
385
+ }];
386
+ }
387
+ });
388
+ });
389
+ },
390
+ };
391
+ };
392
+ exports.ClaimsApiAxiosParamCreator = ClaimsApiAxiosParamCreator;
393
+ /**
394
+ * ClaimsApi - functional programming interface
395
+ * @export
396
+ */
397
+ var ClaimsApiFp = function (configuration) {
398
+ var localVarAxiosParamCreator = (0, exports.ClaimsApiAxiosParamCreator)(configuration);
399
+ return {
400
+ /**
401
+ * Create a new claim for customer.
402
+ * @summary Create a new claim
403
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
404
+ * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
405
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, options) {
410
+ return __awaiter(this, void 0, void 0, function () {
411
+ var localVarAxiosArgs;
412
+ return __generator(this, function (_a) {
413
+ switch (_a.label) {
414
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, options)];
415
+ case 1:
416
+ localVarAxiosArgs = _a.sent();
417
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
418
+ }
419
+ });
420
+ });
421
+ },
422
+ /**
423
+ * Get claim for customer.
424
+ * @summary Get claim
425
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
426
+ * @param {string} claimCode The claim code to identify a claim.
427
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
428
+ * @param {*} [options] Override http request option.
429
+ * @throws {RequiredError}
430
+ */
431
+ getCustomerClaim: function (customerCode, claimCode, authorization, options) {
432
+ return __awaiter(this, void 0, void 0, function () {
433
+ var localVarAxiosArgs;
434
+ return __generator(this, function (_a) {
435
+ switch (_a.label) {
436
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomerClaim(customerCode, claimCode, authorization, options)];
437
+ case 1:
438
+ localVarAxiosArgs = _a.sent();
439
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
440
+ }
441
+ });
442
+ });
443
+ },
444
+ /**
445
+ * List claims by customer.
446
+ * @summary List claims
447
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
448
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
449
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
450
+ * @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.
451
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
452
+ * @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.
453
+ * @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.
454
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
459
+ return __awaiter(this, void 0, void 0, function () {
460
+ var localVarAxiosArgs;
461
+ return __generator(this, function (_a) {
462
+ switch (_a.label) {
463
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options)];
464
+ case 1:
465
+ localVarAxiosArgs = _a.sent();
466
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
467
+ }
468
+ });
469
+ });
470
+ },
471
+ /**
472
+ * Update claim for customer.
473
+ * @summary Update claim
474
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
475
+ * @param {string} claimCode The claim code to identify a claim.
476
+ * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
477
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, authorization, options) {
482
+ return __awaiter(this, void 0, void 0, function () {
483
+ var localVarAxiosArgs;
484
+ return __generator(this, function (_a) {
485
+ switch (_a.label) {
486
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, options)];
487
+ case 1:
488
+ localVarAxiosArgs = _a.sent();
489
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
490
+ }
491
+ });
492
+ });
493
+ },
494
+ /**
495
+ * API to upload and attach documents to a claim.
496
+ * @summary Upload claim documents
497
+ * @param {string} customerCode
498
+ * @param {string} claimCode The claim code to identify a claim.
499
+ * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
500
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, options) {
505
+ return __awaiter(this, void 0, void 0, function () {
506
+ var localVarAxiosArgs;
507
+ return __generator(this, function (_a) {
508
+ switch (_a.label) {
509
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, options)];
510
+ case 1:
511
+ localVarAxiosArgs = _a.sent();
512
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
513
+ }
514
+ });
515
+ });
516
+ },
517
+ };
518
+ };
519
+ exports.ClaimsApiFp = ClaimsApiFp;
520
+ /**
521
+ * ClaimsApi - factory interface
522
+ * @export
523
+ */
524
+ var ClaimsApiFactory = function (configuration, basePath, axios) {
525
+ var localVarFp = (0, exports.ClaimsApiFp)(configuration);
526
+ return {
527
+ /**
528
+ * Create a new claim for customer.
529
+ * @summary Create a new claim
530
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
531
+ * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
532
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
533
+ * @param {*} [options] Override http request option.
534
+ * @throws {RequiredError}
535
+ */
536
+ createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, options) {
537
+ return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
538
+ },
539
+ /**
540
+ * Get claim for customer.
541
+ * @summary Get claim
542
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
543
+ * @param {string} claimCode The claim code to identify a claim.
544
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
545
+ * @param {*} [options] Override http request option.
546
+ * @throws {RequiredError}
547
+ */
548
+ getCustomerClaim: function (customerCode, claimCode, authorization, options) {
549
+ return localVarFp.getCustomerClaim(customerCode, claimCode, authorization, options).then(function (request) { return request(axios, basePath); });
550
+ },
551
+ /**
552
+ * List claims by customer.
553
+ * @summary List claims
554
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
555
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
556
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
557
+ * @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.
558
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
559
+ * @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.
560
+ * @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.
561
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
562
+ * @param {*} [options] Override http request option.
563
+ * @throws {RequiredError}
564
+ */
565
+ listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
566
+ return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
567
+ },
568
+ /**
569
+ * Update claim for customer.
570
+ * @summary Update claim
571
+ * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
572
+ * @param {string} claimCode The claim code to identify a claim.
573
+ * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
574
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ */
578
+ updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, authorization, options) {
579
+ return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
580
+ },
581
+ /**
582
+ * API to upload and attach documents to a claim.
583
+ * @summary Upload claim documents
584
+ * @param {string} customerCode
585
+ * @param {string} claimCode The claim code to identify a claim.
586
+ * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
587
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ */
591
+ uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, options) {
592
+ return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
593
+ },
594
+ };
595
+ };
596
+ exports.ClaimsApiFactory = ClaimsApiFactory;
597
+ /**
598
+ * ClaimsApi - object-oriented interface
599
+ * @export
600
+ * @class ClaimsApi
601
+ * @extends {BaseAPI}
602
+ */
603
+ var ClaimsApi = /** @class */ (function (_super) {
604
+ __extends(ClaimsApi, _super);
605
+ function ClaimsApi() {
606
+ return _super !== null && _super.apply(this, arguments) || this;
607
+ }
608
+ /**
609
+ * Create a new claim for customer.
610
+ * @summary Create a new claim
611
+ * @param {ClaimsApiCreateCustomerClaimRequest} requestParameters Request parameters.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ * @memberof ClaimsApi
615
+ */
616
+ ClaimsApi.prototype.createCustomerClaim = function (requestParameters, options) {
617
+ var _this = this;
618
+ return (0, exports.ClaimsApiFp)(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
619
+ };
620
+ /**
621
+ * Get claim for customer.
622
+ * @summary Get claim
623
+ * @param {ClaimsApiGetCustomerClaimRequest} requestParameters Request parameters.
624
+ * @param {*} [options] Override http request option.
625
+ * @throws {RequiredError}
626
+ * @memberof ClaimsApi
627
+ */
628
+ ClaimsApi.prototype.getCustomerClaim = function (requestParameters, options) {
629
+ var _this = this;
630
+ return (0, exports.ClaimsApiFp)(this.configuration).getCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
631
+ };
632
+ /**
633
+ * List claims by customer.
634
+ * @summary List claims
635
+ * @param {ClaimsApiListCustomerClaimsRequest} requestParameters Request parameters.
636
+ * @param {*} [options] Override http request option.
637
+ * @throws {RequiredError}
638
+ * @memberof ClaimsApi
639
+ */
640
+ ClaimsApi.prototype.listCustomerClaims = function (requestParameters, options) {
641
+ var _this = this;
642
+ return (0, exports.ClaimsApiFp)(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
643
+ };
644
+ /**
645
+ * Update claim for customer.
646
+ * @summary Update claim
647
+ * @param {ClaimsApiUpdateCustomerClaimRequest} requestParameters Request parameters.
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ * @memberof ClaimsApi
651
+ */
652
+ ClaimsApi.prototype.updateCustomerClaim = function (requestParameters, options) {
653
+ var _this = this;
654
+ return (0, exports.ClaimsApiFp)(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
655
+ };
656
+ /**
657
+ * API to upload and attach documents to a claim.
658
+ * @summary Upload claim documents
659
+ * @param {ClaimsApiUploadCustomerClaimDocumentsRequest} requestParameters Request parameters.
660
+ * @param {*} [options] Override http request option.
661
+ * @throws {RequiredError}
662
+ * @memberof ClaimsApi
663
+ */
664
+ ClaimsApi.prototype.uploadCustomerClaimDocuments = function (requestParameters, options) {
665
+ var _this = this;
666
+ return (0, exports.ClaimsApiFp)(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
667
+ };
668
+ return ClaimsApi;
669
+ }(base_1.BaseAPI));
670
+ exports.ClaimsApi = ClaimsApi;