/* tslint:disable */
/* eslint-disable */
/**
 * Montelo
 * Documentation for the Montelo API.
 *
 * The version of the OpenAPI document: 1.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


import * as runtime from '../runtime';

/**
 * 
 */
export class DefaultApi extends runtime.BaseAPI {

    /**
     */
    async webhookControllerClerkGetWebhookRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
        const queryParameters: any = {};

        const headerParameters: runtime.HTTPHeaders = {};

        const response = await this.request({
            path: `/webhook/clerk`,
            method: 'GET',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);

        return new runtime.JSONApiResponse<any>(response);
    }

    /**
     */
    async webhookControllerClerkGetWebhook(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
        const response = await this.webhookControllerClerkGetWebhookRaw(initOverrides);
        return await response.value();
    }

    /**
     */
    async webhookControllerClerkPostWebhookRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
        const queryParameters: any = {};

        const headerParameters: runtime.HTTPHeaders = {};

        const response = await this.request({
            path: `/webhook/clerk`,
            method: 'POST',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);

        return new runtime.JSONApiResponse<any>(response);
    }

    /**
     */
    async webhookControllerClerkPostWebhook(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
        const response = await this.webhookControllerClerkPostWebhookRaw(initOverrides);
        return await response.value();
    }

    /**
     */
    async webhookControllerStripePostWebhookRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
        const queryParameters: any = {};

        const headerParameters: runtime.HTTPHeaders = {};

        const response = await this.request({
            path: `/webhook/stripe`,
            method: 'POST',
            headers: headerParameters,
            query: queryParameters,
        }, initOverrides);

        return new runtime.VoidApiResponse(response);
    }

    /**
     */
    async webhookControllerStripePostWebhook(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
        await this.webhookControllerStripePostWebhookRaw(initOverrides);
    }

}
