{"id":31589400,"url":"https://github.com/junction-engine/junction-open","last_synced_at":"2025-10-06T02:52:31.142Z","repository":{"id":309572085,"uuid":"1036305990","full_name":"Junction-Engine/Junction-Open","owner":"Junction-Engine","description":"Bank-agnostic payments policy engine for SAP S/4HANA AP. Picks the cheapest safe rail per invoice and writes ZLSCH; SFTP/OData; optional ML.","archived":false,"fork":false,"pushed_at":"2025-08-12T16:18:20.000Z","size":49,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-12T17:22:31.364Z","etag":null,"topics":["accounts-payable","ach","finops","odata","payments","rtp","sap","sap-s4hana","sftp","treasury","wire"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Junction-Engine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-11T21:59:26.000Z","updated_at":"2025-08-12T16:18:23.000Z","dependencies_parsed_at":"2025-08-12T17:34:17.691Z","dependency_job_id":null,"html_url":"https://github.com/Junction-Engine/Junction-Open","commit_stats":null,"previous_names":["junction-engine/junction-open"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Junction-Engine/Junction-Open","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Junction-Engine%2FJunction-Open","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Junction-Engine%2FJunction-Open/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Junction-Engine%2FJunction-Open/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Junction-Engine%2FJunction-Open/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Junction-Engine","download_url":"https://codeload.github.com/Junction-Engine/Junction-Open/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Junction-Engine%2FJunction-Open/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278551493,"owners_count":26005388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accounts-payable","ach","finops","odata","payments","rtp","sap","sap-s4hana","sftp","treasury","wire"],"created_at":"2025-10-06T02:52:29.217Z","updated_at":"2025-10-06T02:52:31.135Z","avatar_url":"https://github.com/Junction-Engine.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Junction (Open) — SAP AP Rail Recommendation (SFTP-first)\n\n\u003cp align=\"left\"\u003e\u003cimg src=\"brand/junction-top.png\" width=\"120\" alt=\"Junction mark\"\u003e\u003c/p\u003e\n\n\n\n[![CodeQL](docs/codeql-badge.svg)](https://github.com/Junction-Engine/Junction-Open/actions/workflows/codeql.yml)\n\n\n## Overview\n\n```mermaid\nflowchart TB\n  s4[\"S/4HANA (AP open items)\"]\n  s4 --\u003e|\"CSV/OData (IDs, amounts, dates)\"| jn[\"Junction (policy engine \u0026 dashboard)\"]\n  jn --\u003e|\"Recommendation File -\u003e ZLSCH + reason + est. fee/ETA\"| f110[\"S/4HANA Payment Run (F110/DMEE unchanged)\"]\n  f110 --\u003e|\"Bank files (NACHA / ISO 20022) go out as today\"| banks[\"Banks / Rails\"]\n  banks -.-\u003e|\"optional: acks/returns/statements -\u003e Junction for auto-recon analytics\"| jn\n```\n\n\n**Junction** is a lightweight policy engine that recommends the cheapest **safe** payment rail\n(**ACH / Same-day ACH / RTP / Wire / Card**) for each AP line item and feeds the result back\ninto **SAP S/4HANA**. Pilot mode is **decision-only**: you keep your banks \u0026 F110 process.\n\n\u003e ⚠️ **Compliance:** Before using with real data, obtain appropriate approvals\n\u003e (OSS/IP, data handling). Do **not** upload bank details or PAN.\n\n## Quick start (demo)\n\n### Demo (1 min)\n\n![Junction demo](docs/demo/junction-demo.gif)\n\n```bash\n# 1) Clone and enter\ngit clone \u003cyour-repo-url\u003e.git\ncd Junction-Open\n\n# 2) Run the demo on a sample file\npython3 demo/demo_runner.py samples/payment_intent_logistics_example.csv out/recommendations_demo.csv\n\n# 3) See the output\nhead -n 5 out/recommendations_demo.csv\n```\n\n**What you’ll see**\n- A new CSV with columns: `recommended_rail`, `recommended_payment_method` (ZLSCH), `decision_reason`, `estimated_fee`, `expected_settlement_time`, `f110_bucket` (EARLY/LATE), `must_send_before` (ISO if available).\n- A console summary with **rail mix** and **estimated fees** vs a baseline.\n\n## Repo layout\n```\njunction-open/\n  .github/workflows/lint.yml        # basic CI checks\n  LICENSE                           # Apache 2.0\n  README.md\n  docs/\n    runbook_sftp_odata.md           # SAP SFTP \u0026 OData integration runbook\n    sap_s4hana_mapping_cheatsheet.md\n    pilot_loi.md\n  policies/\n    routing_rules_logistics.yaml    # v0 routing policy (edit per client)\n  samples/\n    payment_intent_logistics_template.csv\n    payment_intent_logistics_example.csv\n    payment_intent_logistics_complex_example.csv\n    exceptions_queue_template.csv\n  schemas/\n    payment_intent_v1.schema.json   # column schema for inbound CSV\n  tools/\n    validate_csv.py                 # quick schema check for inbound CSV\n  demo/\n    demo_runner.py                  # decision-only CLI\n```\n\n## SFTP-first integration (clients)\n- SAP exports **open AP items** (IDs only) to SFTP.\n- Junction processes and writes back **Recommendations** (ZLSCH) + **Exceptions**.\n- SAP mass-updates ZLSCH and runs **F110** as usual.\n\nSee **docs/runbook_sftp_odata.md** for filenames, schemas, CPI iFlow, and the OData pattern.\n\n## License\nApache-2.0 (see LICENSE).\n\n## Security\nSee **SECURITY.md** for how to report vulnerabilities.\n\n## Time-aware cutoffs demo\n\nRun the same invoice **before** and **after** ACH Same-Day cutoff to see ETA and ZLSCH change.\n\n```bash\n# Before cutoff (uses calendars/cutoffs.sample.yaml)\npython3 -m demo.demo_runner_timeaware samples/demo_cutoff_switch.csv out/recs_before.csv calendars/cutoffs.sample.yaml --tz America/New_York\n\n# After cutoff (forces cutoff passed → next business day)\npython3 -m demo.demo_runner_timeaware samples/demo_cutoff_switch.csv out/recs_after.csv calendars/cutoffs_after.yaml --tz America/New_York\n\n# Quick peek (first two lines of each result)\nsed -n '1,2p' out/recs_before.csv\nsed -n '1,2p' out/recs_after.csv\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunction-engine%2Fjunction-open","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunction-engine%2Fjunction-open","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunction-engine%2Fjunction-open/lists"}