-
Story
-
Resolution: Done
-
Normal
-
None
-
None
The approach:
- Create a method named upsertPartnerContract with params (PartnerEntitlementContract, PartnerEntitlements, subscriptionId) that performs current upsert logic. Logic should be refactored from ContractService.createPartnerContract
- Update createPartnerContract to:
- fetch PartnerEntitlements from the API - refactor from collectMissingUpStreamContractDetails
- fetch subscriptionId
- delegate to the upsertPartnerContract method.
- Update createContract to take all of the necessary information in as a single parameter object, and then delegate to createPartnerContract.
- openapi updates needed: create a JSON schema in the openapi spec with fields for the partner contract, the partnerentitlements (new - extract spec from partner api spec), and the subscriptionId.
- This will require updates to QE tools.
Once this is done, the createContract REST method will exercise the same logic as UMB contract ingestion, except createContract will provide data that is otherwise fetched from APIs when receiving a UMB message. Calling createContract should not result in any API calls.
- is blocked by
-
SWATCH-2226 ContractService.syncContractByOrgId does not operate on contracts not yet in swatch DB
- Closed