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.270.0"
".": "0.271.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 202
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7676b5dbe8bdcdb0ffd762bb7faef842a7a005be8fe9b560f4c5317db2f0beba.yml
openapi_spec_hash: b61b1ed2f6851a2c1b249785439a946e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5afe14a5606cebef2ccc6c4781d566b43509e01513e8e02e41adbdeaf3275f48.yml
openapi_spec_hash: 56857e37c0c6131096bf519d91ef76d2
config_hash: a185e9a72778cc4658ea73fb3a7f1354
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.271.0 (2025-08-02)

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

### Features

* **api:** api update ([943ed5c](https://github.com/Increase/increase-java/commit/943ed5c93eaa93263f0ed6339622d002710069c7))
* **api:** api update ([919debd](https://github.com/Increase/increase-java/commit/919debd4d02f49fc18dedc04cdaadb392e39560c))

## 0.270.0 (2025-08-01)

Full Changelog: [v0.269.1...v0.270.0](https://github.com/Increase/increase-java/compare/v0.269.1...v0.270.0)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- 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.270.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.270.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.270.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.271.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.271.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.271.0)

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

Expand All @@ -13,7 +13,7 @@ The Increase Java SDK is similar to the Increase Kotlin SDK but with minor diffe

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

The REST API documentation can be found on [increase.com](https://increase.com/documentation). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.increase.api/increase-java/0.270.0).
The REST API documentation can be found on [increase.com](https://increase.com/documentation). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.increase.api/increase-java/0.271.0).

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

Expand All @@ -24,7 +24,7 @@ The REST API documentation can be found on [increase.com](https://increase.com/d
### Gradle

```kotlin
implementation("com.increase.api:increase-java:0.270.0")
implementation("com.increase.api:increase-java:0.271.0")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.270.0")
<dependency>
<groupId>com.increase.api</groupId>
<artifactId>increase-java</artifactId>
<version>0.270.0</version>
<version>0.271.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 @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "com.increase.api"
version = "0.270.0" // x-release-please-version
version = "0.271.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4048,16 +4048,31 @@ private constructor(

companion object {

/** The Public Entity is a Municipality. */
/** A municipality. */
@JvmField val MUNICIPALITY = of("municipality")

/** A state agency. */
@JvmField val STATE_AGENCY = of("state_agency")

/** A state government. */
@JvmField val STATE_GOVERNMENT = of("state_government")

/** A federal agency. */
@JvmField val FEDERAL_AGENCY = of("federal_agency")

@JvmStatic fun of(value: String) = Category(JsonField.of(value))
}

/** An enum containing [Category]'s known values. */
enum class Known {
/** The Public Entity is a Municipality. */
MUNICIPALITY
/** A municipality. */
MUNICIPALITY,
/** A state agency. */
STATE_AGENCY,
/** A state government. */
STATE_GOVERNMENT,
/** A federal agency. */
FEDERAL_AGENCY,
}

/**
Expand All @@ -4070,8 +4085,14 @@ private constructor(
* - It was constructed with an arbitrary value using the [of] method.
*/
enum class Value {
/** The Public Entity is a Municipality. */
/** A municipality. */
MUNICIPALITY,
/** A state agency. */
STATE_AGENCY,
/** A state government. */
STATE_GOVERNMENT,
/** A federal agency. */
FEDERAL_AGENCY,
/**
* An enum member indicating that [Category] was instantiated with an unknown value.
*/
Expand All @@ -4088,6 +4109,9 @@ private constructor(
fun value(): Value =
when (this) {
MUNICIPALITY -> Value.MUNICIPALITY
STATE_AGENCY -> Value.STATE_AGENCY
STATE_GOVERNMENT -> Value.STATE_GOVERNMENT
FEDERAL_AGENCY -> Value.FEDERAL_AGENCY
else -> Value._UNKNOWN
}

Expand All @@ -4103,6 +4127,9 @@ private constructor(
fun known(): Known =
when (this) {
MUNICIPALITY -> Known.MUNICIPALITY
STATE_AGENCY -> Known.STATE_AGENCY
STATE_GOVERNMENT -> Known.STATE_GOVERNMENT
FEDERAL_AGENCY -> Known.FEDERAL_AGENCY
else -> throw IncreaseInvalidDataException("Unknown Category: $value")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5672,16 +5672,31 @@ private constructor(

companion object {

/** The Public Entity is a Municipality. */
/** A municipality. */
@JvmField val MUNICIPALITY = of("municipality")

/** A state agency. */
@JvmField val STATE_AGENCY = of("state_agency")

/** A state government. */
@JvmField val STATE_GOVERNMENT = of("state_government")

/** A federal agency. */
@JvmField val FEDERAL_AGENCY = of("federal_agency")

@JvmStatic fun of(value: String) = Category(JsonField.of(value))
}

/** An enum containing [Category]'s known values. */
enum class Known {
/** The Public Entity is a Municipality. */
MUNICIPALITY
/** A municipality. */
MUNICIPALITY,
/** A state agency. */
STATE_AGENCY,
/** A state government. */
STATE_GOVERNMENT,
/** A federal agency. */
FEDERAL_AGENCY,
}

/**
Expand All @@ -5694,8 +5709,14 @@ private constructor(
* - It was constructed with an arbitrary value using the [of] method.
*/
enum class Value {
/** The Public Entity is a Municipality. */
/** A municipality. */
MUNICIPALITY,
/** A state agency. */
STATE_AGENCY,
/** A state government. */
STATE_GOVERNMENT,
/** A federal agency. */
FEDERAL_AGENCY,
/**
* An enum member indicating that [Category] was instantiated with an unknown value.
*/
Expand All @@ -5712,6 +5733,9 @@ private constructor(
fun value(): Value =
when (this) {
MUNICIPALITY -> Value.MUNICIPALITY
STATE_AGENCY -> Value.STATE_AGENCY
STATE_GOVERNMENT -> Value.STATE_GOVERNMENT
FEDERAL_AGENCY -> Value.FEDERAL_AGENCY
else -> Value._UNKNOWN
}

Expand All @@ -5727,6 +5751,9 @@ private constructor(
fun known(): Known =
when (this) {
MUNICIPALITY -> Known.MUNICIPALITY
STATE_AGENCY -> Known.STATE_AGENCY
STATE_GOVERNMENT -> Known.STATE_GOVERNMENT
FEDERAL_AGENCY -> Known.FEDERAL_AGENCY
else -> throw IncreaseInvalidDataException("Unknown Category: $value")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ private constructor(
*/
fun frontText(): Optional<FrontText> = body.frontText()

/**
* The identifier of the Program to use for the cloned Physical Card Profile.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun programId(): Optional<String> = body.programId()

/**
* Returns the raw JSON value of [carrierImageFileId].
*
Expand Down Expand Up @@ -110,6 +118,13 @@ private constructor(
*/
fun _frontText(): JsonField<FrontText> = body._frontText()

/**
* Returns the raw JSON value of [programId].
*
* Unlike [programId], this method doesn't throw if the JSON field has an unexpected type.
*/
fun _programId(): JsonField<String> = body._programId()

fun _additionalBodyProperties(): Map<String, JsonValue> = body._additionalProperties()

/** Additional headers to send with the request. */
Expand Down Expand Up @@ -246,6 +261,18 @@ private constructor(
*/
fun frontText(frontText: JsonField<FrontText>) = apply { body.frontText(frontText) }

/** The identifier of the Program to use for the cloned Physical Card Profile. */
fun programId(programId: String) = apply { body.programId(programId) }

/**
* Sets [Builder.programId] to an arbitrary JSON value.
*
* You should usually call [Builder.programId] with a well-typed [String] value instead.
* This method is primarily for setting the field to an undocumented or not yet supported
* value.
*/
fun programId(programId: JsonField<String>) = apply { body.programId(programId) }

fun additionalBodyProperties(additionalBodyProperties: Map<String, JsonValue>) = apply {
body.additionalProperties(additionalBodyProperties)
}
Expand Down Expand Up @@ -396,6 +423,7 @@ private constructor(
private val description: JsonField<String>,
private val frontImageFileId: JsonField<String>,
private val frontText: JsonField<FrontText>,
private val programId: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {

Expand All @@ -416,12 +444,16 @@ private constructor(
@JsonProperty("front_text")
@ExcludeMissing
frontText: JsonField<FrontText> = JsonMissing.of(),
@JsonProperty("program_id")
@ExcludeMissing
programId: JsonField<String> = JsonMissing.of(),
) : this(
carrierImageFileId,
contactPhone,
description,
frontImageFileId,
frontText,
programId,
mutableMapOf(),
)

Expand Down Expand Up @@ -468,6 +500,14 @@ private constructor(
*/
fun frontText(): Optional<FrontText> = frontText.getOptional("front_text")

/**
* The identifier of the Program to use for the cloned Physical Card Profile.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun programId(): Optional<String> = programId.getOptional("program_id")

/**
* Returns the raw JSON value of [carrierImageFileId].
*
Expand Down Expand Up @@ -516,6 +556,13 @@ private constructor(
@ExcludeMissing
fun _frontText(): JsonField<FrontText> = frontText

/**
* Returns the raw JSON value of [programId].
*
* Unlike [programId], this method doesn't throw if the JSON field has an unexpected type.
*/
@JsonProperty("program_id") @ExcludeMissing fun _programId(): JsonField<String> = programId

@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
Expand All @@ -542,6 +589,7 @@ private constructor(
private var description: JsonField<String> = JsonMissing.of()
private var frontImageFileId: JsonField<String> = JsonMissing.of()
private var frontText: JsonField<FrontText> = JsonMissing.of()
private var programId: JsonField<String> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
Expand All @@ -551,6 +599,7 @@ private constructor(
description = body.description
frontImageFileId = body.frontImageFileId
frontText = body.frontText
programId = body.programId
additionalProperties = body.additionalProperties.toMutableMap()
}

Expand Down Expand Up @@ -627,6 +676,18 @@ private constructor(
*/
fun frontText(frontText: JsonField<FrontText>) = apply { this.frontText = frontText }

/** The identifier of the Program to use for the cloned Physical Card Profile. */
fun programId(programId: String) = programId(JsonField.of(programId))

/**
* Sets [Builder.programId] to an arbitrary JSON value.
*
* You should usually call [Builder.programId] with a well-typed [String] value instead.
* This method is primarily for setting the field to an undocumented or not yet
* supported value.
*/
fun programId(programId: JsonField<String>) = apply { this.programId = programId }

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
Expand Down Expand Up @@ -658,6 +719,7 @@ private constructor(
description,
frontImageFileId,
frontText,
programId,
additionalProperties.toMutableMap(),
)
}
Expand All @@ -674,6 +736,7 @@ private constructor(
description()
frontImageFileId()
frontText().ifPresent { it.validate() }
programId()
validated = true
}

Expand All @@ -697,24 +760,25 @@ private constructor(
(if (contactPhone.asKnown().isPresent) 1 else 0) +
(if (description.asKnown().isPresent) 1 else 0) +
(if (frontImageFileId.asKnown().isPresent) 1 else 0) +
(frontText.asKnown().getOrNull()?.validity() ?: 0)
(frontText.asKnown().getOrNull()?.validity() ?: 0) +
(if (programId.asKnown().isPresent) 1 else 0)

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return /* spotless:off */ other is Body && carrierImageFileId == other.carrierImageFileId && contactPhone == other.contactPhone && description == other.description && frontImageFileId == other.frontImageFileId && frontText == other.frontText && additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is Body && carrierImageFileId == other.carrierImageFileId && contactPhone == other.contactPhone && description == other.description && frontImageFileId == other.frontImageFileId && frontText == other.frontText && programId == other.programId && additionalProperties == other.additionalProperties /* spotless:on */
}

/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(carrierImageFileId, contactPhone, description, frontImageFileId, frontText, additionalProperties) }
private val hashCode: Int by lazy { Objects.hash(carrierImageFileId, contactPhone, description, frontImageFileId, frontText, programId, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int = hashCode

override fun toString() =
"Body{carrierImageFileId=$carrierImageFileId, contactPhone=$contactPhone, description=$description, frontImageFileId=$frontImageFileId, frontText=$frontText, additionalProperties=$additionalProperties}"
"Body{carrierImageFileId=$carrierImageFileId, contactPhone=$contactPhone, description=$description, frontImageFileId=$frontImageFileId, frontText=$frontText, programId=$programId, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Loading
Loading