Skip to content

5.0.1-beta-3#114

Open
rajnandan1 wants to merge 1 commit into
mainfrom
5.0.1-beta-3
Open

5.0.1-beta-3#114
rajnandan1 wants to merge 1 commit into
mainfrom
5.0.1-beta-3

Conversation

@rajnandan1

Copy link
Copy Markdown
Contributor

Raising PR to github

Copilot AI review requested due to automatic review settings January 19, 2026 13:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request downgrades the SDK version from 5.1.0 to 5.0.1-beta-3, representing a significant rollback to a beta version. The changes include API version rollback, dependency version updates, and removal of several API features and interfaces.

Changes:

  • Version downgrade from 5.1.0 to 5.0.1-beta-3 with OpenAPI document version rollback from 2025-01-01 to 2023-08-01
  • Dependency updates with multiple nonexistent/future package versions
  • Removal of various API interfaces, fields, and features including PAR creation, product configurations, and payment filtering capabilities
  • Breaking changes to API signatures including type changes and required field modifications

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 91 comments.

Show a summary per file
File Description
package.json Version downgrade to beta, dependency updates with nonexistent versions
index.ts OpenAPI document version rollback to 2023-08-01
configuration.ts OpenAPI document version rollback to 2023-08-01
common.ts OpenAPI document version rollback to 2023-08-01
base.ts OpenAPI document version rollback to 2023-08-01
api.ts Major API changes: interface removals, type changes, field requirement changes, new QR code APIs, breaking changes to subscription and terminal APIs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread index.ts
* Cashfree\'s Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
* The version of the OpenAPI document: 2025-01-01
* The version of the OpenAPI document: 2023-08-01

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The OpenAPI document version is being changed from "2025-01-01" to "2023-08-01", indicating a rollback to an older API version. This is a breaking change that may affect API compatibility and should be documented in the PR description.

Suggested change
* The version of the OpenAPI document: 2023-08-01
* The version of the OpenAPI document: 2025-01-01

Copilot uses AI. Check for mistakes.
Comment thread api.ts
@@ -9618,7 +8529,7 @@ export interface TerminalDetails {
* @type {string}
* @memberof TerminalDetails
*/
'terminal_phone_no'?: string;
'terminal_phone_no': string;

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The terminal_phone_no field is changed from optional to required (removed the ?). This is a breaking API change that could cause compilation errors for existing code that doesn't provide this field.

Suggested change
'terminal_phone_no': string;
'terminal_phone_no'?: string;

Copilot uses AI. Check for mistakes.
Comment thread api.ts
Comment on lines +1840 to +1843
* @type {string}
* @memberof CreateSubscriptionRefundRequest
*/
'cf_payment_id'?: string;

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cf_payment_id field type is changed from number to string in CreateSubscriptionRefundRequest. This is a breaking change that will cause type errors in existing code.

Suggested change
* @type {string}
* @memberof CreateSubscriptionRefundRequest
*/
'cf_payment_id'?: string;
* @type {string | number}
* @memberof CreateSubscriptionRefundRequest
*/
'cf_payment_id'?: string | number;

Copilot uses AI. Check for mistakes.
Comment thread api.ts
@@ -7060,7 +6410,7 @@ export interface PaymentWebhookErrorEntity {
'error_description_raw'?: string;
}
/**
* payment gateway details present in the webhook response
* payment gatewat details present in the webhook response

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in comment: "gatewat" should be "gateway".

Suggested change
* payment gatewat details present in the webhook response
* payment gateway details present in the webhook response

Copilot uses AI. Check for mistakes.
Comment thread api.ts
Comment on lines +1645 to +1647
* @interface CreateSubscriptionPaymentRequestEnack
*/
export interface CreateSubscriptionPaymentRequestEnach {
export interface CreateSubscriptionPaymentRequestEnack {

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interface name typo: "CreateSubscriptionPaymentRequestEnach" should be "CreateSubscriptionPaymentRequestEnack" (changed from "Enach" to "Enack"). While this appears to be a fix, it's still a breaking change as existing code using the old interface name will fail.

Copilot uses AI. Check for mistakes.
Comment thread api.ts
@@ -18138,7 +17217,7 @@ const TokenVaultApiAxiosParamCreator = function (cashfree: Cashfree) {



localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-5.1.0';
localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-5.0.1-beta-3';
if (x_api_version != null && x_api_version != undefined) {

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guard always evaluates to true.

Copilot uses AI. Check for mistakes.
Comment thread api.ts
@@ -18210,7 +17289,7 @@ const TokenVaultApiAxiosParamCreator = function (cashfree: Cashfree) {



localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-5.1.0';
localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-5.0.1-beta-3';
if (x_api_version != null && x_api_version != undefined) {

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guard always evaluates to true.

Copilot uses AI. Check for mistakes.
Comment thread api.ts
@@ -18285,7 +17364,7 @@ const TokenVaultApiAxiosParamCreator = function (cashfree: Cashfree) {



localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-5.1.0';
localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-5.0.1-beta-3';
if (x_api_version != null && x_api_version != undefined) {

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guard always evaluates to true.

Copilot uses AI. Check for mistakes.
Comment thread api.ts
@@ -18357,7 +17436,7 @@ const TokenVaultApiAxiosParamCreator = function (cashfree: Cashfree) {



localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-5.1.0';
localVarHeaderParameter['x-sdk-platform'] = 'nodejssdk-5.0.1-beta-3';
if (x_api_version != null && x_api_version != undefined) {

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guard always evaluates to true.

Copilot uses AI. Check for mistakes.
Comment thread api.ts
*/




class Environment {

Copilot AI Jan 19, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused class Environment.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants