diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index d4bd34171..34760ea6d 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.316.0"
+ ".": "0.317.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 675fc1658..09d98d352 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 217
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a91424eba488276a87e396d4172d7381d22e9ff38639a98aafdbcc2f8b53d000.yml
-openapi_spec_hash: 52c779ffbbb1e3a46738d374849ca92b
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-98bb100223960756975a05c102fb497e2dba7857b02bec559ebc60d6c38d78e4.yml
+openapi_spec_hash: b19fcec9237b7b3394002cfb662b391f
config_hash: e1885b38eded054b77308a024c5d80cc
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 28dadf095..d273387eb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.317.0 (2025-09-07)
+
+Full Changelog: [v0.316.0...v0.317.0](https://github.com/Increase/increase-java/compare/v0.316.0...v0.317.0)
+
+### Features
+
+* **api:** api update ([cb56b44](https://github.com/Increase/increase-java/commit/cb56b442991a71ff607c96f041b232118e7218a4))
+
## 0.316.0 (2025-09-05)
Full Changelog: [v0.315.0...v0.316.0](https://github.com/Increase/increase-java/compare/v0.315.0...v0.316.0)
diff --git a/README.md b/README.md
index 8fcadd0d1..84d68c453 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.316.0)
-[](https://javadoc.io/doc/com.increase.api/increase-java/0.316.0)
+[](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.317.0)
+[](https://javadoc.io/doc/com.increase.api/increase-java/0.317.0)
@@ -13,7 +13,7 @@ The Increase Java SDK is similar to the Increase Kotlin SDK but with minor diffe
-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.316.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.317.0).
@@ -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.316.0")
+implementation("com.increase.api:increase-java:0.317.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.316.0")
com.increase.api
increase-java
- 0.316.0
+ 0.317.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index ea794d305..87d67e453 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.increase.api"
- version = "0.316.0" // x-release-please-version
+ version = "0.317.0" // x-release-please-version
}
subprojects {
diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParams.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParams.kt
index 1cc4f159c..cf75f642f 100644
--- a/increase-java-core/src/main/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParams.kt
+++ b/increase-java-core/src/main/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParams.kt
@@ -6,6 +6,7 @@ import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
+import com.increase.api.core.Enum
import com.increase.api.core.ExcludeMissing
import com.increase.api.core.JsonField
import com.increase.api.core.JsonMissing
@@ -68,6 +69,14 @@ private constructor(
*/
fun programId(): String = body.programId()
+ /**
+ * The color of the text on the back of the card. Defaults to "black".
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun backColor(): Optional = body.backColor()
+
/**
* A reference ID provided by the fulfillment provider for the card stock used. Only used if
* you've ordered card stock separately.
@@ -86,6 +95,14 @@ private constructor(
*/
fun carrierStockReference(): Optional = body.carrierStockReference()
+ /**
+ * The color of the design on the front of the card. Defaults to "black".
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun frontColor(): Optional = body.frontColor()
+
/**
* Text printed on the front of the card. Reach out to
* [support@increase.com](mailto:support@increase.com) for more information.
@@ -132,6 +149,13 @@ private constructor(
*/
fun _programId(): JsonField = body._programId()
+ /**
+ * Returns the raw JSON value of [backColor].
+ *
+ * Unlike [backColor], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ fun _backColor(): JsonField = body._backColor()
+
/**
* Returns the raw JSON value of [cardStockReference].
*
@@ -148,6 +172,13 @@ private constructor(
*/
fun _carrierStockReference(): JsonField = body._carrierStockReference()
+ /**
+ * Returns the raw JSON value of [frontColor].
+ *
+ * Unlike [frontColor], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ fun _frontColor(): JsonField = body._frontColor()
+
/**
* Returns the raw JSON value of [frontText].
*
@@ -283,6 +314,18 @@ private constructor(
*/
fun programId(programId: JsonField) = apply { body.programId(programId) }
+ /** The color of the text on the back of the card. Defaults to "black". */
+ fun backColor(backColor: BackColor) = apply { body.backColor(backColor) }
+
+ /**
+ * Sets [Builder.backColor] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.backColor] with a well-typed [BackColor] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet supported
+ * value.
+ */
+ fun backColor(backColor: JsonField) = apply { body.backColor(backColor) }
+
/**
* A reference ID provided by the fulfillment provider for the card stock used. Only used if
* you've ordered card stock separately.
@@ -321,6 +364,18 @@ private constructor(
body.carrierStockReference(carrierStockReference)
}
+ /** The color of the design on the front of the card. Defaults to "black". */
+ fun frontColor(frontColor: FrontColor) = apply { body.frontColor(frontColor) }
+
+ /**
+ * Sets [Builder.frontColor] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.frontColor] with a well-typed [FrontColor] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun frontColor(frontColor: JsonField) = apply { body.frontColor(frontColor) }
+
/**
* Text printed on the front of the card. Reach out to
* [support@increase.com](mailto:support@increase.com) for more information.
@@ -490,8 +545,10 @@ private constructor(
private val description: JsonField,
private val frontImageFileId: JsonField,
private val programId: JsonField,
+ private val backColor: JsonField,
private val cardStockReference: JsonField,
private val carrierStockReference: JsonField,
+ private val frontColor: JsonField,
private val frontText: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -513,12 +570,18 @@ private constructor(
@JsonProperty("program_id")
@ExcludeMissing
programId: JsonField = JsonMissing.of(),
+ @JsonProperty("back_color")
+ @ExcludeMissing
+ backColor: JsonField = JsonMissing.of(),
@JsonProperty("card_stock_reference")
@ExcludeMissing
cardStockReference: JsonField = JsonMissing.of(),
@JsonProperty("carrier_stock_reference")
@ExcludeMissing
carrierStockReference: JsonField = JsonMissing.of(),
+ @JsonProperty("front_color")
+ @ExcludeMissing
+ frontColor: JsonField = JsonMissing.of(),
@JsonProperty("front_text")
@ExcludeMissing
frontText: JsonField = JsonMissing.of(),
@@ -528,8 +591,10 @@ private constructor(
description,
frontImageFileId,
programId,
+ backColor,
cardStockReference,
carrierStockReference,
+ frontColor,
frontText,
mutableMapOf(),
)
@@ -574,6 +639,14 @@ private constructor(
*/
fun programId(): String = programId.getRequired("program_id")
+ /**
+ * The color of the text on the back of the card. Defaults to "black".
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun backColor(): Optional = backColor.getOptional("back_color")
+
/**
* A reference ID provided by the fulfillment provider for the card stock used. Only used if
* you've ordered card stock separately.
@@ -594,6 +667,14 @@ private constructor(
fun carrierStockReference(): Optional =
carrierStockReference.getOptional("carrier_stock_reference")
+ /**
+ * The color of the design on the front of the card. Defaults to "black".
+ *
+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun frontColor(): Optional = frontColor.getOptional("front_color")
+
/**
* Text printed on the front of the card. Reach out to
* [support@increase.com](mailto:support@increase.com) for more information.
@@ -649,6 +730,15 @@ private constructor(
*/
@JsonProperty("program_id") @ExcludeMissing fun _programId(): JsonField = programId
+ /**
+ * Returns the raw JSON value of [backColor].
+ *
+ * Unlike [backColor], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("back_color")
+ @ExcludeMissing
+ fun _backColor(): JsonField = backColor
+
/**
* Returns the raw JSON value of [cardStockReference].
*
@@ -669,6 +759,15 @@ private constructor(
@ExcludeMissing
fun _carrierStockReference(): JsonField = carrierStockReference
+ /**
+ * Returns the raw JSON value of [frontColor].
+ *
+ * Unlike [frontColor], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("front_color")
+ @ExcludeMissing
+ fun _frontColor(): JsonField = frontColor
+
/**
* Returns the raw JSON value of [frontText].
*
@@ -715,8 +814,10 @@ private constructor(
private var description: JsonField? = null
private var frontImageFileId: JsonField? = null
private var programId: JsonField? = null
+ private var backColor: JsonField = JsonMissing.of()
private var cardStockReference: JsonField = JsonMissing.of()
private var carrierStockReference: JsonField = JsonMissing.of()
+ private var frontColor: JsonField = JsonMissing.of()
private var frontText: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@@ -727,8 +828,10 @@ private constructor(
description = body.description
frontImageFileId = body.frontImageFileId
programId = body.programId
+ backColor = body.backColor
cardStockReference = body.cardStockReference
carrierStockReference = body.carrierStockReference
+ frontColor = body.frontColor
frontText = body.frontText
additionalProperties = body.additionalProperties.toMutableMap()
}
@@ -803,6 +906,18 @@ private constructor(
*/
fun programId(programId: JsonField) = apply { this.programId = programId }
+ /** The color of the text on the back of the card. Defaults to "black". */
+ fun backColor(backColor: BackColor) = backColor(JsonField.of(backColor))
+
+ /**
+ * Sets [Builder.backColor] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.backColor] with a well-typed [BackColor] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun backColor(backColor: JsonField) = apply { this.backColor = backColor }
+
/**
* A reference ID provided by the fulfillment provider for the card stock used. Only
* used if you've ordered card stock separately.
@@ -839,6 +954,20 @@ private constructor(
this.carrierStockReference = carrierStockReference
}
+ /** The color of the design on the front of the card. Defaults to "black". */
+ fun frontColor(frontColor: FrontColor) = frontColor(JsonField.of(frontColor))
+
+ /**
+ * Sets [Builder.frontColor] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.frontColor] with a well-typed [FrontColor] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun frontColor(frontColor: JsonField) = apply {
+ this.frontColor = frontColor
+ }
+
/**
* Text printed on the front of the card. Reach out to
* [support@increase.com](mailto:support@increase.com) for more information.
@@ -896,8 +1025,10 @@ private constructor(
checkRequired("description", description),
checkRequired("frontImageFileId", frontImageFileId),
checkRequired("programId", programId),
+ backColor,
cardStockReference,
carrierStockReference,
+ frontColor,
frontText,
additionalProperties.toMutableMap(),
)
@@ -915,8 +1046,10 @@ private constructor(
description()
frontImageFileId()
programId()
+ backColor().ifPresent { it.validate() }
cardStockReference()
carrierStockReference()
+ frontColor().ifPresent { it.validate() }
frontText().ifPresent { it.validate() }
validated = true
}
@@ -942,8 +1075,10 @@ private constructor(
(if (description.asKnown().isPresent) 1 else 0) +
(if (frontImageFileId.asKnown().isPresent) 1 else 0) +
(if (programId.asKnown().isPresent) 1 else 0) +
+ (backColor.asKnown().getOrNull()?.validity() ?: 0) +
(if (cardStockReference.asKnown().isPresent) 1 else 0) +
(if (carrierStockReference.asKnown().isPresent) 1 else 0) +
+ (frontColor.asKnown().getOrNull()?.validity() ?: 0) +
(frontText.asKnown().getOrNull()?.validity() ?: 0)
override fun equals(other: Any?): Boolean {
@@ -957,8 +1092,10 @@ private constructor(
description == other.description &&
frontImageFileId == other.frontImageFileId &&
programId == other.programId &&
+ backColor == other.backColor &&
cardStockReference == other.cardStockReference &&
carrierStockReference == other.carrierStockReference &&
+ frontColor == other.frontColor &&
frontText == other.frontText &&
additionalProperties == other.additionalProperties
}
@@ -970,8 +1107,10 @@ private constructor(
description,
frontImageFileId,
programId,
+ backColor,
cardStockReference,
carrierStockReference,
+ frontColor,
frontText,
additionalProperties,
)
@@ -980,7 +1119,279 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Body{carrierImageFileId=$carrierImageFileId, contactPhone=$contactPhone, description=$description, frontImageFileId=$frontImageFileId, programId=$programId, cardStockReference=$cardStockReference, carrierStockReference=$carrierStockReference, frontText=$frontText, additionalProperties=$additionalProperties}"
+ "Body{carrierImageFileId=$carrierImageFileId, contactPhone=$contactPhone, description=$description, frontImageFileId=$frontImageFileId, programId=$programId, backColor=$backColor, cardStockReference=$cardStockReference, carrierStockReference=$carrierStockReference, frontColor=$frontColor, frontText=$frontText, additionalProperties=$additionalProperties}"
+ }
+
+ /** The color of the text on the back of the card. Defaults to "black". */
+ class BackColor @JsonCreator private constructor(private val value: JsonField) : Enum {
+
+ /**
+ * Returns this class instance's raw value.
+ *
+ * This is usually only useful if this instance was deserialized from data that doesn't
+ * match any known member, and you want to know that value. For example, if the SDK is on an
+ * older version than the API, then the API may respond with new members that the SDK is
+ * unaware of.
+ */
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ companion object {
+
+ /** Black personalization color. */
+ @JvmField val BLACK = of("black")
+
+ /** White personalization color. */
+ @JvmField val WHITE = of("white")
+
+ @JvmStatic fun of(value: String) = BackColor(JsonField.of(value))
+ }
+
+ /** An enum containing [BackColor]'s known values. */
+ enum class Known {
+ /** Black personalization color. */
+ BLACK,
+ /** White personalization color. */
+ WHITE,
+ }
+
+ /**
+ * An enum containing [BackColor]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [BackColor] can contain an unknown value in a couple of cases:
+ * - It was deserialized from data that doesn't match any known member. For example, if the
+ * SDK is on an older version than the API, then the API may respond with new members that
+ * the SDK is unaware of.
+ * - It was constructed with an arbitrary value using the [of] method.
+ */
+ enum class Value {
+ /** Black personalization color. */
+ BLACK,
+ /** White personalization color. */
+ WHITE,
+ /**
+ * An enum member indicating that [BackColor] was instantiated with an unknown value.
+ */
+ _UNKNOWN,
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN]
+ * if the class was instantiated with an unknown value.
+ *
+ * Use the [known] method instead if you're certain the value is always known or if you want
+ * to throw for the unknown case.
+ */
+ fun value(): Value =
+ when (this) {
+ BLACK -> Value.BLACK
+ WHITE -> Value.WHITE
+ else -> Value._UNKNOWN
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value.
+ *
+ * Use the [value] method instead if you're uncertain the value is always known and don't
+ * want to throw for the unknown case.
+ *
+ * @throws IncreaseInvalidDataException if this class instance's value is a not a known
+ * member.
+ */
+ fun known(): Known =
+ when (this) {
+ BLACK -> Known.BLACK
+ WHITE -> Known.WHITE
+ else -> throw IncreaseInvalidDataException("Unknown BackColor: $value")
+ }
+
+ /**
+ * Returns this class instance's primitive wire representation.
+ *
+ * This differs from the [toString] method because that method is primarily for debugging
+ * and generally doesn't throw.
+ *
+ * @throws IncreaseInvalidDataException if this class instance's value does not have the
+ * expected primitive type.
+ */
+ fun asString(): String =
+ _value().asString().orElseThrow {
+ IncreaseInvalidDataException("Value is not a String")
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): BackColor = apply {
+ if (validated) {
+ return@apply
+ }
+
+ known()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: IncreaseInvalidDataException) {
+ false
+ }
+
+ /**
+ * Returns a score indicating how many valid values are contained in this object
+ * recursively.
+ *
+ * Used for best match union deserialization.
+ */
+ @JvmSynthetic internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is BackColor && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
+ }
+
+ /** The color of the design on the front of the card. Defaults to "black". */
+ class FrontColor @JsonCreator private constructor(private val value: JsonField) : Enum {
+
+ /**
+ * Returns this class instance's raw value.
+ *
+ * This is usually only useful if this instance was deserialized from data that doesn't
+ * match any known member, and you want to know that value. For example, if the SDK is on an
+ * older version than the API, then the API may respond with new members that the SDK is
+ * unaware of.
+ */
+ @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value
+
+ companion object {
+
+ /** Black personalization color. */
+ @JvmField val BLACK = of("black")
+
+ /** White personalization color. */
+ @JvmField val WHITE = of("white")
+
+ @JvmStatic fun of(value: String) = FrontColor(JsonField.of(value))
+ }
+
+ /** An enum containing [FrontColor]'s known values. */
+ enum class Known {
+ /** Black personalization color. */
+ BLACK,
+ /** White personalization color. */
+ WHITE,
+ }
+
+ /**
+ * An enum containing [FrontColor]'s known values, as well as an [_UNKNOWN] member.
+ *
+ * An instance of [FrontColor] can contain an unknown value in a couple of cases:
+ * - It was deserialized from data that doesn't match any known member. For example, if the
+ * SDK is on an older version than the API, then the API may respond with new members that
+ * the SDK is unaware of.
+ * - It was constructed with an arbitrary value using the [of] method.
+ */
+ enum class Value {
+ /** Black personalization color. */
+ BLACK,
+ /** White personalization color. */
+ WHITE,
+ /**
+ * An enum member indicating that [FrontColor] was instantiated with an unknown value.
+ */
+ _UNKNOWN,
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value, or [Value._UNKNOWN]
+ * if the class was instantiated with an unknown value.
+ *
+ * Use the [known] method instead if you're certain the value is always known or if you want
+ * to throw for the unknown case.
+ */
+ fun value(): Value =
+ when (this) {
+ BLACK -> Value.BLACK
+ WHITE -> Value.WHITE
+ else -> Value._UNKNOWN
+ }
+
+ /**
+ * Returns an enum member corresponding to this class instance's value.
+ *
+ * Use the [value] method instead if you're uncertain the value is always known and don't
+ * want to throw for the unknown case.
+ *
+ * @throws IncreaseInvalidDataException if this class instance's value is a not a known
+ * member.
+ */
+ fun known(): Known =
+ when (this) {
+ BLACK -> Known.BLACK
+ WHITE -> Known.WHITE
+ else -> throw IncreaseInvalidDataException("Unknown FrontColor: $value")
+ }
+
+ /**
+ * Returns this class instance's primitive wire representation.
+ *
+ * This differs from the [toString] method because that method is primarily for debugging
+ * and generally doesn't throw.
+ *
+ * @throws IncreaseInvalidDataException if this class instance's value does not have the
+ * expected primitive type.
+ */
+ fun asString(): String =
+ _value().asString().orElseThrow {
+ IncreaseInvalidDataException("Value is not a String")
+ }
+
+ private var validated: Boolean = false
+
+ fun validate(): FrontColor = apply {
+ if (validated) {
+ return@apply
+ }
+
+ known()
+ validated = true
+ }
+
+ fun isValid(): Boolean =
+ try {
+ validate()
+ true
+ } catch (e: IncreaseInvalidDataException) {
+ false
+ }
+
+ /**
+ * Returns a score indicating how many valid values are contained in this object
+ * recursively.
+ *
+ * Used for best match union deserialization.
+ */
+ @JvmSynthetic internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return other is FrontColor && value == other.value
+ }
+
+ override fun hashCode() = value.hashCode()
+
+ override fun toString() = value.toString()
}
/**
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParamsTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParamsTest.kt
index 7d1ba2ff2..0f81afc9e 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParamsTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/models/physicalcardprofiles/PhysicalCardProfileCreateParamsTest.kt
@@ -15,8 +15,10 @@ internal class PhysicalCardProfileCreateParamsTest {
.description("My Card Profile")
.frontImageFileId("file_o6aex13wm1jcc36sgcj1")
.programId("program_i2v2os4mwza1oetokh9i")
+ .backColor(PhysicalCardProfileCreateParams.BackColor.BLACK)
.cardStockReference("x")
.carrierStockReference("x")
+ .frontColor(PhysicalCardProfileCreateParams.FrontColor.BLACK)
.frontText(
PhysicalCardProfileCreateParams.FrontText.builder().line1("x").line2("x").build()
)
@@ -32,8 +34,10 @@ internal class PhysicalCardProfileCreateParamsTest {
.description("My Card Profile")
.frontImageFileId("file_o6aex13wm1jcc36sgcj1")
.programId("program_i2v2os4mwza1oetokh9i")
+ .backColor(PhysicalCardProfileCreateParams.BackColor.BLACK)
.cardStockReference("x")
.carrierStockReference("x")
+ .frontColor(PhysicalCardProfileCreateParams.FrontColor.BLACK)
.frontText(
PhysicalCardProfileCreateParams.FrontText.builder()
.line1("x")
@@ -49,8 +53,10 @@ internal class PhysicalCardProfileCreateParamsTest {
assertThat(body.description()).isEqualTo("My Card Profile")
assertThat(body.frontImageFileId()).isEqualTo("file_o6aex13wm1jcc36sgcj1")
assertThat(body.programId()).isEqualTo("program_i2v2os4mwza1oetokh9i")
+ assertThat(body.backColor()).contains(PhysicalCardProfileCreateParams.BackColor.BLACK)
assertThat(body.cardStockReference()).contains("x")
assertThat(body.carrierStockReference()).contains("x")
+ assertThat(body.frontColor()).contains(PhysicalCardProfileCreateParams.FrontColor.BLACK)
assertThat(body.frontText())
.contains(
PhysicalCardProfileCreateParams.FrontText.builder().line1("x").line2("x").build()
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/async/PhysicalCardProfileServiceAsyncTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/async/PhysicalCardProfileServiceAsyncTest.kt
index 390d2a46c..8908876f9 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/services/async/PhysicalCardProfileServiceAsyncTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/services/async/PhysicalCardProfileServiceAsyncTest.kt
@@ -29,8 +29,10 @@ internal class PhysicalCardProfileServiceAsyncTest {
.description("My Card Profile")
.frontImageFileId("file_o6aex13wm1jcc36sgcj1")
.programId("program_i2v2os4mwza1oetokh9i")
+ .backColor(PhysicalCardProfileCreateParams.BackColor.BLACK)
.cardStockReference("x")
.carrierStockReference("x")
+ .frontColor(PhysicalCardProfileCreateParams.FrontColor.BLACK)
.frontText(
PhysicalCardProfileCreateParams.FrontText.builder()
.line1("x")
diff --git a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/PhysicalCardProfileServiceTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/PhysicalCardProfileServiceTest.kt
index 6d120f2cf..52433f2af 100644
--- a/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/PhysicalCardProfileServiceTest.kt
+++ b/increase-java-core/src/test/kotlin/com/increase/api/services/blocking/PhysicalCardProfileServiceTest.kt
@@ -29,8 +29,10 @@ internal class PhysicalCardProfileServiceTest {
.description("My Card Profile")
.frontImageFileId("file_o6aex13wm1jcc36sgcj1")
.programId("program_i2v2os4mwza1oetokh9i")
+ .backColor(PhysicalCardProfileCreateParams.BackColor.BLACK)
.cardStockReference("x")
.carrierStockReference("x")
+ .frontColor(PhysicalCardProfileCreateParams.FrontColor.BLACK)
.frontText(
PhysicalCardProfileCreateParams.FrontText.builder()
.line1("x")