MT104

Struct MT104 

Source
pub struct MT104 {
Show 19 fields pub field_20: Field20, pub field_21r: Option<Field21R>, pub field_23e: Option<Field23E>, pub field_21e: Option<Field21E>, pub field_30: Field30, pub field_51a: Option<Field51A>, pub field_50_instructing: Option<Field50InstructingParty>, pub field_50_creditor: Option<Field50Creditor>, pub field_52: Option<Field52CreditorBank>, pub field_26t: Option<Field26T>, pub field_77b: Option<Field77B>, pub field_71a: Option<Field71A>, pub field_72: Option<Field72>, pub transactions: Vec<MT104Transaction>, pub field_32b: Option<Field32B>, pub field_19: Option<Field19>, pub field_71f: Option<Field71F>, pub field_71g: Option<Field71G>, pub field_53: Option<Field53SenderCorrespondent>,
}
Expand description

MT104: Direct Debit and Request for Debit Transfer Message

§Purpose

Used for customer direct debit instructions between financial institutions, allowing creditors to request debiting of debtor accounts through the banking network. This message enables efficient collection of payments through authorized direct debit arrangements.

§Scope

This message is:

  • Sent by corporate entities to their financial institutions for payment collection
  • Used to request direct debit of debtor accounts with proper authorization
  • Applicable for both domestic and international direct debit scenarios
  • Compatible with bulk processing of multiple direct debit transactions
  • Subject to strict authorization and regulatory compliance requirements
  • Used in conjunction with direct debit mandates and agreements

§Key Features

  • Multi-Transaction Support: Single message can contain multiple direct debit requests
  • Three-Sequence Architecture: General info, transaction details, and settlement information
  • Authorization Framework: Built-in support for direct debit mandates and agreements
  • Currency Flexibility: Supports different currencies and exchange rate conversions
  • Charge Allocation Options: Configurable charge handling (OUR/SHA/BEN)
  • Regulatory Compliance: Comprehensive fields for regulatory reporting requirements

§Common Use Cases

  • Utility companies collecting monthly bills from customer accounts
  • Insurance companies collecting premium payments via direct debit
  • Subscription service providers collecting recurring fees
  • Loan servicing companies collecting installment payments
  • Government agencies collecting taxes and fees
  • Corporate collection of accounts receivable from customers
  • Automated clearing house (ACH) equivalent processing

§Message Structure

§Sequence A (General Information - Mandatory, Single)

  • Field 20: Sender’s Reference (mandatory) - Unique message identifier
  • Field 21R: Customer Specified Reference (optional) - Creditor’s batch reference
  • Field 28D: Message Index/Total (mandatory) - For chained messages
  • Field 30: Requested Execution Date (mandatory) - When debits should be executed
  • Field 25: Account Identification (optional) - Creditor’s account for credits
  • Field 50: Instructing Party (optional) - Party authorizing the direct debits

§Sequence B (Transaction Details - Mandatory, Repetitive)

  • Field 21: Transaction Reference (mandatory) - Unique transaction identifier
  • Field 32B: Currency/Amount (mandatory) - Amount to be debited
  • Field 50: Ordering Customer/Debtor (mandatory) - Account to be debited
  • Field 52: Account Servicing Institution (optional) - Debtor’s bank
  • Field 57: Account With Institution (optional) - Intermediary institution
  • Field 59: Beneficiary/Creditor (mandatory) - Account to be credited
  • Field 70: Remittance Information (optional) - Payment purpose and details
  • Field 77B: Regulatory Reporting (optional) - Compliance information
  • Field 71A: Details of Charges (mandatory) - Charge allocation instructions

§Sequence C (Settlement Information - Optional, Single)

  • Field 32A: Value Date/Currency/Total Amount (optional) - Settlement summary
  • Field 19: Sum of Amounts (optional) - Total amount of all transactions
  • Field 71F: Sender’s Charges (optional) - Total charges claimed
  • Field 71G: Receiver’s Charges (optional) - Total charges to be deducted

§Network Validation Rules

  • Authorization Validation: Proper direct debit mandate verification required
  • Transaction Limits: Individual and batch transaction limit enforcement
  • Currency Consistency: Currency validation across sequences (Note: C11 requires custom implementation due to JSONLogic limitations)
  • Charge Allocation: Consistent charge handling across all transactions
  • Settlement Totals: Sequence C totals must match sum of Sequence B amounts
  • Reference Uniqueness: Transaction references must be unique within batch

§SRG2025 Status

  • Structural Changes: None - MT104 format remains unchanged
  • Enhanced Validation: Strengthened authorization and mandate validation
  • Regulatory Compliance: Enhanced field 77B validation for reporting
  • Processing Improvements: Better support for modern direct debit frameworks

§Integration Considerations

  • Banking Systems: Compatible with core banking and payment processing systems
  • Authorization Systems: Integration with direct debit mandate management systems
  • API Integration: RESTful API support for modern payment platforms
  • Processing Requirements: Supports batch processing with settlement coordination

§Relationship to Other Messages

  • Triggers: Often triggered by recurring payment schedules or collection processes
  • Responses: May generate MT103 (credit transfers) for creditor account credits
  • Related: Works with MT202 for settlement and MT940/MT950 for account reporting
  • Alternatives: MT101 for credit transfers, MT103 for individual payments
  • Authorization: Requires underlying direct debit mandates and agreements

Fields§

§field_20: Field20§field_21r: Option<Field21R>§field_23e: Option<Field23E>§field_21e: Option<Field21E>§field_30: Field30§field_51a: Option<Field51A>§field_50_instructing: Option<Field50InstructingParty>§field_50_creditor: Option<Field50Creditor>§field_52: Option<Field52CreditorBank>§field_26t: Option<Field26T>§field_77b: Option<Field77B>§field_71a: Option<Field71A>§field_72: Option<Field72>§transactions: Vec<MT104Transaction>§field_32b: Option<Field32B>§field_19: Option<Field19>§field_71f: Option<Field71F>§field_71g: Option<Field71G>§field_53: Option<Field53SenderCorrespondent>

Implementations§

Source§

impl MT104

Source

pub fn validate() -> &'static str

Get validation rules for this message type

Trait Implementations§

Source§

impl Clone for MT104

Source§

fn clone(&self) -> MT104

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MT104

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for MT104

Source§

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 PartialEq for MT104

Source§

fn eq(&self, other: &MT104) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for MT104

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl SwiftMessageBody for MT104

Source§

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>

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>

Create from field map with configuration for error collection
Source§

fn to_fields(&self) -> HashMap<String, Vec<String>>

Convert to field map
Source§

fn to_ordered_fields(&self) -> Vec<(String, String)>

Convert to ordered field list for MT serialization Returns fields in the correct sequence order for multi-sequence messages
Source§

fn required_fields() -> Vec<&'static str>

Get required field tags for this message type
Source§

fn optional_fields() -> Vec<&'static str>

Get optional field tags for this message type
Source§

impl StructuralPartialEq for MT104

Auto Trait Implementations§

§

impl Freeze for MT104

§

impl RefUnwindSafe for MT104

§

impl Send for MT104

§

impl Sync for MT104

§

impl Unpin for MT104

§

impl UnwindSafe for MT104

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Fake for T

Source§

fn fake<U>(&self) -> U
where Self: FakeBase<U>,

Source§

fn fake_with_rng<U, R>(&self, rng: &mut R) -> U
where R: Rng + ?Sized, Self: FakeBase<U>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,