UPS-API / api-documentation

MIT License
32 stars 19 forks source link

Locator API: OpenHours and ClosedHours are sometimes arrays #111

Open bjdelange opened 1 month ago

bjdelange commented 1 month ago

An example of this:

{
  "LocationID": "157095",
  "IVR": {
    "PhraseID": "0"
  },
  "Geocode": {
    "Latitude": "52.29183959",
    "Longitude": "4.701498985"
  },
  "AddressKeyFormat": {
    "ConsigneeName": "NOVOTEL AMSTERDAM SCHIPHOL AIRPORT",
    "AddressLine": "TAURUSAVENUE 12",
    "PoliticalDivision2": "HOOFDDORP",
    "PostcodePrimaryLow": "2132LS",
    "CountryCode": "NL"
  },
  "Distance": {
    "Value": "0.7",
    "UnitOfMeasurement": {
      "Code": "KM",
      "Description": "KILOMETERS"
    }
  },
  "SpecialInstructions": {
    "Segment": "Het nieuwe Novotel Hotel"
  },
  "AdditionalChargeIndicator": "",
  "StandardHoursOfOperation": "Mon-Sun: 7:00am-5:00pm, 6:00pm-10:00pm",
  "OperatingHours": {
    "StandardHours": [
      {
        "HoursType": "10",
        "DayOfWeek": [
          {
            "Day": "1",
            "OpenHours": [
              "700",
              "1800"
            ],
            "CloseHours": [
              "1700",
              "2200"
            ]
          },
          {
            "Day": "2",
            "OpenHours": [
              "700",
              "1800"
            ],
            "CloseHours": [
              "1700",
              "2200"
            ]
          },
...