telco-interop

WBCI requests and messages

The six WBCI requests and six messages as Rust types (VA-KUE-MRN, STR-AUF, TVS-VA, RUEM-VA, ABBM, AKM-TR …), and answers built from what they answer.

On this page

Requests (Anfrage)🔗

CaseTypeSent by
VA-KUE-MRNVorabstimmung with VorabstimmungsFall::KueMrnEKPauf
VA-KUE-ORNVorabstimmungsFall::KueOrnEKPauf
VA-RRNPVorabstimmungsFall::RrnpEKPauf
STR-AUFStorno with StornoArt::AufhebungAuf / AufhebungAbgeither side
STR-AENStorno with StornoArt::AenderungAuf / AenderungAbgeither side
TVS-VATerminverschiebungEKPauf

A request has no Absender field: its kind fixes the sender, so Anfrage::absender() derives it, the writer fills it in, and the reader refuses a request whose Absender contradicts its type (receipt code 0995). A cancellation by the EKPabg carries a mandatory stornogrund.

Messages (Meldung) and the receipt (Teq)🔗

MessageTypeMeans
RUEM-VARuemVaagreed: binding wechseltermin, 8001 (as asked) or 8002 (later)
ABBMAbbmrefused, with codes
ERLMErlmcancellation (8004) or postponement (8003) done
AKM-TRAkmTrthe EKPauf takes over the line (or not), „sicherer Hafen“
ABBM-TRAbbmTrthe EKPabg refuses the AKM-TR
TEQTeqtechnical receipt for every call: OK, 0993, 0995, 0999

Answers from requests🔗

Answers copy every reference (sender, EKP pair, case, ids) from what they answer:

use wbci::*;

// As the EKPabg: the receipt, then the answer.
let teq = Teq::for_anfrage(&anfrage, Meldungscode::Ok);
let ruem = RuemVa::zustimmung(&va, "2027-01-22".parse()?);   // later than asked → 8002 NAT
assert_eq!(ruem.positionen[0].position.code, Meldungscode::Nat);

// Or refuse, with the reason 8116 always needs:
let abbm = Abbm::ablehnung(&anfrage, Meldungscode::Sonstiges)
    .with_begruendung(Freitext::new("Frist unterschritten")?);
assert!(Meldung::from(abbm).issues(Some(&anfrage)).is_empty());

// As the EKPauf, after the RUEM-VA: take over the line.
let akm = AkmTr::uebernahme(&ruem, vec![UebernahmeLeitung::LineId("DEU.EKP2.1754639821".parse()?)], false);
assert!(akm.ressourcenuebernahme);

Cancellations and postponements are confirmed with Erlm::storno_ok and Erlm::terminverschiebung_ok; the AKM-TR is refused with AbbmTr::ablehnung.

Personal data🔗

Names, street, house number, phone numbers and free text print redacted in Debug (Nachname(<redacted, 10 chars>)), so logging a request does not log the customer. Display and as_str() give the value when you need it.

Edit this page on GitHub · Report a mistake · API reference on docs.rs