Skip to content

feat: slim RequestInvoice with RequestInvoiceParams#4

Open
portal-wheatley wants to merge 2 commits intomainfrom
feat/request-invoice-params
Open

feat: slim RequestInvoice with RequestInvoiceParams#4
portal-wheatley wants to merge 2 commits intomainfrom
feat/request-invoice-params

Conversation

@portal-wheatley
Copy link
Contributor

Aligns with PortalTechnologiesInc/lib#158.

Changes

  • Create RequestInvoiceParams record (slim params for RequestInvoice)
  • Remove request_id and current_exchange_rate from client params
    • request_id is now derived from command.id (server-side)
    • current_exchange_rate is computed by portal-rest for FIAT conversions
  • Update RequestInvoiceRequest to use new RequestInvoiceParams type
  • Keep InvoiceRequestContent in codebase for backward compat (can remove later if unused)

Related

- Remove request_id and current_exchange_rate from client params
- Server (portal-rest) now computes exchange rate and validates invoice amount
- Aligns with lib PR #158
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.

1 participant