Skip to content

Commit 3bbc92f

Browse files
committed
Add ghost file.
1 parent 97035d6 commit 3bbc92f

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using System;
2+
using System.Collections.Generic;
3+
4+
namespace OrchardCore.Commerce.Payment.Constants;
5+
6+
public static class CurrencyCollectionConstants
7+
{
8+
9+
[Obsolete("This is a Stripe-specific property, use the equivalent in the OrchardCore.Commerce.Payment.Stripe project.")]
10+
public static readonly IEnumerable<string> SpecialCases = ["ISK", "HUF", "TWD", "UGX"];
11+
12+
// Note that https://docs.stripe.com/currencies#zero-decimal contains UGX on the list as well, however this is a
13+
// mistake because https://docs.stripe.com/currencies#special-cases explicitly states that UGX is a special case
14+
// (see above) where it's effectively zero-decimal but uses the two-decimal format for backwards compatibility.
15+
[Obsolete("This is a Stripe-specific property, use the equivalent in the OrchardCore.Commerce.Payment.Stripe project.")]
16+
public static readonly IEnumerable<string> ZeroDecimalCurrencies =
17+
[
18+
"BIF",
19+
"CLP",
20+
"DJF",
21+
"GNF",
22+
"JPY",
23+
"KMF",
24+
"KRW",
25+
"MGA",
26+
"PYG",
27+
"RWF",
28+
"VND",
29+
"VUV",
30+
"XAF",
31+
"XOF",
32+
"XPF",
33+
];
34+
}

0 commit comments

Comments
 (0)