Skip to main content

Kind

Enum Kind 

Source
#[non_exhaustive]
pub enum Kind {
Show 60 variants MessageReceived, OrderExecuted, TanRequired, DialogEnded, TanValid, NoNameDeviation, BicOutdated { new_bic: Option<String>, }, InstantStatusQuery, CheckTransactions, ProcessingReference { reference: Option<String>, }, NotAvailable, Touchdown(TouchdownPoint), PartialWarnings, UserDataChanged { user_id: Option<String>, customer_id: Option<String>, }, ScaExemption, VopCheckResult, VopNotRequired, VopRequiredFrom { date: Option<String>, }, VopInProgress, VopComplete, VopNoResult, ConvertedToStandard, AllowedSecurityFunctions(Vec<SecurityFunction>), VopApprovalNotPossible, DecoupledInitiated, DecoupledPending, DecoupledAwaitPush, DecoupledMethodUnsupported, OutcomeUnknown { query: Option<SegmentType>, }, GeneralError, AuthenticationFailed, PartialErrors, ScaRequired, VopRequired, ProductNotRegistered, UnknownStructure, ElementNotAllowed, InsufficientFunds, DuplicateSubmission, NotExpected, DataElementMissing, NoLongerAccepted, ProtocolVersionUnsupported, VopUnavailable, InstantLimitExceeded { link: Option<String>, }, PinTanUnavailable, SecurityProcedureNotAllowed, SignatureInsufficient, NotAuthorised, SignatureInvalid, PinWrong, SystemIdInvalid, DialogAborted, AccountLocked, LockAfterAttempts { attempts_left: Option<u32>, }, TanInvalid, TanUsed, TanExpired, SmsNotSent, Other,
}
Expand description

The meaning of a return code this client knows, derived from the code and its parameters (RM). Kind::Other for every code not listed; its code, class, text and parameters stay on the ReturnCode.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

MessageReceived

0010: message received.

§

OrderExecuted

0020: order executed.

§

TanRequired

0030: order received, security clearance (TAN) required.

§

DialogEnded

0100: dialog ended.

§

TanValid

0900: TAN valid.

§

NoNameDeviation

0025: payee check without name deviation (VoP).

§

BicOutdated

3020: the BIC given is outdated; P1, if present, is the new one.

Fields

§new_bic: Option<String>
§

InstantStatusQuery

3045: instant payment status unknown yet; ask with HKIPS.

§

CheckTransactions

3046: check the account’s transactions (outcome to be verified).

§

ProcessingReference

3070: order accepted for processing; P1, if present, is the bank’s reference.

Fields

§reference: Option<String>
§

NotAvailable

3010: not available. RM’s examples: no new entries, information not offered at the moment, data already up to date. After a data request banks send it for “no entries”.

§

Touchdown(TouchdownPoint)

3040: more data available; P1 is the touchdown point.

§

PartialWarnings

3060: some warnings in the message.

§

UserDataChanged

3072: new access data (RM C.6); P1 user ID, P2 customer ID (the user ID when absent).

Fields

§user_id: Option<String>
§customer_id: Option<String>
§

ScaExemption

3076: no strong customer authentication required.

§

VopCheckResult

3090: check the payee check result (a deviation or a note).

§

VopNotRequired

3091: Verification of Payee not required.

§

VopRequiredFrom

3092: the bank will require Verification of Payee from P1 on.

Fields

§

VopInProgress

3093: payee check still in progress (poll with HKVPP).

§

VopComplete

3094: payee check complete.

§

VopNoResult

3095: payee check without result.

§

ConvertedToStandard

3270: the instant payment is processed as a standard SEPA transfer (Messages C.10.2.9.1.2, HKIPZ 2 with the conversion flag).

§

AllowedSecurityFunctions(Vec<SecurityFunction>)

3920: allowed security functions, P1..n.

§

VopApprovalNotPossible

3945: Verification of Payee approval not possible.

§

DecoupledInitiated

3955: security clearance via a separate channel (decoupled) initiated.

§

DecoupledPending

3956: strong customer authentication (decoupled) still pending.

§

DecoupledAwaitPush

3957: wait for the push message (decoupled). A notice for the user; as the answer to a status request without 0020 it means the same as 3956: still pending.

§

DecoupledMethodUnsupported

3958: the approval app does not support the chosen procedure.

§

OutcomeUnknown

9000: status indifferent: it is unclear whether the message or order was processed (RM B.4, C.7). P1 names the order (segment code) to run to find out, e.g. HKCAZ. Never resubmit blindly.

Fields

§

GeneralError

9010: processing not possible.

§

AuthenticationFailed

9040: authentication of the submitter missing or faulty, order rejected. RM also lists 9040 for a decompression error, which this client cannot cause (it sends no compressed messages).

§

PartialErrors

9050: message partially faulty.

§

ScaRequired

9075: dialog aborted, strong customer authentication required.

§

VopRequired

9076: name check (Verification of Payee) required; the bank no longer accepts payments without HKVPP/HKVPA or HKVOO.

§

ProductNotRegistered

9078: dialog aborted, the FinTS product is not registered.

§

UnknownStructure

9110: unknown structure.

§

ElementNotAllowed

9150: element not allowed in this order (e.g. an execution date other than 1999-01-01 in a FinTS single order).

§

InsufficientFunds

9230: insufficient funds.

§

DuplicateSubmission

9390: duplicate submission; the order is not executed again.

§

NotExpected

9120: not expected.

§

DataElementMissing

9160: data element missing.

§

NoLongerAccepted

9180: no longer accepted (order version outdated).

§

ProtocolVersionUnsupported

9185: HBCI/FinTS version not supported.

§

VopUnavailable

9250: name check (Verification of Payee) not possible; submit again later or with opt-out (HKVOO).

§

InstantLimitExceeded

9255: real-time (instant payment) limit exceeded. P1, if present, is a link where the user can change the limit.

Fields

§

PinTanUnavailable

9311: PIN/TAN system not available.

§

SecurityProcedureNotAllowed

9361: dialog aborted, the security procedure is no longer allowed.

§

SignatureInsufficient

9370: signature authorisation not sufficient.

§

NotAuthorised

9380: user not authorised (for the order, or for the chosen TAN procedure).

§

SignatureInvalid

9340: signature not accepted (RM: “electronic signature wrong”, “signature faulty”, “security profile unknown”). The PIN may be wrong, or user ID, BLZ or security profile do not match; banks send it next to a more specific code, which then names the cause.

§

PinWrong

9942, 9910: PIN wrong. 9942 also means, in a PIN change, “new PIN invalid / too short / too long”; RM lists 9910 also as “PIN locked”, “TAN list locked”, “chip card locked”.

§

SystemIdInvalid

9391: fetch a new customer system ID.

§

DialogAborted

9800: dialog aborted by the bank.

§

AccountLocked

9930, 9931: PIN or access locked.

§

LockAfterAttempts

9360 (RM): the TAN list (or signature) is locked after attempts_left further failed attempts (P1). Without P1 it is the RM text “key locked”: the lock happened.

Fields

§attempts_left: Option<u32>
§

TanInvalid

9941: TAN (or signature) invalid.

§

TanUsed

9943: TAN already used.

§

TanExpired

9951: timeout in the two-step procedure, TAN invalid.

§

SmsNotSent

9959: the SMS could not be sent; repeat.

§

Other

Any other code.

Implementations§

Source§

impl Kind

Source

pub fn of(code: Code, parameters: &[String]) -> Self

The kind of code with these parameters. Empty parameters are skipped.

Trait Implementations§

Source§

impl Clone for Kind

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Kind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Kind

Source§

impl PartialEq for Kind

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Kind

Auto Trait Implementations§

§

impl Forget for Kind

§

impl Freeze for Kind

§

impl Move for Kind

§

impl RefUnwindSafe for Kind

§

impl Send for Kind

§

impl Sync for Kind

§

impl Unpin for Kind

§

impl UnsafeUnpin for Kind

§

impl UnwindSafe for Kind

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more