mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-06 02:36:49 +00:00
18 lines
282 B
Go
18 lines
282 B
Go
package config
|
|
|
|
type PaymentMethod string
|
|
|
|
func (pm PaymentMethod) ToFrench() string {
|
|
switch pm {
|
|
case "Card":
|
|
return "Carte Bancaire"
|
|
case "Cash":
|
|
return "Espèces"
|
|
case "Cheque":
|
|
return "Chèque"
|
|
case "Transfer":
|
|
return "Virement"
|
|
default:
|
|
return string(pm)
|
|
}
|
|
}
|