pub struct BankCardAuthorization {Show 15 fields
pub flow_id: String,
pub name: String,
pub currency: String,
pub status: AuthorizationStatus,
pub status_raw: Option<i32>,
pub message: String,
pub is_support: bool,
pub max_amount: Option<Decimal>,
pub max_amount_unlimited: bool,
pub daily_max_count: Option<i64>,
pub daily_max_count_unlimited: bool,
pub expiry_date: Option<OffsetDateTime>,
pub long_term_valid: bool,
pub doc_reviewing: bool,
pub no_prior_deposit_reviewing: bool,
}Expand description
An authorization attached to a bank card (eDDA, bank securities account, FPS, …)
Fields§
§flow_id: StringAuthorization flow: hk_edda / hk_sdda (eDDA), hk_bank_sec,
hk_fps, …
name: StringDisplay name of the authorization
currency: StringAuthorized currency
status: AuthorizationStatusAuthorization status
status_raw: Option<i32>The server’s numeric code of status, also when it is a code this SDK
does not know (status is then Unknown); None when the value is
missing or is not a code
message: StringFailure reason (empty unless the authorization failed)
is_support: boolWhether this authorization is supported for the card
max_amount: Option<Decimal>Maximum amount per debit (None when not set)
max_amount_unlimited: boolWhether the per-debit amount is unlimited
daily_max_count: Option<i64>Maximum number of debits per day (None when not set)
daily_max_count_unlimited: boolWhether the daily debit count is unlimited
expiry_date: Option<OffsetDateTime>Expiry date of the authorization (None when not set, and for a
long-term authorization: the server’s 9999-12-31 “never expires”
sentinel, like any date in or after 2100, is None; check
Self::long_term_valid)
long_term_valid: boolWhether the authorization never expires
doc_reviewing: boolWhether submitted documents are under review
no_prior_deposit_reviewing: boolWhether the “no prior deposit” check is under review
Implementations§
Source§impl BankCardAuthorization
impl BankCardAuthorization
pub fn serialize<__S>(
__self: &BankCardAuthorization,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> BankCardAuthorizationwhere
BankCardAuthorization: Default,
impl<'de> BankCardAuthorizationwhere
BankCardAuthorization: Default,
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<BankCardAuthorization, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for BankCardAuthorization
impl Clone for BankCardAuthorization
Source§impl Debug for BankCardAuthorization
impl Debug for BankCardAuthorization
Source§impl Default for BankCardAuthorization
impl Default for BankCardAuthorization
Source§impl<'de> Deserialize<'de> for BankCardAuthorization
impl<'de> Deserialize<'de> for BankCardAuthorization
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Auto Trait Implementations§
impl Freeze for BankCardAuthorization
impl RefUnwindSafe for BankCardAuthorization
impl Send for BankCardAuthorization
impl Sync for BankCardAuthorization
impl Unpin for BankCardAuthorization
impl UnsafeUnpin for BankCardAuthorization
impl UnwindSafe for BankCardAuthorization
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more