pub enum Document {
Show 30 variants
NotificationOfCorrespondenceV01(Box<NotificationOfCorrespondenceV01>),
ReceiptV08(Box<ReceiptV08>),
ResolutionOfInvestigationV09(Box<ResolutionOfInvestigationV09>),
BankToCustomerAccountReportV08(Box<BankToCustomerAccountReportV08>),
BankToCustomerStatementV08(Box<BankToCustomerStatementV08>),
BankToCustomerDebitCreditNotificationV08(Box<BankToCustomerDebitCreditNotificationV08>),
CustomerPaymentCancellationRequestV08(Box<CustomerPaymentCancellationRequestV08>),
FIToFIPaymentCancellationRequestV08(Box<FIToFIPaymentCancellationRequestV08>),
NotificationToReceiveV06(Box<NotificationToReceiveV06>),
NotificationToReceiveCancellationAdviceV08(Box<NotificationToReceiveCancellationAdviceV08>),
AccountReportingRequestV05(Box<AccountReportingRequestV05>),
ChargesPaymentNotificationV02(Box<ChargesPaymentNotificationV02>),
ChargesPaymentNotificationV02MC(Box<ChargesPaymentNotificationV02>),
ChargesPaymentRequestV02(Box<ChargesPaymentRequestV02>),
ChargesPaymentRequestV02MC(Box<ChargesPaymentRequestV02>),
ChequePresentmentNotificationV01(Box<ChequePresentmentNotificationV01>),
ChequeCancellationOrStopRequestV01(Box<ChequeCancellationOrStopRequestV01>),
ChequeCancellationOrStopReportV01(Box<ChequeCancellationOrStopReportV01>),
FIToFIPaymentStatusReportV10(Box<FIToFIPaymentStatusReportV10>),
FIToFICustomerDirectDebitV08(Box<FIToFICustomerDirectDebitV08>),
PaymentReturnV09(Box<PaymentReturnV09>),
FIToFICustomerCreditTransferV08(Box<FIToFICustomerCreditTransferV08>),
FIToFICustomerCreditTransferV08STP(Box<FIToFICustomerCreditTransferV08>),
FinancialInstitutionCreditTransferV08(Box<FinancialInstitutionCreditTransferV08>),
FinancialInstitutionCreditTransferV08ADV(Box<FinancialInstitutionCreditTransferV08>),
FinancialInstitutionCreditTransferV08COV(Box<FinancialInstitutionCreditTransferV08>),
CustomerCreditTransferInitiationV09(Box<CustomerCreditTransferInitiationV09>),
CustomerPaymentStatusReportV10(Box<CustomerPaymentStatusReportV10>),
CustomerDirectDebitInitiationV08(Box<CustomerDirectDebitInitiationV08>),
UNKNOWN,
}Expand description
Document represents the root container for all supported CBPR+ ISO20022 message types
Variants§
NotificationOfCorrespondenceV01(Box<NotificationOfCorrespondenceV01>)
admi.024.001.01 - Notification of Correspondence
ReceiptV08(Box<ReceiptV08>)
camt.025.001.08 - Receipt
ResolutionOfInvestigationV09(Box<ResolutionOfInvestigationV09>)
camt.029.001.09 - Resolution of Investigation
BankToCustomerAccountReportV08(Box<BankToCustomerAccountReportV08>)
camt.052.001.08 - Bank to Customer Account Report
BankToCustomerStatementV08(Box<BankToCustomerStatementV08>)
camt.053.001.08 - Bank to Customer Statement
BankToCustomerDebitCreditNotificationV08(Box<BankToCustomerDebitCreditNotificationV08>)
camt.054.001.08 - Bank to Customer Debit Credit Notification
CustomerPaymentCancellationRequestV08(Box<CustomerPaymentCancellationRequestV08>)
camt.055.001.08 - Customer Payment Cancellation Request
FIToFIPaymentCancellationRequestV08(Box<FIToFIPaymentCancellationRequestV08>)
camt.056.001.08 - FI to FI Payment Cancellation Request
NotificationToReceiveV06(Box<NotificationToReceiveV06>)
camt.057.001.06 - Notification to Receive
NotificationToReceiveCancellationAdviceV08(Box<NotificationToReceiveCancellationAdviceV08>)
camt.058.001.08 - Notification to Receive Cancellation Advice
AccountReportingRequestV05(Box<AccountReportingRequestV05>)
camt.060.001.05 - Account Reporting Request
ChargesPaymentNotificationV02(Box<ChargesPaymentNotificationV02>)
camt.105.001.02 - Charges Payment Notification
ChargesPaymentNotificationV02MC(Box<ChargesPaymentNotificationV02>)
camt.105.001.02.mc - Charges Payment Notification (Multi-Currency)
ChargesPaymentRequestV02(Box<ChargesPaymentRequestV02>)
camt.106.001.02 - Charges Payment Request
ChargesPaymentRequestV02MC(Box<ChargesPaymentRequestV02>)
camt.106.001.02.mc - Charges Payment Request (Multi-Currency)
ChequePresentmentNotificationV01(Box<ChequePresentmentNotificationV01>)
camt.107.001.01 - Cheque Presentment Notification
ChequeCancellationOrStopRequestV01(Box<ChequeCancellationOrStopRequestV01>)
camt.108.001.01 - Cheque Cancellation or Stop Request
ChequeCancellationOrStopReportV01(Box<ChequeCancellationOrStopReportV01>)
camt.109.001.01 - Cheque Cancellation or Stop Report
FIToFIPaymentStatusReportV10(Box<FIToFIPaymentStatusReportV10>)
pacs.002.001.10 - FI to FI Payment Status Report
FIToFICustomerDirectDebitV08(Box<FIToFICustomerDirectDebitV08>)
pacs.003.001.08 - FI to FI Customer Direct Debit
PaymentReturnV09(Box<PaymentReturnV09>)
pacs.004.001.09 - Payment Return
FIToFICustomerCreditTransferV08(Box<FIToFICustomerCreditTransferV08>)
pacs.008.001.08 - FI to FI Customer Credit Transfer
FIToFICustomerCreditTransferV08STP(Box<FIToFICustomerCreditTransferV08>)
pacs.008.001.08.stp - FI to FI Customer Credit Transfer (STP)
FinancialInstitutionCreditTransferV08(Box<FinancialInstitutionCreditTransferV08>)
pacs.009.001.08 - Financial Institution Credit Transfer
FinancialInstitutionCreditTransferV08ADV(Box<FinancialInstitutionCreditTransferV08>)
pacs.009.001.08.adv - Financial Institution Credit Transfer (Advice)
FinancialInstitutionCreditTransferV08COV(Box<FinancialInstitutionCreditTransferV08>)
pacs.009.001.08.cov - Financial Institution Credit Transfer (Cover)
CustomerCreditTransferInitiationV09(Box<CustomerCreditTransferInitiationV09>)
pain.001.001.09 - Customer Credit Transfer Initiation
CustomerPaymentStatusReportV10(Box<CustomerPaymentStatusReportV10>)
pain.002.001.10 - Customer Payment Status Report
CustomerDirectDebitInitiationV08(Box<CustomerDirectDebitInitiationV08>)
pain.008.001.08 - Customer Direct Debit Initiation
UNKNOWN
Unknown or unsupported document type
Implementations§
Source§impl Document
impl Document
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validates the document according to ISO20022 and CBPR+ specifications
Sourcepub fn message_type(&self) -> &'static str
pub fn message_type(&self) -> &'static str
Returns the message type identifier for the document
Sourcepub fn is_cbpr_plus_compliant(&self) -> bool
pub fn is_cbpr_plus_compliant(&self) -> bool
Returns whether the document is CBPR+ compliant