Files
CrimsonandGitHub 1c5db1c1ab chore: Replace local currency package with go-libs version (#500)
* chore: replace local currency package with go-libs version

* Annotate apiRouter to ensure no conflict with other chi.Mux provided by go-libs

* Upgrade go-libs to new v3.0.1 tag

* Update connector template file to import from go-libs
2025-07-30 11:29:46 +00:00

21 lines
859 B
Go

package modulr
import "github.com/formancehq/go-libs/v3/currency"
var (
// c.f. https://modulr.readme.io/docs/international-payments
supportedCurrenciesWithDecimal = map[string]int{
"GBP": currency.ISO4217Currencies["GBP"], // Pound Sterling
"EUR": currency.ISO4217Currencies["EUR"], // Euro
"CZK": currency.ISO4217Currencies["CZK"], // Czech Koruna
"DKK": currency.ISO4217Currencies["DKK"], // Danish Krone
"NOK": currency.ISO4217Currencies["NOK"], // Norwegian Krone
"PLN": currency.ISO4217Currencies["PLN"], // Poland, Zloty
"SEK": currency.ISO4217Currencies["SEK"], // Swedish Krona
"CHF": currency.ISO4217Currencies["CHF"], // Swiss Franc
"USD": currency.ISO4217Currencies["USD"], // US Dollar
"HKD": currency.ISO4217Currencies["HKD"], // Hong Kong Dollar
"JPY": currency.ISO4217Currencies["JPY"], // Japan, Yen
}
)