Skip to content

Latest commit

 

History

History
59 lines (37 loc) · 3.02 KB

File metadata and controls

59 lines (37 loc) · 3.02 KB

< Return to Overview

prepayment required and unavailable (prepayment-required-unavailable)

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

Test prerequisites - Opportunities

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

Running tests for only this feature

npm start -- --runInBand test/features/payment/prepayment-required-unavailable/

'Implemented' tests

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

'Not Implemented' tests

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