Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: asset product info type #1310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

christopher-buss
Copy link
Contributor

If an item is currently not on sale, then the product type will not necessarily exist. "Collectible Item" is also a valid type for assets.

image

image

@@ -190,7 +190,7 @@ interface ProductInfo {

interface AssetProductInfo extends ProductInfo {
/** Describes whether the asset is a User Product, Developer Product, or Game Pass */
ProductType: "User Product";
ProductType?: "Collectible Item" | "User Product";
Copy link
Contributor

@Dionysusnu Dionysusnu Oct 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right way to change the type? Looking at your screenshot, Collectible Item has a handful of other fields, like CanBeSoldInThisGame, CollectibleItemId and SaleLocation. (Though perhaps the first and last of those exist for other asset types too?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants