Hi Saurabh
I'm not sure I fully understand the issue. We have a number of compound data types in the Open API model (these are not sub-resources), such as Money, Duration, TimePeriod, Quanity, and more, to cover data type gaps in the JSON Schema standard.
In ProductTerm (and ProductOfferingTerm at catalog), if the commitment term is a length in time, we want to express the length of time by giving the amount and the units, hence the Duration type. For example; for a term of 2 years, the amount would be
2 and the units would be
years.
Hope it helps
------------------------------
Jonathan Goldberg
Amdocs Management Limited
Any opinions and statements made by me on this forum are purely personal, and do not necessarily reflect the position of the TM Forum or my employer.
------------------------------
Original Message:
Sent: Aug 29, 2022 05:50
From: Saurabh Joshi
Subject: Query regarding TMF637
In Product Inventory Management API -
a. `Quantity` is specified as a sub resource having fields - amount and unit
b. the same quantity is referenced in `ProductTerm` sub-resource
What confuses me is -
` ProductTerm` sub-resource has a field `duration` and description for `duration` is `A quantity (Quantity). Duration of the productTerm.`
Here, how will I be able to reference the `Quantity` in ` ProductTerm` as `Quantity` is having information about `amount` and `unit`? Can you please elaborate?
------------------------------
Saurabh Joshi
TIBCO Software Inc.
------------------------------