///
export class ApiClient {
constructor(opts?: { basePath: string; oAuthBasePath: string });
addDefaultHeader(header: string, value: string): void;
applyAuthToRequest(request: any, authNames: string[]): void;
buildCollectionParam(param: any[], collectionFormat: any): string[];
buildUrl(path: string, pathParams: any): string;
callApi(
path: string,
httpMethod: string,
pathParams: object,
queryParams: object,
headerParams: object,
formParams: object,
bodyParam: object,
authNames: string[],
contentTypes: string[],
accepts: string[],
returnType: any,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
deserialize(response: object, returnType: any): any;
generateAccessToken(
clientId: string,
clientSecret: string,
code: string,
callback?: (() => void) | ((error: any, response: any) => void),
): Promise;
getAuthorizationUri(
clientId: string,
scopes: string[],
redirectUri: string,
responseType: string,
state?: string,
): string;
getBasePath(): string;
getJWTUri(clientId: string, redirectURI: string, oAuthBasePath: string): string;
getOAuthBasePath(): string;
getUserInfo(accessToken: string, callback?: (() => void) | ((error: any, response: any) => void)): Promise;
hasNoInvalidScopes(scopes: string[]): boolean;
isFileParam(param: any): boolean;
isJsonMime(contentType: string): boolean;
jsonPreferredMime(contentTypes: string[]): string;
normalizeParams(params: any): any;
paramToString(param: any): string;
requestJWTApplicationToken(
clientId: string,
scopes: string[],
rsaPrivateKey: Buffer,
expiresIn: number,
callback?: (() => void) | ((error: any, response: any) => void),
): Promise;
requestJWTUserToken(
clientId: string,
userId: string,
scopes: string[],
rsaPrivateKey: Buffer,
expiresIn: number,
callback?: (() => void) | ((error: any, response: any) => void),
): Promise;
setBasePath(basePath: string): void;
setOAuthBasePath(oAuthBasePath: string): void;
static CollectionFormatEnum: {
CSV: string;
MULTI: string;
PIPES: string;
SSV: string;
TSV: string;
};
static RestApi: {
BasePath: {
DEMO: string;
PRODUCTION: string;
STAGE: string;
};
};
static constructFromObject(data: any, obj: any, itemType: any): void;
static convertToType(data: any, type: any): any;
static parseDate(str: string): Date;
}
export class Configuration {
static default: Configuration;
constructor();
getDefaultApiClient(): ApiClient;
setDefaultApiClient(defaultApiClient: ApiClient): void;
}
export class AccountsApi {
constructor(apiClient?: ApiClient);
_delete(
accountId: string,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
create(
optsOrCallback?: any,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
createBrand(
accountId: string,
optsOrCallback?: any,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
createCustomField(
accountId: string,
optsOrCallback?: any,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
createPermissionProfile(
accountId: string,
optsOrCallback?: any,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
deleteBrand(
accountId: string,
brandId: string,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
deleteBrandLogoByType(
accountId: string,
brandId: string,
logoType: string,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
deleteBrands(
accountId: string,
optsOrCallback?: any,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
deleteCaptiveRecipient(
accountId: string,
recipientPart: string,
optsOrCallback?: any,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
deleteCustomField(
accountId: string,
customFieldId: string,
optsOrCallback?: any,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
deleteENoteConfiguration(
accountId: string,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
deletePermissionProfile(
accountId: string,
permissionProfileId: string,
optsOrCallback?: any,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
getAccountIdentityVerification(
accountId: string,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
getAccountInformation(
accountId: string,
optsOrCallback?: any,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
getAccountTabSettings(
accountId: string,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
getAllPaymentGatewayAccounts(
accountId: string,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
getBillingCharges(
accountId: string,
optsOrCallback?: any,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
getBrand(
accountId: string,
brandId: string,
optsOrCallback?: any,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
getBrandExportFile(
accountId: string,
brandId: string,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise;
getBrandLogoByType(
accountId: string,
brandId: string,
logoType: string,
callback?: (() => void) | ((error: any, data: any, response: any) => void),
): Promise