pub enum ContributionPaymentMethod {
BankTransfer,
Cash,
Check,
Domiciliation,
}Expand description
Payment method for contributions
Variants§
BankTransfer
Bank transfer (virement)
Cash
Cash (espèces)
Check
Check (chèque)
Domiciliation
Direct debit (domiciliation)
Trait Implementations§
Source§impl Clone for ContributionPaymentMethod
impl Clone for ContributionPaymentMethod
Source§fn clone(&self) -> ContributionPaymentMethod
fn clone(&self) -> ContributionPaymentMethod
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 ContributionPaymentMethod
impl ComposeSchema for ContributionPaymentMethod
Source§impl Debug for ContributionPaymentMethod
impl Debug for ContributionPaymentMethod
Source§impl<'de> Deserialize<'de> for ContributionPaymentMethod
impl<'de> Deserialize<'de> for ContributionPaymentMethod
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 ContributionPaymentMethod
impl PartialEq for ContributionPaymentMethod
Source§fn eq(&self, other: &ContributionPaymentMethod) -> bool
fn eq(&self, other: &ContributionPaymentMethod) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContributionPaymentMethod
Auto Trait Implementations§
impl Freeze for ContributionPaymentMethod
impl RefUnwindSafe for ContributionPaymentMethod
impl Send for ContributionPaymentMethod
impl Sync for ContributionPaymentMethod
impl Unpin for ContributionPaymentMethod
impl UnsafeUnpin for ContributionPaymentMethod
impl UnwindSafe for ContributionPaymentMethod
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