feat: implement the BlindPay Rust SDK#1
Merged
Merged
Conversation
Async, reqwest-based client for the BlindPay API covering all resources: available, instances (+ terms-of-service, webhook endpoints), partner fees, fees, customers (+ bank accounts), wallets (blockchain/custodial/offramp), virtual accounts, quotes, payins (+ quotes), payouts, transfers (+ quotes), upload (multipart), and Svix webhook signature verification. Shared types live in `common` (open-enum pattern, pagination, scalars). Every method goes through a single transport and ships with unit + wiremock tests (245 passing), with release-plz CI for releases.
commercial_quotation / blindpay_quotation are decimal exchange rates (the API types them z.coerce.number()), but were modeled as i64, so quotes.get_fx_rate and payins.quotes.get_fx_rate failed to decode real responses (e.g. 514.13). Fixes Quote, QuoteFx, PayinQuote, PayinQuoteFx, Payin, and TransferQuote; test fixtures now use float values to guard the contract. Found via live testing against a dev instance.
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.
No description provided.