I have been struggling to decide if this https://community.playfab.com/questions/6271/stackable-consumable-by-time.html covers what I am looking for. It also references work that was underway at the time so I sm not sure if there is an easier option now.
What I am looking for, in terms of player experience, is a chained powerup. If a player buys a one-hour powerup they will have the power for an hour. If the player buys a bundle of 3 one hour power-ups the power will be active for 3 hours. It should activate on purchase. And one powerup should start as soon as the previous one expires. (It's kind of a stacked timed consumable.)
I have some test code another developer wrote. It is not what I want. It uses containers to start one-hour powerups and you can't buy a new powerup until the last one runs out. And the player needs to start the powerup after buying it rather than it auto-starting on purchase. I have been messing with the code and have it closer but it feels like I am missing something easier.