Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Balance #42

Open
fgisslen opened this issue Jan 23, 2023 · 2 comments
Open

Balance #42

fgisslen opened this issue Jan 23, 2023 · 2 comments

Comments

@fgisslen
Copy link

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

/Fredrik

@danibram
Copy link
Owner

danibram commented Jan 24, 2023

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
Copy link
Author

Thanks :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants