The client classes are generated by swagger-codegen, we added unit tests, example tests and a helper class to help you consume the KYC API.
Building the API client library requires Maven to be installed.
To install the API client library to your local Maven repository, simply execute:
mvn install
Add this dependency to your project's POM:
<dependency>
<groupId>com.swift.kyc</groupId>
<artifactId>java-client</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
At first generate the JAR by executing:
mvn package
Then manually install the following JARs:
- target/java-client-1.0.0.jar
All URIs are relative to https://sandbox.swift.com/kyc/v1
Class | Method | HTTP request | Description |
---|---|---|---|
ConsumptionApi | counterpartiesMyGet | GET /entities/counterparty | Get My Counterparties |
ConsumptionApi | entitiesMyGet | GET /entities/my | Get My Entities |
- Data
- Data11
- DataIoc
- DataIocInner
- DataMycounterparty
- DataMyentity
- Document201
- DocumentModel
- DocumentObj
- Entity
- EntityList
- Folders
- IndustryClassifications
- LicenceInfo
- LicenceTypes
- LicencesInfo
- ListOfCounterparties
- SICCodes
- SanctionsListsInUsed
- SanctionsListsInUsedEU
- SanctionsListsInUsedG7
- SanctionsListsInUsedOFAC
- SanctionsListsInUsedOFSI
- SanctionsListsInUsedUN
Authentication schemes defined for the API:
- Type: OAuth
- Flow: password
- Authorization URL: https://sandbox.swift.com/oauth2/v1
- Scopes: N/A
It's recommended to create an instance of ApiClient
per thread in a multithreaded environment to avoid any potential issues.