@paysafe/paysafe-wallet-saas-web
    Preparing search index...

    Class AuthorizationHistoryService

    Service class for managing authorization history related operations.

    Hierarchy

    • ApiService
      • AuthorizationHistoryService
    Index

    Methods

    • Retrieves a specific user authorization by ID.

      Parameters

      • authorizationId: string

        The ID of the authorization to be retrieved.

      Returns Promise<Authorization>

      A promise that resolves to the specified user authorization.

      If the HTTP request fails.

      // Example usage:
      authorizationHistoryService.getAuthorization(authorizationId)
      .then((response) => {
      console.log(response);
      })
      .catch((error) => {
      console.error(`Error fetching authorization history.`);
      });
    • Retrieves a list of user authorizations by AuthorizationHistoryParameters. All parameters are optional.

      Parameters

      Returns Promise<AuthorizationList>

      A promise that resolves to authorizations list.

      If the HTTP request fails.

      // Example usage:
      authorizationHistoryService.getAuthorizationHistory(parameters)
      .then((response) => {
      console.log(response);
      })
      .catch((error) => {
      console.error(`Error fetching authorization history.`);
      });
    • Function

      Retrieves the singleton instance of the AuthorizationHistoryService class.

      Returns AuthorizationHistoryService

      The singleton instance of the AuthorizationHistoryService class.

      // Usage:
      const authorizationHistoryService = AuthorizationHistoryService.getInstance();