@s-corp-biz/biz-entity-api 1.9.0 → 1.9.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.
- package/lib/api/hubspot-api.d.ts +8 -8
- package/lib/api/hubspot-api.js +19 -19
- package/lib/api/stripe-api.d.ts +16 -16
- package/lib/api/stripe-api.js +37 -37
- package/package.json +1 -1
package/lib/api/hubspot-api.d.ts
CHANGED
|
@@ -24,14 +24,14 @@ export declare const HubspotApiAxiosParamCreator: (configuration?: Configuration
|
|
|
24
24
|
* @param {*} [options] Override http request option.
|
|
25
25
|
* @throws {RequiredError}
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
apiHubspotSubscriptionsStartPlanGet: (plan: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @param {JsonElement} [jsonElement]
|
|
31
31
|
* @param {*} [options] Override http request option.
|
|
32
32
|
* @throws {RequiredError}
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
apiHubspotWebhookPost: (jsonElement?: JsonElement, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
37
|
* HubspotApi - functional programming interface
|
|
@@ -44,14 +44,14 @@ export declare const HubspotApiFp: (configuration?: Configuration) => {
|
|
|
44
44
|
* @param {*} [options] Override http request option.
|
|
45
45
|
* @throws {RequiredError}
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
apiHubspotSubscriptionsStartPlanGet(plan: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @param {JsonElement} [jsonElement]
|
|
51
51
|
* @param {*} [options] Override http request option.
|
|
52
52
|
* @throws {RequiredError}
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
apiHubspotWebhookPost(jsonElement?: JsonElement, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
55
55
|
};
|
|
56
56
|
/**
|
|
57
57
|
* HubspotApi - factory interface
|
|
@@ -64,14 +64,14 @@ export declare const HubspotApiFactory: (configuration?: Configuration, basePath
|
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
65
65
|
* @throws {RequiredError}
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
apiHubspotSubscriptionsStartPlanGet(plan: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @param {JsonElement} [jsonElement]
|
|
71
71
|
* @param {*} [options] Override http request option.
|
|
72
72
|
* @throws {RequiredError}
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
apiHubspotWebhookPost(jsonElement?: JsonElement, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
77
|
* HubspotApi - object-oriented interface
|
|
@@ -87,7 +87,7 @@ export declare class HubspotApi extends BaseAPI {
|
|
|
87
87
|
* @throws {RequiredError}
|
|
88
88
|
* @memberof HubspotApi
|
|
89
89
|
*/
|
|
90
|
-
|
|
90
|
+
apiHubspotSubscriptionsStartPlanGet(plan: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
93
|
* @param {JsonElement} [jsonElement]
|
|
@@ -95,5 +95,5 @@ export declare class HubspotApi extends BaseAPI {
|
|
|
95
95
|
* @throws {RequiredError}
|
|
96
96
|
* @memberof HubspotApi
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
apiHubspotWebhookPost(jsonElement?: JsonElement, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
99
99
|
}
|
package/lib/api/hubspot-api.js
CHANGED
|
@@ -95,7 +95,7 @@ var HubspotApiAxiosParamCreator = function (configuration) {
|
|
|
95
95
|
* @param {*} [options] Override http request option.
|
|
96
96
|
* @throws {RequiredError}
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
apiHubspotSubscriptionsStartPlanGet: function (plan, options) {
|
|
99
99
|
if (options === void 0) { options = {}; }
|
|
100
100
|
return __awaiter(_this, void 0, void 0, function () {
|
|
101
101
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -103,8 +103,8 @@ var HubspotApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
switch (_a.label) {
|
|
104
104
|
case 0:
|
|
105
105
|
// verify required parameter 'plan' is not null or undefined
|
|
106
|
-
(0, common_1.assertParamExists)('
|
|
107
|
-
localVarPath = "/hubspot/subscriptions/start/{plan}"
|
|
106
|
+
(0, common_1.assertParamExists)('apiHubspotSubscriptionsStartPlanGet', 'plan', plan);
|
|
107
|
+
localVarPath = "/api/hubspot/subscriptions/start/{plan}"
|
|
108
108
|
.replace("{".concat("plan", "}"), encodeURIComponent(String(plan)));
|
|
109
109
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
110
110
|
if (configuration) {
|
|
@@ -137,14 +137,14 @@ var HubspotApiAxiosParamCreator = function (configuration) {
|
|
|
137
137
|
* @param {*} [options] Override http request option.
|
|
138
138
|
* @throws {RequiredError}
|
|
139
139
|
*/
|
|
140
|
-
|
|
140
|
+
apiHubspotWebhookPost: function (jsonElement, options) {
|
|
141
141
|
if (options === void 0) { options = {}; }
|
|
142
142
|
return __awaiter(_this, void 0, void 0, function () {
|
|
143
143
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
144
144
|
return __generator(this, function (_a) {
|
|
145
145
|
switch (_a.label) {
|
|
146
146
|
case 0:
|
|
147
|
-
localVarPath = "/hubspot/webhook";
|
|
147
|
+
localVarPath = "/api/hubspot/webhook";
|
|
148
148
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
149
149
|
if (configuration) {
|
|
150
150
|
baseOptions = configuration.baseOptions;
|
|
@@ -188,17 +188,17 @@ var HubspotApiFp = function (configuration) {
|
|
|
188
188
|
* @param {*} [options] Override http request option.
|
|
189
189
|
* @throws {RequiredError}
|
|
190
190
|
*/
|
|
191
|
-
|
|
191
|
+
apiHubspotSubscriptionsStartPlanGet: function (plan, options) {
|
|
192
192
|
var _a, _b, _c;
|
|
193
193
|
return __awaiter(this, void 0, void 0, function () {
|
|
194
194
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
195
195
|
return __generator(this, function (_d) {
|
|
196
196
|
switch (_d.label) {
|
|
197
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
197
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiHubspotSubscriptionsStartPlanGet(plan, options)];
|
|
198
198
|
case 1:
|
|
199
199
|
localVarAxiosArgs = _d.sent();
|
|
200
200
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
201
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HubspotApi.
|
|
201
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HubspotApi.apiHubspotSubscriptionsStartPlanGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
202
202
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
203
203
|
}
|
|
204
204
|
});
|
|
@@ -210,17 +210,17 @@ var HubspotApiFp = function (configuration) {
|
|
|
210
210
|
* @param {*} [options] Override http request option.
|
|
211
211
|
* @throws {RequiredError}
|
|
212
212
|
*/
|
|
213
|
-
|
|
213
|
+
apiHubspotWebhookPost: function (jsonElement, options) {
|
|
214
214
|
var _a, _b, _c;
|
|
215
215
|
return __awaiter(this, void 0, void 0, function () {
|
|
216
216
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
217
217
|
return __generator(this, function (_d) {
|
|
218
218
|
switch (_d.label) {
|
|
219
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
219
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiHubspotWebhookPost(jsonElement, options)];
|
|
220
220
|
case 1:
|
|
221
221
|
localVarAxiosArgs = _d.sent();
|
|
222
222
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
223
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HubspotApi.
|
|
223
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HubspotApi.apiHubspotWebhookPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
224
224
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
225
225
|
}
|
|
226
226
|
});
|
|
@@ -242,8 +242,8 @@ var HubspotApiFactory = function (configuration, basePath, axios) {
|
|
|
242
242
|
* @param {*} [options] Override http request option.
|
|
243
243
|
* @throws {RequiredError}
|
|
244
244
|
*/
|
|
245
|
-
|
|
246
|
-
return localVarFp.
|
|
245
|
+
apiHubspotSubscriptionsStartPlanGet: function (plan, options) {
|
|
246
|
+
return localVarFp.apiHubspotSubscriptionsStartPlanGet(plan, options).then(function (request) { return request(axios, basePath); });
|
|
247
247
|
},
|
|
248
248
|
/**
|
|
249
249
|
*
|
|
@@ -251,8 +251,8 @@ var HubspotApiFactory = function (configuration, basePath, axios) {
|
|
|
251
251
|
* @param {*} [options] Override http request option.
|
|
252
252
|
* @throws {RequiredError}
|
|
253
253
|
*/
|
|
254
|
-
|
|
255
|
-
return localVarFp.
|
|
254
|
+
apiHubspotWebhookPost: function (jsonElement, options) {
|
|
255
|
+
return localVarFp.apiHubspotWebhookPost(jsonElement, options).then(function (request) { return request(axios, basePath); });
|
|
256
256
|
},
|
|
257
257
|
};
|
|
258
258
|
};
|
|
@@ -275,9 +275,9 @@ var HubspotApi = /** @class */ (function (_super) {
|
|
|
275
275
|
* @throws {RequiredError}
|
|
276
276
|
* @memberof HubspotApi
|
|
277
277
|
*/
|
|
278
|
-
HubspotApi.prototype.
|
|
278
|
+
HubspotApi.prototype.apiHubspotSubscriptionsStartPlanGet = function (plan, options) {
|
|
279
279
|
var _this = this;
|
|
280
|
-
return (0, exports.HubspotApiFp)(this.configuration).
|
|
280
|
+
return (0, exports.HubspotApiFp)(this.configuration).apiHubspotSubscriptionsStartPlanGet(plan, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
281
281
|
};
|
|
282
282
|
/**
|
|
283
283
|
*
|
|
@@ -286,9 +286,9 @@ var HubspotApi = /** @class */ (function (_super) {
|
|
|
286
286
|
* @throws {RequiredError}
|
|
287
287
|
* @memberof HubspotApi
|
|
288
288
|
*/
|
|
289
|
-
HubspotApi.prototype.
|
|
289
|
+
HubspotApi.prototype.apiHubspotWebhookPost = function (jsonElement, options) {
|
|
290
290
|
var _this = this;
|
|
291
|
-
return (0, exports.HubspotApiFp)(this.configuration).
|
|
291
|
+
return (0, exports.HubspotApiFp)(this.configuration).apiHubspotWebhookPost(jsonElement, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
292
292
|
};
|
|
293
293
|
return HubspotApi;
|
|
294
294
|
}(base_1.BaseAPI));
|
package/lib/api/stripe-api.d.ts
CHANGED
|
@@ -26,27 +26,27 @@ export declare const StripeApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
26
26
|
* @param {*} [options] Override http request option.
|
|
27
27
|
* @throws {RequiredError}
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
apiStripeConfirmPaymentPost: (confirmPaymentRequest?: ConfirmPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @param {CreateElectionPaymentRequest} [createElectionPaymentRequest]
|
|
33
33
|
* @param {*} [options] Override http request option.
|
|
34
34
|
* @throws {RequiredError}
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
apiStripeCreateElectionPaymentPost: (createElectionPaymentRequest?: CreateElectionPaymentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @param {string} plan
|
|
40
40
|
* @param {*} [options] Override http request option.
|
|
41
41
|
* @throws {RequiredError}
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
apiStripeSubscriptionsStartPlanGet: (plan: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @param {*} [options] Override http request option.
|
|
47
47
|
* @throws {RequiredError}
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
apiStripeWebhookPost: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
52
52
|
* StripeApi - functional programming interface
|
|
@@ -59,27 +59,27 @@ export declare const StripeApiFp: (configuration?: Configuration) => {
|
|
|
59
59
|
* @param {*} [options] Override http request option.
|
|
60
60
|
* @throws {RequiredError}
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
apiStripeConfirmPaymentPost(confirmPaymentRequest?: ConfirmPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @param {CreateElectionPaymentRequest} [createElectionPaymentRequest]
|
|
66
66
|
* @param {*} [options] Override http request option.
|
|
67
67
|
* @throws {RequiredError}
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
apiStripeCreateElectionPaymentPost(createElectionPaymentRequest?: CreateElectionPaymentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateElectionPaymentResponse>>;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @param {string} plan
|
|
73
73
|
* @param {*} [options] Override http request option.
|
|
74
74
|
* @throws {RequiredError}
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
apiStripeSubscriptionsStartPlanGet(plan: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
77
77
|
/**
|
|
78
78
|
*
|
|
79
79
|
* @param {*} [options] Override http request option.
|
|
80
80
|
* @throws {RequiredError}
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
apiStripeWebhookPost(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
85
85
|
* StripeApi - factory interface
|
|
@@ -92,27 +92,27 @@ export declare const StripeApiFactory: (configuration?: Configuration, basePath?
|
|
|
92
92
|
* @param {*} [options] Override http request option.
|
|
93
93
|
* @throws {RequiredError}
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
apiStripeConfirmPaymentPost(confirmPaymentRequest?: ConfirmPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
96
96
|
/**
|
|
97
97
|
*
|
|
98
98
|
* @param {CreateElectionPaymentRequest} [createElectionPaymentRequest]
|
|
99
99
|
* @param {*} [options] Override http request option.
|
|
100
100
|
* @throws {RequiredError}
|
|
101
101
|
*/
|
|
102
|
-
|
|
102
|
+
apiStripeCreateElectionPaymentPost(createElectionPaymentRequest?: CreateElectionPaymentRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateElectionPaymentResponse>;
|
|
103
103
|
/**
|
|
104
104
|
*
|
|
105
105
|
* @param {string} plan
|
|
106
106
|
* @param {*} [options] Override http request option.
|
|
107
107
|
* @throws {RequiredError}
|
|
108
108
|
*/
|
|
109
|
-
|
|
109
|
+
apiStripeSubscriptionsStartPlanGet(plan: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
110
110
|
/**
|
|
111
111
|
*
|
|
112
112
|
* @param {*} [options] Override http request option.
|
|
113
113
|
* @throws {RequiredError}
|
|
114
114
|
*/
|
|
115
|
-
|
|
115
|
+
apiStripeWebhookPost(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
118
118
|
* StripeApi - object-oriented interface
|
|
@@ -128,7 +128,7 @@ export declare class StripeApi extends BaseAPI {
|
|
|
128
128
|
* @throws {RequiredError}
|
|
129
129
|
* @memberof StripeApi
|
|
130
130
|
*/
|
|
131
|
-
|
|
131
|
+
apiStripeConfirmPaymentPost(confirmPaymentRequest?: ConfirmPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
132
132
|
/**
|
|
133
133
|
*
|
|
134
134
|
* @param {CreateElectionPaymentRequest} [createElectionPaymentRequest]
|
|
@@ -136,7 +136,7 @@ export declare class StripeApi extends BaseAPI {
|
|
|
136
136
|
* @throws {RequiredError}
|
|
137
137
|
* @memberof StripeApi
|
|
138
138
|
*/
|
|
139
|
-
|
|
139
|
+
apiStripeCreateElectionPaymentPost(createElectionPaymentRequest?: CreateElectionPaymentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateElectionPaymentResponse, any, {}>>;
|
|
140
140
|
/**
|
|
141
141
|
*
|
|
142
142
|
* @param {string} plan
|
|
@@ -144,12 +144,12 @@ export declare class StripeApi extends BaseAPI {
|
|
|
144
144
|
* @throws {RequiredError}
|
|
145
145
|
* @memberof StripeApi
|
|
146
146
|
*/
|
|
147
|
-
|
|
147
|
+
apiStripeSubscriptionsStartPlanGet(plan: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
148
148
|
/**
|
|
149
149
|
*
|
|
150
150
|
* @param {*} [options] Override http request option.
|
|
151
151
|
* @throws {RequiredError}
|
|
152
152
|
* @memberof StripeApi
|
|
153
153
|
*/
|
|
154
|
-
|
|
154
|
+
apiStripeWebhookPost(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
155
155
|
}
|
package/lib/api/stripe-api.js
CHANGED
|
@@ -95,14 +95,14 @@ var StripeApiAxiosParamCreator = function (configuration) {
|
|
|
95
95
|
* @param {*} [options] Override http request option.
|
|
96
96
|
* @throws {RequiredError}
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
apiStripeConfirmPaymentPost: function (confirmPaymentRequest, options) {
|
|
99
99
|
if (options === void 0) { options = {}; }
|
|
100
100
|
return __awaiter(_this, void 0, void 0, function () {
|
|
101
101
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
102
102
|
return __generator(this, function (_a) {
|
|
103
103
|
switch (_a.label) {
|
|
104
104
|
case 0:
|
|
105
|
-
localVarPath = "/stripe/confirm-payment";
|
|
105
|
+
localVarPath = "/api/stripe/confirm-payment";
|
|
106
106
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
107
107
|
if (configuration) {
|
|
108
108
|
baseOptions = configuration.baseOptions;
|
|
@@ -136,14 +136,14 @@ var StripeApiAxiosParamCreator = function (configuration) {
|
|
|
136
136
|
* @param {*} [options] Override http request option.
|
|
137
137
|
* @throws {RequiredError}
|
|
138
138
|
*/
|
|
139
|
-
|
|
139
|
+
apiStripeCreateElectionPaymentPost: function (createElectionPaymentRequest, options) {
|
|
140
140
|
if (options === void 0) { options = {}; }
|
|
141
141
|
return __awaiter(_this, void 0, void 0, function () {
|
|
142
142
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
143
143
|
return __generator(this, function (_a) {
|
|
144
144
|
switch (_a.label) {
|
|
145
145
|
case 0:
|
|
146
|
-
localVarPath = "/stripe/create-election-payment";
|
|
146
|
+
localVarPath = "/api/stripe/create-election-payment";
|
|
147
147
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
148
148
|
if (configuration) {
|
|
149
149
|
baseOptions = configuration.baseOptions;
|
|
@@ -177,7 +177,7 @@ var StripeApiAxiosParamCreator = function (configuration) {
|
|
|
177
177
|
* @param {*} [options] Override http request option.
|
|
178
178
|
* @throws {RequiredError}
|
|
179
179
|
*/
|
|
180
|
-
|
|
180
|
+
apiStripeSubscriptionsStartPlanGet: function (plan, options) {
|
|
181
181
|
if (options === void 0) { options = {}; }
|
|
182
182
|
return __awaiter(_this, void 0, void 0, function () {
|
|
183
183
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -185,8 +185,8 @@ var StripeApiAxiosParamCreator = function (configuration) {
|
|
|
185
185
|
switch (_a.label) {
|
|
186
186
|
case 0:
|
|
187
187
|
// verify required parameter 'plan' is not null or undefined
|
|
188
|
-
(0, common_1.assertParamExists)('
|
|
189
|
-
localVarPath = "/stripe/subscriptions/start/{plan}"
|
|
188
|
+
(0, common_1.assertParamExists)('apiStripeSubscriptionsStartPlanGet', 'plan', plan);
|
|
189
|
+
localVarPath = "/api/stripe/subscriptions/start/{plan}"
|
|
190
190
|
.replace("{".concat("plan", "}"), encodeURIComponent(String(plan)));
|
|
191
191
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
192
192
|
if (configuration) {
|
|
@@ -218,14 +218,14 @@ var StripeApiAxiosParamCreator = function (configuration) {
|
|
|
218
218
|
* @param {*} [options] Override http request option.
|
|
219
219
|
* @throws {RequiredError}
|
|
220
220
|
*/
|
|
221
|
-
|
|
221
|
+
apiStripeWebhookPost: function (options) {
|
|
222
222
|
if (options === void 0) { options = {}; }
|
|
223
223
|
return __awaiter(_this, void 0, void 0, function () {
|
|
224
224
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
225
225
|
return __generator(this, function (_a) {
|
|
226
226
|
switch (_a.label) {
|
|
227
227
|
case 0:
|
|
228
|
-
localVarPath = "/stripe/webhook";
|
|
228
|
+
localVarPath = "/api/stripe/webhook";
|
|
229
229
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
230
230
|
if (configuration) {
|
|
231
231
|
baseOptions = configuration.baseOptions;
|
|
@@ -267,17 +267,17 @@ var StripeApiFp = function (configuration) {
|
|
|
267
267
|
* @param {*} [options] Override http request option.
|
|
268
268
|
* @throws {RequiredError}
|
|
269
269
|
*/
|
|
270
|
-
|
|
270
|
+
apiStripeConfirmPaymentPost: function (confirmPaymentRequest, options) {
|
|
271
271
|
var _a, _b, _c;
|
|
272
272
|
return __awaiter(this, void 0, void 0, function () {
|
|
273
273
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
274
274
|
return __generator(this, function (_d) {
|
|
275
275
|
switch (_d.label) {
|
|
276
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
276
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiStripeConfirmPaymentPost(confirmPaymentRequest, options)];
|
|
277
277
|
case 1:
|
|
278
278
|
localVarAxiosArgs = _d.sent();
|
|
279
279
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
280
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StripeApi.
|
|
280
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StripeApi.apiStripeConfirmPaymentPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
281
281
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
282
282
|
}
|
|
283
283
|
});
|
|
@@ -289,17 +289,17 @@ var StripeApiFp = function (configuration) {
|
|
|
289
289
|
* @param {*} [options] Override http request option.
|
|
290
290
|
* @throws {RequiredError}
|
|
291
291
|
*/
|
|
292
|
-
|
|
292
|
+
apiStripeCreateElectionPaymentPost: function (createElectionPaymentRequest, options) {
|
|
293
293
|
var _a, _b, _c;
|
|
294
294
|
return __awaiter(this, void 0, void 0, function () {
|
|
295
295
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
296
296
|
return __generator(this, function (_d) {
|
|
297
297
|
switch (_d.label) {
|
|
298
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
298
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiStripeCreateElectionPaymentPost(createElectionPaymentRequest, options)];
|
|
299
299
|
case 1:
|
|
300
300
|
localVarAxiosArgs = _d.sent();
|
|
301
301
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
302
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StripeApi.
|
|
302
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StripeApi.apiStripeCreateElectionPaymentPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
303
303
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
304
304
|
}
|
|
305
305
|
});
|
|
@@ -311,17 +311,17 @@ var StripeApiFp = function (configuration) {
|
|
|
311
311
|
* @param {*} [options] Override http request option.
|
|
312
312
|
* @throws {RequiredError}
|
|
313
313
|
*/
|
|
314
|
-
|
|
314
|
+
apiStripeSubscriptionsStartPlanGet: function (plan, options) {
|
|
315
315
|
var _a, _b, _c;
|
|
316
316
|
return __awaiter(this, void 0, void 0, function () {
|
|
317
317
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
318
318
|
return __generator(this, function (_d) {
|
|
319
319
|
switch (_d.label) {
|
|
320
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
320
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiStripeSubscriptionsStartPlanGet(plan, options)];
|
|
321
321
|
case 1:
|
|
322
322
|
localVarAxiosArgs = _d.sent();
|
|
323
323
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
324
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StripeApi.
|
|
324
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StripeApi.apiStripeSubscriptionsStartPlanGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
325
325
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
326
326
|
}
|
|
327
327
|
});
|
|
@@ -332,17 +332,17 @@ var StripeApiFp = function (configuration) {
|
|
|
332
332
|
* @param {*} [options] Override http request option.
|
|
333
333
|
* @throws {RequiredError}
|
|
334
334
|
*/
|
|
335
|
-
|
|
335
|
+
apiStripeWebhookPost: function (options) {
|
|
336
336
|
var _a, _b, _c;
|
|
337
337
|
return __awaiter(this, void 0, void 0, function () {
|
|
338
338
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
339
339
|
return __generator(this, function (_d) {
|
|
340
340
|
switch (_d.label) {
|
|
341
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
341
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiStripeWebhookPost(options)];
|
|
342
342
|
case 1:
|
|
343
343
|
localVarAxiosArgs = _d.sent();
|
|
344
344
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
345
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StripeApi.
|
|
345
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StripeApi.apiStripeWebhookPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
346
346
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
347
347
|
}
|
|
348
348
|
});
|
|
@@ -364,8 +364,8 @@ var StripeApiFactory = function (configuration, basePath, axios) {
|
|
|
364
364
|
* @param {*} [options] Override http request option.
|
|
365
365
|
* @throws {RequiredError}
|
|
366
366
|
*/
|
|
367
|
-
|
|
368
|
-
return localVarFp.
|
|
367
|
+
apiStripeConfirmPaymentPost: function (confirmPaymentRequest, options) {
|
|
368
|
+
return localVarFp.apiStripeConfirmPaymentPost(confirmPaymentRequest, options).then(function (request) { return request(axios, basePath); });
|
|
369
369
|
},
|
|
370
370
|
/**
|
|
371
371
|
*
|
|
@@ -373,8 +373,8 @@ var StripeApiFactory = function (configuration, basePath, axios) {
|
|
|
373
373
|
* @param {*} [options] Override http request option.
|
|
374
374
|
* @throws {RequiredError}
|
|
375
375
|
*/
|
|
376
|
-
|
|
377
|
-
return localVarFp.
|
|
376
|
+
apiStripeCreateElectionPaymentPost: function (createElectionPaymentRequest, options) {
|
|
377
|
+
return localVarFp.apiStripeCreateElectionPaymentPost(createElectionPaymentRequest, options).then(function (request) { return request(axios, basePath); });
|
|
378
378
|
},
|
|
379
379
|
/**
|
|
380
380
|
*
|
|
@@ -382,16 +382,16 @@ var StripeApiFactory = function (configuration, basePath, axios) {
|
|
|
382
382
|
* @param {*} [options] Override http request option.
|
|
383
383
|
* @throws {RequiredError}
|
|
384
384
|
*/
|
|
385
|
-
|
|
386
|
-
return localVarFp.
|
|
385
|
+
apiStripeSubscriptionsStartPlanGet: function (plan, options) {
|
|
386
|
+
return localVarFp.apiStripeSubscriptionsStartPlanGet(plan, options).then(function (request) { return request(axios, basePath); });
|
|
387
387
|
},
|
|
388
388
|
/**
|
|
389
389
|
*
|
|
390
390
|
* @param {*} [options] Override http request option.
|
|
391
391
|
* @throws {RequiredError}
|
|
392
392
|
*/
|
|
393
|
-
|
|
394
|
-
return localVarFp.
|
|
393
|
+
apiStripeWebhookPost: function (options) {
|
|
394
|
+
return localVarFp.apiStripeWebhookPost(options).then(function (request) { return request(axios, basePath); });
|
|
395
395
|
},
|
|
396
396
|
};
|
|
397
397
|
};
|
|
@@ -414,9 +414,9 @@ var StripeApi = /** @class */ (function (_super) {
|
|
|
414
414
|
* @throws {RequiredError}
|
|
415
415
|
* @memberof StripeApi
|
|
416
416
|
*/
|
|
417
|
-
StripeApi.prototype.
|
|
417
|
+
StripeApi.prototype.apiStripeConfirmPaymentPost = function (confirmPaymentRequest, options) {
|
|
418
418
|
var _this = this;
|
|
419
|
-
return (0, exports.StripeApiFp)(this.configuration).
|
|
419
|
+
return (0, exports.StripeApiFp)(this.configuration).apiStripeConfirmPaymentPost(confirmPaymentRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
420
420
|
};
|
|
421
421
|
/**
|
|
422
422
|
*
|
|
@@ -425,9 +425,9 @@ var StripeApi = /** @class */ (function (_super) {
|
|
|
425
425
|
* @throws {RequiredError}
|
|
426
426
|
* @memberof StripeApi
|
|
427
427
|
*/
|
|
428
|
-
StripeApi.prototype.
|
|
428
|
+
StripeApi.prototype.apiStripeCreateElectionPaymentPost = function (createElectionPaymentRequest, options) {
|
|
429
429
|
var _this = this;
|
|
430
|
-
return (0, exports.StripeApiFp)(this.configuration).
|
|
430
|
+
return (0, exports.StripeApiFp)(this.configuration).apiStripeCreateElectionPaymentPost(createElectionPaymentRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
431
431
|
};
|
|
432
432
|
/**
|
|
433
433
|
*
|
|
@@ -436,9 +436,9 @@ var StripeApi = /** @class */ (function (_super) {
|
|
|
436
436
|
* @throws {RequiredError}
|
|
437
437
|
* @memberof StripeApi
|
|
438
438
|
*/
|
|
439
|
-
StripeApi.prototype.
|
|
439
|
+
StripeApi.prototype.apiStripeSubscriptionsStartPlanGet = function (plan, options) {
|
|
440
440
|
var _this = this;
|
|
441
|
-
return (0, exports.StripeApiFp)(this.configuration).
|
|
441
|
+
return (0, exports.StripeApiFp)(this.configuration).apiStripeSubscriptionsStartPlanGet(plan, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
442
442
|
};
|
|
443
443
|
/**
|
|
444
444
|
*
|
|
@@ -446,9 +446,9 @@ var StripeApi = /** @class */ (function (_super) {
|
|
|
446
446
|
* @throws {RequiredError}
|
|
447
447
|
* @memberof StripeApi
|
|
448
448
|
*/
|
|
449
|
-
StripeApi.prototype.
|
|
449
|
+
StripeApi.prototype.apiStripeWebhookPost = function (options) {
|
|
450
450
|
var _this = this;
|
|
451
|
-
return (0, exports.StripeApiFp)(this.configuration).
|
|
451
|
+
return (0, exports.StripeApiFp)(this.configuration).apiStripeWebhookPost(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
452
452
|
};
|
|
453
453
|
return StripeApi;
|
|
454
454
|
}(base_1.BaseAPI));
|