Hello community,
TMF622, TMF641, TMF652: When an Order is received with requestedStartDate in the future, it should be deferred to the requested time.
The Order requester should receive normal 201 (Created).
Question 1:
Which state should be used for deferred Orders?
The "acknowledged" state can't help to separate deferred Orders for a special report.
The "pending" state looks the most suitable, but is described as "... used when an order is currently in a waiting stage for an action/activity to be completed before the order can progress further".
If "pending" is the correct answer, then description should probably be updated in all 3 APIs.
Or maybe a new "scheduled" or "deferred" state would be more appropriate here.
Question 2:
In case if the correct state is "Pending", which state should be returned to requester in synchronous 201 (Created) response?
a. "pending"
b. "acknowledged" and then orderStateChange notification with "pending"
Question 3:
What if a delayed Order has been scheduled for a long time, and when the time has come, the Order can no longer be processed due to some changes (inventory, catalog, relatedParty, etc.)? Should this order be "failed" without any additional information? I mean, 'orderStateChange' notification can't help with the details.
Question 4:
Is this attribute expected on order items in further updates after this and this discussions?
------------------------------
Igor Veliev
Netcracker Technology
------------------------------