Feed di esempio

Il commerciante " pranzo-A" utilizza un deposito di 100 $, con una finestra di annullamento di 1 ora, per assicurarsi che i tavoli nel patio siano sempre pieni. I posti a sedere al coperto non prevedono questa tariffa e non è necessaria una carta di credito per prenotare.

Il commerciante "Restaurant-B" ha un costo di mancato arrivo di 20 $a persona su tutti i posti, che può scegliere di applicare. Inoltre, tutti le prenotazioni e le cancellazioni avvengono almeno 30 minuti prima.

Il commerciante " ottimale - C" non funziona con i pagamenti. L'hotel accetta prenotazioni standard per il pranzo, ma deve essere approvata dal direttore del ristorante per prenotarsi durante la punta della cena. Per supportare questo processo, richiedono che la prenotazione di tutte le cene venga effettuata con almeno un'ora di anticipo.

Il commerciante "Starting-D" ha tre slot prepagati. Il primo slot ha un costo di 200 $, il secondo a 100 $e l'ultimo un intervallo compreso tra 100 $e 150 $. Tutti i prezzi prepagati sono specificati nel feed di disponibilità.

Merchant Center

{
  "metadata": {
    "processing_instruction": "PROCESS_AS_COMPLETE",
    "shard_number": 0,
    "total_shards": 1,
    "nonce": "12923311",
    "generation_timestamp": 1530431933
  },
  "merchant": [
    {
      "merchant_id": "dining-A",
      "name": "The Noodle Shop",
      "telephone": "+1 123-456-7890",
      "url": "www.diningAspublicsite.com",
      "tax_rate": {
        "micro_percent": 6750000
      },
      "geo": {
        "latitude": 37.422113,
        "longitude": -122.084041,
        "address": {
          "country": "US",
          "region": "CA",
          "postal_code": "94043",
          "street_address": "1897 Landings Dr",
          "locality": "Mountain View"
        }
      },
      "category": "restaurant"
    },
    {
      "merchant_id": "dining-B",
      "name": "Burrito Express",
      "telephone": "+1 123-456-7890",
      "url": "www.diningBspublicsite.com",
      "tax_rate": {
        "micro_percent": 6750000
      },
      "geo": {
        "latitude": 37.422113,
        "longitude": -122.084041,
        "address": {
          "country": "US",
          "region": "CA",
          "postal_code": "94043",
          "street_address": "1550 Plymouth St",
          "locality": "Mountain View"
        }
      },
      "category": "restaurant"
    },
    {
      "merchant_id": "dining-C",
      "name": "Coffee Café",
      "telephone": "+1 123-456-7854",
      "url": "www.diningCspublicsite.com",
      "geo": {
        "latitude": 37.422113,
        "longitude": -122.084041,
        "address": {
          "country": "US",
          "region": "CA",
          "postal_code": "94043",
          "street_address": "1500 Plymouth St",
          "locality": "Mountain View"
        }
      },
      "category": "restaurant"
    },
    {
      "merchant_id": "dining-D",
      "name": "Restaurant Express",
      "telephone": "+1 123-456-7854",
      "url": "www.diningDspublicsite.com",
      "geo": {
        "latitude": 37.422113,
        "longitude": -122.084041,
        "address": {
          "country": "US",
          "region": "CA",
          "postal_code": "94043",
          "street_address": "1500 Plymouth St",
          "locality": "Mountain View"
        }
      },
      "category": "restaurant"
    }
  ]
}

Servizi

{
  "metadata": {
    "processing_instruction": "PROCESS_AS_COMPLETE",
    "shard_number": 0,
    "total_shards": 1,
    "nonce": "12484913",
    "generation_timestamp": 1530432018
  },
  "service": [
    {
      "merchant_id": "dining-A",
      "service_id": "reservation",
      "uri_template": {
        "uri_template": "https://reservation-provider.com/examplerestaurant/book?date={availability_slot_start_seconds}&num_guests={resources_party_size}"
      },
      "localized_service_name": {
        "value": "Reservation",
        "localized_value": [
          {
            "locale": "en",
            "value": "Reservation"
          }
        ]
      }
    },
    {
      "merchant_id": "dining-B",
      "service_id": "reservation",
      "uri_template": {
        "uri_template": "https://reservation-provider.com/examplerestaurant/book?date={availability_slot_start_seconds}&num_guests={resources_party_size}"
      },
      "localized_service_name": {
        "value": "Reservation",
        "localized_value": [
          {
            "locale": "en",
            "value": "Reservation"
          }
        ]
      },
      "no_show_fee": {
        "fee": {
          "price_micros": 20000000,
          "currency_code": "USD"
        },
        "fee_type": "PER_PERSON"
      },
      "rules": {
        "min_advance_booking": 1800,
        "min_advance_online_canceling": 1800
      }
    },
    {
      "merchant_id": "dining-C",
      "service_id": "reservation",
      "localized_service_name": {
        "value": "Reservation",
        "localized_value": [
          {
            "locale": "en",
            "value": "Reservation"
          }
        ]
      }
    }
  ]
}

Disponibilità

{
  "metadata": {
    "processing_instruction": "PROCESS_AS_COMPLETE",
    "shard_number": 0,
    "total_shards": 1,
    "nonce": "11203880",
    "generation_timestamp": 1543875200
  },
  "service_availability": [
    {
      "availability": [
        {
          "merchant_id": "dining-A",
          "service_id": "reservation",
          "start_sec": 1535853600,
          "duration_sec": 2700,
          "spots_total": 2,
          "spots_open": 2,
          "resources": {
            "room_id": "A-dining-room",
            "room_name": "Dining Room",
            "party_size": 2
          }
        },
        {
          "merchant_id": "dining-A",
          "service_id": "reservation",
          "start_sec": 1535853600,
          "duration_sec": 1800,
          "spots_total": 2,
          "spots_open": 2,
          "resources": {
            "room_id": "A-patio",
            "room_name": "Patio",
            "party_size": 2
          },
          "deposit": {
            "deposit": {
              "price_micros": 100000000,
              "currency_code": "USD"
            },
            "min_advance_cancellation_sec": 3600
          }
        },
        {
          "merchant_id": "dining-B",
          "service_id": "reservation",
          "start_sec": 1535853600,
          "duration_sec": 1800,
          "spots_total": 2,
          "spots_open": 2,
          "resources": {
            "party_size": 2
          }
        },
        {
          "merchant_id": "dining-B",
          "service_id": "reservation",
          "start_sec": 1535853600,
          "duration_sec": 1800,
          "spots_total": 2,
          "spots_open": 2,
          "resources": {
            "party_size": 4
          }
        },
        {
          "merchant_id": "dining-C",
          "service_id": "reservation",
          "start_sec": 1535853600,
          "duration_sec": 1800,
          "spots_total": 2,
          "spots_open": 2,
          "resources": {
            "party_size": 2
          }
        },
        {
          "merchant_id": "dining-C",
          "service_id": "reservation",
          "start_sec": 1535855400,
          "duration_sec": 1800,
          "spots_total": 2,
          "spots_open": 2,
          "resources": {
            "party_size": 2
          },
          "scheduling_rule_overrides": {
            "last_bookable_sec": 1535851800
          }
        },
        {
          "merchant_id": "dining-D",
          "service_id": "reservation",
          "start_sec": 1535855600,
          "duration_sec": 1800,
          "spots_total": 2,
          "spots_open": 2,
          "resources": {
            "room_id": "Main",
            "room_name": "Main",
            "party_size": 2
          },
          "prepayment": {
            "price_info": {
              "price": {
                "price_micros": 200000000,
                "currency_code": "USD"
              }
            }
          }
        },
        {
          "merchant_id": "dining-D",
          "service_id": "reservation",
          "start_sec": 1535855800,
          "duration_sec": 1800,
          "spots_total": 2,
          "spots_open": 2,
          "resources": {
            "room_id": "vegan_five_course",
            "room_name": "Vegan Five Course Meal",
            "party_size": 2
          },
          "prepayment": {
            "price_info": {
              "price_range": {
                "min_price": {
                  "price_micros": 100000000,
                  "currency_code": "USD"
                }
              }
            }
          }
        },
        {
          "merchant_id": "dining-D",
          "service_id": "reservation",
          "start_sec": 1535855800,
          "duration_sec": 1800,
          "spots_total": 2,
          "spots_open": 2,
          "resources": {
            "room_id": "Main",
            "room_name": "Main",
            "party_size": 2
          },
          "prepayment": {
            "price_info": {
              "price_range": {
                "min_price": {
                  "price_micros": 100000000,
                  "currency_code": "USD"
                },
                "max_price": {
                  "price_micros": 150000000,
                  "currency_code": "USD"
                }
              }
            }
          }
        }
      ]
    }
  ]
}