Open APIs

Expand all | Collapse all

TMF644: how to build a reference to Shopping Cart/Product Order?

  • 1.  TMF644: how to build a reference to Shopping Cart/Product Order?

    Posted Sep 18, 2020 07:40
    Hi,

    I am currently working on designing the flow for collecting customer consents (i.e. marketing) during sales process (checkout).

    I assume TMF644 is designed for this use case, where (if I understand correctly):
    • PartyPrivacyProfileSpecification is kind of consent template
    • PartyPrivacyProfile should be used to reflect/save customer decisions (so called statement of will)

    What bothers me: if and how I should build a relation between Shopping Cart/Product Order and PartyPrivacyProfile?
    I believe such a reference is required to know during which sales process (cart/order) customer accepted or denied specific consents.

    I did not find any reference to PartyPrivacyProfile in both TMF663 and TMF622.

    Are there any TMF Community recommendations on this?

    ------------------------------
    Piotr Kulasek-Szwed
    Hycom S.A.
    ------------------------------


  • 2.  RE: TMF644: how to build a reference to Shopping Cart/Product Order?

    TM Forum Member
    Posted Sep 18, 2020 10:58
    Hello Piotr,
    This is relevant point and we add internally in the TMF API team some discussion on exactly this topic with @Jacob Avraham (who is leading the Privacy API & shoppingCart API).

    My view on this... probably there are already some existing assets:
    • You can associate the PartyPrivacyProfile with a PartyPrivacyAgreement (A specific type of agreement that formalizes the privacy profiles requested for a party);
    • This PartyPrivacyAgreement  is an Agreement specialization
    • ProductOrder could be associted with an agreement so you can leverage this existing relationship to specify from your productOrder the PartyPrivacyAgreement 
    • ProductRefOrValue structure in productOrder(item) has also a link to agreement/agreementItem - so same - you can leverage this as well.

    This is more food for thought than recommendation. I let also my friend @Jacob Avraham add his view because we have not yet complety discussed this topic.

    Hope it helps
    ​​

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



  • 3.  RE: TMF644: how to build a reference to Shopping Cart/Product Order?

    TM Forum Member
    Posted Sep 21, 2020 10:49
    Edited by Tomasz Janyska Sep 21, 2020 11:01
    Thanks Ludovic.

    As for TMF622 and use of Agreement - I have to say I considered it exactly the same way.
    However TMF663 does not define AgreementRef on ShoppingCart level.

    In general I would expect some consistency between TMF622 and TMF633, so first thought was to extend TMF663 with AgreementRef on ShoppingCart level.
    However I noticed there are more differences like that, ie BillingAccount. So maybe there is some higher level idea here? Maybe I should not leverage ShoppingCart API to the very end of Checkout?

    Best regards,
    Tomasz


    ------------------------------
    Tomasz Janyska
    Deutsche Telekom AG
    ------------------------------



  • 4.  RE: TMF644: how to build a reference to Shopping Cart/Product Order?

    TM Forum Member
    Posted 30 days ago
    Hi Tomasz,

    Probably @Jacob Avrahamis better place as shoppingCart API leader. Nevertheless I recommend you to take a look on TMF663 specification document (user guide) - sample use cases part. Indeed you'll see that ShoppingCart only cover the first part of  ​the Order Capture and then an order should be generated for order completion (address, payment, etc..).

    This is my understanding why 663 only cover a subset of 622.

    Hope it helps

    Ludovic

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



  • 5.  RE: TMF644: how to build a reference to Shopping Cart/Product Order?

    Posted 23 days ago
    Edited by Piotr Kulasek-Szwed 22 days ago
    Hi Ludovic,
    thanks for answering PartyPrivacyProfile related question - I also considered using of PartyPrivacyAgreement as an Agreement specification to build reference between Product Order <-> Privacy. Is there any way to follow outputs of TM API team internal discussion you have mentioned?

    What I also did was to extend Shopping Cart API in the same way and I would like to focus a bit on this part as I also struggle with understanding of TMF663 vs TMF622 responsibility (maybe we should move to dedicated thread?).

    So, the sample use case in TMF663 seems to make sense but it is also very straightforward. however customer may behave in various ways, particularly:
    1. he may jump out in the middle of the checkout, modify the cart and go back to the checkout.
    2. during checkout customer:
    2a. agrees/denies some (ie green bill, marketing, etc) consent (partyPrivacyProfileSpecification) which results in adding/removing some discount product offering
    2b. chooses different delivery methods and additional delivery services - here the assumption is both are modeled as productOfferings (please let me know if it is very improper way).

    So as long as billing, party, agreement related stuff is clear for me and I understand it should be on Product Ordering API, then I am not quite sure how to handle continuously changing set of cartItems/productOrderItems synchronized.
    Do you have any recommendations on this?

    Thanks in advance for your help,
    Piotr



    ------------------------------
    Piotr Kulasek-Szwed
    TO BE VERIFIED
    ------------------------------