cozy / cozy-stack

Simple, Versatile, Yours
https://docs.cozy.io/en/cozy-stack/
GNU Affero General Public License v3.0
1.11k stars 137 forks source link

feat: Add subscription vendor to external ties #4363

Closed taratatach closed 3 months ago

taratatach commented 3 months ago

When a blocking subscription exists (e.g. an In-App-Purchase subscription), we want to know which vendor was used to buy it so we can display this information in the UI (instead of listing all possible vendors which can irritate some of them like Apple).

Since we start returning more information about the blocking subscription we'll return it as an object in the blocking_subscription field of the external ties JSON response. We could then remove the has_blocking_subscription field once apps using this route rely solely on the new field.