Package Components
The billing package (billing) contains seven specialized components:
Document
Create, manipulate, and render tax documents
Integration
Integrate with SII (Servicio de Impuestos Internos)
Exchange
Send and receive tax documents
Identifier
Manage document folios (CAF)
Book
Sales and purchase books management
Trading Parties
Manage issuers, receivers, and commercial parties
Ownership Transfer
Handle ownership transfer documents
Getting Started
The BillingPackage class provides access to all components:Main Methods
Returns an associative array of all available components with their keys:
book: BookComponentInterfacedocument: DocumentComponentInterfaceexchange: ExchangeComponentInterfaceidentifier: IdentifierComponentInterfaceintegration: IntegrationComponentInterfaceownership_transfer: OwnershipTransferComponentInterfacetrading_parties: TradingPartiesComponentInterface
Returns the book component for managing sales and purchase books
Returns the document component for creating and managing tax documents
Returns the exchange component for sending and receiving documents
Returns the identifier component for managing folios (CAF)
Returns the integration component for SII communication
Returns the ownership transfer component
Returns the trading parties component for managing commercial entities
Architecture
The billing package follows a component-based architecture where each component:- Implements a specific domain responsibility
- Contains multiple workers that handle specific tasks
- Provides a clean interface for accessing functionality
- Can be used independently or in combination with other components
Source Reference
Namespace:libredte\lib\Core\Package\Billing\BillingPackage
Location: /workspace/source/src/Package/Billing/BillingPackage.php:54