diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/AuthRuleConditionTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/AuthRuleConditionTest.kt index 336517dc..296c1c09 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/AuthRuleConditionTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/AuthRuleConditionTest.kt @@ -13,7 +13,7 @@ class AuthRuleConditionTest { AuthRuleCondition.builder() .attribute(ConditionalAttribute.MCC) .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) + .value("string") .build() assertThat(authRuleCondition).isNotNull assertThat(authRuleCondition.attribute()).isEqualTo(ConditionalAttribute.MCC) diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/AuthRuleV2CreateParamsTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/AuthRuleV2CreateParamsTest.kt index f9564d0a..ab19a1a5 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/AuthRuleV2CreateParamsTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/AuthRuleV2CreateParamsTest.kt @@ -21,7 +21,7 @@ class AuthRuleV2CreateParamsTest { AuthRuleCondition.builder() .attribute(ConditionalAttribute.MCC) .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) + .value("string") .build() ) .build() diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/AuthRuleV2DraftParamsTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/AuthRuleV2DraftParamsTest.kt index fac9c13a..712a559f 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/AuthRuleV2DraftParamsTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/AuthRuleV2DraftParamsTest.kt @@ -12,17 +12,15 @@ class AuthRuleV2DraftParamsTest { AuthRuleV2DraftParams.builder() .authRuleToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .parameters( - AuthRuleV2DraftParams.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .build() } @@ -33,17 +31,15 @@ class AuthRuleV2DraftParamsTest { AuthRuleV2DraftParams.builder() .authRuleToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .parameters( - AuthRuleV2DraftParams.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .build() val body = params.getBody() @@ -56,7 +52,7 @@ class AuthRuleV2DraftParamsTest { AuthRuleCondition.builder() .attribute(ConditionalAttribute.MCC) .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) + .value("string") .build() ) .build() diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ConditionalBlockParametersTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ConditionalBlockParametersTest.kt index 8423b972..a981e7ce 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ConditionalBlockParametersTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/ConditionalBlockParametersTest.kt @@ -15,7 +15,7 @@ class ConditionalBlockParametersTest { AuthRuleCondition.builder() .attribute(ConditionalAttribute.MCC) .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) + .value("string") .build() ) .build() @@ -25,7 +25,7 @@ class ConditionalBlockParametersTest { AuthRuleCondition.builder() .attribute(ConditionalAttribute.MCC) .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) + .value("string") .build() ) } diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2ApplyResponseTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2ApplyResponseTest.kt index 5ba906f4..2d560cb5 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2ApplyResponseTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2ApplyResponseTest.kt @@ -17,17 +17,15 @@ class V2ApplyResponseTest { .currentVersion( V2ApplyResponse.CurrentVersion.builder() .parameters( - V2ApplyResponse.CurrentVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -35,17 +33,15 @@ class V2ApplyResponseTest { .draftVersion( V2ApplyResponse.DraftVersion.builder() .parameters( - V2ApplyResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -66,17 +62,15 @@ class V2ApplyResponseTest { .isEqualTo( V2ApplyResponse.CurrentVersion.builder() .parameters( - V2ApplyResponse.CurrentVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -85,17 +79,15 @@ class V2ApplyResponseTest { .isEqualTo( V2ApplyResponse.DraftVersion.builder() .parameters( - V2ApplyResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2CreateResponseTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2CreateResponseTest.kt index 2f1d3d5f..7506738d 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2CreateResponseTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2CreateResponseTest.kt @@ -17,17 +17,15 @@ class V2CreateResponseTest { .currentVersion( V2CreateResponse.CurrentVersion.builder() .parameters( - V2CreateResponse.CurrentVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -35,17 +33,15 @@ class V2CreateResponseTest { .draftVersion( V2CreateResponse.DraftVersion.builder() .parameters( - V2CreateResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -66,17 +62,15 @@ class V2CreateResponseTest { .isEqualTo( V2CreateResponse.CurrentVersion.builder() .parameters( - V2CreateResponse.CurrentVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -85,17 +79,15 @@ class V2CreateResponseTest { .isEqualTo( V2CreateResponse.DraftVersion.builder() .parameters( - V2CreateResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2DraftResponseTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2DraftResponseTest.kt index 65d33b61..ef33f791 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2DraftResponseTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2DraftResponseTest.kt @@ -17,17 +17,15 @@ class V2DraftResponseTest { .currentVersion( V2DraftResponse.CurrentVersion.builder() .parameters( - V2DraftResponse.CurrentVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -35,17 +33,15 @@ class V2DraftResponseTest { .draftVersion( V2DraftResponse.DraftVersion.builder() .parameters( - V2DraftResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -66,17 +62,15 @@ class V2DraftResponseTest { .isEqualTo( V2DraftResponse.CurrentVersion.builder() .parameters( - V2DraftResponse.CurrentVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -85,17 +79,15 @@ class V2DraftResponseTest { .isEqualTo( V2DraftResponse.DraftVersion.builder() .parameters( - V2DraftResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2ListResponseTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2ListResponseTest.kt index 120c1c34..0e748583 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2ListResponseTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2ListResponseTest.kt @@ -17,17 +17,15 @@ class V2ListResponseTest { .currentVersion( V2ListResponse.CurrentVersion.builder() .parameters( - V2ListResponse.CurrentVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -35,17 +33,15 @@ class V2ListResponseTest { .draftVersion( V2ListResponse.DraftVersion.builder() .parameters( - V2ListResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -66,17 +62,15 @@ class V2ListResponseTest { .isEqualTo( V2ListResponse.CurrentVersion.builder() .parameters( - V2ListResponse.CurrentVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -85,17 +79,15 @@ class V2ListResponseTest { .isEqualTo( V2ListResponse.DraftVersion.builder() .parameters( - V2ListResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2PromoteResponseTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2PromoteResponseTest.kt index 5493a54d..37cf7b21 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2PromoteResponseTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2PromoteResponseTest.kt @@ -17,18 +17,15 @@ class V2PromoteResponseTest { .currentVersion( V2PromoteResponse.CurrentVersion.builder() .parameters( - V2PromoteResponse.CurrentVersion.Parameters - .ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") .build() ) + .build() ) .version(0L) .build() @@ -36,17 +33,15 @@ class V2PromoteResponseTest { .draftVersion( V2PromoteResponse.DraftVersion.builder() .parameters( - V2PromoteResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -67,17 +62,15 @@ class V2PromoteResponseTest { .isEqualTo( V2PromoteResponse.CurrentVersion.builder() .parameters( - V2PromoteResponse.CurrentVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -86,17 +79,15 @@ class V2PromoteResponseTest { .isEqualTo( V2PromoteResponse.DraftVersion.builder() .parameters( - V2PromoteResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2RetrieveResponseTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2RetrieveResponseTest.kt index 192148a9..0c284799 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2RetrieveResponseTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2RetrieveResponseTest.kt @@ -17,18 +17,15 @@ class V2RetrieveResponseTest { .currentVersion( V2RetrieveResponse.CurrentVersion.builder() .parameters( - V2RetrieveResponse.CurrentVersion.Parameters - .ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") .build() ) + .build() ) .version(0L) .build() @@ -36,17 +33,15 @@ class V2RetrieveResponseTest { .draftVersion( V2RetrieveResponse.DraftVersion.builder() .parameters( - V2RetrieveResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -67,17 +62,15 @@ class V2RetrieveResponseTest { .isEqualTo( V2RetrieveResponse.CurrentVersion.builder() .parameters( - V2RetrieveResponse.CurrentVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -86,17 +79,15 @@ class V2RetrieveResponseTest { .isEqualTo( V2RetrieveResponse.DraftVersion.builder() .parameters( - V2RetrieveResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2UpdateResponseTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2UpdateResponseTest.kt index 43b4faf4..dce41309 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2UpdateResponseTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/V2UpdateResponseTest.kt @@ -17,17 +17,15 @@ class V2UpdateResponseTest { .currentVersion( V2UpdateResponse.CurrentVersion.builder() .parameters( - V2UpdateResponse.CurrentVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -35,17 +33,15 @@ class V2UpdateResponseTest { .draftVersion( V2UpdateResponse.DraftVersion.builder() .parameters( - V2UpdateResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -66,17 +62,15 @@ class V2UpdateResponseTest { .isEqualTo( V2UpdateResponse.CurrentVersion.builder() .parameters( - V2UpdateResponse.CurrentVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() @@ -85,17 +79,15 @@ class V2UpdateResponseTest { .isEqualTo( V2UpdateResponse.DraftVersion.builder() .parameters( - V2UpdateResponse.DraftVersion.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .version(0L) .build() diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/VelocityLimitParamsTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/VelocityLimitParamsTest.kt index 81019937..66f941bc 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/VelocityLimitParamsTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/models/VelocityLimitParamsTest.kt @@ -17,7 +17,7 @@ class VelocityLimitParamsTest { .addIncludeMcc("5542") .build() ) - .period(VelocityLimitParams.Period.ofLong(10L)) + .period(10L) .scope(VelocityLimitParams.Scope.CARD) .limitAmount(10000L) .limitCount(0L) diff --git a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/services/blocking/authRules/V2ServiceTest.kt b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/services/blocking/authRules/V2ServiceTest.kt index efeee702..06f3ff3d 100644 --- a/lithic-kotlin-core/src/test/kotlin/com/lithic/api/services/blocking/authRules/V2ServiceTest.kt +++ b/lithic-kotlin-core/src/test/kotlin/com/lithic/api/services/blocking/authRules/V2ServiceTest.kt @@ -46,9 +46,7 @@ class V2ServiceTest { .operation( AuthRuleCondition.Operation.IS_ONE_OF ) - .value( - AuthRuleCondition.Value.ofString("string") - ) + .value("string") .build() ) .build() @@ -154,17 +152,15 @@ class V2ServiceTest { AuthRuleV2DraftParams.builder() .authRuleToken("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .parameters( - AuthRuleV2DraftParams.Parameters.ofConditionalBlockParameters( - ConditionalBlockParameters.builder() - .addCondition( - AuthRuleCondition.builder() - .attribute(ConditionalAttribute.MCC) - .operation(AuthRuleCondition.Operation.IS_ONE_OF) - .value(AuthRuleCondition.Value.ofString("string")) - .build() - ) - .build() - ) + ConditionalBlockParameters.builder() + .addCondition( + AuthRuleCondition.builder() + .attribute(ConditionalAttribute.MCC) + .operation(AuthRuleCondition.Operation.IS_ONE_OF) + .value("string") + .build() + ) + .build() ) .build() )