Open APIs

Expand all | Collapse all

Why ContactMedium & MediumCharacteristic are different entities?

  • 1.  Why ContactMedium & MediumCharacteristic are different entities?

    TM Forum Member
    Posted Nov 05, 2018 02:41
    Hi All,

    My question is about TMF669: Party Role Management REST API.

    I wonder why the ContactMedium and MediumCharacteristic are two different entities? Wouldn't it be better if these two merge?

    Here is the evidences for this;

    - There is a one-to-one relation between these two (of course this is -alone- not enough for merging).
    - These two represents the same thing.
    - Even the explanation of "type" field in both entities are the same.
    - I could not find a situation that I will need only the information in ContactMedium.

    Thanks for the replies.

    Regards,
    Ali

    ------------------------------
    Ali Celikcekic
    Innova Bilisim Cozumleri
    ------------------------------


  • 2.  RE: Why ContactMedium & MediumCharacteristic are different entities?

    TM Forum Member
    Posted Dec 05, 2018 18:45
    Hi Ali, my 2 cents here is that, the type of contact medium might define which characteristics should be available. I can say this since other implementations that I've done.

    Br

    ------------------------------
    FABIAN QUINTERO
    Qvantel Oy
    ------------------------------



  • 3.  RE: Why ContactMedium & MediumCharacteristic are different entities?

    TM Forum Member
    Posted Jan 31, 2019 10:19
    There are two primary reasons for the different entities.
    1. Separate phone numbers, e-mail addresses, and postal addresses.
    2. Allow the definition of a preferred medium for each type, since there's a 0..* relationship.
    Allowing the developer to present different required fields, defined by type.  Otherwise, you may have to enter phone and postal information to add a second emailAddress.

    ------------------------------
    Brian LaVallee
    INVITE Communications Co. Ltd
    ------------------------------



  • 4.  RE: Why ContactMedium & MediumCharacteristic are different entities?

    TM Forum Member
    Posted Feb 04, 2019 07:52
    Hi Guys,

    Thanks for your kind responses. I totally understand what you mean. But I still insist on my comment since there is a zero-to-one or one-to-one relation and we can use the "type" property in ContactMedium (we don't need a seperate one in MediumCharacteristic).

    Anyway, this is not a big deal :)

    Have a nice day...

    ------------------------------
    Ali C.
    Senior Solution Architect, Turkey
    ------------------------------