UNPKG

@adyen/api-library

Version:

The Adyen API Library for NodeJS enables you to work with Adyen APIs.

49 lines (48 loc) 2.54 kB
import Service from "../../service"; import Client from "../../client"; import { IRequest } from "../../typings/requestOptions"; import { AllowedOrigin } from "../../typings/management/models"; import { AllowedOriginsResponse } from "../../typings/management/models"; /** * API handler for AllowedOriginsCompanyLevelApi */ export declare class AllowedOriginsCompanyLevelApi extends Service { private readonly API_BASEPATH; private baseUrl; constructor(client: Client); /** * @summary Create an allowed origin * @param companyId {@link string } The unique identifier of the company account. * @param apiCredentialId {@link string } Unique identifier of the API credential. * @param allowedOrigin {@link AllowedOrigin } * @param requestOptions {@link IRequest.Options } * @return {@link AllowedOrigin } */ createAllowedOrigin(companyId: string, apiCredentialId: string, allowedOrigin: AllowedOrigin, requestOptions?: IRequest.Options): Promise<AllowedOrigin>; /** * @summary Delete an allowed origin * @param companyId {@link string } The unique identifier of the company account. * @param apiCredentialId {@link string } Unique identifier of the API credential. * @param originId {@link string } Unique identifier of the allowed origin. * @param requestOptions {@link IRequest.Options } * @return {@link void } */ deleteAllowedOrigin(companyId: string, apiCredentialId: string, originId: string, requestOptions?: IRequest.Options): Promise<void>; /** * @summary Get an allowed origin * @param companyId {@link string } The unique identifier of the company account. * @param apiCredentialId {@link string } Unique identifier of the API credential. * @param originId {@link string } Unique identifier of the allowed origin. * @param requestOptions {@link IRequest.Options } * @return {@link AllowedOrigin } */ getAllowedOrigin(companyId: string, apiCredentialId: string, originId: string, requestOptions?: IRequest.Options): Promise<AllowedOrigin>; /** * @summary Get a list of allowed origins * @param companyId {@link string } The unique identifier of the company account. * @param apiCredentialId {@link string } Unique identifier of the API credential. * @param requestOptions {@link IRequest.Options } * @return {@link AllowedOriginsResponse } */ listAllowedOrigins(companyId: string, apiCredentialId: string, requestOptions?: IRequest.Options): Promise<AllowedOriginsResponse>; }