FIToFIPaymentReversalV02

pacs.007.001.02

Scope The FinancialInstitutionToFinancialInstitutionPaymentReversal message is sent by an agent to the next party in the payment chain. It is used to reverse a payment previously executed. Usage The FIToFIPaymentReversal message is exchanged between agents to reverse a FIToFICustomerDirectDebit message that has been settled. The result will be a credit on the debtor account. The FIToFIPaymentReversal message may or may not be the follow-up of a CustomerDirectDebitInitiation message. The FIToFIPaymentReversal message refers to the original FIToFICustomerDirectDebit message by means of references only or by means of references and a set of elements from the original instruction. The FIToFIPaymentReversal message can be used in domestic and cross-border scenarios.

Message Construction

Every ISO20022 message has at the highest level what we call ‘building blocks’. Because the message is constructed as immutable records, the association is by composition. Below you can see the relationship between the message and its constituent building blocks: For comparison, see the ISO20022 official specification

classDiagram
     direction LR
%% FIToFIPaymentReversalV02 recursion level 0 with max 0
FIToFIPaymentReversalV02 *-- "1..1" GroupHeader41 : GroupHeader
FIToFIPaymentReversalV02 *-- "1..1" OriginalGroupInformation22 : OriginalGroupInformation
FIToFIPaymentReversalV02 *-- "0..1" PaymentTransactionInformation29 : TransactionInformation
  

Now, we will zero-in one-by-one on each of these building blocks.

GroupHeader building block

Set of characteristics shared by all individual transactions included in the message. Set of characteristics shared by all individual transactions included in the message. For comparison, see the ISO20022 official specification

classDiagram
   direction tb
%% GroupHeader41 recursion level 0 with max 1
class GroupHeader41{
    MessageIdentification IsoMax35Text
    CreationDateTime IsoISODateTime
    BatchBooking IsoBatchBookingIndicator
    NumberOfTransactions IsoMax15NumericText
    ControlSum IsoDecimalNumber
    GroupReversal IsoTrueFalseIndicator
    TotalReversedInterbankSettlementAmount IsoActiveCurrencyAndAmount
    InterbankSettlementDate IsoISODate
}
GroupHeader41 *-- "0..2" IAuthorisation1Choice : Authorisation
GroupHeader41 *-- "1..1" SettlementInformation13 : SettlementInformation
GroupHeader41 *-- "0..1" BranchAndFinancialInstitutionIdentification4 : InstructingAgent
GroupHeader41 *-- "0..1" BranchAndFinancialInstitutionIdentification4 : InstructedAgent
%% IAuthorisation1Choice recursion level 1 with max 1
%% SettlementInformation13 recursion level 1 with max 1
class SettlementInformation13{
    SettlementMethod SettlementMethod1Code
}
SettlementInformation13 *-- "0..1" CashAccount16 : SettlementAccount
SettlementInformation13 *-- "0..1" IClearingSystemIdentification3Choice : ClearingSystem
SettlementInformation13 *-- "0..1" BranchAndFinancialInstitutionIdentification4 : InstructingReimbursementAgent
SettlementInformation13 *-- "0..1" CashAccount16 : InstructingReimbursementAgentAccount
SettlementInformation13 *-- "0..1" BranchAndFinancialInstitutionIdentification4 : InstructedReimbursementAgent
SettlementInformation13 *-- "0..1" CashAccount16 : InstructedReimbursementAgentAccount
SettlementInformation13 *-- "0..1" BranchAndFinancialInstitutionIdentification4 : ThirdReimbursementAgent
SettlementInformation13 *-- "0..1" CashAccount16 : ThirdReimbursementAgentAccount
%% BranchAndFinancialInstitutionIdentification4 recursion level 1 with max 1
BranchAndFinancialInstitutionIdentification4 *-- "1..1" FinancialInstitutionIdentification7 : FinancialInstitutionIdentification
BranchAndFinancialInstitutionIdentification4 *-- "0..1" BranchData2 : BranchIdentification
%% BranchAndFinancialInstitutionIdentification4 recursion level 1 with max 1
BranchAndFinancialInstitutionIdentification4 *-- "1..1" FinancialInstitutionIdentification7 : FinancialInstitutionIdentification
BranchAndFinancialInstitutionIdentification4 *-- "0..1" BranchData2 : BranchIdentification
  

GroupHeader41 members

Member name Description Data Type / Multiplicity
MessageIdentification Point to point reference, as assigned by the instructing party, and sent to the next party in the chain to unambiguously identify the message. Usage: The instructing party has to make sure that MessageIdentification is unique per instructed party for a pre-agreed period.
CreationDateTime Date and time at which the message was created. IsoISODateTime - Required 1..1
Authorisation User identification or any user key to be used to check whether the initiating party is allowed to initiate transactions from the account specified in the message.
BatchBooking Identifies whether a single entry per individual transaction or a batch entry for the sum of the amounts of all transactions within the group of a message is requested. Usage: Batch booking is used to request and not order a possible batch booking.
NumberOfTransactions Number of individual transactions contained in the message. IsoMax15NumericText - Required 1..1
ControlSum Total of all individual amounts included in the message, irrespective of currencies. IsoDecimalNumber - Optional 0..1
GroupReversal Indicates whether the reversal applies to the whole group of transactions or to individual transactions within the original group. IsoTrueFalseIndicator - Optional 0..1
TotalReversedInterbankSettlementAmount Total amount of money moved between the instructing agent and the instructed agent in the reversal message. IsoActiveCurrencyAndAmount - Optional 0..1
InterbankSettlementDate Date on which the amount of money ceases to be available to the agent that owes it and when the amount of money becomes available to the agent to which it is due. IsoISODate - Optional 0..1
SettlementInformation Specifies the details on how the settlement of the transaction(s) between the instructing agent and the instructed agent is completed. SettlementInformation13 - Required 1..1
InstructingAgent Agent that instructs the next party in the chain to carry out the (set of) instruction(s).
InstructedAgent Agent that is instructed by the previous party in the chain to carry out the (set of) instruction(s).

OriginalGroupInformation building block

Information concerning the original group of transactions, to which the message refers. Set of elements used to provide information on the original group, to which the message refers. For comparison, see the ISO20022 official specification

classDiagram
   direction tb
%% OriginalGroupInformation22 recursion level 0 with max 1
class OriginalGroupInformation22{
    OriginalMessageIdentification IsoMax35Text
    OriginalMessageNameIdentification IsoMax35Text
    OriginalCreationDateTime IsoISODateTime
}
OriginalGroupInformation22 *-- "0..0" ReversalReasonInformation6 : ReversalReasonInformation
%% ReversalReasonInformation6 recursion level 1 with max 1
class ReversalReasonInformation6{
    AdditionalInformation IsoMax105Text
}
ReversalReasonInformation6 *-- "0..1" PartyIdentification32 : Originator
ReversalReasonInformation6 *-- "0..1" IReversalReason4Choice : Reason
  

OriginalGroupInformation22 members

Member name Description Data Type / Multiplicity
OriginalMessageIdentification Point to point reference, as assigned by the original instructing party, to unambiguously identify the original message. IsoMax35Text - Required 1..1
OriginalMessageNameIdentification Specifies the original message name identifier to which the message refers. IsoMax35Text - Required 1..1
OriginalCreationDateTime Date and time at which the original message was created. IsoISODateTime - Optional 0..1
ReversalReasonInformation Set of elements used to provide detailed information on the reversal reason. ReversalReasonInformation6 - Unknown 0..0

TransactionInformation building block

Information concerning the original transactions, to which the reversal message refers. Set of elements used to provide reference and status information on the original transactions, included in the original instruction, to which the reversal message applies. For comparison, see the ISO20022 official specification

classDiagram
   direction tb
%% PaymentTransactionInformation29 recursion level 0 with max 1
class PaymentTransactionInformation29{
    ReversalIdentification IsoMax35Text
    OriginalInstructionIdentification IsoMax35Text
    OriginalEndToEndIdentification IsoMax35Text
    OriginalTransactionIdentification IsoMax35Text
    OriginalClearingSystemReference IsoMax35Text
    OriginalInterbankSettlementAmount IsoActiveOrHistoricCurrencyAndAmount
    ReversedInterbankSettlementAmount IsoActiveCurrencyAndAmount
    InterbankSettlementDate IsoISODate
    ReversedInstructedAmount IsoActiveOrHistoricCurrencyAndAmount
    ExchangeRate IsoBaseOneRate
    CompensationAmount IsoActiveOrHistoricCurrencyAndAmount
    ChargeBearer ChargeBearerType1Code
}
PaymentTransactionInformation29 *-- "0..0" ChargesInformation5 : ChargesInformation
PaymentTransactionInformation29 *-- "0..1" BranchAndFinancialInstitutionIdentification4 : InstructingAgent
PaymentTransactionInformation29 *-- "0..1" BranchAndFinancialInstitutionIdentification4 : InstructedAgent
PaymentTransactionInformation29 *-- "0..0" ReversalReasonInformation6 : ReversalReasonInformation
PaymentTransactionInformation29 *-- "0..1" OriginalTransactionReference13 : OriginalTransactionReference
%% ChargesInformation5 recursion level 1 with max 1
class ChargesInformation5{
    Amount IsoActiveOrHistoricCurrencyAndAmount
}
ChargesInformation5 *-- "1..1" BranchAndFinancialInstitutionIdentification4 : Party
%% BranchAndFinancialInstitutionIdentification4 recursion level 1 with max 1
BranchAndFinancialInstitutionIdentification4 *-- "1..1" FinancialInstitutionIdentification7 : FinancialInstitutionIdentification
BranchAndFinancialInstitutionIdentification4 *-- "0..1" BranchData2 : BranchIdentification
%% BranchAndFinancialInstitutionIdentification4 recursion level 1 with max 1
BranchAndFinancialInstitutionIdentification4 *-- "1..1" FinancialInstitutionIdentification7 : FinancialInstitutionIdentification
BranchAndFinancialInstitutionIdentification4 *-- "0..1" BranchData2 : BranchIdentification
%% ReversalReasonInformation6 recursion level 1 with max 1
class ReversalReasonInformation6{
    AdditionalInformation IsoMax105Text
}
ReversalReasonInformation6 *-- "0..1" PartyIdentification32 : Originator
ReversalReasonInformation6 *-- "0..1" IReversalReason4Choice : Reason
%% OriginalTransactionReference13 recursion level 1 with max 1
class OriginalTransactionReference13{
    InterbankSettlementAmount IsoActiveOrHistoricCurrencyAndAmount
    InterbankSettlementDate IsoISODate
    RequestedCollectionDate IsoISODate
    RequestedExecutionDate IsoISODate
    PaymentMethod PaymentMethod4Code
}
OriginalTransactionReference13 *-- "0..1" IAmountType3Choice : Amount
OriginalTransactionReference13 *-- "0..1" PartyIdentification32 : CreditorSchemeIdentification
OriginalTransactionReference13 *-- "0..1" SettlementInformation13 : SettlementInformation
OriginalTransactionReference13 *-- "0..1" PaymentTypeInformation22 : PaymentTypeInformation
OriginalTransactionReference13 *-- "0..1" MandateRelatedInformation6 : MandateRelatedInformation
OriginalTransactionReference13 *-- "0..1" RemittanceInformation5 : RemittanceInformation
OriginalTransactionReference13 *-- "0..1" PartyIdentification32 : UltimateDebtor
OriginalTransactionReference13 *-- "0..1" PartyIdentification32 : Debtor
OriginalTransactionReference13 *-- "0..1" CashAccount16 : DebtorAccount
OriginalTransactionReference13 *-- "0..1" BranchAndFinancialInstitutionIdentification4 : DebtorAgent
OriginalTransactionReference13 *-- "0..1" CashAccount16 : DebtorAgentAccount
OriginalTransactionReference13 *-- "0..1" BranchAndFinancialInstitutionIdentification4 : CreditorAgent
OriginalTransactionReference13 *-- "0..1" CashAccount16 : CreditorAgentAccount
OriginalTransactionReference13 *-- "0..1" PartyIdentification32 : Creditor
OriginalTransactionReference13 *-- "0..1" CashAccount16 : CreditorAccount
OriginalTransactionReference13 *-- "0..1" PartyIdentification32 : UltimateCreditor
  

PaymentTransactionInformation29 members

Member name Description Data Type / Multiplicity
ReversalIdentification Unique identification, as assigned by an instructing party for an instructed party, to unambiguously identify the reversed transaction. Usage: The instructing party is the party sending the reversal message and not the party that sent the original instruction that is being reversed.
OriginalInstructionIdentification Unique identification, as assigned by the original instructing party for the original instructed party, to unambiguously identify the original instruction. IsoMax35Text - Optional 0..1
OriginalEndToEndIdentification Unique identification, as assigned by the original initiating party, to unambiguously identify the original transaction. IsoMax35Text - Optional 0..1
OriginalTransactionIdentification Unique identification, as assigned by the original first instructing agent, to umambiguously identify the transaction. IsoMax35Text - Optional 0..1
OriginalClearingSystemReference Unique reference, as assigned by the original clearing system, to unambiguously identify the original instruction. IsoMax35Text - Optional 0..1
OriginalInterbankSettlementAmount Amount of money, as provided in the original transaction, to be moved between the instructing agent and the instructed agent. IsoActiveOrHistoricCurrencyAndAmount - Optional 0..1
ReversedInterbankSettlementAmount Amount of money moved between the instructing agent and the instructed agent in the reversed transaction. IsoActiveCurrencyAndAmount - Required 1..1
InterbankSettlementDate Date on which the amount of money ceases to be available to the agent that owes it and when the amount of money becomes available to the agent to which it is due.
ReversedInstructedAmount Amount of money to be moved between the debtor and the creditor, before deduction of charges, in the reversed transaction. IsoActiveOrHistoricCurrencyAndAmount - Optional 0..1
ExchangeRate Factor used to convert an amount from one currency into another. This reflects the price at which one currency was bought with another currency. IsoBaseOneRate - Optional 0..1
CompensationAmount Amount of money asked or paid as compensation for the processing of the instruction. IsoActiveOrHistoricCurrencyAndAmount - Optional 0..1
ChargeBearer Specifies if the creditor and/or debtor will bear the charges associated with the processing of the payment transaction.
ChargesInformation Provides information on the charges to be paid by the charge bearer(s) related to the processing of the reversal transaction. ChargesInformation5 - Unknown 0..0
InstructingAgent Agent that instructs the next party in the chain to carry out the (set of) instruction(s).
InstructedAgent Agent that is instructed by the previous party in the chain to carry out the (set of) instruction(s).
ReversalReasonInformation Set of elements used to provide detailed information on the reversal reason. ReversalReasonInformation6 - Unknown 0..0
OriginalTransactionReference Set of key elements used to identify the original transaction that is being referred to. OriginalTransactionReference13 - Optional 0..1

Extensibility and generalization considerations

To facilitate generalized design patterns in the system, the FIToFIPaymentReversalV02 implementation follows a specific implementaiton pattern. First of all, FIToFIPaymentReversalV02 impleemnts IOuterRecord indicating it is the outermost logical part of the message definition. Like all message wrappers, FIToFIPaymentReversalV02Document implements IOuterDocument. Because FIToFIPaymentReversalV02 implements IOuterDocument, it is a suitable template parameter for IOuterDocument, and causes the internal ‘Message’ to be of type FIToFIPaymentReversalV02.

classDiagram
    class IOuterRecord
    FIToFIPaymentReversalV02 --|> IOuterRecord : Implements
    FIToFIPaymentReversalV02Document --|> IOuterDocument~FIToFIPaymentReversalV02~ : Implements
    class IOuterDocument~FIToFIPaymentReversalV02~ {
        FIToFIPaymentReversalV02 Message
     }
  

Document wrapper for serialization

The only real purpose FIToFIPaymentReversalV02Document serves is to cause the document to be serialized into the ‘urn:iso:std:iso:20022:tech:xsd:pacs.007.001.02’ namespace. Therefore, it will probably be the usual practice to build the message and construct this wrapper at the last minute using FIToFIPaymentReversalV02.ToDocument() method. The returned FIToFIPaymentReversalV02Document value will serialize correctly according to ISO 20022 standards.

classDiagram
    FIToFIPaymentReversalV02Document *-- FIToFIPaymentReversalV02 : Document
  

Sample of message format

This is an abbreviated version of what the message should look like.

<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pacs.007.001.02">
    <FIToFIPmtRvsl>
        <GrpHdr>
            <!-- GroupHeader inner content -->
        </GrpHdr>
        <OrgnlGrpInf>
            <!-- OriginalGroupInformation inner content -->
        </OrgnlGrpInf>
        <TxInf>
            <!-- TransactionInformation inner content -->
        </TxInf>
    </FIToFIPmtRvsl>
</Document>

Data from ISO specification

This is the technical data from the specification document.

<messageDefinition
  xmi:id="_eldZ2dEuEd-BzquC8wXy7w_1408457850"
  nextVersions="_sHC5wFkyEeGeoaLUQk__nA_-203184069"
  previousVersion="_elKe5dEuEd-BzquC8wXy7w_-1796587382"
  name="FIToFIPaymentReversalV02"
  definition="Scope&#xD;&#xA;The FinancialInstitutionToFinancialInstitutionPaymentReversal message is sent by an agent to the next party in the payment chain. It is used to reverse a payment previously executed.&#xD;&#xA;Usage&#xD;&#xA;The FIToFIPaymentReversal message is exchanged between agents to reverse a FIToFICustomerDirectDebit message that has been settled. The result will be a credit on the debtor account.&#xD;&#xA;The FIToFIPaymentReversal message may or may not be the follow-up of a CustomerDirectDebitInitiation message.&#xD;&#xA;The FIToFIPaymentReversal message refers to the original FIToFICustomerDirectDebit message by means of references only or by means of references and a set of elements from the original instruction.&#xD;&#xA;The FIToFIPaymentReversal message can be used in domestic and cross-border scenarios."
  registrationStatus="Registered"
  messageSet="_urpIICeJEeOCeO5e7islRQ"
  xmlTag="FIToFIPmtRvsl"
  rootElement="Document"
  xmlns:xmi="http://www.omg.org/XMI">
  <constraint
    xmi:id="_eldZ3dEuEd-BzquC8wXy7w_1408458343"
    name="GroupReversalAndTransactionInformationNotPresentRule"
    definition="If GroupHeader/GroupReversal is true, then TransactionInformation is not allowed."
    registrationStatus="Provisionally Registered"
    expression="&lt;RuleDefinition xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ComplexRule xsi:type=&quot;ComplexRule&quot;&gt;&lt;mustBe&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Absence&quot;&gt;&lt;leftOperand&gt;/TransactionInformation[*]&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/mustBe&gt;&lt;onCondition&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/GroupHeader/GroupReversal&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;BooleanRule xsi:type=&quot;EqualToValue&quot;&gt;&lt;leftOperand&gt;/GroupHeader/GroupReversal&lt;/leftOperand&gt;&lt;rightOperand&gt;true&lt;/rightOperand&gt;&lt;/BooleanRule&gt;&lt;/onCondition&gt;&lt;/ComplexRule&gt;&lt;/RuleDefinition&gt;&#xA;" />
  <constraint
    xmi:id="_elnK0dEuEd-BzquC8wXy7w_726994388"
    name="GroupReversalAndTransactionInformationPresentRule"
    definition="If GroupHeader/GroupReversal is false, then at least one occurrence of TransactionInformation must be present."
    registrationStatus="Provisionally Registered"
    expression="&lt;RuleDefinition xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ComplexRule xsi:type=&quot;ComplexRule&quot;&gt;&lt;mustBe&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/TransactionInformation[1]&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/mustBe&gt;&lt;onCondition&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/GroupHeader/GroupReversal&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;BooleanRule xsi:type=&quot;EqualToValue&quot;&gt;&lt;leftOperand&gt;/GroupHeader/GroupReversal&lt;/leftOperand&gt;&lt;rightOperand&gt;false&lt;/rightOperand&gt;&lt;/BooleanRule&gt;&lt;/onCondition&gt;&lt;/ComplexRule&gt;&lt;/RuleDefinition&gt;&#xA;" />
  <constraint
    xmi:id="_elnK1NEuEd-BzquC8wXy7w_1408458374"
    name="GroupReversalAndReasonRule"
    definition="If GroupHeader/GroupReversal is true, then OriginalGroupInformation/ReversalReasonInformation/Reason must present."
    registrationStatus="Provisionally Registered"
    expression="&lt;RuleDefinition xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ComplexRule xsi:type=&quot;ComplexRule&quot;&gt;&lt;mustBe&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/OriginalGroupInformation/ReversalReasonInformation[1]&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/OriginalGroupInformation/ReversalReasonInformation[*]/Reason&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/mustBe&gt;&lt;onCondition&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/GroupHeader/GroupReversal&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;BooleanRule xsi:type=&quot;EqualToValue&quot;&gt;&lt;leftOperand&gt;/GroupHeader/GroupReversal&lt;/leftOperand&gt;&lt;rightOperand&gt;true&lt;/rightOperand&gt;&lt;/BooleanRule&gt;&lt;/onCondition&gt;&lt;/ComplexRule&gt;&lt;/RuleDefinition&gt;&#xA;" />
  <constraint
    xmi:id="_elnK19EuEd-BzquC8wXy7w_1408458405"
    name="InstructedAgentRule"
    definition="If GroupHeader/InstructedAgent is present, then TransactionInformation/InstructedAgent is not allowed."
    registrationStatus="Provisionally Registered"
    expression="&lt;RuleDefinition xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ComplexRule xsi:type=&quot;ComplexRule&quot;&gt;&lt;mustBe&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Absence&quot;&gt;&lt;leftOperand&gt;/TransactionInformation[*]/InstructedAgent&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/mustBe&gt;&lt;onCondition&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/GroupHeader/InstructedAgent&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/onCondition&gt;&lt;/ComplexRule&gt;&lt;/RuleDefinition&gt;&#xA;" />
  <constraint
    xmi:id="_elnK2tEuEd-BzquC8wXy7w_1408458407"
    name="InstructingAgentRule"
    definition="If GroupHeader/InstructingAgent is present, then TransactionInformation/InstructingAgent is not allowed."
    registrationStatus="Provisionally Registered"
    expression="&lt;RuleDefinition xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ComplexRule xsi:type=&quot;ComplexRule&quot;&gt;&lt;mustBe&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Absence&quot;&gt;&lt;leftOperand&gt;/TransactionInformation[*]/InstructingAgent&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/mustBe&gt;&lt;onCondition&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/GroupHeader/InstructingAgent&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/onCondition&gt;&lt;/ComplexRule&gt;&lt;/RuleDefinition&gt;&#xA;" />
  <constraint
    xmi:id="_elnK3dEuEd-BzquC8wXy7w_1408458652"
    name="GroupHeaderInterbankSettlementDateRule"
    definition="If GroupHeader/InterbankSettlementDate is present, then TransactionInformation/InterbankSettlementDate is not allowed."
    registrationStatus="Provisionally Registered"
    expression="&lt;RuleDefinition xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ComplexRule xsi:type=&quot;ComplexRule&quot;&gt;&lt;mustBe&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Absence&quot;&gt;&lt;leftOperand&gt;/TransactionInformation[*]/InterbankSettlementDate&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/mustBe&gt;&lt;onCondition&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/GroupHeader/InterbankSettlementDate&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/onCondition&gt;&lt;/ComplexRule&gt;&lt;/RuleDefinition&gt;&#xA;" />
  <constraint
    xmi:id="_elnK4NEuEd-BzquC8wXy7w_1656981999"
    name="TransactionInterbankSettlementDateRule"
    definition="If GroupHeader/InterbankSettlementDate is not present, then TransactionInformation/InterbankSettlementDate must be present."
    registrationStatus="Provisionally Registered"
    expression="&lt;RuleDefinition xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ComplexRule xsi:type=&quot;ComplexRule&quot;&gt;&lt;mustBe&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/TransactionInformation[*]/InterbankSettlementDate&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/mustBe&gt;&lt;onCondition&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Absence&quot;&gt;&lt;leftOperand&gt;/GroupHeader/InterbankSettlementDate&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/onCondition&gt;&lt;/ComplexRule&gt;&lt;/RuleDefinition&gt;&#xA;" />
  <constraint
    xmi:id="_elnK49EuEd-BzquC8wXy7w_1408458654"
    name="GroupReversalAndNumberOfTransactionsRule"
    definition="If GroupHeader/GroupReversal is false, then GroupHeader/NumberOfTransactions must equal the number of occurrences of TransactionInformation."
    registrationStatus="Provisionally Registered"
    expression="&lt;RuleDefinition xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ComplexRule xsi:type=&quot;ComplexRule&quot;&gt;&lt;mustBe&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;EqualToValue&quot;&gt;&lt;leftOperand&gt;/GroupHeader/NumberOfTransactions&lt;/leftOperand&gt;&lt;rightOperand&gt;Number Occurrences TransactionInformation&lt;/rightOperand&gt;&lt;/BooleanRule&gt;&lt;/mustBe&gt;&lt;onCondition&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/GroupHeader/GroupReversal&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;BooleanRule xsi:type=&quot;EqualToValue&quot;&gt;&lt;leftOperand&gt;/GroupHeader/GroupReversal&lt;/leftOperand&gt;&lt;rightOperand&gt;false&lt;/rightOperand&gt;&lt;/BooleanRule&gt;&lt;/onCondition&gt;&lt;/ComplexRule&gt;&lt;/RuleDefinition&gt;&#xA;" />
  <constraint
    xmi:id="_elnK5tEuEd-BzquC8wXy7w_1408458683"
    name="TotalReversedInterbankSettlementAmountRule"
    definition="If GroupHeader/TotalReversedInterbankSettlementAmount is present, then all occurrences of TransactionInformation/ReversedInterbankSettlementAmount must have the same currency as the currency of GroupHeader/TotalReversedInterbankSettlementAmount."
    registrationStatus="Provisionally Registered"
    expression="&lt;RuleDefinition xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ComplexRule xsi:type=&quot;ComplexRule&quot;&gt;&lt;mustBe&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;EqualToNode&quot;&gt;&lt;leftOperand&gt;/TransactionInformation[*]/ReversedInterbankSettlementAmount/@Currency&lt;/leftOperand&gt;&lt;rightOperand&gt;/GroupHeader/TotalReversedInterbankSettlementAmount/@Currency&lt;/rightOperand&gt;&lt;/BooleanRule&gt;&lt;/mustBe&gt;&lt;onCondition&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/GroupHeader/TotalReversedInterbankSettlementAmount&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/TransactionInformation[1]&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/TransactionInformation[*]/ReversedInterbankSettlementAmount&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/onCondition&gt;&lt;/ComplexRule&gt;&lt;/RuleDefinition&gt;&#xA;" />
  <constraint
    xmi:id="_elwUwtEuEd-BzquC8wXy7w_1408458685"
    name="TotalReversedInterbankSettlementAmountAndSumRule"
    definition="GroupHeader/TotalReversedInterbankSettlementAmount must equal the sum of all individual TransactionInformation/ReversedInterbankSettlementAmount when present."
    registrationStatus="Provisionally Registered"
    expression="&lt;RuleDefinition xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ComplexRule xsi:type=&quot;ComplexRule&quot;&gt;&lt;mustBe&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;EqualToValue&quot;&gt;&lt;leftOperand&gt;/GroupHeader/TotalReversedInterbankSettlementAmount&lt;/leftOperand&gt;&lt;rightOperand&gt;sum of TransactionInformation/ReversedInterbankSttlementAmount&lt;/rightOperand&gt;&lt;/BooleanRule&gt;&lt;/mustBe&gt;&lt;onCondition&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/GroupHeader/TotalReversedInterbankSettlementAmount&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;/onCondition&gt;&lt;/ComplexRule&gt;&lt;/RuleDefinition&gt;&#xA;" />
  <constraint
    xmi:id="_elwUxdEuEd-BzquC8wXy7w_1408458713"
    name="NoCoverSettlementMethodRule"
    definition="GroupHeader/SettlementInformation/SettlementMethod must be different from COVE when reversing direct debit transactions."
    registrationStatus="Provisionally Registered"
    expression="&lt;RuleDefinition xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;&lt;ComplexRule xsi:type=&quot;ComplexRule&quot;&gt;&lt;mustBe&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;DifferentFromValue&quot;&gt;&lt;leftOperand&gt;substring(/OriginalGroupInformation/OriginalMessageNameIdentification,1,8)&lt;/leftOperand&gt;&lt;rightOperand&gt;pacs.003&lt;/rightOperand&gt;&lt;/BooleanRule&gt;&lt;/mustBe&gt;&lt;onCondition&gt;&lt;connector&gt;AND&lt;/connector&gt;&lt;BooleanRule xsi:type=&quot;Presence&quot;&gt;&lt;leftOperand&gt;/GroupHeader/SettlementInformation&lt;/leftOperand&gt;&lt;/BooleanRule&gt;&lt;BooleanRule xsi:type=&quot;EqualToValue&quot;&gt;&lt;leftOperand&gt;/GroupHeader/SettlementInformation/SettlementMethod&lt;/leftOperand&gt;&lt;rightOperand&gt;CoverMethod&lt;/rightOperand&gt;&lt;/BooleanRule&gt;&lt;/onCondition&gt;&lt;/ComplexRule&gt;&lt;/RuleDefinition&gt;&#xA;" />
  <messageBuildingBlock
    xmi:id="_eldZ2tEuEd-BzquC8wXy7w_1408458161"
    name="GroupHeader"
    definition="Set of characteristics shared by all individual transactions included in the message."
    registrationStatus="Provisionally Registered"
    maxOccurs="1"
    minOccurs="1"
    xmlTag="GrpHdr"
    complexType="_P0aZFdp-Ed-ak6NoX_4Aeg_-586018147" />
  <messageBuildingBlock
    xmi:id="_eldZ29EuEd-BzquC8wXy7w_1408458222"
    name="OriginalGroupInformation"
    definition="Information concerning the original group of transactions, to which the message refers."
    registrationStatus="Provisionally Registered"
    maxOccurs="1"
    minOccurs="1"
    xmlTag="OrgnlGrpInf"
    complexType="_Pkwzl9p-Ed-ak6NoX_4Aeg_-554618475" />
  <messageBuildingBlock
    xmi:id="_eldZ3NEuEd-BzquC8wXy7w_1408458283"
    name="TransactionInformation"
    definition="Information concerning the original transactions, to which the reversal message refers."
    registrationStatus="Provisionally Registered"
    minOccurs="0"
    xmlTag="TxInf"
    complexType="_P3_Ridp-Ed-ak6NoX_4Aeg_-327433227" />
  <messageDefinitionIdentifier
    businessArea="pacs"
    messageFunctionality="007"
    flavour="001"
    version="02" />
</messageDefinition>

ISO Building Blocks

The following items are used as building blocks to construct this message.