File tree Expand file tree Collapse file tree
main/kotlin/com/lithic/api/models
test/kotlin/com/lithic/api/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1448,41 +1448,53 @@ private constructor(
14481448
14491449 companion object {
14501450
1451+ @JvmField val NETWORK = DecisionMadeBy (JsonField .of(" NETWORK" ))
1452+
14511453 @JvmField val LITHIC_DEFAULT = DecisionMadeBy (JsonField .of(" LITHIC_DEFAULT" ))
14521454
14531455 @JvmField val LITHIC_RULES = DecisionMadeBy (JsonField .of(" LITHIC_RULES" ))
14541456
14551457 @JvmField val CUSTOMER_ENDPOINT = DecisionMadeBy (JsonField .of(" CUSTOMER_ENDPOINT" ))
14561458
1459+ @JvmField val UNKNOWN = DecisionMadeBy (JsonField .of(" UNKNOWN" ))
1460+
14571461 @JvmStatic fun of (value : String ) = DecisionMadeBy (JsonField .of(value))
14581462 }
14591463
14601464 enum class Known {
1465+ NETWORK ,
14611466 LITHIC_DEFAULT ,
14621467 LITHIC_RULES ,
14631468 CUSTOMER_ENDPOINT ,
1469+ UNKNOWN ,
14641470 }
14651471
14661472 enum class Value {
1473+ NETWORK ,
14671474 LITHIC_DEFAULT ,
14681475 LITHIC_RULES ,
14691476 CUSTOMER_ENDPOINT ,
1477+ UNKNOWN ,
14701478 _UNKNOWN ,
14711479 }
14721480
14731481 fun value (): Value =
14741482 when (this ) {
1483+ NETWORK -> Value .NETWORK
14751484 LITHIC_DEFAULT -> Value .LITHIC_DEFAULT
14761485 LITHIC_RULES -> Value .LITHIC_RULES
14771486 CUSTOMER_ENDPOINT -> Value .CUSTOMER_ENDPOINT
1487+ UNKNOWN -> Value .UNKNOWN
14781488 else -> Value ._UNKNOWN
14791489 }
14801490
14811491 fun known (): Known =
14821492 when (this ) {
1493+ NETWORK -> Known .NETWORK
14831494 LITHIC_DEFAULT -> Known .LITHIC_DEFAULT
14841495 LITHIC_RULES -> Known .LITHIC_RULES
14851496 CUSTOMER_ENDPOINT -> Known .CUSTOMER_ENDPOINT
1497+ UNKNOWN -> Known .UNKNOWN
14861498 else -> throw LithicInvalidDataException (" Unknown DecisionMadeBy: $value " )
14871499 }
14881500
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class AuthenticationRetrieveResponseTest {
4949 )
5050 .channel(AuthenticationRetrieveResponse .Channel .APP_BASED )
5151 .created(OffsetDateTime .parse(" 2019-12-27T18:11:19.117Z" ))
52- .decisionMadeBy(AuthenticationRetrieveResponse .DecisionMadeBy .LITHIC_DEFAULT )
52+ .decisionMadeBy(AuthenticationRetrieveResponse .DecisionMadeBy .NETWORK )
5353 .merchant(
5454 AuthenticationRetrieveResponse .Merchant .builder()
5555 .id(" string" )
@@ -181,7 +181,7 @@ class AuthenticationRetrieveResponseTest {
181181 assertThat(authenticationRetrieveResponse.created())
182182 .isEqualTo(OffsetDateTime .parse(" 2019-12-27T18:11:19.117Z" ))
183183 assertThat(authenticationRetrieveResponse.decisionMadeBy())
184- .contains(AuthenticationRetrieveResponse .DecisionMadeBy .LITHIC_DEFAULT )
184+ .contains(AuthenticationRetrieveResponse .DecisionMadeBy .NETWORK )
185185 assertThat(authenticationRetrieveResponse.merchant())
186186 .isEqualTo(
187187 AuthenticationRetrieveResponse .Merchant .builder()
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ class EventSubscriptionTest {
1414 .token(" ep_1srOrx2ZWZBpBUvZwXKQmoEYga1" )
1515 .description(" string" )
1616 .disabled(true )
17- .eventTypes(listOf (EventSubscription .EventType .ACCOUNT_HOLDER_CREATED ))
1817 .url(" https://example.com" )
18+ .eventTypes(listOf (EventSubscription .EventType .ACCOUNT_HOLDER_CREATED ))
1919 .build()
2020 assertThat(eventSubscription).isNotNull
2121 assertThat(eventSubscription.token()).isEqualTo(" ep_1srOrx2ZWZBpBUvZwXKQmoEYga1" )
2222 assertThat(eventSubscription.description()).isEqualTo(" string" )
2323 assertThat(eventSubscription.disabled()).isEqualTo(true )
24+ assertThat(eventSubscription.url()).isEqualTo(" https://example.com" )
2425 assertThat(eventSubscription.eventTypes().get())
2526 .containsExactly(EventSubscription .EventType .ACCOUNT_HOLDER_CREATED )
26- assertThat(eventSubscription.url()).isEqualTo(" https://example.com" )
2727 }
2828}
You can’t perform that action at this time.
0 commit comments