Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# syntax=docker/dockerfile:1
FROM debian:bookworm-slim

RUN apt-get update && apt-get install -y \
libxkbcommon0 \
ca-certificates \
ca-certificates-java \
make \
curl \
git \
openjdk-17-jdk \
unzip \
libc++1 \
vim \
&& apt-get clean autoclean

WORKDIR /workspace

COPY . /workspace
20 changes: 20 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Debian",
"build": {
"dockerfile": "Dockerfile"
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.15.0"
".": "0.16.0"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.16.0 (2023-11-01)

Full Changelog: [v0.15.0...v0.16.0](https://github.com/lithic-com/lithic-java/compare/v0.15.0...v0.16.0)

### Features

* **api:** add verification_attempts response property ([#113](https://github.com/lithic-com/lithic-java/issues/113)) ([947713f](https://github.com/lithic-com/lithic-java/commit/947713f58e87023d2179c6cf1fd727f97f0547d3))
* **github:** include a devcontainer setup ([#111](https://github.com/lithic-com/lithic-java/issues/111)) ([799818f](https://github.com/lithic-com/lithic-java/commit/799818f12f21c5ed966c912ff79047e5292e9024))

## 0.15.0 (2023-10-26)

Full Changelog: [v0.14.0...v0.15.0](https://github.com/lithic-com/lithic-java/compare/v0.14.0...v0.15.0)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/com.lithic.api/lithic-java)](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.15.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.lithic.api/lithic-java)](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.16.0)

<!-- x-release-please-end -->

Expand All @@ -25,7 +25,7 @@ The API documentation can be found [here](https://docs.lithic.com).
<!-- x-release-please-start-version -->

```kotlin
implementation("com.lithic.api:lithic-java:0.15.0")
implementation("com.lithic.api:lithic-java:0.16.0")
```

#### Maven
Expand All @@ -34,7 +34,7 @@ implementation("com.lithic.api:lithic-java:0.15.0")
<dependency>
<groupId>com.lithic.api</groupId>
<artifactId>lithic-java</artifactId>
<version>0.15.0</version>
<version>0.16.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {

allprojects {
group = "com.lithic.api"
version = "0.15.0" // x-release-please-version
version = "0.16.0" // x-release-please-version
}

nexusPublishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ private constructor(
private val token: JsonField<String>,
private val type: JsonField<Type>,
private val userDefinedId: JsonField<String>,
private val verificationAttempts: JsonField<Long>,
private val verificationFailedReason: JsonField<String>,
private val verificationMethod: JsonField<VerificationMethod>,
private val verificationState: JsonField<VerificationState>,
Expand Down Expand Up @@ -115,6 +116,9 @@ private constructor(
fun userDefinedId(): Optional<String> =
Optional.ofNullable(userDefinedId.getNullable("user_defined_id"))

/** The number of attempts at verification */
fun verificationAttempts(): Long = verificationAttempts.getRequired("verification_attempts")

/**
* Optional free text description of the reason for the failed verification. For ACH
* micro-deposits returned, this field will display the reason return code sent by the ACH
Expand Down Expand Up @@ -189,6 +193,11 @@ private constructor(

@JsonProperty("user_defined_id") @ExcludeMissing fun _userDefinedId() = userDefinedId

/** The number of attempts at verification */
@JsonProperty("verification_attempts")
@ExcludeMissing
fun _verificationAttempts() = verificationAttempts

/**
* Optional free text description of the reason for the failed verification. For ACH
* micro-deposits returned, this field will display the reason return code sent by the ACH
Expand Down Expand Up @@ -227,6 +236,7 @@ private constructor(
token()
type()
userDefinedId()
verificationAttempts()
verificationFailedReason()
verificationMethod()
verificationState()
Expand Down Expand Up @@ -259,6 +269,7 @@ private constructor(
this.token == other.token &&
this.type == other.type &&
this.userDefinedId == other.userDefinedId &&
this.verificationAttempts == other.verificationAttempts &&
this.verificationFailedReason == other.verificationFailedReason &&
this.verificationMethod == other.verificationMethod &&
this.verificationState == other.verificationState &&
Expand Down Expand Up @@ -286,6 +297,7 @@ private constructor(
token,
type,
userDefinedId,
verificationAttempts,
verificationFailedReason,
verificationMethod,
verificationState,
Expand All @@ -296,7 +308,7 @@ private constructor(
}

override fun toString() =
"ExternalBankAccountCreateResponse{accountToken=$accountToken, address=$address, companyId=$companyId, country=$country, created=$created, currency=$currency, dob=$dob, doingBusinessAs=$doingBusinessAs, lastFour=$lastFour, name=$name, owner=$owner, ownerType=$ownerType, routingNumber=$routingNumber, state=$state, token=$token, type=$type, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationMethod=$verificationMethod, verificationState=$verificationState, additionalProperties=$additionalProperties}"
"ExternalBankAccountCreateResponse{accountToken=$accountToken, address=$address, companyId=$companyId, country=$country, created=$created, currency=$currency, dob=$dob, doingBusinessAs=$doingBusinessAs, lastFour=$lastFour, name=$name, owner=$owner, ownerType=$ownerType, routingNumber=$routingNumber, state=$state, token=$token, type=$type, userDefinedId=$userDefinedId, verificationAttempts=$verificationAttempts, verificationFailedReason=$verificationFailedReason, verificationMethod=$verificationMethod, verificationState=$verificationState, additionalProperties=$additionalProperties}"

companion object {

Expand All @@ -322,6 +334,7 @@ private constructor(
private var token: JsonField<String> = JsonMissing.of()
private var type: JsonField<Type> = JsonMissing.of()
private var userDefinedId: JsonField<String> = JsonMissing.of()
private var verificationAttempts: JsonField<Long> = JsonMissing.of()
private var verificationFailedReason: JsonField<String> = JsonMissing.of()
private var verificationMethod: JsonField<VerificationMethod> = JsonMissing.of()
private var verificationState: JsonField<VerificationState> = JsonMissing.of()
Expand All @@ -347,6 +360,7 @@ private constructor(
this.token = externalBankAccountCreateResponse.token
this.type = externalBankAccountCreateResponse.type
this.userDefinedId = externalBankAccountCreateResponse.userDefinedId
this.verificationAttempts = externalBankAccountCreateResponse.verificationAttempts
this.verificationFailedReason =
externalBankAccountCreateResponse.verificationFailedReason
this.verificationMethod = externalBankAccountCreateResponse.verificationMethod
Expand Down Expand Up @@ -529,6 +543,17 @@ private constructor(
this.userDefinedId = userDefinedId
}

/** The number of attempts at verification */
fun verificationAttempts(verificationAttempts: Long) =
verificationAttempts(JsonField.of(verificationAttempts))

/** The number of attempts at verification */
@JsonProperty("verification_attempts")
@ExcludeMissing
fun verificationAttempts(verificationAttempts: JsonField<Long>) = apply {
this.verificationAttempts = verificationAttempts
}

/**
* Optional free text description of the reason for the failed verification. For ACH
* micro-deposits returned, this field will display the reason return code sent by the ACH
Expand Down Expand Up @@ -599,6 +624,7 @@ private constructor(
token,
type,
userDefinedId,
verificationAttempts,
verificationFailedReason,
verificationMethod,
verificationState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ private constructor(
private val token: JsonField<String>,
private val type: JsonField<Type>,
private val userDefinedId: JsonField<String>,
private val verificationAttempts: JsonField<Long>,
private val verificationFailedReason: JsonField<String>,
private val verificationMethod: JsonField<VerificationMethod>,
private val verificationState: JsonField<VerificationState>,
Expand Down Expand Up @@ -115,6 +116,9 @@ private constructor(
fun userDefinedId(): Optional<String> =
Optional.ofNullable(userDefinedId.getNullable("user_defined_id"))

/** The number of attempts at verification */
fun verificationAttempts(): Long = verificationAttempts.getRequired("verification_attempts")

/**
* Optional free text description of the reason for the failed verification. For ACH
* micro-deposits returned, this field will display the reason return code sent by the ACH
Expand Down Expand Up @@ -189,6 +193,11 @@ private constructor(

@JsonProperty("user_defined_id") @ExcludeMissing fun _userDefinedId() = userDefinedId

/** The number of attempts at verification */
@JsonProperty("verification_attempts")
@ExcludeMissing
fun _verificationAttempts() = verificationAttempts

/**
* Optional free text description of the reason for the failed verification. For ACH
* micro-deposits returned, this field will display the reason return code sent by the ACH
Expand Down Expand Up @@ -227,6 +236,7 @@ private constructor(
token()
type()
userDefinedId()
verificationAttempts()
verificationFailedReason()
verificationMethod()
verificationState()
Expand Down Expand Up @@ -259,6 +269,7 @@ private constructor(
this.token == other.token &&
this.type == other.type &&
this.userDefinedId == other.userDefinedId &&
this.verificationAttempts == other.verificationAttempts &&
this.verificationFailedReason == other.verificationFailedReason &&
this.verificationMethod == other.verificationMethod &&
this.verificationState == other.verificationState &&
Expand Down Expand Up @@ -286,6 +297,7 @@ private constructor(
token,
type,
userDefinedId,
verificationAttempts,
verificationFailedReason,
verificationMethod,
verificationState,
Expand All @@ -296,7 +308,7 @@ private constructor(
}

override fun toString() =
"ExternalBankAccountListResponse{accountToken=$accountToken, address=$address, companyId=$companyId, country=$country, created=$created, currency=$currency, dob=$dob, doingBusinessAs=$doingBusinessAs, lastFour=$lastFour, name=$name, owner=$owner, ownerType=$ownerType, routingNumber=$routingNumber, state=$state, token=$token, type=$type, userDefinedId=$userDefinedId, verificationFailedReason=$verificationFailedReason, verificationMethod=$verificationMethod, verificationState=$verificationState, additionalProperties=$additionalProperties}"
"ExternalBankAccountListResponse{accountToken=$accountToken, address=$address, companyId=$companyId, country=$country, created=$created, currency=$currency, dob=$dob, doingBusinessAs=$doingBusinessAs, lastFour=$lastFour, name=$name, owner=$owner, ownerType=$ownerType, routingNumber=$routingNumber, state=$state, token=$token, type=$type, userDefinedId=$userDefinedId, verificationAttempts=$verificationAttempts, verificationFailedReason=$verificationFailedReason, verificationMethod=$verificationMethod, verificationState=$verificationState, additionalProperties=$additionalProperties}"

companion object {

Expand All @@ -322,6 +334,7 @@ private constructor(
private var token: JsonField<String> = JsonMissing.of()
private var type: JsonField<Type> = JsonMissing.of()
private var userDefinedId: JsonField<String> = JsonMissing.of()
private var verificationAttempts: JsonField<Long> = JsonMissing.of()
private var verificationFailedReason: JsonField<String> = JsonMissing.of()
private var verificationMethod: JsonField<VerificationMethod> = JsonMissing.of()
private var verificationState: JsonField<VerificationState> = JsonMissing.of()
Expand All @@ -347,6 +360,7 @@ private constructor(
this.token = externalBankAccountListResponse.token
this.type = externalBankAccountListResponse.type
this.userDefinedId = externalBankAccountListResponse.userDefinedId
this.verificationAttempts = externalBankAccountListResponse.verificationAttempts
this.verificationFailedReason =
externalBankAccountListResponse.verificationFailedReason
this.verificationMethod = externalBankAccountListResponse.verificationMethod
Expand Down Expand Up @@ -529,6 +543,17 @@ private constructor(
this.userDefinedId = userDefinedId
}

/** The number of attempts at verification */
fun verificationAttempts(verificationAttempts: Long) =
verificationAttempts(JsonField.of(verificationAttempts))

/** The number of attempts at verification */
@JsonProperty("verification_attempts")
@ExcludeMissing
fun verificationAttempts(verificationAttempts: JsonField<Long>) = apply {
this.verificationAttempts = verificationAttempts
}

/**
* Optional free text description of the reason for the failed verification. For ACH
* micro-deposits returned, this field will display the reason return code sent by the ACH
Expand Down Expand Up @@ -599,6 +624,7 @@ private constructor(
token,
type,
userDefinedId,
verificationAttempts,
verificationFailedReason,
verificationMethod,
verificationState,
Expand Down
Loading