I want to use the Rejected State with an add-on based on a specific condition. I'm not able to do it and I'm forced to wait for the State Submitted and then Cancel the order. Looking at the accounts tab and the properties in the account I found few settings like max position size and were grateful surprised that I get the behavior that I'm trying to do. When max position size is 2 and I use more than 2, I get in the log the rejected state. Doesn't matter if I try it in the DOM, with a strategy, always is the same result. This is the result I get and want to copy:
Any example of how to accomplish this with an add-on?
Thank you so much
Comment