Skip to content

Primary Offer #116

@nickevansuk

Description

@nickevansuk

Proposer

EMD

Use Case

Where multiple Offers are available for an Event, which price should be used to advertise the activity in a summary view (e.g. when only one price can be displayed)

Why is this not covered by existing properties?

Offers do not make it clear which offer is the primary offer, so the primary price to use for display is non-trivial to select.

Please provide a link to example data

"offers": [
  {
    "type": "Offer",
    "identifier": "OX-AD",
    "name": "Oxygen - Adult",
    "description": "Fitness Ride",
    "price": 5.2,
    "priceCurrency": "GBP",
    "genderRestriction": "http://openactive.io/ns#None"
  },
  {
    "type": "Offer",
    "identifier": "OX-JNR",
    "name": "Oxygen - Junior",
    "description": "Fitness Ride",
    "price": 4.2,
    "priceCurrency": "GBP",
    "ageRange": {
      "type": "QuantitativeValue",
      "minValue": 50
    },
    "genderRestriction": "http://openactive.io/ns#None"
  }
]

Investigation

Although there is an AggregateOffer type available, it does not provide additional information about a "primary" offer, unless it included in a repurposed price property, as below.

"offers": {
  "type": "AggregateOffer",
  "highPrice": 5.2,
  "price": 5.2, /* display price is here, based on the target age group of the activity */
  "lowPrice": 4.2,
  "priceCurrency": "GBP",
  "offerCount": 2,
  "offers": [
    {
      "type": "Offer",
      "identifier": "OX-AD",
      "name": "Oxygen - Adult",
      "description": "Fitness Ride",
      "price": 5.2,
      "priceCurrency": "GBP"
    },
    {
      "type": "Offer",
      "identifier": "OX-JNR",
      "name": "Oxygen - Junior",
      "description": "Fitness Ride",
      "price": 4.2,
      "priceCurrency": "GBP",
      "ageRange": {
        "type": "QuantitativeValue",
        "minValue": 50
      }
    }
  ]
}

Further investigation is required

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionGeneral discussion question, not yet a formal proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions