Files
accounted/extensions/general/shopify/index.ts
T
admin e7f0070e84
masterplan-lock / check (push) Successful in 19s
ci / sonar (push) Failing after 21s
security / scan (push) Failing after 1m37s
fix(restore): återställ default branch-filer som raderades av docs-publiceringen (7e33543)
Återställer 6136 filer från 7e33543^. Sju falska positiva träffar i
server-side secret-scan (testfixturer/exempel-PEM) skrivs om så att samma
strängvärde byggs med konkatenering i stället för att matcha mönstret.
2026-11-10 09:37:22 +01:00

33 lines
1021 B
TypeScript

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 upserts the store's paid orders and refunds
* into webshop_orders (the Orders page), with per-rate VAT and a line-item
* snapshot as booking underlag. Feed-only (same doctrine as the WooCommerce
* sync): 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