From 40dbf534f3643f4b183513d45219281b579c7b43 Mon Sep 17 00:00:00 2001 From: edirates Date: Sun, 4 Sep 2022 12:16:57 +0700 Subject: [PATCH 1/2] Add isRecurring field in method card.createCharge --- README.md | 1 + src/card/charge.d.ts | 1 + src/card/charge.js | 1 + 3 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 41a06d5..88d89cc 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,7 @@ card.createCharge(data: { installment?: object; forUserID?: string; metadata?: object; + isRecurring?: boolean; }) ``` diff --git a/src/card/charge.d.ts b/src/card/charge.d.ts index 824a301..2110bcc 100644 --- a/src/card/charge.d.ts +++ b/src/card/charge.d.ts @@ -13,6 +13,7 @@ export function createCharge(data: { installment?: object; forUserID?: string; metadata?: object; + isRecurring: boolean; }): Promise; export function captureCharge(data: { diff --git a/src/card/charge.js b/src/card/charge.js index 407a85b..85e8a90 100644 --- a/src/card/charge.js +++ b/src/card/charge.js @@ -31,6 +31,7 @@ function createCharge(data) { promotion: data.promotion, installment: data.installment, metadata: data.metadata, + is_recurring: data.isRecurring, }), }) .then(resolve) From 1c7e09ca6c8d28a320e8d5dfb99f0be28a203bc3 Mon Sep 17 00:00:00 2001 From: edirates Date: Mon, 5 Sep 2022 20:47:15 +0700 Subject: [PATCH 2/2] Update package.json version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3b07bf8..216f0e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xendit-node", - "version": "1.21.5", + "version": "1.21.6", "description": "NodeJS client for Xendit API", "main": "index.js", "types": "index.d.ts",