@paysponge/sdk 0.1.59 → 0.1.61

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.
@@ -4180,6 +4180,66 @@ export class DefaultApi extends runtime.BaseAPI {
4180
4180
  async postApiAgentRequestsByIdCvcSession(requestParameters, initOverrides) {
4181
4181
  await this.postApiAgentRequestsByIdCvcSessionRaw(requestParameters, initOverrides);
4182
4182
  }
4183
+ /**
4184
+ * Creates request options for postApiAgentRequestsByIdTakeover without sending the request
4185
+ */
4186
+ async postApiAgentRequestsByIdTakeoverRequestOpts(requestParameters) {
4187
+ if (requestParameters['id'] == null) {
4188
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiAgentRequestsByIdTakeover().');
4189
+ }
4190
+ const queryParameters = {};
4191
+ const headerParameters = {};
4192
+ let urlPath = `/api/agent-requests/{id}/takeover`;
4193
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
4194
+ return {
4195
+ path: urlPath,
4196
+ method: 'POST',
4197
+ headers: headerParameters,
4198
+ query: queryParameters,
4199
+ };
4200
+ }
4201
+ /**
4202
+ */
4203
+ async postApiAgentRequestsByIdTakeoverRaw(requestParameters, initOverrides) {
4204
+ const requestOptions = await this.postApiAgentRequestsByIdTakeoverRequestOpts(requestParameters);
4205
+ const response = await this.request(requestOptions, initOverrides);
4206
+ return new runtime.VoidApiResponse(response);
4207
+ }
4208
+ /**
4209
+ */
4210
+ async postApiAgentRequestsByIdTakeover(requestParameters, initOverrides) {
4211
+ await this.postApiAgentRequestsByIdTakeoverRaw(requestParameters, initOverrides);
4212
+ }
4213
+ /**
4214
+ * Creates request options for postApiAgentRequestsByIdTakeoverEnd without sending the request
4215
+ */
4216
+ async postApiAgentRequestsByIdTakeoverEndRequestOpts(requestParameters) {
4217
+ if (requestParameters['id'] == null) {
4218
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling postApiAgentRequestsByIdTakeoverEnd().');
4219
+ }
4220
+ const queryParameters = {};
4221
+ const headerParameters = {};
4222
+ let urlPath = `/api/agent-requests/{id}/takeover/end`;
4223
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
4224
+ return {
4225
+ path: urlPath,
4226
+ method: 'POST',
4227
+ headers: headerParameters,
4228
+ query: queryParameters,
4229
+ };
4230
+ }
4231
+ /**
4232
+ */
4233
+ async postApiAgentRequestsByIdTakeoverEndRaw(requestParameters, initOverrides) {
4234
+ const requestOptions = await this.postApiAgentRequestsByIdTakeoverEndRequestOpts(requestParameters);
4235
+ const response = await this.request(requestOptions, initOverrides);
4236
+ return new runtime.VoidApiResponse(response);
4237
+ }
4238
+ /**
4239
+ */
4240
+ async postApiAgentRequestsByIdTakeoverEnd(requestParameters, initOverrides) {
4241
+ await this.postApiAgentRequestsByIdTakeoverEndRaw(requestParameters, initOverrides);
4242
+ }
4183
4243
  /**
4184
4244
  * Creates request options for postApiAgents without sending the request
4185
4245
  */