Booking systems that allow BOTH prepayment required and prepayment unavailable
This feature must be implemented if prepayment-required and prepayment-unavailable are both implemented.
https://www.openactive.io/open-booking-api/EditorsDraft/#booking-without-payment
Coverage Status: complete
Opportunities that match the following criteria must exist in the booking system (for each configured bookableOpportunityTypesInScope
) for the configured primary Seller in order to use useRandomOpportunities: true
. Alternatively the following testOpportunityCriteria
values must be supported by the test interface of the booking system for useRandomOpportunities: false
.
TestOpportunityBookableNonFreePrepaymentRequired x1, TestOpportunityBookableNonFreePrepaymentUnavailable x1
npm start -- --runInBand test/features/payment/prepayment-required-unavailable/
Update default.json
within packages/openactive-integration-tests/config/
as follows to enable 'Implemented' testing for this feature:
"implementedFeatures": {
...
"prepayment-required-unavailable": true,
...
}
Identifier | Name | Description | Prerequisites per Opportunity Type | Required Test Interface Actions |
---|---|---|---|---|
prepayment-required-unavailable-conflict-error | Fail when required and unavailable OrderItems are mixed | For an Order that includes OrderItems with openBookingPrepayment=Required and =Unavailable, a OpportunityIsInConflictError should be emitted | TestOpportunityBookableNonFreePrepaymentRequired x1, TestOpportunityBookableNonFreePrepaymentUnavailable x1 |
Update default.json
within packages/openactive-integration-tests/config/
as follows to enable 'Not Implemented' testing for this feature:
"implementedFeatures": {
...
"prepayment-required-unavailable": false,
...
}
Identifier | Name | Description | Prerequisites per Opportunity Type | Required Test Interface Actions |
---|---|---|---|---|
prepayment-required-unavailable-not-in-use | Must be implemented if other features are | This feature must be implemented if features: 'prepayment-required' and 'prepayment-unavailable' are implemented |