plan

package
v1.0.0-beta.231 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the plan type in the database.
	Label = "plan"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldNamespace holds the string denoting the namespace field in the database.
	FieldNamespace = "namespace"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldCurrency holds the string denoting the currency field in the database.
	FieldCurrency = "currency"
	// FieldBillingCadence holds the string denoting the billing_cadence field in the database.
	FieldBillingCadence = "billing_cadence"
	// FieldProRatingConfig holds the string denoting the pro_rating_config field in the database.
	FieldProRatingConfig = "pro_rating_config"
	// FieldEffectiveFrom holds the string denoting the effective_from field in the database.
	FieldEffectiveFrom = "effective_from"
	// FieldEffectiveTo holds the string denoting the effective_to field in the database.
	FieldEffectiveTo = "effective_to"
	// FieldSettlementMode holds the string denoting the settlement_mode field in the database.
	FieldSettlementMode = "settlement_mode"
	// EdgePhases holds the string denoting the phases edge name in mutations.
	EdgePhases = "phases"
	// EdgeAddons holds the string denoting the addons edge name in mutations.
	EdgeAddons = "addons"
	// EdgeSubscriptions holds the string denoting the subscriptions edge name in mutations.
	EdgeSubscriptions = "subscriptions"
	// Table holds the table name of the plan in the database.
	Table = "plans"
	// PhasesTable is the table that holds the phases relation/edge.
	PhasesTable = "plan_phases"
	// PhasesInverseTable is the table name for the PlanPhase entity.
	// It exists in this package in order to avoid circular dependency with the "planphase" package.
	PhasesInverseTable = "plan_phases"
	// PhasesColumn is the table column denoting the phases relation/edge.
	PhasesColumn = "plan_id"
	// AddonsTable is the table that holds the addons relation/edge.
	AddonsTable = "plan_addons"
	// AddonsInverseTable is the table name for the PlanAddon entity.
	// It exists in this package in order to avoid circular dependency with the "planaddon" package.
	AddonsInverseTable = "plan_addons"
	// AddonsColumn is the table column denoting the addons relation/edge.
	AddonsColumn = "plan_id"
	// SubscriptionsTable is the table that holds the subscriptions relation/edge.
	SubscriptionsTable = "subscriptions"
	// SubscriptionsInverseTable is the table name for the Subscription entity.
	// It exists in this package in order to avoid circular dependency with the "subscription" package.
	SubscriptionsInverseTable = "subscriptions"
	// SubscriptionsColumn is the table column denoting the subscriptions relation/edge.
	SubscriptionsColumn = "plan_id"
)
View Source
const DefaultSettlementMode productcatalog.SettlementMode = "credit_then_invoice"

Variables

View Source
var (
	// NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save.
	NamespaceValidator func(string) error
	// 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
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
	// VersionValidator is a validator for the "version" field. It is called by the builders before save.
	VersionValidator func(int) error
	// DefaultCurrency holds the default value on creation for the "currency" field.
	DefaultCurrency string
	// CurrencyValidator is a validator for the "currency" field. It is called by the builders before save.
	CurrencyValidator func(string) error
	// DefaultProRatingConfig holds the default value on creation for the "pro_rating_config" field.
	DefaultProRatingConfig func() productcatalog.ProRatingConfig
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
	// ValueScanner of all Plan fields.
	ValueScanner struct {
		ProRatingConfig field.TypeValueScanner[productcatalog.ProRatingConfig]
	}
)

Columns holds all SQL columns for plan fields.

Functions

func And

func And(predicates ...predicate.Plan) predicate.Plan

And groups predicates with the AND operator between them.

func BillingCadence

func BillingCadence(v datetime.ISODurationString) predicate.Plan

BillingCadence applies equality check predicate on the "billing_cadence" field. It's identical to BillingCadenceEQ.

func BillingCadenceContains

func BillingCadenceContains(v datetime.ISODurationString) predicate.Plan

BillingCadenceContains applies the Contains predicate on the "billing_cadence" field.

func BillingCadenceContainsFold

func BillingCadenceContainsFold(v datetime.ISODurationString) predicate.Plan

BillingCadenceContainsFold applies the ContainsFold predicate on the "billing_cadence" field.

func BillingCadenceEQ

func BillingCadenceEQ(v datetime.ISODurationString) predicate.Plan

BillingCadenceEQ applies the EQ predicate on the "billing_cadence" field.

func BillingCadenceEqualFold

func BillingCadenceEqualFold(v datetime.ISODurationString) predicate.Plan

BillingCadenceEqualFold applies the EqualFold predicate on the "billing_cadence" field.

func BillingCadenceGT

func BillingCadenceGT(v datetime.ISODurationString) predicate.Plan

BillingCadenceGT applies the GT predicate on the "billing_cadence" field.

func BillingCadenceGTE

func BillingCadenceGTE(v datetime.ISODurationString) predicate.Plan

BillingCadenceGTE applies the GTE predicate on the "billing_cadence" field.

func BillingCadenceHasPrefix

func BillingCadenceHasPrefix(v datetime.ISODurationString) predicate.Plan

BillingCadenceHasPrefix applies the HasPrefix predicate on the "billing_cadence" field.

func BillingCadenceHasSuffix

func BillingCadenceHasSuffix(v datetime.ISODurationString) predicate.Plan

BillingCadenceHasSuffix applies the HasSuffix predicate on the "billing_cadence" field.

func BillingCadenceIn

func BillingCadenceIn(vs ...datetime.ISODurationString) predicate.Plan

BillingCadenceIn applies the In predicate on the "billing_cadence" field.

func BillingCadenceLT

func BillingCadenceLT(v datetime.ISODurationString) predicate.Plan

BillingCadenceLT applies the LT predicate on the "billing_cadence" field.

func BillingCadenceLTE

func BillingCadenceLTE(v datetime.ISODurationString) predicate.Plan

BillingCadenceLTE applies the LTE predicate on the "billing_cadence" field.

func BillingCadenceNEQ

func BillingCadenceNEQ(v datetime.ISODurationString) predicate.Plan

BillingCadenceNEQ applies the NEQ predicate on the "billing_cadence" field.

func BillingCadenceNotIn

func BillingCadenceNotIn(vs ...datetime.ISODurationString) predicate.Plan

BillingCadenceNotIn applies the NotIn predicate on the "billing_cadence" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Plan

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Plan

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Plan

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Plan

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Plan

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Plan

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Plan

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

func CreatedAtNotIn

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

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

func Currency

func Currency(v string) predicate.Plan

Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.

func CurrencyContains

func CurrencyContains(v string) predicate.Plan

CurrencyContains applies the Contains predicate on the "currency" field.

func CurrencyContainsFold

func CurrencyContainsFold(v string) predicate.Plan

CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.

func CurrencyEQ

func CurrencyEQ(v string) predicate.Plan

CurrencyEQ applies the EQ predicate on the "currency" field.

func CurrencyEqualFold

func CurrencyEqualFold(v string) predicate.Plan

CurrencyEqualFold applies the EqualFold predicate on the "currency" field.

func CurrencyGT

func CurrencyGT(v string) predicate.Plan

CurrencyGT applies the GT predicate on the "currency" field.

func CurrencyGTE

func CurrencyGTE(v string) predicate.Plan

CurrencyGTE applies the GTE predicate on the "currency" field.

func CurrencyHasPrefix

func CurrencyHasPrefix(v string) predicate.Plan

CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.

func CurrencyHasSuffix

func CurrencyHasSuffix(v string) predicate.Plan

CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.

func CurrencyIn

func CurrencyIn(vs ...string) predicate.Plan

CurrencyIn applies the In predicate on the "currency" field.

func CurrencyLT

func CurrencyLT(v string) predicate.Plan

CurrencyLT applies the LT predicate on the "currency" field.

func CurrencyLTE

func CurrencyLTE(v string) predicate.Plan

CurrencyLTE applies the LTE predicate on the "currency" field.

func CurrencyNEQ

func CurrencyNEQ(v string) predicate.Plan

CurrencyNEQ applies the NEQ predicate on the "currency" field.

func CurrencyNotIn

func CurrencyNotIn(vs ...string) predicate.Plan

CurrencyNotIn applies the NotIn predicate on the "currency" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Plan

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Plan

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Plan

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Plan

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Plan

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Plan

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Plan

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Plan

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Plan

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Plan

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Plan

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Description

func Description(v string) predicate.Plan

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Plan

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Plan

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Plan

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Plan

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Plan

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Plan

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Plan

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Plan

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Plan

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Plan

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Plan

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Plan

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Plan

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Plan

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Plan

DescriptionNotNil applies the NotNil predicate on the "description" field.

func EffectiveFrom

func EffectiveFrom(v time.Time) predicate.Plan

EffectiveFrom applies equality check predicate on the "effective_from" field. It's identical to EffectiveFromEQ.

func EffectiveFromEQ

func EffectiveFromEQ(v time.Time) predicate.Plan

EffectiveFromEQ applies the EQ predicate on the "effective_from" field.

func EffectiveFromGT

func EffectiveFromGT(v time.Time) predicate.Plan

EffectiveFromGT applies the GT predicate on the "effective_from" field.

func EffectiveFromGTE

func EffectiveFromGTE(v time.Time) predicate.Plan

EffectiveFromGTE applies the GTE predicate on the "effective_from" field.

func EffectiveFromIn

func EffectiveFromIn(vs ...time.Time) predicate.Plan

EffectiveFromIn applies the In predicate on the "effective_from" field.

func EffectiveFromIsNil

func EffectiveFromIsNil() predicate.Plan

EffectiveFromIsNil applies the IsNil predicate on the "effective_from" field.

func EffectiveFromLT

func EffectiveFromLT(v time.Time) predicate.Plan

EffectiveFromLT applies the LT predicate on the "effective_from" field.

func EffectiveFromLTE

func EffectiveFromLTE(v time.Time) predicate.Plan

EffectiveFromLTE applies the LTE predicate on the "effective_from" field.

func EffectiveFromNEQ

func EffectiveFromNEQ(v time.Time) predicate.Plan

EffectiveFromNEQ applies the NEQ predicate on the "effective_from" field.

func EffectiveFromNotIn

func EffectiveFromNotIn(vs ...time.Time) predicate.Plan

EffectiveFromNotIn applies the NotIn predicate on the "effective_from" field.

func EffectiveFromNotNil

func EffectiveFromNotNil() predicate.Plan

EffectiveFromNotNil applies the NotNil predicate on the "effective_from" field.

func EffectiveTo

func EffectiveTo(v time.Time) predicate.Plan

EffectiveTo applies equality check predicate on the "effective_to" field. It's identical to EffectiveToEQ.

func EffectiveToEQ

func EffectiveToEQ(v time.Time) predicate.Plan

EffectiveToEQ applies the EQ predicate on the "effective_to" field.

func EffectiveToGT

func EffectiveToGT(v time.Time) predicate.Plan

EffectiveToGT applies the GT predicate on the "effective_to" field.

func EffectiveToGTE

func EffectiveToGTE(v time.Time) predicate.Plan

EffectiveToGTE applies the GTE predicate on the "effective_to" field.

func EffectiveToIn

func EffectiveToIn(vs ...time.Time) predicate.Plan

EffectiveToIn applies the In predicate on the "effective_to" field.

func EffectiveToIsNil

func EffectiveToIsNil() predicate.Plan

EffectiveToIsNil applies the IsNil predicate on the "effective_to" field.

func EffectiveToLT

func EffectiveToLT(v time.Time) predicate.Plan

EffectiveToLT applies the LT predicate on the "effective_to" field.

func EffectiveToLTE

func EffectiveToLTE(v time.Time) predicate.Plan

EffectiveToLTE applies the LTE predicate on the "effective_to" field.

func EffectiveToNEQ

func EffectiveToNEQ(v time.Time) predicate.Plan

EffectiveToNEQ applies the NEQ predicate on the "effective_to" field.

func EffectiveToNotIn

func EffectiveToNotIn(vs ...time.Time) predicate.Plan

EffectiveToNotIn applies the NotIn predicate on the "effective_to" field.

func EffectiveToNotNil

func EffectiveToNotNil() predicate.Plan

EffectiveToNotNil applies the NotNil predicate on the "effective_to" field.

func HasAddons

func HasAddons() predicate.Plan

HasAddons applies the HasEdge predicate on the "addons" edge.

func HasAddonsWith

func HasAddonsWith(preds ...predicate.PlanAddon) predicate.Plan

HasAddonsWith applies the HasEdge predicate on the "addons" edge with a given conditions (other predicates).

func HasPhases

func HasPhases() predicate.Plan

HasPhases applies the HasEdge predicate on the "phases" edge.

func HasPhasesWith

func HasPhasesWith(preds ...predicate.PlanPhase) predicate.Plan

HasPhasesWith applies the HasEdge predicate on the "phases" edge with a given conditions (other predicates).

func HasSubscriptions

func HasSubscriptions() predicate.Plan

HasSubscriptions applies the HasEdge predicate on the "subscriptions" edge.

func HasSubscriptionsWith

func HasSubscriptionsWith(preds ...predicate.Subscription) predicate.Plan

HasSubscriptionsWith applies the HasEdge predicate on the "subscriptions" edge with a given conditions (other predicates).

func ID

func ID(id string) predicate.Plan

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Plan

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Plan

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Plan

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Plan

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Plan

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Plan

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Plan

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Plan

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Plan

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Plan

IDNotIn applies the NotIn predicate on the ID field.

func Key

func Key(v string) predicate.Plan

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.Plan

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.Plan

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.Plan

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.Plan

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.Plan

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.Plan

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.Plan

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.Plan

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.Plan

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.Plan

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.Plan

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.Plan

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.Plan

KeyNotIn applies the NotIn predicate on the "key" field.

func MetadataIsNil

func MetadataIsNil() predicate.Plan

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Plan

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Name

func Name(v string) predicate.Plan

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Plan

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Plan

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Plan

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Plan

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Plan

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Plan

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Plan

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Plan

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Plan

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Plan

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Plan

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Plan

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Plan

NameNotIn applies the NotIn predicate on the "name" field.

func Namespace

func Namespace(v string) predicate.Plan

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains

func NamespaceContains(v string) predicate.Plan

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.Plan

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

func NamespaceEQ(v string) predicate.Plan

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.Plan

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

func NamespaceGT(v string) predicate.Plan

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

func NamespaceGTE(v string) predicate.Plan

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.Plan

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.Plan

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

func NamespaceIn(vs ...string) predicate.Plan

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

func NamespaceLT(v string) predicate.Plan

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

func NamespaceLTE(v string) predicate.Plan

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.Plan

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

func NamespaceNotIn(vs ...string) predicate.Plan

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Plan) predicate.Plan

Or groups predicates with the OR operator between them.

func SettlementModeEQ

func SettlementModeEQ(v productcatalog.SettlementMode) predicate.Plan

SettlementModeEQ applies the EQ predicate on the "settlement_mode" field.

func SettlementModeIn

func SettlementModeIn(vs ...productcatalog.SettlementMode) predicate.Plan

SettlementModeIn applies the In predicate on the "settlement_mode" field.

func SettlementModeNEQ

func SettlementModeNEQ(v productcatalog.SettlementMode) predicate.Plan

SettlementModeNEQ applies the NEQ predicate on the "settlement_mode" field.

func SettlementModeNotIn

func SettlementModeNotIn(vs ...productcatalog.SettlementMode) predicate.Plan

SettlementModeNotIn applies the NotIn predicate on the "settlement_mode" field.

func SettlementModeValidator

func SettlementModeValidator(sm productcatalog.SettlementMode) error

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Plan

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Plan

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Plan

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Plan

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Plan

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Plan

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Plan

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

func UpdatedAtNotIn

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

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).

func Version

func Version(v int) predicate.Plan

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.Plan

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.Plan

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.Plan

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

func VersionIn(vs ...int) predicate.Plan

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.Plan

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.Plan

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.Plan

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...int) predicate.Plan

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Plan queries.

func ByAddons

func ByAddons(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByAddons orders the results by addons terms.

func ByAddonsCount

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

ByAddonsCount orders the results by addons count.

func ByBillingCadence

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

ByBillingCadence orders the results by the billing_cadence field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCurrency

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

ByCurrency orders the results by the currency field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByEffectiveFrom

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

ByEffectiveFrom orders the results by the effective_from field.

func ByEffectiveTo

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

ByEffectiveTo orders the results by the effective_to field.

func ByID

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

ByID orders the results by the id field.

func ByKey

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

ByKey orders the results by the key field.

func ByName

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

ByName orders the results by the name field.

func ByNamespace

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

ByNamespace orders the results by the namespace field.

func ByPhases

func ByPhases(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPhases orders the results by phases terms.

func ByPhasesCount

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

ByPhasesCount orders the results by phases count.

func ByProRatingConfig

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

ByProRatingConfig orders the results by the pro_rating_config field.

func BySettlementMode

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

BySettlementMode orders the results by the settlement_mode field.

func BySubscriptions

func BySubscriptions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySubscriptions orders the results by subscriptions terms.

func BySubscriptionsCount

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

BySubscriptionsCount orders the results by subscriptions count.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVersion

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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