v0.13.8

C_CatalogShop

namespaceavailable in: camelot

Status in wowlua

38 functions: 0 implemented, 3 recorded, 35 guessed. 18 events, 0 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
BulkPurchaseProductsBuys several shop products at once and returns whether the purchase started. · by wowlua
(productIDs: number[]): boolean
guessed
BulkRefundDecorsRefunds several housing decor items bought in the shop. · by wowlua
(decorGUIDs: string[])
guessed
CloseCatalogShopInteractionCloses the in-game shop. · by wowlua
()
guessed
ConfirmHousingPurchaseConfirms the purchase of housing products. · by wowlua
(productIDs: number[])
guessed
FindBestCurrencyProductForNeededAmountReturns the shop product that best covers the virtual currency still needed, or nil. · by wowlua
(vcCurrencyCode: string, amountNeeded: number): number?
guessed
GetAvailableCategoryIDsReturns the IDs of the shop's categories. · by wowlua
(): number[]
recorded
GetAvailableTransmogRaceInfosReturns the races a transmog product can be previewed on. · by wowlua
(): AvailableRaceInfo[]
guessed
GetCatalogShopProductDisplayInfoReturns how a shop product is shown, such as its model and texts. · by wowlua
(catalogShopProductID: number): CatalogShopProductDisplayInfo
guessed
GetCategoryInfoReturns information about a shop category. · by wowlua
(categoryID: number): CatalogShopCategoryInfo
guessed
GetCategorySectionInfoReturns information about a section of a shop category. · by wowlua
(categoryID: number, sectionID: number): CatalogShopSectionInfo
guessed
GetFailureInfoReturns the error of the last failed shop action, or nil. · by wowlua
(): (StoreError?, number?)
guessed
GetFirstCategoryByProductIDReturns the first shop category the product is in, or nil. · by wowlua
(productID: number): CatalogShopCategoryInfo?
guessed
GetNewProductsReturns the IDs of the shop's new products. · by wowlua
(): number[]
guessed
GetProductAvailabilityTimeRemainingSecsReturns how many seconds the shop product stays available, or nil when it has no end. · by wowlua
(catalogShopProductID: number): number?
guessed
GetProductIDsForBundleReturns the products a shop bundle contains. · by wowlua
(bundleProductID: number): CatalogShopBundleChildInfo[]
guessed
GetProductIDsForCategoryReturns the IDs of the products in a shop category. · by wowlua
(categoryID: number): number[]
guessed
GetProductIDsForCategorySectionReturns the IDs of the products in a section of a shop category. · by wowlua
(categoryID: number, sectionID: number): number[]
guessed
GetProductInfoReturns information about a shop product. · by wowlua
(productID: number): CatalogShopProductInfo?
guessed
GetProductSortOrderReturns the position of a product in a section of a shop category, or nil. · by wowlua
(categoryID: number, sectionID: number, productID: number): number?
guessed
GetRefundableDecorsReturns the housing decor items bought in the shop that can be refunded. · by wowlua
(productIdFilterOpt: number?): (RefundableDecorInfo[], number)
guessed
GetSectionIDsForCategoryReturns the IDs of the sections in a shop category. · by wowlua
(categoryID: number): number[]
guessed
GetSpellVisualInfoForMountReturns how a mount's spell visual is shown in the shop. · by wowlua
(spellVisualID: number): CatalogShopSpellVisualInfo
guessed
GetVCProductInfosReturns the shop's virtual currency products. · by wowlua
(): CatalogShopVCProductInfo[]
guessed
GetVirtualCurrencyBalanceReturns the player's balance of a virtual currency, or nil when it is not known. · by wowlua
(currencyCode: string): string?
guessed
HasNewProductsWhether the shop has new products. · by wowlua
(): boolean
recorded
IsProductIncludedInAnyBundleWhether the product is part of a bundle. · by wowlua
(productID: number): boolean
guessed
IsShop2EnabledWhether the new in-game shop is enabled. · by wowlua
(): boolean?
recorded
OnLegalDisclaimerClickedTells the shop that the player clicked a product's legal disclaimer. · by wowlua
(catalogShopProductID: number)
guessed
OnLegalPersonalizedOptOutClickedTells the shop that the player opted out of personalized offers. · by wowlua
()
guessed
OpenCatalogShopInteractionFromHouseOpens the in-game shop from the player's house. · by wowlua
(): string
guessed
OpenCatalogShopInteractionFromShopOpens the in-game shop from the shop. · by wowlua
(): string
guessed
ProductDisplayedTelemetryReports that a shop product was shown. · by wowlua
(categoryId: number, sectionId: number, catalogShopProductID: number)
guessed
ProductSelectedTelemetryReports that a shop product was selected. · by wowlua
(categoryId: number, sectionId: number, catalogShopProductID: number, wasCodeSelection: boolean)
guessed
PurchaseProductBuys a shop product and returns whether the purchase started. · by wowlua
(productID: number): boolean
guessed
RefreshRefundableDecorsAsks the server again for the housing decor items that can be refunded. · by wowlua
()
guessed
RefreshVirtualCurrencyBalanceAsks the server again for the player's balance of a virtual currency. · by wowlua
(currencyCode: string)
guessed
ShouldShowHousingWarningWhether the shop should show its housing warning. · by wowlua
(): boolean
guessed
StartHousingVCPurchaseConfirmationStarts confirming the purchase of a housing product with virtual currency. · by wowlua
(productID: number)
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
BULK_PURCHASE_RESULT_RECEIVEDresult: BulkPurchaseResult, productResults: BulkPurchaseIndividualProductResult[], bestTopUpProductID: number?, totalCost: number?not implemented
BULK_REFUND_RESULT_RECEIVEDresult: BulkRefundResultnot implemented
CATALOG_SHOP_ADD_PENDING_PRODUCTproductID: numbernot implemented
CATALOG_SHOP_DATA_REFRESHshoppingSessionUUIDStr: string?not implemented
CATALOG_SHOP_DISABLEDno payloadnot implemented
CATALOG_SHOP_FETCH_FAILUREshoppingSessionUUIDStr: string?not implemented
CATALOG_SHOP_FETCH_SUCCESSshoppingSessionUUIDStr: string?not implemented
CATALOG_SHOP_OPEN_SIMPLE_CHECKOUTcheckoutID: numbernot implemented
CATALOG_SHOP_PURCHASE_SUCCESSproductID: numbernot implemented
CATALOG_SHOP_REBUILD_SCROLL_BOXno payloadnot implemented
CATALOG_SHOP_REFUNDABLE_DECORS_UPDATEDno payloadnot implemented
CATALOG_SHOP_REMOVE_PENDING_PRODUCTproductID: numbernot implemented
CATALOG_SHOP_RESULT_ERRORno payloadnot implemented
CATALOG_SHOP_SPECIFIC_PRODUCT_REFRESHproductID: numbernot implemented
CATALOG_SHOP_VIRTUAL_CURRENCY_BALANCE_UPDATEcurrencyCode: string, balance: stringnot implemented
CATALOG_SHOP_VIRTUAL_CURRENCY_BALANCE_UPDATE_FAILUREcurrencyCode: stringnot implemented
SET_SEEN_PRODUCTSproductIds: number[]not implemented
SHOW_NEW_PRODUCT_NOTIFICATIONno payloadnot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("BULK_PURCHASE_RESULT_RECEIVED").

Structures

  • AvailableRaceInfo · raceID, displayName
  • BulkPurchaseIndividualProductResult · recordId, parentProductId?, entitlementId, externalTransactionId, status
  • CatalogShopBundleChildInfo · childProductID, displayOrder, quantityInBundle
  • CatalogShopCategoryInfo · ID, displayName, iconTexture, linkTag, isDisabled, showPersistentRefundButton
  • CatalogShopProductDisplayInfo · defaultPreviewModelSceneID, defaultCardModelSceneID, defaultWideCardModelSceneID, itemID, overridePreviewModelSceneID?, overrideCardModelSceneID?, overrideWideCardModelSceneID?, creatureDisplayInfoIDs, spellVisualIDs, mainHandItemModifiedAppearanceID?, offHandItemModifiedAppearanceID?, itemModifiedAppearanceIDs, iconFileDataID?, iconTextureKit?, productType?, itemDescription?, hasUnknownLicense, productPMTURL?, additionalProductPMTURLs, otherProductImageAtlasName?, otherProductGameTitleBaseTag?, otherProductGameType?, customLoopingSoundStart?, customLoopingSoundMiddle?, customLoopingSoundEnd?, specialActorID_1?, specialActorID_2?, specialActorID_3?, specialActorID_4?, specialActorID_5?, gameFlavorID?, decorFileDataID?, quantity?, houseTextureAtlas?
  • CatalogShopProductInfo · catalogShopProductID, name, type?, description, iconTexture, isFullyOwned, isPurchasePending, refundable, price, originalPrice, discountPercentage, itemID, mountID, mountTypeName, speciesID, transmogSetID, itemModifiedAppearanceID, subItems, subItemsLoaded, backgroundTexture, foregroundTexture?, smallCardBGTexture?, smallCardFGTexture?, wideCardBGTexture?, wideCardFGTexture?, previewIconTexture?, optionalWideCardBackgroundTexture?, isBundle, bundleChildrenSize, licenseTermType, licenseTermDuration, virtualCurrencies, isHidden, isMystery, hasPendingOrders, numBundleDetailCards, isDynamicallyDiscounted, shouldShowOriginalPrice, wideCardBGOverrideProductURL?, previewBGOverrideProductURL?, previewSmallBGOverrideProductURL?, decorQuantity?, isVCProduct, containsHousingItem, deferredGameTimeDays
  • CatalogShopSectionInfo · ID, displayName, parentCatalogShopCategoryInfoID?, cardType?, scrollGridSize?, shouldShowRecommendationOptOutDisclaimer
  • CatalogShopSpellVisualInfo · animID?, spellVisualKitID?
  • CatalogShopSubItemInfo · name, itemID, itemAppearanceID, invType, quality
  • CatalogShopVCProductInfo · vcProductID
  • CatalogShopVirtualCurrency · amount, currencyCode
  • DecorQuantity · placedQuantity, storedQuantity
  • RefundableDecorInfo · decorGUID, timeRemainingSeconds, name, price

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (CatalogShop system, camelot 1.60.1). Descriptions: written by wowlua where no documentation describes the entry.