HttpWalletLedgerPort

class HttpWalletLedgerPort(httpClient: HttpClient, apiConfig: PaymentApiConfig) : WalletLedgerPort

WalletLedgerPort over the same /wallet/{accountId}/debit + /refund routes WalletGateway uses for its own debit — this is the orchestrator's seam for the split-payment compensating credit, kept off WalletGateway itself (see that class's doc comment on why refund isn't there).

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient, apiConfig: PaymentApiConfig)

Functions

Link copied to clipboard
open suspend override fun debit(walletAccountId: String, idempotencyKey: String, amountMinor: Long): String
Link copied to clipboard
open suspend override fun refund(walletAccountId: String, idempotencyKey: String, amountMinor: Long): String