feat(automations): auto-email invoice on wire-transfer placed and on fulfillment
- New ShopSettings fields: autoEmailOnWireTransferPlaced, autoEmailOnFulfilledNonWireTransfer, wireTransferGatewayNames. - New Automations section in settings with two toggles + gateway list. - orders/create webhook now fires automation 1 (wire-transfer placed). - New orders/fulfilled webhook fires automation 2 (non-wire-transfer fulfilled). - Shared helper services/invoice/automations.server.ts handles classification and idempotent generate+send (skips if already sent). - Webhook subscription for orders/fulfilled added to all 3 app tomls. This is the non-Plus fallback for Shopify Flow, whose custom-app actions are gated to Plus stores only.
This commit is contained in:
@@ -31,6 +31,10 @@ api_version = "2026-07"
|
||||
uri = "/webhooks/orders/updated"
|
||||
topics = [ "orders/updated" ]
|
||||
|
||||
[[webhooks.subscriptions]]
|
||||
uri = "/webhooks/orders/fulfilled"
|
||||
topics = [ "orders/fulfilled" ]
|
||||
|
||||
[auth]
|
||||
redirect_urls = [
|
||||
"https://invoice-app-dev.linumiq.com/auth/callback",
|
||||
|
||||
Reference in New Issue
Block a user