import { SigningObject } from './signing-object'; import { WebApiClient } from '../web-api/web-api-client'; import { TacSigningProcess, NoAuthSigningProcess, CaseMobileSigningProcess } from './signing-process'; /** * @export * @class FilledSigningObject * @extends {SigningObject} */ export declare class FilledSigningObject extends SigningObject { authorizationType: string; scenarios: [[string]]; /** * Creates an instance of FilledSigningObject. * @param {GetInfoResponse} response * @param {WebApiClient} client * @param {string} url * @param {any} order * * @memberOf FilledSigningObject */ constructor(response: GetInfoResponse, client: WebApiClient, url: string, order: any); /** * Returns itself in Promise. * @returns {Promise} * * @memberOf FilledSigningObject */ getInfo: () => Promise; /** * Starts signing process with TAC (that usually means signing using OneTimePassword from SMS) * This method will inform the API that the client will sign using TAC. * Returned 'TACSigningProcess' is used to finish the signing or throws Error if the call fails * @returns {Promise} * * @memberOf FilledSigningObject */ startSigningWithTac: () => Promise; /** * Starts signing process with CASE_MOBILE (that usually means signing using OneTimePassword from SMS) * This method will inform the API that the client will sign using CASE_MOBILE. * Returned 'CaseMobileSigningProcess' is used to finish the signing or throws Error if the call fails * @returns {Promise} * * @memberOf FilledSigningObject */ startSigningWithCaseMobile: () => Promise; /** * Starts signing process with NO_AUTHORIZATION (that usually means signing the order just by clicking some button in UI) * This method signalizes the intent to the API that this order will be signed using NO_AUTHORIZATION method * Returned 'NoAuthSigningProcess' is used to finish the signing or throws Error if the call fails * @returns {Promise} * * @memberOf FilledSigningObject */ startSigningWithNoAuthorization: () => Promise; /** * Determines whether the signing can be currently done with the given AuthorizationType. * @param {string} authorizationType * @returns {boolean} * * @memberOf FilledSigningObject */ canBeSignedWith: (authorizationType: string) => boolean; /** * List all current possible authorization types. The list will be empty if the entity is not in a signable state. * @returns {string[]} * * @memberOf FilledSigningObject */ getPossibleAuthorizationTypes: () => string[]; } /** * @export * @interface GetInfoResponse */ export interface GetInfoResponse { authorizationType: string; scenarios: [[string]]; signInfo: { state: string; signId: string; }; }