| 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 | "github.com/jackc/pgx/v5/pgtype" |
| 11 | ) |
| 12 | |
| 13 | type Querier interface { |
| 14 | ApplySubscriptionSnapshot(ctx context.Context, db DBTX, arg ApplySubscriptionSnapshotParams) (ApplySubscriptionSnapshotRow, error) |
| 15 | ClearBillingLock(ctx context.Context, db DBTX, orgID int64) (ClearBillingLockRow, error) |
| 16 | CountBillableOrgMembers(ctx context.Context, db DBTX, orgID int64) (int32, error) |
| 17 | CountPendingOrgInvitations(ctx context.Context, db DBTX, orgID int64) (int32, error) |
| 18 | // ─── billing_seat_snapshots ──────────────────────────────────────── |
| 19 | CreateSeatSnapshot(ctx context.Context, db DBTX, arg CreateSeatSnapshotParams) (CreateSeatSnapshotRow, error) |
| 20 | // ─── billing_webhook_events ──────────────────────────────────────── |
| 21 | CreateWebhookEventReceipt(ctx context.Context, db DBTX, arg CreateWebhookEventReceiptParams) (BillingWebhookEvent, error) |
| 22 | // SPDX-License-Identifier: AGPL-3.0-or-later |
| 23 | // ─── org_billing_states ──────────────────────────────────────────── |
| 24 | GetOrgBillingState(ctx context.Context, db DBTX, orgID int64) (OrgBillingState, error) |
| 25 | GetOrgBillingStateByStripeCustomer(ctx context.Context, db DBTX, stripeCustomerID pgtype.Text) (OrgBillingState, error) |
| 26 | GetOrgBillingStateByStripeSubscription(ctx context.Context, db DBTX, stripeSubscriptionID pgtype.Text) (OrgBillingState, error) |
| 27 | GetWebhookEventReceipt(ctx context.Context, db DBTX, providerEventID string) (BillingWebhookEvent, error) |
| 28 | ListInvoicesForOrg(ctx context.Context, db DBTX, arg ListInvoicesForOrgParams) ([]BillingInvoice, error) |
| 29 | ListSeatSnapshotsForOrg(ctx context.Context, db DBTX, arg ListSeatSnapshotsForOrgParams) ([]BillingSeatSnapshot, error) |
| 30 | MarkCanceled(ctx context.Context, db DBTX, arg MarkCanceledParams) (MarkCanceledRow, error) |
| 31 | MarkPastDue(ctx context.Context, db DBTX, arg MarkPastDueParams) (OrgBillingState, error) |
| 32 | MarkPaymentSucceeded(ctx context.Context, db DBTX, arg MarkPaymentSucceededParams) (MarkPaymentSucceededRow, error) |
| 33 | MarkWebhookEventFailed(ctx context.Context, db DBTX, arg MarkWebhookEventFailedParams) (BillingWebhookEvent, error) |
| 34 | MarkWebhookEventProcessed(ctx context.Context, db DBTX, providerEventID string) (BillingWebhookEvent, error) |
| 35 | SetStripeCustomer(ctx context.Context, db DBTX, arg SetStripeCustomerParams) (OrgBillingState, error) |
| 36 | // ─── billing_invoices ────────────────────────────────────────────── |
| 37 | UpsertInvoice(ctx context.Context, db DBTX, arg UpsertInvoiceParams) (BillingInvoice, error) |
| 38 | } |
| 39 | |
| 40 | var _ Querier = (*Queries)(nil) |
| 41 |