How to apply different free trials for different subscriptions in the same order – Stripe

Let’s say I have 2 items in the order, and both items are subscriptions. I want to give free trial for both subscriptions, but the period of free trial should be different for each subscription.

After checking the docs, I was able to set free trial to the whole order by specifying subscription_data.trial_period_days property on the order itself. But that will apply the same free trial to all subscriptions. I want to give a different free trial period to each subscription.