multi: add call to directly insert an AMP sub-invoice

This commit is contained in:
Andras Banki-Horvath
2024-06-11 22:38:38 +02:00
parent 91c3e1496f
commit 115f96c29a
4 changed files with 42 additions and 0 deletions

View File

@@ -79,6 +79,10 @@ type SQLInvoiceQueries interface { //nolint:interfacebloat
UpsertAMPSubInvoice(ctx context.Context,
arg sqlc.UpsertAMPSubInvoiceParams) (sql.Result, error)
// TODO(bhandras): remove this once migrations have been separated out.
InsertAMPSubInvoice(ctx context.Context,
arg sqlc.InsertAMPSubInvoiceParams) error
UpdateAMPSubInvoiceState(ctx context.Context,
arg sqlc.UpdateAMPSubInvoiceStateParams) error