From 6a6250952c8ce42874c5b87b818ec849240c1cd4 Mon Sep 17 00:00:00 2001 From: Willy PT <1708055+willypt@users.noreply.github.com> Date: Mon, 3 Jul 2023 17:13:26 +0700 Subject: [PATCH 1/2] feat: add regional create va capability --- src/va/account.d.ts | 3 +++ src/va/account.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/va/account.d.ts b/src/va/account.d.ts index decc748..c3ea89e 100644 --- a/src/va/account.d.ts +++ b/src/va/account.d.ts @@ -9,6 +9,9 @@ export function createFixedVA(data: { expirationDate?: Date; isSingleUse?: boolean; description?: string; + currency?: string; + country?: string; + alternativeDisplayTypes?: string[]; forUserID?: string; }): Promise; diff --git a/src/va/account.js b/src/va/account.js index 4ec1368..9e78e42 100644 --- a/src/va/account.js +++ b/src/va/account.js @@ -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) From c361a2b0daa55bb2ef6bd28b318fe447675b8c0a Mon Sep 17 00:00:00 2001 From: Willy PT <1708055+willypt@users.noreply.github.com> Date: Tue, 4 Jul 2023 08:37:12 +0700 Subject: [PATCH 2/2] chore: update doc --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b7c462..d2d1295 100644 --- a/README.md +++ b/README.md @@ -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; @@ -340,6 +340,9 @@ va.createFixedVA(data: { expirationDate?: Date; isSingleUse?: boolean; description?: string; + currency?: string; + country?: string; + alternativeDisplayTypes?: string[]; forUserID?: string; }) ```