from fin_infra.providers.tax import IRSProviderTaxProviderIRS e-Services provider (v2 - not yet implemented). **Registration Required**: - EFIN (Electronic Filing Identification Number) - TCC (Transmitter Control Code) - PKI certificates (cert + key files) - IP whitelist approval from IRS - 6-8 weeks processing time **Environment Variables**: - IRS_EFIN: Electronic Filing ID - IRS_TCC: Transmitter Control Code - IRS_CERT_PATH: Path to public certificate (.pem) - IRS_KEY_PATH: Path to private key (.pem) - IRS_BASE_URL: API endpoint (default: https://la.www4.irs.gov) **Supported Forms**: - W-2: Wage and Tax Statement - 1099-INT: Interest Income - 1099-DIV: Dividends - 1099-MISC: Miscellaneous Income - 1099-B: Broker Transactions (limited) **Not Supported**: - Crypto tax calculations (use TaxBit provider) - Real-time document retrieval (IRS has delays)
>>> provider = IRSProvider( ... efin=os.getenv("IRS_EFIN"), ... tcc=os.getenv("IRS_TCC"), ... cert_path=os.getenv("IRS_CERT_PATH"), ... key_path=os.getenv("IRS_KEY_PATH") ... ) >>> # Raises NotImplementedError until v2 implementation