Skip to content

Commit

Permalink
feat(api): changes to balance-related return types and other API chan…
Browse files Browse the repository at this point in the history
…ges (#210)
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 25, 2024
1 parent c00bd1d commit 765abc9
Show file tree
Hide file tree
Showing 28 changed files with 863 additions and 94 deletions.
30 changes: 22 additions & 8 deletions lithic-java-core/src/main/kotlin/com/lithic/api/models/Account.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ 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`. `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.
* `ACTIVE`.
* - `CLOSED` - Account will not be able to transact or create new cards. `CLOSED` accounts are
* also unable to be transitioned to `ACTIVE` or `PAUSED` states. `CLOSED` accounts result
* from failing to pass KYB/KYC or Lithic closing for risk/compliance reasons. Please contact
* [[email protected]](mailto:[email protected]) if you believe this was in error.
*/
fun state(): State = state.getRequired("state")

Expand Down Expand Up @@ -85,8 +88,11 @@ 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`. `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.
* `ACTIVE`.
* - `CLOSED` - Account will not be able to transact or create new cards. `CLOSED` accounts are
* also unable to be transitioned to `ACTIVE` or `PAUSED` states. `CLOSED` accounts result
* from failing to pass KYB/KYC or Lithic closing for risk/compliance reasons. Please contact
* [[email protected]](mailto:[email protected]) if you believe this was in error.
*/
@JsonProperty("state") @ExcludeMissing fun _state() = state

Expand Down Expand Up @@ -219,17 +225,25 @@ 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`. `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.
* to `ACTIVE`.
* - `CLOSED` - Account will not be able to transact or create new cards. `CLOSED` accounts
* are also unable to be transitioned to `ACTIVE` or `PAUSED` states. `CLOSED` accounts
* result from failing to pass KYB/KYC or Lithic closing for risk/compliance reasons.
* Please contact [[email protected]](mailto:[email protected]) if you believe this was
* in error.
*/
fun state(state: State) = state(JsonField.of(state))

/**
* 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`. `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.
* to `ACTIVE`.
* - `CLOSED` - Account will not be able to transact or create new cards. `CLOSED` accounts
* are also unable to be transitioned to `ACTIVE` or `PAUSED` states. `CLOSED` accounts
* result from failing to pass KYB/KYC or Lithic closing for risk/compliance reasons.
* Please contact [[email protected]](mailto:[email protected]) if you believe this was
* in error.
*/
@JsonProperty("state")
@ExcludeMissing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.lithic.api.errors.LithicInvalidDataException
import java.time.OffsetDateTime
import java.util.Objects

/** Balance of a Financial Account */
/** Balance */
@JsonDeserialize(builder = Balance.Builder::class)
@NoAutoDetect
class Balance
Expand Down
Loading

0 comments on commit 765abc9

Please sign in to comment.