This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement GetBalance client call and server endpoint (#217)
* adding balance, fixing offerings. wip * adding optional success field to close message * fixing test data message and resource constructions. more tests are passing, but test vectors need to be fixed, also need to look at the new regex pattern decimalString and see if it still works with numbers with decimal * in the middle of refactoring - all tests using test vectors are still failing. * adding a todo * refactoring method name in vector test * bumping submodule commit * adding ktdocs * more ktdocs * adding balance and resource tests for balance. adding balance test vector tests * adding new client method to fetch balances * wrote client tests * adding server endpoint for balance api * adding detekt fixes. still 1 test failing due to rfq schema error * adding requesterDid to balanceApi.getBalance param. doing an auth token check on getbalances handler method. formatting * refactoring existing tests. add new test for getbalance * adding ktdoc for fakeBalancesApi#addBalance * Apply suggestions from code review Co-authored-by: Diane Huxley <[email protected]> * adding try catch around parsing balance and offering * Update httpserver/src/main/kotlin/tbdex/sdk/httpserver/TbdexHttpServer.kt Co-authored-by: kirahsapong <[email protected]> * adding balancesEnabled config * aligning with tbdex-js way of making balancesapi optional * removed testserver --------- Co-authored-by: Diane Huxley <[email protected]> Co-authored-by: kirahsapong <[email protected]>
- Loading branch information
1 parent
2276108
commit d87adb2
Showing
14 changed files
with
574 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.