pub enum Document {
FIToFICustomerCreditTransferV08(Box<FIToFICustomerCreditTransferV08>),
FinancialInstitutionCreditTransferV08(Box<FinancialInstitutionCreditTransferV08>),
ClaimNonReceiptV07(Box<ClaimNonReceiptV07>),
AdditionalPaymentInformationV09(Box<AdditionalPaymentInformationV09>),
ResolutionOfInvestigationV09(Box<ResolutionOfInvestigationV09>),
BankToCustomerAccountReportV08(Box<BankToCustomerAccountReportV08>),
BankToCustomerStatementV08(Box<BankToCustomerStatementV08>),
FIToFIPaymentCancellationRequestV08(Box<FIToFIPaymentCancellationRequestV08>),
NotificationToReceiveV06(Box<NotificationToReceiveV06>),
CashManagementProprietaryMessageV03(Box<CashManagementProprietaryMessageV03>),
UNKNOWN,
}Expand description
Document represents the root container for all supported CBPR+ ISO20022 message types
Variants§
FIToFICustomerCreditTransferV08(Box<FIToFICustomerCreditTransferV08>)
pacs.008.001.08 - FI to FI Customer Credit Transfer
FinancialInstitutionCreditTransferV08(Box<FinancialInstitutionCreditTransferV08>)
pacs.009.001.08 - Financial Institution Credit Transfer
ClaimNonReceiptV07(Box<ClaimNonReceiptV07>)
camt.027.001.07 - Claim Non Receipt
AdditionalPaymentInformationV09(Box<AdditionalPaymentInformationV09>)
camt.028.001.09 - Additional Payment Information
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
FIToFIPaymentCancellationRequestV08(Box<FIToFIPaymentCancellationRequestV08>)
camt.056.001.08 - FI to FI Payment Cancellation Request
NotificationToReceiveV06(Box<NotificationToReceiveV06>)
camt.057.001.06 - Notification to Receive
CashManagementProprietaryMessageV03(Box<CashManagementProprietaryMessageV03>)
camt.998.001.03 - Cash Management Proprietary Message
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