Skip to content

Commit

Permalink
Feat: adds PaymentItemType enum and PaymentItem.type
Browse files Browse the repository at this point in the history
 * closes #163
  • Loading branch information
marcoscaceres committed Feb 21, 2018
1 parent 678a110 commit 4b98e53
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ <h3>
{
label: "Sales Tax",
amount: { currency: "USD", value: "5.00" },
type: "tax"
},
],
total: {
Expand Down Expand Up @@ -1848,6 +1849,7 @@ <h2>
required DOMString label;
required PaymentCurrencyAmount amount;
boolean pending = false;
PaymentItemType type;
};
</pre>
<p>
Expand Down Expand Up @@ -1880,6 +1882,39 @@ <h2>
shipping option. <a>User agents</a> MAY indicate pending fields in
the user interface for the payment request.
</dd>
<dt>
<dfn>type</dfn> member
</dt>
<dd>
A <a>PaymentItemType</a> enum value. A the value of <a>type</a> to
assist in the presentation of <a>PaymentItem</a> by, for example,
visually grouping types together or other otherwise distinguishing
them from other types (or from items that have no associated type).
</dd>
</dl>
</section>
<section data-dfn-for="PaymentItemType">
<h2>
<dfn>PaymentItemType</dfn> enum
</h2>
<pre class="idl">
enum PaymentItemType {
"tax"
};
</pre>
<p>
The <a>PaymentItemType</a> serves to categorize a <a>PaymentItem</a>
into particular types.
</p>
<dl>
<dt>
"<dfn>tax</dfn>"
</dt>
<dd>
Indicates that the corresponding <a>PaymentItem</a> represents a form
of tax (e.g., sales tax, goods and services tax, value added tax,
etc.).
</dd>
</dl>
</section>
<section data-dfn-for="PaymentAddress" data-link-for="PaymentAddress">
Expand Down

0 comments on commit 4b98e53

Please sign in to comment.