Skip to content

Commit

Permalink
Merge pull request #201 from willypt/willypt/feat/regional-va
Browse files Browse the repository at this point in the history
feat: add regional create va capability
  • Loading branch information
sekaranglila committed Jul 4, 2023
2 parents aa13298 + c361a2b commit 8831acf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ card.createPromotion(data: {

### Virtual Account Services

Instanitiate VA service using constructor that has been injected with Xendit keys
Instantiate VA service using constructor that has been injected with Xendit keys

```js
const { VirtualAcc } = x;
Expand Down Expand Up @@ -340,6 +340,9 @@ va.createFixedVA(data: {
expirationDate?: Date;
isSingleUse?: boolean;
description?: string;
currency?: string;
country?: string;
alternativeDisplayTypes?: string[];
forUserID?: string;
})
```
Expand Down
3 changes: 3 additions & 0 deletions src/va/account.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export function createFixedVA(data: {
expirationDate?: Date;
isSingleUse?: boolean;
description?: string;
currency?: string;
country?: string;
alternativeDisplayTypes?: string[];
forUserID?: string;
}): Promise<object>;

Expand Down
3 changes: 3 additions & 0 deletions src/va/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ function createFixedVA(data) {
: undefined,
is_single_use: data.isSingleUse,
description: data.description,
currency: data.currency,
country: data.country,
alternative_display_types: data.alternativeDisplayTypes,
}),
})
.then(resolve)
Expand Down

0 comments on commit 8831acf

Please sign in to comment.