--!strict


local MarketplaceService = game.MarketplaceService
local BadgeService = game.BadgeService
local DataStoreService = game.DataStoreService
local Players = game.Players

type receiptInfo = {
	PurchaseId: number,
	PlayerId: number,
	ProductId: number,
	PlaceIdWherePurchased: number,
	CurrencySpent: number,
	CurrencyType: Enum.CurrencyType
}

type productFunction = (receiptInfo, Player) -> (boolean)
type badgeFunction = (userid: number) -> (boolean)

local purchaseHistoryStore = DataStoreService:GetDataStore("PurchaseHistory")

local Functions = {
	products = {} :: {[number]: productFunction},
	badges = {} :: {[number]: badgeFunction},
}
