diff --git a/lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCheckStatusParams.kt b/lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCheckStatusParams.kt index 3aedff0b..859178dc 100644 --- a/lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCheckStatusParams.kt +++ b/lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCheckStatusParams.kt @@ -149,6 +149,8 @@ constructor( companion object { + val AUTH_STREAM_ACCESS = Type(JsonField.of("AUTH_STREAM_ACCESS")) + val TOKENIZATION_DECISIONING = Type(JsonField.of("TOKENIZATION_DECISIONING")) val THREE_DS_DECISIONING = Type(JsonField.of("THREE_DS_DECISIONING")) @@ -157,11 +159,13 @@ constructor( } enum class Known { + AUTH_STREAM_ACCESS, TOKENIZATION_DECISIONING, THREE_DS_DECISIONING, } enum class Value { + AUTH_STREAM_ACCESS, TOKENIZATION_DECISIONING, THREE_DS_DECISIONING, _UNKNOWN, @@ -169,6 +173,7 @@ constructor( fun value(): Value = when (this) { + AUTH_STREAM_ACCESS -> Value.AUTH_STREAM_ACCESS TOKENIZATION_DECISIONING -> Value.TOKENIZATION_DECISIONING THREE_DS_DECISIONING -> Value.THREE_DS_DECISIONING else -> Value._UNKNOWN @@ -176,6 +181,7 @@ constructor( fun known(): Known = when (this) { + AUTH_STREAM_ACCESS -> Known.AUTH_STREAM_ACCESS TOKENIZATION_DECISIONING -> Known.TOKENIZATION_DECISIONING THREE_DS_DECISIONING -> Known.THREE_DS_DECISIONING else -> throw LithicInvalidDataException("Unknown Type: $value") diff --git a/lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCreateParams.kt b/lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCreateParams.kt index 25e01d05..bdbc4e9f 100644 --- a/lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCreateParams.kt +++ b/lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointCreateParams.kt @@ -284,6 +284,8 @@ constructor( companion object { + val AUTH_STREAM_ACCESS = Type(JsonField.of("AUTH_STREAM_ACCESS")) + val TOKENIZATION_DECISIONING = Type(JsonField.of("TOKENIZATION_DECISIONING")) val THREE_DS_DECISIONING = Type(JsonField.of("THREE_DS_DECISIONING")) @@ -292,11 +294,13 @@ constructor( } enum class Known { + AUTH_STREAM_ACCESS, TOKENIZATION_DECISIONING, THREE_DS_DECISIONING, } enum class Value { + AUTH_STREAM_ACCESS, TOKENIZATION_DECISIONING, THREE_DS_DECISIONING, _UNKNOWN, @@ -304,6 +308,7 @@ constructor( fun value(): Value = when (this) { + AUTH_STREAM_ACCESS -> Value.AUTH_STREAM_ACCESS TOKENIZATION_DECISIONING -> Value.TOKENIZATION_DECISIONING THREE_DS_DECISIONING -> Value.THREE_DS_DECISIONING else -> Value._UNKNOWN @@ -311,6 +316,7 @@ constructor( fun known(): Known = when (this) { + AUTH_STREAM_ACCESS -> Known.AUTH_STREAM_ACCESS TOKENIZATION_DECISIONING -> Known.TOKENIZATION_DECISIONING THREE_DS_DECISIONING -> Known.THREE_DS_DECISIONING else -> throw LithicInvalidDataException("Unknown Type: $value") diff --git a/lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointDeleteParams.kt b/lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointDeleteParams.kt index 4a897cd3..98987cc6 100644 --- a/lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointDeleteParams.kt +++ b/lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/ResponderEndpointDeleteParams.kt @@ -174,6 +174,8 @@ constructor( companion object { + val AUTH_STREAM_ACCESS = Type(JsonField.of("AUTH_STREAM_ACCESS")) + val TOKENIZATION_DECISIONING = Type(JsonField.of("TOKENIZATION_DECISIONING")) val THREE_DS_DECISIONING = Type(JsonField.of("THREE_DS_DECISIONING")) @@ -182,11 +184,13 @@ constructor( } enum class Known { + AUTH_STREAM_ACCESS, TOKENIZATION_DECISIONING, THREE_DS_DECISIONING, } enum class Value { + AUTH_STREAM_ACCESS, TOKENIZATION_DECISIONING, THREE_DS_DECISIONING, _UNKNOWN, @@ -194,6 +198,7 @@ constructor( fun value(): Value = when (this) { + AUTH_STREAM_ACCESS -> Value.AUTH_STREAM_ACCESS TOKENIZATION_DECISIONING -> Value.TOKENIZATION_DECISIONING THREE_DS_DECISIONING -> Value.THREE_DS_DECISIONING else -> Value._UNKNOWN @@ -201,6 +206,7 @@ constructor( fun known(): Known = when (this) { + AUTH_STREAM_ACCESS -> Known.AUTH_STREAM_ACCESS TOKENIZATION_DECISIONING -> Known.TOKENIZATION_DECISIONING THREE_DS_DECISIONING -> Known.THREE_DS_DECISIONING else -> throw LithicInvalidDataException("Unknown Type: $value") diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ResponderEndpointCheckStatusParamsTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ResponderEndpointCheckStatusParamsTest.kt index c4b6e86d..fa0a26a7 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ResponderEndpointCheckStatusParamsTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ResponderEndpointCheckStatusParamsTest.kt @@ -11,7 +11,7 @@ class ResponderEndpointCheckStatusParamsTest { @Test fun createResponderEndpointCheckStatusParams() { ResponderEndpointCheckStatusParams.builder() - .type(ResponderEndpointCheckStatusParams.Type.TOKENIZATION_DECISIONING) + .type(ResponderEndpointCheckStatusParams.Type.AUTH_STREAM_ACCESS) .build() } @@ -19,12 +19,12 @@ class ResponderEndpointCheckStatusParamsTest { fun getQueryParams() { val params = ResponderEndpointCheckStatusParams.builder() - .type(ResponderEndpointCheckStatusParams.Type.TOKENIZATION_DECISIONING) + .type(ResponderEndpointCheckStatusParams.Type.AUTH_STREAM_ACCESS) .build() val expected = mutableMapOf>() expected.put( "type", - listOf(ResponderEndpointCheckStatusParams.Type.TOKENIZATION_DECISIONING.toString()) + listOf(ResponderEndpointCheckStatusParams.Type.AUTH_STREAM_ACCESS.toString()) ) assertThat(params.getQueryParams()).isEqualTo(expected) } @@ -33,12 +33,12 @@ class ResponderEndpointCheckStatusParamsTest { fun getQueryParamsWithoutOptionalFields() { val params = ResponderEndpointCheckStatusParams.builder() - .type(ResponderEndpointCheckStatusParams.Type.TOKENIZATION_DECISIONING) + .type(ResponderEndpointCheckStatusParams.Type.AUTH_STREAM_ACCESS) .build() val expected = mutableMapOf>() expected.put( "type", - listOf(ResponderEndpointCheckStatusParams.Type.TOKENIZATION_DECISIONING.toString()) + listOf(ResponderEndpointCheckStatusParams.Type.AUTH_STREAM_ACCESS.toString()) ) assertThat(params.getQueryParams()).isEqualTo(expected) } diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ResponderEndpointCreateParamsTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ResponderEndpointCreateParamsTest.kt index 0d6ad646..ba90b494 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ResponderEndpointCreateParamsTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ResponderEndpointCreateParamsTest.kt @@ -11,7 +11,7 @@ class ResponderEndpointCreateParamsTest { @Test fun createResponderEndpointCreateParams() { ResponderEndpointCreateParams.builder() - .type(ResponderEndpointCreateParams.Type.TOKENIZATION_DECISIONING) + .type(ResponderEndpointCreateParams.Type.AUTH_STREAM_ACCESS) .url("https://example.com") .build() } @@ -20,13 +20,12 @@ class ResponderEndpointCreateParamsTest { fun getBody() { val params = ResponderEndpointCreateParams.builder() - .type(ResponderEndpointCreateParams.Type.TOKENIZATION_DECISIONING) + .type(ResponderEndpointCreateParams.Type.AUTH_STREAM_ACCESS) .url("https://example.com") .build() val body = params.getBody() assertThat(body).isNotNull - assertThat(body.type()) - .isEqualTo(ResponderEndpointCreateParams.Type.TOKENIZATION_DECISIONING) + assertThat(body.type()).isEqualTo(ResponderEndpointCreateParams.Type.AUTH_STREAM_ACCESS) assertThat(body.url()).isEqualTo("https://example.com") } diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ResponderEndpointDeleteParamsTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ResponderEndpointDeleteParamsTest.kt index 479bdc47..71806c02 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ResponderEndpointDeleteParamsTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ResponderEndpointDeleteParamsTest.kt @@ -11,7 +11,7 @@ class ResponderEndpointDeleteParamsTest { @Test fun createResponderEndpointDeleteParams() { ResponderEndpointDeleteParams.builder() - .type(ResponderEndpointDeleteParams.Type.TOKENIZATION_DECISIONING) + .type(ResponderEndpointDeleteParams.Type.AUTH_STREAM_ACCESS) .build() } @@ -19,12 +19,12 @@ class ResponderEndpointDeleteParamsTest { fun getQueryParams() { val params = ResponderEndpointDeleteParams.builder() - .type(ResponderEndpointDeleteParams.Type.TOKENIZATION_DECISIONING) + .type(ResponderEndpointDeleteParams.Type.AUTH_STREAM_ACCESS) .build() val expected = mutableMapOf>() expected.put( "type", - listOf(ResponderEndpointDeleteParams.Type.TOKENIZATION_DECISIONING.toString()) + listOf(ResponderEndpointDeleteParams.Type.AUTH_STREAM_ACCESS.toString()) ) assertThat(params.getQueryParams()).isEqualTo(expected) } @@ -33,12 +33,12 @@ class ResponderEndpointDeleteParamsTest { fun getQueryParamsWithoutOptionalFields() { val params = ResponderEndpointDeleteParams.builder() - .type(ResponderEndpointDeleteParams.Type.TOKENIZATION_DECISIONING) + .type(ResponderEndpointDeleteParams.Type.AUTH_STREAM_ACCESS) .build() val expected = mutableMapOf>() expected.put( "type", - listOf(ResponderEndpointDeleteParams.Type.TOKENIZATION_DECISIONING.toString()) + listOf(ResponderEndpointDeleteParams.Type.AUTH_STREAM_ACCESS.toString()) ) assertThat(params.getQueryParams()).isEqualTo(expected) } diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/services/blocking/ResponderEndpointServiceTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/services/blocking/ResponderEndpointServiceTest.kt index fc131f15..fb796b95 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/services/blocking/ResponderEndpointServiceTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/services/blocking/ResponderEndpointServiceTest.kt @@ -23,7 +23,7 @@ class ResponderEndpointServiceTest { val responderEndpointCreateResponse = responderEndpointService.create( ResponderEndpointCreateParams.builder() - .type(ResponderEndpointCreateParams.Type.TOKENIZATION_DECISIONING) + .type(ResponderEndpointCreateParams.Type.AUTH_STREAM_ACCESS) .url("https://example.com") .build() ) @@ -42,7 +42,7 @@ class ResponderEndpointServiceTest { val responderEndpointService = client.responderEndpoints() responderEndpointService.delete( ResponderEndpointDeleteParams.builder() - .type(ResponderEndpointDeleteParams.Type.TOKENIZATION_DECISIONING) + .type(ResponderEndpointDeleteParams.Type.AUTH_STREAM_ACCESS) .build() ) } @@ -58,7 +58,7 @@ class ResponderEndpointServiceTest { val responderEndpointStatus = responderEndpointService.checkStatus( ResponderEndpointCheckStatusParams.builder() - .type(ResponderEndpointCheckStatusParams.Type.TOKENIZATION_DECISIONING) + .type(ResponderEndpointCheckStatusParams.Type.AUTH_STREAM_ACCESS) .build() ) println(responderEndpointStatus)