UNPKG

@adyen/api-library

Version:

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

46 lines (45 loc) 2.25 kB
import Service from "../../service"; import Client from "../../client"; import { IRequest } from "../../typings/requestOptions"; import { CreateMerchantRequest } from "../../typings/management/models"; import { CreateMerchantResponse } from "../../typings/management/models"; import { ListMerchantResponse } from "../../typings/management/models"; import { Merchant } from "../../typings/management/models"; import { RequestActivationResponse } from "../../typings/management/models"; /** * API handler for AccountMerchantLevelApi */ export declare class AccountMerchantLevelApi extends Service { private readonly API_BASEPATH; private baseUrl; constructor(client: Client); /** * @summary Create a merchant account * @param createMerchantRequest {@link CreateMerchantRequest } * @param requestOptions {@link IRequest.Options } * @return {@link CreateMerchantResponse } */ createMerchantAccount(createMerchantRequest: CreateMerchantRequest, requestOptions?: IRequest.Options): Promise<CreateMerchantResponse>; /** * @summary Get a merchant account * @param merchantId {@link string } The unique identifier of the merchant account. * @param requestOptions {@link IRequest.Options } * @return {@link Merchant } */ getMerchantAccount(merchantId: string, requestOptions?: IRequest.Options): Promise<Merchant>; /** * @summary Get a list of merchant accounts * @param requestOptions {@link IRequest.Options } * @param pageNumber {@link number } The number of the page to fetch. * @param pageSize {@link number } The number of items to have on a page, maximum 100. The default is 10 items on a page. * @return {@link ListMerchantResponse } */ listMerchantAccounts(pageNumber?: number, pageSize?: number, requestOptions?: IRequest.Options): Promise<ListMerchantResponse>; /** * @summary Request to activate a merchant account * @param merchantId {@link string } The unique identifier of the merchant account. * @param requestOptions {@link IRequest.Options } * @return {@link RequestActivationResponse } */ requestToActivateMerchantAccount(merchantId: string, requestOptions?: IRequest.Options): Promise<RequestActivationResponse>; }