chargeusagebasedoverride

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 chargeusagebasedoverride type in the database.
	Label = "charge_usage_based_override"
	// 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"
	// FieldChargeID holds the string denoting the charge_id field in the database.
	FieldChargeID = "charge_id"
	// 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"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldTaxBehavior holds the string denoting the tax_behavior field in the database.
	FieldTaxBehavior = "tax_behavior"
	// FieldTaxCodeID holds the string denoting the tax_code_id field in the database.
	FieldTaxCodeID = "tax_code_id"
	// FieldIntentDeletedAt holds the string denoting the intent_deleted_at field in the database.
	FieldIntentDeletedAt = "intent_deleted_at"
	// FieldServicePeriodFrom holds the string denoting the service_period_from field in the database.
	FieldServicePeriodFrom = "service_period_from"
	// FieldServicePeriodTo holds the string denoting the service_period_to field in the database.
	FieldServicePeriodTo = "service_period_to"
	// FieldFullServicePeriodFrom holds the string denoting the full_service_period_from field in the database.
	FieldFullServicePeriodFrom = "full_service_period_from"
	// FieldFullServicePeriodTo holds the string denoting the full_service_period_to field in the database.
	FieldFullServicePeriodTo = "full_service_period_to"
	// FieldBillingPeriodFrom holds the string denoting the billing_period_from field in the database.
	FieldBillingPeriodFrom = "billing_period_from"
	// FieldBillingPeriodTo holds the string denoting the billing_period_to field in the database.
	FieldBillingPeriodTo = "billing_period_to"
	// FieldInvoiceAt holds the string denoting the invoice_at field in the database.
	FieldInvoiceAt = "invoice_at"
	// FieldFeatureKey holds the string denoting the feature_key field in the database.
	FieldFeatureKey = "feature_key"
	// FieldPrice holds the string denoting the price field in the database.
	FieldPrice = "price"
	// FieldDiscounts holds the string denoting the discounts field in the database.
	FieldDiscounts = "discounts"
	// FieldUnitConfig holds the string denoting the unit_config field in the database.
	FieldUnitConfig = "unit_config"
	// EdgeUsageBased holds the string denoting the usage_based edge name in mutations.
	EdgeUsageBased = "usage_based"
	// EdgeTaxCode holds the string denoting the tax_code edge name in mutations.
	EdgeTaxCode = "tax_code"
	// Table holds the table name of the chargeusagebasedoverride in the database.
	Table = "charge_usage_based_overrides"
	// UsageBasedTable is the table that holds the usage_based relation/edge.
	UsageBasedTable = "charge_usage_based_overrides"
	// UsageBasedInverseTable is the table name for the ChargeUsageBased entity.
	// It exists in this package in order to avoid circular dependency with the "chargeusagebased" package.
	UsageBasedInverseTable = "charge_usage_based"
	// UsageBasedColumn is the table column denoting the usage_based relation/edge.
	UsageBasedColumn = "charge_id"
	// TaxCodeTable is the table that holds the tax_code relation/edge.
	TaxCodeTable = "charge_usage_based_overrides"
	// TaxCodeInverseTable is the table name for the TaxCode entity.
	// It exists in this package in order to avoid circular dependency with the "dbtaxcode" package.
	TaxCodeInverseTable = "tax_codes"
	// TaxCodeColumn is the table column denoting the tax_code relation/edge.
	TaxCodeColumn = "tax_code_id"
)

Variables

View Source
var (
	// NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save.
	NamespaceValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// FeatureKeyValidator is a validator for the "feature_key" field. It is called by the builders before save.
	FeatureKeyValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
	// ValueScanner of all ChargeUsageBasedOverride fields.
	ValueScanner struct {
		Metadata   field.TypeValueScanner[*models.Metadata]
		Price      field.TypeValueScanner[*productcatalog.Price]
		Discounts  field.TypeValueScanner[*billing.Discounts]
		UnitConfig field.TypeValueScanner[*productcatalog.UnitConfig]
	}
)

Columns holds all SQL columns for chargeusagebasedoverride fields.

Functions

func And

And groups predicates with the AND operator between them.

func BillingPeriodFrom

func BillingPeriodFrom(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodFrom applies equality check predicate on the "billing_period_from" field. It's identical to BillingPeriodFromEQ.

func BillingPeriodFromEQ

func BillingPeriodFromEQ(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodFromEQ applies the EQ predicate on the "billing_period_from" field.

func BillingPeriodFromGT

func BillingPeriodFromGT(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodFromGT applies the GT predicate on the "billing_period_from" field.

func BillingPeriodFromGTE

func BillingPeriodFromGTE(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodFromGTE applies the GTE predicate on the "billing_period_from" field.

func BillingPeriodFromIn

func BillingPeriodFromIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodFromIn applies the In predicate on the "billing_period_from" field.

func BillingPeriodFromLT

func BillingPeriodFromLT(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodFromLT applies the LT predicate on the "billing_period_from" field.

func BillingPeriodFromLTE

func BillingPeriodFromLTE(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodFromLTE applies the LTE predicate on the "billing_period_from" field.

func BillingPeriodFromNEQ

func BillingPeriodFromNEQ(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodFromNEQ applies the NEQ predicate on the "billing_period_from" field.

func BillingPeriodFromNotIn

func BillingPeriodFromNotIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodFromNotIn applies the NotIn predicate on the "billing_period_from" field.

func BillingPeriodTo

func BillingPeriodTo(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodTo applies equality check predicate on the "billing_period_to" field. It's identical to BillingPeriodToEQ.

func BillingPeriodToEQ

func BillingPeriodToEQ(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodToEQ applies the EQ predicate on the "billing_period_to" field.

func BillingPeriodToGT

func BillingPeriodToGT(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodToGT applies the GT predicate on the "billing_period_to" field.

func BillingPeriodToGTE

func BillingPeriodToGTE(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodToGTE applies the GTE predicate on the "billing_period_to" field.

func BillingPeriodToIn

func BillingPeriodToIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodToIn applies the In predicate on the "billing_period_to" field.

func BillingPeriodToLT

func BillingPeriodToLT(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodToLT applies the LT predicate on the "billing_period_to" field.

func BillingPeriodToLTE

func BillingPeriodToLTE(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodToLTE applies the LTE predicate on the "billing_period_to" field.

func BillingPeriodToNEQ

func BillingPeriodToNEQ(v time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodToNEQ applies the NEQ predicate on the "billing_period_to" field.

func BillingPeriodToNotIn

func BillingPeriodToNotIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

BillingPeriodToNotIn applies the NotIn predicate on the "billing_period_to" field.

func ChargeID

ChargeID applies equality check predicate on the "charge_id" field. It's identical to ChargeIDEQ.

func ChargeIDContains

func ChargeIDContains(v string) predicate.ChargeUsageBasedOverride

ChargeIDContains applies the Contains predicate on the "charge_id" field.

func ChargeIDContainsFold

func ChargeIDContainsFold(v string) predicate.ChargeUsageBasedOverride

ChargeIDContainsFold applies the ContainsFold predicate on the "charge_id" field.

func ChargeIDEQ

ChargeIDEQ applies the EQ predicate on the "charge_id" field.

func ChargeIDEqualFold

func ChargeIDEqualFold(v string) predicate.ChargeUsageBasedOverride

ChargeIDEqualFold applies the EqualFold predicate on the "charge_id" field.

func ChargeIDGT

ChargeIDGT applies the GT predicate on the "charge_id" field.

func ChargeIDGTE

ChargeIDGTE applies the GTE predicate on the "charge_id" field.

func ChargeIDHasPrefix

func ChargeIDHasPrefix(v string) predicate.ChargeUsageBasedOverride

ChargeIDHasPrefix applies the HasPrefix predicate on the "charge_id" field.

func ChargeIDHasSuffix

func ChargeIDHasSuffix(v string) predicate.ChargeUsageBasedOverride

ChargeIDHasSuffix applies the HasSuffix predicate on the "charge_id" field.

func ChargeIDIn

func ChargeIDIn(vs ...string) predicate.ChargeUsageBasedOverride

ChargeIDIn applies the In predicate on the "charge_id" field.

func ChargeIDLT

ChargeIDLT applies the LT predicate on the "charge_id" field.

func ChargeIDLTE

ChargeIDLTE applies the LTE predicate on the "charge_id" field.

func ChargeIDNEQ

ChargeIDNEQ applies the NEQ predicate on the "charge_id" field.

func ChargeIDNotIn

func ChargeIDNotIn(vs ...string) predicate.ChargeUsageBasedOverride

ChargeIDNotIn applies the NotIn predicate on the "charge_id" field.

func Description

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

func DescriptionContains

func DescriptionContains(v string) predicate.ChargeUsageBasedOverride

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.ChargeUsageBasedOverride

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.ChargeUsageBasedOverride

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.ChargeUsageBasedOverride

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

func DescriptionGT

func DescriptionGT(v string) predicate.ChargeUsageBasedOverride

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.ChargeUsageBasedOverride

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.ChargeUsageBasedOverride

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.ChargeUsageBasedOverride

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.ChargeUsageBasedOverride

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

func DescriptionLT

func DescriptionLT(v string) predicate.ChargeUsageBasedOverride

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.ChargeUsageBasedOverride

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.ChargeUsageBasedOverride

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.ChargeUsageBasedOverride

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

func FeatureKey

FeatureKey applies equality check predicate on the "feature_key" field. It's identical to FeatureKeyEQ.

func FeatureKeyContains

func FeatureKeyContains(v string) predicate.ChargeUsageBasedOverride

FeatureKeyContains applies the Contains predicate on the "feature_key" field.

func FeatureKeyContainsFold

func FeatureKeyContainsFold(v string) predicate.ChargeUsageBasedOverride

FeatureKeyContainsFold applies the ContainsFold predicate on the "feature_key" field.

func FeatureKeyEQ

FeatureKeyEQ applies the EQ predicate on the "feature_key" field.

func FeatureKeyEqualFold

func FeatureKeyEqualFold(v string) predicate.ChargeUsageBasedOverride

FeatureKeyEqualFold applies the EqualFold predicate on the "feature_key" field.

func FeatureKeyGT

FeatureKeyGT applies the GT predicate on the "feature_key" field.

func FeatureKeyGTE

func FeatureKeyGTE(v string) predicate.ChargeUsageBasedOverride

FeatureKeyGTE applies the GTE predicate on the "feature_key" field.

func FeatureKeyHasPrefix

func FeatureKeyHasPrefix(v string) predicate.ChargeUsageBasedOverride

FeatureKeyHasPrefix applies the HasPrefix predicate on the "feature_key" field.

func FeatureKeyHasSuffix

func FeatureKeyHasSuffix(v string) predicate.ChargeUsageBasedOverride

FeatureKeyHasSuffix applies the HasSuffix predicate on the "feature_key" field.

func FeatureKeyIn

func FeatureKeyIn(vs ...string) predicate.ChargeUsageBasedOverride

FeatureKeyIn applies the In predicate on the "feature_key" field.

func FeatureKeyIsNil

func FeatureKeyIsNil() predicate.ChargeUsageBasedOverride

FeatureKeyIsNil applies the IsNil predicate on the "feature_key" field.

func FeatureKeyLT

FeatureKeyLT applies the LT predicate on the "feature_key" field.

func FeatureKeyLTE

func FeatureKeyLTE(v string) predicate.ChargeUsageBasedOverride

FeatureKeyLTE applies the LTE predicate on the "feature_key" field.

func FeatureKeyNEQ

func FeatureKeyNEQ(v string) predicate.ChargeUsageBasedOverride

FeatureKeyNEQ applies the NEQ predicate on the "feature_key" field.

func FeatureKeyNotIn

func FeatureKeyNotIn(vs ...string) predicate.ChargeUsageBasedOverride

FeatureKeyNotIn applies the NotIn predicate on the "feature_key" field.

func FeatureKeyNotNil

func FeatureKeyNotNil() predicate.ChargeUsageBasedOverride

FeatureKeyNotNil applies the NotNil predicate on the "feature_key" field.

func FullServicePeriodFrom

func FullServicePeriodFrom(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodFrom applies equality check predicate on the "full_service_period_from" field. It's identical to FullServicePeriodFromEQ.

func FullServicePeriodFromEQ

func FullServicePeriodFromEQ(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodFromEQ applies the EQ predicate on the "full_service_period_from" field.

func FullServicePeriodFromGT

func FullServicePeriodFromGT(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodFromGT applies the GT predicate on the "full_service_period_from" field.

func FullServicePeriodFromGTE

func FullServicePeriodFromGTE(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodFromGTE applies the GTE predicate on the "full_service_period_from" field.

func FullServicePeriodFromIn

func FullServicePeriodFromIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodFromIn applies the In predicate on the "full_service_period_from" field.

func FullServicePeriodFromLT

func FullServicePeriodFromLT(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodFromLT applies the LT predicate on the "full_service_period_from" field.

func FullServicePeriodFromLTE

func FullServicePeriodFromLTE(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodFromLTE applies the LTE predicate on the "full_service_period_from" field.

func FullServicePeriodFromNEQ

func FullServicePeriodFromNEQ(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodFromNEQ applies the NEQ predicate on the "full_service_period_from" field.

func FullServicePeriodFromNotIn

func FullServicePeriodFromNotIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodFromNotIn applies the NotIn predicate on the "full_service_period_from" field.

func FullServicePeriodTo

func FullServicePeriodTo(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodTo applies equality check predicate on the "full_service_period_to" field. It's identical to FullServicePeriodToEQ.

func FullServicePeriodToEQ

func FullServicePeriodToEQ(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodToEQ applies the EQ predicate on the "full_service_period_to" field.

func FullServicePeriodToGT

func FullServicePeriodToGT(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodToGT applies the GT predicate on the "full_service_period_to" field.

func FullServicePeriodToGTE

func FullServicePeriodToGTE(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodToGTE applies the GTE predicate on the "full_service_period_to" field.

func FullServicePeriodToIn

func FullServicePeriodToIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodToIn applies the In predicate on the "full_service_period_to" field.

func FullServicePeriodToLT

func FullServicePeriodToLT(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodToLT applies the LT predicate on the "full_service_period_to" field.

func FullServicePeriodToLTE

func FullServicePeriodToLTE(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodToLTE applies the LTE predicate on the "full_service_period_to" field.

func FullServicePeriodToNEQ

func FullServicePeriodToNEQ(v time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodToNEQ applies the NEQ predicate on the "full_service_period_to" field.

func FullServicePeriodToNotIn

func FullServicePeriodToNotIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

FullServicePeriodToNotIn applies the NotIn predicate on the "full_service_period_to" field.

func HasTaxCode

HasTaxCode applies the HasEdge predicate on the "tax_code" edge.

func HasTaxCodeWith

func HasTaxCodeWith(preds ...predicate.TaxCode) predicate.ChargeUsageBasedOverride

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

func HasUsageBased

func HasUsageBased() predicate.ChargeUsageBasedOverride

HasUsageBased applies the HasEdge predicate on the "usage_based" edge.

func HasUsageBasedWith

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

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.ChargeUsageBasedOverride

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

IDNotIn applies the NotIn predicate on the ID field.

func IntentDeletedAt

func IntentDeletedAt(v time.Time) predicate.ChargeUsageBasedOverride

IntentDeletedAt applies equality check predicate on the "intent_deleted_at" field. It's identical to IntentDeletedAtEQ.

func IntentDeletedAtEQ

func IntentDeletedAtEQ(v time.Time) predicate.ChargeUsageBasedOverride

IntentDeletedAtEQ applies the EQ predicate on the "intent_deleted_at" field.

func IntentDeletedAtGT

func IntentDeletedAtGT(v time.Time) predicate.ChargeUsageBasedOverride

IntentDeletedAtGT applies the GT predicate on the "intent_deleted_at" field.

func IntentDeletedAtGTE

func IntentDeletedAtGTE(v time.Time) predicate.ChargeUsageBasedOverride

IntentDeletedAtGTE applies the GTE predicate on the "intent_deleted_at" field.

func IntentDeletedAtIn

func IntentDeletedAtIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

IntentDeletedAtIn applies the In predicate on the "intent_deleted_at" field.

func IntentDeletedAtIsNil

func IntentDeletedAtIsNil() predicate.ChargeUsageBasedOverride

IntentDeletedAtIsNil applies the IsNil predicate on the "intent_deleted_at" field.

func IntentDeletedAtLT

func IntentDeletedAtLT(v time.Time) predicate.ChargeUsageBasedOverride

IntentDeletedAtLT applies the LT predicate on the "intent_deleted_at" field.

func IntentDeletedAtLTE

func IntentDeletedAtLTE(v time.Time) predicate.ChargeUsageBasedOverride

IntentDeletedAtLTE applies the LTE predicate on the "intent_deleted_at" field.

func IntentDeletedAtNEQ

func IntentDeletedAtNEQ(v time.Time) predicate.ChargeUsageBasedOverride

IntentDeletedAtNEQ applies the NEQ predicate on the "intent_deleted_at" field.

func IntentDeletedAtNotIn

func IntentDeletedAtNotIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

IntentDeletedAtNotIn applies the NotIn predicate on the "intent_deleted_at" field.

func IntentDeletedAtNotNil

func IntentDeletedAtNotNil() predicate.ChargeUsageBasedOverride

IntentDeletedAtNotNil applies the NotNil predicate on the "intent_deleted_at" field.

func InvoiceAt

InvoiceAt applies equality check predicate on the "invoice_at" field. It's identical to InvoiceAtEQ.

func InvoiceAtEQ

InvoiceAtEQ applies the EQ predicate on the "invoice_at" field.

func InvoiceAtGT

InvoiceAtGT applies the GT predicate on the "invoice_at" field.

func InvoiceAtGTE

InvoiceAtGTE applies the GTE predicate on the "invoice_at" field.

func InvoiceAtIn

func InvoiceAtIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

InvoiceAtIn applies the In predicate on the "invoice_at" field.

func InvoiceAtLT

InvoiceAtLT applies the LT predicate on the "invoice_at" field.

func InvoiceAtLTE

InvoiceAtLTE applies the LTE predicate on the "invoice_at" field.

func InvoiceAtNEQ

InvoiceAtNEQ applies the NEQ predicate on the "invoice_at" field.

func InvoiceAtNotIn

func InvoiceAtNotIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

InvoiceAtNotIn applies the NotIn predicate on the "invoice_at" field.

func MetadataIsNil

func MetadataIsNil() predicate.ChargeUsageBasedOverride

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

func MetadataNotNil

func MetadataNotNil() predicate.ChargeUsageBasedOverride

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

func Name

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

func NameContains

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

func NameContainsFold

func NameContainsFold(v string) predicate.ChargeUsageBasedOverride

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

func NameEQ

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

func NameEqualFold

func NameEqualFold(v string) predicate.ChargeUsageBasedOverride

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

func NameGT

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

func NameGTE

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.ChargeUsageBasedOverride

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.ChargeUsageBasedOverride

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

func NameIn

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

func NameLT

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

func NameLTE

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

func NameNEQ

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

func NameNotIn

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

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

func Namespace

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

func NamespaceContains

func NamespaceContains(v string) predicate.ChargeUsageBasedOverride

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

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.ChargeUsageBasedOverride

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

func NamespaceEQ

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

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.ChargeUsageBasedOverride

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

func NamespaceGT

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

func NamespaceGTE

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

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.ChargeUsageBasedOverride

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

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.ChargeUsageBasedOverride

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

func NamespaceIn

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

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

func NamespaceLT

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

func NamespaceLTE

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

func NamespaceNEQ

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

func NamespaceNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ServicePeriodFrom

func ServicePeriodFrom(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodFrom applies equality check predicate on the "service_period_from" field. It's identical to ServicePeriodFromEQ.

func ServicePeriodFromEQ

func ServicePeriodFromEQ(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodFromEQ applies the EQ predicate on the "service_period_from" field.

func ServicePeriodFromGT

func ServicePeriodFromGT(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodFromGT applies the GT predicate on the "service_period_from" field.

func ServicePeriodFromGTE

func ServicePeriodFromGTE(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodFromGTE applies the GTE predicate on the "service_period_from" field.

func ServicePeriodFromIn

func ServicePeriodFromIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodFromIn applies the In predicate on the "service_period_from" field.

func ServicePeriodFromLT

func ServicePeriodFromLT(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodFromLT applies the LT predicate on the "service_period_from" field.

func ServicePeriodFromLTE

func ServicePeriodFromLTE(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodFromLTE applies the LTE predicate on the "service_period_from" field.

func ServicePeriodFromNEQ

func ServicePeriodFromNEQ(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodFromNEQ applies the NEQ predicate on the "service_period_from" field.

func ServicePeriodFromNotIn

func ServicePeriodFromNotIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodFromNotIn applies the NotIn predicate on the "service_period_from" field.

func ServicePeriodTo

func ServicePeriodTo(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodTo applies equality check predicate on the "service_period_to" field. It's identical to ServicePeriodToEQ.

func ServicePeriodToEQ

func ServicePeriodToEQ(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodToEQ applies the EQ predicate on the "service_period_to" field.

func ServicePeriodToGT

func ServicePeriodToGT(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodToGT applies the GT predicate on the "service_period_to" field.

func ServicePeriodToGTE

func ServicePeriodToGTE(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodToGTE applies the GTE predicate on the "service_period_to" field.

func ServicePeriodToIn

func ServicePeriodToIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodToIn applies the In predicate on the "service_period_to" field.

func ServicePeriodToLT

func ServicePeriodToLT(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodToLT applies the LT predicate on the "service_period_to" field.

func ServicePeriodToLTE

func ServicePeriodToLTE(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodToLTE applies the LTE predicate on the "service_period_to" field.

func ServicePeriodToNEQ

func ServicePeriodToNEQ(v time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodToNEQ applies the NEQ predicate on the "service_period_to" field.

func ServicePeriodToNotIn

func ServicePeriodToNotIn(vs ...time.Time) predicate.ChargeUsageBasedOverride

ServicePeriodToNotIn applies the NotIn predicate on the "service_period_to" field.

func TaxBehavior

TaxBehavior applies equality check predicate on the "tax_behavior" field. It's identical to TaxBehaviorEQ.

func TaxBehaviorContains

TaxBehaviorContains applies the Contains predicate on the "tax_behavior" field.

func TaxBehaviorContainsFold

TaxBehaviorContainsFold applies the ContainsFold predicate on the "tax_behavior" field.

func TaxBehaviorEQ

TaxBehaviorEQ applies the EQ predicate on the "tax_behavior" field.

func TaxBehaviorEqualFold

TaxBehaviorEqualFold applies the EqualFold predicate on the "tax_behavior" field.

func TaxBehaviorGT

TaxBehaviorGT applies the GT predicate on the "tax_behavior" field.

func TaxBehaviorGTE

TaxBehaviorGTE applies the GTE predicate on the "tax_behavior" field.

func TaxBehaviorHasPrefix

TaxBehaviorHasPrefix applies the HasPrefix predicate on the "tax_behavior" field.

func TaxBehaviorHasSuffix

TaxBehaviorHasSuffix applies the HasSuffix predicate on the "tax_behavior" field.

func TaxBehaviorIn

TaxBehaviorIn applies the In predicate on the "tax_behavior" field.

func TaxBehaviorIsNil

func TaxBehaviorIsNil() predicate.ChargeUsageBasedOverride

TaxBehaviorIsNil applies the IsNil predicate on the "tax_behavior" field.

func TaxBehaviorLT

TaxBehaviorLT applies the LT predicate on the "tax_behavior" field.

func TaxBehaviorLTE

TaxBehaviorLTE applies the LTE predicate on the "tax_behavior" field.

func TaxBehaviorNEQ

TaxBehaviorNEQ applies the NEQ predicate on the "tax_behavior" field.

func TaxBehaviorNotIn

TaxBehaviorNotIn applies the NotIn predicate on the "tax_behavior" field.

func TaxBehaviorNotNil

func TaxBehaviorNotNil() predicate.ChargeUsageBasedOverride

TaxBehaviorNotNil applies the NotNil predicate on the "tax_behavior" field.

func TaxCodeID

TaxCodeID applies equality check predicate on the "tax_code_id" field. It's identical to TaxCodeIDEQ.

func TaxCodeIDContains

func TaxCodeIDContains(v string) predicate.ChargeUsageBasedOverride

TaxCodeIDContains applies the Contains predicate on the "tax_code_id" field.

func TaxCodeIDContainsFold

func TaxCodeIDContainsFold(v string) predicate.ChargeUsageBasedOverride

TaxCodeIDContainsFold applies the ContainsFold predicate on the "tax_code_id" field.

func TaxCodeIDEQ

TaxCodeIDEQ applies the EQ predicate on the "tax_code_id" field.

func TaxCodeIDEqualFold

func TaxCodeIDEqualFold(v string) predicate.ChargeUsageBasedOverride

TaxCodeIDEqualFold applies the EqualFold predicate on the "tax_code_id" field.

func TaxCodeIDGT

TaxCodeIDGT applies the GT predicate on the "tax_code_id" field.

func TaxCodeIDGTE

TaxCodeIDGTE applies the GTE predicate on the "tax_code_id" field.

func TaxCodeIDHasPrefix

func TaxCodeIDHasPrefix(v string) predicate.ChargeUsageBasedOverride

TaxCodeIDHasPrefix applies the HasPrefix predicate on the "tax_code_id" field.

func TaxCodeIDHasSuffix

func TaxCodeIDHasSuffix(v string) predicate.ChargeUsageBasedOverride

TaxCodeIDHasSuffix applies the HasSuffix predicate on the "tax_code_id" field.

func TaxCodeIDIn

func TaxCodeIDIn(vs ...string) predicate.ChargeUsageBasedOverride

TaxCodeIDIn applies the In predicate on the "tax_code_id" field.

func TaxCodeIDIsNil

func TaxCodeIDIsNil() predicate.ChargeUsageBasedOverride

TaxCodeIDIsNil applies the IsNil predicate on the "tax_code_id" field.

func TaxCodeIDLT

TaxCodeIDLT applies the LT predicate on the "tax_code_id" field.

func TaxCodeIDLTE

TaxCodeIDLTE applies the LTE predicate on the "tax_code_id" field.

func TaxCodeIDNEQ

TaxCodeIDNEQ applies the NEQ predicate on the "tax_code_id" field.

func TaxCodeIDNotIn

func TaxCodeIDNotIn(vs ...string) predicate.ChargeUsageBasedOverride

TaxCodeIDNotIn applies the NotIn predicate on the "tax_code_id" field.

func TaxCodeIDNotNil

func TaxCodeIDNotNil() predicate.ChargeUsageBasedOverride

TaxCodeIDNotNil applies the NotNil predicate on the "tax_code_id" field.

func UnitConfigIsNil

func UnitConfigIsNil() predicate.ChargeUsageBasedOverride

UnitConfigIsNil applies the IsNil predicate on the "unit_config" field.

func UnitConfigNotNil

func UnitConfigNotNil() predicate.ChargeUsageBasedOverride

UnitConfigNotNil applies the NotNil predicate on the "unit_config" 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 ChargeUsageBasedOverride queries.

func ByBillingPeriodFrom

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

ByBillingPeriodFrom orders the results by the billing_period_from field.

func ByBillingPeriodTo

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

ByBillingPeriodTo orders the results by the billing_period_to field.

func ByChargeID

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

ByChargeID orders the results by the charge_id field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByDiscounts

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

ByDiscounts orders the results by the discounts field.

func ByFeatureKey

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

ByFeatureKey orders the results by the feature_key field.

func ByFullServicePeriodFrom

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

ByFullServicePeriodFrom orders the results by the full_service_period_from field.

func ByFullServicePeriodTo

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

ByFullServicePeriodTo orders the results by the full_service_period_to field.

func ByID

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

ByID orders the results by the id field.

func ByIntentDeletedAt

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

ByIntentDeletedAt orders the results by the intent_deleted_at field.

func ByInvoiceAt

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

ByInvoiceAt orders the results by the invoice_at field.

func ByMetadata

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

ByMetadata orders the results by the metadata 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 ByPrice

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

ByPrice orders the results by the price field.

func ByServicePeriodFrom

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

ByServicePeriodFrom orders the results by the service_period_from field.

func ByServicePeriodTo

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

ByServicePeriodTo orders the results by the service_period_to field.

func ByTaxBehavior

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

ByTaxBehavior orders the results by the tax_behavior field.

func ByTaxCodeField

func ByTaxCodeField(field string, opts ...sql.OrderTermOption) OrderOption

ByTaxCodeField orders the results by tax_code field.

func ByTaxCodeID

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

ByTaxCodeID orders the results by the tax_code_id field.

func ByUnitConfig

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

ByUnitConfig orders the results by the unit_config field.

func ByUsageBasedField

func ByUsageBasedField(field string, opts ...sql.OrderTermOption) OrderOption

ByUsageBasedField orders the results by usage_based field.

Jump to

Keyboard shortcuts

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