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; }) ``` 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)