Module headers

Module headers 

Source
Expand description

§SWIFT Message Headers and Trailers

§Purpose

Comprehensive header and trailer structures for SWIFT MT messages, implementing the complete SWIFT FIN block structure including Basic Header (Block 1), Application Header (Block 2), User Header (Block 3), and Trailer (Block 5).

§Block Structure

  • Block 1: Basic Header - Sender identification and routing information
  • Block 2: Application Header - Message type and delivery information
  • Block 3: User Header - Optional user-defined fields and references
  • Block 5: Trailer - Optional authentication and delivery confirmation

§Features

  • Complete SWIFT Compliance: Follows SWIFT User Handbook specifications
  • Type-Safe Parsing: Strongly-typed header structures with validation
  • Authentication Support: MAC and authentication key handling
  • Sample Generation: Realistic header generation for testing
  • Network Validation: BIC validation and routing verification

Structs§

ApplicationHeader
Application Header (Block 2): Message Type and Routing Information
BalanceCheckpoint
Balance checkpoint structure for Tag 423
BasicHeader
Basic Header (Block 1): SWIFT Message Identification and Routing
MessageInputReference
Message Input Reference structure for Tag 106
MessageOutputReference
Message Output Reference structure (similar to MIR but for output)
MessageReference
Message Reference structure for MRF tag
PaymentControlsInfo
Payment controls information structure for Tag 434
PaymentReleaseInfo
Payment release information structure for Tag 165
PossibleDuplicateEmission
Possible Duplicate Emission structure for PDE tag
PossibleDuplicateMessage
Possible Duplicate Message structure for PDM tag
SanctionsScreeningInfo
Sanctions screening information structure for Tag 433
SystemOriginatedMessage
System Originated Message structure for SYS tag
Trailer
Trailer (Block 5): Message Security and Control Information
UserHeader
User Header (Block 3): Extended Service Options and Controls