| 1 | // Code generated by sqlc. DO NOT EDIT. |
| 2 | // versions: |
| 3 | // sqlc v1.31.1 |
| 4 | |
| 5 | package billingdb |
| 6 | |
| 7 | import ( |
| 8 | "context" |
| 9 | ) |
| 10 | |
| 11 | type Querier interface { |
| 12 | ApplySubscriptionSnapshot(ctx context.Context, db DBTX, arg ApplySubscriptionSnapshotParams) (ApplySubscriptionSnapshotRow, error) |
| 13 | ClearBillingLock(ctx context.Context, db DBTX, orgID int64) (ClearBillingLockRow, error) |
| 14 | // ─── billing_seat_snapshots ──────────────────────────────────────── |
| 15 | CreateSeatSnapshot(ctx context.Context, db DBTX, arg CreateSeatSnapshotParams) (CreateSeatSnapshotRow, error) |
| 16 | // ─── billing_webhook_events ──────────────────────────────────────── |
| 17 | CreateWebhookEventReceipt(ctx context.Context, db DBTX, arg CreateWebhookEventReceiptParams) (BillingWebhookEvent, error) |
| 18 | // SPDX-License-Identifier: AGPL-3.0-or-later |
| 19 | // ─── org_billing_states ──────────────────────────────────────────── |
| 20 | GetOrgBillingState(ctx context.Context, db DBTX, orgID int64) (OrgBillingState, error) |
| 21 | ListInvoicesForOrg(ctx context.Context, db DBTX, arg ListInvoicesForOrgParams) ([]BillingInvoice, error) |
| 22 | ListSeatSnapshotsForOrg(ctx context.Context, db DBTX, arg ListSeatSnapshotsForOrgParams) ([]BillingSeatSnapshot, error) |
| 23 | MarkCanceled(ctx context.Context, db DBTX, arg MarkCanceledParams) (MarkCanceledRow, error) |
| 24 | MarkPastDue(ctx context.Context, db DBTX, arg MarkPastDueParams) (OrgBillingState, error) |
| 25 | MarkWebhookEventFailed(ctx context.Context, db DBTX, arg MarkWebhookEventFailedParams) (BillingWebhookEvent, error) |
| 26 | MarkWebhookEventProcessed(ctx context.Context, db DBTX, providerEventID string) (BillingWebhookEvent, error) |
| 27 | SetStripeCustomer(ctx context.Context, db DBTX, arg SetStripeCustomerParams) (OrgBillingState, error) |
| 28 | // ─── billing_invoices ────────────────────────────────────────────── |
| 29 | UpsertInvoice(ctx context.Context, db DBTX, arg UpsertInvoiceParams) (BillingInvoice, error) |
| 30 | } |
| 31 | |
| 32 | var _ Querier = (*Queries)(nil) |
| 33 |