Skip to content

Commit e299586

Browse files
committed
Feat: adds PaymentItemType enum and PaymentItem.type
* closes #163
1 parent fe1a3ca commit e299586

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

index.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@

281281
{
282282
label: "Sales Tax",
283283
amount: { currency: "USD", value: "5.00" },
284+
type: "tax"
284285
},
285286
],
286287
total: {
@@ -1853,6 +1854,7 @@

18531854
required DOMString label;
18541855
required PaymentCurrencyAmount amount;
18551856
boolean pending = false;
1857+
PaymentItemType type;
18561858
};
18571859
pre>
18581860
<p>
@@ -1885,6 +1887,39 @@

18851887
shipping option. <a>User agentsa> MAY indicate pending fields in
18861888
the user interface for the payment request.
18871889
dd>
1890+
<dt>
1891+
<dfn>typedfn> member
1892+
dt>
1893+
<dd>
1894+
A <a>PaymentItemTypea> enum value. A the value of <a>typea> to
1895+
assist in the presentation of <a>PaymentItema> by, for example,
1896+
visually grouping types together or other otherwise distinguishing
1897+
them from other types (or from items that have no associated type).
1898+
dd>
1899+
dl>
1900+
section>
1901+
<section data-dfn-for="PaymentItemType">
1902+
<h2>
1903+
<dfn>PaymentItemTypedfn> enum
1904+
h2>
1905+
<pre class="idl">
1906+
enum PaymentItemType {
1907+
"tax"
1908+
};
1909+
pre>
1910+
<p>
1911+
The <a>PaymentItemTypea> serves to categorize a <a>PaymentItema>
1912+
into particular types.
1913+
p>
1914+
<dl>
1915+
<dt>
1916+
"<dfn>taxdfn>"
1917+
dt>
1918+
<dd>
1919+
Indicates that the corresponding <a>PaymentItema> represents a form
1920+
of tax (e.g., sales tax, goods and services tax, value added tax,
1921+
etc.).
1922+
dd>
18881923
dl>
18891924
section>
18901925
<section data-dfn-for="PaymentAddress" data-link-for="PaymentAddress">

0 commit comments

Comments
 (0)