Apple: Improved Handling of Subscription Upgrades and Refunds

We've updated our Apple integration to ensure that your subscription states are accurately recorded, even when upgrades and refunds occur simultaneously. Now, if an upgraded subscription and a refunded one share the same timestamp, we'll prioritize the upgraded subscription to prevent it from being mistakenly canceled.

This change addresses issues where refunds incorrectly cancelled upgraded subscriptions, providing our users a more reliable subscription state history.