Skip to content

Commit

Permalink
Merge pull request #4 from cashfree/2.0.0
Browse files Browse the repository at this point in the history
2.0.0
  • Loading branch information
harshitprajapati316 authored Nov 8, 2024
2 parents f77678c + 008a729 commit 73c517e
Show file tree
Hide file tree
Showing 105 changed files with 179 additions and 361 deletions.
18 changes: 0 additions & 18 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ docs/ReverseGeocodingResponseSchema.md
docs/ReversePennyDropApi.md
docs/SplitAddress.md
docs/SplitAddressSchema.md
docs/UpiAdvanceRequestSchema.md
docs/UpiAdvanceResponseSchema.md
docs/UpiApi.md
docs/UpiMobileRequestSchema.md
docs/UpiMobileResponseSchema.md
docs/V2ErrorResponse404SchemaIpVerification.md
docs/ValidityDetails.md
docs/VehicleRcApi.md
Expand All @@ -119,7 +114,6 @@ docs/VehicleRcResponseSchema.md
docs/VoterIdApi.md
docs/VoterIdRequestSchema.md
docs/VoterIdResponseSchema.md
docs/VpaFromPhone500Schema.md
docs/XClientIdMissing.md
git_push.sh
gradle.properties
Expand Down Expand Up @@ -163,7 +157,6 @@ src/main/java/com/cashfree/client/PanToGstinApi.java
src/main/java/com/cashfree/client/PassportApi.java
src/main/java/com/cashfree/client/ReverseGeocodingApi.java
src/main/java/com/cashfree/client/ReversePennyDropApi.java
src/main/java/com/cashfree/client/UpiApi.java
src/main/java/com/cashfree/client/VehicleRcApi.java
src/main/java/com/cashfree/client/VoterIdApi.java
src/main/java/com/cashfree/model/AadhaarMaskingResponseSchema.java
Expand Down Expand Up @@ -251,17 +244,12 @@ src/main/java/com/cashfree/model/ReverseGeocodingRequestSchema.java
src/main/java/com/cashfree/model/ReverseGeocodingResponseSchema.java
src/main/java/com/cashfree/model/SplitAddress.java
src/main/java/com/cashfree/model/SplitAddressSchema.java
src/main/java/com/cashfree/model/UpiAdvanceRequestSchema.java
src/main/java/com/cashfree/model/UpiAdvanceResponseSchema.java
src/main/java/com/cashfree/model/UpiMobileRequestSchema.java
src/main/java/com/cashfree/model/UpiMobileResponseSchema.java
src/main/java/com/cashfree/model/V2ErrorResponse404SchemaIpVerification.java
src/main/java/com/cashfree/model/ValidityDetails.java
src/main/java/com/cashfree/model/VehicleRcRequestSchema.java
src/main/java/com/cashfree/model/VehicleRcResponseSchema.java
src/main/java/com/cashfree/model/VoterIdRequestSchema.java
src/main/java/com/cashfree/model/VoterIdResponseSchema.java
src/main/java/com/cashfree/model/VpaFromPhone500Schema.java
src/main/java/com/cashfree/model/XClientIdMissing.java
src/test/java/com/cashfree/client/AadhaarApiTest.java
src/test/java/com/cashfree/client/AdvancedEmploymentApiTest.java
Expand All @@ -279,7 +267,6 @@ src/test/java/com/cashfree/client/PanToGstinApiTest.java
src/test/java/com/cashfree/client/PassportApiTest.java
src/test/java/com/cashfree/client/ReverseGeocodingApiTest.java
src/test/java/com/cashfree/client/ReversePennyDropApiTest.java
src/test/java/com/cashfree/client/UpiApiTest.java
src/test/java/com/cashfree/client/VehicleRcApiTest.java
src/test/java/com/cashfree/client/VoterIdApiTest.java
src/test/java/com/cashfree/model/AadhaarMaskingResponseSchemaTest.java
Expand Down Expand Up @@ -366,15 +353,10 @@ src/test/java/com/cashfree/model/ReverseGeocodingRequestSchemaTest.java
src/test/java/com/cashfree/model/ReverseGeocodingResponseSchemaTest.java
src/test/java/com/cashfree/model/SplitAddressSchemaTest.java
src/test/java/com/cashfree/model/SplitAddressTest.java
src/test/java/com/cashfree/model/UpiAdvanceRequestSchemaTest.java
src/test/java/com/cashfree/model/UpiAdvanceResponseSchemaTest.java
src/test/java/com/cashfree/model/UpiMobileRequestSchemaTest.java
src/test/java/com/cashfree/model/UpiMobileResponseSchemaTest.java
src/test/java/com/cashfree/model/V2ErrorResponse404SchemaIpVerificationTest.java
src/test/java/com/cashfree/model/ValidityDetailsTest.java
src/test/java/com/cashfree/model/VehicleRcRequestSchemaTest.java
src/test/java/com/cashfree/model/VehicleRcResponseSchemaTest.java
src/test/java/com/cashfree/model/VoterIdRequestSchemaTest.java
src/test/java/com/cashfree/model/VoterIdResponseSchemaTest.java
src/test/java/com/cashfree/model/VpaFromPhone500SchemaTest.java
src/test/java/com/cashfree/model/XClientIdMissingTest.java
41 changes: 36 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Cashfree Verification Java SDK
# Cashfree PG Java SDK
![GitHub](https://img.shields.io/github/license/cashfree/cashfree-verification-sdk-java) ![Discord](https://img.shields.io/discord/931125665669972018?label=discord) ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/cashfree/cashfree-verification-sdk-java/main) ![GitHub release (with filter)](https://img.shields.io/github/v/release/cashfree/cashfree-verification-sdk-java?label=latest) ![GitHub forks](https://img.shields.io/github/forks/cashfree/cashfree-verification-sdk-java) [![Coverage Status](https://coveralls.io/repos/github/cashfree/cashfree-verification-sdk-java/badge.svg?branch=main)](https://coveralls.io/github/cashfree/cashfree-verification-sdk-java?branch=main)

The Cashfree Verification Java SDK offers a convenient solution to access [Cashfree Verification APIs](https://docs.cashfree.com/reference/verification-api-overview) from a server-side Java applications.
The Cashfree PG Java SDK offers a convenient solution to access [Cashfree PG APIs](https://docs.cashfree.com/reference/verification-new-apis-endpoint) from a server-side Java applications.



## Documentation

Cashfree's Verification API Documentation - (https://docs.cashfree.com/reference/verification-api-overview)
Cashfree's PG API Documentation - https://docs.cashfree.com/reference/verification-new-apis-endpoint

Learn and understand payment gateway workflows at Cashfree Payments [here](https://docs.cashfree.com/docs/payment-gateway)

Try out our interactive guides at [Cashfree Dev Studio](https://www.cashfree.com/devstudio) !

Expand All @@ -16,14 +18,14 @@ Try out our interactive guides at [Cashfree Dev Studio](https://www.cashfree.com
### Installation
* Gradle Project
```bash
implementation `com.cashfree.verification.java:cashfree_verification:1.0.3`
implementation `com.cashfree.verification.java:cashfree_verification:2.0.0`
```
* Maven Project
```bash
<dependency>
<groupId>com.cashfree.verification.java</groupId>
<artifactId>cashfree_verification</artifactId>
<version>1.0.3</version>
<version>2.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand All @@ -47,6 +49,35 @@ String xApiVersion = "2022-09-01";

Generate your API keys (x-client-id , x-client-secret) from [Cashfree Merchant Dashboard](https://merchant.cashfree.com/merchants/login)

### Basic Usage
Create Order
```java
CustomerDetails customerDetails = new CustomerDetails();
customerDetails.setCustomerId("walterwNrcMi");
customerDetails.setCustomerPhone("9999999999");

CreateOrderRequest request = new CreateOrderRequest();
request.setOrderAmount(1.0);
request.setOrderCurrency("INR");
request.setCustomerDetails(customerDetails);
try {
ApiResponse<OrderEntity> response = cashfree.PGCreateOrder(xApiVersion, request, null, null, null);
System.out.println(response.getData().getOrderId());
} catch (ApiException e) {
throw new RuntimeException(e);
}
```

Get Order
```java
try {
ApiResponse<OrderEntity> responseFetchOrder = cashfree.PGFetchOrder(xApiVersion, "<order_id>", null, null, null);
System.out.println(response.getData().getOrderId());
} catch (ApiException e) {
throw new RuntimeException(e);
}
```

## Licence

Apache Licensed. See [LICENSE.md](LICENSE.md) for more details
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apply plugin: 'maven-publish'
apply plugin: 'signing'

group = 'com.cashfree.verification.java'
version = '1.0.3'
version = '2.0.0'

buildscript {
repositories {
Expand Down Expand Up @@ -116,7 +116,7 @@ if(hasProperty('target') && target == 'android') {

groupId 'com.cashfree.verification.java'
artifactId 'cashfree_verification'
version '1.0.3'
version '2.0.0'

from components.java

Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.cashfree.verification.java",
name := "cashfree_verification",
version := "1.0.3",
version := "2.0.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>cashfree_verification</artifactId>
<packaging>jar</packaging>
<name>cashfree_verification</name>
<version>1.0.3</version>
<version>2.0.0</version>
<url>https://github.com/cashfree/cashfree-verification-sdk-java</url>
<description>Java Framework for Cashfree Verification.</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/cashfree/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* <p>ApiException class.</p>
*/
@SuppressWarnings("serial")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-12T04:15:15.893702Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-08T05:03:36.102379Z[Etc/UTC]")
public class ApiException extends Exception {
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
Expand Down
Loading

0 comments on commit 73c517e

Please sign in to comment.