import type { Extension } from '@/lib/extensions/types' import { shopifyApiRoutes } from './api-routes' /** * Shopify extension * * Connects a company's Shopify store via a merchant-created Dev Dashboard * custom app (client credentials grant; the revealable shpat_ token flow was * discontinued 2026-01-01) and imports the store's paid orders and refunds * into the transactions inbox as a bank-style feed on the 1584 cash account. * Feed-only (same doctrine as the Stripe and WooCommerce feeds): nothing is * auto-booked, and Shopify Payments payout/fee reconciliation is out of * scope for now (phase 2). * * Required environment variables: * - SHOPIFY_CREDENTIALS_ENCRYPTION_KEY (at-rest key for client id/secret) */ export const shopifyExtension: Extension = { id: 'shopify', name: 'Shopify', version: '1.0.0', sector: 'general', settingsPanel: { label: 'Shopify', path: '/import?mode=shopify', }, apiRoutes: shopifyApiRoutes, } export default shopifyExtension