@@ -124,6 +124,11 @@ <h2>
124124 < a href ="https://github.com/w3c/payment-request/issues/617 "> issue
125125 617</ a > ).
126126 </ li >
127+ < li data-link-for ="PaymentItem ">
128+ < a > PaymentItem</ a > 's < a > type</ a > member and the
129+ < a > PaymentItemType</ a > enum (see < a href =
130+ "https://github.com/w3c/payment-request/issues/163 "> issue 163</ a > ).
131+ </ li >
127132 </ ul >
128133 </ section >
129134 </ section >
281286 {
282287 label: "Sales Tax",
283288 amount: { currency: "USD", value: "5.00" },
289+ type: "tax"
284290 },
285291 ],
286292 total: {
@@ -1851,6 +1857,8 @@ <h2>
18511857 required DOMString label;
18521858 required PaymentCurrencyAmount amount;
18531859 boolean pending = false;
1860+ // Note: type member is "at risk" of being removed!
1861+ PaymentItemType type;
18541862 };
18551863 </ pre >
18561864 < p >
@@ -1884,7 +1892,63 @@ <h2>
18841892 the user interface for the payment request.
18851893 </ dd >
18861894 </ dl >
1895+ < div class ="issue atrisk ">
1896+ < p >
1897+ This feature has been marked "< a > at risk</ a > ". Firefox plans to
1898+ experiment with this feature during the Candidate Recommendation
1899+ phase. If you'd like for this feature to remain in the specification,
1900+ please signal your support for it to remain in < a href =
1901+ "https://github.com/w3c/payment-request/issues/163 "> issue 163</ a > .
1902+ </ p >
1903+ < dl >
1904+ < dt >
1905+ < dfn > type</ dfn > member
1906+ </ dt >
1907+ < dd data-tests ="PaymentItem/type_member.https.html ">
1908+ A < a > PaymentItemType</ a > enum value, which a developer can use to
1909+ explicitly indicate that this member is of a particular type. A
1910+ user agent MAY use the value of < a > type</ a > to assist in the
1911+ presentation of < a > PaymentItem</ a > by, for example, visually
1912+ grouping types together or other otherwise distinguishing them from
1913+ other types (or from items that have no associated type).
1914+ </ dd >
1915+ < dd > </ dd >
1916+ </ dl >
1917+ </ div >
18871918 </ section >
1919+ < div class ="issue atrisk ">
1920+ < p >
1921+ This feature has been marked "< a > at risk</ a > ". Firefox plans to
1922+ experiment with this feature during the Candidate Recommendation phase.
1923+ If you'd like for this feature to remain in the specification, please
1924+ signal your support for it to remain in < a href =
1925+ "https://github.com/w3c/payment-request/issues/163 "> issue 163</ a > .
1926+ </ p >
1927+ < section data-dfn-for ="PaymentItemType ">
1928+ < h2 >
1929+ < dfn > PaymentItemType</ dfn > enum
1930+ </ h2 >
1931+ < pre class ="idl ">
1932+ enum PaymentItemType {
1933+ "tax"
1934+ };
1935+ </ pre >
1936+ < p >
1937+ The < a > PaymentItemType</ a > serves to categorize a < a > PaymentItem</ a >
1938+ into particular types.
1939+ </ p >
1940+ < dl >
1941+ < dt >
1942+ "< dfn > tax</ dfn > "
1943+ </ dt >
1944+ < dd >
1945+ Indicates that the corresponding < a > PaymentItem</ a > represents a form
1946+ of taxation. Examples include sales tax, goods and services tax,
1947+ value added tax, an so on.
1948+ </ dd >
1949+ </ dl >
1950+ </ section >
1951+ </ div >
18881952 < section data-dfn-for ="PaymentAddress " data-link-for ="PaymentAddress ">
18891953 < h2 >
18901954 < dfn > PaymentAddress</ dfn > interface
0 commit comments