Skip to content
  •  
  •  
  •  
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.159.0"
".": "0.160.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 199
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-20c5ad39d175da218956d1a170f2485ea47d8b2f6ea1a13e1e684c770fad6efa.yml
configured_endpoints: 201
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6cc3e4ac223759041f330390923fab4098db3de30668152712a863fa81b40849.yml
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## 0.160.0 (2025-01-03)

Full Changelog: [v0.159.0...v0.160.0](https://github.com/Increase/increase-java/compare/v0.159.0...v0.160.0)

### ⚠ BREAKING CHANGES

* **client:** switch query params objects to use `QueryParams` ([#666](https://github.com/Increase/increase-java/issues/666))

### Features

* **api:** api update ([#669](https://github.com/Increase/increase-java/issues/669)) ([a48d436](https://github.com/Increase/increase-java/commit/a48d436999cefec232bffb44a9aae5eb9074014d))
* **api:** api update ([#670](https://github.com/Increase/increase-java/issues/670)) ([31d9fe0](https://github.com/Increase/increase-java/commit/31d9fe00d3c7949105fabe83d56de1a3cbe7a4e4))
* **api:** api update ([#671](https://github.com/Increase/increase-java/issues/671)) ([ea1ed7d](https://github.com/Increase/increase-java/commit/ea1ed7d87b439dcd9ad648ae548522037234b9d5))
* **api:** api update ([#673](https://github.com/Increase/increase-java/issues/673)) ([74ec930](https://github.com/Increase/increase-java/commit/74ec930838db53278d85fa7d2a5110e5368b159f))
* **api:** api update ([#674](https://github.com/Increase/increase-java/issues/674)) ([05926fd](https://github.com/Increase/increase-java/commit/05926fdb2c16ced7b9e2d583b84faa6c535d4840))


### Chores

* **internal:** codegen related update ([#672](https://github.com/Increase/increase-java/issues/672)) ([2dd8d70](https://github.com/Increase/increase-java/commit/2dd8d70f19bde02e31f341acd24521c2a6ceb5ee))
* **internal:** codegen related update ([#675](https://github.com/Increase/increase-java/issues/675)) ([88f1f82](https://github.com/Increase/increase-java/commit/88f1f82bf6b6e0964a55e61160079a6cd5fc0324))


### Refactors

* **client:** switch query params objects to use `QueryParams` ([#666](https://github.com/Increase/increase-java/issues/666)) ([0687924](https://github.com/Increase/increase-java/commit/0687924d47ed59f60a3ea7b0fa1b9360a514530b))
* **internal:** use constructor to deserialize json ([#668](https://github.com/Increase/increase-java/issues/668)) ([62773ca](https://github.com/Increase/increase-java/commit/62773ca6e39bcf8ecebdbb4d56c12923f4d8e363))

## 0.159.0 (2024-12-20)

Full Changelog: [v0.158.0...v0.159.0](https://github.com/Increase/increase-java/compare/v0.158.0...v0.159.0)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2024 Increase
Copyright 2025 Increase

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
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.increase.api/increase-java)](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.159.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.increase.api/increase-java)](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.160.0)

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

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

```kotlin
implementation("com.increase.api:increase-java:0.159.0")
implementation("com.increase.api:increase-java:0.160.0")
```

#### Maven
Expand All @@ -34,7 +34,7 @@ implementation("com.increase.api:increase-java:0.159.0")
<dependency>
<groupId>com.increase.api</groupId>
<artifactId>increase-java</artifactId>
<version>0.159.0</version>
<version>0.160.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.increase.api"
version = "0.159.0" // x-release-please-version
version = "0.160.0" // x-release-please-version
}


Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class IncreaseOkHttpClient private constructor() {

fun apiKey(apiKey: String) = apply { clientOptions.apiKey(apiKey) }

fun webhookSecret(webhookSecret: String?) = apply {
fun webhookSecret(webhookSecret: String) = apply {
clientOptions.webhookSecret(webhookSecret)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class IncreaseOkHttpClientAsync private constructor() {

fun apiKey(apiKey: String) = apply { clientOptions.apiKey(apiKey) }

fun webhookSecret(webhookSecret: String?) = apply {
fun webhookSecret(webhookSecret: String) = apply {
clientOptions.webhookSecret(webhookSecret)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import com.increase.api.services.blocking.IntrafiAccountEnrollmentService
import com.increase.api.services.blocking.IntrafiBalanceService
import com.increase.api.services.blocking.IntrafiExclusionService
import com.increase.api.services.blocking.LockboxService
import com.increase.api.services.blocking.OAuthApplicationService
import com.increase.api.services.blocking.OAuthConnectionService
import com.increase.api.services.blocking.OAuthTokenService
import com.increase.api.services.blocking.PendingTransactionService
Expand Down Expand Up @@ -153,6 +154,8 @@ interface IncreaseClient {

fun groups(): GroupService

fun oauthApplications(): OAuthApplicationService

fun oauthConnections(): OAuthConnectionService

fun webhooks(): WebhookService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import com.increase.api.services.async.IntrafiAccountEnrollmentServiceAsync
import com.increase.api.services.async.IntrafiBalanceServiceAsync
import com.increase.api.services.async.IntrafiExclusionServiceAsync
import com.increase.api.services.async.LockboxServiceAsync
import com.increase.api.services.async.OAuthApplicationServiceAsync
import com.increase.api.services.async.OAuthConnectionServiceAsync
import com.increase.api.services.async.OAuthTokenServiceAsync
import com.increase.api.services.async.PendingTransactionServiceAsync
Expand Down Expand Up @@ -153,6 +154,8 @@ interface IncreaseClientAsync {

fun groups(): GroupServiceAsync

fun oauthApplications(): OAuthApplicationServiceAsync

fun oauthConnections(): OAuthConnectionServiceAsync

fun webhooks(): WebhookServiceAsync
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ import com.increase.api.services.async.IntrafiExclusionServiceAsync
import com.increase.api.services.async.IntrafiExclusionServiceAsyncImpl
import com.increase.api.services.async.LockboxServiceAsync
import com.increase.api.services.async.LockboxServiceAsyncImpl
import com.increase.api.services.async.OAuthApplicationServiceAsync
import com.increase.api.services.async.OAuthApplicationServiceAsyncImpl
import com.increase.api.services.async.OAuthConnectionServiceAsync
import com.increase.api.services.async.OAuthConnectionServiceAsyncImpl
import com.increase.api.services.async.OAuthTokenServiceAsync
Expand Down Expand Up @@ -311,6 +313,10 @@ constructor(
GroupServiceAsyncImpl(clientOptionsWithUserAgent)
}

private val oauthApplications: OAuthApplicationServiceAsync by lazy {
OAuthApplicationServiceAsyncImpl(clientOptionsWithUserAgent)
}

private val oauthConnections: OAuthConnectionServiceAsync by lazy {
OAuthConnectionServiceAsyncImpl(clientOptionsWithUserAgent)
}
Expand Down Expand Up @@ -442,6 +448,8 @@ constructor(

override fun groups(): GroupServiceAsync = groups

override fun oauthApplications(): OAuthApplicationServiceAsync = oauthApplications

override fun oauthConnections(): OAuthConnectionServiceAsync = oauthConnections

override fun oauthTokens(): OAuthTokenServiceAsync = oauthTokens
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ import com.increase.api.services.blocking.IntrafiExclusionService
import com.increase.api.services.blocking.IntrafiExclusionServiceImpl
import com.increase.api.services.blocking.LockboxService
import com.increase.api.services.blocking.LockboxServiceImpl
import com.increase.api.services.blocking.OAuthApplicationService
import com.increase.api.services.blocking.OAuthApplicationServiceImpl
import com.increase.api.services.blocking.OAuthConnectionService
import com.increase.api.services.blocking.OAuthConnectionServiceImpl
import com.increase.api.services.blocking.OAuthTokenService
Expand Down Expand Up @@ -296,6 +298,10 @@ constructor(

private val groups: GroupService by lazy { GroupServiceImpl(clientOptionsWithUserAgent) }

private val oauthApplications: OAuthApplicationService by lazy {
OAuthApplicationServiceImpl(clientOptionsWithUserAgent)
}

private val oauthConnections: OAuthConnectionService by lazy {
OAuthConnectionServiceImpl(clientOptionsWithUserAgent)
}
Expand Down Expand Up @@ -426,6 +432,8 @@ constructor(

override fun groups(): GroupService = groups

override fun oauthApplications(): OAuthApplicationService = oauthApplications

override fun oauthConnections(): OAuthConnectionService = oauthConnections

override fun oauthTokens(): OAuthTokenService = oauthTokens
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private constructor(

fun apiKey(apiKey: String) = apply { this.apiKey = apiKey }

fun webhookSecret(webhookSecret: String?) = apply { this.webhookSecret = webhookSecret }
fun webhookSecret(webhookSecret: String) = apply { this.webhookSecret = webhookSecret }

fun fromEnv() = apply {
System.getenv("INCREASE_API_KEY")?.let { apiKey(it) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ internal fun <T> List<T>.toImmutable(): List<T> =

@JvmSynthetic
internal fun <K, V> Map<K, V>.toImmutable(): Map<K, V> =
if (isEmpty()) Collections.emptyMap() else Collections.unmodifiableMap(toMap())
if (isEmpty()) immutableEmptyMap() else Collections.unmodifiableMap(toMap())

@JvmSynthetic internal fun <K, V> immutableEmptyMap(): Map<K, V> = Collections.emptyMap()

@JvmSynthetic
internal fun <K : Comparable<K>, V> SortedMap<K, V>.toImmutable(): SortedMap<K, V> =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,23 @@ package com.increase.api.errors

import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import com.fasterxml.jackson.annotation.JsonCreator
import com.increase.api.core.ExcludeMissing
import com.increase.api.core.JsonValue
import com.increase.api.core.NoAutoDetect
import com.increase.api.core.immutableEmptyMap
import com.increase.api.core.toImmutable
import java.util.Objects

@JsonDeserialize(builder = IncreaseError.Builder::class)
@NoAutoDetect
class IncreaseError
@JsonCreator
private constructor(
@JsonAnyGetter
@ExcludeMissing
@JsonAnySetter
@get:JvmName("additionalProperties")
val additionalProperties: Map<String, JsonValue>,
val additionalProperties: Map<String, JsonValue> = immutableEmptyMap(),
) {

fun toBuilder() = Builder().from(this)
Expand All @@ -40,7 +44,6 @@ private constructor(
putAllAdditionalProperties(additionalProperties)
}

@JsonAnySetter
fun putAdditionalProperty(key: String, value: JsonValue) = apply {
additionalProperties.put(key, value)
}
Expand Down
Loading
Loading