@friggframework/api-module-airwallex
Advanced tools
Comparing version 0.8.25-canary.143.04e6974.0 to 0.8.25-canary.155.274587c.0
{ | ||
"name": "@friggframework/api-module-airwallex", | ||
"version": "0.8.25-canary.143.04e6974.0", | ||
"version": "0.8.25-canary.155.274587c.0", | ||
"prettier": "@friggframework/prettier-config", | ||
@@ -14,4 +14,4 @@ "description": "", | ||
"devDependencies": { | ||
"@friggframework/eslint-config": "1.0.9-canary.143.04e6974.0", | ||
"@friggframework/test-environment": "1.1.7-canary.143.04e6974.0", | ||
"@friggframework/eslint-config": "^1.0.8", | ||
"@friggframework/test-environment": "^1.1.6", | ||
"eslint": "^8.22.0", | ||
@@ -23,6 +23,6 @@ "jest": "^28.1.3", | ||
"dependencies": { | ||
"@friggframework/assertions": "1.0.9-canary.143.04e6974.0", | ||
"@friggframework/module-plugin": "1.0.26-canary.143.04e6974.0" | ||
"@friggframework/assertions": "^1.0.8", | ||
"@friggframework/module-plugin": "1.0.26-canary.155.274587c.0" | ||
}, | ||
"gitHead": "04e6974da8d19972f8b4124d2bcb0f4f8e720bca" | ||
"gitHead": "274587c36a1f61ec95ab74e54b22e8ad230d3eeb" | ||
} |
const chai = require('chai'); | ||
const should = chai.should(); | ||
const Authenticator = require('@friggframework/test-environment/Authenticator'); | ||
const Authenticator = require('../../../../test/utils/Authenticator'); | ||
const { Api } = require('../api'); | ||
describe('Airwallex API class', () => { | ||
let api; | ||
beforeAll(async () => { | ||
api = new Api({ | ||
api_key: process.env.AIRWALLEX_API_KEY, | ||
client_id: process.env.AIRWALLEX_CLIENT_ID, | ||
}); | ||
await api.getTokenFromApiKey(); | ||
const TestUtils = require('../../../../test/utils/TestUtils'); | ||
describe('Airwallex API class', async () => { | ||
const api = new Api(); | ||
before(async () => { | ||
const url = api.authorizationUri; | ||
const response = await Authenticator.oauth2(url); | ||
const baseArr = response.base.split('/'); | ||
response.entityType = baseArr[baseArr.length - 1]; | ||
delete response.base; | ||
const token = await api.getTokenFromCode(response.data.code); | ||
}); | ||
describe('Get Account Info', () => { | ||
it.skip('should get Account info', async () => { | ||
describe('Get Account Info', async () => { | ||
it('should get Account info', async () => { | ||
const response = await api.getAccount(); | ||
@@ -25,4 +29,4 @@ response.should.have.property('id'); | ||
describe('Transactions', () => { | ||
it.skip('should get all transactions', async () => { | ||
describe('Transactions', async () => { | ||
it('should get all transactions', async () => { | ||
const response = await api.getTransactions(); | ||
@@ -34,11 +38,11 @@ response.should.have.property('items'); | ||
describe('Payments', () => {}); | ||
describe('Payments', async () => {}); | ||
describe('Charges', () => {}); | ||
describe('Charges', async () => {}); | ||
describe('Balance', () => {}); | ||
describe('Balance', async () => {}); | ||
describe('Card', () => {}); | ||
describe('Card', async () => {}); | ||
describe('Customer', () => {}); | ||
describe('Customer', async () => {}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
23517
473
4
+ Added@friggframework/assertions@1.0.9(transitive)
+ Added@friggframework/core@0.2.13-canary.155.274587c.0(transitive)
+ Added@friggframework/encrypt@1.1.8(transitive)
+ Added@friggframework/errors@1.1.7(transitive)
+ Added@friggframework/module-plugin@1.0.26-canary.155.274587c.0(transitive)
- Removed@friggframework/assertions@1.0.9-canary.143.04e6974.0(transitive)
- Removed@friggframework/core@0.2.13-canary.143.04e6974.0(transitive)
- Removed@friggframework/encrypt@1.1.8-canary.143.04e6974.0(transitive)
- Removed@friggframework/errors@1.1.7-canary.143.04e6974.0(transitive)
- Removed@friggframework/module-plugin@1.0.26-canary.143.04e6974.0(transitive)
Updated@friggframework/module-plugin@1.0.26-canary.155.274587c.0