-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api)!: update model
FinancialAccount
(#308)
feat(api): add resource `auth_rules.v2` feat(api): add shared model `InstanceFinancialAccountType` feat(api): add shared model `AccountFinancialAccountType` feat(api): add shared model `VelocityLimitParams` and `VelocityLimitParamsPeriodWindow` feat(api): add resource `external_payments` chore(docs): update various doc strings # Migration While changes to `FinancialAccount` are technically breaking change, they are done as a fix to match the actual behaviour of the API.
- Loading branch information
1 parent
78e33f4
commit 431804c
Showing
108 changed files
with
30,911 additions
and
790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
configured_endpoints: 131 | ||
configured_endpoints: 146 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
lithic-java-core/src/main/kotlin/com/lithic/api/models/AccountFinancialAccountType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
|
||
package com.lithic.api.models | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator | ||
import com.lithic.api.core.Enum | ||
import com.lithic.api.core.JsonField | ||
import com.lithic.api.core.JsonValue | ||
import com.lithic.api.errors.LithicInvalidDataException | ||
|
||
class AccountFinancialAccountType | ||
@JsonCreator | ||
private constructor( | ||
private val value: JsonField<String>, | ||
) : Enum { | ||
|
||
@com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField<String> = value | ||
|
||
override fun equals(other: Any?): Boolean { | ||
if (this === other) { | ||
return true | ||
} | ||
|
||
return other is AccountFinancialAccountType && this.value == other.value | ||
} | ||
|
||
override fun hashCode() = value.hashCode() | ||
|
||
override fun toString() = value.toString() | ||
|
||
companion object { | ||
|
||
@JvmField val ISSUING = AccountFinancialAccountType(JsonField.of("ISSUING")) | ||
|
||
@JvmField val OPERATING = AccountFinancialAccountType(JsonField.of("OPERATING")) | ||
|
||
@JvmStatic fun of(value: String) = AccountFinancialAccountType(JsonField.of(value)) | ||
} | ||
|
||
enum class Known { | ||
ISSUING, | ||
OPERATING, | ||
} | ||
|
||
enum class Value { | ||
ISSUING, | ||
OPERATING, | ||
_UNKNOWN, | ||
} | ||
|
||
fun value(): Value = | ||
when (this) { | ||
ISSUING -> Value.ISSUING | ||
OPERATING -> Value.OPERATING | ||
else -> Value._UNKNOWN | ||
} | ||
|
||
fun known(): Known = | ||
when (this) { | ||
ISSUING -> Known.ISSUING | ||
OPERATING -> Known.OPERATING | ||
else -> throw LithicInvalidDataException("Unknown AccountFinancialAccountType: $value") | ||
} | ||
|
||
fun asString(): String = _value().asStringOrThrow() | ||
} |
Oops, something went wrong.