diff --git a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Account.kt b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Account.kt index 0e6e98a6..a5089611 100644 --- a/lithic-java-core/src/main/kotlin/com/lithic/api/models/Account.kt +++ b/lithic-java-core/src/main/kotlin/com/lithic/api/models/Account.kt @@ -53,7 +53,8 @@ private constructor( * Account state: * - `ACTIVE` - Account is able to transact and create new cards. * - `PAUSED` - Account will not be able to transact or create new cards. It can be set back to - * `ACTIVE`. + * `ACTIVE`. `CLOSED` - Account will not be able to transact or create new cards. `CLOSED` + * cards are also unable to be transitioned to `ACTIVE` or `PAUSED` states. */ fun state(): State = state.getRequired("state") @@ -83,7 +84,8 @@ private constructor( * Account state: * - `ACTIVE` - Account is able to transact and create new cards. * - `PAUSED` - Account will not be able to transact or create new cards. It can be set back to - * `ACTIVE`. + * `ACTIVE`. `CLOSED` - Account will not be able to transact or create new cards. `CLOSED` + * cards are also unable to be transitioned to `ACTIVE` or `PAUSED` states. */ @JsonProperty("state") @ExcludeMissing fun _state() = state @@ -216,7 +218,8 @@ private constructor( * Account state: * - `ACTIVE` - Account is able to transact and create new cards. * - `PAUSED` - Account will not be able to transact or create new cards. It can be set back - * to `ACTIVE`. + * to `ACTIVE`. `CLOSED` - Account will not be able to transact or create new cards. + * `CLOSED` cards are also unable to be transitioned to `ACTIVE` or `PAUSED` states. */ fun state(state: State) = state(JsonField.of(state)) @@ -224,7 +227,8 @@ private constructor( * Account state: * - `ACTIVE` - Account is able to transact and create new cards. * - `PAUSED` - Account will not be able to transact or create new cards. It can be set back - * to `ACTIVE`. + * to `ACTIVE`. `CLOSED` - Account will not be able to transact or create new cards. + * `CLOSED` cards are also unable to be transitioned to `ACTIVE` or `PAUSED` states. */ @JsonProperty("state") @ExcludeMissing @@ -454,17 +458,21 @@ private constructor( @JvmField val PAUSED = State(JsonField.of("PAUSED")) + @JvmField val CLOSED = State(JsonField.of("CLOSED")) + @JvmStatic fun of(value: String) = State(JsonField.of(value)) } enum class Known { ACTIVE, PAUSED, + CLOSED, } enum class Value { ACTIVE, PAUSED, + CLOSED, _UNKNOWN, } @@ -472,6 +480,7 @@ private constructor( when (this) { ACTIVE -> Value.ACTIVE PAUSED -> Value.PAUSED + CLOSED -> Value.CLOSED else -> Value._UNKNOWN } @@ -479,6 +488,7 @@ private constructor( when (this) { ACTIVE -> Known.ACTIVE PAUSED -> Known.PAUSED + CLOSED -> Known.CLOSED else -> throw LithicInvalidDataException("Unknown State: $value") }