camt.058.001.02
Scope The NotificationToReceiveCancellationAdvice message is sent by an account owner or by a party acting on the account owner’s behalf to one of the account owner’s account servicing institutions. It is used to advise the account servicing institution about the cancellation of one or more notifications in a previous NotificationToReceive message. Usage The NotificationToReceiveCancellationAdvice message is used to advise the account servicing institution that the funds are no longer expected. The message can be used in either a direct or a relay scenario.
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 %% NotificationToReceiveCancellationAdviceV02 recursion level 0 with max 0 NotificationToReceiveCancellationAdviceV02 *-- "1..1" GroupHeader43 : GroupHeader NotificationToReceiveCancellationAdviceV02 *-- "1..1" OriginalNotification4 : OriginalNotification
Now, we will zero-in one-by-one on each of these building blocks.
GroupHeader building block
Set of elements used to provide further details on the message. Set of elements used to provide further details on the message. For comparison, see the ISO20022 official specification
classDiagram direction tb %% GroupHeader43 recursion level 0 with max 1 class GroupHeader43{ MessageIdentification IsoMax35Text CreationDateTime IsoISODateTime } GroupHeader43 *-- "0..1" IParty7Choice : MessageSender %% IParty7Choice recursion level 1 with max 1
GroupHeader43 members
Member name | Description | Data Type / Multiplicity |
---|---|---|
MessageIdentification | Point to point reference, as assigned by the account owner or the party authorised to send the message, and sent to the account servicing institution, to unambiguously identify the message. | Usage: The sender has to make sure that ‘MessageIdentification’ is unique per account servicing institution for a pre-agreed period. |
CreationDateTime | Date and time at which the message was created. | IsoISODateTime - Required 1..1 |
MessageSender | Identification of the party that is sending the message, when different from the account owner. | IParty7Choice - Optional 0..1 |
OriginalNotification building block
Set of elements used to identify the original notification, to which the cancellation advice refers. Identify the original notification, to which the cancellation advice refers. For comparison, see the ISO20022 official specification
classDiagram direction tb %% OriginalNotification4 recursion level 0 with max 1 class OriginalNotification4{ OriginalMessageIdentification IsoMax35Text OriginalCreationDateTime IsoISODateTime OriginalNotificationIdentification IsoMax35Text NotificationCancellation IsoGroupCancellationIndicator } OriginalNotification4 *-- "0..0" OriginalNotificationReference1 : OriginalNotificationReference %% OriginalNotificationReference1 recursion level 1 with max 1 class OriginalNotificationReference1{ TotalAmount IsoActiveOrHistoricCurrencyAndAmount ExpectedValueDate IsoISODate } OriginalNotificationReference1 *-- "0..1" CashAccount16 : Account OriginalNotificationReference1 *-- "0..1" IParty12Choice : AccountOwner OriginalNotificationReference1 *-- "0..1" BranchAndFinancialInstitutionIdentification5 : AccountServicer OriginalNotificationReference1 *-- "0..1" CashAccount16 : RelatedAccount OriginalNotificationReference1 *-- "0..1" IParty12Choice : Debtor OriginalNotificationReference1 *-- "0..1" BranchAndFinancialInstitutionIdentification5 : DebtorAgent OriginalNotificationReference1 *-- "0..1" BranchAndFinancialInstitutionIdentification5 : IntermediaryAgent OriginalNotificationReference1 *-- "1..0" OriginalItem2 : OriginalItem
OriginalNotification4 members
Member name | Description | Data Type / Multiplicity |
---|---|---|
OriginalMessageIdentification | Point to point reference, as assigned by the original sender, to unambiguously identify the original notification to receive message. | IsoMax35Text - Required 1..1 |
OriginalCreationDateTime | Date and time at which the original message was created. | IsoISODateTime - Optional 0..1 |
OriginalNotificationIdentification | Identification of the original notification. | IsoMax35Text - Required 1..1 |
NotificationCancellation | Indicates whether the cancellation applies to the complete original notification or to individual items within the original notification. | IsoGroupCancellationIndicator - Optional 0..1 |
OriginalNotificationReference | Identifies the original notification item, to which the cancellation advice refers. | OriginalNotificationReference1 - Unknown 0..0 |
Extensibility and generalization considerations
To facilitate generalized design patterns in the system, the NotificationToReceiveCancellationAdviceV02 implementation follows a specific implementaiton pattern. First of all, NotificationToReceiveCancellationAdviceV02 impleemnts IOuterRecord indicating it is the outermost logical part of the message definition. Like all message wrappers, NotificationToReceiveCancellationAdviceV02Document implements IOuterDocument. Because NotificationToReceiveCancellationAdviceV02 implements IOuterDocument, it is a suitable template parameter for IOuterDocument, and causes the internal ‘Message’ to be of type NotificationToReceiveCancellationAdviceV02.
classDiagram class IOuterRecord NotificationToReceiveCancellationAdviceV02 --|> IOuterRecord : Implements NotificationToReceiveCancellationAdviceV02Document --|> IOuterDocument~NotificationToReceiveCancellationAdviceV02~ : Implements class IOuterDocument~NotificationToReceiveCancellationAdviceV02~ { NotificationToReceiveCancellationAdviceV02 Message }
Document wrapper for serialization
The only real purpose NotificationToReceiveCancellationAdviceV02Document serves is to cause the document to be serialized into the ‘urn:iso:std:iso:20022:tech:xsd:camt.058.001.02’ namespace. Therefore, it will probably be the usual practice to build the message and construct this wrapper at the last minute using NotificationToReceiveCancellationAdviceV02.ToDocument() method. The returned NotificationToReceiveCancellationAdviceV02Document value will serialize correctly according to ISO 20022 standards.
classDiagram NotificationToReceiveCancellationAdviceV02Document *-- NotificationToReceiveCancellationAdviceV02 : 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:camt.058.001.02">
<NtfctnToRcvCxlAdvc>
<GrpHdr>
<!-- GroupHeader inner content -->
</GrpHdr>
<OrgnlNtfctn>
<!-- OriginalNotification inner content -->
</OrgnlNtfctn>
</NtfctnToRcvCxlAdvc>
</Document>
Data from ISO specification
This is the technical data from the specification document.
<messageDefinition
xmi:id="_sZiMG2tdEeCY4-KZ9JEyUQ_-574500560"
nextVersions="_sQSVUFkyEeGeoaLUQk__nA_474784398"
name="NotificationToReceiveCancellationAdviceV02"
definition="Scope
The NotificationToReceiveCancellationAdvice message is sent by an account owner or by a party acting on the account owner's behalf to one of the account owner's account servicing institutions. It is used to advise the account servicing institution about the cancellation of one or more notifications in a previous NotificationToReceive message.
Usage
The NotificationToReceiveCancellationAdvice message is used to advise the account servicing institution that the funds are no longer expected. The message can be used in either a direct or a relay scenario."
registrationStatus="Registered"
messageSet="_urpIICeJEeOCeO5e7islRQ"
xmlTag="NtfctnToRcvCxlAdvc"
rootElement="Document"
xmlns:xmi="http://www.omg.org/XMI">
<messageBuildingBlock
xmi:id="_sZiMHGtdEeCY4-KZ9JEyUQ_-1454005834"
name="GroupHeader"
definition="Set of elements used to provide further details on the message."
registrationStatus="Provisionally Registered"
maxOccurs="1"
minOccurs="1"
xmlTag="GrpHdr"
complexType="_P9WSoNp-Ed-ak6NoX_4Aeg_1664465107" />
<messageBuildingBlock
xmi:id="_sZr9EGtdEeCY4-KZ9JEyUQ_1957728175"
name="OriginalNotification"
definition="Set of elements used to identify the original notification, to which the cancellation advice refers."
registrationStatus="Provisionally Registered"
maxOccurs="1"
minOccurs="1"
xmlTag="OrgnlNtfctn"
complexType="_e-gQcBsaEd-tQubbyu-X8Q" />
<messageDefinitionIdentifier
businessArea="camt"
messageFunctionality="058"
flavour="001"
version="02" />
</messageDefinition>
ISO Building Blocks
The following items are used as building blocks to construct this message.