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.311.1"
".": "0.312.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: 216
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-4951789bd74367647a7109ac527206883115628aac13b8131b0bc046ead9cc5c.yml
openapi_spec_hash: 924a557a551c40624e4fe4703dec71cc
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fbdfb5721d0c46a176ee6d81936d2710556c39cc486c5de246cc17b0503ee408.yml
openapi_spec_hash: 66c900a94b458e5b796ac1d2a5fceb13
config_hash: 632b628b59d8f0b717153b3d8133f6cb
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.312.0 (2025-09-04)

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

### Features

* **api:** api update ([bcf7b63](https://github.com/Increase/increase-java/commit/bcf7b63d51c29f329956b4fbbf5e9a1433e72af0))

## 0.311.1 (2025-09-03)

Full Changelog: [v0.311.0...v0.311.1](https://github.com/Increase/increase-java/compare/v0.311.0...v0.311.1)
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.311.1)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.311.1/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.311.1)
[![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.312.0)
[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.312.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.312.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.311.1).
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.312.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.311.1")
implementation("com.increase.api:increase-java:0.312.0")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.311.1")
<dependency>
<groupId>com.increase.api</groupId>
<artifactId>increase-java</artifactId>
<version>0.311.1</version>
<version>0.312.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.311.1" // x-release-please-version
version = "0.312.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,24 @@ private constructor(
*/
fun programId(): String = body.programId()

/**
* A reference ID provided by the fulfillment provider for the card stock used. Only used if
* you've ordered card stock separately.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun cardStockReference(): Optional<String> = body.cardStockReference()

/**
* A reference ID provided by the fulfillment provider for the carrier stock used. Only used if
* you've ordered carrier stock separately.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun carrierStockReference(): Optional<String> = body.carrierStockReference()

/**
* Text printed on the front of the card. Reach out to
* [support@increase.com](mailto:support@increase.com) for more information.
Expand Down Expand Up @@ -114,6 +132,22 @@ private constructor(
*/
fun _programId(): JsonField<String> = body._programId()

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

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

/**
* Returns the raw JSON value of [frontText].
*
Expand Down Expand Up @@ -249,6 +283,44 @@ private constructor(
*/
fun programId(programId: JsonField<String>) = apply { body.programId(programId) }

/**
* A reference ID provided by the fulfillment provider for the card stock used. Only used if
* you've ordered card stock separately.
*/
fun cardStockReference(cardStockReference: String) = apply {
body.cardStockReference(cardStockReference)
}

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

/**
* A reference ID provided by the fulfillment provider for the carrier stock used. Only used
* if you've ordered carrier stock separately.
*/
fun carrierStockReference(carrierStockReference: String) = apply {
body.carrierStockReference(carrierStockReference)
}

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

/**
* Text printed on the front of the card. Reach out to
* [support@increase.com](mailto:support@increase.com) for more information.
Expand Down Expand Up @@ -418,6 +490,8 @@ private constructor(
private val description: JsonField<String>,
private val frontImageFileId: JsonField<String>,
private val programId: JsonField<String>,
private val cardStockReference: JsonField<String>,
private val carrierStockReference: JsonField<String>,
private val frontText: JsonField<FrontText>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {
Expand All @@ -439,6 +513,12 @@ private constructor(
@JsonProperty("program_id")
@ExcludeMissing
programId: JsonField<String> = JsonMissing.of(),
@JsonProperty("card_stock_reference")
@ExcludeMissing
cardStockReference: JsonField<String> = JsonMissing.of(),
@JsonProperty("carrier_stock_reference")
@ExcludeMissing
carrierStockReference: JsonField<String> = JsonMissing.of(),
@JsonProperty("front_text")
@ExcludeMissing
frontText: JsonField<FrontText> = JsonMissing.of(),
Expand All @@ -448,6 +528,8 @@ private constructor(
description,
frontImageFileId,
programId,
cardStockReference,
carrierStockReference,
frontText,
mutableMapOf(),
)
Expand Down Expand Up @@ -492,6 +574,26 @@ private constructor(
*/
fun programId(): String = programId.getRequired("program_id")

/**
* A reference ID provided by the fulfillment provider for the card stock used. Only used if
* you've ordered card stock separately.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun cardStockReference(): Optional<String> =
cardStockReference.getOptional("card_stock_reference")

/**
* A reference ID provided by the fulfillment provider for the carrier stock used. Only used
* if you've ordered carrier stock separately.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
*/
fun carrierStockReference(): Optional<String> =
carrierStockReference.getOptional("carrier_stock_reference")

/**
* Text printed on the front of the card. Reach out to
* [support@increase.com](mailto:support@increase.com) for more information.
Expand Down Expand Up @@ -547,6 +649,26 @@ private constructor(
*/
@JsonProperty("program_id") @ExcludeMissing fun _programId(): JsonField<String> = programId

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

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

/**
* Returns the raw JSON value of [frontText].
*
Expand Down Expand Up @@ -593,6 +715,8 @@ private constructor(
private var description: JsonField<String>? = null
private var frontImageFileId: JsonField<String>? = null
private var programId: JsonField<String>? = null
private var cardStockReference: JsonField<String> = JsonMissing.of()
private var carrierStockReference: JsonField<String> = JsonMissing.of()
private var frontText: JsonField<FrontText> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

Expand All @@ -603,6 +727,8 @@ private constructor(
description = body.description
frontImageFileId = body.frontImageFileId
programId = body.programId
cardStockReference = body.cardStockReference
carrierStockReference = body.carrierStockReference
frontText = body.frontText
additionalProperties = body.additionalProperties.toMutableMap()
}
Expand Down Expand Up @@ -677,6 +803,42 @@ private constructor(
*/
fun programId(programId: JsonField<String>) = apply { this.programId = programId }

/**
* A reference ID provided by the fulfillment provider for the card stock used. Only
* used if you've ordered card stock separately.
*/
fun cardStockReference(cardStockReference: String) =
cardStockReference(JsonField.of(cardStockReference))

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

/**
* A reference ID provided by the fulfillment provider for the carrier stock used. Only
* used if you've ordered carrier stock separately.
*/
fun carrierStockReference(carrierStockReference: String) =
carrierStockReference(JsonField.of(carrierStockReference))

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

/**
* Text printed on the front of the card. Reach out to
* [support@increase.com](mailto:support@increase.com) for more information.
Expand Down Expand Up @@ -734,6 +896,8 @@ private constructor(
checkRequired("description", description),
checkRequired("frontImageFileId", frontImageFileId),
checkRequired("programId", programId),
cardStockReference,
carrierStockReference,
frontText,
additionalProperties.toMutableMap(),
)
Expand All @@ -751,6 +915,8 @@ private constructor(
description()
frontImageFileId()
programId()
cardStockReference()
carrierStockReference()
frontText().ifPresent { it.validate() }
validated = true
}
Expand All @@ -776,6 +942,8 @@ private constructor(
(if (description.asKnown().isPresent) 1 else 0) +
(if (frontImageFileId.asKnown().isPresent) 1 else 0) +
(if (programId.asKnown().isPresent) 1 else 0) +
(if (cardStockReference.asKnown().isPresent) 1 else 0) +
(if (carrierStockReference.asKnown().isPresent) 1 else 0) +
(frontText.asKnown().getOrNull()?.validity() ?: 0)

override fun equals(other: Any?): Boolean {
Expand All @@ -789,6 +957,8 @@ private constructor(
description == other.description &&
frontImageFileId == other.frontImageFileId &&
programId == other.programId &&
cardStockReference == other.cardStockReference &&
carrierStockReference == other.carrierStockReference &&
frontText == other.frontText &&
additionalProperties == other.additionalProperties
}
Expand All @@ -800,6 +970,8 @@ private constructor(
description,
frontImageFileId,
programId,
cardStockReference,
carrierStockReference,
frontText,
additionalProperties,
)
Expand All @@ -808,7 +980,7 @@ private constructor(
override fun hashCode(): Int = hashCode

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

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ internal class PhysicalCardProfileCreateParamsTest {
.description("My Card Profile")
.frontImageFileId("file_o6aex13wm1jcc36sgcj1")
.programId("program_i2v2os4mwza1oetokh9i")
.cardStockReference("x")
.carrierStockReference("x")
.frontText(
PhysicalCardProfileCreateParams.FrontText.builder().line1("x").line2("x").build()
)
Expand All @@ -30,6 +32,8 @@ internal class PhysicalCardProfileCreateParamsTest {
.description("My Card Profile")
.frontImageFileId("file_o6aex13wm1jcc36sgcj1")
.programId("program_i2v2os4mwza1oetokh9i")
.cardStockReference("x")
.carrierStockReference("x")
.frontText(
PhysicalCardProfileCreateParams.FrontText.builder()
.line1("x")
Expand All @@ -45,6 +49,8 @@ internal class PhysicalCardProfileCreateParamsTest {
assertThat(body.description()).isEqualTo("My Card Profile")
assertThat(body.frontImageFileId()).isEqualTo("file_o6aex13wm1jcc36sgcj1")
assertThat(body.programId()).isEqualTo("program_i2v2os4mwza1oetokh9i")
assertThat(body.cardStockReference()).contains("x")
assertThat(body.carrierStockReference()).contains("x")
assertThat(body.frontText())
.contains(
PhysicalCardProfileCreateParams.FrontText.builder().line1("x").line2("x").build()
Expand Down
Loading
Loading