open-standards/openpay/crates/op-iso20022/Cargo.toml
Transaction Science 6675ffd5c4
All checks were successful
repository checks / lockfiles, advisories, tests in CI, workflow hygiene, spec and section references, public text (push) Successful in 15m20s
OpenPay: what a spending limit admitted in its signed history, and each scheme's rules on the payout documents
The limit's history now carries what happens to each reservation the
gate admits: admitted with its maximum and time, captured, reversed,
settled, reclaimed. The reader recomputes what each period commits and
refuses an admission over the limit in force at that point, numbering out
of order, a capture or settlement past the reservation, a reversal past
what was captured, and anything after a reservation closed. A signing
gate refuses a time before its last statement, and its captures and
reclaims apply a raise whose delay has run first; cancel_raise returns a
Result for that refusal.

On SEPA every text is converted into the schemes' Latin set (accents
dropped, letters that do not decompose spelled out, anything else
refused and named), names are at most 70 characters, references follow
the schemes' shape, and no credit exceeds 999999999.99 euros. On FedNow
and RTP no credit exceeds the 10000000.00 dollar network maximum. Dates
are checked, and every document is parsed back into the typed
pacs.008.001.08 model and held to its checks.

Thirty-five seeded faults, each caught.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-11 22:02:19 -05:00

58 lines
2.6 KiB
TOML

[package]
name = "op-iso20022"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
description = "OpenPay ISO 20022 facade: typed, validated wrapper over open-payments-iso20022 with FedNow, RTP, PIX, SEPA Instant profiles."
[dependencies]
op-core = { path = "../op-core" }
# The umbrella `open-payments-iso20022` crate only re-exports types via
# its private `document.rs` enum; the per-family sub-crates aren't
# accessible through it. Add them as direct deps so we can reference
# specific message versions (`pacs_008_001_08::FIToFICustomerCreditTransferV08`)
# explicitly. All pinned to =1.0.10 except fednow companion which
# lagged at =1.0.9.
open-payments-iso20022 = { workspace = true }
# The sub-crates need the `derive_*` feature set turned on at the
# sub-crate level (the umbrella crate doesn't forward them to deps
# we declare ourselves). `derive_all` bundles serde + debug + default
# + partial_eq + clone, which is what every domain type in this crate
# expects.
open-payments-iso20022-pacs = { version = "=1.0.10", features = ["derive_all"] }
open-payments-iso20022-pain = { version = "=1.0.10", features = ["derive_all"] }
open-payments-iso20022-camt = { version = "=1.0.10", features = ["derive_all"] }
open-payments-iso20022-admi = { version = "=1.0.10", features = ["derive_all"] }
open-payments-iso20022-head = { version = "=1.0.10", features = ["derive_all"] }
# The per-family crates `use iso20022_common::common::*` privately;
# nested element types (ReportEntry14, CreditDebitCode, ...) live here,
# not in the camt module. We name them directly when flattening a
# statement, so depend on it explicitly with the same derive set.
iso20022-common = { version = "=1.0.10", features = ["derive_all"] }
open-payments-fednow = { workspace = true }
quick-xml = { workspace = true }
thiserror = { workspace = true }
# the euro schemes' character set: accents dropped by decomposition
unicode-normalization = "0.1"
serde = { workspace = true }
serde_json = { workspace = true }
time = { workspace = true }
uuid = { workspace = true }
[dev-dependencies]
insta = { workspace = true }
proptest = { workspace = true }
[features]
default = []
# Enable per-rail profile validators. Each profile encodes the
# scheme-specific subset of ISO 20022 (e.g. FedNow's "Send" participant
# requires UETR, IMAD, specific charge bearer codes, etc.)
fednow = []
rtp = []
sepa-inst = []
pix = []
# When enabled, runs full XSD-style validation. Off by default for hot
# paths; on for ingress to catch bad messages before they reach the rail.
strict-validation = []