Expand description
Block and field tokenizer for SWIFT MT messages
This module handles the extraction of SWIFT message blocks and parsing of individual fields from Block 4 (Text Block). It provides efficient tokenization with proper error handling and supports streaming for large messages.
Structs§
- Application
Header - Application Header (Block 2) structure
- Balance
Checkpoint - Balance checkpoint structure for Tag 423
- Basic
Header - Basic Header (Block 1) structure
- Message
Input Reference - Message Input Reference structure for Tag 106
- Message
Output Reference - Message Output Reference structure (similar to MIR but for output)
- Message
Reference - Message Reference structure for MRF tag
- Parsed
Field - Parsed field structure
- Payment
Controls Info - Payment controls information structure for Tag 434
- Payment
Release Info - Payment release information structure for Tag 165
- Possible
Duplicate Emission - Possible Duplicate Emission structure for PDE tag
- Possible
Duplicate Message - Possible Duplicate Message structure for PDM tag
- Sanctions
Screening Info - Sanctions screening information structure for Tag 433
- Swift
Message Blocks - SWIFT message blocks structure
- System
Originated Message - System Originated Message structure for SYS tag
- Trailer
- Trailer (Block 5) structure based on SWIFT MT standards
- User
Header - User Header (Block 3) structure based on SWIFT MT standards
Functions§
- extract_
blocks - Extract blocks from a SWIFT message using proper brace matching
- extract_
message_ type - Extract message type from blocks
- parse_
application_ header - Parse application header from Block 2
- parse_
basic_ header - Parse basic header from Block 1
- parse_
block4_ fields - Parse Block 4 fields into individual field structures
- parse_
trailer_ block - Parse trailer block from Block 5 using structured parsing
- parse_
user_ header - Parse user header from Block 3 using structured parsing