# yop-java-sdk-biz

- API version: 1.0
  - Build date: 2023-05-15T11:00:14.475+08:00[Asia/Chongqing]


*Automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen)*


## Requirements

Building the API client library requires:
1. Java 1.7+
2. Maven/Gradle

## Installation

To install the API client library to your local Maven repository, simply execute:

```shell
mvn clean install -Dmaven.test.skip=true
```

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

```shell
mvn clean deploy -Dmaven.test.skip=true
```

Refer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.

### Maven users

Add this dependency to your project's POM:

```xml
<dependency>
  <groupId>com.yeepay.yop.sdk</groupId>
  <artifactId>yop-java-sdk-biz</artifactId>
  <version>4.3.3</version>
</dependency>
```

### Gradle users

Add this dependency to your project's build file:

```groovy
compile "com.yeepay.yop.sdk:yop-java-sdk-biz:4.3.3"
```

### Others

At first generate the JAR by executing:

```shell
mvn clean package
cd target && unzip yop-java-sdk-biz-4.3.3-assembly.zip
```

Then manually install the following JARs:

* `target/yop-java-sdk-biz-4.3.3.jar`
* `target/yop-java-sdk-biz-4.3.3/lib/*.jar`

## Config your project

By default YOP-JAVA-JDK will load config from file `config/yop_sdk_config_default.json` relative to your classpath.

So you can put one there, and config values for `app_key`、`isv_private_key` or else before run your application.

The config file json structure is as described in `config/yop_sdk_config_template.json` of your downloaded SDK files.

Please Refer to [JAVA Guide](https://open.yeepay.com/docs/platform/sdk_guide/java-sdk-guide) for more config information.

## Run your tests

Test examples are in the directory `src/test/java`, you can copy them to your project or just run it in the downloaded SDK project.

## API docs

Among the downloaded SDK files, `*.md` docs are separately in the directory `docs`.

You can also refer to the online docs [API docs](https://open.yeepay.com/docs).

## Recommendation

It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
