Exports

Server Exports

GetUserCards

Get user cards ids

-- player: number - player source
-- return: table - a table containing user cards ids
exports.JustBanks:GetUserCards(player)

GetCardId

Get card id by card_number

-- player: string - card_number
-- return: number - card id
exports.JustBanks:GetCardId(card_number)

GetCard

Get card info by id

-- card: number - card id
-- return: table - card info
exports.JustBanks:GetCard(card)

-- Example return 
local response = {
    id = 1,
    holder = 1, -- holder id
    type = "basic", -- card type (basic, pro, ultimate)
    card_number = "5530359442202495",
    pin = "1111",
    balance = 1000,
    is_main = true, -- is this main card ?
    is_suspended = false,
    is_locked = false
}

AddMoney

Add balance to card

RemoveMoney

Remove balance from card

SetMoney

Set card balance

AddInvoice

Adds a new invoice for online player

PayInvoice

Set an invoice in paid status

GetInvoices

Get all invoices of user

GetUnpaidInvoices

Get unpaid invoices of user

IsSocietyExist

Whether society account exists on bank

CreateSocietyAccount

Manually creating society account

GetSocietyMoney

Get current balance of society account

AddSocietyMoney

Add balance to society account

RemoveSocietyMoney

Remove balance from society account

RemoveSocietyMoney

Set balance of society account

Last updated