mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
* PW-7514: Update models * PW-7514: Switch to JAR based installation * PW-7514: Default API template * PW-7514: Customize API template * PW-7514: Serialize request * PW-7514: Query string * PW-7514: Fix version patch * PW-7514: Client generated * PW-7514: Export class by default * PW-7514: Make path and body params required * PW-7514: Dynamic service name * PW-7514: Link all classes into one parent * PW-7514: Dynamic method names * PW-7514: Fix merge issues * PW-7514: Generate using latest specs Co-authored-by: jillingk <93914435+jillingk@users.noreply.github.com>
38 lines
1.7 KiB
TypeScript
38 lines
1.7 KiB
TypeScript
/*
|
|
* The version of the OpenAPI document: v1
|
|
* Contact: developer-experience@adyen.com
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit this class manually.
|
|
*/
|
|
|
|
|
|
import getJsonResponse from "../../helpers/getJsonResponse";
|
|
import Service from "../../service";
|
|
/* tslint:disable:no-unused-locals */
|
|
import { ScheduleTerminalActionsRequest } from '../../typings/management/models';
|
|
import { ScheduleTerminalActionsResponse } from '../../typings/management/models';
|
|
import { IRequest } from "../../typings/requestOptions";
|
|
import ManagementResource from "../resource/management/managementResource";
|
|
import { ObjectSerializer } from "../../typings/management/models";
|
|
|
|
|
|
export default class TerminalActionsTerminalLevelApi extends Service {
|
|
/**
|
|
* @summary Create a terminal action
|
|
* @param scheduleTerminalActionsRequest
|
|
*/
|
|
public async createTerminalAction(scheduleTerminalActionsRequest: ScheduleTerminalActionsRequest, requestOptions?: IRequest.Options): Promise<ScheduleTerminalActionsResponse> {
|
|
const localVarPath = "/terminals/scheduleActions";
|
|
const resource = new ManagementResource(this, localVarPath);
|
|
const request: ScheduleTerminalActionsRequest = ObjectSerializer.serialize(scheduleTerminalActionsRequest, "ScheduleTerminalActionsRequest");
|
|
const response = await getJsonResponse<ScheduleTerminalActionsRequest, ScheduleTerminalActionsResponse>(
|
|
resource,
|
|
request,
|
|
{ ...requestOptions, method: "POST" }
|
|
);
|
|
return ObjectSerializer.deserialize(response, "ScheduleTerminalActionsResponse");
|
|
}
|
|
}
|