Repository navigation
Fiat accounts a customer also uses on UNIGOX: spendable, reserved and held (unreleased) - #107
Merged
Merged
Conversation
…ses on UNIGOX (unreleased) A customer who is verified with a partner and with UNIGOX will be able to use the same EUR account from their UNIGOX wallet. One balance then serves both sides, so the partner needs to know how much of it is already promised. - fiat-accounts.md: new section "When the customer also uses the account on UNIGOX" with the three added balance fields, an example, the rule that pay-from-balance is limited by spendable and refused whole above it, and the new fiat_account.balance.changed event. It opens with the "Not available yet" notice. The pay-from-balance text and its INSUFFICIENT_BALANCE row now name the balance that can be spent. - changelog.md: entry under Unreleased, linked to that section. - openapi/swagger.yaml: held, reserved and spendable on FiatBalance, the pay-from-balance wording, and the new event in the webhook list. Merge last, after the services are live. On that day replace Unreleased with the date and remove the notice. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this documents
A customer who is verified with a partner and with UNIGOX will be able to use the same EUR fiat account from their UNIGOX wallet. One balance then serves both sides, so the partner has to know how much of it is already promised to something.
Until now the published guide said that
availableis what can be spent, and it did not mention a reserved amount at all.Changes
fiat-accounts.md: new section "When the customer also uses the account on UNIGOX".spendable,reservedandheld, which together equalavailable. Example included.reservedcovers: a deposit matched to an open order that the order has not taken yet, the proceeds of a UNIGOX sale on their way to the customer's bank, a payment the bank has not booked yet.pay-from-balanceis limited byspendable. An amount above it is refused whole with422 INSUFFICIENT_BALANCE.fiat_account.balance.changedevent, which carries no amount and says when to read the account again.transactions.INSUFFICIENT_BALANCErow now name the balance that can be spent, with a pointer to the new section.changelog.md: entry underUnreleased, linked to that section.openapi/swagger.yaml:held,reservedandspendableonFiatBalance, the pay-from-balance wording, and the new event in the webhook list.Release
Not live yet. The new section opens with the "Not available yet" notice and the changelog entry is under
Unreleased, as the README asks.Merge this last, after the services behind the change are deployed. In that push, replace
Unreleasedwith the release date and remove the notice.Checks
node --test scripts/*.test.mjs: 27 of 27 pass.node scripts/check-release.mjsstops only on theUnreleasedheading, the same as onmain. It does not complain about the new section, so the notice and the anchor are in place.FiatBalanceadds up.🤖 Generated with Claude Code