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

A rate which applies based on the precise times of utilization. Defines a rate, as well as restrictions on the start and end times which must be satisfied in order to be eligible for the rate. See go/rate-schema for more details.

Attributes

  • durationBasedRate (type: list(GoogleApi.ContentWarehouse.V1.Model.GeostoreDurationBasedRateProto.t), default: nil) - The rates for this rule. Each duration_based_rate defines the costs associated with a particular duration of a stay. There must be at least one rate with range_start_seconds set to 0 and there cannot be gaps between durations (i.e. there should be no interval uncovered between 0 and the largest range_end_seconds of any duration-based rate).
  • taxIncluded (type: boolean(), default: nil) - If true, tax is included in the prices in this rate. If false, additional taxes may apply.
  • validEndWithin (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t, default: nil) -
  • validStartWithin (type: GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t, default: nil) - Time period during which utilization of this rate must start in order to be eligible for the rate. If not set, there is no restriction on the time when the utilization starts.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeBasedRateProto{
  durationBasedRate:
    [GoogleApi.ContentWarehouse.V1.Model.GeostoreDurationBasedRateProto.t()]
    | nil,
  taxIncluded: boolean() | nil,
  validEndWithin:
    GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t() | nil,
  validStartWithin:
    GoogleApi.ContentWarehouse.V1.Model.GeostoreTimeScheduleProto.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.