Closed sgerhardt-trilobyte closed 3 years ago
Reference: Unique reference for both partners -> referenceId (available) - if draft -> referenceId = null or empty ???
this will always be "available" as webapp currently does not support DRAFT mode. Its sent immediately when a "contract" is being created. as we keep debating. "referenceId" technically is a "binding hash" that only exist when an "exchange" happens. Logically don't exist if you have not exchange it, ie in DRAFT mode.
will try to full fill the "rest" requirements.
as we keep debating. "referenceId" technically is a "binding hash" that only exist when an "exchange" happens. Logically don't exist if you have not exchange it, ie in DRAFT mode.
The referenceId is just an arbitrary random number. Think of it as a preshared secret key among two parties. Therefor referenceId is not a hash which is calculated across some given input.
lets not go through this argument again. we been through this.
Response at the moment:
GET /api/v1/contracts/
Fields requested by commercial team (UI table -> show all existing contracts)
Table cols:
Reference: Unique reference for both partners -> referenceId (available) - if draft -> referenceId = null or empty ???
Internal reference: Reference of the agreement ID from the contract management tool -> contractId (available)
Partner -> header.msps (see https://github.com/GSMA-CPAS/BWRP/wiki/Document-Structure) -> ui knows which msp is partner
Name of the contract -> body.metadata.name
Authors: User reference of the editor of the discounting agreement -> body.metadata.authors
Last Update: Date of the last change -> lastModificationDate (available)
Start Date: Date when the contract becomes active -> body.framework.term.start
End Date: Date until when the contract is active -> body.framework.term.end
Status: Current status of the contract -> state (available)
TADIG codes (needed for search) -> body.framework.partyInformation
Current contract JSON structure https://github.com/GSMA-CPAS/BWRP/wiki/Contract-JSON-Model (last grey box)