Open APIs

 View Only
Expand all | Collapse all

TMF670 - Payment Methods API - subclassing parameter(s) missing for patch?

  • 1.  TMF670 - Payment Methods API - subclassing parameter(s) missing for patch?

    Posted Apr 11, 2023 04:12

    Hi John, 

    I'm designing the services post and patch within PaymentMethod_API for Mobile and came across the issues Calin mentioned in the past. 
    So, when reading the spec, I understood that all the Enum-Variables are also objects of payment that are inheritance of the payment method.
    to be able to update (partially) and create a payment method. (bank etc), it also means that a multiple inheritance of payment object types ( need to be build for PaymentMethod_Update and PaymentMethod_Create, correct? see screenshot

    Secondly, when designing  the patch, there is no parameter like @baseType, @schemaLocation, and/or at least @type within the object PaymentMethod_Update (for the request body). I assume this has been forgotten? 

    Regards,
    Erlina



    ------------------------------
    Erlina Hennies
    Deutsche Telekom AG
    ------------------------------



    ------------------------------
    Erlina Hennies
    Deutsche Telekom AG
    ------------------------------


  • 2.  RE: TMF670 - Payment Methods API - subclassing parameter(s) missing for patch?

    Posted Apr 13, 2023 03:32

    Allright, I understood the API per se, I will leave the inheritance association within my UML Diagramme (as shown in the thread and descriebed in the Spec). As for the Patch-Operation it is clear that the path determine what the API-consumer wants to patch. By adding the mandatory fields in the AccountRef and the PaymentMethod_Update (Attribute: name) they also can be more specific. Hence no adding @- Tang Qinghua I've finished my design as we always change into swagger 3.0 and will continue with our developement. Cheers!



    ------------------------------
    Erlina Hennies
    Deutsche Telekom AG
    ------------------------------