-
Notifications
You must be signed in to change notification settings - Fork 2
Code Map
This map covers the tracked repository at fec65e2b67e18da3d9d3bf4c007d3c7fd5228537: 754 files, 668 PHP files, and 19 XML files. Feature directories are code organization inside one registered Magento module.
"Production PHP" excludes paths under Test. "Test/fixture files" includes supporting code and serialized data, not just executable test cases.
| Area | All files | Production PHP | Test/fixture files | Responsibility |
|---|---|---|---|---|
| Core | 228 | 122 | 106 | Connection, SOAP services, queue coordination, CLI, monitor UI, logging, caching, date handling, Admin helpers, and test infrastructure. Guide. |
| Queue | 15 | 12 | 3 | Custom queue/monitor persistence, retries, rejection, postprocessing, and stuck-message recovery. Guide. |
| Product | 81 | 54 | 27 | Item search, field/type/price mapping, batch importing, options/links, indexing helpers, and product utilities. Guide. |
| ProductImages | 24 | 7 | 17 | File references, SOAP downloads, image comparison, gallery reconciliation, and import fields. Guide. |
| Customer | 53 | 17 | 36 | Customer export, order-driven matching, address mapping, and customer-group metadata. Guide. |
| CustomerImport | 20 | 14 | 6 | Person-customer import, addresses, default assignments, and imported-account password messages. Guide. |
| Order | 63 | 34 | 29 | Order observer/export, line/custom/payment mapping, linked-order status and quantity updates. Guide. |
| Invoice | 31 | 9 | 22 | Store invoice to CashSale export and CashSale to store invoice import. Guide. |
| Refund | 20 | 8 | 12 | CreditMemo and CashRefund import, source-order lookup, item mapping, and credit-memo state. Guide. |
| Shipment | 41 | 21 | 20 | ItemFulfillment import, single/multi-source mappers, tracking, cleanup, and email rules. Guide. |
| Inventory | 56 | 32 | 24 | Saved-search stock, single/multi repositories, MSI source/location mapping, reservations, and cron plugins. Guide. |
| Tax | 32 | 15 | 17 | Tax-line versus NetSuite-calculated tax strategies for exported sales. Guide. |
| Discount | 50 | 16 | 34 | Body/line discount strategies, promotion metadata, and cash-sale discount import. Guide. |
| Setup | 4 | 4 | 0 | Product/customer/address identity, last-stock-update, and imported-password EAV patches. Guide. |
The remaining files are package metadata, licensing, registration, configuration, and presentation assets:
| Surface | Purpose |
|---|---|
| composer.json | Package constraints, autoload namespace, and replacement metadata. |
| registration.php, module.xml | Register MageOS_NetSuiteConnector and module sequence. |
| etc | 16 configuration files: DI, events, schema, defaults, Admin settings/menu/routes, ACL, extension attributes, cron, and email templates. |
| view | 14 assets: Admin layouts, monitor/config UI, templates, JavaScript, and warning emails. |
| phpcs.xml.dist | Coding-standard configuration, not an executed test result. |
| README.md, LICENSE.txt | Package overview and licensing text. |
Declarative schema creates four connector tables:
-
mageos_netsuite_message: custom queue messages, status, attempts, payload, and priority. -
mageos_netsuite_monitor: processing history, original/overridden payload, output, and queue association. -
mageos_netsuite_bundle_product_link: bundle relationship import support. -
mageos_netsuite_customer_group: customer-group NetSuite metadata.
The schema adds netsuite_internal_id and netsuite_last_import_date to sales orders, invoices, credit memos, and shipments. It adds netsuite_internal_id to inventory sources. EAV patches add product/customer/address identity, product stock-refresh timestamp, and imported-customer password state. Read the patches before migrating existing attributes or changing their types.
Last-run flags and product search state are described in Monitoring. These are synchronization state and must be included in a migration or recovery plan.
This inventory is extracted from production PHP dispatch() calls with literal event names. It does not enumerate dynamic event names from Magento or third-party modules. Source links point to the exact dispatch; inspect its payload and call timing before adding an observer.
etc/di.xml is the canonical list of processor aliases, console commands, strategies, preferences, and plugins. etc/events.xml registers customer/order/invoice observers and disables Magento's shipment source deduction. etc/adminhtml/di.xml and Admin assets provide monitor and configuration presentation.
See Extending for extension boundaries and Testing for execution evidence and missing runtime validation.
Mage-OS Labs · Source · Reviewed commit fec65e2 · September 9, 2026 · Validation and limitations
Mage-OS NetSuite Connector
Setup
Data flows
Operations and development