pub struct MT202 {Show 19 fields
pub field_20: Field20,
pub field_21: Field21NoOption,
pub field_13c: Option<Vec<Field13C>>,
pub field_32a: Field32A,
pub field_52: Option<Field52OrderingInstitution>,
pub field_53: Option<Field53SenderCorrespondent>,
pub field_54: Option<Field54ReceiverCorrespondent>,
pub field_56: Option<Field56Intermediary>,
pub field_57: Option<Field57AccountWithInstitution>,
pub field_58: Field58,
pub field_72: Option<Field72>,
pub field_50_seq_b: Option<Field50OrderingCustomerAFK>,
pub field_52_seq_b: Option<Field52OrderingInstitution>,
pub field_56_seq_b: Option<Field56Intermediary>,
pub field_57_seq_b: Option<Field57AccountWithInstitution>,
pub field_59_seq_b: Option<Field59>,
pub field_70_seq_b: Option<Field70>,
pub field_72_seq_b: Option<Field72>,
pub field_33b_seq_b: Option<Field33B>,
}
Expand description
MT202: General Financial Institution Transfer
§Purpose
Used for financial institution-to-financial institution payments where both the ordering and beneficiary customers are financial institutions. This message facilitates transfers of funds between institutions for their own account or on behalf of third parties.
§Scope
This message is:
- Sent between financial institutions for interbank transfers
- Used for settlement of obligations between financial institutions
- Applicable for both cover payments (with underlying customer details) and direct institution transfers
- Compatible with real-time gross settlement (RTGS) systems
- Subject to SRG2025 contingency processing for FI-to-FI transfers
§Key Features
- Dual Sequence Structure:
- Sequence A: Basic interbank transfer details
- Sequence B: Cover payment details (when applicable)
- Flexible Routing: Support for correspondent banking chains through fields 52-57
- Cover Payment Detection: Automatic identification of cover vs. direct transfers
- Reject/Return Handling: Built-in support for payment exception processing
- Settlement Integration: Compatible with various settlement methods and systems
- SRG2025 Compliance: Enhanced network validation rules for contingency processing
§Common Use Cases
- Interbank settlement transactions
- Cover payments for underlying customer transfers
- Foreign exchange settlement
- Correspondent banking transfers
- Central bank operations
- Cross-border payment settlement
- SWIFT gpi (global payments innovation) transactions
§Message Structure
§Sequence A (Mandatory)
- Field 20: Transaction Reference (mandatory) - Unique sender reference
- Field 21: Related Reference (mandatory) - Reference to related message/transaction
- Field 13C: Time Indication (optional, repetitive) - Processing time constraints
- Field 32A: Value Date/Currency/Amount (mandatory) - Settlement details
- Field 52: Ordering Institution (optional) - Institution initiating the transfer
- Field 53: Sender’s Correspondent (optional) - Sender’s correspondent bank
- Field 54: Receiver’s Correspondent (optional) - Receiver’s correspondent bank
- Field 56: Intermediary Institution (optional) - Intermediary in the payment chain
- Field 57: Account With Institution (optional) - Final crediting institution
- Field 58: Beneficiary Institution (mandatory) - Final beneficiary institution
- Field 72: Sender to Receiver Information (optional) - Additional instructions
§Sequence B (Optional - Cover Payment Details)
- Field 50: Ordering Customer (optional) - Underlying ordering customer
- Field 52: Ordering Institution (optional) - Ordering institution details for cover
- Field 56: Intermediary Institution (optional) - Intermediary for cover payment
- Field 57: Account With Institution (optional) - Account details for cover
- Field 59: Beneficiary Customer (optional) - Underlying beneficiary customer
- Field 70: Remittance Information (optional) - Payment purpose/details
- Field 72: Sender to Receiver Info (optional) - Cover-specific instructions
- Field 33B: Currency/Instructed Amount (optional) - Original instructed amount
§Network Validation Rules
- Intermediary Chain Validation: If field 56 is present, field 57 becomes mandatory
- Cover Payment Structure: Validation of Sequence B customer fields for cover detection
- Cross-border Compliance: Enhanced validation for contingency processing (SRG2025)
- Settlement Method Validation: Proper correspondent banking chain validation
- Time Indication Compliance: CLS/TARGET timing constraint validation
- Reference Format Validation: Proper format validation for all reference fields
- REJT/RETN Indicators: Structured validation of reject/return codes in field 72
§SRG2025 Status
- Structural Changes: Enhanced - Additional network validated rules for contingency processing
- Validation Updates: Contingency processing applicable to FI-to-FI transfers
- Processing Improvements: ISO 20022 automatic conversion for compliant messages
- Compliance Notes: Scope includes FI-to-FI including MA-CUGs (excludes SCORE, MI-CUGs)
§Integration Considerations
- Banking Systems: Compatible with real-time gross settlement (RTGS) systems and net settlement systems
- API Integration: RESTful API support for modern interbank payment platforms
- Processing Requirements: Supports correspondent banking arrangements and central bank settlement
- Compliance Integration: Built-in support for cross-currency settlement and regulatory reporting
§Relationship to Other Messages
- Triggers: Often triggered by MT103 customer payments requiring cover or institutional settlement
- Responses: May generate MT900/MT910 (confirmations) or MT292/MT296 (reject notifications)
- Related: Works with MT205 (with mandatory ordering institution) and account reporting messages
- Alternatives: MT205 for transfers requiring explicit ordering institution identification
- Status Updates: May receive MT192/MT196/MT199 for status notifications and inquiry responses
Fields§
§field_20: Field20
§field_21: Field21NoOption
§field_13c: Option<Vec<Field13C>>
§field_32a: Field32A
§field_52: Option<Field52OrderingInstitution>
§field_53: Option<Field53SenderCorrespondent>
§field_54: Option<Field54ReceiverCorrespondent>
§field_56: Option<Field56Intermediary>
§field_57: Option<Field57AccountWithInstitution>
§field_58: Field58
§field_72: Option<Field72>
§field_50_seq_b: Option<Field50OrderingCustomerAFK>
§field_52_seq_b: Option<Field52OrderingInstitution>
§field_56_seq_b: Option<Field56Intermediary>
§field_57_seq_b: Option<Field57AccountWithInstitution>
§field_59_seq_b: Option<Field59>
§field_70_seq_b: Option<Field70>
§field_72_seq_b: Option<Field72>
§field_33b_seq_b: Option<Field33B>
Implementations§
Source§impl MT202
impl MT202
Sourcepub fn has_reject_codes(&self) -> bool
pub fn has_reject_codes(&self) -> bool
Check if this MT202 message contains reject codes
Reject messages are identified by checking:
- Field 20 (Transaction Reference) for “REJT” prefix or content
- Field 72 (Sender to Receiver Information) containing
/REJT/
codes - Additional structured reject information in field 72
Sourcepub fn has_return_codes(&self) -> bool
pub fn has_return_codes(&self) -> bool
Check if this MT202 message contains return codes
Return messages are identified by checking:
- Field 20 (Transaction Reference) for “RETN” prefix or content
- Field 72 (Sender to Receiver Information) containing
/RETN/
codes - Additional structured return information in field 72
Sourcepub fn is_cover_message(&self) -> bool
pub fn is_cover_message(&self) -> bool
Check if this MT202 message is a Cover (COV) message
COV messages are distinguished by:
- Presence of customer fields (50A/50 and 59A/59) indicating underlying customer details
- Field 121 (UETR) in Block 3 is typically mandatory for COV messages
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MT202
impl<'de> Deserialize<'de> for MT202
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl SwiftMessageBody for MT202
impl SwiftMessageBody for MT202
Source§fn message_type() -> &'static str
fn message_type() -> &'static str
Get the message type identifier (e.g., “103”, “202”)
Source§fn from_fields(
fields: HashMap<String, Vec<(String, usize)>>,
) -> SwiftResult<Self>
fn from_fields( fields: HashMap<String, Vec<(String, usize)>>, ) -> SwiftResult<Self>
Create from field map with sequential consumption tracking
Source§fn from_fields_with_config(
fields: HashMap<String, Vec<(String, usize)>>,
config: &ParserConfig,
) -> Result<ParseResult<Self>, ParseError>
fn from_fields_with_config( fields: HashMap<String, Vec<(String, usize)>>, config: &ParserConfig, ) -> Result<ParseResult<Self>, ParseError>
Create from field map with configuration for error collection
Source§fn required_fields() -> Vec<&'static str>
fn required_fields() -> Vec<&'static str>
Get required field tags for this message type
Source§fn optional_fields() -> Vec<&'static str>
fn optional_fields() -> Vec<&'static str>
Get optional field tags for this message type
impl StructuralPartialEq for MT202
Auto Trait Implementations§
impl Freeze for MT202
impl RefUnwindSafe for MT202
impl Send for MT202
impl Sync for MT202
impl Unpin for MT202
impl UnwindSafe for MT202
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more