cashfree-pg 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Cashfree Payment Gateway APIs
3
+ * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
4
+ *
5
+ * The version of the OpenAPI document: 2022-09-01
6
+ * Contact: developers@cashfree.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosInstance, AxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ options: AxiosRequestConfig;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ constructor(field: string, msg?: string);
54
+ }
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cashfree Payment Gateway APIs
5
+ * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
6
+ *
7
+ * The version of the OpenAPI document: 2022-09-01
8
+ * Contact: developers@cashfree.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ export const BASE_PATH = "https://sandbox.cashfree.com/pg".replace(/\/+$/, "");
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const COLLECTION_FORMATS = {
21
+ csv: ",",
22
+ ssv: " ",
23
+ tsv: "\t",
24
+ pipes: "|",
25
+ };
26
+ /**
27
+ *
28
+ * @export
29
+ * @class BaseAPI
30
+ */
31
+ export class BaseAPI {
32
+ constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
33
+ this.basePath = basePath;
34
+ this.axios = axios;
35
+ if (configuration) {
36
+ this.configuration = configuration;
37
+ this.basePath = configuration.basePath || this.basePath;
38
+ }
39
+ }
40
+ }
41
+ ;
42
+ /**
43
+ *
44
+ * @export
45
+ * @class RequiredError
46
+ * @extends {Error}
47
+ */
48
+ export class RequiredError extends Error {
49
+ constructor(field, msg) {
50
+ super(msg);
51
+ this.field = field;
52
+ this.name = "RequiredError";
53
+ }
54
+ }
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Cashfree Payment Gateway APIs
3
+ * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
4
+ *
5
+ * The version of the OpenAPI document: 2022-09-01
6
+ * Contact: developers@cashfree.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from "./configuration";
13
+ import type { RequestArgs } from "./base";
14
+ import type { AxiosInstance, AxiosResponse } from 'axios';
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ /**
20
+ *
21
+ * @throws {RequiredError}
22
+ * @export
23
+ */
24
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
25
+ /**
26
+ *
27
+ * @export
28
+ */
29
+ export declare const setApiKeyToObject: (object: any, keyParamName: string) => Promise<void>;
30
+ /**
31
+ *
32
+ * @export
33
+ */
34
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
35
+ /**
36
+ *
37
+ * @export
38
+ */
39
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
40
+ /**
41
+ *
42
+ * @export
43
+ */
44
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
45
+ /**
46
+ *
47
+ * @export
48
+ */
49
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
50
+ /**
51
+ *
52
+ * @export
53
+ */
54
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
55
+ /**
56
+ *
57
+ * @export
58
+ */
59
+ export declare const toPathString: (url: URL) => string;
60
+ /**
61
+ *
62
+ * @export
63
+ */
64
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -0,0 +1,167 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cashfree Payment Gateway APIs
5
+ * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
6
+ *
7
+ * The version of the OpenAPI document: 2022-09-01
8
+ * Contact: developers@cashfree.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import { RequiredError } from "./base";
24
+ import { Cashfree } from "./api";
25
+ /**
26
+ *
27
+ * @export
28
+ */
29
+ /**
30
+ *
31
+ * @throws {RequiredError}
32
+ * @export
33
+ */
34
+ export const assertParamExists = function (functionName, paramName, paramValue) {
35
+ if (paramValue === null || paramValue === undefined) {
36
+ throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
37
+ }
38
+ };
39
+ /**
40
+ *
41
+ * @export
42
+ */
43
+ export const setApiKeyToObject = function (object, keyParamName) {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ if (keyParamName == "x-client-id") {
46
+ if (Cashfree.XClientId != null && Cashfree.XClientId != undefined) {
47
+ object[keyParamName] = Cashfree.XClientId;
48
+ }
49
+ }
50
+ if (keyParamName == "x-client-secret") {
51
+ if (Cashfree.XClientSecret != null && Cashfree.XClientSecret != undefined) {
52
+ object[keyParamName] = Cashfree.XClientSecret;
53
+ }
54
+ }
55
+ if (keyParamName == "x-partner-apikey") {
56
+ if (Cashfree.XPartnerKey != null && Cashfree.XPartnerKey != undefined) {
57
+ object[keyParamName] = Cashfree.XPartnerKey;
58
+ }
59
+ }
60
+ if (keyParamName == "x-partner-merchantid") {
61
+ if (Cashfree.XPartnerMerchantId != null && Cashfree.XPartnerMerchantId != undefined) {
62
+ object[keyParamName] = Cashfree.XPartnerMerchantId;
63
+ }
64
+ }
65
+ if (keyParamName == "x-client-signature") {
66
+ if (Cashfree.XClientSignature != null && Cashfree.XClientSignature != undefined) {
67
+ object[keyParamName] = Cashfree.XClientSignature;
68
+ }
69
+ }
70
+ });
71
+ };
72
+ /**
73
+ *
74
+ * @export
75
+ */
76
+ export const setBasicAuthToObject = function (object, configuration) {
77
+ if (configuration && (configuration.username || configuration.password)) {
78
+ object["auth"] = { username: configuration.username, password: configuration.password };
79
+ }
80
+ };
81
+ /**
82
+ *
83
+ * @export
84
+ */
85
+ export const setBearerAuthToObject = function (object, configuration) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ if (configuration && configuration.accessToken) {
88
+ const accessToken = typeof configuration.accessToken === 'function'
89
+ ? yield configuration.accessToken()
90
+ : yield configuration.accessToken;
91
+ object["Authorization"] = "Bearer " + accessToken;
92
+ }
93
+ });
94
+ };
95
+ /**
96
+ *
97
+ * @export
98
+ */
99
+ export const setOAuthToObject = function (object, name, scopes, configuration) {
100
+ return __awaiter(this, void 0, void 0, function* () {
101
+ if (configuration && configuration.accessToken) {
102
+ const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
103
+ ? yield configuration.accessToken(name, scopes)
104
+ : yield configuration.accessToken;
105
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
106
+ }
107
+ });
108
+ };
109
+ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
110
+ if (parameter == null)
111
+ return;
112
+ if (typeof parameter === "object") {
113
+ if (Array.isArray(parameter)) {
114
+ parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
115
+ }
116
+ else {
117
+ Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
118
+ }
119
+ }
120
+ else {
121
+ if (urlSearchParams.has(key)) {
122
+ urlSearchParams.append(key, parameter);
123
+ }
124
+ else {
125
+ urlSearchParams.set(key, parameter);
126
+ }
127
+ }
128
+ }
129
+ /**
130
+ *
131
+ * @export
132
+ */
133
+ export const setSearchParams = function (url, ...objects) {
134
+ const searchParams = new URLSearchParams(url.search);
135
+ setFlattenedQueryParams(searchParams, objects);
136
+ url.search = searchParams.toString();
137
+ };
138
+ /**
139
+ *
140
+ * @export
141
+ */
142
+ export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
143
+ const nonString = typeof value !== 'string';
144
+ const needsSerialization = nonString && configuration && configuration.isJsonMime
145
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
146
+ : nonString;
147
+ return needsSerialization
148
+ ? JSON.stringify(value !== undefined ? value : {})
149
+ : (value || "");
150
+ };
151
+ /**
152
+ *
153
+ * @export
154
+ */
155
+ export const toPathString = function (url) {
156
+ return url.pathname + url.search + url.hash;
157
+ };
158
+ /**
159
+ *
160
+ * @export
161
+ */
162
+ export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
163
+ return (axios = globalAxios, basePath = BASE_PATH) => {
164
+ const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: basePath + axiosArgs.url });
165
+ return axios.request(axiosRequestArgs);
166
+ };
167
+ };
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Cashfree Payment Gateway APIs
3
+ * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
4
+ *
5
+ * The version of the OpenAPI document: 2022-09-01
6
+ * Contact: developers@cashfree.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare enum CFEnvironment {
17
+ SANDBOX = 1,
18
+ PRODUCTION = 2
19
+ }
20
+ export interface ConfigurationParameters {
21
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
22
+ username?: string;
23
+ password?: string;
24
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
25
+ basePath?: string;
26
+ baseOptions?: any;
27
+ formDataCtor?: new () => any;
28
+ }
29
+ export declare class Configuration {
30
+ /**
31
+ * parameter for apiKey security
32
+ * @param name security name
33
+ * @memberof Configuration
34
+ */
35
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
36
+ /**
37
+ * parameter for basic security
38
+ *
39
+ * @type {string}
40
+ * @memberof Configuration
41
+ */
42
+ username?: string;
43
+ /**
44
+ * parameter for basic security
45
+ *
46
+ * @type {string}
47
+ * @memberof Configuration
48
+ */
49
+ password?: string;
50
+ /**
51
+ * parameter for oauth2 security
52
+ * @param name security name
53
+ * @param scopes oauth2 scope
54
+ * @memberof Configuration
55
+ */
56
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
57
+ /**
58
+ * override base path
59
+ *
60
+ * @type {string}
61
+ * @memberof Configuration
62
+ */
63
+ basePath?: string;
64
+ /**
65
+ * base options for axios calls
66
+ *
67
+ * @type {any}
68
+ * @memberof Configuration
69
+ */
70
+ baseOptions?: any;
71
+ /**
72
+ * The FormData constructor that will be used to create multipart form data
73
+ * requests. You can inject this here so that execution environments that
74
+ * do not support the FormData class can still run the generated client.
75
+ *
76
+ * @type {new () => FormData}
77
+ */
78
+ formDataCtor?: new () => any;
79
+ constructor(param?: ConfigurationParameters);
80
+ /**
81
+ * Check if the given MIME is a JSON MIME.
82
+ * JSON MIME examples:
83
+ * application/json
84
+ * application/json; charset=UTF8
85
+ * APPLICATION/JSON
86
+ * application/vnd.company+json
87
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
88
+ * @return True if the given MIME is JSON, false otherwise.
89
+ */
90
+ isJsonMime(mime: string): boolean;
91
+ }
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cashfree Payment Gateway APIs
5
+ * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
6
+ *
7
+ * The version of the OpenAPI document: 2022-09-01
8
+ * Contact: developers@cashfree.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ *
16
+ * @export
17
+ */
18
+ export var CFEnvironment;
19
+ (function (CFEnvironment) {
20
+ CFEnvironment[CFEnvironment["SANDBOX"] = 1] = "SANDBOX";
21
+ CFEnvironment[CFEnvironment["PRODUCTION"] = 2] = "PRODUCTION";
22
+ })(CFEnvironment || (CFEnvironment = {}));
23
+ export class Configuration {
24
+ constructor(param = {}) {
25
+ this.apiKey = param.apiKey;
26
+ this.username = param.username;
27
+ this.password = param.password;
28
+ this.accessToken = param.accessToken;
29
+ this.basePath = param.basePath;
30
+ this.baseOptions = param.baseOptions;
31
+ this.formDataCtor = param.formDataCtor;
32
+ }
33
+ /**
34
+ * Check if the given MIME is a JSON MIME.
35
+ * JSON MIME examples:
36
+ * application/json
37
+ * application/json; charset=UTF8
38
+ * APPLICATION/JSON
39
+ * application/vnd.company+json
40
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
41
+ * @return True if the given MIME is JSON, false otherwise.
42
+ */
43
+ isJsonMime(mime) {
44
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
45
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
46
+ }
47
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Cashfree Payment Gateway APIs
3
+ * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
4
+ *
5
+ * The version of the OpenAPI document: 2022-09-01
6
+ * Contact: developers@cashfree.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export * from "./api";
13
+ export * from "./configuration";
@@ -0,0 +1,15 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cashfree Payment Gateway APIs
5
+ * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
6
+ *
7
+ * The version of the OpenAPI document: 2022-09-01
8
+ * Contact: developers@cashfree.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export * from "./api";
15
+ export * from "./configuration";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Cashfree Payment Gateway APIs
3
+ * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
4
+ *
5
+ * The version of the OpenAPI document: 2022-09-01
6
+ * Contact: developers@cashfree.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export * from "./api";
13
+ export * from "./configuration";
package/dist/index.js ADDED
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cashfree Payment Gateway APIs
6
+ * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
7
+ *
8
+ * The version of the OpenAPI document: 2022-09-01
9
+ * Contact: developers@cashfree.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api"), exports);
31
+ __exportStar(require("./configuration"), exports);
package/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="suhas-cashfree"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="cashfree-pg-sdk-nodejs"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
package/index.ts ADDED
@@ -0,0 +1,18 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cashfree Payment Gateway APIs
5
+ * Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
6
+ *
7
+ * The version of the OpenAPI document: 2022-09-01
8
+ * Contact: developers@cashfree.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ export * from "./api";
17
+ export * from "./configuration";
18
+
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "cashfree-pg",
3
+ "version": "3.0.0",
4
+ "description": "Cashfree client for cashfree-pg",
5
+ "author": "Cashfree Payments",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/suhas-cashfree/cashfree-pg-sdk-nodejs.git"
9
+ },
10
+ "keywords": [
11
+ "axios",
12
+ "typescript",
13
+ "openapi-client",
14
+ "openapi-generator",
15
+ "cashfree-pg"
16
+ ],
17
+ "license": "MIT",
18
+ "main": "./dist/index.js",
19
+ "typings": "./dist/index.d.ts",
20
+ "module": "./dist/esm/index.js",
21
+ "sideEffects": false,
22
+ "scripts": {
23
+ "build": "tsc && tsc -p tsconfig.esm.json",
24
+ "prepare": "npm run build"
25
+ },
26
+ "dependencies": {
27
+ "axios": "1.5.1",
28
+ "@sentry/node": "^7.73.0"
29
+ },
30
+ "devDependencies": {
31
+ "@types/node": "^12.11.5",
32
+ "typescript": "^4.0"
33
+ }
34
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "esnext",
5
+ "outDir": "dist/esm"
6
+ }
7
+ }