< Return to Summary | File Generated: Tue Apr 16 2024 12:03:38 GMT+0000 (Coordinated Universal Time)
Booking Flow: OpenBookingApprovalFlow
Opportunity Type: ScheduledSession
Feature: Payment / Payment reconciliation detail validation (Implemented)
Test: Payment reconciliation detail validation - incorrect reconciliation details, when payment required
B should return an InvalidPaymentDetailsError due to incorrect reconciliation data
npm start -- --runInBand test/features/payment/payment-reconciliation-detail-validation/implemented/payment-reconciliation-detail-validation-incorrect-details-test.js
The OpenActive Reference Implementation test result for this test can be used as a reference to help with debugging.
⚠️ 7 passed with 0 failures, 29 warnings and 18 suggestions
POST http://localhost:3000/test-interface/datasets/uat-ci/opportunities
{
"@type": "ScheduledSession",
"superEvent": {
"@type": "SessionSeries",
"organizer": {
"@type": "Organization",
"@id": "https://localhost:5001/api/identifiers/sellers/1"
}
},
"@context": [
"https://openactive.io/",
"https://openactive.io/test-interface"
],
"test:testOpportunityCriteria": "https://openactive.io/test-interface#TestOpportunityBookableUsingPayment",
"test:testOpenBookingFlow": "https://openactive.io/test-interface#OpenBookingApprovalFlow"
}
Response status code: 200 OK. Responded in 6.296493ms.
{
"@context": "https://openactive.io/",
"@type": "ScheduledSession",
"@id": "https://localhost:5001/api/identifiers/scheduled-sessions/1230/events/12297"
}
GET http://localhost:3000/opportunity/https%3A%2F%2Flocalhost%3A5001%2Fapi%2Fidentifiers%2Fscheduled-sessions%2F1230%2Fevents%2F12297?useCacheIfAvailable=true
Response status code: 200 OK. Responded in 4.233232ms.
{
"data": {
"@context": [
"https://openactive.io/"
],
"@type": "ScheduledSession",
"@id": "https://localhost:5001/api/identifiers/scheduled-sessions/1230/events/12297",
"startDate": "2024-04-17T13:03:46+00:00",
"endDate": "2024-04-17T13:53:46+00:00",
"superEvent": {
"@type": "SessionSeries",
"@id": "https://localhost:5001/api/identifiers/session-series/1230",
"identifier": 1230,
"name": "Steel Walking",
"activity": [
{
"@type": "Concept",
"@id": "https://openactive.io/activity-list#95092977-5a20-4d6e-b312-8fddabe71544",
"inScheme": "https://openactive.io/activity-list",
"prefLabel": "Walking"
}
],
"eventAttendanceMode": "https://schema.org/OnlineEventAttendanceMode",
"offers": [
{
"@type": "Offer",
"@id": "https://localhost:5001/api/identifiers/session-series/1230#/offers/0",
"name": "Adult",
"acceptedPaymentMethod": [
"http://purl.org/goodrelations/v1#Cash",
"http://purl.org/goodrelations/v1#PaymentMethodCreditCard"
],
"ageRestriction": {
"@type": "QuantitativeValue",
"name": "Adult",
"maxValue": 59,
"minValue": 18
},
"allowCustomerCancellationFullRefund": false,
"openBookingFlowRequirement": [
"https://openactive.io/OpenBookingApproval"
],
"price": 11.23,
"priceCurrency": "GBP"
},
{
"@type": "Offer",
"@id": "https://localhost:5001/api/identifiers/session-series/1230#/offers/0",
"name": "Adult (off-peak)",
"acceptedPaymentMethod": [
"http://purl.org/goodrelations/v1#Cash",
"http://purl.org/goodrelations/v1#PaymentMethodCreditCard"
],
"ageRestriction": {
"@type": "QuantitativeValue",
"name": "Adult (off-peak)",
"maxValue": 59,
"minValue": 18
},
"allowCustomerCancellationFullRefund": false,
"openBookingFlowRequirement": [
"https://openactive.io/OpenBookingApproval"
],
"price": 11.23,
"priceCurrency": "GBP"
}
],
"organizer": {
"@type": "Organization",
"@id": "https://localhost:5001/api/identifiers/sellers/1",
"name": "Acme Fitness Ltd",
"isOpenBookingAllowed": true,
"sameAs": [
"https://socialmedia.com/AcmeFitnessLtd"
],
"taxMode": "https://openactive.io/TaxGross",
"telephone": "05405 184713",
"termsOfService": [
{
"@type": "PrivacyPolicy",
"name": "Privacy Policy",
"requiresExplicitConsent": false,
"url": "https://example.com/privacy.html"
}
],
"url": "https://juanita.com"
},
"url": "https://www.example.com/sessions/1230"
},
"duration": "PT50M",
"maximumAttendeeCapacity": 22,
"remainingAttendeeCapacity": 22
}
}
eventStatus
is missing from ScheduledSession
.leader
is missing from ScheduledSession
.url
is missing from ScheduledSession
.description
is missing from SessionSeries
.image
is missing from SessionSeries
.ageRange
is missing from SessionSeries
.genderRestriction
is missing from SessionSeries
.leader
is missing from SessionSeries
.level
is missing from SessionSeries
.genderRestriction
is supplied on a ScheduledSession
.ageRange
is 18+ when not specified.eventStatus
is scheduled if not specified or invalid.genderRestriction
is supplied on a SessionSeries
.ageRange
is 18+ when not specified.eventStatus
is scheduled if not specified or invalid.schema:name
is declared in schema.org but this validator is not yet capable of checking whether they have the right format or values. You should refer to the schema.org documentation for schema:name for additional guidance.schema:name
is declared in schema.org but this validator is not yet capable of checking whether they have the right format or values. You should refer to the schema.org documentation for schema:name for additional guidance.PUT https://localhost:5001/api/openbooking/order-quote-templates/5d10f016-d2a0-4b18-bdb1-a65443f39bf0
"application/vnd.openactive.booking+json; version=1"
"Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkIwNEY3QjkxREUzQjk0NzhDNjE4MzNGQjI0QUE1Q0RCIiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE3MTMyNjcyMzMsImV4cCI6MTcxMzI3MDgzMywiaXNzIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6NTAwMyIsImF1ZCI6Im9wZW5ib29raW5nIiwiY2xpZW50X2lkIjoiNTk5OGNkN2EtNTBiYy00NTFjLThiYmYtNzA5MDFjZmQ5ZGU2IiwiaHR0cHM6Ly9vcGVuYWN0aXZlLmlvL2NsaWVudElkIjoiNTk5OGNkN2EtNTBiYy00NTFjLThiYmYtNzA5MDFjZmQ5ZGU2Iiwic3ViIjoiMTAwIiwiYXV0aF90aW1lIjoxNzEzMjY3MjMyLCJpZHAiOiJsb2NhbCIsImh0dHBzOi8vb3BlbmFjdGl2ZS5pby9zZWxsZXJJZCI6Imh0dHBzOi8vbG9jYWxob3N0OjUwMDEvYXBpL2lkZW50aWZpZXJzL3NlbGxlcnMvMSIsImp0aSI6IjkxRDk5MjFFNjQ1RkRFRDNGRjk1MDlGMDgxNDdEODczIiwic2lkIjoiODIzNDcwMEQ5OURBQTlBMTAxNTc2RkREMkQ3RDUxNDAiLCJpYXQiOjE3MTMyNjcyMzMsInNjb3BlIjpbIm9wZW5pZCIsIm9wZW5hY3RpdmUtb3BlbmJvb2tpbmciLCJvcGVuYWN0aXZlLWlkZW50aXR5Iiwib2ZmbGluZV9hY2Nlc3MiXSwiYW1yIjpbInB3ZCJdfQ.R83BB6ONQqCqUiTUTCHCnodiyuj8osyvoGL-grmmNeV04TCjnMdcUVHKPNmvtdkTAK0WNzyJ02P4fIR4FW86bIL1xOYQxZrqLX-8cyzkznh028-qze_te3PV4dfuIRnyVSqjT_WCLi7CO31qt6ATtxNg6Mfa6extC5epc9I8Wi5EvPhDpKOIKfRu5DPIOI9ugiWwRBQ06QdRYz3Y1tLLxCjbL8KQ9kPCHuQwlYIqk8CDZsx46lrE8sm1WHxq_Y_yEQJLGwfpuR2AsChECWSWe6EHJxyIDN140uSczmv6gta3hL43P2SeqGVpe_SU01VR55dAc-tkcXHih67vxnGkVQ"
{
"@context": "https://openactive.io/",
"@type": "OrderQuote",
"brokerRole": "https://openactive.io/AgentBroker",
"broker": {
"@type": "Organization",
"name": "MyFitnessApp",
"url": "https://myfitnessapp.example.com",
"description": "A fitness app for all the community",
"logo": {
"@type": "ImageObject",
"url": "http://data.myfitnessapp.org.uk/images/logo.png"
},
"address": {
"@type": "PostalAddress",
"streetAddress": "Alan Peacock Way",
"addressLocality": "Village East",
"addressRegion": "Middlesbrough",
"postalCode": "TS4 3AE",
"addressCountry": "GB"
}
},
"seller": "https://localhost:5001/api/identifiers/sellers/1",
"orderedItem": [
{
"@type": "OrderItem",
"position": 0,
"acceptedOffer": "https://localhost:5001/api/identifiers/session-series/1230#/offers/0",
"orderedItem": "https://localhost:5001/api/identifiers/scheduled-sessions/1230/events/12297"
}
],
"payment": {
"@type": "Payment",
"name": "invalid-g6TrLU42MM",
"accountId": "invalid-h9etD46hs",
"paymentProviderId": "invalid-7L8nezrgGm"
}
}
Response status code: 400 Bad Request. Responded in 20.532447ms.
{
"@context": "https://openactive.io/",
"@type": "InvalidPaymentDetailsError",
"name": "The 'payment' property of the 'OrderQuote' or 'Order' contains data that is not accepted by the Booking System for reconciliation, e.g. an invalid 'accountId'.",
"statusCode": 400,
"description": "Payment reconciliation details do not match"
}
instance
is missing from InvalidPaymentDetailsError
."@type": "InvalidPaymentDetailsError"
with status code 400
eventStatus
is missing from ScheduledSession
.leader
is missing from ScheduledSession
.url
is missing from ScheduledSession
.description
is missing from SessionSeries
.image
is missing from SessionSeries
.ageRange
is missing from SessionSeries
.genderRestriction
is missing from SessionSeries
.leader
is missing from SessionSeries
.level
is missing from SessionSeries
.genderRestriction
is supplied on a ScheduledSession
.ageRange
is 18+ when not specified.eventStatus
is scheduled if not specified or invalid.genderRestriction
is supplied on a SessionSeries
.ageRange
is 18+ when not specified.eventStatus
is scheduled if not specified or invalid.schema:name
is declared in schema.org but this validator is not yet capable of checking whether they have the right format or values. You should refer to the schema.org documentation for schema:name for additional guidance.schema:name
is declared in schema.org but this validator is not yet capable of checking whether they have the right format or values. You should refer to the schema.org documentation for schema:name for additional guidance.PUT https://localhost:5001/api/openbooking/order-quotes/5d10f016-d2a0-4b18-bdb1-a65443f39bf0
"application/vnd.openactive.booking+json; version=1"
"Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkIwNEY3QjkxREUzQjk0NzhDNjE4MzNGQjI0QUE1Q0RCIiwidHlwIjoiYXQrand0In0.eyJuYmYiOjE3MTMyNjcyMzMsImV4cCI6MTcxMzI3MDgzMywiaXNzIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6NTAwMyIsImF1ZCI6Im9wZW5ib29raW5nIiwiY2xpZW50X2lkIjoiNTk5OGNkN2EtNTBiYy00NTFjLThiYmYtNzA5MDFjZmQ5ZGU2IiwiaHR0cHM6Ly9vcGVuYWN0aXZlLmlvL2NsaWVudElkIjoiNTk5OGNkN2EtNTBiYy00NTFjLThiYmYtNzA5MDFjZmQ5ZGU2Iiwic3ViIjoiMTAwIiwiYXV0aF90aW1lIjoxNzEzMjY3MjMyLCJpZHAiOiJsb2NhbCIsImh0dHBzOi8vb3BlbmFjdGl2ZS5pby9zZWxsZXJJZCI6Imh0dHBzOi8vbG9jYWxob3N0OjUwMDEvYXBpL2lkZW50aWZpZXJzL3NlbGxlcnMvMSIsImp0aSI6IjkxRDk5MjFFNjQ1RkRFRDNGRjk1MDlGMDgxNDdEODczIiwic2lkIjoiODIzNDcwMEQ5OURBQTlBMTAxNTc2RkREMkQ3RDUxNDAiLCJpYXQiOjE3MTMyNjcyMzMsInNjb3BlIjpbIm9wZW5pZCIsIm9wZW5hY3RpdmUtb3BlbmJvb2tpbmciLCJvcGVuYWN0aXZlLWlkZW50aXR5Iiwib2ZmbGluZV9hY2Nlc3MiXSwiYW1yIjpbInB3ZCJdfQ.R83BB6ONQqCqUiTUTCHCnodiyuj8osyvoGL-grmmNeV04TCjnMdcUVHKPNmvtdkTAK0WNzyJ02P4fIR4FW86bIL1xOYQxZrqLX-8cyzkznh028-qze_te3PV4dfuIRnyVSqjT_WCLi7CO31qt6ATtxNg6Mfa6extC5epc9I8Wi5EvPhDpKOIKfRu5DPIOI9ugiWwRBQ06QdRYz3Y1tLLxCjbL8KQ9kPCHuQwlYIqk8CDZsx46lrE8sm1WHxq_Y_yEQJLGwfpuR2AsChECWSWe6EHJxyIDN140uSczmv6gta3hL43P2SeqGVpe_SU01VR55dAc-tkcXHih67vxnGkVQ"
{
"@context": "https://openactive.io/",
"@type": "OrderQuote",
"brokerRole": "https://openactive.io/AgentBroker",
"broker": {
"@type": "Organization",
"name": "MyFitnessApp",
"url": "https://myfitnessapp.example.com",
"description": "A fitness app for all the community",
"logo": {
"@type": "ImageObject",
"url": "http://data.myfitnessapp.org.uk/images/logo.png"
},
"address": {
"@type": "PostalAddress",
"streetAddress": "Alan Peacock Way",
"addressLocality": "Village East",
"addressRegion": "Middlesbrough",
"postalCode": "TS4 3AE",
"addressCountry": "GB"
}
},
"seller": "https://localhost:5001/api/identifiers/sellers/1",
"customer": {
"@type": "Person",
"email": "[email protected]",
"identifier": "95b58151-1c8e-48fe-815d-a2ca0a78407b"
},
"orderedItem": [
{
"@type": "OrderItem",
"position": 0,
"acceptedOffer": "https://localhost:5001/api/identifiers/session-series/1230#/offers/0",
"orderedItem": "https://localhost:5001/api/identifiers/scheduled-sessions/1230/events/12297"
}
],
"payment": {
"@type": "Payment",
"name": "invalid-nYmFSqmuOj",
"accountId": "invalid-wxTxCekaJ",
"paymentProviderId": "invalid-th0K-PCK0n"
}
}
Response status code: 400 Bad Request. Responded in 18.441407ms.
{
"@context": "https://openactive.io/",
"@type": "InvalidPaymentDetailsError",
"name": "The 'payment' property of the 'OrderQuote' or 'Order' contains data that is not accepted by the Booking System for reconciliation, e.g. an invalid 'accountId'.",
"statusCode": 400,
"description": "Payment reconciliation details do not match"
}
instance
is missing from InvalidPaymentDetailsError
."@type": "InvalidPaymentDetailsError"
with status code 400
eventStatus
is missing from ScheduledSession
.leader
is missing from ScheduledSession
.url
is missing from ScheduledSession
.description
is missing from SessionSeries
.image
is missing from SessionSeries
.ageRange
is missing from SessionSeries
.genderRestriction
is missing from SessionSeries
.leader
is missing from SessionSeries
.level
is missing from SessionSeries
.genderRestriction
is supplied on a ScheduledSession
.ageRange
is 18+ when not specified.eventStatus
is scheduled if not specified or invalid.genderRestriction
is supplied on a SessionSeries
.ageRange
is 18+ when not specified.eventStatus
is scheduled if not specified or invalid.schema:name
is declared in schema.org but this validator is not yet capable of checking whether they have the right format or values. You should refer to the schema.org documentation for schema:name for additional guidance.schema:name
is declared in schema.org but this validator is not yet capable of checking whether they have the right format or values. You should refer to the schema.org documentation for schema:name for additional guidance.