Recued
Menu
← Back to recipes

Refunds to watch for

by recued-core v1 11 views

Use “Refunds to watch for” in Recued. When an email says an order you placed was cancelled, you get a commitment to see the refund arrive within the days you choose, 10 by default. A later email saying that refund was issued marks it done. It starts on those emails, not on a timer, and never contacts a shop.

How it works 30 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (30 steps)
■ fact defaults
Apply defaults
■ is_cancellation all
Check if all conditions are true
■ is_refund all
Check if all conditions are true
■ acts any
Check if any of the conditions are true
■ due_at date_add
Add setting refund days days to
■ due_on date_format
Format as a date
■ due_ms date_parse
Parse due on as a date
■ has_amount all
Check if all conditions are true
■ amount_part ternary
Apply ternary
■ statement truncate
Truncate Refund from {{step.fact.merchant}} for cancelled order {{step.fact.order_id}}{{step.amount_part}} to a max length
■ amount_parts split
Split fact amount into parts
■ cents default
Apply default
■ cents_digits string_length
Apply string_length
■ money_fits all
Check if all conditions are true
■ money ternary
Apply ternary
■ key replace
Replace text in mail-fact-refund:{{step.fact.thing_id}}
■ keys default
Apply default
■ match_key default
Apply default
◆ listed core.work-entity.list
List work entity
■ made_here filter
Filter by condition
■ mine filter
Filter by condition
■ found count
Count items in mine
■ for_order filter
Filter by condition
■ open_for_order count
Count items in for order
■ create_new all
Check if all conditions are true
■ settle all
Check if all conditions are true
◆ created core.work-entity.commitment.create
Create work entity commitment
skip: step.create_new equal false
◆ fulfilled core.work-entity.commitment.fulfill
Fulfill work entity commitment
skip: step.settle equal false
■ outcome switch
Map create new}}/{{step settle to one of: false/true, true/false
■ card to_summary
Format results as a summary card
▼
Output
summary card
Settings 1 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

refund days setting = 10

Uses (3 operations)

Tasks & notes List work entity core.work-entity.list
Tasks & notes Create work entity commitment core.work-entity.commitment.create
Tasks & notes Fulfill work entity commitment core.work-entity.commitment.fulfill

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

What it's allowed to do

Read Tasks & notes core.work-entity.list read-only
Write Tasks & notes core.work-entity.commitment.create external change
Write Tasks & notes core.work-entity.commitment.fulfill external change

Data it touches

SurfacesTasks & notes

About

Tags

purchasesordersrefundsmailmail-factcommitmentdeterministicpack:receipts

Details

30 steps 1 configurable settings recipe_id: track-refund-from-cancelled-order