WICG / digital-goods

Other
50 stars 28 forks source link

Consider making ItemDetails.type extensible #49

Open benjycui opened 1 year ago

benjycui commented 1 year ago

ItemDetails.type only supports two values, e.g. "product" and "subscription".

enum ItemType {
  "product",
  "subscription",
};

What if a store provides more types of digital products? In Microsoft Store, there are five types of products.

So, do you think that it is possible to make ItemDetails.type extensible?

rsolomakhin commented 1 year ago

Yes, that sounds reasonable. Please go ahead and implement the ItemType enums that you need. We can add them to the spec at that point.