Skip to content

Commit

Permalink
Merge branch 'master' into add_dispute
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitdas13 authored May 7, 2024
2 parents 4184fda + 84e4e74 commit 52747f0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/types/customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, `[email protected]`.
Expand Down
4 changes: 2 additions & 2 deletions lib/types/products.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 { }
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 52747f0

Please sign in to comment.