From 14bbe9711b99a76a288b6c190192351a58a12d60 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:02:12 +0530 Subject: [PATCH 1/2] Update type definition (#405) --- lib/types/customers.d.ts | 2 +- lib/types/products.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/types/customers.d.ts b/lib/types/customers.d.ts index 1a239bb8..b69ae97b 100644 --- a/lib/types/customers.d.ts +++ b/lib/types/customers.d.ts @@ -9,7 +9,7 @@ export declare namespace Customers { * and parentheses are allowed. The name must be between 3-50 characters * in length. For example, `Gaurav Kumar`. */ - name: string; + name?: string; /** * The customer's email address. A maximum length of 64 characters. * For example, `gaurav.kumar@example.com`. diff --git a/lib/types/products.d.ts b/lib/types/products.d.ts index 77ac2a9a..a37d6826 100644 --- a/lib/types/products.d.ts +++ b/lib/types/products.d.ts @@ -10,11 +10,11 @@ export declare namespace Products { /** * Pass this parameter to accept terms and conditions. Send this parameter along with the ip parameter when the tnc is accepted. */ - tnc_accepted: boolean; + tnc_accepted?: boolean; /** * he IP address of the merchant while accepting the terms and conditions. Send this parameter along with the `tnc_accepted` parameter when the `tnc` is accepted. */ - ip: string; + ip?: string; } interface RazorpayProductCreateRequestBody extends RazorpayProductBaseRequestBody { } From 84e4e74adb1e33a7e49b5bc105a158bc2e421107 Mon Sep 17 00:00:00 2001 From: Ankit Das <89454448+ankitdas13@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:33:22 +0530 Subject: [PATCH 2/2] Update v2.9.3 (#406) --- CHANGELOG.md | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60888ebd..d2da9010 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 2.9.3 - 2024-04-18 +fix: Type definition for Product and Customer has been updated. + ## 2.9.2 - 2023-08-16 chore: Changed Content-Type of all APIs from application/x-www-form-urlencoded to application/json diff --git a/package.json b/package.json index 87f63eea..f948374b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "razorpay", - "version": "2.9.2", + "version": "2.9.3", "description": "Official Node SDK for Razorpay API", "main": "dist/razorpay", "typings": "dist/razorpay",