Skip to content

Commit

Permalink
Merge pull request #166 from edirates/feat/add-is-recurring-field
Browse files Browse the repository at this point in the history
Add isRecurring field in method card.createCharge
  • Loading branch information
xen-HendryZheng authored Sep 6, 2022
2 parents 8242f6e + 1c7e09c commit 4bad9a4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ card.createCharge(data: {
installment?: object;
forUserID?: string;
metadata?: object;
isRecurring?: boolean;
})
```

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": "xendit-node",
"version": "1.21.5",
"version": "1.21.6",
"description": "NodeJS client for Xendit API",
"main": "index.js",
"types": "index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/card/charge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export function createCharge(data: {
installment?: object;
forUserID?: string;
metadata?: object;
isRecurring: boolean;
}): Promise<object>;

export function captureCharge(data: {
Expand Down
1 change: 1 addition & 0 deletions src/card/charge.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function createCharge(data) {
promotion: data.promotion,
installment: data.installment,
metadata: data.metadata,
is_recurring: data.isRecurring,
}),
})
.then(resolve)
Expand Down

0 comments on commit 4bad9a4

Please sign in to comment.