Split up ContractOffer
object
#1071
Replies: 3 comments 2 replies
-
Completely agree on separating the object for two different contexts. I have a question about the "customPolicy": it will have an id? Would it be the same as |
Beta Was this translation helpful? Give feedback.
-
I think it should be a conventional |
Beta Was this translation helpful? Give feedback.
-
From an ODRL/IDS perspective, splitting it up is a bit of a tricky thing to do. During the negotiation, the serialised object will be of type |
Beta Was this translation helpful? Give feedback.
-
Problem description
Currently, the
ContractOffer
fulfills two separate purposes:Those two situations have different requirements, for example for the initial data offer the entire
Asset
needs to be sent to the consumer, whereas during negotiation it is sufficient to carry theassetId
. Similarly, it might be sufficient during negotiation to carry just thepolicyId
instead of the entirePolicy
.Proposed solution
ContractOffer
: limit the use to the initial offer to consumers. Possibly removecontractStart
andcontractEnd
, since no contract is yet in effect.ContractOfferRequest
toContractNegotiationRequest
ContractOfferDescriptor
(working title), which is contained in theContractNegotiationRequest
:Open Questions:
In case the consumer wants to send back a custom policy, should we send back a full
ContractOffer
instead of the-Descriptor
?policy
field and having a sparsely populated-Descriptor
ContractNegotiationRequest
and the handlers to be able to handle both types, possibly through object inheritance. I.e.ContractOffer
andContractOfferDescriptor
could have a common base class.Beta Was this translation helpful? Give feedback.
All reactions