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

    Class ApiEnvironment

    Model that represents an API environment.

    ApiEnvironment

    Index

    Properties

    Methods

    Properties

    baseUrl: string

    The base URL of the API environemnt.

    Production: ApiEnvironment = ...

    Production environment instance.

    // Example usage
    const apiEnvironmentProduction = ApiEnvironment.Production;
    Test: ApiEnvironment = ...

    Test environment instance.

    // Example usage
    const apiEnvironmentTest = ApiEnvironment.Test;

    Methods

    • Creates a custom API environment.

      Parameters

      • baseUrl: string

        The base URL of the custom environment.

      Returns ApiEnvironment

      The custom API environment instace.

      // Example usage
      const customApiEnvironment = ApiEnvironment.create('http://my-api.com');