Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: provisioning get settlement accountid #74

Merged
merged 2 commits into from
May 31, 2022

Conversation

vijayg10
Copy link
Contributor

No description provided.

@@ -367,7 +367,7 @@
"requestVariables.quoteId = '{$function.generic.generateUUID}'",
"requestVariables.transactionId = '{$function.generic.generateUUID}'",
"",
"requestVariables.amount = -Number(environment.payerSettlementAccountBalance) - Number(environment.payerPositionBeforeTransfer) + 1000;",
"requestVariables.amount = -Number(environment.payerSettlementAccountBalance).toFixed(2) - Number(environment.payerPositionBeforeTransfer).toFixed(2) + 1000;",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the "2" here if it is the digits after the period, using two here maybe fine for now, but we'll need to get the scale specific to each currency based on the ISO 4217 standards for this to be generic, isn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. But we need to expose a simple function to get the scale for a currency based on the ISO 4217 codes to use in scripts. There are many other places where we used "2". Need to modify TTK which takes time and can be a separate story.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Please capture this separate story so that we don't miss it..

Approving PR.. Thanks!

@elnyry-sam-k
Copy link
Member

Looks good, except for just one minor comment. Thanks!

@vijayg10 vijayg10 requested a review from elnyry-sam-k May 31, 2022 08:57
@vijayg10 vijayg10 merged commit ce07224 into master May 31, 2022
@vijayg10 vijayg10 deleted the fix/provisioning-get-settlement-accountid branch May 31, 2022 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants