// Code generated by ent, DO NOT EDIT. package chargeusagebased import ( "time" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "github.com/openmeterio/openmeter/openmeter/billing" "github.com/openmeterio/openmeter/openmeter/billing/charges/meta" "github.com/openmeterio/openmeter/openmeter/billing/charges/usagebased" "github.com/openmeterio/openmeter/openmeter/ent/db/predicate" "github.com/openmeterio/openmeter/openmeter/productcatalog" "github.com/openmeterio/openmeter/pkg/currencyx" ) // ID filters vertices based on their ID field. func ID(id string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldID, id)) } // IDEqualFold applies the EqualFold predicate on the ID field. func IDEqualFold(id string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldID, id)) } // IDContainsFold applies the ContainsFold predicate on the ID field. func IDContainsFold(id string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldID, id)) } // CustomerID applies equality check predicate on the "customer_id" field. It's identical to CustomerIDEQ. func CustomerID(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldCustomerID, v)) } // ServicePeriodFrom applies equality check predicate on the "service_period_from" field. It's identical to ServicePeriodFromEQ. func ServicePeriodFrom(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldServicePeriodFrom, v)) } // ServicePeriodTo applies equality check predicate on the "service_period_to" field. It's identical to ServicePeriodToEQ. func ServicePeriodTo(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldServicePeriodTo, v)) } // BillingPeriodFrom applies equality check predicate on the "billing_period_from" field. It's identical to BillingPeriodFromEQ. func BillingPeriodFrom(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldBillingPeriodFrom, v)) } // BillingPeriodTo applies equality check predicate on the "billing_period_to" field. It's identical to BillingPeriodToEQ. func BillingPeriodTo(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldBillingPeriodTo, v)) } // FullServicePeriodFrom applies equality check predicate on the "full_service_period_from" field. It's identical to FullServicePeriodFromEQ. func FullServicePeriodFrom(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldFullServicePeriodFrom, v)) } // FullServicePeriodTo applies equality check predicate on the "full_service_period_to" field. It's identical to FullServicePeriodToEQ. func FullServicePeriodTo(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldFullServicePeriodTo, v)) } // UniqueReferenceID applies equality check predicate on the "unique_reference_id" field. It's identical to UniqueReferenceIDEQ. func UniqueReferenceID(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldUniqueReferenceID, v)) } // Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ. func Currency(v currencyx.Code) predicate.ChargeUsageBased { vc := string(v) return predicate.ChargeUsageBased(sql.FieldEQ(FieldCurrency, vc)) } // SubscriptionID applies equality check predicate on the "subscription_id" field. It's identical to SubscriptionIDEQ. func SubscriptionID(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldSubscriptionID, v)) } // SubscriptionPhaseID applies equality check predicate on the "subscription_phase_id" field. It's identical to SubscriptionPhaseIDEQ. func SubscriptionPhaseID(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldSubscriptionPhaseID, v)) } // SubscriptionItemID applies equality check predicate on the "subscription_item_id" field. It's identical to SubscriptionItemIDEQ. func SubscriptionItemID(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldSubscriptionItemID, v)) } // AdvanceAfter applies equality check predicate on the "advance_after" field. It's identical to AdvanceAfterEQ. func AdvanceAfter(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldAdvanceAfter, v)) } // TaxCodeID applies equality check predicate on the "tax_code_id" field. It's identical to TaxCodeIDEQ. func TaxCodeID(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldTaxCodeID, v)) } // Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ. func Namespace(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldNamespace, v)) } // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. func CreatedAt(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldCreatedAt, v)) } // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. func UpdatedAt(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldUpdatedAt, v)) } // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. func DeletedAt(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldDeletedAt, v)) } // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldName, v)) } // Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. func Description(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldDescription, v)) } // InvoiceAt applies equality check predicate on the "invoice_at" field. It's identical to InvoiceAtEQ. func InvoiceAt(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldInvoiceAt, v)) } // IntentDeletedAt applies equality check predicate on the "intent_deleted_at" field. It's identical to IntentDeletedAtEQ. func IntentDeletedAt(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldIntentDeletedAt, v)) } // FeatureKey applies equality check predicate on the "feature_key" field. It's identical to FeatureKeyEQ. func FeatureKey(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldFeatureKey, v)) } // FeatureID applies equality check predicate on the "feature_id" field. It's identical to FeatureIDEQ. func FeatureID(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldFeatureID, v)) } // CurrentRealizationRunID applies equality check predicate on the "current_realization_run_id" field. It's identical to CurrentRealizationRunIDEQ. func CurrentRealizationRunID(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldCurrentRealizationRunID, v)) } // CustomerIDEQ applies the EQ predicate on the "customer_id" field. func CustomerIDEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldCustomerID, v)) } // CustomerIDNEQ applies the NEQ predicate on the "customer_id" field. func CustomerIDNEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldCustomerID, v)) } // CustomerIDIn applies the In predicate on the "customer_id" field. func CustomerIDIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldCustomerID, vs...)) } // CustomerIDNotIn applies the NotIn predicate on the "customer_id" field. func CustomerIDNotIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldCustomerID, vs...)) } // CustomerIDGT applies the GT predicate on the "customer_id" field. func CustomerIDGT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldCustomerID, v)) } // CustomerIDGTE applies the GTE predicate on the "customer_id" field. func CustomerIDGTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldCustomerID, v)) } // CustomerIDLT applies the LT predicate on the "customer_id" field. func CustomerIDLT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldCustomerID, v)) } // CustomerIDLTE applies the LTE predicate on the "customer_id" field. func CustomerIDLTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldCustomerID, v)) } // CustomerIDContains applies the Contains predicate on the "customer_id" field. func CustomerIDContains(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContains(FieldCustomerID, v)) } // CustomerIDHasPrefix applies the HasPrefix predicate on the "customer_id" field. func CustomerIDHasPrefix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldCustomerID, v)) } // CustomerIDHasSuffix applies the HasSuffix predicate on the "customer_id" field. func CustomerIDHasSuffix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldCustomerID, v)) } // CustomerIDEqualFold applies the EqualFold predicate on the "customer_id" field. func CustomerIDEqualFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldCustomerID, v)) } // CustomerIDContainsFold applies the ContainsFold predicate on the "customer_id" field. func CustomerIDContainsFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldCustomerID, v)) } // ServicePeriodFromEQ applies the EQ predicate on the "service_period_from" field. func ServicePeriodFromEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldServicePeriodFrom, v)) } // ServicePeriodFromNEQ applies the NEQ predicate on the "service_period_from" field. func ServicePeriodFromNEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldServicePeriodFrom, v)) } // ServicePeriodFromIn applies the In predicate on the "service_period_from" field. func ServicePeriodFromIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldServicePeriodFrom, vs...)) } // ServicePeriodFromNotIn applies the NotIn predicate on the "service_period_from" field. func ServicePeriodFromNotIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldServicePeriodFrom, vs...)) } // ServicePeriodFromGT applies the GT predicate on the "service_period_from" field. func ServicePeriodFromGT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldServicePeriodFrom, v)) } // ServicePeriodFromGTE applies the GTE predicate on the "service_period_from" field. func ServicePeriodFromGTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldServicePeriodFrom, v)) } // ServicePeriodFromLT applies the LT predicate on the "service_period_from" field. func ServicePeriodFromLT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldServicePeriodFrom, v)) } // ServicePeriodFromLTE applies the LTE predicate on the "service_period_from" field. func ServicePeriodFromLTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldServicePeriodFrom, v)) } // ServicePeriodToEQ applies the EQ predicate on the "service_period_to" field. func ServicePeriodToEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldServicePeriodTo, v)) } // ServicePeriodToNEQ applies the NEQ predicate on the "service_period_to" field. func ServicePeriodToNEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldServicePeriodTo, v)) } // ServicePeriodToIn applies the In predicate on the "service_period_to" field. func ServicePeriodToIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldServicePeriodTo, vs...)) } // ServicePeriodToNotIn applies the NotIn predicate on the "service_period_to" field. func ServicePeriodToNotIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldServicePeriodTo, vs...)) } // ServicePeriodToGT applies the GT predicate on the "service_period_to" field. func ServicePeriodToGT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldServicePeriodTo, v)) } // ServicePeriodToGTE applies the GTE predicate on the "service_period_to" field. func ServicePeriodToGTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldServicePeriodTo, v)) } // ServicePeriodToLT applies the LT predicate on the "service_period_to" field. func ServicePeriodToLT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldServicePeriodTo, v)) } // ServicePeriodToLTE applies the LTE predicate on the "service_period_to" field. func ServicePeriodToLTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldServicePeriodTo, v)) } // BillingPeriodFromEQ applies the EQ predicate on the "billing_period_from" field. func BillingPeriodFromEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldBillingPeriodFrom, v)) } // BillingPeriodFromNEQ applies the NEQ predicate on the "billing_period_from" field. func BillingPeriodFromNEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldBillingPeriodFrom, v)) } // BillingPeriodFromIn applies the In predicate on the "billing_period_from" field. func BillingPeriodFromIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldBillingPeriodFrom, vs...)) } // BillingPeriodFromNotIn applies the NotIn predicate on the "billing_period_from" field. func BillingPeriodFromNotIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldBillingPeriodFrom, vs...)) } // BillingPeriodFromGT applies the GT predicate on the "billing_period_from" field. func BillingPeriodFromGT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldBillingPeriodFrom, v)) } // BillingPeriodFromGTE applies the GTE predicate on the "billing_period_from" field. func BillingPeriodFromGTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldBillingPeriodFrom, v)) } // BillingPeriodFromLT applies the LT predicate on the "billing_period_from" field. func BillingPeriodFromLT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldBillingPeriodFrom, v)) } // BillingPeriodFromLTE applies the LTE predicate on the "billing_period_from" field. func BillingPeriodFromLTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldBillingPeriodFrom, v)) } // BillingPeriodToEQ applies the EQ predicate on the "billing_period_to" field. func BillingPeriodToEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldBillingPeriodTo, v)) } // BillingPeriodToNEQ applies the NEQ predicate on the "billing_period_to" field. func BillingPeriodToNEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldBillingPeriodTo, v)) } // BillingPeriodToIn applies the In predicate on the "billing_period_to" field. func BillingPeriodToIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldBillingPeriodTo, vs...)) } // BillingPeriodToNotIn applies the NotIn predicate on the "billing_period_to" field. func BillingPeriodToNotIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldBillingPeriodTo, vs...)) } // BillingPeriodToGT applies the GT predicate on the "billing_period_to" field. func BillingPeriodToGT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldBillingPeriodTo, v)) } // BillingPeriodToGTE applies the GTE predicate on the "billing_period_to" field. func BillingPeriodToGTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldBillingPeriodTo, v)) } // BillingPeriodToLT applies the LT predicate on the "billing_period_to" field. func BillingPeriodToLT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldBillingPeriodTo, v)) } // BillingPeriodToLTE applies the LTE predicate on the "billing_period_to" field. func BillingPeriodToLTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldBillingPeriodTo, v)) } // FullServicePeriodFromEQ applies the EQ predicate on the "full_service_period_from" field. func FullServicePeriodFromEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldFullServicePeriodFrom, v)) } // FullServicePeriodFromNEQ applies the NEQ predicate on the "full_service_period_from" field. func FullServicePeriodFromNEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldFullServicePeriodFrom, v)) } // FullServicePeriodFromIn applies the In predicate on the "full_service_period_from" field. func FullServicePeriodFromIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldFullServicePeriodFrom, vs...)) } // FullServicePeriodFromNotIn applies the NotIn predicate on the "full_service_period_from" field. func FullServicePeriodFromNotIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldFullServicePeriodFrom, vs...)) } // FullServicePeriodFromGT applies the GT predicate on the "full_service_period_from" field. func FullServicePeriodFromGT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldFullServicePeriodFrom, v)) } // FullServicePeriodFromGTE applies the GTE predicate on the "full_service_period_from" field. func FullServicePeriodFromGTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldFullServicePeriodFrom, v)) } // FullServicePeriodFromLT applies the LT predicate on the "full_service_period_from" field. func FullServicePeriodFromLT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldFullServicePeriodFrom, v)) } // FullServicePeriodFromLTE applies the LTE predicate on the "full_service_period_from" field. func FullServicePeriodFromLTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldFullServicePeriodFrom, v)) } // FullServicePeriodToEQ applies the EQ predicate on the "full_service_period_to" field. func FullServicePeriodToEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldFullServicePeriodTo, v)) } // FullServicePeriodToNEQ applies the NEQ predicate on the "full_service_period_to" field. func FullServicePeriodToNEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldFullServicePeriodTo, v)) } // FullServicePeriodToIn applies the In predicate on the "full_service_period_to" field. func FullServicePeriodToIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldFullServicePeriodTo, vs...)) } // FullServicePeriodToNotIn applies the NotIn predicate on the "full_service_period_to" field. func FullServicePeriodToNotIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldFullServicePeriodTo, vs...)) } // FullServicePeriodToGT applies the GT predicate on the "full_service_period_to" field. func FullServicePeriodToGT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldFullServicePeriodTo, v)) } // FullServicePeriodToGTE applies the GTE predicate on the "full_service_period_to" field. func FullServicePeriodToGTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldFullServicePeriodTo, v)) } // FullServicePeriodToLT applies the LT predicate on the "full_service_period_to" field. func FullServicePeriodToLT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldFullServicePeriodTo, v)) } // FullServicePeriodToLTE applies the LTE predicate on the "full_service_period_to" field. func FullServicePeriodToLTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldFullServicePeriodTo, v)) } // StatusEQ applies the EQ predicate on the "status" field. func StatusEQ(v meta.ChargeStatus) predicate.ChargeUsageBased { vc := v return predicate.ChargeUsageBased(sql.FieldEQ(FieldStatus, vc)) } // StatusNEQ applies the NEQ predicate on the "status" field. func StatusNEQ(v meta.ChargeStatus) predicate.ChargeUsageBased { vc := v return predicate.ChargeUsageBased(sql.FieldNEQ(FieldStatus, vc)) } // StatusIn applies the In predicate on the "status" field. func StatusIn(vs ...meta.ChargeStatus) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBased(sql.FieldIn(FieldStatus, v...)) } // StatusNotIn applies the NotIn predicate on the "status" field. func StatusNotIn(vs ...meta.ChargeStatus) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBased(sql.FieldNotIn(FieldStatus, v...)) } // UniqueReferenceIDEQ applies the EQ predicate on the "unique_reference_id" field. func UniqueReferenceIDEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldUniqueReferenceID, v)) } // UniqueReferenceIDNEQ applies the NEQ predicate on the "unique_reference_id" field. func UniqueReferenceIDNEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldUniqueReferenceID, v)) } // UniqueReferenceIDIn applies the In predicate on the "unique_reference_id" field. func UniqueReferenceIDIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldUniqueReferenceID, vs...)) } // UniqueReferenceIDNotIn applies the NotIn predicate on the "unique_reference_id" field. func UniqueReferenceIDNotIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldUniqueReferenceID, vs...)) } // UniqueReferenceIDGT applies the GT predicate on the "unique_reference_id" field. func UniqueReferenceIDGT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldUniqueReferenceID, v)) } // UniqueReferenceIDGTE applies the GTE predicate on the "unique_reference_id" field. func UniqueReferenceIDGTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldUniqueReferenceID, v)) } // UniqueReferenceIDLT applies the LT predicate on the "unique_reference_id" field. func UniqueReferenceIDLT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldUniqueReferenceID, v)) } // UniqueReferenceIDLTE applies the LTE predicate on the "unique_reference_id" field. func UniqueReferenceIDLTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldUniqueReferenceID, v)) } // UniqueReferenceIDContains applies the Contains predicate on the "unique_reference_id" field. func UniqueReferenceIDContains(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContains(FieldUniqueReferenceID, v)) } // UniqueReferenceIDHasPrefix applies the HasPrefix predicate on the "unique_reference_id" field. func UniqueReferenceIDHasPrefix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldUniqueReferenceID, v)) } // UniqueReferenceIDHasSuffix applies the HasSuffix predicate on the "unique_reference_id" field. func UniqueReferenceIDHasSuffix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldUniqueReferenceID, v)) } // UniqueReferenceIDIsNil applies the IsNil predicate on the "unique_reference_id" field. func UniqueReferenceIDIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldUniqueReferenceID)) } // UniqueReferenceIDNotNil applies the NotNil predicate on the "unique_reference_id" field. func UniqueReferenceIDNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldUniqueReferenceID)) } // UniqueReferenceIDEqualFold applies the EqualFold predicate on the "unique_reference_id" field. func UniqueReferenceIDEqualFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldUniqueReferenceID, v)) } // UniqueReferenceIDContainsFold applies the ContainsFold predicate on the "unique_reference_id" field. func UniqueReferenceIDContainsFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldUniqueReferenceID, v)) } // CurrencyEQ applies the EQ predicate on the "currency" field. func CurrencyEQ(v currencyx.Code) predicate.ChargeUsageBased { vc := string(v) return predicate.ChargeUsageBased(sql.FieldEQ(FieldCurrency, vc)) } // CurrencyNEQ applies the NEQ predicate on the "currency" field. func CurrencyNEQ(v currencyx.Code) predicate.ChargeUsageBased { vc := string(v) return predicate.ChargeUsageBased(sql.FieldNEQ(FieldCurrency, vc)) } // CurrencyIn applies the In predicate on the "currency" field. func CurrencyIn(vs ...currencyx.Code) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = string(vs[i]) } return predicate.ChargeUsageBased(sql.FieldIn(FieldCurrency, v...)) } // CurrencyNotIn applies the NotIn predicate on the "currency" field. func CurrencyNotIn(vs ...currencyx.Code) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = string(vs[i]) } return predicate.ChargeUsageBased(sql.FieldNotIn(FieldCurrency, v...)) } // CurrencyGT applies the GT predicate on the "currency" field. func CurrencyGT(v currencyx.Code) predicate.ChargeUsageBased { vc := string(v) return predicate.ChargeUsageBased(sql.FieldGT(FieldCurrency, vc)) } // CurrencyGTE applies the GTE predicate on the "currency" field. func CurrencyGTE(v currencyx.Code) predicate.ChargeUsageBased { vc := string(v) return predicate.ChargeUsageBased(sql.FieldGTE(FieldCurrency, vc)) } // CurrencyLT applies the LT predicate on the "currency" field. func CurrencyLT(v currencyx.Code) predicate.ChargeUsageBased { vc := string(v) return predicate.ChargeUsageBased(sql.FieldLT(FieldCurrency, vc)) } // CurrencyLTE applies the LTE predicate on the "currency" field. func CurrencyLTE(v currencyx.Code) predicate.ChargeUsageBased { vc := string(v) return predicate.ChargeUsageBased(sql.FieldLTE(FieldCurrency, vc)) } // CurrencyContains applies the Contains predicate on the "currency" field. func CurrencyContains(v currencyx.Code) predicate.ChargeUsageBased { vc := string(v) return predicate.ChargeUsageBased(sql.FieldContains(FieldCurrency, vc)) } // CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field. func CurrencyHasPrefix(v currencyx.Code) predicate.ChargeUsageBased { vc := string(v) return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldCurrency, vc)) } // CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field. func CurrencyHasSuffix(v currencyx.Code) predicate.ChargeUsageBased { vc := string(v) return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldCurrency, vc)) } // CurrencyEqualFold applies the EqualFold predicate on the "currency" field. func CurrencyEqualFold(v currencyx.Code) predicate.ChargeUsageBased { vc := string(v) return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldCurrency, vc)) } // CurrencyContainsFold applies the ContainsFold predicate on the "currency" field. func CurrencyContainsFold(v currencyx.Code) predicate.ChargeUsageBased { vc := string(v) return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldCurrency, vc)) } // ManagedByEQ applies the EQ predicate on the "managed_by" field. func ManagedByEQ(v billing.InvoiceLineManagedBy) predicate.ChargeUsageBased { vc := v return predicate.ChargeUsageBased(sql.FieldEQ(FieldManagedBy, vc)) } // ManagedByNEQ applies the NEQ predicate on the "managed_by" field. func ManagedByNEQ(v billing.InvoiceLineManagedBy) predicate.ChargeUsageBased { vc := v return predicate.ChargeUsageBased(sql.FieldNEQ(FieldManagedBy, vc)) } // ManagedByIn applies the In predicate on the "managed_by" field. func ManagedByIn(vs ...billing.InvoiceLineManagedBy) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBased(sql.FieldIn(FieldManagedBy, v...)) } // ManagedByNotIn applies the NotIn predicate on the "managed_by" field. func ManagedByNotIn(vs ...billing.InvoiceLineManagedBy) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBased(sql.FieldNotIn(FieldManagedBy, v...)) } // SubscriptionIDEQ applies the EQ predicate on the "subscription_id" field. func SubscriptionIDEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldSubscriptionID, v)) } // SubscriptionIDNEQ applies the NEQ predicate on the "subscription_id" field. func SubscriptionIDNEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldSubscriptionID, v)) } // SubscriptionIDIn applies the In predicate on the "subscription_id" field. func SubscriptionIDIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldSubscriptionID, vs...)) } // SubscriptionIDNotIn applies the NotIn predicate on the "subscription_id" field. func SubscriptionIDNotIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldSubscriptionID, vs...)) } // SubscriptionIDGT applies the GT predicate on the "subscription_id" field. func SubscriptionIDGT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldSubscriptionID, v)) } // SubscriptionIDGTE applies the GTE predicate on the "subscription_id" field. func SubscriptionIDGTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldSubscriptionID, v)) } // SubscriptionIDLT applies the LT predicate on the "subscription_id" field. func SubscriptionIDLT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldSubscriptionID, v)) } // SubscriptionIDLTE applies the LTE predicate on the "subscription_id" field. func SubscriptionIDLTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldSubscriptionID, v)) } // SubscriptionIDContains applies the Contains predicate on the "subscription_id" field. func SubscriptionIDContains(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContains(FieldSubscriptionID, v)) } // SubscriptionIDHasPrefix applies the HasPrefix predicate on the "subscription_id" field. func SubscriptionIDHasPrefix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldSubscriptionID, v)) } // SubscriptionIDHasSuffix applies the HasSuffix predicate on the "subscription_id" field. func SubscriptionIDHasSuffix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldSubscriptionID, v)) } // SubscriptionIDIsNil applies the IsNil predicate on the "subscription_id" field. func SubscriptionIDIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldSubscriptionID)) } // SubscriptionIDNotNil applies the NotNil predicate on the "subscription_id" field. func SubscriptionIDNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldSubscriptionID)) } // SubscriptionIDEqualFold applies the EqualFold predicate on the "subscription_id" field. func SubscriptionIDEqualFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldSubscriptionID, v)) } // SubscriptionIDContainsFold applies the ContainsFold predicate on the "subscription_id" field. func SubscriptionIDContainsFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldSubscriptionID, v)) } // SubscriptionPhaseIDEQ applies the EQ predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldSubscriptionPhaseID, v)) } // SubscriptionPhaseIDNEQ applies the NEQ predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDNEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldSubscriptionPhaseID, v)) } // SubscriptionPhaseIDIn applies the In predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldSubscriptionPhaseID, vs...)) } // SubscriptionPhaseIDNotIn applies the NotIn predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDNotIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldSubscriptionPhaseID, vs...)) } // SubscriptionPhaseIDGT applies the GT predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDGT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldSubscriptionPhaseID, v)) } // SubscriptionPhaseIDGTE applies the GTE predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDGTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldSubscriptionPhaseID, v)) } // SubscriptionPhaseIDLT applies the LT predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDLT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldSubscriptionPhaseID, v)) } // SubscriptionPhaseIDLTE applies the LTE predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDLTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldSubscriptionPhaseID, v)) } // SubscriptionPhaseIDContains applies the Contains predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDContains(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContains(FieldSubscriptionPhaseID, v)) } // SubscriptionPhaseIDHasPrefix applies the HasPrefix predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDHasPrefix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldSubscriptionPhaseID, v)) } // SubscriptionPhaseIDHasSuffix applies the HasSuffix predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDHasSuffix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldSubscriptionPhaseID, v)) } // SubscriptionPhaseIDIsNil applies the IsNil predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldSubscriptionPhaseID)) } // SubscriptionPhaseIDNotNil applies the NotNil predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldSubscriptionPhaseID)) } // SubscriptionPhaseIDEqualFold applies the EqualFold predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDEqualFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldSubscriptionPhaseID, v)) } // SubscriptionPhaseIDContainsFold applies the ContainsFold predicate on the "subscription_phase_id" field. func SubscriptionPhaseIDContainsFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldSubscriptionPhaseID, v)) } // SubscriptionItemIDEQ applies the EQ predicate on the "subscription_item_id" field. func SubscriptionItemIDEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldSubscriptionItemID, v)) } // SubscriptionItemIDNEQ applies the NEQ predicate on the "subscription_item_id" field. func SubscriptionItemIDNEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldSubscriptionItemID, v)) } // SubscriptionItemIDIn applies the In predicate on the "subscription_item_id" field. func SubscriptionItemIDIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldSubscriptionItemID, vs...)) } // SubscriptionItemIDNotIn applies the NotIn predicate on the "subscription_item_id" field. func SubscriptionItemIDNotIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldSubscriptionItemID, vs...)) } // SubscriptionItemIDGT applies the GT predicate on the "subscription_item_id" field. func SubscriptionItemIDGT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldSubscriptionItemID, v)) } // SubscriptionItemIDGTE applies the GTE predicate on the "subscription_item_id" field. func SubscriptionItemIDGTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldSubscriptionItemID, v)) } // SubscriptionItemIDLT applies the LT predicate on the "subscription_item_id" field. func SubscriptionItemIDLT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldSubscriptionItemID, v)) } // SubscriptionItemIDLTE applies the LTE predicate on the "subscription_item_id" field. func SubscriptionItemIDLTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldSubscriptionItemID, v)) } // SubscriptionItemIDContains applies the Contains predicate on the "subscription_item_id" field. func SubscriptionItemIDContains(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContains(FieldSubscriptionItemID, v)) } // SubscriptionItemIDHasPrefix applies the HasPrefix predicate on the "subscription_item_id" field. func SubscriptionItemIDHasPrefix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldSubscriptionItemID, v)) } // SubscriptionItemIDHasSuffix applies the HasSuffix predicate on the "subscription_item_id" field. func SubscriptionItemIDHasSuffix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldSubscriptionItemID, v)) } // SubscriptionItemIDIsNil applies the IsNil predicate on the "subscription_item_id" field. func SubscriptionItemIDIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldSubscriptionItemID)) } // SubscriptionItemIDNotNil applies the NotNil predicate on the "subscription_item_id" field. func SubscriptionItemIDNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldSubscriptionItemID)) } // SubscriptionItemIDEqualFold applies the EqualFold predicate on the "subscription_item_id" field. func SubscriptionItemIDEqualFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldSubscriptionItemID, v)) } // SubscriptionItemIDContainsFold applies the ContainsFold predicate on the "subscription_item_id" field. func SubscriptionItemIDContainsFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldSubscriptionItemID, v)) } // AdvanceAfterEQ applies the EQ predicate on the "advance_after" field. func AdvanceAfterEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldAdvanceAfter, v)) } // AdvanceAfterNEQ applies the NEQ predicate on the "advance_after" field. func AdvanceAfterNEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldAdvanceAfter, v)) } // AdvanceAfterIn applies the In predicate on the "advance_after" field. func AdvanceAfterIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldAdvanceAfter, vs...)) } // AdvanceAfterNotIn applies the NotIn predicate on the "advance_after" field. func AdvanceAfterNotIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldAdvanceAfter, vs...)) } // AdvanceAfterGT applies the GT predicate on the "advance_after" field. func AdvanceAfterGT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldAdvanceAfter, v)) } // AdvanceAfterGTE applies the GTE predicate on the "advance_after" field. func AdvanceAfterGTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldAdvanceAfter, v)) } // AdvanceAfterLT applies the LT predicate on the "advance_after" field. func AdvanceAfterLT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldAdvanceAfter, v)) } // AdvanceAfterLTE applies the LTE predicate on the "advance_after" field. func AdvanceAfterLTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldAdvanceAfter, v)) } // AdvanceAfterIsNil applies the IsNil predicate on the "advance_after" field. func AdvanceAfterIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldAdvanceAfter)) } // AdvanceAfterNotNil applies the NotNil predicate on the "advance_after" field. func AdvanceAfterNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldAdvanceAfter)) } // TaxCodeIDEQ applies the EQ predicate on the "tax_code_id" field. func TaxCodeIDEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldTaxCodeID, v)) } // TaxCodeIDNEQ applies the NEQ predicate on the "tax_code_id" field. func TaxCodeIDNEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldTaxCodeID, v)) } // TaxCodeIDIn applies the In predicate on the "tax_code_id" field. func TaxCodeIDIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldTaxCodeID, vs...)) } // TaxCodeIDNotIn applies the NotIn predicate on the "tax_code_id" field. func TaxCodeIDNotIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldTaxCodeID, vs...)) } // TaxCodeIDGT applies the GT predicate on the "tax_code_id" field. func TaxCodeIDGT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldTaxCodeID, v)) } // TaxCodeIDGTE applies the GTE predicate on the "tax_code_id" field. func TaxCodeIDGTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldTaxCodeID, v)) } // TaxCodeIDLT applies the LT predicate on the "tax_code_id" field. func TaxCodeIDLT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldTaxCodeID, v)) } // TaxCodeIDLTE applies the LTE predicate on the "tax_code_id" field. func TaxCodeIDLTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldTaxCodeID, v)) } // TaxCodeIDContains applies the Contains predicate on the "tax_code_id" field. func TaxCodeIDContains(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContains(FieldTaxCodeID, v)) } // TaxCodeIDHasPrefix applies the HasPrefix predicate on the "tax_code_id" field. func TaxCodeIDHasPrefix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldTaxCodeID, v)) } // TaxCodeIDHasSuffix applies the HasSuffix predicate on the "tax_code_id" field. func TaxCodeIDHasSuffix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldTaxCodeID, v)) } // TaxCodeIDEqualFold applies the EqualFold predicate on the "tax_code_id" field. func TaxCodeIDEqualFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldTaxCodeID, v)) } // TaxCodeIDContainsFold applies the ContainsFold predicate on the "tax_code_id" field. func TaxCodeIDContainsFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldTaxCodeID, v)) } // TaxBehaviorEQ applies the EQ predicate on the "tax_behavior" field. func TaxBehaviorEQ(v productcatalog.TaxBehavior) predicate.ChargeUsageBased { vc := v return predicate.ChargeUsageBased(sql.FieldEQ(FieldTaxBehavior, vc)) } // TaxBehaviorNEQ applies the NEQ predicate on the "tax_behavior" field. func TaxBehaviorNEQ(v productcatalog.TaxBehavior) predicate.ChargeUsageBased { vc := v return predicate.ChargeUsageBased(sql.FieldNEQ(FieldTaxBehavior, vc)) } // TaxBehaviorIn applies the In predicate on the "tax_behavior" field. func TaxBehaviorIn(vs ...productcatalog.TaxBehavior) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBased(sql.FieldIn(FieldTaxBehavior, v...)) } // TaxBehaviorNotIn applies the NotIn predicate on the "tax_behavior" field. func TaxBehaviorNotIn(vs ...productcatalog.TaxBehavior) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBased(sql.FieldNotIn(FieldTaxBehavior, v...)) } // TaxBehaviorIsNil applies the IsNil predicate on the "tax_behavior" field. func TaxBehaviorIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldTaxBehavior)) } // TaxBehaviorNotNil applies the NotNil predicate on the "tax_behavior" field. func TaxBehaviorNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldTaxBehavior)) } // AnnotationsIsNil applies the IsNil predicate on the "annotations" field. func AnnotationsIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldAnnotations)) } // AnnotationsNotNil applies the NotNil predicate on the "annotations" field. func AnnotationsNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldAnnotations)) } // NamespaceEQ applies the EQ predicate on the "namespace" field. func NamespaceEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldNamespace, v)) } // NamespaceNEQ applies the NEQ predicate on the "namespace" field. func NamespaceNEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldNamespace, v)) } // NamespaceIn applies the In predicate on the "namespace" field. func NamespaceIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldNamespace, vs...)) } // NamespaceNotIn applies the NotIn predicate on the "namespace" field. func NamespaceNotIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldNamespace, vs...)) } // NamespaceGT applies the GT predicate on the "namespace" field. func NamespaceGT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldNamespace, v)) } // NamespaceGTE applies the GTE predicate on the "namespace" field. func NamespaceGTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldNamespace, v)) } // NamespaceLT applies the LT predicate on the "namespace" field. func NamespaceLT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldNamespace, v)) } // NamespaceLTE applies the LTE predicate on the "namespace" field. func NamespaceLTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldNamespace, v)) } // NamespaceContains applies the Contains predicate on the "namespace" field. func NamespaceContains(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContains(FieldNamespace, v)) } // NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field. func NamespaceHasPrefix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldNamespace, v)) } // NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field. func NamespaceHasSuffix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldNamespace, v)) } // NamespaceEqualFold applies the EqualFold predicate on the "namespace" field. func NamespaceEqualFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldNamespace, v)) } // NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field. func NamespaceContainsFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldNamespace, v)) } // MetadataIsNil applies the IsNil predicate on the "metadata" field. func MetadataIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldMetadata)) } // MetadataNotNil applies the NotNil predicate on the "metadata" field. func MetadataNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldMetadata)) } // CreatedAtEQ applies the EQ predicate on the "created_at" field. func CreatedAtEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldCreatedAt, v)) } // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. func CreatedAtNEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldCreatedAt, v)) } // CreatedAtIn applies the In predicate on the "created_at" field. func CreatedAtIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldCreatedAt, vs...)) } // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. func CreatedAtNotIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldCreatedAt, vs...)) } // CreatedAtGT applies the GT predicate on the "created_at" field. func CreatedAtGT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldCreatedAt, v)) } // CreatedAtGTE applies the GTE predicate on the "created_at" field. func CreatedAtGTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldCreatedAt, v)) } // CreatedAtLT applies the LT predicate on the "created_at" field. func CreatedAtLT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldCreatedAt, v)) } // CreatedAtLTE applies the LTE predicate on the "created_at" field. func CreatedAtLTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldCreatedAt, v)) } // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. func UpdatedAtEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldUpdatedAt, v)) } // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. func UpdatedAtNEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldUpdatedAt, v)) } // UpdatedAtIn applies the In predicate on the "updated_at" field. func UpdatedAtIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldUpdatedAt, vs...)) } // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. func UpdatedAtNotIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldUpdatedAt, vs...)) } // UpdatedAtGT applies the GT predicate on the "updated_at" field. func UpdatedAtGT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldUpdatedAt, v)) } // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. func UpdatedAtGTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldUpdatedAt, v)) } // UpdatedAtLT applies the LT predicate on the "updated_at" field. func UpdatedAtLT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldUpdatedAt, v)) } // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. func UpdatedAtLTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldUpdatedAt, v)) } // DeletedAtEQ applies the EQ predicate on the "deleted_at" field. func DeletedAtEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldDeletedAt, v)) } // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. func DeletedAtNEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldDeletedAt, v)) } // DeletedAtIn applies the In predicate on the "deleted_at" field. func DeletedAtIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldDeletedAt, vs...)) } // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. func DeletedAtNotIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldDeletedAt, vs...)) } // DeletedAtGT applies the GT predicate on the "deleted_at" field. func DeletedAtGT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldDeletedAt, v)) } // DeletedAtGTE applies the GTE predicate on the "deleted_at" field. func DeletedAtGTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldDeletedAt, v)) } // DeletedAtLT applies the LT predicate on the "deleted_at" field. func DeletedAtLT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldDeletedAt, v)) } // DeletedAtLTE applies the LTE predicate on the "deleted_at" field. func DeletedAtLTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldDeletedAt, v)) } // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. func DeletedAtIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldDeletedAt)) } // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. func DeletedAtNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldDeletedAt)) } // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldName, v)) } // NameNEQ applies the NEQ predicate on the "name" field. func NameNEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldName, v)) } // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldName, vs...)) } // NameNotIn applies the NotIn predicate on the "name" field. func NameNotIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldName, vs...)) } // NameGT applies the GT predicate on the "name" field. func NameGT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldName, v)) } // NameGTE applies the GTE predicate on the "name" field. func NameGTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldName, v)) } // NameLT applies the LT predicate on the "name" field. func NameLT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldName, v)) } // NameLTE applies the LTE predicate on the "name" field. func NameLTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldName, v)) } // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContains(FieldName, v)) } // NameHasPrefix applies the HasPrefix predicate on the "name" field. func NameHasPrefix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldName, v)) } // NameHasSuffix applies the HasSuffix predicate on the "name" field. func NameHasSuffix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldName, v)) } // NameEqualFold applies the EqualFold predicate on the "name" field. func NameEqualFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldName, v)) } // NameContainsFold applies the ContainsFold predicate on the "name" field. func NameContainsFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldName, v)) } // DescriptionEQ applies the EQ predicate on the "description" field. func DescriptionEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldDescription, v)) } // DescriptionNEQ applies the NEQ predicate on the "description" field. func DescriptionNEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldDescription, v)) } // DescriptionIn applies the In predicate on the "description" field. func DescriptionIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldDescription, vs...)) } // DescriptionNotIn applies the NotIn predicate on the "description" field. func DescriptionNotIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldDescription, vs...)) } // DescriptionGT applies the GT predicate on the "description" field. func DescriptionGT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldDescription, v)) } // DescriptionGTE applies the GTE predicate on the "description" field. func DescriptionGTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldDescription, v)) } // DescriptionLT applies the LT predicate on the "description" field. func DescriptionLT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldDescription, v)) } // DescriptionLTE applies the LTE predicate on the "description" field. func DescriptionLTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldDescription, v)) } // DescriptionContains applies the Contains predicate on the "description" field. func DescriptionContains(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContains(FieldDescription, v)) } // DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. func DescriptionHasPrefix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldDescription, v)) } // DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. func DescriptionHasSuffix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldDescription, v)) } // DescriptionIsNil applies the IsNil predicate on the "description" field. func DescriptionIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldDescription)) } // DescriptionNotNil applies the NotNil predicate on the "description" field. func DescriptionNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldDescription)) } // DescriptionEqualFold applies the EqualFold predicate on the "description" field. func DescriptionEqualFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldDescription, v)) } // DescriptionContainsFold applies the ContainsFold predicate on the "description" field. func DescriptionContainsFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldDescription, v)) } // InvoiceAtEQ applies the EQ predicate on the "invoice_at" field. func InvoiceAtEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldInvoiceAt, v)) } // InvoiceAtNEQ applies the NEQ predicate on the "invoice_at" field. func InvoiceAtNEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldInvoiceAt, v)) } // InvoiceAtIn applies the In predicate on the "invoice_at" field. func InvoiceAtIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldInvoiceAt, vs...)) } // InvoiceAtNotIn applies the NotIn predicate on the "invoice_at" field. func InvoiceAtNotIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldInvoiceAt, vs...)) } // InvoiceAtGT applies the GT predicate on the "invoice_at" field. func InvoiceAtGT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldInvoiceAt, v)) } // InvoiceAtGTE applies the GTE predicate on the "invoice_at" field. func InvoiceAtGTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldInvoiceAt, v)) } // InvoiceAtLT applies the LT predicate on the "invoice_at" field. func InvoiceAtLT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldInvoiceAt, v)) } // InvoiceAtLTE applies the LTE predicate on the "invoice_at" field. func InvoiceAtLTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldInvoiceAt, v)) } // SettlementModeEQ applies the EQ predicate on the "settlement_mode" field. func SettlementModeEQ(v productcatalog.SettlementMode) predicate.ChargeUsageBased { vc := v return predicate.ChargeUsageBased(sql.FieldEQ(FieldSettlementMode, vc)) } // SettlementModeNEQ applies the NEQ predicate on the "settlement_mode" field. func SettlementModeNEQ(v productcatalog.SettlementMode) predicate.ChargeUsageBased { vc := v return predicate.ChargeUsageBased(sql.FieldNEQ(FieldSettlementMode, vc)) } // SettlementModeIn applies the In predicate on the "settlement_mode" field. func SettlementModeIn(vs ...productcatalog.SettlementMode) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBased(sql.FieldIn(FieldSettlementMode, v...)) } // SettlementModeNotIn applies the NotIn predicate on the "settlement_mode" field. func SettlementModeNotIn(vs ...productcatalog.SettlementMode) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBased(sql.FieldNotIn(FieldSettlementMode, v...)) } // IntentDeletedAtEQ applies the EQ predicate on the "intent_deleted_at" field. func IntentDeletedAtEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldIntentDeletedAt, v)) } // IntentDeletedAtNEQ applies the NEQ predicate on the "intent_deleted_at" field. func IntentDeletedAtNEQ(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldIntentDeletedAt, v)) } // IntentDeletedAtIn applies the In predicate on the "intent_deleted_at" field. func IntentDeletedAtIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldIntentDeletedAt, vs...)) } // IntentDeletedAtNotIn applies the NotIn predicate on the "intent_deleted_at" field. func IntentDeletedAtNotIn(vs ...time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldIntentDeletedAt, vs...)) } // IntentDeletedAtGT applies the GT predicate on the "intent_deleted_at" field. func IntentDeletedAtGT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldIntentDeletedAt, v)) } // IntentDeletedAtGTE applies the GTE predicate on the "intent_deleted_at" field. func IntentDeletedAtGTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldIntentDeletedAt, v)) } // IntentDeletedAtLT applies the LT predicate on the "intent_deleted_at" field. func IntentDeletedAtLT(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldIntentDeletedAt, v)) } // IntentDeletedAtLTE applies the LTE predicate on the "intent_deleted_at" field. func IntentDeletedAtLTE(v time.Time) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldIntentDeletedAt, v)) } // IntentDeletedAtIsNil applies the IsNil predicate on the "intent_deleted_at" field. func IntentDeletedAtIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldIntentDeletedAt)) } // IntentDeletedAtNotNil applies the NotNil predicate on the "intent_deleted_at" field. func IntentDeletedAtNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldIntentDeletedAt)) } // DiscountsIsNil applies the IsNil predicate on the "discounts" field. func DiscountsIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldDiscounts)) } // DiscountsNotNil applies the NotNil predicate on the "discounts" field. func DiscountsNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldDiscounts)) } // FeatureKeyEQ applies the EQ predicate on the "feature_key" field. func FeatureKeyEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldFeatureKey, v)) } // FeatureKeyNEQ applies the NEQ predicate on the "feature_key" field. func FeatureKeyNEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldFeatureKey, v)) } // FeatureKeyIn applies the In predicate on the "feature_key" field. func FeatureKeyIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldFeatureKey, vs...)) } // FeatureKeyNotIn applies the NotIn predicate on the "feature_key" field. func FeatureKeyNotIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldFeatureKey, vs...)) } // FeatureKeyGT applies the GT predicate on the "feature_key" field. func FeatureKeyGT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldFeatureKey, v)) } // FeatureKeyGTE applies the GTE predicate on the "feature_key" field. func FeatureKeyGTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldFeatureKey, v)) } // FeatureKeyLT applies the LT predicate on the "feature_key" field. func FeatureKeyLT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldFeatureKey, v)) } // FeatureKeyLTE applies the LTE predicate on the "feature_key" field. func FeatureKeyLTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldFeatureKey, v)) } // FeatureKeyContains applies the Contains predicate on the "feature_key" field. func FeatureKeyContains(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContains(FieldFeatureKey, v)) } // FeatureKeyHasPrefix applies the HasPrefix predicate on the "feature_key" field. func FeatureKeyHasPrefix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldFeatureKey, v)) } // FeatureKeyHasSuffix applies the HasSuffix predicate on the "feature_key" field. func FeatureKeyHasSuffix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldFeatureKey, v)) } // FeatureKeyEqualFold applies the EqualFold predicate on the "feature_key" field. func FeatureKeyEqualFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldFeatureKey, v)) } // FeatureKeyContainsFold applies the ContainsFold predicate on the "feature_key" field. func FeatureKeyContainsFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldFeatureKey, v)) } // FeatureIDEQ applies the EQ predicate on the "feature_id" field. func FeatureIDEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldFeatureID, v)) } // FeatureIDNEQ applies the NEQ predicate on the "feature_id" field. func FeatureIDNEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldFeatureID, v)) } // FeatureIDIn applies the In predicate on the "feature_id" field. func FeatureIDIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldFeatureID, vs...)) } // FeatureIDNotIn applies the NotIn predicate on the "feature_id" field. func FeatureIDNotIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldFeatureID, vs...)) } // FeatureIDGT applies the GT predicate on the "feature_id" field. func FeatureIDGT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldFeatureID, v)) } // FeatureIDGTE applies the GTE predicate on the "feature_id" field. func FeatureIDGTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldFeatureID, v)) } // FeatureIDLT applies the LT predicate on the "feature_id" field. func FeatureIDLT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldFeatureID, v)) } // FeatureIDLTE applies the LTE predicate on the "feature_id" field. func FeatureIDLTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldFeatureID, v)) } // FeatureIDContains applies the Contains predicate on the "feature_id" field. func FeatureIDContains(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContains(FieldFeatureID, v)) } // FeatureIDHasPrefix applies the HasPrefix predicate on the "feature_id" field. func FeatureIDHasPrefix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldFeatureID, v)) } // FeatureIDHasSuffix applies the HasSuffix predicate on the "feature_id" field. func FeatureIDHasSuffix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldFeatureID, v)) } // FeatureIDEqualFold applies the EqualFold predicate on the "feature_id" field. func FeatureIDEqualFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldFeatureID, v)) } // FeatureIDContainsFold applies the ContainsFold predicate on the "feature_id" field. func FeatureIDContainsFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldFeatureID, v)) } // RatingEngineEQ applies the EQ predicate on the "rating_engine" field. func RatingEngineEQ(v usagebased.RatingEngine) predicate.ChargeUsageBased { vc := v return predicate.ChargeUsageBased(sql.FieldEQ(FieldRatingEngine, vc)) } // RatingEngineNEQ applies the NEQ predicate on the "rating_engine" field. func RatingEngineNEQ(v usagebased.RatingEngine) predicate.ChargeUsageBased { vc := v return predicate.ChargeUsageBased(sql.FieldNEQ(FieldRatingEngine, vc)) } // RatingEngineIn applies the In predicate on the "rating_engine" field. func RatingEngineIn(vs ...usagebased.RatingEngine) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBased(sql.FieldIn(FieldRatingEngine, v...)) } // RatingEngineNotIn applies the NotIn predicate on the "rating_engine" field. func RatingEngineNotIn(vs ...usagebased.RatingEngine) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBased(sql.FieldNotIn(FieldRatingEngine, v...)) } // UnitConfigIsNil applies the IsNil predicate on the "unit_config" field. func UnitConfigIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldUnitConfig)) } // UnitConfigNotNil applies the NotNil predicate on the "unit_config" field. func UnitConfigNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldUnitConfig)) } // CurrentRealizationRunIDEQ applies the EQ predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEQ(FieldCurrentRealizationRunID, v)) } // CurrentRealizationRunIDNEQ applies the NEQ predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDNEQ(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNEQ(FieldCurrentRealizationRunID, v)) } // CurrentRealizationRunIDIn applies the In predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIn(FieldCurrentRealizationRunID, vs...)) } // CurrentRealizationRunIDNotIn applies the NotIn predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDNotIn(vs ...string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotIn(FieldCurrentRealizationRunID, vs...)) } // CurrentRealizationRunIDGT applies the GT predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDGT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGT(FieldCurrentRealizationRunID, v)) } // CurrentRealizationRunIDGTE applies the GTE predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDGTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldGTE(FieldCurrentRealizationRunID, v)) } // CurrentRealizationRunIDLT applies the LT predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDLT(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLT(FieldCurrentRealizationRunID, v)) } // CurrentRealizationRunIDLTE applies the LTE predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDLTE(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldLTE(FieldCurrentRealizationRunID, v)) } // CurrentRealizationRunIDContains applies the Contains predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDContains(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContains(FieldCurrentRealizationRunID, v)) } // CurrentRealizationRunIDHasPrefix applies the HasPrefix predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDHasPrefix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasPrefix(FieldCurrentRealizationRunID, v)) } // CurrentRealizationRunIDHasSuffix applies the HasSuffix predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDHasSuffix(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldHasSuffix(FieldCurrentRealizationRunID, v)) } // CurrentRealizationRunIDIsNil applies the IsNil predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDIsNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldIsNull(FieldCurrentRealizationRunID)) } // CurrentRealizationRunIDNotNil applies the NotNil predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDNotNil() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldNotNull(FieldCurrentRealizationRunID)) } // CurrentRealizationRunIDEqualFold applies the EqualFold predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDEqualFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldEqualFold(FieldCurrentRealizationRunID, v)) } // CurrentRealizationRunIDContainsFold applies the ContainsFold predicate on the "current_realization_run_id" field. func CurrentRealizationRunIDContainsFold(v string) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.FieldContainsFold(FieldCurrentRealizationRunID, v)) } // StatusDetailedEQ applies the EQ predicate on the "status_detailed" field. func StatusDetailedEQ(v usagebased.Status) predicate.ChargeUsageBased { vc := v return predicate.ChargeUsageBased(sql.FieldEQ(FieldStatusDetailed, vc)) } // StatusDetailedNEQ applies the NEQ predicate on the "status_detailed" field. func StatusDetailedNEQ(v usagebased.Status) predicate.ChargeUsageBased { vc := v return predicate.ChargeUsageBased(sql.FieldNEQ(FieldStatusDetailed, vc)) } // StatusDetailedIn applies the In predicate on the "status_detailed" field. func StatusDetailedIn(vs ...usagebased.Status) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBased(sql.FieldIn(FieldStatusDetailed, v...)) } // StatusDetailedNotIn applies the NotIn predicate on the "status_detailed" field. func StatusDetailedNotIn(vs ...usagebased.Status) predicate.ChargeUsageBased { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBased(sql.FieldNotIn(FieldStatusDetailed, v...)) } // HasRuns applies the HasEdge predicate on the "runs" edge. func HasRuns() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, RunsTable, RunsColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasRunsWith applies the HasEdge predicate on the "runs" edge with a given conditions (other predicates). func HasRunsWith(preds ...predicate.ChargeUsageBasedRuns) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := newRunsStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasDetailedLines applies the HasEdge predicate on the "detailed_lines" edge. func HasDetailedLines() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, DetailedLinesTable, DetailedLinesColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasDetailedLinesWith applies the HasEdge predicate on the "detailed_lines" edge with a given conditions (other predicates). func HasDetailedLinesWith(preds ...predicate.ChargeUsageBasedRunDetailedLine) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := newDetailedLinesStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasCurrentRun applies the HasEdge predicate on the "current_run" edge. func HasCurrentRun() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, false, CurrentRunTable, CurrentRunColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasCurrentRunWith applies the HasEdge predicate on the "current_run" edge with a given conditions (other predicates). func HasCurrentRunWith(preds ...predicate.ChargeUsageBasedRuns) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := newCurrentRunStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasCharge applies the HasEdge predicate on the "charge" edge. func HasCharge() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2O, false, ChargeTable, ChargeColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasChargeWith applies the HasEdge predicate on the "charge" edge with a given conditions (other predicates). func HasChargeWith(preds ...predicate.Charge) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := newChargeStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasIntentOverride applies the HasEdge predicate on the "intent_override" edge. func HasIntentOverride() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2O, false, IntentOverrideTable, IntentOverrideColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasIntentOverrideWith applies the HasEdge predicate on the "intent_override" edge with a given conditions (other predicates). func HasIntentOverrideWith(preds ...predicate.ChargeUsageBasedOverride) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := newIntentOverrideStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasSubscription applies the HasEdge predicate on the "subscription" edge. func HasSubscription() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, SubscriptionTable, SubscriptionColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasSubscriptionWith applies the HasEdge predicate on the "subscription" edge with a given conditions (other predicates). func HasSubscriptionWith(preds ...predicate.Subscription) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := newSubscriptionStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasSubscriptionPhase applies the HasEdge predicate on the "subscription_phase" edge. func HasSubscriptionPhase() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, SubscriptionPhaseTable, SubscriptionPhaseColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasSubscriptionPhaseWith applies the HasEdge predicate on the "subscription_phase" edge with a given conditions (other predicates). func HasSubscriptionPhaseWith(preds ...predicate.SubscriptionPhase) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := newSubscriptionPhaseStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasSubscriptionItem applies the HasEdge predicate on the "subscription_item" edge. func HasSubscriptionItem() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, SubscriptionItemTable, SubscriptionItemColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasSubscriptionItemWith applies the HasEdge predicate on the "subscription_item" edge with a given conditions (other predicates). func HasSubscriptionItemWith(preds ...predicate.SubscriptionItem) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := newSubscriptionItemStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasCustomer applies the HasEdge predicate on the "customer" edge. func HasCustomer() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, CustomerTable, CustomerColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasCustomerWith applies the HasEdge predicate on the "customer" edge with a given conditions (other predicates). func HasCustomerWith(preds ...predicate.Customer) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := newCustomerStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasFeature applies the HasEdge predicate on the "feature" edge. func HasFeature() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, FeatureTable, FeatureColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasFeatureWith applies the HasEdge predicate on the "feature" edge with a given conditions (other predicates). func HasFeatureWith(preds ...predicate.Feature) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := newFeatureStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasTaxCode applies the HasEdge predicate on the "tax_code" edge. func HasTaxCode() predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, TaxCodeTable, TaxCodeColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasTaxCodeWith applies the HasEdge predicate on the "tax_code" edge with a given conditions (other predicates). func HasTaxCodeWith(preds ...predicate.TaxCode) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(func(s *sql.Selector) { step := newTaxCodeStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // And groups predicates with the AND operator between them. func And(predicates ...predicate.ChargeUsageBased) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.ChargeUsageBased) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.ChargeUsageBased) predicate.ChargeUsageBased { return predicate.ChargeUsageBased(sql.NotPredicates(p)) }