@s-corp-biz/biz-entity-api 1.9.0-staging.8 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/election-api.d.ts +98 -0
- package/lib/api/election-api.js +264 -0
- package/lib/api/hubspot-api.d.ts +99 -0
- package/lib/api/hubspot-api.js +295 -0
- package/lib/api/stripe-api.d.ts +94 -9
- package/lib/api/stripe-api.js +258 -14
- package/lib/api/tax-data-api.d.ts +229 -0
- package/lib/api/tax-data-api.js +653 -0
- package/lib/api.d.ts +2 -0
- package/lib/api.js +2 -0
- package/lib/models/capital-loss-limit-response.d.ts +42 -0
- package/lib/models/company-delivery-details.d.ts +36 -0
- package/lib/models/company-delivery-details.js +15 -0
- package/lib/models/company-response.d.ts +18 -0
- package/lib/models/company-update-request.d.ts +6 -0
- package/lib/models/company-user-request.d.ts +18 -0
- package/lib/models/company-user-response.d.ts +21 -2
- package/lib/models/{create-payment-intent-request.d.ts → confirm-payment-request.d.ts} +7 -7
- package/lib/models/confirm-payment-request.js +15 -0
- package/lib/models/create-election-payment-request.d.ts +31 -0
- package/lib/models/create-election-payment-request.js +15 -0
- package/lib/models/create-election-payment-response.d.ts +36 -0
- package/lib/models/create-election-payment-response.js +15 -0
- package/lib/models/fill2553-irs-form-request.d.ts +43 -0
- package/lib/models/index.d.ts +15 -1
- package/lib/models/index.js +15 -1
- package/lib/models/invitation-status.d.ts +23 -0
- package/lib/models/invitation-status.js +27 -0
- package/lib/models/json-element.d.ts +25 -0
- package/lib/models/json-element.js +15 -0
- package/lib/models/json-value-kind.d.ts +26 -0
- package/lib/models/json-value-kind.js +30 -0
- package/lib/models/payment-status-enum.d.ts +22 -0
- package/lib/models/payment-status-enum.js +26 -0
- package/lib/models/payment-status-response.d.ts +36 -0
- package/lib/models/payment-status-response.js +15 -0
- package/lib/models/qbi-threshold-response.d.ts +42 -0
- package/lib/models/qbi-threshold-response.js +15 -0
- package/lib/models/scorp-election-finalize-request.d.ts +25 -0
- package/lib/models/scorp-election-finalize-request.js +15 -0
- package/lib/models/scorp-election-response.d.ts +19 -0
- package/lib/models/shareholder-pdf-info.d.ts +78 -0
- package/lib/models/shareholder-pdf-info.js +15 -0
- package/lib/models/submit2553-irs-form-request.d.ts +32 -0
- package/lib/models/submit2553-irs-form-request.js +15 -0
- package/lib/models/tax-calculation-parameter-response.d.ts +54 -0
- package/lib/models/tax-calculation-parameter-response.js +15 -0
- package/lib/models/user-response.d.ts +6 -0
- package/lib/models/user-update-request.d.ts +6 -0
- package/package.json +1 -1
- /package/lib/models/{create-payment-intent-request.js → capital-loss-limit-response.js} +0 -0
|
@@ -13,9 +13,12 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import type { Fill2553IrsFormRequest } from '../models';
|
|
16
|
+
import type { PaymentStatusResponse } from '../models';
|
|
16
17
|
import type { ScorpElectionCreateRequest } from '../models';
|
|
18
|
+
import type { ScorpElectionFinalizeRequest } from '../models';
|
|
17
19
|
import type { ScorpElectionResponse } from '../models';
|
|
18
20
|
import type { ScorpElectionUpdateRequest } from '../models';
|
|
21
|
+
import type { Submit2553IrsFormRequest } from '../models';
|
|
19
22
|
/**
|
|
20
23
|
* ElectionApi - axios parameter creator
|
|
21
24
|
* @export
|
|
@@ -48,6 +51,14 @@ export declare const ElectionApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
48
51
|
* @throws {RequiredError}
|
|
49
52
|
*/
|
|
50
53
|
apiElectionIdDelete: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @param {string} id
|
|
57
|
+
* @param {ScorpElectionFinalizeRequest} [scorpElectionFinalizeRequest]
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
*/
|
|
61
|
+
apiElectionIdFinalizePost: (id: string, scorpElectionFinalizeRequest?: ScorpElectionFinalizeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
51
62
|
/**
|
|
52
63
|
*
|
|
53
64
|
* @param {string} id
|
|
@@ -55,6 +66,13 @@ export declare const ElectionApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
55
66
|
* @throws {RequiredError}
|
|
56
67
|
*/
|
|
57
68
|
apiElectionIdGet: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @param {string} id
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
*/
|
|
75
|
+
apiElectionIdPaymentStatusGet: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
76
|
/**
|
|
59
77
|
*
|
|
60
78
|
* @param {string} id
|
|
@@ -63,6 +81,14 @@ export declare const ElectionApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
63
81
|
* @throws {RequiredError}
|
|
64
82
|
*/
|
|
65
83
|
apiElectionIdPut: (id: string, scorpElectionUpdateRequest?: ScorpElectionUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @param {string} id
|
|
87
|
+
* @param {Submit2553IrsFormRequest} [submit2553IrsFormRequest]
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
apiElectionIdSubmitAndDeliverPost: (id: string, submit2553IrsFormRequest?: Submit2553IrsFormRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
66
92
|
/**
|
|
67
93
|
*
|
|
68
94
|
* @param {string} id
|
|
@@ -111,6 +137,14 @@ export declare const ElectionApiFp: (configuration?: Configuration) => {
|
|
|
111
137
|
* @throws {RequiredError}
|
|
112
138
|
*/
|
|
113
139
|
apiElectionIdDelete(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @param {string} id
|
|
143
|
+
* @param {ScorpElectionFinalizeRequest} [scorpElectionFinalizeRequest]
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
apiElectionIdFinalizePost(id: string, scorpElectionFinalizeRequest?: ScorpElectionFinalizeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScorpElectionResponse>>;
|
|
114
148
|
/**
|
|
115
149
|
*
|
|
116
150
|
* @param {string} id
|
|
@@ -118,6 +152,13 @@ export declare const ElectionApiFp: (configuration?: Configuration) => {
|
|
|
118
152
|
* @throws {RequiredError}
|
|
119
153
|
*/
|
|
120
154
|
apiElectionIdGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScorpElectionResponse>>;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @param {string} id
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
apiElectionIdPaymentStatusGet(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentStatusResponse>>;
|
|
121
162
|
/**
|
|
122
163
|
*
|
|
123
164
|
* @param {string} id
|
|
@@ -126,6 +167,14 @@ export declare const ElectionApiFp: (configuration?: Configuration) => {
|
|
|
126
167
|
* @throws {RequiredError}
|
|
127
168
|
*/
|
|
128
169
|
apiElectionIdPut(id: string, scorpElectionUpdateRequest?: ScorpElectionUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScorpElectionResponse>>;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @param {string} id
|
|
173
|
+
* @param {Submit2553IrsFormRequest} [submit2553IrsFormRequest]
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
apiElectionIdSubmitAndDeliverPost(id: string, submit2553IrsFormRequest?: Submit2553IrsFormRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
129
178
|
/**
|
|
130
179
|
*
|
|
131
180
|
* @param {string} id
|
|
@@ -174,6 +223,14 @@ export declare const ElectionApiFactory: (configuration?: Configuration, basePat
|
|
|
174
223
|
* @throws {RequiredError}
|
|
175
224
|
*/
|
|
176
225
|
apiElectionIdDelete(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @param {string} id
|
|
229
|
+
* @param {ScorpElectionFinalizeRequest} [scorpElectionFinalizeRequest]
|
|
230
|
+
* @param {*} [options] Override http request option.
|
|
231
|
+
* @throws {RequiredError}
|
|
232
|
+
*/
|
|
233
|
+
apiElectionIdFinalizePost(id: string, scorpElectionFinalizeRequest?: ScorpElectionFinalizeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ScorpElectionResponse>;
|
|
177
234
|
/**
|
|
178
235
|
*
|
|
179
236
|
* @param {string} id
|
|
@@ -181,6 +238,13 @@ export declare const ElectionApiFactory: (configuration?: Configuration, basePat
|
|
|
181
238
|
* @throws {RequiredError}
|
|
182
239
|
*/
|
|
183
240
|
apiElectionIdGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ScorpElectionResponse>;
|
|
241
|
+
/**
|
|
242
|
+
*
|
|
243
|
+
* @param {string} id
|
|
244
|
+
* @param {*} [options] Override http request option.
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
apiElectionIdPaymentStatusGet(id: string, options?: RawAxiosRequestConfig): AxiosPromise<PaymentStatusResponse>;
|
|
184
248
|
/**
|
|
185
249
|
*
|
|
186
250
|
* @param {string} id
|
|
@@ -189,6 +253,14 @@ export declare const ElectionApiFactory: (configuration?: Configuration, basePat
|
|
|
189
253
|
* @throws {RequiredError}
|
|
190
254
|
*/
|
|
191
255
|
apiElectionIdPut(id: string, scorpElectionUpdateRequest?: ScorpElectionUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ScorpElectionResponse>;
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @param {string} id
|
|
259
|
+
* @param {Submit2553IrsFormRequest} [submit2553IrsFormRequest]
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
apiElectionIdSubmitAndDeliverPost(id: string, submit2553IrsFormRequest?: Submit2553IrsFormRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
192
264
|
/**
|
|
193
265
|
*
|
|
194
266
|
* @param {string} id
|
|
@@ -243,6 +315,15 @@ export declare class ElectionApi extends BaseAPI {
|
|
|
243
315
|
* @memberof ElectionApi
|
|
244
316
|
*/
|
|
245
317
|
apiElectionIdDelete(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
318
|
+
/**
|
|
319
|
+
*
|
|
320
|
+
* @param {string} id
|
|
321
|
+
* @param {ScorpElectionFinalizeRequest} [scorpElectionFinalizeRequest]
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
* @memberof ElectionApi
|
|
325
|
+
*/
|
|
326
|
+
apiElectionIdFinalizePost(id: string, scorpElectionFinalizeRequest?: ScorpElectionFinalizeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ScorpElectionResponse, any, {}>>;
|
|
246
327
|
/**
|
|
247
328
|
*
|
|
248
329
|
* @param {string} id
|
|
@@ -251,6 +332,14 @@ export declare class ElectionApi extends BaseAPI {
|
|
|
251
332
|
* @memberof ElectionApi
|
|
252
333
|
*/
|
|
253
334
|
apiElectionIdGet(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ScorpElectionResponse, any, {}>>;
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @param {string} id
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
* @memberof ElectionApi
|
|
341
|
+
*/
|
|
342
|
+
apiElectionIdPaymentStatusGet(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentStatusResponse, any, {}>>;
|
|
254
343
|
/**
|
|
255
344
|
*
|
|
256
345
|
* @param {string} id
|
|
@@ -260,6 +349,15 @@ export declare class ElectionApi extends BaseAPI {
|
|
|
260
349
|
* @memberof ElectionApi
|
|
261
350
|
*/
|
|
262
351
|
apiElectionIdPut(id: string, scorpElectionUpdateRequest?: ScorpElectionUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ScorpElectionResponse, any, {}>>;
|
|
352
|
+
/**
|
|
353
|
+
*
|
|
354
|
+
* @param {string} id
|
|
355
|
+
* @param {Submit2553IrsFormRequest} [submit2553IrsFormRequest]
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
* @memberof ElectionApi
|
|
359
|
+
*/
|
|
360
|
+
apiElectionIdSubmitAndDeliverPost(id: string, submit2553IrsFormRequest?: Submit2553IrsFormRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
263
361
|
/**
|
|
264
362
|
*
|
|
265
363
|
* @param {string} id
|
package/lib/api/election-api.js
CHANGED
|
@@ -252,6 +252,51 @@ var ElectionApiAxiosParamCreator = function (configuration) {
|
|
|
252
252
|
});
|
|
253
253
|
});
|
|
254
254
|
},
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @param {string} id
|
|
258
|
+
* @param {ScorpElectionFinalizeRequest} [scorpElectionFinalizeRequest]
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
apiElectionIdFinalizePost: function (id, scorpElectionFinalizeRequest, options) {
|
|
263
|
+
if (options === void 0) { options = {}; }
|
|
264
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
265
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
266
|
+
return __generator(this, function (_a) {
|
|
267
|
+
switch (_a.label) {
|
|
268
|
+
case 0:
|
|
269
|
+
// verify required parameter 'id' is not null or undefined
|
|
270
|
+
(0, common_1.assertParamExists)('apiElectionIdFinalizePost', 'id', id);
|
|
271
|
+
localVarPath = "/api/Election/{id}/finalize"
|
|
272
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
273
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
274
|
+
if (configuration) {
|
|
275
|
+
baseOptions = configuration.baseOptions;
|
|
276
|
+
}
|
|
277
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
278
|
+
localVarHeaderParameter = {};
|
|
279
|
+
localVarQueryParameter = {};
|
|
280
|
+
// authentication Bearer required
|
|
281
|
+
// http bearer authentication required
|
|
282
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
283
|
+
case 1:
|
|
284
|
+
// authentication Bearer required
|
|
285
|
+
// http bearer authentication required
|
|
286
|
+
_a.sent();
|
|
287
|
+
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
288
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
289
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
290
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
291
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scorpElectionFinalizeRequest, localVarRequestOptions, configuration);
|
|
292
|
+
return [2 /*return*/, {
|
|
293
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
294
|
+
options: localVarRequestOptions,
|
|
295
|
+
}];
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
},
|
|
255
300
|
/**
|
|
256
301
|
*
|
|
257
302
|
* @param {string} id
|
|
@@ -294,6 +339,48 @@ var ElectionApiAxiosParamCreator = function (configuration) {
|
|
|
294
339
|
});
|
|
295
340
|
});
|
|
296
341
|
},
|
|
342
|
+
/**
|
|
343
|
+
*
|
|
344
|
+
* @param {string} id
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
apiElectionIdPaymentStatusGet: function (id, options) {
|
|
349
|
+
if (options === void 0) { options = {}; }
|
|
350
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
351
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
352
|
+
return __generator(this, function (_a) {
|
|
353
|
+
switch (_a.label) {
|
|
354
|
+
case 0:
|
|
355
|
+
// verify required parameter 'id' is not null or undefined
|
|
356
|
+
(0, common_1.assertParamExists)('apiElectionIdPaymentStatusGet', 'id', id);
|
|
357
|
+
localVarPath = "/api/Election/{id}/payment-status"
|
|
358
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
359
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
360
|
+
if (configuration) {
|
|
361
|
+
baseOptions = configuration.baseOptions;
|
|
362
|
+
}
|
|
363
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
364
|
+
localVarHeaderParameter = {};
|
|
365
|
+
localVarQueryParameter = {};
|
|
366
|
+
// authentication Bearer required
|
|
367
|
+
// http bearer authentication required
|
|
368
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
369
|
+
case 1:
|
|
370
|
+
// authentication Bearer required
|
|
371
|
+
// http bearer authentication required
|
|
372
|
+
_a.sent();
|
|
373
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
374
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
375
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
376
|
+
return [2 /*return*/, {
|
|
377
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
378
|
+
options: localVarRequestOptions,
|
|
379
|
+
}];
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
});
|
|
383
|
+
},
|
|
297
384
|
/**
|
|
298
385
|
*
|
|
299
386
|
* @param {string} id
|
|
@@ -339,6 +426,51 @@ var ElectionApiAxiosParamCreator = function (configuration) {
|
|
|
339
426
|
});
|
|
340
427
|
});
|
|
341
428
|
},
|
|
429
|
+
/**
|
|
430
|
+
*
|
|
431
|
+
* @param {string} id
|
|
432
|
+
* @param {Submit2553IrsFormRequest} [submit2553IrsFormRequest]
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
apiElectionIdSubmitAndDeliverPost: function (id, submit2553IrsFormRequest, options) {
|
|
437
|
+
if (options === void 0) { options = {}; }
|
|
438
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
439
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
440
|
+
return __generator(this, function (_a) {
|
|
441
|
+
switch (_a.label) {
|
|
442
|
+
case 0:
|
|
443
|
+
// verify required parameter 'id' is not null or undefined
|
|
444
|
+
(0, common_1.assertParamExists)('apiElectionIdSubmitAndDeliverPost', 'id', id);
|
|
445
|
+
localVarPath = "/api/Election/{id}/submit-and-deliver"
|
|
446
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
447
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
448
|
+
if (configuration) {
|
|
449
|
+
baseOptions = configuration.baseOptions;
|
|
450
|
+
}
|
|
451
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
452
|
+
localVarHeaderParameter = {};
|
|
453
|
+
localVarQueryParameter = {};
|
|
454
|
+
// authentication Bearer required
|
|
455
|
+
// http bearer authentication required
|
|
456
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
457
|
+
case 1:
|
|
458
|
+
// authentication Bearer required
|
|
459
|
+
// http bearer authentication required
|
|
460
|
+
_a.sent();
|
|
461
|
+
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
462
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
463
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
464
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
465
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(submit2553IrsFormRequest, localVarRequestOptions, configuration);
|
|
466
|
+
return [2 /*return*/, {
|
|
467
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
468
|
+
options: localVarRequestOptions,
|
|
469
|
+
}];
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
});
|
|
473
|
+
},
|
|
342
474
|
/**
|
|
343
475
|
*
|
|
344
476
|
* @param {string} id
|
|
@@ -526,6 +658,29 @@ var ElectionApiFp = function (configuration) {
|
|
|
526
658
|
});
|
|
527
659
|
});
|
|
528
660
|
},
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* @param {string} id
|
|
664
|
+
* @param {ScorpElectionFinalizeRequest} [scorpElectionFinalizeRequest]
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
apiElectionIdFinalizePost: function (id, scorpElectionFinalizeRequest, options) {
|
|
669
|
+
var _a, _b, _c;
|
|
670
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
671
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
672
|
+
return __generator(this, function (_d) {
|
|
673
|
+
switch (_d.label) {
|
|
674
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiElectionIdFinalizePost(id, scorpElectionFinalizeRequest, options)];
|
|
675
|
+
case 1:
|
|
676
|
+
localVarAxiosArgs = _d.sent();
|
|
677
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
678
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElectionApi.apiElectionIdFinalizePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
679
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
680
|
+
}
|
|
681
|
+
});
|
|
682
|
+
});
|
|
683
|
+
},
|
|
529
684
|
/**
|
|
530
685
|
*
|
|
531
686
|
* @param {string} id
|
|
@@ -548,6 +703,28 @@ var ElectionApiFp = function (configuration) {
|
|
|
548
703
|
});
|
|
549
704
|
});
|
|
550
705
|
},
|
|
706
|
+
/**
|
|
707
|
+
*
|
|
708
|
+
* @param {string} id
|
|
709
|
+
* @param {*} [options] Override http request option.
|
|
710
|
+
* @throws {RequiredError}
|
|
711
|
+
*/
|
|
712
|
+
apiElectionIdPaymentStatusGet: function (id, options) {
|
|
713
|
+
var _a, _b, _c;
|
|
714
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
715
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
716
|
+
return __generator(this, function (_d) {
|
|
717
|
+
switch (_d.label) {
|
|
718
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiElectionIdPaymentStatusGet(id, options)];
|
|
719
|
+
case 1:
|
|
720
|
+
localVarAxiosArgs = _d.sent();
|
|
721
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
722
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElectionApi.apiElectionIdPaymentStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
723
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
724
|
+
}
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
},
|
|
551
728
|
/**
|
|
552
729
|
*
|
|
553
730
|
* @param {string} id
|
|
@@ -571,6 +748,29 @@ var ElectionApiFp = function (configuration) {
|
|
|
571
748
|
});
|
|
572
749
|
});
|
|
573
750
|
},
|
|
751
|
+
/**
|
|
752
|
+
*
|
|
753
|
+
* @param {string} id
|
|
754
|
+
* @param {Submit2553IrsFormRequest} [submit2553IrsFormRequest]
|
|
755
|
+
* @param {*} [options] Override http request option.
|
|
756
|
+
* @throws {RequiredError}
|
|
757
|
+
*/
|
|
758
|
+
apiElectionIdSubmitAndDeliverPost: function (id, submit2553IrsFormRequest, options) {
|
|
759
|
+
var _a, _b, _c;
|
|
760
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
761
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
762
|
+
return __generator(this, function (_d) {
|
|
763
|
+
switch (_d.label) {
|
|
764
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiElectionIdSubmitAndDeliverPost(id, submit2553IrsFormRequest, options)];
|
|
765
|
+
case 1:
|
|
766
|
+
localVarAxiosArgs = _d.sent();
|
|
767
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
768
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElectionApi.apiElectionIdSubmitAndDeliverPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
769
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
});
|
|
773
|
+
},
|
|
574
774
|
/**
|
|
575
775
|
*
|
|
576
776
|
* @param {string} id
|
|
@@ -661,6 +861,16 @@ var ElectionApiFactory = function (configuration, basePath, axios) {
|
|
|
661
861
|
apiElectionIdDelete: function (id, options) {
|
|
662
862
|
return localVarFp.apiElectionIdDelete(id, options).then(function (request) { return request(axios, basePath); });
|
|
663
863
|
},
|
|
864
|
+
/**
|
|
865
|
+
*
|
|
866
|
+
* @param {string} id
|
|
867
|
+
* @param {ScorpElectionFinalizeRequest} [scorpElectionFinalizeRequest]
|
|
868
|
+
* @param {*} [options] Override http request option.
|
|
869
|
+
* @throws {RequiredError}
|
|
870
|
+
*/
|
|
871
|
+
apiElectionIdFinalizePost: function (id, scorpElectionFinalizeRequest, options) {
|
|
872
|
+
return localVarFp.apiElectionIdFinalizePost(id, scorpElectionFinalizeRequest, options).then(function (request) { return request(axios, basePath); });
|
|
873
|
+
},
|
|
664
874
|
/**
|
|
665
875
|
*
|
|
666
876
|
* @param {string} id
|
|
@@ -670,6 +880,15 @@ var ElectionApiFactory = function (configuration, basePath, axios) {
|
|
|
670
880
|
apiElectionIdGet: function (id, options) {
|
|
671
881
|
return localVarFp.apiElectionIdGet(id, options).then(function (request) { return request(axios, basePath); });
|
|
672
882
|
},
|
|
883
|
+
/**
|
|
884
|
+
*
|
|
885
|
+
* @param {string} id
|
|
886
|
+
* @param {*} [options] Override http request option.
|
|
887
|
+
* @throws {RequiredError}
|
|
888
|
+
*/
|
|
889
|
+
apiElectionIdPaymentStatusGet: function (id, options) {
|
|
890
|
+
return localVarFp.apiElectionIdPaymentStatusGet(id, options).then(function (request) { return request(axios, basePath); });
|
|
891
|
+
},
|
|
673
892
|
/**
|
|
674
893
|
*
|
|
675
894
|
* @param {string} id
|
|
@@ -680,6 +899,16 @@ var ElectionApiFactory = function (configuration, basePath, axios) {
|
|
|
680
899
|
apiElectionIdPut: function (id, scorpElectionUpdateRequest, options) {
|
|
681
900
|
return localVarFp.apiElectionIdPut(id, scorpElectionUpdateRequest, options).then(function (request) { return request(axios, basePath); });
|
|
682
901
|
},
|
|
902
|
+
/**
|
|
903
|
+
*
|
|
904
|
+
* @param {string} id
|
|
905
|
+
* @param {Submit2553IrsFormRequest} [submit2553IrsFormRequest]
|
|
906
|
+
* @param {*} [options] Override http request option.
|
|
907
|
+
* @throws {RequiredError}
|
|
908
|
+
*/
|
|
909
|
+
apiElectionIdSubmitAndDeliverPost: function (id, submit2553IrsFormRequest, options) {
|
|
910
|
+
return localVarFp.apiElectionIdSubmitAndDeliverPost(id, submit2553IrsFormRequest, options).then(function (request) { return request(axios, basePath); });
|
|
911
|
+
},
|
|
683
912
|
/**
|
|
684
913
|
*
|
|
685
914
|
* @param {string} id
|
|
@@ -756,6 +985,18 @@ var ElectionApi = /** @class */ (function (_super) {
|
|
|
756
985
|
var _this = this;
|
|
757
986
|
return (0, exports.ElectionApiFp)(this.configuration).apiElectionIdDelete(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
758
987
|
};
|
|
988
|
+
/**
|
|
989
|
+
*
|
|
990
|
+
* @param {string} id
|
|
991
|
+
* @param {ScorpElectionFinalizeRequest} [scorpElectionFinalizeRequest]
|
|
992
|
+
* @param {*} [options] Override http request option.
|
|
993
|
+
* @throws {RequiredError}
|
|
994
|
+
* @memberof ElectionApi
|
|
995
|
+
*/
|
|
996
|
+
ElectionApi.prototype.apiElectionIdFinalizePost = function (id, scorpElectionFinalizeRequest, options) {
|
|
997
|
+
var _this = this;
|
|
998
|
+
return (0, exports.ElectionApiFp)(this.configuration).apiElectionIdFinalizePost(id, scorpElectionFinalizeRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
999
|
+
};
|
|
759
1000
|
/**
|
|
760
1001
|
*
|
|
761
1002
|
* @param {string} id
|
|
@@ -767,6 +1008,17 @@ var ElectionApi = /** @class */ (function (_super) {
|
|
|
767
1008
|
var _this = this;
|
|
768
1009
|
return (0, exports.ElectionApiFp)(this.configuration).apiElectionIdGet(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
769
1010
|
};
|
|
1011
|
+
/**
|
|
1012
|
+
*
|
|
1013
|
+
* @param {string} id
|
|
1014
|
+
* @param {*} [options] Override http request option.
|
|
1015
|
+
* @throws {RequiredError}
|
|
1016
|
+
* @memberof ElectionApi
|
|
1017
|
+
*/
|
|
1018
|
+
ElectionApi.prototype.apiElectionIdPaymentStatusGet = function (id, options) {
|
|
1019
|
+
var _this = this;
|
|
1020
|
+
return (0, exports.ElectionApiFp)(this.configuration).apiElectionIdPaymentStatusGet(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1021
|
+
};
|
|
770
1022
|
/**
|
|
771
1023
|
*
|
|
772
1024
|
* @param {string} id
|
|
@@ -779,6 +1031,18 @@ var ElectionApi = /** @class */ (function (_super) {
|
|
|
779
1031
|
var _this = this;
|
|
780
1032
|
return (0, exports.ElectionApiFp)(this.configuration).apiElectionIdPut(id, scorpElectionUpdateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
781
1033
|
};
|
|
1034
|
+
/**
|
|
1035
|
+
*
|
|
1036
|
+
* @param {string} id
|
|
1037
|
+
* @param {Submit2553IrsFormRequest} [submit2553IrsFormRequest]
|
|
1038
|
+
* @param {*} [options] Override http request option.
|
|
1039
|
+
* @throws {RequiredError}
|
|
1040
|
+
* @memberof ElectionApi
|
|
1041
|
+
*/
|
|
1042
|
+
ElectionApi.prototype.apiElectionIdSubmitAndDeliverPost = function (id, submit2553IrsFormRequest, options) {
|
|
1043
|
+
var _this = this;
|
|
1044
|
+
return (0, exports.ElectionApiFp)(this.configuration).apiElectionIdSubmitAndDeliverPost(id, submit2553IrsFormRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1045
|
+
};
|
|
782
1046
|
/**
|
|
783
1047
|
*
|
|
784
1048
|
* @param {string} id
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* biz-entity-api
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { JsonElement } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* HubspotApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const HubspotApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @param {string} plan
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
hubspotSubscriptionsStartPlanGet: (plan: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @param {JsonElement} [jsonElement]
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
*/
|
|
34
|
+
hubspotWebhookPost: (jsonElement?: JsonElement, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* HubspotApi - functional programming interface
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const HubspotApiFp: (configuration?: Configuration) => {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @param {string} plan
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
hubspotSubscriptionsStartPlanGet(plan: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @param {JsonElement} [jsonElement]
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
hubspotWebhookPost(jsonElement?: JsonElement, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* HubspotApi - factory interface
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const HubspotApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @param {string} plan
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
hubspotSubscriptionsStartPlanGet(plan: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @param {JsonElement} [jsonElement]
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
hubspotWebhookPost(jsonElement?: JsonElement, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* HubspotApi - object-oriented interface
|
|
78
|
+
* @export
|
|
79
|
+
* @class HubspotApi
|
|
80
|
+
* @extends {BaseAPI}
|
|
81
|
+
*/
|
|
82
|
+
export declare class HubspotApi extends BaseAPI {
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @param {string} plan
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
* @memberof HubspotApi
|
|
89
|
+
*/
|
|
90
|
+
hubspotSubscriptionsStartPlanGet(plan: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @param {JsonElement} [jsonElement]
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
* @memberof HubspotApi
|
|
97
|
+
*/
|
|
98
|
+
hubspotWebhookPost(jsonElement?: JsonElement, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
99
|
+
}
|