Help us shape the future of Go! Take the 2026 Go Developer Survey

billingorder

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the billingorder type in the database.
	Label = "billing_order"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldSessionID holds the string denoting the session_id field in the database.
	FieldSessionID = "session_id"
	// FieldListingID holds the string denoting the listing_id field in the database.
	FieldListingID = "listing_id"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// FieldPurchaserID holds the string denoting the purchaser_id field in the database.
	FieldPurchaserID = "purchaser_id"
	// FieldAmountCents holds the string denoting the amount_cents field in the database.
	FieldAmountCents = "amount_cents"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldPaymentIntent holds the string denoting the payment_intent field in the database.
	FieldPaymentIntent = "payment_intent"
	// FieldLicenseID holds the string denoting the license_id field in the database.
	FieldLicenseID = "license_id"
	// Table holds the table name of the billingorder in the database.
	Table = "sf_billing_orders"
)
View Source
const DefaultStatus = StatusPending

StatusPending is the default value of the Status enum.

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// SessionIDValidator is a validator for the "session_id" field. It is called by the builders before save.
	SessionIDValidator func(string) error
	// PaymentIntentValidator is a validator for the "payment_intent" field. It is called by the builders before save.
	PaymentIntentValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for billingorder fields.

Functions

func AmountCents

func AmountCents(v int64) predicate.BillingOrder

AmountCents applies equality check predicate on the "amount_cents" field. It's identical to AmountCentsEQ.

func AmountCentsEQ

func AmountCentsEQ(v int64) predicate.BillingOrder

AmountCentsEQ applies the EQ predicate on the "amount_cents" field.

func AmountCentsGT

func AmountCentsGT(v int64) predicate.BillingOrder

AmountCentsGT applies the GT predicate on the "amount_cents" field.

func AmountCentsGTE

func AmountCentsGTE(v int64) predicate.BillingOrder

AmountCentsGTE applies the GTE predicate on the "amount_cents" field.

func AmountCentsIn

func AmountCentsIn(vs ...int64) predicate.BillingOrder

AmountCentsIn applies the In predicate on the "amount_cents" field.

func AmountCentsLT

func AmountCentsLT(v int64) predicate.BillingOrder

AmountCentsLT applies the LT predicate on the "amount_cents" field.

func AmountCentsLTE

func AmountCentsLTE(v int64) predicate.BillingOrder

AmountCentsLTE applies the LTE predicate on the "amount_cents" field.

func AmountCentsNEQ

func AmountCentsNEQ(v int64) predicate.BillingOrder

AmountCentsNEQ applies the NEQ predicate on the "amount_cents" field.

func AmountCentsNotIn

func AmountCentsNotIn(vs ...int64) predicate.BillingOrder

AmountCentsNotIn applies the NotIn predicate on the "amount_cents" field.

func And

func And(predicates ...predicate.BillingOrder) predicate.BillingOrder

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.BillingOrder

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.BillingOrder

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.BillingOrder

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.BillingOrder

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.BillingOrder

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.BillingOrder

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.BillingOrder

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.BillingOrder

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.BillingOrder

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.BillingOrder

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.BillingOrder

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.BillingOrder

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.BillingOrder

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.BillingOrder

IDNotIn applies the NotIn predicate on the ID field.

func LicenseID

func LicenseID(v uuid.UUID) predicate.BillingOrder

LicenseID applies equality check predicate on the "license_id" field. It's identical to LicenseIDEQ.

func LicenseIDEQ

func LicenseIDEQ(v uuid.UUID) predicate.BillingOrder

LicenseIDEQ applies the EQ predicate on the "license_id" field.

func LicenseIDGT

func LicenseIDGT(v uuid.UUID) predicate.BillingOrder

LicenseIDGT applies the GT predicate on the "license_id" field.

func LicenseIDGTE

func LicenseIDGTE(v uuid.UUID) predicate.BillingOrder

LicenseIDGTE applies the GTE predicate on the "license_id" field.

func LicenseIDIn

func LicenseIDIn(vs ...uuid.UUID) predicate.BillingOrder

LicenseIDIn applies the In predicate on the "license_id" field.

func LicenseIDIsNil

func LicenseIDIsNil() predicate.BillingOrder

LicenseIDIsNil applies the IsNil predicate on the "license_id" field.

func LicenseIDLT

func LicenseIDLT(v uuid.UUID) predicate.BillingOrder

LicenseIDLT applies the LT predicate on the "license_id" field.

func LicenseIDLTE

func LicenseIDLTE(v uuid.UUID) predicate.BillingOrder

LicenseIDLTE applies the LTE predicate on the "license_id" field.

func LicenseIDNEQ

func LicenseIDNEQ(v uuid.UUID) predicate.BillingOrder

LicenseIDNEQ applies the NEQ predicate on the "license_id" field.

func LicenseIDNotIn

func LicenseIDNotIn(vs ...uuid.UUID) predicate.BillingOrder

LicenseIDNotIn applies the NotIn predicate on the "license_id" field.

func LicenseIDNotNil

func LicenseIDNotNil() predicate.BillingOrder

LicenseIDNotNil applies the NotNil predicate on the "license_id" field.

func ListingID

func ListingID(v uuid.UUID) predicate.BillingOrder

ListingID applies equality check predicate on the "listing_id" field. It's identical to ListingIDEQ.

func ListingIDEQ

func ListingIDEQ(v uuid.UUID) predicate.BillingOrder

ListingIDEQ applies the EQ predicate on the "listing_id" field.

func ListingIDGT

func ListingIDGT(v uuid.UUID) predicate.BillingOrder

ListingIDGT applies the GT predicate on the "listing_id" field.

func ListingIDGTE

func ListingIDGTE(v uuid.UUID) predicate.BillingOrder

ListingIDGTE applies the GTE predicate on the "listing_id" field.

func ListingIDIn

func ListingIDIn(vs ...uuid.UUID) predicate.BillingOrder

ListingIDIn applies the In predicate on the "listing_id" field.

func ListingIDLT

func ListingIDLT(v uuid.UUID) predicate.BillingOrder

ListingIDLT applies the LT predicate on the "listing_id" field.

func ListingIDLTE

func ListingIDLTE(v uuid.UUID) predicate.BillingOrder

ListingIDLTE applies the LTE predicate on the "listing_id" field.

func ListingIDNEQ

func ListingIDNEQ(v uuid.UUID) predicate.BillingOrder

ListingIDNEQ applies the NEQ predicate on the "listing_id" field.

func ListingIDNotIn

func ListingIDNotIn(vs ...uuid.UUID) predicate.BillingOrder

ListingIDNotIn applies the NotIn predicate on the "listing_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.BillingOrder) predicate.BillingOrder

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.BillingOrder

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.BillingOrder

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDGT

func OrganizationIDGT(v uuid.UUID) predicate.BillingOrder

OrganizationIDGT applies the GT predicate on the "organization_id" field.

func OrganizationIDGTE

func OrganizationIDGTE(v uuid.UUID) predicate.BillingOrder

OrganizationIDGTE applies the GTE predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.BillingOrder

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDLT

func OrganizationIDLT(v uuid.UUID) predicate.BillingOrder

OrganizationIDLT applies the LT predicate on the "organization_id" field.

func OrganizationIDLTE

func OrganizationIDLTE(v uuid.UUID) predicate.BillingOrder

OrganizationIDLTE applies the LTE predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.BillingOrder

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.BillingOrder

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func PaymentIntent

func PaymentIntent(v string) predicate.BillingOrder

PaymentIntent applies equality check predicate on the "payment_intent" field. It's identical to PaymentIntentEQ.

func PaymentIntentContains

func PaymentIntentContains(v string) predicate.BillingOrder

PaymentIntentContains applies the Contains predicate on the "payment_intent" field.

func PaymentIntentContainsFold

func PaymentIntentContainsFold(v string) predicate.BillingOrder

PaymentIntentContainsFold applies the ContainsFold predicate on the "payment_intent" field.

func PaymentIntentEQ

func PaymentIntentEQ(v string) predicate.BillingOrder

PaymentIntentEQ applies the EQ predicate on the "payment_intent" field.

func PaymentIntentEqualFold

func PaymentIntentEqualFold(v string) predicate.BillingOrder

PaymentIntentEqualFold applies the EqualFold predicate on the "payment_intent" field.

func PaymentIntentGT

func PaymentIntentGT(v string) predicate.BillingOrder

PaymentIntentGT applies the GT predicate on the "payment_intent" field.

func PaymentIntentGTE

func PaymentIntentGTE(v string) predicate.BillingOrder

PaymentIntentGTE applies the GTE predicate on the "payment_intent" field.

func PaymentIntentHasPrefix

func PaymentIntentHasPrefix(v string) predicate.BillingOrder

PaymentIntentHasPrefix applies the HasPrefix predicate on the "payment_intent" field.

func PaymentIntentHasSuffix

func PaymentIntentHasSuffix(v string) predicate.BillingOrder

PaymentIntentHasSuffix applies the HasSuffix predicate on the "payment_intent" field.

func PaymentIntentIn

func PaymentIntentIn(vs ...string) predicate.BillingOrder

PaymentIntentIn applies the In predicate on the "payment_intent" field.

func PaymentIntentIsNil

func PaymentIntentIsNil() predicate.BillingOrder

PaymentIntentIsNil applies the IsNil predicate on the "payment_intent" field.

func PaymentIntentLT

func PaymentIntentLT(v string) predicate.BillingOrder

PaymentIntentLT applies the LT predicate on the "payment_intent" field.

func PaymentIntentLTE

func PaymentIntentLTE(v string) predicate.BillingOrder

PaymentIntentLTE applies the LTE predicate on the "payment_intent" field.

func PaymentIntentNEQ

func PaymentIntentNEQ(v string) predicate.BillingOrder

PaymentIntentNEQ applies the NEQ predicate on the "payment_intent" field.

func PaymentIntentNotIn

func PaymentIntentNotIn(vs ...string) predicate.BillingOrder

PaymentIntentNotIn applies the NotIn predicate on the "payment_intent" field.

func PaymentIntentNotNil

func PaymentIntentNotNil() predicate.BillingOrder

PaymentIntentNotNil applies the NotNil predicate on the "payment_intent" field.

func PurchaserID

func PurchaserID(v uuid.UUID) predicate.BillingOrder

PurchaserID applies equality check predicate on the "purchaser_id" field. It's identical to PurchaserIDEQ.

func PurchaserIDEQ

func PurchaserIDEQ(v uuid.UUID) predicate.BillingOrder

PurchaserIDEQ applies the EQ predicate on the "purchaser_id" field.

func PurchaserIDGT

func PurchaserIDGT(v uuid.UUID) predicate.BillingOrder

PurchaserIDGT applies the GT predicate on the "purchaser_id" field.

func PurchaserIDGTE

func PurchaserIDGTE(v uuid.UUID) predicate.BillingOrder

PurchaserIDGTE applies the GTE predicate on the "purchaser_id" field.

func PurchaserIDIn

func PurchaserIDIn(vs ...uuid.UUID) predicate.BillingOrder

PurchaserIDIn applies the In predicate on the "purchaser_id" field.

func PurchaserIDLT

func PurchaserIDLT(v uuid.UUID) predicate.BillingOrder

PurchaserIDLT applies the LT predicate on the "purchaser_id" field.

func PurchaserIDLTE

func PurchaserIDLTE(v uuid.UUID) predicate.BillingOrder

PurchaserIDLTE applies the LTE predicate on the "purchaser_id" field.

func PurchaserIDNEQ

func PurchaserIDNEQ(v uuid.UUID) predicate.BillingOrder

PurchaserIDNEQ applies the NEQ predicate on the "purchaser_id" field.

func PurchaserIDNotIn

func PurchaserIDNotIn(vs ...uuid.UUID) predicate.BillingOrder

PurchaserIDNotIn applies the NotIn predicate on the "purchaser_id" field.

func SessionID

func SessionID(v string) predicate.BillingOrder

SessionID applies equality check predicate on the "session_id" field. It's identical to SessionIDEQ.

func SessionIDContains

func SessionIDContains(v string) predicate.BillingOrder

SessionIDContains applies the Contains predicate on the "session_id" field.

func SessionIDContainsFold

func SessionIDContainsFold(v string) predicate.BillingOrder

SessionIDContainsFold applies the ContainsFold predicate on the "session_id" field.

func SessionIDEQ

func SessionIDEQ(v string) predicate.BillingOrder

SessionIDEQ applies the EQ predicate on the "session_id" field.

func SessionIDEqualFold

func SessionIDEqualFold(v string) predicate.BillingOrder

SessionIDEqualFold applies the EqualFold predicate on the "session_id" field.

func SessionIDGT

func SessionIDGT(v string) predicate.BillingOrder

SessionIDGT applies the GT predicate on the "session_id" field.

func SessionIDGTE

func SessionIDGTE(v string) predicate.BillingOrder

SessionIDGTE applies the GTE predicate on the "session_id" field.

func SessionIDHasPrefix

func SessionIDHasPrefix(v string) predicate.BillingOrder

SessionIDHasPrefix applies the HasPrefix predicate on the "session_id" field.

func SessionIDHasSuffix

func SessionIDHasSuffix(v string) predicate.BillingOrder

SessionIDHasSuffix applies the HasSuffix predicate on the "session_id" field.

func SessionIDIn

func SessionIDIn(vs ...string) predicate.BillingOrder

SessionIDIn applies the In predicate on the "session_id" field.

func SessionIDLT

func SessionIDLT(v string) predicate.BillingOrder

SessionIDLT applies the LT predicate on the "session_id" field.

func SessionIDLTE

func SessionIDLTE(v string) predicate.BillingOrder

SessionIDLTE applies the LTE predicate on the "session_id" field.

func SessionIDNEQ

func SessionIDNEQ(v string) predicate.BillingOrder

SessionIDNEQ applies the NEQ predicate on the "session_id" field.

func SessionIDNotIn

func SessionIDNotIn(vs ...string) predicate.BillingOrder

SessionIDNotIn applies the NotIn predicate on the "session_id" field.

func StatusEQ

func StatusEQ(v Status) predicate.BillingOrder

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.BillingOrder

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.BillingOrder

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.BillingOrder

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.BillingOrder

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.BillingOrder

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.BillingOrder

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.BillingOrder

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.BillingOrder

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.BillingOrder

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.BillingOrder

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.BillingOrder

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.BillingOrder

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the BillingOrder queries.

func ByAmountCents

func ByAmountCents(opts ...sql.OrderTermOption) OrderOption

ByAmountCents orders the results by the amount_cents field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLicenseID

func ByLicenseID(opts ...sql.OrderTermOption) OrderOption

ByLicenseID orders the results by the license_id field.

func ByListingID

func ByListingID(opts ...sql.OrderTermOption) OrderOption

ByListingID orders the results by the listing_id field.

func ByOrganizationID

func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption

ByOrganizationID orders the results by the organization_id field.

func ByPaymentIntent

func ByPaymentIntent(opts ...sql.OrderTermOption) OrderOption

ByPaymentIntent orders the results by the payment_intent field.

func ByPurchaserID

func ByPurchaserID(opts ...sql.OrderTermOption) OrderOption

ByPurchaserID orders the results by the purchaser_id field.

func BySessionID

func BySessionID(opts ...sql.OrderTermOption) OrderOption

BySessionID orders the results by the session_id field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusPending  Status = "pending"
	StatusPaid     Status = "paid"
	StatusRefunded Status = "refunded"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL