|
124 | 124 | <a href="https://github.com/w3c/payment-request/issues/617">issue
|
125 | 125 | 617a>).
|
126 | 126 | li>
|
| 127 | + <li data-link-for="PaymentItem"> |
| 128 | + <a>PaymentItema>'s <a>typea> member and the |
| 129 | + <a>PaymentItemTypea> enum (see <a href= |
| 130 | + "https://github.com/w3c/payment-request/issues/163">issue 163a>). |
| 131 | + li> |
127 | 132 | ul>
|
128 | 133 | section>
|
129 | 134 | section>
|
|
281 | 286 | {
|
282 | 287 | label: "Sales Tax",
|
283 | 288 | amount: { currency: "USD", value: "5.00" },
|
| 289 | + type: "tax" |
284 | 290 | },
|
285 | 291 | ],
|
286 | 292 | total: {
|
|
1851 | 1857 | required DOMString label;
|
1852 | 1858 | required PaymentCurrencyAmount amount;
|
1853 | 1859 | boolean pending = false;
|
| 1860 | + // Note: type member is "at risk" of being removed! |
| 1861 | + PaymentItemType type; |
1854 | 1862 | };
|
1855 | 1863 | pre>
|
1856 | 1864 | <p>
|
|
1884 | 1892 | the user interface for the payment request.
|
1885 | 1893 | dd>
|
1886 | 1894 | dl>
|
| 1895 | + <div class="issue atrisk"> |
| 1896 | + <p> |
| 1897 | + This feature has been marked "<a>at riska>". 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 163a>. |
| 1902 | + p> |
| 1903 | + <dl> |
| 1904 | + <dt> |
| 1905 | + <dfn>typedfn> member |
| 1906 | + dt> |
| 1907 | + <dd data-tests="PaymentItem/type_member.https.html"> |
| 1908 | + A <a>PaymentItemTypea> 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>typea> to assist in the |
| 1911 | + presentation of <a>PaymentItema> 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> |
1887 | 1918 | section>
|
| 1919 | + <div class="issue atrisk"> |
| 1920 | + <p> |
| 1921 | + This feature has been marked "<a>at riska>". 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 163a>. |
| 1926 | + p> |
| 1927 | + <section data-dfn-for="PaymentItemType"> |
| 1928 | + <h2> |
| 1929 | + <dfn>PaymentItemTypedfn> enum |
| 1930 | + h2> |
| 1931 | + <pre class="idl"> |
| 1932 | + enum PaymentItemType { |
| 1933 | + "tax" |
| 1934 | + }; |
| 1935 | + pre> |
| 1936 | + <p> |
| 1937 | + The <a>PaymentItemTypea> serves to categorize a <a>PaymentItema> |
| 1938 | + into particular types. |
| 1939 | + p> |
| 1940 | + <dl> |
| 1941 | + <dt> |
| 1942 | + "<dfn>taxdfn>" |
| 1943 | + dt> |
| 1944 | + <dd> |
| 1945 | + Indicates that the corresponding <a>PaymentItema> 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> |
1888 | 1952 | <section data-dfn-for="PaymentAddress" data-link-for="PaymentAddress">
|
1889 | 1953 | <h2>
|
1890 | 1954 | <dfn>PaymentAddressdfn> interface
|
|
0 commit comments