GetWarehouseTransactions
waarschuwing
Deze export is alleen beschikbaar voor serverside!
Export Syntax
exports['dream_cryptomining']:GetWarehouseTransactions(WarehouseId) -- Geeft een tabel met gegevens terug
Parameterโ
- WarehouseId (String) -> De Warehouse-Id. Zie Getallwarehouses.md
Responseโ
Response Tabel
{
    "TRANSACTIONID": {
        "id": int, -- TransactieId
        "warehouse": int, -- Warehouse-Id
        "assigned": int, -- ToegewezenId
        "transactionId": string -- TransactieId (bijv. T994826)
        "type": string, -- [inkomend, uitgaand]
        "status": string, -- [in afwachting, voltooid]
        "kwh": float, -- Kwh bedrag
        "server": int, -- Server bedrag
        "amount": int, -- ๐ธ Bedrag
        "date": string, -- Geformatteerde Datum (DD.MM.JJJJ HH:MM)
        "created_at": float, -- Unix Tijdstempel
        "updated_at": float, -- Unix Tijdstempel
    },
    ...   
}
Voorbeeld Export
local WarehouseTransactions = exports['dream_cryptomining']:GetWarehouseTransactions("WAREHOUSEID")
-- ๐ Dit zal de magazijntransacties doorlopen
for key, value in pairs(WarehouseTransactions) do
    print(value.type) -- ๐ Transactie Type
    print(value.status) -- โ๏ธ Transactie Status
    print(value.amount) -- ๐ธ Transactie Bedrag
    -- ๐ฌ Gebruik alle andere variabelen...
end