View Source GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingAllowanceProto (google_api_content_warehouse v0.4.0)

Describes the parking allowances for a feature, or the situations and requirements under which one may be permitted to park, such as certain vehicle types, valet parking, and permit parking. Also describes the cost of parking, which may vary based on the time and duration parked. Includes vehicle type, any other conditions for eligibility, and the cost of parking, which may vary based on the time and duration parked. If is_discount is set to true on a given allowance, that allowance represents a discount that can be applied to lower the cost of non-discount allowances specified on feature via parking_provider_feature. In this way, allowances can be 'layered,' i.e. appended, onto each other when denormalizing references via parking_provider_feature.

Attributes

  • allowanceType (type: String.t, default: nil) - The type of parking for this allowance. Allowance details only apply to the type of parking specified.
  • isDiscount (type: boolean(), default: nil) - If true, this allowance represents a discount rather than an individual rate; any rate values specified in this allowance describe a discount to be applied to the non-discount allowances in the ParkingProto.
  • minPurchaseForValidation (type: list(GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic.t), default: nil) - If this rate requires validation, this expresses the minimum purchase required for validation in each applicable currency. Should have an ID of /measurement_unit/money_value and consist of two properties: one with an ID of /measurement_unit/money_value/amount and a float value with the amount, and another with the ID /measurement_unit/money_value/currency and an ID value with the MID of the proper currency (from the /finance/currency type). A value of 0 suggests that no purchase is required. If empty, this suggests that no validation is required for this rate.
  • permitType (type: list(GoogleApi.ContentWarehouse.V1.Model.GeostoreLanguageTaggedTextProto.t), default: nil) - Any additional details about the permit type; e.g. “Zone A”. In any local languages. Should only be set if allowance_type is PERMIT.
  • serviceType (type: list(String.t), default: nil) - The types of services that this parking allowance applies to. For instance, some cities have streets that only allow traditional taxis to pick up passengers.
  • timeBasedRate (type: list(GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeBasedRateProto.t), default: nil) - Describes the rate structures. Each TimeBasedRateProto defines a rate which may apply based on a particular arrival, departure or utilization time; for example, one rate might apply if arriving before 9am, and another might apply regardless of arrival or departure time.
  • vehicleType (type: String.t, default: nil) - Restrictions on which vehicle type(s) the allowance applies to. By default, the allowance applies to any vehicle types.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GeostoreParkingAllowanceProto{
  allowanceType: String.t() | nil,
  isDiscount: boolean() | nil,
  minPurchaseForValidation:
    [GoogleApi.ContentWarehouse.V1.Model.FreebaseTopic.t()] | nil,
  permitType:
    [GoogleApi.ContentWarehouse.V1.Model.GeostoreLanguageTaggedTextProto.t()]
    | nil,
  serviceType: [String.t()] | nil,
  timeBasedRate:
    [GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeBasedRateProto.t()] | nil,
  vehicleType: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.