amberflo-metering-typescript
Version:
Amberflo metering client for TypeScript
20 lines (19 loc) • 924 B
TypeScript
import { IAxiosRetryConfig } from "axios-retry";
import BaseClient from "./baseClient";
import { CustomerPortalSessionApiPayload, CustomerPortalSession } from "./model/customerPortalSessionApiPayload";
/**
* See: https://docs.amberflo.io/reference/post_session
*/
export declare class CustomerPortalSessionClient extends BaseClient {
/**
* Initialize a new `CustomerPortalSessionClient`
* `debug`: Whether to issue debug level logs or not.
* `retry`: Whether to retry idempotent requests on 5xx or network errors, or retry configuration (see https://github.com/softonic/axios-retry).
*/
constructor(apiKey: string, debug?: boolean, retry?: boolean | IAxiosRetryConfig);
/**
* Get a new url and session token for the customer portal
* See: https://docs.amberflo.io/reference/post_session
*/
get(payload: CustomerPortalSessionApiPayload): Promise<CustomerPortalSession>;
}