-
Notifications
You must be signed in to change notification settings - Fork 4
/
597.txt
118 lines (80 loc) · 7.03 KB
/
597.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[2] [DFN[[[ISO 4217]]]] は、[[通貨符号]]を規定する [[ISO]] の[[国際標準]]です。
[3] [[ISO 4217]] は世界各国の[[通貨]]に対して[[ラテン文字]]3文字の[RUBYB[[[通貨符号]]]@en[currency code]]を定義しています。
* 仕様書
[REFS[
- [8] [CITE@en[ISO 4217:2008 - Codes for the representation of currencies and funds]] ([[]] 著, [TIME[2014-01-26 03:00:00 +09:00]] 版) <http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=46121>
-- [9] 有料
- [10] [CITE@en[ISO Currency - Currency Codes]] ([TIME[2014-01-26 09:41:07 +09:00]] 版) <http://www.currency-iso.org/en/home.html>
- [5] [CITE@en-us[UTS #35: Unicode Locale Data Markup Language]] ([TIME[2013-09-18 20:02:34 +09:00]] 版) <http://www.unicode.org/reports/tr35/#Key_Type_Definitions>
- [23] [CITE@en-us[UTS #35: Unicode LDML: Numbers]] ([TIME[2013-09-18 19:18:44 +09:00]] 版) <http://www.unicode.org/reports/tr35/tr35-numbers.html#Currencies>
]REFS]
* 一覧
[11] >>10 には最新の[[通貨符号]]一覧があります。 [[XML]] 形式のものもあります。
;; [12] すばらしい!
[6] >>1 には現行[[通貨符号]]、過去の[[通貨符号]]、非標準の[[通貨符号]]の一覧があります。
[7] >>4 より、[[言語タグ]]の[[拡張U]]の登録簿には[[通貨符号]]の一覧が含まれています。
* 割当
[17] 基本的には 2文字の[[国符号]]の後に1文字足して3文字の[[符号]]となります。
いずれの[[文字]]も[[基本ラテン文字]]です。
[18] [[大文字]]と[[小文字]]の区別はないようですが、定義上すべて[[大文字]]となっています。
[20] 近年まで用いられていたものの既に廃止された[[通貨]]や、[[デノミ]]の前のものにも[[符号]]が割り当てられており、
再利用はされないようです。
;; [21] 比較的最近のものだけで、過去の歴史的な[[通貨]]には割り振られていないようです。
[22] [[言語符号]]や[[国符号]]とは違って、[[私用]]の[[符号]]は割り当てられていないようです。
* 特別な符号
[19] 特別な用途の[[符号]]や地域の[[通貨]]の[[符号]]は [CODE[[[X]]]] から始まる3文字の[[符号]]が用いられています。
[[金]]、[[銀]]などにも[[符号]]が割り振られています。
** [CODE(lang)@en[XTS]]
[14] [DFN[[CODE(lang)@en[[[XTS]]]]]] は試験目的に予約されています [SRC[>>10]]。
** [CODE(lang)@en[XXX]]
[15] [DFN[[CODE(lang)@en[[[XXX]]]]]] は[[通貨]]なしの[[取引]]に使うことができます [SRC[>>10]]。
[16] [[言語タグ]]では、より広く、[RUBYB[未知]@en[unknown]]、[RUBYB[非妥当]@en[invalid]]な[[通貨]]を表すとされています [SRC[>>5]]。
* 応用
[4] [[言語タグ]]では [CODE(lang)@en[[[u]]]] [[拡張タグ]]の中の[[キー]] [DFN[[CODE(lang)@en[[[cu]]]]]]
の[[型]]として[[通貨符号]]を記述できます [SRC[>>5]]。
[13] [[マイクロデータ]]で使う [[schema.org]] の[[語彙]]でいくつかの[[特性]]の値は [[ISO 4217]]
の3文字[[通貨符号]]とされています。
* メモ
[REFS[
- [1] [CITE@en[ISO 4217 - Wikipedia, the free encyclopedia]] ([TIME[2014-01-26 06:23:44 +09:00]] 版) <http://en.wikipedia.org/wiki/ISO_4217>
]REFS]
[24] [[国名符号]]や[[言語符号]]とは異なり、
[[通貨符号]]は [[IETF]] や [[W3C]] では余り使っていません。
[25] [[W3C]] の[[原案]]
''Common Markup for micropayment per-fee-links''
<http://www.w3.org/TR/Micropayment-Markup/#Appendix%207>
では、次のような符号を使っています。
- ISO 4217 に基づく名前は、それをそのまま使う。
- 私用名は、先頭に [CODE[[[x-]]]] をつける。
-- 例として、[[航空会社]]の[[マイル]]の通貨符号 [SAMP[x-AM-[VAR[zz]]]] ([VAR[zz]] は航空会社符号。)
が挙がっています。
- なお、その共通マーク付けでの使用においては、
私用名には必ず [[URI]] を添えさせることで一意性を保証しています。
より正確には:
> a four to ten letters currency name beginning with "x-" to be used by any system with some risk of collision. In addition, one can also mention a meta-escape sequence; a new reserved prefix "z-" indicating any string starting with "z-" has "z-" removed from it before use. (e.g. z-x-u turns into x-u as a registered code, not into an x- extension string).
> [INS[4〜10文字の通貨名で [CODE[x-]] で始まるものは、任意のシステムに於いて衝突の危険はあるものの使うことが出来ます。加えて、メタ・エスケープ・シーケンスのもあります。新たに予約する接頭辞 [CODE[z-]] は、 [CODE[z-]] で始まる任意の文字列は使用する前に [CODE[z-]] を削除することを示します (例えば [SAMP[z-x-u]] は登録符号である [CODE[x-u]] であって、 [CODE[x-]] の拡張文字列ではないことになります)。]]
[26] [CODE[z-]] をどういうときに使うのかいまいちはっきりしませんが、
W3C かどっかがこの仕様書案の時点で将来用意する予定だった登録簿に
[CODE[x-]] で始まる名前を登録可能とし、
それが私用名と衝突しないようにする配慮なんですかね?
[WEAK[(ISO 符号は3文字のラテン文字だけで構成されるはずだから、絶対に衝突しないし。)]]
- [27] ''BSI Currency Code Service (ISO 4217 Maintenance Agency)'' <http://www.bsi-global.com/Technical+Information/Publications/_Publications/tig90.xalter>: ISO 符号の一覧を [[Word]] 文書で入手できる。
- [28] ''XE.com - ISO 4217 Type Currency Symbol List'' <http://www.xe.com/iso4217.htm>
- [29] ''theFinancials.com World Currency Formats and ISO 4217 Codes'' <http://www.thefinancials.com/vortex/CurrencyFormats.html>
- [31] ''ISO 4217 Currency Codes'' <http://www.id3.org/iso4217.html>
- [32] ''Google Directory - Science > Reference > Standards > Individual Standards > ISO 4217'' <http://directory.google.com/Top/Science/Reference/Standards/Individual_Standards/ISO_4217/>
[FIG(quote)[
[FIGCAPTION[
[30] [CITE[JSON API Reference | Worldpay Developer]]
([TIME[2017-02-14 01:34:22 +09:00]])
<https://developer.worldpay.com/jsonapi/api#orders>
]FIGCAPTION]
> amount: Integer, Mandatory
> The amount to be charged in pennies/cents (or whatever the smallest unit is of the currencyCode that you specified, see currencyCodeExponent below)
> authorizedAmount: Integer, only included in response
> The amount that has been authorized for this order in cents
> currencyCode: String, Mandatory
> The ISO currency code of the currency you want to charge your customer in. A list of ISO currency codes can be found here
> currencyCodeExponent: String, only included in response
> The number of decimals after the dot for this currency. This is important to know as 'amount' has to be specified in the smallest unit of the currencyCode. The value will be 2 for most currencies but can sometimes be 3
]FIG]