diff --git a/index.html b/index.html index c1be70af..50e6c626 100644 --- a/index.html +++ b/index.html @@ -1933,7 +1933,7 @@

localities.
- Postal code + Postal code
The postal code or ZIP code, also known as PIN code in India. @@ -1990,6 +1990,7 @@

readonly attribute DOMString postalCode; readonly attribute DOMString recipient; readonly attribute DOMString region; + readonly attribute DOMString regionCode; readonly attribute DOMString sortingCode; readonly attribute FrozenArray<DOMString> addressLine; }; @@ -2010,10 +2011,11 @@

  1. Let address be a new instance of - PaymentAddress. -
  2. Set address.[[\addressLine]]to the empty - frozen array, and all other internal slotsset to the empty string. + PaymentAddress.Set + address.[[\addressLine]]to the empty frozen + array, and all other internal + slotsset to the empty string. +
  3. If details was not passed to the constructor, return address and terminate this algorithm.
  4. @@ -2023,7 +2025,7 @@

    "!INFRA#ascii-uppercase">ASCII uppercasing details["country"]. -
  5. If country is not a valid [[!ISO3166]] alpha-2 +
  6. If country is not a valid [[!ISO3166-1]] alpha-2 code, throw a RangeError exception.
  7. Set address.[[\country]] to @@ -2031,6 +2033,20 @@

+
  • If details["regionCode"] is present: +
      +
    1. Let regionCode be the result of ASCII uppercasing + details["regionCode"]. +
    2. +
    3. If regionCode is not a valid [[!ISO3166-2]] + subdivision code, throw a RangeError exception. +
    4. +
    5. Set address.[[\regionCode]] to + regionCode. +
    6. +
    +
  • If details["phone"] is present:
    1. If details["phone"] is not a @@ -2127,7 +2143,8 @@

      addressLine attribute

      - When getting, returns the value of the PaymentAddress's + Represents the address line of the address. When getting, + returns the value of the PaymentAddress's [[\addressLine]] internal slot.

      @@ -2136,8 +2153,19 @@

      region attribute

      - When getting, returns the value of the PaymentAddress's - [[\region]] internal slot. + Represents the region of the address. When getting, returns + the value of the PaymentAddress's [[\region]] + internal slot. +

      + +
      +

      + regionCode attribute +

      +

      + Represents the region of the address as an [[!ISO3166-2]] + code. When getting, returns the value of the + PaymentAddress's [[\regionCode]] internal slot.

      @@ -2145,8 +2173,9 @@

      city attribute

      - When getting, returns the value of the PaymentAddress's - [[\city]] internal slot. + Represents the city of the address. When getting, returns + the value of the PaymentAddress's [[\city]] internal + slot.

      @@ -2154,7 +2183,8 @@

      dependentLocality attribute

      - When getting, returns the value of the PaymentAddress's + Represents the dependent locality of the address. When + getting, returns the value of the PaymentAddress's [[\dependentLocality]] internal slot.

      @@ -2163,7 +2193,8 @@

      postalCode attribute

      - When getting, returns the value of the PaymentAddress's + Represents the postal code of the address. When getting, + returns the value of the PaymentAddress's [[\postalCode]] internal slot.

      @@ -2172,7 +2203,8 @@

      sortingCode attribute

      - When getting, returns the value of the PaymentAddress's + Represents the sorting code of the address. When getting, + returns the value of the PaymentAddress's [[\sortingCode]] internal slot.

      @@ -2181,7 +2213,8 @@

      languageCode attribute

      - When getting, returns the value of the PaymentAddress's + Represents the language code of the address. When getting, + returns the value of the PaymentAddress's [[\languageCode]] internal slot.

      @@ -2190,7 +2223,8 @@

      organization attribute

      - When getting, returns the value of the PaymentAddress's + Represents the organization of the address. When getting, + returns the value of the PaymentAddress's [[\organization]] internal slot.

      @@ -2199,7 +2233,8 @@

      recipient attribute

      - When getting, returns the value of the PaymentAddress's + Represents the recipient of the address. When getting, + returns the value of the PaymentAddress's [[\recipient]] internal slot.

      @@ -2208,8 +2243,9 @@

      phone attribute

      - When getting, returns the value of the PaymentAddress's - [[\phone]] internal slot. + Represents the phone of the address. When getting, returns + the value of the PaymentAddress's [[\phone]] internal + slot.

      @@ -2231,7 +2267,7 @@

      [[\country]] - A country as an [[!ISO3166]] alpha-2 code or the empty + A country as an [[!ISO3166-1]] alpha-2 code or the empty string stored in its canonical uppercase form. For example, "JP". @@ -2250,7 +2286,20 @@

      [[\region]] - A region or the empty string. + A region as a country subdivision name or the empty + string, such as "Victoria", representing the state of Victoria + in Australia. + + + + + [[\regionCode]] + + + A region as a [[!ISO3166-2]] subdivision code or the + empty string stored in its canonical uppercase form. For + example, "PT-11" represents the Lisbon district of + Portugal. @@ -2330,6 +2379,7 @@

      DOMString country; sequence<DOMString> addressLine; DOMString region; + DOMString regionCode; DOMString city; DOMString dependentLocality; DOMString postalCode; @@ -2350,7 +2400,7 @@

      country member
      - A country. + An [[!ISO3166-1]] country code, representing the country.
      addressLine member @@ -2364,6 +2414,12 @@

      A region.
      +
      + regionCode member +
      +
      + An [[!ISO3166-2]] subdivision code representing the region. +
      city member
      @@ -2431,6 +2487,7 @@

      "postalCode", "recipient", "region", + "regionCode", "sortingCode" }; @@ -2439,9 +2496,9 @@

      "country", "dependentLocality", "languageCode", "organization", "phone", "postalCode", "recipient", - "region", and "sortingCode" enum values - correspond to attributes with the same identifiers in the - PaymentAddress interface. + "region", "regionCode" and + "sortingCode" enum values correspond to attributes with + the same identifiers in the PaymentAddress interface.

      @@ -2470,7 +2527,7 @@

    2. If "country" is not in excludeList, set details["country"] to the - user-provided country as an upper case [[!ISO3166]] alpha-2 code, + user-provided country as an upper case [[!ISO3166-1]] alpha-2 code, or to the empty string if none was provided.
    3. If "phone" is not in @@ -2515,13 +2572,14 @@

      details["postalCode"].

      - Postal codes in certain countries can be so specific as to - uniquely identify an individual. This being a privacy concern, - some user agents only return the part of a postal code that they - deem sufficient for a merchant to calculate shipping costs. This - varies across countries and regions, and so the choice to redact - part, or all, of the postal code is left to the discretion of - implementers in the interest of protecting users' privacy. + Postal codes in certain countries can be so specific as + to uniquely identify an individual. This being a privacy + concern, some user agents only return the part of a postal code + that they deem sufficient for a merchant to calculate shipping + costs. This varies across countries and regions, and so the + choice to redact part, or all, of the postal code is left to + the discretion of implementers in the interest of protecting + users' privacy.

    4. @@ -2531,9 +2589,16 @@

      string if none was provided.
    5. If "region" is not in - excludeList, set details["region"] to - the user-provided region, or to the empty string if none was - provided. + excludeList: +
        +
      1. Set details["region"] to the user-provided + region, or to the empty string if none was provided. +
      2. +
      3. If details["region"] maps to a + [[!ISO3166-2]] subdivision code, set + details["regionCode"] to that subdivision code. +
      4. +
    6. If "sortingCode" is not in excludeList, set details["sortingCode"]