Skip to content

Commit 89b2ac9

Browse files
Deprecate PaymentAddress, PayerErrors, and related members
w3c/payment-request@486c07a (w3c/payment-request#955) removed the PaymentAddress and PayerErrors objects from the Payment Request specification — as well as removing related members from the PaymentRequest, PaymentResponse, and PaymentDetailsUpdate objects. So this change adds Deprecated and Non-standard banners to the PaymentAddress and PayerErrors articles, as well as to he articles for all their member, and to the articles for the related members of the PaymentRequest, PaymentResponse, and PaymentDetailsUpdate objects. The change also removes all the Specifications tables for the deprecated features (they’re no longer in the spec). Related BCD change: mdn/browser-compat-data#10413
1 parent a472689 commit 89b2ac9

File tree

37 files changed

+68
-629
lines changed

37 files changed

+68
-629
lines changed

files/en-us/web/api/payererrors/email/index.html

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
- Validation
1515
- payment
1616
---
17-
<div>{{APIRef("Payment Request API")}}{{draft}}</div>
17+
<div>{{APIRef("Payment Request API")}}
18+
{{Deprecated_header}}
19+
{{Non-standard_header}}</div>
1820

1921
<p>The <code><strong>email</strong></code> property is included in a
2022
{{domxref("PayerErrors")}} object if the {{domxref("PaymentResponse.payerEmail")}}
@@ -59,23 +61,6 @@ <h2 id="Example">Example</h2>
5961
}
6062
</pre>
6163

62-
<h2 id="Specifications">Specifications</h2>
63-
64-
<table class="standard-table">
65-
<tbody>
66-
<tr>
67-
<th scope="col">Specification</th>
68-
<th scope="col">Status</th>
69-
<th scope="col">Comment</th>
70-
</tr>
71-
<tr>
72-
<td>{{SpecName('Payment','#dom-payererrors-email','PayerErrors.email')}}</td>
73-
<td>{{Spec2('Payment')}}</td>
74-
<td>Initial definition.</td>
75-
</tr>
76-
</tbody>
77-
</table>
78-
7964
<h2 id="Browser_compatibility">Browser compatibility</h2>
8065

8166
<p>{{Compat("api.PayerErrors.email")}}</p>

files/en-us/web/api/payererrors/index.html

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
- payment
1616
- paymentAddress
1717
---
18-
<div>{{APIRef("Payment Request API")}}</div>
18+
<div>{{APIRef("Payment Request API")}}
19+
{{Deprecated_header}}
20+
{{Non-standard_header}}</div>
1921

2022
<p><span class="seoSummary">The <strong><code>PayerErrors</code></strong> dictionary is used by the <a href="/en-US/docs/Web/API/Payment_Request_API">Payment Request API</a> to indicate the presence of—and to explain how to correct—validation errors in the payer details.</span> For each field in the payment information that fails validation, the <code>PayerErrors</code> object contains a string explaining the error.</p>
2123

@@ -24,33 +26,14 @@
2426
<h2 id="Properties">Properties</h2>
2527

2628
<dl>
27-
<dt>{{domxref("PayerErrors.email", "email")}} {{optional_inline}}</dt>
29+
<dt>{{domxref("PayerErrors.email", "email")}} {{optional_inline}}{{Deprecated_inline}}</dt>
2830
<dd>If present, this {{domxref("DOMString")}} is a string describing the validation error from which the payer's email address—as given by {{domxref("PaymentResponse.payerEmail")}}—currently suffers. If this property is absent from the <code>PayerErrors</code> object, the email address passed validation.</dd>
29-
<dt>{{domxref("PayerErrors.name", "name")}} {{optional_inline}}</dt>
31+
<dt>{{domxref("PayerErrors.name", "name")}} {{optional_inline}}{{Deprecated_inline}}</dt>
3032
<dd>If this {{domxref("DOMString")}} is present in the object, the {{domxref("PaymentResponse.payerName")}} property failed validation, and this string explains what needs to be corrected. If this property is absent, the paer name is fine</dd>
31-
<dt>{{domxref("PayerErrors.phone", "phone")}} {{optional_inline}}</dt>
33+
<dt>{{domxref("PayerErrors.phone", "phone")}} {{optional_inline}}{{Deprecated_inline}}</dt>
3234
<dd>If present, this string is an error message explaining why the payer's phone number ({{domxref("PaymentResponse.payerPhone")}}) failed validation. This property is absent if the phone number passed validation.</dd>
3335
</dl>
3436

35-
<h2 id="Example">Example</h2>
36-
37-
<h2 id="Specifications">Specifications</h2>
38-
39-
<table class="standard-table">
40-
<tbody>
41-
<tr>
42-
<th scope="col">Specification</th>
43-
<th scope="col">Status</th>
44-
<th scope="col">Comment</th>
45-
</tr>
46-
<tr>
47-
<td>{{SpecName('Payment','#dom-payererrors','PayerErrors')}}</td>
48-
<td>{{Spec2('Payment')}}</td>
49-
<td>Initial definition.</td>
50-
</tr>
51-
</tbody>
52-
</table>
53-
5437
<h2 id="Browser_compatibility">Browser compatibility</h2>
5538

5639
<p>{{Compat("api.PayerErrors")}}</p>

files/en-us/web/api/payererrors/name/index.html

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
- name
1717
- payment
1818
---
19-
<div>{{APIRef("Payment Request API")}}{{draft}}</div>
19+
<div>{{APIRef("Payment Request API")}}
20+
{{Deprecated_header}}
21+
{{Non-standard_header}}</div>
2022

2123
<p>The <strong><code>name</code></strong> property is included in a
2224
{{domxref("PayerErrors")}} object if the {{domxref("PaymentResponse.payerName",
@@ -64,23 +66,6 @@ <h2 id="Example">Example</h2>
6466
}
6567
</pre>
6668

67-
<h2 id="Specifications">Specifications</h2>
68-
69-
<table class="standard-table">
70-
<tbody>
71-
<tr>
72-
<th scope="col">Specification</th>
73-
<th scope="col">Status</th>
74-
<th scope="col">Comment</th>
75-
</tr>
76-
<tr>
77-
<td>{{SpecName('Payment','#dom-payererrors-name','PayerErrors.name')}}</td>
78-
<td>{{Spec2('Payment')}}</td>
79-
<td>Initial definition.</td>
80-
</tr>
81-
</tbody>
82-
</table>
83-
8469
<h2 id="Browser_compatibility">Browser compatibility</h2>
8570

8671
<p>{{Compat("api.PayerErrors.name")}}</p>

files/en-us/web/api/payererrors/phone/index.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- Validation
1818
- payment
1919
---
20-
<div>{{APIRef("Payment Request API")}}{{draft}}</div>
20+
<div>{{APIRef("Payment Request API")}}{{Deprecated_header}}{{Non-standard_header}}</div>
2121

2222
<p>The <strong><code>phone</code></strong> property is found in a
2323
{{domxref("PayerErrors")}} object if the {{domxref("PaymentResponse.payerPhone",
@@ -67,23 +67,6 @@ <h2 id="Example">Example</h2>
6767
}
6868
</pre>
6969

70-
<h2 id="Specifications">Specifications</h2>
71-
72-
<table class="standard-table">
73-
<tbody>
74-
<tr>
75-
<th scope="col">Specification</th>
76-
<th scope="col">Status</th>
77-
<th scope="col">Comment</th>
78-
</tr>
79-
<tr>
80-
<td>{{SpecName('Payment','#dom-payererrors-phone','PayerErrors.phone')}}</td>
81-
<td>{{Spec2('Payment')}}</td>
82-
<td>Initial definition.</td>
83-
</tr>
84-
</tbody>
85-
</table>
86-
8770
<h2 id="Browser_compatibility">Browser compatibility</h2>
8871

8972
<p>{{Compat("api.PayerErrors.phone")}}</p>

files/en-us/web/api/paymentaddress/addressline/index.html

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- payment
1414
- paymentAddress
1515
---
16-
<p>{{APIRef("Payment Request API")}}</p>
16+
<p>{{APIRef("Payment Request API")}}{{Deprecated_header}}{{Non-standard_header}}</p>
1717

1818
<p><span class="seoSummary">The <strong><code>addressLine</code></strong> read-only
1919
property of the {{domxref('PaymentAddress')}} interface is an array of
@@ -68,25 +68,6 @@ <h3 id="Value">Value</h3>
6868
London SE1 0HS<br>
6969
United Kingdom</p>
7070

71-
<h2 id="Specifications">Specifications</h2>
72-
73-
<table class="standard-table">
74-
<tbody>
75-
<tr>
76-
<th scope="col">Specification</th>
77-
<th scope="col">Status</th>
78-
<th scope="col">Comment</th>
79-
</tr>
80-
<tr>
81-
<td>
82-
{{SpecName('Payment','#dom-paymentaddress-addressline','PaymentAddress.addressLine')}}
83-
</td>
84-
<td>{{Spec2('Payment')}}</td>
85-
<td>Initial definition.</td>
86-
</tr>
87-
</tbody>
88-
</table>
89-
9071
<h2 id="Browser_compatibility">Browser compatibility</h2>
9172

9273
<p>{{Compat("api.PaymentAddress.addressLine")}}</p>

files/en-us/web/api/paymentaddress/city/index.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- town
1717
- village
1818
---
19-
<div>{{APIRef("Payment Request API")}}</div>
19+
<div>{{APIRef("Payment Request API")}}{{Deprecated_header}}{{Non-standard_header}}}</div>
2020

2121
<p><span class="seoSummary">The <strong><code>city</code></strong> read-only property of
2222
the {{domxref('PaymentAddress')}} interface returns a string containing the city or
@@ -32,23 +32,6 @@ <h3 id="Value">Value</h3>
3232
<p>A {{domxref("DOMString")}} indicating the city or town portion of the address described
3333
by the {{domxref("PaymentAddress")}} object.</p>
3434

35-
<h2 id="Specifications">Specifications</h2>
36-
37-
<table class="standard-table">
38-
<tbody>
39-
<tr>
40-
<th scope="col">Specification</th>
41-
<th scope="col">Status</th>
42-
<th scope="col">Comment</th>
43-
</tr>
44-
<tr>
45-
<td>{{SpecName('Payment','#dom-paymentaddress-city','PaymentAddress.city')}}</td>
46-
<td>{{Spec2('Payment')}}</td>
47-
<td>Initial definition.</td>
48-
</tr>
49-
</tbody>
50-
</table>
51-
5235
<h2 id="Browser_compatibility">Browser compatibility</h2>
5336

5437
<p>{{Compat("api.PaymentAddress.city")}}</p>

files/en-us/web/api/paymentaddress/country/index.html

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- payment
1414
- paymentAddress
1515
---
16-
<p>{{APIRef("Payment Request API")}}</p>
16+
<p>{{APIRef("Payment Request API")}}{{Deprecated_header}}{{Non-standard_header}}</p>
1717

1818
<p>The <strong><code>country</code></strong> read-only property of the
1919
{{domxref('PaymentAddress')}} interface is a string identifying the address's country
@@ -45,23 +45,6 @@ <h2 id="Usage_notes">Usage notes</h2>
4545
{{domxref("AddressErrors.country", "country")}} property is a string indicating the
4646
validation error that occurred and, if possible, suggests how to fix it.</p>
4747

48-
<h2 id="Specifications">Specifications</h2>
49-
50-
<table class="standard-table">
51-
<tbody>
52-
<tr>
53-
<th scope="col">Specification</th>
54-
<th scope="col">Status</th>
55-
<th scope="col">Comment</th>
56-
</tr>
57-
<tr>
58-
<td>{{SpecName('Payment','#dom-paymentaddress','PaymentAddress.country')}}</td>
59-
<td>{{Spec2('Payment')}}</td>
60-
<td>Initial definition.</td>
61-
</tr>
62-
</tbody>
63-
</table>
64-
6548
<h2 id="Browser_compatibility">Browser compatibility</h2>
6649

6750
<div>

files/en-us/web/api/paymentaddress/dependentlocality/index.html

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- Reference
1111
- paymentAddress
1212
---
13-
<div>{{APIRef("Payment Request API")}}</div>
13+
<div>{{APIRef("Payment Request API")}}{{Deprecated_header}}{{Non-standard_header}}</div>
1414

1515
<p><span class="seoSummary">The read-only <strong><code>dependentLocality</code></strong>
1616
property of the {{domxref('PaymentAddress')}} interface is a string containing a
@@ -35,25 +35,6 @@ <h3 id="Value">Value</h3>
3535
locality</strong>). This is a disambiguating feature of addresses in places where a
3636
city may have areas that duplicate street names.</p>
3737

38-
<h2 id="Specifications">Specifications</h2>
39-
40-
<table class="standard-table">
41-
<tbody>
42-
<tr>
43-
<th scope="col">Specification</th>
44-
<th scope="col">Status</th>
45-
<th scope="col">Comment</th>
46-
</tr>
47-
<tr>
48-
<td>
49-
{{SpecName('Payment','#dom-paymentaddress-dependentlocality','PaymentAddress.dependentLocality')}}
50-
</td>
51-
<td>{{Spec2('Payment')}}</td>
52-
<td>Initial definition.</td>
53-
</tr>
54-
</tbody>
55-
</table>
56-
5738
<h2 id="Browser_compatibility">Browser compatibility</h2>
5839

5940
<p>{{Compat("api.PaymentAddress.dependentLocality")}}</p>

files/en-us/web/api/paymentaddress/index.html

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,35 @@
1010
- Reference
1111
- paymentAddress
1212
---
13-
<div>{{APIRef("Payment Request API")}}{{SecureContext_Header}}</div>
14-
13+
<div>{{APIRef("Payment Request API")}}{{SecureContext_Header}} {{Deprecated_header}}{{Non-standard_header}}</div>
1514
<p><span class="seoSummary">The <strong><code>PaymentAddress</code></strong> interface of the <a href="/en-US/docs/Web/API/Payment_Request_API">Payment Request API</a> is used to store shipping or payment address information.</span></p>
1615

1716
<p>It may be useful to refer to the Universal Postal Union web site's <a href="https://www.upu.int/en/Postal-Solutions/Programmes-Services/Addressing-Solutions#addressing-s42-standard">Addressing S42 standard</a> materials, which provide information about international standards for postal addresses.</p>
1817

1918
<h2 id="Properties">Properties</h2>
2019

2120
<dl>
22-
<dt>{{domxref('PaymentAddress.addressLine')}} {{readonlyinline}}</dt>
21+
<dt>{{domxref('PaymentAddress.addressLine')}} {{readonlyinline}}{{deprecated_inline}}</dt>
2322
<dd>An array of {{domxref("DOMString")}} objects providing each line of the address not included among the other properties. The exact size and content varies by country or location and can include, for example, a street name, house number, apartment number, rural delivery route, descriptive instructions, or post office box number.</dd>
24-
<dt>{{domxref('PaymentAddress.country')}} {{readonlyinline}} </dt>
23+
<dt>{{domxref('PaymentAddress.country')}} {{readonlyinline}}{{deprecated_inline}} </dt>
2524
<dd>A {{domxref("DOMString")}} specifying the country in which the address is located, using the {{interwiki("wikipedia", "ISO-3166-1 alpha-2")}} standard. The string is always given in its canonical upper-case form. Some examples of valid <code>country</code> values: <code>"US"</code>, <code>"GB"</code>, <code>"CN"</code>, or <code>"JP"</code>.</dd>
26-
<dt>{{domxref('PaymentAddress.city')}} {{readonlyinline}}</dt>
25+
<dt>{{domxref('PaymentAddress.city')}} {{readonlyinline}}{{deprecated_inline}}</dt>
2726
<dd>A {{domxref("DOMString")}} which contains the city or town portion of the address.</dd>
28-
<dt>{{domxref('PaymentAddress.dependentLocality')}} {{readonlyinline}}</dt>
27+
<dt>{{domxref('PaymentAddress.dependentLocality')}} {{readonlyinline}}{{deprecated_inline}}</dt>
2928
<dd>A {{domxref("DOMString")}} giving the dependent locality or sublocality within a city, for example, a neighborhood, borough, district, or UK dependent locality.</dd>
30-
<dt>{{domxref('PaymentAddress.organization')}} {{readonlyinline}}</dt>
29+
<dt>{{domxref('PaymentAddress.organization')}} {{readonlyinline}}{{deprecated_inline}}</dt>
3130
<dd>A {{domxref("DOMString")}} specifying the name of the organization, firm, company, or institution at the payment address.</dd>
32-
<dt>{{domxref('PaymentAddress.phone')}} {{readonlyinline}}</dt>
31+
<dt>{{domxref('PaymentAddress.phone')}} {{readonlyinline}}{{deprecated_inline}}</dt>
3332
<dd>A {{domxref("DOMString")}} specifying the telephone number of the recipient or contact person.</dd>
34-
<dt>{{domxref('PaymentAddress.postalCode')}} {{readonlyinline}}</dt>
33+
<dt>{{domxref('PaymentAddress.postalCode')}} {{readonlyinline}}{{deprecated_inline}}</dt>
3534
<dd>A {{domxref("DOMString")}} specifying a code used by a jurisdiction for mail routing, for example, the ZIP code in the United States or the PIN code in India.</dd>
36-
<dt>{{domxref('PaymentAddress.recipient')}} {{readonlyinline}}</dt>
35+
<dt>{{domxref('PaymentAddress.recipient')}} {{readonlyinline}}{{deprecated_inline}}</dt>
3736
<dd>A {{domxref("DOMString")}} giving the name of the recipient, purchaser, or contact person at the payment address.</dd>
38-
<dt>{{domxref('PaymentAddress.region')}} {{readonlyinline}}</dt>
37+
<dt>{{domxref('PaymentAddress.region')}} {{readonlyinline}}{{deprecated_inline}}</dt>
3938
<dd>A {{domxref("DOMString")}} containing the top level administrative subdivision of the country, for example a state, province, oblast, or prefecture.</dd>
40-
<dt>{{domxref('PaymentAddress.regionCode')}} {{readonlyinline}}</dt>
39+
<dt>{{domxref('PaymentAddress.regionCode')}} {{readonlyinline}}{{deprecated_inline}}</dt>
4140
<dd>A {{domxref("DOMString")}} specifying the region of the address, represented as a "code element" of an <a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO3166-2</a> country subdivision name (e.g. "QLD" for Queensland, Australia, "CA" for California, and so on).</dd>
42-
<dt>{{domxref('PaymentAddress.sortingCode')}} {{readonlyinline}}</dt>
41+
<dt>{{domxref('PaymentAddress.sortingCode')}} {{readonlyinline}}{{deprecated_inline}}</dt>
4342
<dd>A {{domxref("DOMString")}} providing a postal sorting code such as is used in France.</dd>
4443
</dl>
4544

@@ -59,7 +58,7 @@ <h3 id="Obsolete_properties">Obsolete properties</h3>
5958
<h2 id="Methods">Methods</h2>
6059

6160
<dl>
62-
<dt>{{domxref('PaymentAddress.toJSON()')}}</dt>
61+
<dt>{{domxref('PaymentAddress.toJSON()')}}{{deprecated_inline}}</dt>
6362
<dd>A standard serializer that returns a JSON representation of the <code>PaymentAddress</code> object's properties.</dd>
6463
</dl>
6564

@@ -124,23 +123,6 @@ <h2 id="Examples">Examples</h2>
124123
}
125124
}</pre>
126125

127-
<h2 id="Specifications">Specifications</h2>
128-
129-
<table class="standard-table">
130-
<tbody>
131-
<tr>
132-
<th scope="col">Specification</th>
133-
<th scope="col">Status</th>
134-
<th scope="col">Comment</th>
135-
</tr>
136-
<tr>
137-
<td>{{SpecName('Payment','#paymentaddress-interface','PaymentAddress')}}</td>
138-
<td>{{Spec2('Payment')}}</td>
139-
<td>Initial definition.</td>
140-
</tr>
141-
</tbody>
142-
</table>
143-
144126
<h2 id="Browser_compatibility">Browser compatibility</h2>
145127

146128
<p>{{Compat("api.PaymentAddress")}}</p>

files/en-us/web/api/paymentaddress/languagecode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- WebRTC API
1818
- rtc
1919
---
20-
<p>{{deprecated_header}}{{APIRef("Payment Request API")}}</p>
20+
<p>{{deprecated_header}}{{APIRef("Payment Request API")}}{{Non-standard_header}}</p>
2121

2222
<p><span class="seoSummary">The <strong><code>languageCode</code></strong> read-only
2323
property of the {{domxref('PaymentAddress')}} interface returns a string containing

0 commit comments

Comments
 (0)