From 11586bdf83c784a39df1a8ea4f98b96a6c721929 Mon Sep 17 00:00:00 2001 From: Sina Madani Date: Wed, 7 Aug 2024 09:42:33 +0100 Subject: [PATCH] refactor: Rename internal clients --- .github/workflows/build.yml | 4 +-- pom.xml | 5 +-- .../kotlin/com/vonage/client/kt/Account.kt | 24 ++++++------- .../kotlin/com/vonage/client/kt/Conversion.kt | 4 +-- .../kotlin/com/vonage/client/kt/Messages.kt | 6 ++-- .../com/vonage/client/kt/NumberInsight.kt | 10 +++--- .../vonage/client/kt/NumberVerification.kt | 6 ++-- .../kotlin/com/vonage/client/kt/Numbers.kt | 12 +++---- .../kotlin/com/vonage/client/kt/Redact.kt | 12 +++---- .../kotlin/com/vonage/client/kt/SimSwap.kt | 6 ++-- src/main/kotlin/com/vonage/client/kt/Sms.kt | 4 +-- .../kotlin/com/vonage/client/kt/Verify.kt | 10 +++--- .../com/vonage/client/kt/VerifyLegacy.kt | 16 ++++----- src/main/kotlin/com/vonage/client/kt/Voice.kt | 34 +++++++++---------- .../kotlin/com/vonage/client/kt/Vonage.kt | 27 +++++++-------- src/test/resources/junit-platform.properties | 1 + 16 files changed, 91 insertions(+), 90 deletions(-) create mode 100644 src/test/resources/junit-platform.properties diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eed8c75..81377fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,7 +36,7 @@ jobs: java-version: ${{ matrix.java }} cache: maven - name: Compile with Maven - run: mvn -e --batch-mode compile + run: mvn -e --batch-mode compile -T 1C verify: runs-on: ${{ matrix.os }} @@ -62,7 +62,7 @@ jobs: VONAGE_SIGNATURE_SECRET: abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQR VONAGE_APPLICATION_ID: 00000000-0000-4000-8000-000000000000 VONAGE_PRIVATE_KEY_PATH: src/test/resources/com/vonage/client/kt/application_key - run: mvn -e --batch-mode clean verify + run: mvn -e --batch-mode clean verify -T 1C - name: Run Codecov uses: codecov/codecov-action@v4 with: diff --git a/pom.xml b/pom.xml index 0516061..11a41fb 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.vonage server-sdk-kotlin - 0.7.0 + 0.8.0 Vonage Kotlin Server SDK Kotlin client for Vonage APIs @@ -40,6 +40,7 @@ + https://oss.sonatype.org scm:git@github.com:Vonage/vonage-kotlin-sdk UTF-8 UTF-8 @@ -269,7 +270,7 @@ true nexus-releases - https://oss.sonatype.org + ${nexusUrl} true diff --git a/src/main/kotlin/com/vonage/client/kt/Account.kt b/src/main/kotlin/com/vonage/client/kt/Account.kt index da68253..89ebf86 100644 --- a/src/main/kotlin/com/vonage/client/kt/Account.kt +++ b/src/main/kotlin/com/vonage/client/kt/Account.kt @@ -17,34 +17,34 @@ package com.vonage.client.kt import com.vonage.client.account.* -class Account internal constructor(private val accountClient: AccountClient) { +class Account internal constructor(private val client: AccountClient) { - fun getBalance(): BalanceResponse = accountClient.balance + fun getBalance(): BalanceResponse = client.balance - fun topUp(transactionId: String): Unit = accountClient.topUp(transactionId) + fun topUp(transactionId: String): Unit = client.topUp(transactionId) fun updateSettings(incomingSmsUrl: String? = null, deliverReceiptUrl: String? = null): SettingsResponse = - accountClient.updateSettings(SettingsRequest(incomingSmsUrl, deliverReceiptUrl)) + client.updateSettings(SettingsRequest(incomingSmsUrl, deliverReceiptUrl)) fun secrets(apiKey: String? = null): Secrets = Secrets(apiKey) inner class Secrets internal constructor(val apiKey: String? = null) { fun list(): List = ( - if (apiKey == null) accountClient.listSecrets() - else accountClient.listSecrets(apiKey) + if (apiKey == null) client.listSecrets() + else client.listSecrets(apiKey) ).secrets fun create(secret: String): SecretResponse = - if (apiKey == null) accountClient.createSecret(secret) - else accountClient.createSecret(apiKey, secret) + if (apiKey == null) client.createSecret(secret) + else client.createSecret(apiKey, secret) fun get(secretId: String): SecretResponse = - if (apiKey == null) accountClient.getSecret(secretId) - else accountClient.getSecret(apiKey, secretId) + if (apiKey == null) client.getSecret(secretId) + else client.getSecret(apiKey, secretId) fun delete(secretId: String): Unit = - if (apiKey == null) accountClient.revokeSecret(secretId) - else accountClient.revokeSecret(apiKey, secretId) + if (apiKey == null) client.revokeSecret(secretId) + else client.revokeSecret(apiKey, secretId) } } diff --git a/src/main/kotlin/com/vonage/client/kt/Conversion.kt b/src/main/kotlin/com/vonage/client/kt/Conversion.kt index f1aa261..40b32f5 100644 --- a/src/main/kotlin/com/vonage/client/kt/Conversion.kt +++ b/src/main/kotlin/com/vonage/client/kt/Conversion.kt @@ -19,11 +19,11 @@ import com.vonage.client.conversion.* import java.time.Instant import java.util.* -class Conversion internal constructor(private val conversionClient: ConversionClient) { +class Conversion internal constructor(private val client: ConversionClient) { private fun convert(type: ConversionRequest.Type, messageId: String, delivered: Boolean, timestamp: Instant?): Unit = - conversionClient.submitConversion(type, messageId, delivered, + client.submitConversion(type, messageId, delivered, if (timestamp != null) Date.from(timestamp) else null ) diff --git a/src/main/kotlin/com/vonage/client/kt/Messages.kt b/src/main/kotlin/com/vonage/client/kt/Messages.kt index 9732fa0..4447895 100644 --- a/src/main/kotlin/com/vonage/client/kt/Messages.kt +++ b/src/main/kotlin/com/vonage/client/kt/Messages.kt @@ -23,10 +23,10 @@ import com.vonage.client.messages.messenger.* import com.vonage.client.messages.viber.* import java.util.UUID -class Messages internal constructor(private val messagesClient: MessagesClient) { +class Messages internal constructor(private val client: MessagesClient) { fun send(message: MessageRequest, sandbox: Boolean = false): UUID = - (if (sandbox) messagesClient.useSandboxEndpoint() - else messagesClient.useRegularEndpoint()).sendMessage(message).messageUuid + (if (sandbox) client.useSandboxEndpoint() + else client.useRegularEndpoint()).sendMessage(message).messageUuid } fun smsText(init: SmsTextRequest.Builder.() -> Unit): SmsTextRequest = diff --git a/src/main/kotlin/com/vonage/client/kt/NumberInsight.kt b/src/main/kotlin/com/vonage/client/kt/NumberInsight.kt index e9eec8d..f3ccbfe 100644 --- a/src/main/kotlin/com/vonage/client/kt/NumberInsight.kt +++ b/src/main/kotlin/com/vonage/client/kt/NumberInsight.kt @@ -17,24 +17,24 @@ package com.vonage.client.kt import com.vonage.client.insight.* -class NumberInsight internal constructor(private val niClient: InsightClient) { +class NumberInsight internal constructor(private val client: InsightClient) { fun basic(number: String, countryCode: String? = null): BasicInsightResponse = - niClient.getBasicNumberInsight(number, countryCode) + client.getBasicNumberInsight(number, countryCode) fun standard(number: String, countryCode: String? = null, cnam: Boolean? = null): StandardInsightResponse = - niClient.getStandardNumberInsight(StandardInsightRequest.builder() + client.getStandardNumberInsight(StandardInsightRequest.builder() .number(number).country(countryCode).cnam(cnam).build() ) fun advanced(number: String, countryCode: String? = null, cnam: Boolean = false, realTimeData: Boolean = false): AdvancedInsightResponse = - niClient.getAdvancedNumberInsight(AdvancedInsightRequest.builder().async(false) + client.getAdvancedNumberInsight(AdvancedInsightRequest.builder().async(false) .number(number).country(countryCode).cnam(cnam).realTimeData(realTimeData).build() ) fun advancedAsync(number: String, callbackUrl: String, countryCode: String? = null, cnam: Boolean = false) { - niClient.getAdvancedNumberInsight( + client.getAdvancedNumberInsight( AdvancedInsightRequest.builder().async(true) .number(number).country(countryCode).cnam(cnam).callback(callbackUrl).build() ) diff --git a/src/main/kotlin/com/vonage/client/kt/NumberVerification.kt b/src/main/kotlin/com/vonage/client/kt/NumberVerification.kt index 6f65a49..f79413b 100644 --- a/src/main/kotlin/com/vonage/client/kt/NumberVerification.kt +++ b/src/main/kotlin/com/vonage/client/kt/NumberVerification.kt @@ -18,16 +18,16 @@ package com.vonage.client.kt import com.vonage.client.camara.numberverification.* import java.net.URI -class NumberVerification internal constructor(private val nvClient: NumberVerificationClient) { +class NumberVerification internal constructor(private val client: NumberVerificationClient) { private var redirectUri: URI? = null fun createVerificationUrl(phoneNumber: String, redirectUrl: String, state: String? = null): URI { redirectUri = URI.create(redirectUrl) - return nvClient.initiateVerification(phoneNumber, redirectUri, state) + return client.initiateVerification(phoneNumber, redirectUri, state) } fun verifyNumberWithCode(phoneNumber: String, code: String, redirectUrl: String? = null): Boolean { if (redirectUrl != null) redirectUri = URI.create(redirectUrl) - return nvClient.verifyNumber(phoneNumber, redirectUri, code) + return client.verifyNumber(phoneNumber, redirectUri, code) } } diff --git a/src/main/kotlin/com/vonage/client/kt/Numbers.kt b/src/main/kotlin/com/vonage/client/kt/Numbers.kt index 13c68c4..dff8e26 100644 --- a/src/main/kotlin/com/vonage/client/kt/Numbers.kt +++ b/src/main/kotlin/com/vonage/client/kt/Numbers.kt @@ -17,25 +17,25 @@ package com.vonage.client.kt import com.vonage.client.numbers.* -class Numbers internal constructor(private val numbersClient: NumbersClient) { +class Numbers internal constructor(private val client: NumbersClient) { fun number(countryCode: String, msisdn: String) = ExistingNumber(countryCode, msisdn) inner class ExistingNumber internal constructor(val countryCode: String, val msisdn: String) { fun buy(targetApiKey: String? = null): Unit = - numbersClient.buyNumber(countryCode, msisdn, targetApiKey) + client.buyNumber(countryCode, msisdn, targetApiKey) fun cancel(targetApiKey: String? = null): Unit = - numbersClient.cancelNumber(countryCode, msisdn, targetApiKey) + client.cancelNumber(countryCode, msisdn, targetApiKey) fun update(properties: UpdateNumberRequest.Builder.() -> Unit): Unit = - numbersClient.updateNumber(UpdateNumberRequest.builder(msisdn, countryCode).apply(properties).build()) + client.updateNumber(UpdateNumberRequest.builder(msisdn, countryCode).apply(properties).build()) } fun listOwned(filter: ListNumbersFilter.Builder.() -> Unit = {}): ListNumbersResponse = - numbersClient.listNumbers(ListNumbersFilter.builder().apply(filter).build()) + client.listNumbers(ListNumbersFilter.builder().apply(filter).build()) fun searchAvailable(filter: SearchNumbersFilter.Builder.() -> Unit): SearchNumbersResponse = - numbersClient.searchNumbers(SearchNumbersFilter.builder().apply(filter).build()) + client.searchNumbers(SearchNumbersFilter.builder().apply(filter).build()) } diff --git a/src/main/kotlin/com/vonage/client/kt/Redact.kt b/src/main/kotlin/com/vonage/client/kt/Redact.kt index 84b51a3..4b88237 100644 --- a/src/main/kotlin/com/vonage/client/kt/Redact.kt +++ b/src/main/kotlin/com/vonage/client/kt/Redact.kt @@ -17,20 +17,20 @@ package com.vonage.client.kt import com.vonage.client.redact.* -class Redact internal constructor(private val redactClient: RedactClient) { +class Redact internal constructor(private val client: RedactClient) { fun redactSms(messageId: String, direction: RedactRequest.Type = RedactRequest.Type.OUTBOUND): Unit = - redactClient.redactTransaction(messageId, RedactRequest.Product.SMS, direction) + client.redactTransaction(messageId, RedactRequest.Product.SMS, direction) fun redactMessage(messageId: String, direction: RedactRequest.Type = RedactRequest.Type.OUTBOUND): Unit = - redactClient.redactTransaction(messageId, RedactRequest.Product.MESSAGES, direction) + client.redactTransaction(messageId, RedactRequest.Product.MESSAGES, direction) fun redactCall(callId: String, direction: RedactRequest.Type = RedactRequest.Type.OUTBOUND): Unit = - redactClient.redactTransaction(callId, RedactRequest.Product.VOICE, direction) + client.redactTransaction(callId, RedactRequest.Product.VOICE, direction) fun redactInsight(requestId: String): Unit = - redactClient.redactTransaction(requestId, RedactRequest.Product.NUMBER_INSIGHTS) + client.redactTransaction(requestId, RedactRequest.Product.NUMBER_INSIGHTS) fun redactVerification(requestId: String): Unit = - redactClient.redactTransaction(requestId, RedactRequest.Product.VERIFY) + client.redactTransaction(requestId, RedactRequest.Product.VERIFY) } diff --git a/src/main/kotlin/com/vonage/client/kt/SimSwap.kt b/src/main/kotlin/com/vonage/client/kt/SimSwap.kt index ceb2499..3a50b79 100644 --- a/src/main/kotlin/com/vonage/client/kt/SimSwap.kt +++ b/src/main/kotlin/com/vonage/client/kt/SimSwap.kt @@ -18,11 +18,11 @@ package com.vonage.client.kt import com.vonage.client.camara.simswap.* import java.time.Instant -class SimSwap internal constructor(private val simSwapClient: SimSwapClient) { +class SimSwap internal constructor(private val client: SimSwapClient) { fun checkSimSwap(phoneNumber: String, maxAgeHours: Int = 240): Boolean = - simSwapClient.checkSimSwap(phoneNumber, maxAgeHours) + client.checkSimSwap(phoneNumber, maxAgeHours) fun retrieveSimSwapDate(phoneNumber: String): Instant? = - simSwapClient.retrieveSimSwapDate(phoneNumber) + client.retrieveSimSwapDate(phoneNumber) } diff --git a/src/main/kotlin/com/vonage/client/kt/Sms.kt b/src/main/kotlin/com/vonage/client/kt/Sms.kt index ca6d3c1..803fbbf 100644 --- a/src/main/kotlin/com/vonage/client/kt/Sms.kt +++ b/src/main/kotlin/com/vonage/client/kt/Sms.kt @@ -18,7 +18,7 @@ package com.vonage.client.kt import com.vonage.client.sms.* import com.vonage.client.sms.messages.* -class Sms internal constructor(private val smsClient: SmsClient) { +class Sms internal constructor(private val client: SmsClient) { private fun send(msgObj: Message, statusReport: Boolean?, ttl: Int?, messageClass: Message.MessageClass?, clientRef: String?, @@ -31,7 +31,7 @@ class Sms internal constructor(private val smsClient: SmsClient) { msgObj.contentId = contentId msgObj.entityId = entityId msgObj.callbackUrl = callbackUrl - return smsClient.submitMessage(msgObj).messages + return client.submitMessage(msgObj).messages } fun sendText(from: String, to: String, message: String, unicode: Boolean = false, diff --git a/src/main/kotlin/com/vonage/client/kt/Verify.kt b/src/main/kotlin/com/vonage/client/kt/Verify.kt index 07b74d0..c6f86a3 100644 --- a/src/main/kotlin/com/vonage/client/kt/Verify.kt +++ b/src/main/kotlin/com/vonage/client/kt/Verify.kt @@ -18,23 +18,23 @@ package com.vonage.client.kt import com.vonage.client.verify2.* import java.util.* -class Verify(private val verify2Client: Verify2Client) { +class Verify(private val client: Verify2Client) { fun sendVerification( brand: String = "Vonage", init: VerificationRequest.Builder.() -> Unit - ): VerificationResponse = verify2Client.sendVerification( + ): VerificationResponse = client.sendVerification( VerificationRequest.builder().brand(brand).apply(init).build() ) inner class ExistingRequest internal constructor(private val requestId: UUID) { - fun cancel(): Unit = verify2Client.cancelVerification(requestId) + fun cancel(): Unit = client.cancelVerification(requestId) - fun nextWorkflow(): Unit = verify2Client.nextWorkflow(requestId) + fun nextWorkflow(): Unit = client.nextWorkflow(requestId) fun checkVerificationCode(code: String): VerifyCodeResponse = - verify2Client.checkVerificationCode(requestId, code) + client.checkVerificationCode(requestId, code) fun isValidVerificationCode(code: String): Boolean { try { diff --git a/src/main/kotlin/com/vonage/client/kt/VerifyLegacy.kt b/src/main/kotlin/com/vonage/client/kt/VerifyLegacy.kt index f9ee406..c56e001 100644 --- a/src/main/kotlin/com/vonage/client/kt/VerifyLegacy.kt +++ b/src/main/kotlin/com/vonage/client/kt/VerifyLegacy.kt @@ -17,16 +17,16 @@ package com.vonage.client.kt import com.vonage.client.verify.* -class VerifyLegacy internal constructor(private val verifyClient: VerifyClient) { +class VerifyLegacy internal constructor(private val client: VerifyClient) { fun verify(number: String, brand: String, properties: (VerifyRequest.Builder.() -> Unit) = {}): VerifyResponse = - verifyClient.verify(VerifyRequest.builder(number, brand).apply(properties).build()) + client.verify(VerifyRequest.builder(number, brand).apply(properties).build()) fun psd2Verify(number: String, amount: Double, payee: String, properties: (Psd2Request.Builder.() -> Unit) = {}): VerifyResponse = - verifyClient.psd2Verify(Psd2Request.builder(number, amount, payee).apply(properties).build()) + client.psd2Verify(Psd2Request.builder(number, amount, payee).apply(properties).build()) - fun search(vararg requestIds: String): SearchVerifyResponse = verifyClient.search(*requestIds) + fun search(vararg requestIds: String): SearchVerifyResponse = client.search(*requestIds) fun request(requestId: String): ExistingRequest = ExistingRequest(requestId) @@ -34,13 +34,13 @@ class VerifyLegacy internal constructor(private val verifyClient: VerifyClient) inner class ExistingRequest internal constructor(private val requestId: String) { - fun cancel(): ControlResponse = verifyClient.cancelVerification(requestId) + fun cancel(): ControlResponse = client.cancelVerification(requestId) - fun advance(): ControlResponse = verifyClient.advanceVerification(requestId) + fun advance(): ControlResponse = client.advanceVerification(requestId) - fun check(code: String): CheckResponse = verifyClient.check(requestId, code) + fun check(code: String): CheckResponse = client.check(requestId, code) - fun search(): SearchVerifyResponse = verifyClient.search(requestId) + fun search(): SearchVerifyResponse = client.search(requestId) @Override override fun equals(other: Any?): Boolean { diff --git a/src/main/kotlin/com/vonage/client/kt/Voice.kt b/src/main/kotlin/com/vonage/client/kt/Voice.kt index 3ff4932..2007f84 100644 --- a/src/main/kotlin/com/vonage/client/kt/Voice.kt +++ b/src/main/kotlin/com/vonage/client/kt/Voice.kt @@ -21,49 +21,49 @@ import java.net.URI import java.time.Instant import java.util.* -class Voice(private val voiceClient: VoiceClient) { +class Voice internal constructor(private val client: VoiceClient) { fun call(callId: String): ExistingCall = ExistingCall(callId) inner class ExistingCall internal constructor(val callId: String) { - fun info(): CallInfo = voiceClient.getCallDetails(callId) + fun info(): CallInfo = client.getCallDetails(callId) - fun hangup(): Unit = voiceClient.terminateCall(callId) + fun hangup(): Unit = client.terminateCall(callId) - fun mute(): Unit = voiceClient.muteCall(callId) + fun mute(): Unit = client.muteCall(callId) - fun unmute(): Unit = voiceClient.unmuteCall(callId) + fun unmute(): Unit = client.unmuteCall(callId) - fun earmuff(): Unit = voiceClient.earmuffCall(callId) + fun earmuff(): Unit = client.earmuffCall(callId) - fun unearmuff(): Unit = voiceClient.unearmuffCall(callId) + fun unearmuff(): Unit = client.unearmuffCall(callId) - fun transfer(vararg actions: Action): Unit = voiceClient.transferCall(callId, Ncco(actions.asList())) + fun transfer(vararg actions: Action): Unit = client.transferCall(callId, Ncco(actions.asList())) - fun transfer(nccoUrl: String): Unit = voiceClient.transferCall(callId, nccoUrl) + fun transfer(nccoUrl: String): Unit = client.transferCall(callId, nccoUrl) fun transfer(nccoUrl: URI): Unit = transfer(nccoUrl.toString()) - fun sendDtmf(digits: String): DtmfResponse = voiceClient.sendDtmf(callId, digits) + fun sendDtmf(digits: String): DtmfResponse = client.sendDtmf(callId, digits) fun streamAudio(streamUrl: String, loop: Int = 1, level: Double = 0.0): StreamResponse = - voiceClient.startStream(callId, streamUrl, loop, level) + client.startStream(callId, streamUrl, loop, level) - fun stopStream(): StreamResponse = voiceClient.stopStream(callId) + fun stopStream(): StreamResponse = client.stopStream(callId) fun startTalk(text: String, properties: (TalkPayload.Builder.() -> Unit) = {}): TalkResponse = - voiceClient.startTalk(callId, TalkPayload.builder(text).apply(properties).build()) + client.startTalk(callId, TalkPayload.builder(text).apply(properties).build()) - fun stopTalk(): TalkResponse = voiceClient.stopTalk(callId) + fun stopTalk(): TalkResponse = client.stopTalk(callId) } fun listCalls(filter: (CallsFilter.Builder.() -> Unit)? = null): CallInfoPage = - if (filter == null) voiceClient.listCalls() - else voiceClient.listCalls(CallsFilter.builder().apply(filter).build()) + if (filter == null) client.listCalls() + else client.listCalls(CallsFilter.builder().apply(filter).build()) fun createCall(call: Call.Builder.() -> Unit): CallEvent = - voiceClient.createCall(Call.builder().apply(call).build()) + client.createCall(Call.builder().apply(call).build()) } fun CallsFilter.Builder.dateStart(dateStart: String): CallsFilter.Builder = diff --git a/src/main/kotlin/com/vonage/client/kt/Vonage.kt b/src/main/kotlin/com/vonage/client/kt/Vonage.kt index 1060bff..fbccce0 100644 --- a/src/main/kotlin/com/vonage/client/kt/Vonage.kt +++ b/src/main/kotlin/com/vonage/client/kt/Vonage.kt @@ -19,20 +19,19 @@ import com.vonage.client.HttpConfig import com.vonage.client.VonageClient class Vonage(init: VonageClient.Builder.() -> Unit) { - private val vonageClient : VonageClient = VonageClient.builder().apply(init).build() - val account = Account(vonageClient.accountClient) - val conversion = Conversion(vonageClient.conversionClient) - val messages = Messages(vonageClient.messagesClient) - val numberInsight = NumberInsight(vonageClient.insightClient) - val numbers = Numbers(vonageClient.numbersClient) - val numberVerification = NumberVerification(vonageClient.numberVerificationClient) - val redact = Redact(vonageClient.redactClient) - val simSwap = SimSwap(vonageClient.simSwapClient) - val sms = Sms(vonageClient.smsClient) - val verify = Verify(vonageClient.verify2Client) - val verifyLegacy = VerifyLegacy(vonageClient.verifyClient) - val voice = Voice(vonageClient.voiceClient) - + private val client : VonageClient = VonageClient.builder().apply(init).build() + val account = Account(client.accountClient) + val conversion = Conversion(client.conversionClient) + val messages = Messages(client.messagesClient) + val numberInsight = NumberInsight(client.insightClient) + val numbers = Numbers(client.numbersClient) + val numberVerification = NumberVerification(client.numberVerificationClient) + val redact = Redact(client.redactClient) + val simSwap = SimSwap(client.simSwapClient) + val sms = Sms(client.smsClient) + val verify = Verify(client.verify2Client) + val verifyLegacy = VerifyLegacy(client.verifyClient) + val voice = Voice(client.voiceClient) } fun VonageClient.Builder.authFromEnv(): VonageClient.Builder { diff --git a/src/test/resources/junit-platform.properties b/src/test/resources/junit-platform.properties new file mode 100644 index 0000000..f7abe96 --- /dev/null +++ b/src/test/resources/junit-platform.properties @@ -0,0 +1 @@ +#junit.jupiter.execution.parallel.enabled = true