caelum0x a4d0f3f5cb feat: tax at checkout and tax-grade receipts (G4)
Sellers can turn on checkout tax in settings (label, own country and tax
ID, legal name, per-country rates, default rate, EU reverse charge).
Sessions add tax on top of the net price after any promo, so onchain
verification expects the tax-inclusive total. Buyers set billing country
and VAT ID via the API (billingCountry, vatId) or on the hosted checkout
until a payment is recorded; EU cross-border B2B with a VAT ID of the
right shape is zero-rated. Settled checkouts get a PDF receipt (pdfkit)
with the seller's tax ID, buyer country / VAT ID, tax rate and the
settlement transaction, linked from the success page, the receipt email
and the customer portal. packages/tax calculateTax is now used at
checkout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 04:30:53 +03:00

54 lines
1.6 KiB
JSON

{
"name": "@settlekit/persistence",
"version": "0.0.0",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"files": ["dist"],
"scripts": {
"build": "tsc -b",
"test": "vitest run"
},
"dependencies": {
"@settlekit/common": "workspace:*",
"@settlekit/database": "workspace:*",
"@settlekit/onchain-billing": "workspace:*",
"@settlekit/settlement-core": "workspace:*",
"@settlekit/attribution": "workspace:*",
"@settlekit/citation-toll": "workspace:*",
"@settlekit/payee-registry": "workspace:*",
"@settlekit/streaming": "workspace:*",
"@settlekit/tax": "workspace:*",
"@settlekit/wallet-fleet": "workspace:*",
"@settlekit/agent-services": "workspace:*",
"@settlekit/api-keys": "workspace:*",
"@settlekit/auth": "workspace:*",
"@settlekit/bundles": "workspace:*",
"@settlekit/coupons": "workspace:*",
"@settlekit/disputes": "workspace:*",
"@settlekit/dunning": "workspace:*",
"@settlekit/entitlements": "workspace:*",
"@settlekit/escrow": "workspace:*",
"@settlekit/file-delivery": "workspace:*",
"@settlekit/invoices": "workspace:*",
"@settlekit/license-keys": "workspace:*",
"@settlekit/marketplace-core": "workspace:*",
"@settlekit/payments": "workspace:*",
"@settlekit/payouts": "workspace:*",
"@settlekit/refunds": "workspace:*",
"@settlekit/saas": "workspace:*",
"@settlekit/usage": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.14.0",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
}
}