Open APIs

 View Only
  • 1.  TMF637 Product Inventory Management - ProductTerm constraints

    TM Forum Member
    Posted Apr 29, 2020 08:52
    Hi,

    I have some questions regarding the constraints that have been set for ProductTerm sub-resource.

    According to TMF637 Product Inventory Management API REST Specification Release 19.0.0 the ProductTerm sub-resource has among others these two fields:
    • duration - A quantity (Quantity). Duration of the productTerm.
    • name - A string. Name of the productTerm.
    The Product Inventory Management API Conformance Profile Release 19.0.0 gives the following constraints on the two fields:
    • duration - Mandatory if name not provided
    • name - Mandatory if duration not provided
    We would like to understand why are there such constraints in place and what is the actual idea behind the "name" field - what should it containt?
    How can the "name" field replace the machine-readable "duration"​ field in real-world scenarios?

    Thanks in advance!

    ------------------------------
    Indrek Rajamets
    Telia Eesti AS
    ------------------------------


  • 2.  RE: TMF637 Product Inventory Management - ProductTerm constraints

    TM Forum Member
    Posted Apr 30, 2020 03:30
    Hello Indrek,
    The idea is to make sure to have at least one information filled when a term is specified. When the information is duration this is straightforward (12 months). When you use name then, for me, this is a reference to product catalog information. Indeed, if you look to product offering resource you have there link to productOfferringTerm(s) and each one has a name & additional information like duration.

    Hope it helps

    Ludovic

    ------------------------------
    Ludovic Robert
    Orange
    My answer are my own & don't represent necessarily my company or the TMF
    ------------------------------