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
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.35.0"
".": "0.36.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 113
configured_endpoints: 115
23 changes: 12 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
# Changelog

## 0.35.0 (2024-05-29)
## 0.36.0 (2024-05-30)

Full Changelog: [v0.34.0...v0.35.0](https://github.com/lithic-com/lithic-java/compare/v0.34.0...v0.35.0)
Full Changelog: [v0.35.0...v0.36.0](https://github.com/lithic-com/lithic-java/compare/v0.35.0...v0.36.0)

### Features

* **api:** add simulate_receipt and simulate_action endpoints ([45e9e91](https://github.com/lithic-com/lithic-java/commit/45e9e91b51c81df391826be12c56ddb68375b760))
* **api:** add simulate_receipt and simulate_action endpoints ([#227](https://github.com/lithic-com/lithic-java/issues/227)) ([6c125a4](https://github.com/lithic-com/lithic-java/commit/6c125a42096459659b6b5d734fc947090c657575))
* **api:** update detailed_results enum values ([#229](https://github.com/lithic-com/lithic-java/issues/229)) ([764a1d8](https://github.com/lithic-com/lithic-java/commit/764a1d80360ef956050f3e394dfecf94d42bea43))

## 0.34.0 (2024-05-29)
## 0.35.0 (2024-05-29)

Full Changelog: [v0.33.0...v0.34.0](https://github.com/lithic-com/lithic-java/compare/v0.33.0...v0.34.0)
Full Changelog: [v0.34.0...v0.35.0](https://github.com/lithic-com/lithic-java/compare/v0.34.0...v0.35.0)

### Features

* **api:** updates ([#224](https://github.com/lithic-com/lithic-java/issues/224)) ([83f78d6](https://github.com/lithic-com/lithic-java/commit/83f78d62873dd6d18ce046e3a3328155c4f8355e))
* propagate resource description field from stainless config to SDK docs ([#219](https://github.com/lithic-com/lithic-java/issues/219)) ([3f13f6d](https://github.com/lithic-com/lithic-java/commit/3f13f6d70c5c028ac55c1fde6fb2e1f9c298e1b4))
* **api:** add simulate_receipt and simulate_action endpoints ([45e9e91](https://github.com/lithic-com/lithic-java/commit/45e9e91b51c81df391826be12c56ddb68375b760))

## 0.34.0 (2024-05-29)

### Chores
Full Changelog: [v0.33.0...v0.33.1](https://github.com/lithic-com/lithic-java/compare/v0.33.0...v0.33.1)

### Bug Fixes

* **docs:** add SECURITY.md ([#221](https://github.com/lithic-com/lithic-java/issues/221)) ([9170209](https://github.com/lithic-com/lithic-java/commit/9170209d294e3ce99a4c5be9b1da1640b83425cb))
* **internal:** add scripts-to-rule-them-all ([#222](https://github.com/lithic-com/lithic-java/issues/222)) ([2c38662](https://github.com/lithic-com/lithic-java/commit/2c38662da811be14216190eb4c171df301117f37))
* **tests:** update some example values ([#223](https://github.com/lithic-com/lithic-java/issues/223)) ([453d332](https://github.com/lithic-com/lithic-java/commit/453d3323664641f889ba535bb7cfde6f12b936b2))
* **examples:** generate correctly typed example snippets for enums ([16e93fd](https://github.com/lithic-com/lithic-java/commit/16e93fd41e8f27656dd88f805726197f6d791dfa))

## 0.33.0 (2024-05-01)

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.35.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.36.0)

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

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

```kotlin
implementation("com.lithic.api:lithic-java:0.35.0")
implementation("com.lithic.api:lithic-java:0.36.0")
```

#### Maven
Expand All @@ -34,7 +34,7 @@ implementation("com.lithic.api:lithic-java:0.35.0")
<dependency>
<groupId>com.lithic.api</groupId>
<artifactId>lithic-java</artifactId>
<version>0.35.0</version>
<version>0.36.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.35.0" // x-release-please-version
version = "0.36.0" // x-release-please-version
}

nexusPublishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ import com.lithic.api.core.toUnmodifiable
import java.util.Objects
import java.util.Optional

/**
* Address used during Address Verification Service (AVS) checks during transactions if enabled via
* Auth Rules.
*/
@JsonDeserialize(builder = ExternalBankAccountAddress.Builder::class)
@NoAutoDetect
class ExternalBankAccountAddress
private constructor(
private val address1: JsonField<String>,
private val address2: JsonField<String>,
private val city: JsonField<String>,
private val state: JsonField<String>,
private val postalCode: JsonField<String>,
private val country: JsonField<String>,
private val postalCode: JsonField<String>,
private val state: JsonField<String>,
private val additionalProperties: Map<String, JsonValue>,
) {

Expand All @@ -38,23 +42,23 @@ private constructor(

fun city(): String = city.getRequired("city")

fun state(): String = state.getRequired("state")
fun country(): String = country.getRequired("country")

fun postalCode(): String = postalCode.getRequired("postal_code")

fun country(): String = country.getRequired("country")
fun state(): String = state.getRequired("state")

@JsonProperty("address1") @ExcludeMissing fun _address1() = address1

@JsonProperty("address2") @ExcludeMissing fun _address2() = address2

@JsonProperty("city") @ExcludeMissing fun _city() = city

@JsonProperty("state") @ExcludeMissing fun _state() = state
@JsonProperty("country") @ExcludeMissing fun _country() = country

@JsonProperty("postal_code") @ExcludeMissing fun _postalCode() = postalCode

@JsonProperty("country") @ExcludeMissing fun _country() = country
@JsonProperty("state") @ExcludeMissing fun _state() = state

@JsonAnyGetter
@ExcludeMissing
Expand All @@ -65,9 +69,9 @@ private constructor(
address1()
address2()
city()
state()
postalCode()
country()
postalCode()
state()
validated = true
}
}
Expand All @@ -83,9 +87,9 @@ private constructor(
this.address1 == other.address1 &&
this.address2 == other.address2 &&
this.city == other.city &&
this.state == other.state &&
this.postalCode == other.postalCode &&
this.country == other.country &&
this.postalCode == other.postalCode &&
this.state == other.state &&
this.additionalProperties == other.additionalProperties
}

Expand All @@ -96,17 +100,17 @@ private constructor(
address1,
address2,
city,
state,
postalCode,
country,
postalCode,
state,
additionalProperties,
)
}
return hashCode
}

override fun toString() =
"ExternalBankAccountAddress{address1=$address1, address2=$address2, city=$city, state=$state, postalCode=$postalCode, country=$country, additionalProperties=$additionalProperties}"
"ExternalBankAccountAddress{address1=$address1, address2=$address2, city=$city, country=$country, postalCode=$postalCode, state=$state, additionalProperties=$additionalProperties}"

companion object {

Expand All @@ -118,19 +122,19 @@ private constructor(
private var address1: JsonField<String> = JsonMissing.of()
private var address2: JsonField<String> = JsonMissing.of()
private var city: JsonField<String> = JsonMissing.of()
private var state: JsonField<String> = JsonMissing.of()
private var postalCode: JsonField<String> = JsonMissing.of()
private var country: JsonField<String> = JsonMissing.of()
private var postalCode: JsonField<String> = JsonMissing.of()
private var state: JsonField<String> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(externalBankAccountAddress: ExternalBankAccountAddress) = apply {
this.address1 = externalBankAccountAddress.address1
this.address2 = externalBankAccountAddress.address2
this.city = externalBankAccountAddress.city
this.state = externalBankAccountAddress.state
this.postalCode = externalBankAccountAddress.postalCode
this.country = externalBankAccountAddress.country
this.postalCode = externalBankAccountAddress.postalCode
this.state = externalBankAccountAddress.state
additionalProperties(externalBankAccountAddress.additionalProperties)
}

Expand All @@ -152,23 +156,23 @@ private constructor(
@ExcludeMissing
fun city(city: JsonField<String>) = apply { this.city = city }

fun state(state: String) = state(JsonField.of(state))
fun country(country: String) = country(JsonField.of(country))

@JsonProperty("state")
@JsonProperty("country")
@ExcludeMissing
fun state(state: JsonField<String>) = apply { this.state = state }
fun country(country: JsonField<String>) = apply { this.country = country }

fun postalCode(postalCode: String) = postalCode(JsonField.of(postalCode))

@JsonProperty("postal_code")
@ExcludeMissing
fun postalCode(postalCode: JsonField<String>) = apply { this.postalCode = postalCode }

fun country(country: String) = country(JsonField.of(country))
fun state(state: String) = state(JsonField.of(state))

@JsonProperty("country")
@JsonProperty("state")
@ExcludeMissing
fun country(country: JsonField<String>) = apply { this.country = country }
fun state(state: JsonField<String>) = apply { this.state = state }

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
Expand All @@ -189,9 +193,9 @@ private constructor(
address1,
address2,
city,
state,
postalCode,
country,
postalCode,
state,
additionalProperties.toUnmodifiable(),
)
}
Expand Down
Loading