mycloudnexus / kraken

Kraken Platform
Apache License 2.0
4 stars 1 forks source link

[BUG] eline add order - value check for productOrderItem[0].product.productRelationship[0].relationshipType #40

Open cheng0504 opened 3 hours ago

cheng0504 commented 3 hours ago

the following 2 parameters don't have value check: productOrderItem[0].product.productRelationship[0].relationshipType == CONNECTS_TO_ENNI -- | -- productOrderItem[0].product.productRelationship[1].relationshipType == CONNECTS_TO_UNI

image

Expected result: need to add value check for productRelationship[*].relationshipType

cheng0504 commented 3 hours ago

pay load

curl --location 'https://api.consoleconnect.com/Sonata/staging/mefApi/sonata/productOrderingManagement/v10/productOrder?buyerId=qe1company' \ --header 'Content-Type: application/json' \ --header 'Cookie: plb=7f8597cbdd145f9e; plb=7f8597cbdd145f9e' \ --data-raw '{ "note": [], "relatedContactInformation": [ { "number": "111 222 333", "emailAddress": "productOrderContact@mef.com", "role": "productOrderContact", "postalAddress": null, "organization": "MEF", "name": "Joe Order", "numberExtension": null } ], "externalId": "AEL[9301] General On-net Order ", "projectId": "MEF OIT", "productOrderItem": [ { "relatedBuyerPON": null, "note": [], "product": { "productOffering": { "href": null, "id": "ACCESS_E_LINE" }, "productConfiguration": { "@type": "ACCESS_E_LINE", "bandwidth": 1, "bandwidthUnit": "MBPS", "classOfService": "SILVER", "paymentType": "invoice", "name": "Qe 1 Company Connection 0904", "buyerCompanyId": "qe1company", "destUNIMetroId": "5db65dcf5d545c000bc6884b", "type": "LAYER2" }, "productRelationship": [ { "relationshipType": "CONNECTS_TO_ENNI0", "id": "6371e5fa2fb2fa00155a3535", "href": null }, { "relationshipType": "CONNECTS_TO_UNI1", "id": "63634cbf11ffdd00151fc6fb", "href": null } ], "id": null, "href": null, "place": [] }, "relatedContactInformation": [ { "number": "+12-345-678-90", "emailAddress": "Buyer.ProductOrderItemContact@mef.com", "role": "buyerProductOrderItemContact", "postalAddress": null, "organization": null, "name": "Buyer Product Order Item Contact", "numberExtension": null }, { "number": "+12-345-678-90", "emailAddress": "Buyer.ImplementationContact@mef.com", "role": "buyerImplementationContact", "postalAddress": null, "organization": null, "name": "Buyer Implementation Contact", "numberExtension": null }, { "number": "+12-345-678-90", "emailAddress": "Buyer.TechnicalContact@mef.com", "role": "buyerTechnicalContact", "postalAddress": null, "organization": null, "name": "Buyer Technical Contact ", "numberExtension": null } ], "requestedItemTerm": { "name": "ELine Item Term", "duration": { "amount": 1, "units": "calendarMonths" }, "endOfTermAction": "roll", "rollInterval": { "amount": 1, "units": "calendarMonths" } }, "billingAccount": { "id": "001" },

        "tspRestorationPriority": null,
        "productOfferingQualificationItem": {
            "productOfferingQualificationId": "",
            "alternateProductProposalId": null,
            "productOfferingQualificationHref": null,
            "id": "ELINE"
        },
        "coordinatedAction": [],
        "action": "add",
        "quoteItem": {
            "quoteHref": null,
            "id": "ELINE",
            "quoteId": "fefc66b7-cfc4-426d-a55a-d05c41b82acf"
        },
        "endCustomerName": null,
        "expediteIndicator": false,
        "id": "ELINE",
        "requestedCompletionDate": "2121-11-30T23:00:00Z"
    }
]

}'