razorpay / razorpay-java

Razorpay Java SDK
https://mvnrepository.com/artifact/com.razorpay/razorpay-java
MIT License
58 stars 67 forks source link

Added document endpoint #316

Closed ankitdas13 closed 8 months ago

ankitdas13 commented 8 months ago

Reference doc

Create a Document

Fetch Document Information

codecov-commenter commented 8 months ago

Codecov Report

Attention: Patch coverage is 36.36364% with 21 lines in your changes are missing coverage. Please review.

Project coverage is 84.12%. Comparing base (d899315) to head (2598fda).

Files Patch % Lines
src/main/java/com/razorpay/ApiUtils.java 8.69% 20 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #316 +/- ## ============================================ - Coverage 86.32% 84.12% -2.20% - Complexity 324 333 +9 ============================================ Files 62 64 +2 Lines 731 762 +31 Branches 31 34 +3 ============================================ + Hits 631 641 +10 - Misses 75 95 +20 - Partials 25 26 +1 ``` | [Flag](https://app.codecov.io/gh/razorpay/razorpay-java/pull/316/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=razorpay) | Coverage Δ | | |---|---|---| | [tests](https://app.codecov.io/gh/razorpay/razorpay-java/pull/316/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=razorpay) | `84.12% <36.36%> (-2.20%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=razorpay#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

ankitdas13 commented 8 months ago

@rohitcbr Changed json string to json object in test cases. Also placed doc url from official doc in both .md & test case file

Url

https://github.com/razorpay/razorpay-java/blob/a521eebcc8121a982ebcbf7715c5a183fb9dfd12/documents/document.md?plain=1#L7

https://github.com/razorpay/razorpay-java/blob/a521eebcc8121a982ebcbf7715c5a183fb9dfd12/src/test/java/com/razorpay/DocumentClientTest.java#L19

JSON Object

https://github.com/razorpay/razorpay-java/blob/a521eebcc8121a982ebcbf7715c5a183fb9dfd12/src/test/java/com/razorpay/DocumentClientTest.java#L22

https://github.com/razorpay/razorpay-java/blob/a521eebcc8121a982ebcbf7715c5a183fb9dfd12/src/test/java/com/razorpay/DocumentClientTest.java#L49