/* tslint:disable */
/* eslint-disable */
/**
 * Paystack
 * The OpenAPI specification of the Paystack API that merchants and developers can harness to build financial solutions in Africa.
 *
 * The version of the Paystack Node library: 1.0.0
 * Contact: techsupport@paystack.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


import { BaseAPI, RequiredError } from '../runtime';
import {
    Response,
    ResponseFromJSON
} from '../models';

export interface UpdatePaymentSessionTimeoutRequest {
    body?: object;
}

/**
 * 
 */
export class Integration extends BaseAPI {

    /**
     * Fetch Payment Session Timeout
     */
    async fetchPaymentSessionTimeout(): Promise<Response> {
        const queryParameters: any = {};


        const response = await this.request({
            path: `/integration/payment_session_timeout`,
            method: 'GET',
            query: queryParameters,
        });
        
        return ResponseFromJSON(response);
    }

    /**
     * Update Payment Session Timeout
     */
    async updatePaymentSessionTimeout(requestParameters: UpdatePaymentSessionTimeoutRequest): Promise<Response> {
        const queryParameters: any = {};


        const response = await this.request({
            path: `/integration/payment_session_timeout`,
            method: 'PUT',
            query: queryParameters,
            body: requestParameters.body as any,
        });
        
        return ResponseFromJSON(response);
    }

}
