Skip to content

Commit

Permalink
Fix errors after update
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarSpruit committed Jul 20, 2023
1 parent 0fc0326 commit 0a19496
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ constructor(
val onFileData = grants.find { it.type == GrantType.EXTENDED }?.let {
CashAppPayOnFileData(
grantId = it.id,
cashTag = customerResponseData.customerProfile?.cashTag,
cashTag = customerResponseData.customerProfile?.cashTag?.toString(),
customerId = customerResponseData.customerProfile?.id
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import app.cash.paykit.core.CashAppPay
import app.cash.paykit.core.CashAppPayFactory
import app.cash.paykit.core.CashAppPayState
import app.cash.paykit.core.models.common.Action
import app.cash.paykit.core.models.pii.PiiString
import app.cash.paykit.core.models.response.CustomerProfile
import app.cash.paykit.core.models.response.CustomerResponseData
import app.cash.paykit.core.models.response.Grant
Expand Down Expand Up @@ -387,7 +388,7 @@ internal class DefaultCashAppPayDelegateTest(
createGrant(GrantType.ONE_TIME),
createGrant(GrantType.EXTENDED)
)
whenever(mockResponse.customerProfile) doReturn CustomerProfile("customerId", "cashTag")
whenever(mockResponse.customerProfile) doReturn CustomerProfile("customerId", PiiString("cashTag"))
delegate.cashAppPayStateDidChange(CashAppPayState.Approved(mockResponse))

val actual = testFlow.latestValue
Expand All @@ -411,7 +412,7 @@ internal class DefaultCashAppPayDelegateTest(
createGrant(GrantType.ONE_TIME),
createGrant(GrantType.EXTENDED)
)
whenever(mockResponse.customerProfile) doReturn CustomerProfile("customerId", "cashTag")
whenever(mockResponse.customerProfile) doReturn CustomerProfile("customerId", PiiString("cashTag"))
delegate.cashAppPayStateDidChange(CashAppPayState.Approved(mockResponse))

verify(submitHandler).onSubmit(testFlow.latestValue)
Expand Down
16 changes: 16 additions & 0 deletions gradle/verification-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1656,6 +1656,14 @@
<sha256 value="93faaca8d3c3de225ecc6cfea7ef33b019ad3f560cd4205127a4c0aced8bfdc0" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="app.cash.paykit" name="analytics-core" version="2.2.1">
<artifact name="analytics-core-2.2.1.aar">
<sha256 value="2510fb7e93906ef747bd5ce14793169bae41087d07bdd70879d875da70c8aad2" origin="Generated by Gradle"/>
</artifact>
<artifact name="analytics-core-2.2.1.module">
<sha256 value="961a4db87021908795f6df0503f4d6e3fa2dba37e3305eb8fd5a3c8be7d4d6b1" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="app.cash.paykit" name="core" version="2.1.0">
<artifact name="core-2.1.0.aar">
<sha256 value="b82a48ae46209400cfbdb6060a4471d410ca047f7549e708b31a859b295dc492" origin="Generated by Gradle"/>
Expand All @@ -1672,6 +1680,14 @@
<sha256 value="bc0c88baa4a4775106366a3a16db29163e8b9c005094b9fc14494ec7da4436f8" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="app.cash.paykit" name="core" version="2.2.1">
<artifact name="core-2.2.1.aar">
<sha256 value="59f07874ed864ba547642890284e55ba9573e85e2c01faad6c67daddb8de45f3" origin="Generated by Gradle"/>
</artifact>
<artifact name="core-2.2.1.module">
<sha256 value="57e88cb076ec508e23c162fa65402fc8205484eaeff12557ae4e77d2d7541371" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="app.cash.turbine" name="turbine" version="0.12.1">
<artifact name="turbine-0.12.1.module">
<sha256 value="8bcfb5ca83f2829a67479603c734af94f5fdbc3a686886dae6db3359b3d23839" origin="Generated by Gradle"/>
Expand Down

0 comments on commit 0a19496

Please sign in to comment.