@openfilz-sdk/typescript-ee 1.8.1 → 1.8.2

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 (180) hide show
  1. package/.openapi-generator/FILES +40 -4
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +43 -13
  4. package/api/esign-api.ts +719 -0
  5. package/api/esign-enterprise-api.ts +286 -0
  6. package/api/{digital-signature-public-api.ts → esign-public-api.ts} +183 -24
  7. package/api/{digital-signature-api.ts → esign-templates-api.ts} +137 -113
  8. package/api.ts +4 -2
  9. package/dist/api/esign-api.d.ts +334 -0
  10. package/dist/api/esign-api.js +693 -0
  11. package/dist/api/esign-enterprise-api.d.ts +138 -0
  12. package/dist/api/esign-enterprise-api.js +278 -0
  13. package/dist/{esm/api/digital-signature-public-api.d.ts → api/esign-public-api.d.ts} +81 -12
  14. package/dist/api/{digital-signature-public-api.js → esign-public-api.js} +178 -29
  15. package/dist/api/esign-templates-api.d.ts +234 -0
  16. package/dist/api/{digital-signature-api.js → esign-templates-api.js} +137 -115
  17. package/dist/api.d.ts +4 -2
  18. package/dist/api.js +4 -2
  19. package/dist/esm/api/esign-api.d.ts +334 -0
  20. package/dist/esm/api/esign-api.js +686 -0
  21. package/dist/esm/api/esign-enterprise-api.d.ts +138 -0
  22. package/dist/esm/api/esign-enterprise-api.js +271 -0
  23. package/dist/{api/digital-signature-public-api.d.ts → esm/api/esign-public-api.d.ts} +81 -12
  24. package/dist/esm/api/{digital-signature-public-api.js → esign-public-api.js} +173 -24
  25. package/dist/esm/api/esign-templates-api.d.ts +234 -0
  26. package/dist/esm/api/{digital-signature-api.js → esign-templates-api.js} +132 -110
  27. package/dist/esm/api.d.ts +4 -2
  28. package/dist/esm/api.js +4 -2
  29. package/dist/esm/models/apply-signature-request.d.ts +3 -0
  30. package/dist/esm/models/bulk-row-result.d.ts +17 -0
  31. package/dist/esm/models/bulk-row-result.js +14 -0
  32. package/dist/esm/models/bulk-row.d.ts +19 -0
  33. package/dist/esm/models/bulk-row.js +14 -0
  34. package/dist/esm/models/bulk-send-request.d.ts +19 -0
  35. package/dist/esm/models/bulk-send-request.js +14 -0
  36. package/dist/esm/models/bulk-send-response.d.ts +18 -0
  37. package/dist/esm/models/bulk-send-response.js +14 -0
  38. package/dist/esm/models/create-signature-envelope-request.d.ts +5 -0
  39. package/dist/esm/models/embed-url-response.d.ts +16 -0
  40. package/dist/esm/models/embed-url-response.js +14 -0
  41. package/dist/esm/models/enriched-audit-log.d.ts +3 -0
  42. package/dist/esm/models/enriched-audit-log.js +3 -0
  43. package/dist/esm/models/index.d.ts +16 -0
  44. package/dist/esm/models/index.js +16 -0
  45. package/dist/esm/models/instantiate-template-request.d.ts +22 -0
  46. package/dist/esm/models/instantiate-template-request.js +14 -0
  47. package/dist/esm/models/public-signature-view.d.ts +13 -0
  48. package/dist/esm/models/public-signature-view.js +5 -0
  49. package/dist/esm/models/role-binding.d.ts +19 -0
  50. package/dist/esm/models/role-binding.js +14 -0
  51. package/dist/esm/models/search-by-audit-log-request.d.ts +3 -0
  52. package/dist/esm/models/search-by-audit-log-request.js +3 -0
  53. package/dist/esm/models/settings.d.ts +3 -0
  54. package/dist/esm/models/signature-envelope-dto.d.ts +6 -0
  55. package/dist/esm/models/signature-event-dto.d.ts +33 -0
  56. package/dist/esm/models/signature-event-dto.js +26 -0
  57. package/dist/esm/models/signature-field-dto.d.ts +44 -0
  58. package/dist/esm/models/signature-field-dto.js +27 -0
  59. package/dist/esm/models/signature-field-input.d.ts +39 -0
  60. package/dist/esm/models/signature-field-input.js +27 -0
  61. package/dist/esm/models/signature-field-value.d.ts +16 -0
  62. package/dist/esm/models/signature-field-value.js +14 -0
  63. package/dist/esm/models/signature-recipient-dto.d.ts +16 -0
  64. package/dist/esm/models/signature-recipient-dto.js +9 -0
  65. package/dist/esm/models/signature-recipient-input.d.ts +19 -1
  66. package/dist/esm/models/signature-recipient-input.js +9 -1
  67. package/dist/esm/models/signature-template-dto.d.ts +27 -0
  68. package/dist/esm/models/signature-template-dto.js +14 -0
  69. package/dist/esm/models/signature-template-field.d.ts +40 -0
  70. package/dist/esm/models/signature-template-field.js +27 -0
  71. package/dist/esm/models/signature-template-request.d.ts +23 -0
  72. package/dist/esm/models/signature-template-request.js +14 -0
  73. package/dist/esm/models/signature-template-role.d.ts +28 -0
  74. package/dist/esm/models/signature-template-role.js +22 -0
  75. package/dist/esm/models/verify-otp-request.d.ts +14 -0
  76. package/dist/esm/models/verify-otp-request.js +14 -0
  77. package/dist/models/apply-signature-request.d.ts +3 -0
  78. package/dist/models/bulk-row-result.d.ts +17 -0
  79. package/dist/models/bulk-row-result.js +15 -0
  80. package/dist/models/bulk-row.d.ts +19 -0
  81. package/dist/models/bulk-row.js +15 -0
  82. package/dist/models/bulk-send-request.d.ts +19 -0
  83. package/dist/models/bulk-send-request.js +15 -0
  84. package/dist/models/bulk-send-response.d.ts +18 -0
  85. package/dist/models/bulk-send-response.js +15 -0
  86. package/dist/models/create-signature-envelope-request.d.ts +5 -0
  87. package/dist/models/embed-url-response.d.ts +16 -0
  88. package/dist/models/embed-url-response.js +15 -0
  89. package/dist/models/enriched-audit-log.d.ts +3 -0
  90. package/dist/models/enriched-audit-log.js +3 -0
  91. package/dist/models/index.d.ts +16 -0
  92. package/dist/models/index.js +16 -0
  93. package/dist/models/instantiate-template-request.d.ts +22 -0
  94. package/dist/models/instantiate-template-request.js +15 -0
  95. package/dist/models/public-signature-view.d.ts +13 -0
  96. package/dist/models/public-signature-view.js +6 -1
  97. package/dist/models/role-binding.d.ts +19 -0
  98. package/dist/models/role-binding.js +15 -0
  99. package/dist/models/search-by-audit-log-request.d.ts +3 -0
  100. package/dist/models/search-by-audit-log-request.js +3 -0
  101. package/dist/models/settings.d.ts +3 -0
  102. package/dist/models/signature-envelope-dto.d.ts +6 -0
  103. package/dist/models/signature-event-dto.d.ts +33 -0
  104. package/dist/models/signature-event-dto.js +29 -0
  105. package/dist/models/signature-field-dto.d.ts +44 -0
  106. package/dist/models/signature-field-dto.js +30 -0
  107. package/dist/models/signature-field-input.d.ts +39 -0
  108. package/dist/models/signature-field-input.js +30 -0
  109. package/dist/models/signature-field-value.d.ts +16 -0
  110. package/dist/models/signature-field-value.js +15 -0
  111. package/dist/models/signature-recipient-dto.d.ts +16 -0
  112. package/dist/models/signature-recipient-dto.js +10 -1
  113. package/dist/models/signature-recipient-input.d.ts +19 -1
  114. package/dist/models/signature-recipient-input.js +10 -0
  115. package/dist/models/signature-template-dto.d.ts +27 -0
  116. package/dist/models/signature-template-dto.js +15 -0
  117. package/dist/models/signature-template-field.d.ts +40 -0
  118. package/dist/models/signature-template-field.js +30 -0
  119. package/dist/models/signature-template-request.d.ts +23 -0
  120. package/dist/models/signature-template-request.js +15 -0
  121. package/dist/models/signature-template-role.d.ts +28 -0
  122. package/dist/models/signature-template-role.js +25 -0
  123. package/dist/models/verify-otp-request.d.ts +14 -0
  124. package/dist/models/verify-otp-request.js +15 -0
  125. package/docs/ApplySignatureRequest.md +4 -0
  126. package/docs/BulkRow.md +28 -0
  127. package/docs/BulkRowResult.md +26 -0
  128. package/docs/BulkSendRequest.md +28 -0
  129. package/docs/BulkSendResponse.md +26 -0
  130. package/docs/CreateSignatureEnvelopeRequest.md +10 -0
  131. package/docs/ESignApi.md +463 -0
  132. package/docs/ESignEnterpriseApi.md +164 -0
  133. package/docs/{DigitalSignaturePublicApi.md → ESignPublicApi.md} +118 -12
  134. package/docs/{DigitalSignatureApi.md → ESignTemplatesApi.md} +76 -61
  135. package/docs/EmbedUrlResponse.md +24 -0
  136. package/docs/InstantiateTemplateRequest.md +34 -0
  137. package/docs/PublicSignatureView.md +12 -0
  138. package/docs/RoleBinding.md +30 -0
  139. package/docs/Settings.md +6 -0
  140. package/docs/SignatureEnvelopeDTO.md +12 -0
  141. package/docs/SignatureEventDTO.md +30 -0
  142. package/docs/SignatureFieldDTO.md +46 -0
  143. package/docs/SignatureFieldInput.md +36 -0
  144. package/docs/SignatureFieldValue.md +24 -0
  145. package/docs/SignatureRecipientDTO.md +8 -0
  146. package/docs/SignatureRecipientInput.md +13 -1
  147. package/docs/SignatureTemplateDTO.md +42 -0
  148. package/docs/SignatureTemplateField.md +38 -0
  149. package/docs/SignatureTemplateRequest.md +34 -0
  150. package/docs/SignatureTemplateRole.md +26 -0
  151. package/docs/VerifyOtpRequest.md +20 -0
  152. package/models/apply-signature-request.ts +5 -0
  153. package/models/bulk-row-result.ts +23 -0
  154. package/models/bulk-row.ts +27 -0
  155. package/models/bulk-send-request.ts +27 -0
  156. package/models/bulk-send-response.ts +26 -0
  157. package/models/create-signature-envelope-request.ts +5 -0
  158. package/models/embed-url-response.ts +22 -0
  159. package/models/enriched-audit-log.ts +3 -0
  160. package/models/index.ts +16 -0
  161. package/models/instantiate-template-request.ts +30 -0
  162. package/models/public-signature-view.ts +16 -0
  163. package/models/role-binding.ts +25 -0
  164. package/models/search-by-audit-log-request.ts +3 -0
  165. package/models/settings.ts +3 -0
  166. package/models/signature-envelope-dto.ts +6 -0
  167. package/models/signature-event-dto.ts +42 -0
  168. package/models/signature-field-dto.ts +51 -0
  169. package/models/signature-field-input.ts +46 -0
  170. package/models/signature-field-value.ts +22 -0
  171. package/models/signature-recipient-dto.ts +20 -0
  172. package/models/signature-recipient-input.ts +25 -1
  173. package/models/signature-template-dto.ts +37 -0
  174. package/models/signature-template-field.ts +47 -0
  175. package/models/signature-template-request.ts +33 -0
  176. package/models/signature-template-role.ts +38 -0
  177. package/models/verify-otp-request.ts +20 -0
  178. package/package.json +1 -1
  179. package/dist/api/digital-signature-api.d.ts +0 -221
  180. package/dist/esm/api/digital-signature-api.d.ts +0 -221
@@ -0,0 +1,693 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ListSentStatusEnum = exports.ESignApi = exports.ESignApiFactory = exports.ESignApiFp = exports.ESignApiAxiosParamCreator = void 0;
26
+ const axios_1 = require("axios");
27
+ // Some imports not used depending on template conditions
28
+ // @ts-ignore
29
+ const common_1 = require("../common");
30
+ // @ts-ignore
31
+ const base_1 = require("../base");
32
+ /**
33
+ * ESignApi - axios parameter creator
34
+ */
35
+ const ESignApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ *
39
+ * @summary Cancel a non-terminal envelope
40
+ * @param {string} id
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ cancel: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
45
+ // verify required parameter 'id' is not null or undefined
46
+ (0, common_1.assertParamExists)('cancel', 'id', id);
47
+ const localVarPath = `/api/v1/signatures/{id}/cancel`
48
+ .replace('{id}', encodeURIComponent(String(id)));
49
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
+ let baseOptions;
52
+ if (configuration) {
53
+ baseOptions = configuration.baseOptions;
54
+ }
55
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
56
+ const localVarHeaderParameter = {};
57
+ const localVarQueryParameter = {};
58
+ // authentication keycloak_auth required
59
+ // http bearer authentication required
60
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
61
+ localVarHeaderParameter['Accept'] = 'application/json';
62
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
63
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
64
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
65
+ return {
66
+ url: (0, common_1.toPathString)(localVarUrlObj),
67
+ options: localVarRequestOptions,
68
+ };
69
+ }),
70
+ /**
71
+ *
72
+ * @summary Create an envelope (sent immediately unless send=false)
73
+ * @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ create: (createSignatureEnvelopeRequest_1, ...args_1) => __awaiter(this, [createSignatureEnvelopeRequest_1, ...args_1], void 0, function* (createSignatureEnvelopeRequest, options = {}) {
78
+ // verify required parameter 'createSignatureEnvelopeRequest' is not null or undefined
79
+ (0, common_1.assertParamExists)('create', 'createSignatureEnvelopeRequest', createSignatureEnvelopeRequest);
80
+ const localVarPath = `/api/v1/signatures`;
81
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
82
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
83
+ let baseOptions;
84
+ if (configuration) {
85
+ baseOptions = configuration.baseOptions;
86
+ }
87
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
88
+ const localVarHeaderParameter = {};
89
+ const localVarQueryParameter = {};
90
+ // authentication keycloak_auth required
91
+ // http bearer authentication required
92
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
93
+ localVarHeaderParameter['Content-Type'] = 'application/json';
94
+ localVarHeaderParameter['Accept'] = 'application/json';
95
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
96
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
97
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
98
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSignatureEnvelopeRequest, localVarRequestOptions, configuration);
99
+ return {
100
+ url: (0, common_1.toPathString)(localVarUrlObj),
101
+ options: localVarRequestOptions,
102
+ };
103
+ }),
104
+ /**
105
+ *
106
+ * @summary Audit trail of one of my envelopes
107
+ * @param {string} id
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ events: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
112
+ // verify required parameter 'id' is not null or undefined
113
+ (0, common_1.assertParamExists)('events', 'id', id);
114
+ const localVarPath = `/api/v1/signatures/{id}/events`
115
+ .replace('{id}', encodeURIComponent(String(id)));
116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
117
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ let baseOptions;
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ }
122
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
123
+ const localVarHeaderParameter = {};
124
+ const localVarQueryParameter = {};
125
+ // authentication keycloak_auth required
126
+ // http bearer authentication required
127
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
128
+ localVarHeaderParameter['Accept'] = 'application/json';
129
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
131
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
132
+ return {
133
+ url: (0, common_1.toPathString)(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ }),
137
+ /**
138
+ *
139
+ * @summary Get one of my envelopes (recipients + fields)
140
+ * @param {string} id
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ get2: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
145
+ // verify required parameter 'id' is not null or undefined
146
+ (0, common_1.assertParamExists)('get2', 'id', id);
147
+ const localVarPath = `/api/v1/signatures/{id}`
148
+ .replace('{id}', encodeURIComponent(String(id)));
149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
151
+ let baseOptions;
152
+ if (configuration) {
153
+ baseOptions = configuration.baseOptions;
154
+ }
155
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
156
+ const localVarHeaderParameter = {};
157
+ const localVarQueryParameter = {};
158
+ // authentication keycloak_auth required
159
+ // http bearer authentication required
160
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
161
+ localVarHeaderParameter['Accept'] = 'application/json';
162
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
163
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
164
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
165
+ return {
166
+ url: (0, common_1.toPathString)(localVarUrlObj),
167
+ options: localVarRequestOptions,
168
+ };
169
+ }),
170
+ /**
171
+ *
172
+ * @summary List envelopes I sent for signature
173
+ * @param {ListSentStatusEnum} [status]
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ listSent: (status_1, ...args_1) => __awaiter(this, [status_1, ...args_1], void 0, function* (status, options = {}) {
178
+ const localVarPath = `/api/v1/signatures`;
179
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
180
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
181
+ let baseOptions;
182
+ if (configuration) {
183
+ baseOptions = configuration.baseOptions;
184
+ }
185
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
186
+ const localVarHeaderParameter = {};
187
+ const localVarQueryParameter = {};
188
+ // authentication keycloak_auth required
189
+ // http bearer authentication required
190
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
191
+ if (status !== undefined) {
192
+ localVarQueryParameter['status'] = status;
193
+ }
194
+ localVarHeaderParameter['Accept'] = 'application/json';
195
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
196
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
197
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
198
+ return {
199
+ url: (0, common_1.toPathString)(localVarUrlObj),
200
+ options: localVarRequestOptions,
201
+ };
202
+ }),
203
+ /**
204
+ *
205
+ * @summary List envelopes waiting for my signature
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ listToSign: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
210
+ const localVarPath = `/api/v1/signatures/to-sign`;
211
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
212
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
213
+ let baseOptions;
214
+ if (configuration) {
215
+ baseOptions = configuration.baseOptions;
216
+ }
217
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
218
+ const localVarHeaderParameter = {};
219
+ const localVarQueryParameter = {};
220
+ // authentication keycloak_auth required
221
+ // http bearer authentication required
222
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
223
+ localVarHeaderParameter['Accept'] = 'application/json';
224
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
225
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
227
+ return {
228
+ url: (0, common_1.toPathString)(localVarUrlObj),
229
+ options: localVarRequestOptions,
230
+ };
231
+ }),
232
+ /**
233
+ *
234
+ * @summary Resend the signing link to a recipient (new token, previous one revoked)
235
+ * @param {string} id
236
+ * @param {string} recipientId
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ resend: (id_1, recipientId_1, ...args_1) => __awaiter(this, [id_1, recipientId_1, ...args_1], void 0, function* (id, recipientId, options = {}) {
241
+ // verify required parameter 'id' is not null or undefined
242
+ (0, common_1.assertParamExists)('resend', 'id', id);
243
+ // verify required parameter 'recipientId' is not null or undefined
244
+ (0, common_1.assertParamExists)('resend', 'recipientId', recipientId);
245
+ const localVarPath = `/api/v1/signatures/{id}/recipients/{recipientId}/resend`
246
+ .replace('{id}', encodeURIComponent(String(id)))
247
+ .replace('{recipientId}', encodeURIComponent(String(recipientId)));
248
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
249
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
250
+ let baseOptions;
251
+ if (configuration) {
252
+ baseOptions = configuration.baseOptions;
253
+ }
254
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
255
+ const localVarHeaderParameter = {};
256
+ const localVarQueryParameter = {};
257
+ // authentication keycloak_auth required
258
+ // http bearer authentication required
259
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
260
+ localVarHeaderParameter['Accept'] = 'application/json';
261
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
262
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
263
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
264
+ return {
265
+ url: (0, common_1.toPathString)(localVarUrlObj),
266
+ options: localVarRequestOptions,
267
+ };
268
+ }),
269
+ /**
270
+ *
271
+ * @summary Send a DRAFT envelope
272
+ * @param {string} id
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ send: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
277
+ // verify required parameter 'id' is not null or undefined
278
+ (0, common_1.assertParamExists)('send', 'id', id);
279
+ const localVarPath = `/api/v1/signatures/{id}/send`
280
+ .replace('{id}', encodeURIComponent(String(id)));
281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
282
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
283
+ let baseOptions;
284
+ if (configuration) {
285
+ baseOptions = configuration.baseOptions;
286
+ }
287
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
288
+ const localVarHeaderParameter = {};
289
+ const localVarQueryParameter = {};
290
+ // authentication keycloak_auth required
291
+ // http bearer authentication required
292
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
293
+ localVarHeaderParameter['Accept'] = 'application/json';
294
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
295
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
296
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
297
+ return {
298
+ url: (0, common_1.toPathString)(localVarUrlObj),
299
+ options: localVarRequestOptions,
300
+ };
301
+ }),
302
+ /**
303
+ *
304
+ * @summary Download the sealed PDF of a completed envelope
305
+ * @param {string} id
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ */
309
+ signedDocument: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
310
+ // verify required parameter 'id' is not null or undefined
311
+ (0, common_1.assertParamExists)('signedDocument', 'id', id);
312
+ const localVarPath = `/api/v1/signatures/{id}/signed-document`
313
+ .replace('{id}', encodeURIComponent(String(id)));
314
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
315
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
316
+ let baseOptions;
317
+ if (configuration) {
318
+ baseOptions = configuration.baseOptions;
319
+ }
320
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
321
+ const localVarHeaderParameter = {};
322
+ const localVarQueryParameter = {};
323
+ // authentication keycloak_auth required
324
+ // http bearer authentication required
325
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
326
+ localVarHeaderParameter['Accept'] = 'application/pdf';
327
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
328
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
329
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
330
+ return {
331
+ url: (0, common_1.toPathString)(localVarUrlObj),
332
+ options: localVarRequestOptions,
333
+ };
334
+ }),
335
+ };
336
+ };
337
+ exports.ESignApiAxiosParamCreator = ESignApiAxiosParamCreator;
338
+ /**
339
+ * ESignApi - functional programming interface
340
+ */
341
+ const ESignApiFp = function (configuration) {
342
+ const localVarAxiosParamCreator = (0, exports.ESignApiAxiosParamCreator)(configuration);
343
+ return {
344
+ /**
345
+ *
346
+ * @summary Cancel a non-terminal envelope
347
+ * @param {string} id
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ cancel(id, options) {
352
+ return __awaiter(this, void 0, void 0, function* () {
353
+ var _a, _b, _c;
354
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancel(id, options);
355
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
356
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.cancel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
357
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
358
+ });
359
+ },
360
+ /**
361
+ *
362
+ * @summary Create an envelope (sent immediately unless send=false)
363
+ * @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
364
+ * @param {*} [options] Override http request option.
365
+ * @throws {RequiredError}
366
+ */
367
+ create(createSignatureEnvelopeRequest, options) {
368
+ return __awaiter(this, void 0, void 0, function* () {
369
+ var _a, _b, _c;
370
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.create(createSignatureEnvelopeRequest, options);
371
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
372
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.create']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
373
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
374
+ });
375
+ },
376
+ /**
377
+ *
378
+ * @summary Audit trail of one of my envelopes
379
+ * @param {string} id
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ */
383
+ events(id, options) {
384
+ return __awaiter(this, void 0, void 0, function* () {
385
+ var _a, _b, _c;
386
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.events(id, options);
387
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
388
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.events']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
389
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
390
+ });
391
+ },
392
+ /**
393
+ *
394
+ * @summary Get one of my envelopes (recipients + fields)
395
+ * @param {string} id
396
+ * @param {*} [options] Override http request option.
397
+ * @throws {RequiredError}
398
+ */
399
+ get2(id, options) {
400
+ return __awaiter(this, void 0, void 0, function* () {
401
+ var _a, _b, _c;
402
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.get2(id, options);
403
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
404
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.get2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
405
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
406
+ });
407
+ },
408
+ /**
409
+ *
410
+ * @summary List envelopes I sent for signature
411
+ * @param {ListSentStatusEnum} [status]
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ listSent(status, options) {
416
+ return __awaiter(this, void 0, void 0, function* () {
417
+ var _a, _b, _c;
418
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listSent(status, options);
419
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
420
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.listSent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
421
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
422
+ });
423
+ },
424
+ /**
425
+ *
426
+ * @summary List envelopes waiting for my signature
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ */
430
+ listToSign(options) {
431
+ return __awaiter(this, void 0, void 0, function* () {
432
+ var _a, _b, _c;
433
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listToSign(options);
434
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
435
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.listToSign']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
436
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
437
+ });
438
+ },
439
+ /**
440
+ *
441
+ * @summary Resend the signing link to a recipient (new token, previous one revoked)
442
+ * @param {string} id
443
+ * @param {string} recipientId
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ resend(id, recipientId, options) {
448
+ return __awaiter(this, void 0, void 0, function* () {
449
+ var _a, _b, _c;
450
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resend(id, recipientId, options);
451
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
452
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.resend']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
453
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
454
+ });
455
+ },
456
+ /**
457
+ *
458
+ * @summary Send a DRAFT envelope
459
+ * @param {string} id
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ send(id, options) {
464
+ return __awaiter(this, void 0, void 0, function* () {
465
+ var _a, _b, _c;
466
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.send(id, options);
467
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
468
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.send']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
469
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
470
+ });
471
+ },
472
+ /**
473
+ *
474
+ * @summary Download the sealed PDF of a completed envelope
475
+ * @param {string} id
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ signedDocument(id, options) {
480
+ return __awaiter(this, void 0, void 0, function* () {
481
+ var _a, _b, _c;
482
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.signedDocument(id, options);
483
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
484
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ESignApi.signedDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
485
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
486
+ });
487
+ },
488
+ };
489
+ };
490
+ exports.ESignApiFp = ESignApiFp;
491
+ /**
492
+ * ESignApi - factory interface
493
+ */
494
+ const ESignApiFactory = function (configuration, basePath, axios) {
495
+ const localVarFp = (0, exports.ESignApiFp)(configuration);
496
+ return {
497
+ /**
498
+ *
499
+ * @summary Cancel a non-terminal envelope
500
+ * @param {string} id
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ cancel(id, options) {
505
+ return localVarFp.cancel(id, options).then((request) => request(axios, basePath));
506
+ },
507
+ /**
508
+ *
509
+ * @summary Create an envelope (sent immediately unless send=false)
510
+ * @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ */
514
+ create(createSignatureEnvelopeRequest, options) {
515
+ return localVarFp.create(createSignatureEnvelopeRequest, options).then((request) => request(axios, basePath));
516
+ },
517
+ /**
518
+ *
519
+ * @summary Audit trail of one of my envelopes
520
+ * @param {string} id
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ */
524
+ events(id, options) {
525
+ return localVarFp.events(id, options).then((request) => request(axios, basePath));
526
+ },
527
+ /**
528
+ *
529
+ * @summary Get one of my envelopes (recipients + fields)
530
+ * @param {string} id
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ get2(id, options) {
535
+ return localVarFp.get2(id, options).then((request) => request(axios, basePath));
536
+ },
537
+ /**
538
+ *
539
+ * @summary List envelopes I sent for signature
540
+ * @param {ListSentStatusEnum} [status]
541
+ * @param {*} [options] Override http request option.
542
+ * @throws {RequiredError}
543
+ */
544
+ listSent(status, options) {
545
+ return localVarFp.listSent(status, options).then((request) => request(axios, basePath));
546
+ },
547
+ /**
548
+ *
549
+ * @summary List envelopes waiting for my signature
550
+ * @param {*} [options] Override http request option.
551
+ * @throws {RequiredError}
552
+ */
553
+ listToSign(options) {
554
+ return localVarFp.listToSign(options).then((request) => request(axios, basePath));
555
+ },
556
+ /**
557
+ *
558
+ * @summary Resend the signing link to a recipient (new token, previous one revoked)
559
+ * @param {string} id
560
+ * @param {string} recipientId
561
+ * @param {*} [options] Override http request option.
562
+ * @throws {RequiredError}
563
+ */
564
+ resend(id, recipientId, options) {
565
+ return localVarFp.resend(id, recipientId, options).then((request) => request(axios, basePath));
566
+ },
567
+ /**
568
+ *
569
+ * @summary Send a DRAFT envelope
570
+ * @param {string} id
571
+ * @param {*} [options] Override http request option.
572
+ * @throws {RequiredError}
573
+ */
574
+ send(id, options) {
575
+ return localVarFp.send(id, options).then((request) => request(axios, basePath));
576
+ },
577
+ /**
578
+ *
579
+ * @summary Download the sealed PDF of a completed envelope
580
+ * @param {string} id
581
+ * @param {*} [options] Override http request option.
582
+ * @throws {RequiredError}
583
+ */
584
+ signedDocument(id, options) {
585
+ return localVarFp.signedDocument(id, options).then((request) => request(axios, basePath));
586
+ },
587
+ };
588
+ };
589
+ exports.ESignApiFactory = ESignApiFactory;
590
+ /**
591
+ * ESignApi - object-oriented interface
592
+ */
593
+ class ESignApi extends base_1.BaseAPI {
594
+ /**
595
+ *
596
+ * @summary Cancel a non-terminal envelope
597
+ * @param {string} id
598
+ * @param {*} [options] Override http request option.
599
+ * @throws {RequiredError}
600
+ */
601
+ cancel(id, options) {
602
+ return (0, exports.ESignApiFp)(this.configuration).cancel(id, options).then((request) => request(this.axios, this.basePath));
603
+ }
604
+ /**
605
+ *
606
+ * @summary Create an envelope (sent immediately unless send=false)
607
+ * @param {CreateSignatureEnvelopeRequest} createSignatureEnvelopeRequest
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ */
611
+ create(createSignatureEnvelopeRequest, options) {
612
+ return (0, exports.ESignApiFp)(this.configuration).create(createSignatureEnvelopeRequest, options).then((request) => request(this.axios, this.basePath));
613
+ }
614
+ /**
615
+ *
616
+ * @summary Audit trail of one of my envelopes
617
+ * @param {string} id
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ events(id, options) {
622
+ return (0, exports.ESignApiFp)(this.configuration).events(id, options).then((request) => request(this.axios, this.basePath));
623
+ }
624
+ /**
625
+ *
626
+ * @summary Get one of my envelopes (recipients + fields)
627
+ * @param {string} id
628
+ * @param {*} [options] Override http request option.
629
+ * @throws {RequiredError}
630
+ */
631
+ get2(id, options) {
632
+ return (0, exports.ESignApiFp)(this.configuration).get2(id, options).then((request) => request(this.axios, this.basePath));
633
+ }
634
+ /**
635
+ *
636
+ * @summary List envelopes I sent for signature
637
+ * @param {ListSentStatusEnum} [status]
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ listSent(status, options) {
642
+ return (0, exports.ESignApiFp)(this.configuration).listSent(status, options).then((request) => request(this.axios, this.basePath));
643
+ }
644
+ /**
645
+ *
646
+ * @summary List envelopes waiting for my signature
647
+ * @param {*} [options] Override http request option.
648
+ * @throws {RequiredError}
649
+ */
650
+ listToSign(options) {
651
+ return (0, exports.ESignApiFp)(this.configuration).listToSign(options).then((request) => request(this.axios, this.basePath));
652
+ }
653
+ /**
654
+ *
655
+ * @summary Resend the signing link to a recipient (new token, previous one revoked)
656
+ * @param {string} id
657
+ * @param {string} recipientId
658
+ * @param {*} [options] Override http request option.
659
+ * @throws {RequiredError}
660
+ */
661
+ resend(id, recipientId, options) {
662
+ return (0, exports.ESignApiFp)(this.configuration).resend(id, recipientId, options).then((request) => request(this.axios, this.basePath));
663
+ }
664
+ /**
665
+ *
666
+ * @summary Send a DRAFT envelope
667
+ * @param {string} id
668
+ * @param {*} [options] Override http request option.
669
+ * @throws {RequiredError}
670
+ */
671
+ send(id, options) {
672
+ return (0, exports.ESignApiFp)(this.configuration).send(id, options).then((request) => request(this.axios, this.basePath));
673
+ }
674
+ /**
675
+ *
676
+ * @summary Download the sealed PDF of a completed envelope
677
+ * @param {string} id
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ */
681
+ signedDocument(id, options) {
682
+ return (0, exports.ESignApiFp)(this.configuration).signedDocument(id, options).then((request) => request(this.axios, this.basePath));
683
+ }
684
+ }
685
+ exports.ESignApi = ESignApi;
686
+ exports.ListSentStatusEnum = {
687
+ Draft: 'DRAFT',
688
+ Sent: 'SENT',
689
+ Completed: 'COMPLETED',
690
+ Declined: 'DECLINED',
691
+ Cancelled: 'CANCELLED',
692
+ Expired: 'EXPIRED',
693
+ };