pub enum PaymentMethodType {
Card,
SepaDebit,
BankTransfer,
Cash,
}Expand description
Payment method type (extensible for future methods)
Variants§
Card
Credit/debit card via Stripe
SepaDebit
SEPA Direct Debit (Belgian bank transfer)
BankTransfer
Manual bank transfer
Cash
Cash payment (recorded manually)
Trait Implementations§
Source§impl Clone for PaymentMethodType
impl Clone for PaymentMethodType
Source§fn clone(&self) -> PaymentMethodType
fn clone(&self) -> PaymentMethodType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for PaymentMethodType
impl ComposeSchema for PaymentMethodType
Source§impl Debug for PaymentMethodType
impl Debug for PaymentMethodType
Source§impl<'de> Deserialize<'de> for PaymentMethodType
impl<'de> Deserialize<'de> for PaymentMethodType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<PaymentMethodType> for ContributionPaymentMethod
Traduction du moyen de paiement TECHNIQUE (module de paiement) vers le
moyen COMPTABLE inscrit sur la quote-part.
impl From<PaymentMethodType> for ContributionPaymentMethod
Traduction du moyen de paiement TECHNIQUE (module de paiement) vers le moyen COMPTABLE inscrit sur la quote-part.
Les deux enumerations ne se recouvrent pas : le module de paiement raisonne
en canal d’encaissement (Card, SepaDebit, BankTransfer, Cash), la
comptabilite de copropriete en mode de reglement (virement, especes,
cheque, domiciliation). La correspondance est donc etablie ici, une seule
fois, plutot que devinee a chaque appel.
Deux points assumes :
Card->BankTransfer, faute de valeur « carte » cote comptable : un paiement par carte arrive sur le compte de l’ACP sous forme de virement du prestataire.SepaDebit->Domiciliation, qui est exactement la meme chose sous son nom belge.
Si la distinction devenait necessaire (rapprochement bancaire fin), c’est
ContributionPaymentMethod qu’il faudrait etendre, pas cette conversion
qu’il faudrait contourner. Le match est EXHAUSTIF sans bras _ : ajouter
un canal d’encaissement doit forcer a decider de sa traduction comptable,
pas le laisser tomber silencieusement dans un defaut.
Source§fn from(value: PaymentMethodType) -> Self
fn from(value: PaymentMethodType) -> Self
Source§impl PartialEq for PaymentMethodType
impl PartialEq for PaymentMethodType
Source§fn eq(&self, other: &PaymentMethodType) -> bool
fn eq(&self, other: &PaymentMethodType) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PaymentMethodType
impl Serialize for PaymentMethodType
impl StructuralPartialEq for PaymentMethodType
Auto Trait Implementations§
impl Freeze for PaymentMethodType
impl RefUnwindSafe for PaymentMethodType
impl Send for PaymentMethodType
impl Sync for PaymentMethodType
impl Unpin for PaymentMethodType
impl UnsafeUnpin for PaymentMethodType
impl UnwindSafe for PaymentMethodType
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> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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