google_api_content v0.13.0 GoogleApi.Content.V2.Model.Service View Source

Attributes

  • active (type: boolean(), default: nil) - A boolean exposing the active status of the shipping service. Required.
  • currency (type: String.t, default: nil) - The CLDR code of the currency to which this service applies. Must match that of the prices in rate groups.
  • deliveryCountry (type: String.t, default: nil) - The CLDR territory code of the country to which the service applies. Required.
  • deliveryTime (type: GoogleApi.Content.V2.Model.DeliveryTime.t, default: nil) - Time spent in various aspects from order to the delivery of the product. Required.
  • eligibility (type: String.t, default: nil) - Eligibility for this service.
  • minimumOrderValue (type: GoogleApi.Content.V2.Model.Price.t, default: nil) - Minimum order value for this service. If set, indicates that customers will have to spend at least this amount. All prices within a service must have the same currency.
  • name (type: String.t, default: nil) - Free-form name of the service. Must be unique within target account. Required.
  • rateGroups (type: list(GoogleApi.Content.V2.Model.RateGroup.t), default: nil) - Shipping rate group definitions. Only the last one is allowed to have an empty applicableShippingLabels, which means "everything else". The other applicableShippingLabels must not overlap.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.Content.V2.Model.Service{
  active: boolean(),
  currency: String.t(),
  deliveryCountry: String.t(),
  deliveryTime: GoogleApi.Content.V2.Model.DeliveryTime.t(),
  eligibility: String.t(),
  minimumOrderValue: GoogleApi.Content.V2.Model.Price.t(),
  name: String.t(),
  rateGroups: [GoogleApi.Content.V2.Model.RateGroup.t()]
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.