Closed scannillo closed 1 year ago
This PR re-writes our CardPaymentsTests based on the source code changes introduced in this series of networking layer refactor PRs.
CardPaymentsTests
CheckoutOrdersAPI
VaultPaymentsTokenAPI
CardClient
<PPassAPI>
ConfirmPaymentSourceRequest
CardPaymentTests/Mocks
VaultPaymentTokensAPI
CardClient_Tests
CardResponses
ConfirmPaymentSourceReponse
main
APIClient
NetworkingClient
@scannillo
Reason for changes
This PR re-writes our
CardPaymentsTests
based on the source code changes introduced in this series of networking layer refactor PRs.Summary of changes
CheckoutOrdersAPI
VaultPaymentsTokenAPI
CardClient
(now relies on mocked<PPassAPI>
classes to stub network responses)ConfirmPaymentSourceRequest
(now it's only a model type, versus before it had many functions)CardPaymentTests/Mocks
dirCheckoutOrdersAPI
andVaultPaymentTokensAPI
for use inCardClient_Tests
CardResponses
file of sample JSON responses to be rawConfirmPaymentSourceReponse
typesNext
main
now! Tests are passing 😎main
:APIClient
-->NetworkingClient
Checklist
Authors
@scannillo