danibram / trustly-client

A node client to comunicate with trustly.
https://github.com/danibram/trustly-client
MIT License
6 stars 8 forks source link

Balance #42

Open fgisslen opened 1 year ago

fgisslen commented 1 year ago

Is there any way to get balance of your trustly account?

/Fredrik

danibram commented 1 year ago

Its not controlled by the library, checking the docs here, you can use the generic request method:

import client from 'trustly-client' // Import it
let tClient = client(configuration) // Fill the configuration

tClientKP // Ready to use
    .request('Balance', {})
    .then(function (response) {
        console.log(util.inspect(response, false, 20, true))
    })
    .catch(function (error) {
        console.log(util.inspect(error, false, 20, true))
    })

I will add balance method on next version =) Thanks!

fgisslen commented 1 year ago

Thanks :D