-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve deserialization unit testing (#1421)
* Rename to ideal * Add scheme deserialization test * Improve unit tests * Update returnUrl in unit test
- Loading branch information
Showing
3 changed files
with
66 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/test/resources/mocks/checkout/paymentRequestScheme.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"paymentMethod": { | ||
"brand": null, | ||
"checkoutAttemptId": null, | ||
"cvc": null, | ||
"encryptedCard": null, | ||
"encryptedCardNumber": "eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwidmVyc2lvbiI6IjEifQ.DXQDEl3MdyyW_ZrJoF2Kt3P1H2wWaP1z-FgI6SuDv96lN7e_0ki0mUkI8AL2USS_iiMbG5W4NtD4Ut5TqCBPlgOZfN6vDyM8O6Df-qNbX7rnW9iQQUue_21oo6U9K2tpFEQ9rYgUVIFhfLdFmLZ4q8ejmXFSGuTh-iC06APs2zWdUn0v-S4q4ltAzhee_5yOvffoSCWOWiGltUqViVOnrllheH-POp4qfL9GbaIkjixPyLNLRizQTrOO_j3m0gczeiORcrjXI2NSouSkPP9M1K9nwUWX-jpVTf1PkqLTYRzGQwZCoL9JU9HabRXYdM_eLMtNaIfiBo_4wPq5Iocmww", | ||
"encryptedExpiryMonth": "eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMi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V1ggg.akr9kFjMo2bCwiNozxp6Uq62XmjDbcILXPJX3c3YcHc", | ||
"encryptedSecurityCode": "eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwidmVyc2lvbiI6IjEifQ.gqODDkA-rSgSZ48W-YK7Ofxyvdu6F7kRorV6dtDwaayHDDvTEw-eSsFYpfMfXKeGJcjhAWZL7RwR51XRTez-x7ujwt4MGavr__2NdDJ0tO1e-Pak2k34WZs3H_xyHfJmd7E9SODsJ1yweLNSRrfuLoKY3smSnOd85ZuKv-d1m74ojjWpvDC0pPTe69nsLzbIw1g--UxMGI9oXkeDP_EYnIo9F8W7qUCZfwQ23gJtYTcTg6Qxbd_DP57tKQhvYCi26AHweWKcPWlgl6B1g3z9pL__i46dG8BCd3LDX8ETmgurbbq8chObI-h7FYEZrmLfeTJcRfE0uW7GXvT9ZojIGA.QKdUIrCAsDoNOD3qN7dEqA.LmmCr1q5vKMt_m_ZkQbho7E-28H0N7Hxc8XVrX4yQXkZRqSaGLCOR4MiYV0uFFeV5qzBt6jpTHFANmT9DXQgsg.k9zkNnkggMuHdcpwsLvfmPTDhrw3zF00FXsw7p9QC_Q", | ||
"expiryMonth": null, | ||
"expiryYear": null, | ||
"fundingSource": null, | ||
"holderName": null, | ||
"networkPaymentReference": null, | ||
"number": null, | ||
"shopperNotificationReference": null, | ||
"srcCorrelationId": null, | ||
"srcDigitalCardId": null, | ||
"srcScheme": null, | ||
"srcTokenReference": null, | ||
"storedPaymentMethodId": null, | ||
"threeDS2SdkVersion": "2.4.2", | ||
"type": "scheme" | ||
}, | ||
"isNullable": false, | ||
"schemaType": "oneOf" | ||
} |