The title is a bit wordy but the issue I am facing is as follows:
I have a number of bundles available in a store. A bundle could consist of multiple different types of items.
Currently the PurchaseInventoryItems api accepts a 'NewStackValues', but theres no way to create the proper stack values for each individual item.
I could do this using execute operations on each discrete item in the bundle, but i wanted to use purchaseItem for a number of reasons.
So that this is tracked as a purchase, and I can use the same code for virtual and real money purchases and the tracking would be consistent.
Prevent from having to split the executions if the number of operations exceeds the limits, and having to rollback partial transactions if something fails.
Significantly reduce the amount of calls I need to make per-purchase, as I dont need to validate each item independently. <- this one is largely use-case specific.
Whats the best approach here?