commit c327b3dd9588f4e6e5642843b1194d3cbf6ba31d
parent accec2da6d3e584c3c9880aa2e444a8fc46654b9
Author: Antoine A <>
Date: Thu, 12 Nov 2026 10:38:19 +0100
nexus: codegen
Diffstat:
3 files changed, 44 insertions(+), 5 deletions(-)
diff --git a/libeufin-ebics/src/iso20022/bank_tx_code.rs b/libeufin-ebics/src/iso20022/bank_tx_code.rs
@@ -514,7 +514,7 @@ pub enum BankTxSubFamilyCode {
PPAY,
/// Priority Credit Transfer
PRCT,
- /// Reversal Due To Payment Reversal
+ /// Reversal Due To Payment Reversal
PRDD,
/// Partial Redemption Without Reduction of Nominal Value
PRED,
@@ -550,7 +550,7 @@ pub enum BankTxSubFamilyCode {
RPBC,
/// Repo client owned collateral
RPCC,
- /// Reversal Due To Payment Cancellation Request
+ /// Reversal Due To Payment Cancellation Request
RPCR,
/// Repayment
RPMT,
diff --git a/libeufin-ebics/src/iso20022/camt.rs b/libeufin-ebics/src/iso20022/camt.rs
@@ -728,7 +728,7 @@ pub mod test {
tx_reversal(
"889d1a80-1267-49bd-8fcc-85701a",
Some("889d1a80-1267-49bd-8fcc-85701a"),
- "InconsistenWithEndCustomer 'Identification of end customer is not consistent with associated account number, organisation ID or private ID' - 'more info here ...'",
+ "InconsistentWithEndCustomer 'Identification of end customer is not consistent with associated account number, organisation ID or private ID' - 'more info here ...'",
"2023-11-22",
),
tx_reversal(
diff --git a/libeufin-ebics/src/iso20022/status_code.rs b/libeufin-ebics/src/iso20022/status_code.rs
@@ -120,6 +120,9 @@ pub enum StatusReason {
/// Credit or debit card number is invalid
#[code = "AC16"]
CardNumberInvalid,
+ /// Requested amount exceeds the limit set by Debtor (Agent)
+ #[code = "AEML"]
+ AmountExceedsMaxLimit,
/// Request-to-pay Expiry Date and Time has already passed
#[code = "AEXR"]
AlreadyExpiredRTP,
@@ -254,7 +257,7 @@ pub enum StatusReason {
NotBusinessDay,
/// Identification of end customer is not consistent with associated account number
#[code = "BE01"]
- InconsistenWithEndCustomer,
+ InconsistentWithEndCustomer,
/// Specification of creditor's address, which is required for payment, is missing/not correct (formerly IncorrectCreditorAddress)
#[code = "BE04"]
MissingCreditorAddress,
@@ -639,15 +642,30 @@ pub enum StatusReason {
/// Payment has been delivered to creditor agent without service level
#[code = "G006"]
DeliveredWIthoutServiceLevel,
+ /// The payment has been passed by the Payment Market Infrastructure to the next agent in the payment chain; receipt has not yet been confirmed
+ #[code = "G007"]
+ PaymentPassedByPaymentMarketInfrastructure,
+ /// The payment has been received by the next agent via the Payment Market Infrastructure
+ #[code = "G008"]
+ PaymentReceivedByNextAgentViaPaymentMarketInfrastructure,
+ /// Guaranteed Agreement with Correspondent, therefore Correspondent is the liable party
+ #[code = "GUAG"]
+ GuaranteedAgreementBreached,
/// Signature file was sent to the bank but the corresponding original file has not been sent yet
#[code = "ID01"]
CorrespondingOriginalFileStillNotSent,
/// Expiry date time of the request-to-pay is incorrect
#[code = "IEDT"]
IncorrectExpiryDateTime,
+ /// Invalid Merchant Category Code
+ #[code = "IMCC"]
+ InvalidMerchantCategoryCode,
/// Payer’s activation reference is invalid
#[code = "INAR"]
InvalidActivationReference,
+ /// Invalid Channel Type
+ #[code = "INCT"]
+ InvalidChannelType,
/// Details not valid for this field
#[code = "INDT"]
InvalidDetails,
@@ -660,6 +678,9 @@ pub enum StatusReason {
/// Cannot schedule instruction for Night Window
#[code = "ISWS"]
InvalidSettlementWindow,
+ /// Invalid Use Case Type
+ #[code = "IUCT"]
+ InvalidUseCaseType,
/// No Mandate
#[code = "MD01"]
NoMandate,
@@ -675,6 +696,9 @@ pub enum StatusReason {
/// End customer is deceased
#[code = "MD07"]
EndCustomerDeceased,
+ /// Multiple identical Charge Types in Charge Breakdown
+ #[code = "MICT"]
+ MultipleIdenticalChargeTypes,
/// Information missing for the field or cannot be empty
#[code = "MINF"]
MissingInformation,
@@ -708,6 +732,12 @@ pub enum StatusReason {
/// Recipient side of the request-to-pay (payer or its request-to-pay service provider) is not reachable
#[code = "NRCH"]
PayerOrPayerRTPSPNotReachable,
+ /// Settlement of the transaction has been completed and is reported by an intermediary agent or Payment Market Infrastructure on behalf of the Creditor Agent
+ #[code = "OBO1"]
+ SettlementCompletedReportedOnBehalfOfCreditorAgentWithAmount,
+ /// Settlement of the transaction has been completed and is reported by an intermediary agent or Payment Market Infrastructure on behalf of the Creditor Agent
+ #[code = "OBO2"]
+ SettlementCompletedReportedOnBehalfOfCreditorAgentWithoutAmount,
/// Requested optional service (for example instalment payments) is not supported
#[code = "OSNS"]
OptionalServiceNotSupported,
@@ -930,6 +960,15 @@ pub enum StatusReason {
/// Payment is not justified
#[code = "UPAY"]
UnduePayment,
+ /// Referenced transaction not found
+ #[code = "UTNV"]
+ UnderlyingTransactionNotValid,
+ /// Wrong Debtor Agent in charge request message
+ #[code = "WGDA"]
+ WrongDebtorAgent,
+ /// Wrong Debtor in charge request message
+ #[code = "WGDB"]
+ WrongDebtor,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, EnumMeta)]
@@ -1136,7 +1175,7 @@ pub enum ReturnReason {
AlreadyReturnedTransaction,
/// Identification of end customer is not consistent with associated account number, organisation ID or private ID
#[code = "BE01"]
- InconsistenWithEndCustomer,
+ InconsistentWithEndCustomer,
/// Specification of creditor's address, which is required for payment, is missing/not correct (formerly IncorrectCreditorAddress)
#[code = "BE04"]
MissingCreditorAddress,