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/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", 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)