omise / omise-node

Omise Node.js Library
https://docs.opn.ooo
102 stars 53 forks source link

[ENGA3-808] : Allow hosts config #169

Closed ajzkk closed 1 year ago

ajzkk commented 1 year ago

Objective

Allow hosts config and added missing source retrieve function

#ENGA3-808

Description

const config = { host: "api.xxxxxxx.co", vaultHost : "vault.xxxxxxx.co", publicKey: "pkey*****", secretKey: "skey*****", omiseVersion: "2019-05-29", };

const omise = Omise(config)


- Check response is valid json and reject promise if not valid.
- Add types to support hosts
- Added  missing source retrieve function `omise.sources.retrieve('src_xxxxxx')`
sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 10 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication