Skip to content

Commit

Permalink
feat(api): updates (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jul 17, 2024
1 parent 04d2c82 commit a708fdd
Show file tree
Hide file tree
Showing 23 changed files with 738 additions and 311 deletions.
37 changes: 37 additions & 0 deletions lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/Event.kt
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,19 @@ private constructor(
val TRANSFER_TRANSACTION_CREATED =
EventType(JsonField.of("transfer_transaction.created"))

val TOKENIZATION_APPROVAL_REQUEST =
EventType(JsonField.of("tokenization.approval_request"))

val TOKENIZATION_RESULT = EventType(JsonField.of("tokenization.result"))

val TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
EventType(JsonField.of("tokenization.two_factor_authentication_code"))

val TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT =
EventType(JsonField.of("tokenization.two_factor_authentication_code_sent"))

val TOKENIZATION_UPDATED = EventType(JsonField.of("tokenization.updated"))

fun of(value: String) = EventType(JsonField.of(value))
}

Expand Down Expand Up @@ -404,6 +417,11 @@ private constructor(
SETTLEMENT_REPORT_UPDATED,
THREE_DS_AUTHENTICATION_CREATED,
TRANSFER_TRANSACTION_CREATED,
TOKENIZATION_APPROVAL_REQUEST,
TOKENIZATION_RESULT,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
TOKENIZATION_UPDATED,
}

enum class Value {
Expand All @@ -430,6 +448,11 @@ private constructor(
SETTLEMENT_REPORT_UPDATED,
THREE_DS_AUTHENTICATION_CREATED,
TRANSFER_TRANSACTION_CREATED,
TOKENIZATION_APPROVAL_REQUEST,
TOKENIZATION_RESULT,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
TOKENIZATION_UPDATED,
_UNKNOWN,
}

Expand Down Expand Up @@ -461,6 +484,13 @@ private constructor(
SETTLEMENT_REPORT_UPDATED -> Value.SETTLEMENT_REPORT_UPDATED
THREE_DS_AUTHENTICATION_CREATED -> Value.THREE_DS_AUTHENTICATION_CREATED
TRANSFER_TRANSACTION_CREATED -> Value.TRANSFER_TRANSACTION_CREATED
TOKENIZATION_APPROVAL_REQUEST -> Value.TOKENIZATION_APPROVAL_REQUEST
TOKENIZATION_RESULT -> Value.TOKENIZATION_RESULT
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Value.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Value.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
TOKENIZATION_UPDATED -> Value.TOKENIZATION_UPDATED
else -> Value._UNKNOWN
}

Expand Down Expand Up @@ -492,6 +522,13 @@ private constructor(
SETTLEMENT_REPORT_UPDATED -> Known.SETTLEMENT_REPORT_UPDATED
THREE_DS_AUTHENTICATION_CREATED -> Known.THREE_DS_AUTHENTICATION_CREATED
TRANSFER_TRANSACTION_CREATED -> Known.TRANSFER_TRANSACTION_CREATED
TOKENIZATION_APPROVAL_REQUEST -> Known.TOKENIZATION_APPROVAL_REQUEST
TOKENIZATION_RESULT -> Known.TOKENIZATION_RESULT
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Known.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Known.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
TOKENIZATION_UPDATED -> Known.TOKENIZATION_UPDATED
else -> throw LithicInvalidDataException("Unknown EventType: $value")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,19 @@ constructor(
val TRANSFER_TRANSACTION_CREATED =
EventType(JsonField.of("transfer_transaction.created"))

val TOKENIZATION_APPROVAL_REQUEST =
EventType(JsonField.of("tokenization.approval_request"))

val TOKENIZATION_RESULT = EventType(JsonField.of("tokenization.result"))

val TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
EventType(JsonField.of("tokenization.two_factor_authentication_code"))

val TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT =
EventType(JsonField.of("tokenization.two_factor_authentication_code_sent"))

val TOKENIZATION_UPDATED = EventType(JsonField.of("tokenization.updated"))

fun of(value: String) = EventType(JsonField.of(value))
}

Expand Down Expand Up @@ -354,6 +367,11 @@ constructor(
SETTLEMENT_REPORT_UPDATED,
THREE_DS_AUTHENTICATION_CREATED,
TRANSFER_TRANSACTION_CREATED,
TOKENIZATION_APPROVAL_REQUEST,
TOKENIZATION_RESULT,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
TOKENIZATION_UPDATED,
}

enum class Value {
Expand All @@ -380,6 +398,11 @@ constructor(
SETTLEMENT_REPORT_UPDATED,
THREE_DS_AUTHENTICATION_CREATED,
TRANSFER_TRANSACTION_CREATED,
TOKENIZATION_APPROVAL_REQUEST,
TOKENIZATION_RESULT,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
TOKENIZATION_UPDATED,
_UNKNOWN,
}

Expand Down Expand Up @@ -411,6 +434,13 @@ constructor(
SETTLEMENT_REPORT_UPDATED -> Value.SETTLEMENT_REPORT_UPDATED
THREE_DS_AUTHENTICATION_CREATED -> Value.THREE_DS_AUTHENTICATION_CREATED
TRANSFER_TRANSACTION_CREATED -> Value.TRANSFER_TRANSACTION_CREATED
TOKENIZATION_APPROVAL_REQUEST -> Value.TOKENIZATION_APPROVAL_REQUEST
TOKENIZATION_RESULT -> Value.TOKENIZATION_RESULT
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Value.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Value.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
TOKENIZATION_UPDATED -> Value.TOKENIZATION_UPDATED
else -> Value._UNKNOWN
}

Expand Down Expand Up @@ -442,6 +472,13 @@ constructor(
SETTLEMENT_REPORT_UPDATED -> Known.SETTLEMENT_REPORT_UPDATED
THREE_DS_AUTHENTICATION_CREATED -> Known.THREE_DS_AUTHENTICATION_CREATED
TRANSFER_TRANSACTION_CREATED -> Known.TRANSFER_TRANSACTION_CREATED
TOKENIZATION_APPROVAL_REQUEST -> Known.TOKENIZATION_APPROVAL_REQUEST
TOKENIZATION_RESULT -> Known.TOKENIZATION_RESULT
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Known.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Known.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
TOKENIZATION_UPDATED -> Known.TOKENIZATION_UPDATED
else -> throw LithicInvalidDataException("Unknown EventType: $value")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,19 @@ private constructor(
val TRANSFER_TRANSACTION_CREATED =
EventType(JsonField.of("transfer_transaction.created"))

val TOKENIZATION_APPROVAL_REQUEST =
EventType(JsonField.of("tokenization.approval_request"))

val TOKENIZATION_RESULT = EventType(JsonField.of("tokenization.result"))

val TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
EventType(JsonField.of("tokenization.two_factor_authentication_code"))

val TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT =
EventType(JsonField.of("tokenization.two_factor_authentication_code_sent"))

val TOKENIZATION_UPDATED = EventType(JsonField.of("tokenization.updated"))

fun of(value: String) = EventType(JsonField.of(value))
}

Expand Down Expand Up @@ -304,6 +317,11 @@ private constructor(
SETTLEMENT_REPORT_UPDATED,
THREE_DS_AUTHENTICATION_CREATED,
TRANSFER_TRANSACTION_CREATED,
TOKENIZATION_APPROVAL_REQUEST,
TOKENIZATION_RESULT,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
TOKENIZATION_UPDATED,
}

enum class Value {
Expand All @@ -330,6 +348,11 @@ private constructor(
SETTLEMENT_REPORT_UPDATED,
THREE_DS_AUTHENTICATION_CREATED,
TRANSFER_TRANSACTION_CREATED,
TOKENIZATION_APPROVAL_REQUEST,
TOKENIZATION_RESULT,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
TOKENIZATION_UPDATED,
_UNKNOWN,
}

Expand Down Expand Up @@ -361,6 +384,13 @@ private constructor(
SETTLEMENT_REPORT_UPDATED -> Value.SETTLEMENT_REPORT_UPDATED
THREE_DS_AUTHENTICATION_CREATED -> Value.THREE_DS_AUTHENTICATION_CREATED
TRANSFER_TRANSACTION_CREATED -> Value.TRANSFER_TRANSACTION_CREATED
TOKENIZATION_APPROVAL_REQUEST -> Value.TOKENIZATION_APPROVAL_REQUEST
TOKENIZATION_RESULT -> Value.TOKENIZATION_RESULT
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Value.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Value.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
TOKENIZATION_UPDATED -> Value.TOKENIZATION_UPDATED
else -> Value._UNKNOWN
}

Expand Down Expand Up @@ -392,6 +422,13 @@ private constructor(
SETTLEMENT_REPORT_UPDATED -> Known.SETTLEMENT_REPORT_UPDATED
THREE_DS_AUTHENTICATION_CREATED -> Known.THREE_DS_AUTHENTICATION_CREATED
TRANSFER_TRANSACTION_CREATED -> Known.TRANSFER_TRANSACTION_CREATED
TOKENIZATION_APPROVAL_REQUEST -> Known.TOKENIZATION_APPROVAL_REQUEST
TOKENIZATION_RESULT -> Known.TOKENIZATION_RESULT
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Known.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Known.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
TOKENIZATION_UPDATED -> Known.TOKENIZATION_UPDATED
else -> throw LithicInvalidDataException("Unknown EventType: $value")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,19 @@ constructor(
val TRANSFER_TRANSACTION_CREATED =
EventType(JsonField.of("transfer_transaction.created"))

val TOKENIZATION_APPROVAL_REQUEST =
EventType(JsonField.of("tokenization.approval_request"))

val TOKENIZATION_RESULT = EventType(JsonField.of("tokenization.result"))

val TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
EventType(JsonField.of("tokenization.two_factor_authentication_code"))

val TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT =
EventType(JsonField.of("tokenization.two_factor_authentication_code_sent"))

val TOKENIZATION_UPDATED = EventType(JsonField.of("tokenization.updated"))

fun of(value: String) = EventType(JsonField.of(value))
}

Expand Down Expand Up @@ -441,6 +454,11 @@ constructor(
SETTLEMENT_REPORT_UPDATED,
THREE_DS_AUTHENTICATION_CREATED,
TRANSFER_TRANSACTION_CREATED,
TOKENIZATION_APPROVAL_REQUEST,
TOKENIZATION_RESULT,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
TOKENIZATION_UPDATED,
}

enum class Value {
Expand All @@ -467,6 +485,11 @@ constructor(
SETTLEMENT_REPORT_UPDATED,
THREE_DS_AUTHENTICATION_CREATED,
TRANSFER_TRANSACTION_CREATED,
TOKENIZATION_APPROVAL_REQUEST,
TOKENIZATION_RESULT,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
TOKENIZATION_UPDATED,
_UNKNOWN,
}

Expand Down Expand Up @@ -498,6 +521,13 @@ constructor(
SETTLEMENT_REPORT_UPDATED -> Value.SETTLEMENT_REPORT_UPDATED
THREE_DS_AUTHENTICATION_CREATED -> Value.THREE_DS_AUTHENTICATION_CREATED
TRANSFER_TRANSACTION_CREATED -> Value.TRANSFER_TRANSACTION_CREATED
TOKENIZATION_APPROVAL_REQUEST -> Value.TOKENIZATION_APPROVAL_REQUEST
TOKENIZATION_RESULT -> Value.TOKENIZATION_RESULT
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Value.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Value.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
TOKENIZATION_UPDATED -> Value.TOKENIZATION_UPDATED
else -> Value._UNKNOWN
}

Expand Down Expand Up @@ -529,6 +559,13 @@ constructor(
SETTLEMENT_REPORT_UPDATED -> Known.SETTLEMENT_REPORT_UPDATED
THREE_DS_AUTHENTICATION_CREATED -> Known.THREE_DS_AUTHENTICATION_CREATED
TRANSFER_TRANSACTION_CREATED -> Known.TRANSFER_TRANSACTION_CREATED
TOKENIZATION_APPROVAL_REQUEST -> Known.TOKENIZATION_APPROVAL_REQUEST
TOKENIZATION_RESULT -> Known.TOKENIZATION_RESULT
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Known.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Known.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
TOKENIZATION_UPDATED -> Known.TOKENIZATION_UPDATED
else -> throw LithicInvalidDataException("Unknown EventType: $value")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,19 @@ constructor(
val TRANSFER_TRANSACTION_CREATED =
EventType(JsonField.of("transfer_transaction.created"))

val TOKENIZATION_APPROVAL_REQUEST =
EventType(JsonField.of("tokenization.approval_request"))

val TOKENIZATION_RESULT = EventType(JsonField.of("tokenization.result"))

val TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
EventType(JsonField.of("tokenization.two_factor_authentication_code"))

val TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT =
EventType(JsonField.of("tokenization.two_factor_authentication_code_sent"))

val TOKENIZATION_UPDATED = EventType(JsonField.of("tokenization.updated"))

fun of(value: String) = EventType(JsonField.of(value))
}

Expand Down Expand Up @@ -370,6 +383,11 @@ constructor(
SETTLEMENT_REPORT_UPDATED,
THREE_DS_AUTHENTICATION_CREATED,
TRANSFER_TRANSACTION_CREATED,
TOKENIZATION_APPROVAL_REQUEST,
TOKENIZATION_RESULT,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
TOKENIZATION_UPDATED,
}

enum class Value {
Expand All @@ -396,6 +414,11 @@ constructor(
SETTLEMENT_REPORT_UPDATED,
THREE_DS_AUTHENTICATION_CREATED,
TRANSFER_TRANSACTION_CREATED,
TOKENIZATION_APPROVAL_REQUEST,
TOKENIZATION_RESULT,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE,
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT,
TOKENIZATION_UPDATED,
_UNKNOWN,
}

Expand Down Expand Up @@ -427,6 +450,13 @@ constructor(
SETTLEMENT_REPORT_UPDATED -> Value.SETTLEMENT_REPORT_UPDATED
THREE_DS_AUTHENTICATION_CREATED -> Value.THREE_DS_AUTHENTICATION_CREATED
TRANSFER_TRANSACTION_CREATED -> Value.TRANSFER_TRANSACTION_CREATED
TOKENIZATION_APPROVAL_REQUEST -> Value.TOKENIZATION_APPROVAL_REQUEST
TOKENIZATION_RESULT -> Value.TOKENIZATION_RESULT
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Value.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Value.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
TOKENIZATION_UPDATED -> Value.TOKENIZATION_UPDATED
else -> Value._UNKNOWN
}

Expand Down Expand Up @@ -458,6 +488,13 @@ constructor(
SETTLEMENT_REPORT_UPDATED -> Known.SETTLEMENT_REPORT_UPDATED
THREE_DS_AUTHENTICATION_CREATED -> Known.THREE_DS_AUTHENTICATION_CREATED
TRANSFER_TRANSACTION_CREATED -> Known.TRANSFER_TRANSACTION_CREATED
TOKENIZATION_APPROVAL_REQUEST -> Known.TOKENIZATION_APPROVAL_REQUEST
TOKENIZATION_RESULT -> Known.TOKENIZATION_RESULT
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE ->
Known.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE
TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT ->
Known.TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE_SENT
TOKENIZATION_UPDATED -> Known.TOKENIZATION_UPDATED
else -> throw LithicInvalidDataException("Unknown EventType: $value")
}

Expand Down
Loading

0 comments on commit a708fdd

Please sign in to comment.