租车预订是否可以自动添加到谷歌日历? [已关闭]

问题描述 投票:0回答:0

我跟进了文档中的完整示例,但事件没有添加?缺什么?我还在此处添加了 JSON-LD,以防有人无法看到文档中的 JSON-LD。我的实现被放弃了,因为它被认为是强制性的。

https://developers.google.com/gmail/markup/reference/rental-car#test_your_markup

<script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "RentalCarReservation",
      "reservationNumber": "546323",
      "reservationStatus": "http://schema.org/Confirmed",
      "url": "http://carrentals.com/view/546323",
      "underName": {
        "@type": "Person",
        "name": "John Smith",
        "email": "[email protected]"
    },
    "programMembership": {
        "@type": "ProgramMembership",
        "memberNumber": "1234567",
        "program": "AAA"
    },
    "bookingAgent": {
        "@type": "Organization",
        "name": "Car Rentals Internationaly",
        "url": "http://carrentals.com/"
    },
    "bookingTime": "2027-01-14T13:05:00-05:00",
    "modifiedTime": "2027-03-14T13:05:00-05:00",
    "confirmReservationUrl": "http://carrentals.com/confirm?id=546323",
    "cancelReservationUrl": "http://carrentals.com/cancel?id=546323",
    "checkinUrl": "http://carrentals.com/checkin?id=546323",
    "modifyReservationUrl": "http://carrentals.com/edit?id=546323",
    "potentialAction": [
        {
          "@type": "ConfirmAction",
          "target": "http://carrentals.com/confirm?id=546323"
      },
      {
          "@type": "CancelAction",
          "target": "http://carrentals.com/cancel?id=546323"
      },
      {
          "@type": "EditAction",
          "target": "http://carrentals.com/edit?id=546323"
      },
      {
          "@type": "CheckInAction",
          "target": "http://carrentals.com/checkin?id=546323"
      }
    ],
    "reservationFor": {
        "@type": "RentalCar",
        "name": "Economy Class Car",
        "model": "Civic",
        "brand": {
          "@type": "Brand",
          "name": "Honda"
      },
      "description": "Sedan 4 Door, 5 Seatbelts, Automatic transmission",
      "rentalCompany": {
          "@type": "Organization",
          "name": "Hertz"
      }
    },
    "pickupLocation": {
        "@type": "Place",
        "name": "Hertz San Diego Airport",
        "address": {
          "@type": "PostalAddress",
          "streetAddress": "1500 Orange Avenue",
          "addressLocality": "San Diego",
          "addressRegion": "CA",
          "postalCode": "94043",
          "addressCountry": "US"
      },
      "telephone": "+1-800-123-4567"
    },
    "pickupTime": "2027-08-05T16:00:00-07:00",
    "dropoffLocation": {
        "@type": "Place",
        "name": "Hertz LAX",
        "address": {
          "@type": "PostalAddress",
          "streetAddress": "1234 First Street",
          "addressLocality": "Los Angeles",
          "addressRegion": "CA",
          "postalCode": "94043",
          "addressCountry": "US"
      },
      "telephone": "+1-800-123-4567"
    },
    "dropoffTime": "2027-08-06T20:00:00-07:00",
    "price": "119.00",
    "priceCurrency": "USD"
    }
</script>
javascript php gmail markup google-schemas
© www.soinside.com 2019 - 2024. All rights reserved.