From 6d954626dfbbbf021914b10fadbb1c5d4b9dc47b Mon Sep 17 00:00:00 2001 From: Deepak Bhardwaj <46839821+imdkbj@users.noreply.github.com> Date: Tue, 12 May 2026 23:07:01 +0530 Subject: [PATCH] Update payments property type to array Change payments property to be an array instead of null. --- lib/types/paymentLink.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/types/paymentLink.d.ts b/lib/types/paymentLink.d.ts index 5a4cf2b..5100574 100644 --- a/lib/types/paymentLink.d.ts +++ b/lib/types/paymentLink.d.ts @@ -101,9 +101,9 @@ export declare namespace PaymentLinks { /** * Payment details such as amount, payment ID, Payment Link ID and more. * This array gets populated only after the customer makes a payment. - * Until then, the value is `null`. + * Until then, the value is `Empty Array`. */ - payments: RazorpayPaymentBaseRequestBody | null; + payments: RazorpayPaymentBaseRequestBody[]; reminders: { status: string; }; @@ -465,4 +465,4 @@ declare function paymentLink(api: any): { notifyBy(paymentLinkId: string, medium: INotify, callback: (err: INormalizeError | null, data: { success: boolean }) => void): void } -export default paymentLink \ No newline at end of file +export default paymentLink