DuplicatePaymentId,
/// Blinded paths were expected but were missing.
MissingPaths,
+ /// Blinded paths were provided but were not expected.
+ UnexpectedPaths,
/// The blinded payinfo given does not match the number of blinded path hops.
InvalidPayInfo,
/// An invoice creation time was expected but was missing.
Bolt12SemanticError::MissingPayerId => nativeBolt12SemanticError::MissingPayerId,
Bolt12SemanticError::DuplicatePaymentId => nativeBolt12SemanticError::DuplicatePaymentId,
Bolt12SemanticError::MissingPaths => nativeBolt12SemanticError::MissingPaths,
+ Bolt12SemanticError::UnexpectedPaths => nativeBolt12SemanticError::UnexpectedPaths,
Bolt12SemanticError::InvalidPayInfo => nativeBolt12SemanticError::InvalidPayInfo,
Bolt12SemanticError::MissingCreationTime => nativeBolt12SemanticError::MissingCreationTime,
Bolt12SemanticError::MissingPaymentHash => nativeBolt12SemanticError::MissingPaymentHash,
Bolt12SemanticError::MissingPayerId => nativeBolt12SemanticError::MissingPayerId,
Bolt12SemanticError::DuplicatePaymentId => nativeBolt12SemanticError::DuplicatePaymentId,
Bolt12SemanticError::MissingPaths => nativeBolt12SemanticError::MissingPaths,
+ Bolt12SemanticError::UnexpectedPaths => nativeBolt12SemanticError::UnexpectedPaths,
Bolt12SemanticError::InvalidPayInfo => nativeBolt12SemanticError::InvalidPayInfo,
Bolt12SemanticError::MissingCreationTime => nativeBolt12SemanticError::MissingCreationTime,
Bolt12SemanticError::MissingPaymentHash => nativeBolt12SemanticError::MissingPaymentHash,
nativeBolt12SemanticError::MissingPayerId => Bolt12SemanticError::MissingPayerId,
nativeBolt12SemanticError::DuplicatePaymentId => Bolt12SemanticError::DuplicatePaymentId,
nativeBolt12SemanticError::MissingPaths => Bolt12SemanticError::MissingPaths,
+ nativeBolt12SemanticError::UnexpectedPaths => Bolt12SemanticError::UnexpectedPaths,
nativeBolt12SemanticError::InvalidPayInfo => Bolt12SemanticError::InvalidPayInfo,
nativeBolt12SemanticError::MissingCreationTime => Bolt12SemanticError::MissingCreationTime,
nativeBolt12SemanticError::MissingPaymentHash => Bolt12SemanticError::MissingPaymentHash,
nativeBolt12SemanticError::MissingPayerId => Bolt12SemanticError::MissingPayerId,
nativeBolt12SemanticError::DuplicatePaymentId => Bolt12SemanticError::DuplicatePaymentId,
nativeBolt12SemanticError::MissingPaths => Bolt12SemanticError::MissingPaths,
+ nativeBolt12SemanticError::UnexpectedPaths => Bolt12SemanticError::UnexpectedPaths,
nativeBolt12SemanticError::InvalidPayInfo => Bolt12SemanticError::InvalidPayInfo,
nativeBolt12SemanticError::MissingCreationTime => Bolt12SemanticError::MissingCreationTime,
nativeBolt12SemanticError::MissingPaymentHash => Bolt12SemanticError::MissingPaymentHash,
pub extern "C" fn Bolt12SemanticError_missing_paths() -> Bolt12SemanticError {
Bolt12SemanticError::MissingPaths}
#[no_mangle]
+/// Utility method to constructs a new UnexpectedPaths-variant Bolt12SemanticError
+pub extern "C" fn Bolt12SemanticError_unexpected_paths() -> Bolt12SemanticError {
+ Bolt12SemanticError::UnexpectedPaths}
+#[no_mangle]
/// Utility method to constructs a new InvalidPayInfo-variant Bolt12SemanticError
pub extern "C" fn Bolt12SemanticError_invalid_pay_info() -> Bolt12SemanticError {
Bolt12SemanticError::InvalidPayInfo}