Skip to content

funding: migrate FundingApi onto the generated client (now in the OpenAPI spec) #316

Description

@joalavedra

/v2/funding is now in the published OpenAPI spec (tag Funding; operationIds createFundingSession, SetPaymentMethod, getFundingSession, CreatePayLink, ListChains), but packages/internal/openapi-clients is stale (no FundingApi), so sdk/src/api/funding.ts hand-rolls the calls.

Steps

  1. cd packages/internal/openapi-clients && make generate-backend-openapi (needs Docker) → produces a FundingApi.
  2. Refactor sdk/src/api/funding.ts to delegate to BackendApiClients.fundingApi, keeping the clientSecret memory + sessions.* / fund / payLink / chains ergonomics.

Doc comment already updated in #315. Couldn't run the regen in my env (no Docker/Java); happy to do step 2 once the client is regenerated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions