Common Parking Specifications

Price Definition

// The price of a service or a fee.
message Price {
  // The price in micro-units of the currency.
  // For example: 1.95 USD is 1950000 in micro-units.
  // If your price contains fractions of the smallest currency unit, then it
  // will be rounded using nearest even rounding (e.g. 2.5 cents rounded
  // to 2 cents, 3.5 cents rounded to 4 cents, 0.5 cents rounded to 0 cents,
  // 2.51 cents rounded to 3 cents). (required)
  int64 price_micros = 1;
  // The currency of the price that is defined in ISO 4217. (required)
  string currency_code = 2;
  // An optional and opaque string that identifies the pricing option that is
  // associated with the extended price. (optional)
  string pricing_option_tag = 3;
}

VehicleInformation Definition

message VehicleInformation {
  // License plate of the vehicle. This could be a mix of numbers and letters.
  // Required.
  string license_plate = 1;

  // The state or province name which the license plate is registered
  // in, in form of the ISO 3166-2 subdivision code. All uppercase, e.g. US-CA.
  // See https://en.wikipedia.org/wiki/ISO_3166-2.
  // Optional (required in some countries: e.g. US).
  string license_state_name = 2;

  // The ISO 3166-1 alpha-2 (two-letter) country code where the license is
  // issued. All uppercase, e.g. 'US'. See
  // https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2. Required.
  string license_country_code = 3;
}

UserInformation Definition

// Personal information about the person taking action (e.g. making a
// booking, an order, or creates a parking session).
message UserInformation {

  // Unique ID of the user to the partner, chosen by Reserve with Google.
  // (required)
  string user_id = 1;

  // Given name of the user (maximum 40 characters) (required)
  string given_name = 2;

  // Family name of the user (maximum 40 characters) (required)
  string family_name = 3;

  // Address of the user (optional)
  PostalAddress address = 4;

  // Phone number of the user (required)
  // Consistent with the international definition in ITU-T E.123 recommendation.
  // However, local conventions are also followed, such as using '-' instead of
  // a space as separator. For example, a phone number in the US can be
  // written as '+1 415-736-0000'
  string telephone = 5;

  // Email address of the user (required except for waitlists)
  string email = 6;

  // User's language code, in IETF BCP 47 format. It is sent only if a partner
  // is whitelisted for this feature. Please contact Reserve with Google team
  // to be whitelisted and receive this code. (optional)
  string language_code = 7;
}