GoogleApi.Content.V2.Model.Service (google_api_content v0.58.1) 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. Acceptable values are: - "All scenarios" - "All scenarios except Shopping Actions" - "Shopping Actions"
  • 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. Cannot be set together with minimum_order_value_table.
  • minimumOrderValueTable (type: GoogleApi.Content.V2.Model.MinimumOrderValueTable.t, default: nil) - Table of per store minimum order values for the pickup fulfillment type. Cannot be set together with minimum_order_value.
  • name (type: String.t, default: nil) - Free-form name of the service. Must be unique within target account. Required.
  • pickupService (type: GoogleApi.Content.V2.Model.PickupCarrierService.t, default: nil) - The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved via the getSupportedPickupServices method. Required if and only if the service delivery type is pickup.
  • 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.
  • shipmentType (type: String.t, default: nil) - Type of locations this service ships orders to. Acceptable values are: - "delivery" - "pickup"

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Content.V2.Model.Service{
  active: boolean() | nil,
  currency: String.t() | nil,
  deliveryCountry: String.t() | nil,
  deliveryTime: GoogleApi.Content.V2.Model.DeliveryTime.t() | nil,
  eligibility: String.t() | nil,
  minimumOrderValue: GoogleApi.Content.V2.Model.Price.t() | nil,
  minimumOrderValueTable:
    GoogleApi.Content.V2.Model.MinimumOrderValueTable.t() | nil,
  name: String.t() | nil,
  pickupService: GoogleApi.Content.V2.Model.PickupCarrierService.t() | nil,
  rateGroups: [GoogleApi.Content.V2.Model.RateGroup.t()] | nil,
  shipmentType: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.