/// <summary>
        /// Creates the configuration for an OAuth2 user.
        /// </summary>
        /// <param name="accessToken">The access token.</param>
        /// <param name="refreshToken">The refresh token.</param>
        /// <param name="useSandbox">if set to <c>true</c> use the sandbox.</param>
        public static IConfiguration CreateForOAuth2(string accessToken, string refreshToken, bool useSandbox)
        {
            var config = new PaychoiceConfiguration();

            config.UseSandbox = useSandbox;
            config.Credentials = new OAuth2Credential()
            {
                AccessToken = accessToken,
                RefreshToken = refreshToken
            };

            return config;
        }
        /// <summary>
        /// Creates the configuration for a basic authentication user.
        /// </summary>
        /// <param name="userName">Name of the user.</param>
        /// <param name="password">The password.</param>
        /// <param name="useSandbox">if set to <c>true</c> use the sandbox.</param>
        public static IConfiguration CreateForBasicAuth(string userName, string password, bool useSandbox)
        {
            var config = new PaychoiceConfiguration();

            config.UseSandbox = useSandbox;
            config.Credentials = new HttpBasicCredential()
            {
                UserName = userName,
                Password = password
            };

            return config;
        }