@openactive/data-models
Version:
Data models used to drive that OpenActive validator, developer documentation, and model libraries
86 lines • 1.83 kB
JSON
{
"type": "OfferOverride",
"subClassOf": "#Offer",
"hasId": true,
"sampleId": "https://api.example.com/session-series/12345#/offers/2",
"validationMode": {
"C1Request": "request",
"C1Response": "response",
"C1ResponseOrderItemError": "response",
"C2Request": "request",
"C2Response": "response",
"C2ResponseOrderItemError": "response",
"PRequest": "request",
"PResponse": "response",
"PResponseOrderItemError": "response",
"BRequest": "request",
"BResponse": "response",
"BResponseOrderItemError": "response",
"OrderProposalPatch": "request",
"OrderPatch": "request",
"OrdersFeed": "response",
"OrderProposalsFeed": "response",
"OrderStatus": "response"
},
"imperativeConfiguration": {
"request": {
"requiredFields": [
"id",
"type",
"price"
],
"recommendedFields": [
"name"
]
},
"response": {
"requiredFields": [
"id",
"type",
"price"
],
"recommendedFields": [
"name"
]
}
},
"inSpec": [
"id",
"type",
"price",
"priceCurrency",
"name",
"ageRange",
"ageRestriction",
"openBookingInAdvance",
"acceptedPaymentMethod",
"openBookingPrepayment",
"validFromBeforeStartDate",
"validThroughBeforeStartDate",
"latestCancellationBeforeStartDate",
"allowCustomerCancellationFullRefund",
"openBookingFlowRequirement",
"identifier",
"description",
"url",
"eligibleEntitlementType"
],
"notInSpec": [
"openBookingInAdvance",
"openBookingPrepayment",
"ageRange",
"ageRestriction",
"validFromBeforeStartDate",
"validThroughBeforeStartDate",
"latestCancellationBeforeStartDate",
"allowCustomerCancellationFullRefund",
"eligibleEntitlementType"
],
"fields": {
"type": {
"fieldName": "type",
"requiredType": "https://schema.org/Text",
"requiredContent": "OfferOverride"
}
}
}