From efd0b474062b2d718362c70fcff673180109628f Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 9 Dec 2025 19:45:27 -0600 Subject: [PATCH 1/3] fix: updating cartes bancaires brand to fix tests --- .../main/java/com/basistheory/elements/constants/CardBrands.kt | 2 +- .../java/com/basistheory/elements/constants/CoBadgedSupport.kt | 2 +- .../java/com/basistheory/elements/view/CardNumberElement.kt | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/src/main/java/com/basistheory/elements/constants/CardBrands.kt b/lib/src/main/java/com/basistheory/elements/constants/CardBrands.kt index 902a41c..c5bc10c 100644 --- a/lib/src/main/java/com/basistheory/elements/constants/CardBrands.kt +++ b/lib/src/main/java/com/basistheory/elements/constants/CardBrands.kt @@ -13,5 +13,5 @@ enum class CardBrands(val label: String) { MIR("mir"), HIPER("hiper"), HIPERCARD("hipercard"), - CARTES_BANCAIRES("cartes-bancaires") + CARTES_BANCAIRES("cartes_bancaires") } \ No newline at end of file diff --git a/lib/src/main/java/com/basistheory/elements/constants/CoBadgedSupport.kt b/lib/src/main/java/com/basistheory/elements/constants/CoBadgedSupport.kt index bebb0bd..b0fe52e 100644 --- a/lib/src/main/java/com/basistheory/elements/constants/CoBadgedSupport.kt +++ b/lib/src/main/java/com/basistheory/elements/constants/CoBadgedSupport.kt @@ -1,7 +1,7 @@ package com.basistheory.elements.constants enum class CoBadgedSupport(val value: String) { - CARTES_BANCAIRES("cartes-bancaires"); + CARTES_BANCAIRES("cartes_bancaires"); companion object { fun fromString(value: String): CoBadgedSupport? { diff --git a/lib/src/main/java/com/basistheory/elements/view/CardNumberElement.kt b/lib/src/main/java/com/basistheory/elements/view/CardNumberElement.kt index 9243f9e..9d3ca78 100644 --- a/lib/src/main/java/com/basistheory/elements/view/CardNumberElement.kt +++ b/lib/src/main/java/com/basistheory/elements/view/CardNumberElement.kt @@ -14,14 +14,11 @@ import com.basistheory.elements.event.EventDetails import com.basistheory.elements.model.BinDetails import com.basistheory.elements.model.CardMetadata import com.basistheory.elements.model.InputType -import com.basistheory.elements.service.ApiClientProvider import com.basistheory.elements.service.CardBrandEnricher import com.basistheory.elements.util.BinDetailsCache import com.basistheory.elements.view.mask.ElementMask import com.basistheory.elements.view.transform.RegexReplaceElementTransform import com.basistheory.elements.view.validation.LuhnValidator -import com.basistheory.resources.enrichments.requests.EnrichmentsGetCardDetailsRequest -import com.basistheory.types.CardDetailsResponse import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Job From 49917350baf0a80e73cff8e17c62ebbfe0fcace2 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 9 Dec 2025 19:46:00 -0600 Subject: [PATCH 2/3] updating deprecated runner --- .github/workflows/pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 87a85fd..3afefaa 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -29,7 +29,7 @@ jobs: run: ./gradlew testDebugUnitTest acceptance: - runs-on: macos-13 + runs-on: macos-15-intel environment: PR env: From eed8cb38a230d791b2e414acceba9b1e1c8475a6 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 9 Dec 2025 20:17:04 -0600 Subject: [PATCH 3/3] fix test --- .../java/com/basistheory/elements/example/CollectCardTests.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/androidTest/java/com/basistheory/elements/example/CollectCardTests.kt b/example/src/androidTest/java/com/basistheory/elements/example/CollectCardTests.kt index a2d5b9f..1d1e990 100644 --- a/example/src/androidTest/java/com/basistheory/elements/example/CollectCardTests.kt +++ b/example/src/androidTest/java/com/basistheory/elements/example/CollectCardTests.kt @@ -172,7 +172,7 @@ class CollectCardTests { .perform(waitUntilVisible(10000L)) onView(withId(R.id.card_brand_selector)).perform(click()) - onView(withText("CARTES BANCAIRES")).perform(click()) + onView(withText("CARTES_BANCAIRES")).perform(click()) onView(withId(R.id.tokenize_button)).check(matches(isEnabled())) }