// Code generated by ent, DO NOT EDIT. package chargeusagebasedrunpayment import ( "time" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "github.com/alpacahq/alpacadecimal" "github.com/openmeterio/openmeter/openmeter/billing/charges/models/payment" "github.com/openmeterio/openmeter/openmeter/ent/db/predicate" ) // ID filters vertices based on their ID field. func ID(id string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldID, id)) } // IDEqualFold applies the EqualFold predicate on the ID field. func IDEqualFold(id string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEqualFold(FieldID, id)) } // IDContainsFold applies the ContainsFold predicate on the ID field. func IDContainsFold(id string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContainsFold(FieldID, id)) } // LineID applies equality check predicate on the "line_id" field. It's identical to LineIDEQ. func LineID(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldLineID, v)) } // InvoiceID applies equality check predicate on the "invoice_id" field. It's identical to InvoiceIDEQ. func InvoiceID(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldInvoiceID, v)) } // ServicePeriodFrom applies equality check predicate on the "service_period_from" field. It's identical to ServicePeriodFromEQ. func ServicePeriodFrom(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(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.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldServicePeriodTo, v)) } // Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ. func Amount(v alpacadecimal.Decimal) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldAmount, v)) } // AuthorizedTransactionGroupID applies equality check predicate on the "authorized_transaction_group_id" field. It's identical to AuthorizedTransactionGroupIDEQ. func AuthorizedTransactionGroupID(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldAuthorizedTransactionGroupID, v)) } // AuthorizedAt applies equality check predicate on the "authorized_at" field. It's identical to AuthorizedAtEQ. func AuthorizedAt(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldAuthorizedAt, v)) } // SettledTransactionGroupID applies equality check predicate on the "settled_transaction_group_id" field. It's identical to SettledTransactionGroupIDEQ. func SettledTransactionGroupID(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldSettledTransactionGroupID, v)) } // SettledAt applies equality check predicate on the "settled_at" field. It's identical to SettledAtEQ. func SettledAt(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldSettledAt, v)) } // Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ. func Namespace(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(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.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(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.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(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.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldDeletedAt, v)) } // RunID applies equality check predicate on the "run_id" field. It's identical to RunIDEQ. func RunID(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldRunID, v)) } // LineIDEQ applies the EQ predicate on the "line_id" field. func LineIDEQ(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldLineID, v)) } // LineIDNEQ applies the NEQ predicate on the "line_id" field. func LineIDNEQ(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldLineID, v)) } // LineIDIn applies the In predicate on the "line_id" field. func LineIDIn(vs ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldLineID, vs...)) } // LineIDNotIn applies the NotIn predicate on the "line_id" field. func LineIDNotIn(vs ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldLineID, vs...)) } // LineIDGT applies the GT predicate on the "line_id" field. func LineIDGT(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldLineID, v)) } // LineIDGTE applies the GTE predicate on the "line_id" field. func LineIDGTE(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldLineID, v)) } // LineIDLT applies the LT predicate on the "line_id" field. func LineIDLT(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldLineID, v)) } // LineIDLTE applies the LTE predicate on the "line_id" field. func LineIDLTE(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldLineID, v)) } // LineIDContains applies the Contains predicate on the "line_id" field. func LineIDContains(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContains(FieldLineID, v)) } // LineIDHasPrefix applies the HasPrefix predicate on the "line_id" field. func LineIDHasPrefix(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldHasPrefix(FieldLineID, v)) } // LineIDHasSuffix applies the HasSuffix predicate on the "line_id" field. func LineIDHasSuffix(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldHasSuffix(FieldLineID, v)) } // LineIDEqualFold applies the EqualFold predicate on the "line_id" field. func LineIDEqualFold(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEqualFold(FieldLineID, v)) } // LineIDContainsFold applies the ContainsFold predicate on the "line_id" field. func LineIDContainsFold(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContainsFold(FieldLineID, v)) } // InvoiceIDEQ applies the EQ predicate on the "invoice_id" field. func InvoiceIDEQ(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldInvoiceID, v)) } // InvoiceIDNEQ applies the NEQ predicate on the "invoice_id" field. func InvoiceIDNEQ(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldInvoiceID, v)) } // InvoiceIDIn applies the In predicate on the "invoice_id" field. func InvoiceIDIn(vs ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldInvoiceID, vs...)) } // InvoiceIDNotIn applies the NotIn predicate on the "invoice_id" field. func InvoiceIDNotIn(vs ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldInvoiceID, vs...)) } // InvoiceIDGT applies the GT predicate on the "invoice_id" field. func InvoiceIDGT(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldInvoiceID, v)) } // InvoiceIDGTE applies the GTE predicate on the "invoice_id" field. func InvoiceIDGTE(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldInvoiceID, v)) } // InvoiceIDLT applies the LT predicate on the "invoice_id" field. func InvoiceIDLT(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldInvoiceID, v)) } // InvoiceIDLTE applies the LTE predicate on the "invoice_id" field. func InvoiceIDLTE(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldInvoiceID, v)) } // InvoiceIDContains applies the Contains predicate on the "invoice_id" field. func InvoiceIDContains(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContains(FieldInvoiceID, v)) } // InvoiceIDHasPrefix applies the HasPrefix predicate on the "invoice_id" field. func InvoiceIDHasPrefix(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldHasPrefix(FieldInvoiceID, v)) } // InvoiceIDHasSuffix applies the HasSuffix predicate on the "invoice_id" field. func InvoiceIDHasSuffix(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldHasSuffix(FieldInvoiceID, v)) } // InvoiceIDEqualFold applies the EqualFold predicate on the "invoice_id" field. func InvoiceIDEqualFold(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEqualFold(FieldInvoiceID, v)) } // InvoiceIDContainsFold applies the ContainsFold predicate on the "invoice_id" field. func InvoiceIDContainsFold(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContainsFold(FieldInvoiceID, v)) } // ServicePeriodFromEQ applies the EQ predicate on the "service_period_from" field. func ServicePeriodFromEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldServicePeriodFrom, v)) } // ServicePeriodFromNEQ applies the NEQ predicate on the "service_period_from" field. func ServicePeriodFromNEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldServicePeriodFrom, v)) } // ServicePeriodFromIn applies the In predicate on the "service_period_from" field. func ServicePeriodFromIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldServicePeriodFrom, vs...)) } // ServicePeriodFromNotIn applies the NotIn predicate on the "service_period_from" field. func ServicePeriodFromNotIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldServicePeriodFrom, vs...)) } // ServicePeriodFromGT applies the GT predicate on the "service_period_from" field. func ServicePeriodFromGT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldServicePeriodFrom, v)) } // ServicePeriodFromGTE applies the GTE predicate on the "service_period_from" field. func ServicePeriodFromGTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldServicePeriodFrom, v)) } // ServicePeriodFromLT applies the LT predicate on the "service_period_from" field. func ServicePeriodFromLT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldServicePeriodFrom, v)) } // ServicePeriodFromLTE applies the LTE predicate on the "service_period_from" field. func ServicePeriodFromLTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldServicePeriodFrom, v)) } // ServicePeriodToEQ applies the EQ predicate on the "service_period_to" field. func ServicePeriodToEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldServicePeriodTo, v)) } // ServicePeriodToNEQ applies the NEQ predicate on the "service_period_to" field. func ServicePeriodToNEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldServicePeriodTo, v)) } // ServicePeriodToIn applies the In predicate on the "service_period_to" field. func ServicePeriodToIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldServicePeriodTo, vs...)) } // ServicePeriodToNotIn applies the NotIn predicate on the "service_period_to" field. func ServicePeriodToNotIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldServicePeriodTo, vs...)) } // ServicePeriodToGT applies the GT predicate on the "service_period_to" field. func ServicePeriodToGT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldServicePeriodTo, v)) } // ServicePeriodToGTE applies the GTE predicate on the "service_period_to" field. func ServicePeriodToGTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldServicePeriodTo, v)) } // ServicePeriodToLT applies the LT predicate on the "service_period_to" field. func ServicePeriodToLT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldServicePeriodTo, v)) } // ServicePeriodToLTE applies the LTE predicate on the "service_period_to" field. func ServicePeriodToLTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldServicePeriodTo, v)) } // StatusEQ applies the EQ predicate on the "status" field. func StatusEQ(v payment.Status) predicate.ChargeUsageBasedRunPayment { vc := v return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldStatus, vc)) } // StatusNEQ applies the NEQ predicate on the "status" field. func StatusNEQ(v payment.Status) predicate.ChargeUsageBasedRunPayment { vc := v return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldStatus, vc)) } // StatusIn applies the In predicate on the "status" field. func StatusIn(vs ...payment.Status) predicate.ChargeUsageBasedRunPayment { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldStatus, v...)) } // StatusNotIn applies the NotIn predicate on the "status" field. func StatusNotIn(vs ...payment.Status) predicate.ChargeUsageBasedRunPayment { v := make([]any, len(vs)) for i := range v { v[i] = vs[i] } return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldStatus, v...)) } // AmountEQ applies the EQ predicate on the "amount" field. func AmountEQ(v alpacadecimal.Decimal) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldAmount, v)) } // AmountNEQ applies the NEQ predicate on the "amount" field. func AmountNEQ(v alpacadecimal.Decimal) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldAmount, v)) } // AmountIn applies the In predicate on the "amount" field. func AmountIn(vs ...alpacadecimal.Decimal) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldAmount, vs...)) } // AmountNotIn applies the NotIn predicate on the "amount" field. func AmountNotIn(vs ...alpacadecimal.Decimal) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldAmount, vs...)) } // AmountGT applies the GT predicate on the "amount" field. func AmountGT(v alpacadecimal.Decimal) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldAmount, v)) } // AmountGTE applies the GTE predicate on the "amount" field. func AmountGTE(v alpacadecimal.Decimal) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldAmount, v)) } // AmountLT applies the LT predicate on the "amount" field. func AmountLT(v alpacadecimal.Decimal) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldAmount, v)) } // AmountLTE applies the LTE predicate on the "amount" field. func AmountLTE(v alpacadecimal.Decimal) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldAmount, v)) } // AuthorizedTransactionGroupIDEQ applies the EQ predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDEQ(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldAuthorizedTransactionGroupID, v)) } // AuthorizedTransactionGroupIDNEQ applies the NEQ predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDNEQ(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldAuthorizedTransactionGroupID, v)) } // AuthorizedTransactionGroupIDIn applies the In predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDIn(vs ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldAuthorizedTransactionGroupID, vs...)) } // AuthorizedTransactionGroupIDNotIn applies the NotIn predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDNotIn(vs ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldAuthorizedTransactionGroupID, vs...)) } // AuthorizedTransactionGroupIDGT applies the GT predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDGT(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldAuthorizedTransactionGroupID, v)) } // AuthorizedTransactionGroupIDGTE applies the GTE predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDGTE(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldAuthorizedTransactionGroupID, v)) } // AuthorizedTransactionGroupIDLT applies the LT predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDLT(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldAuthorizedTransactionGroupID, v)) } // AuthorizedTransactionGroupIDLTE applies the LTE predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDLTE(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldAuthorizedTransactionGroupID, v)) } // AuthorizedTransactionGroupIDContains applies the Contains predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDContains(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContains(FieldAuthorizedTransactionGroupID, v)) } // AuthorizedTransactionGroupIDHasPrefix applies the HasPrefix predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDHasPrefix(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldHasPrefix(FieldAuthorizedTransactionGroupID, v)) } // AuthorizedTransactionGroupIDHasSuffix applies the HasSuffix predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDHasSuffix(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldHasSuffix(FieldAuthorizedTransactionGroupID, v)) } // AuthorizedTransactionGroupIDIsNil applies the IsNil predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDIsNil() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIsNull(FieldAuthorizedTransactionGroupID)) } // AuthorizedTransactionGroupIDNotNil applies the NotNil predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDNotNil() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotNull(FieldAuthorizedTransactionGroupID)) } // AuthorizedTransactionGroupIDEqualFold applies the EqualFold predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDEqualFold(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEqualFold(FieldAuthorizedTransactionGroupID, v)) } // AuthorizedTransactionGroupIDContainsFold applies the ContainsFold predicate on the "authorized_transaction_group_id" field. func AuthorizedTransactionGroupIDContainsFold(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContainsFold(FieldAuthorizedTransactionGroupID, v)) } // AuthorizedAtEQ applies the EQ predicate on the "authorized_at" field. func AuthorizedAtEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldAuthorizedAt, v)) } // AuthorizedAtNEQ applies the NEQ predicate on the "authorized_at" field. func AuthorizedAtNEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldAuthorizedAt, v)) } // AuthorizedAtIn applies the In predicate on the "authorized_at" field. func AuthorizedAtIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldAuthorizedAt, vs...)) } // AuthorizedAtNotIn applies the NotIn predicate on the "authorized_at" field. func AuthorizedAtNotIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldAuthorizedAt, vs...)) } // AuthorizedAtGT applies the GT predicate on the "authorized_at" field. func AuthorizedAtGT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldAuthorizedAt, v)) } // AuthorizedAtGTE applies the GTE predicate on the "authorized_at" field. func AuthorizedAtGTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldAuthorizedAt, v)) } // AuthorizedAtLT applies the LT predicate on the "authorized_at" field. func AuthorizedAtLT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldAuthorizedAt, v)) } // AuthorizedAtLTE applies the LTE predicate on the "authorized_at" field. func AuthorizedAtLTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldAuthorizedAt, v)) } // AuthorizedAtIsNil applies the IsNil predicate on the "authorized_at" field. func AuthorizedAtIsNil() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIsNull(FieldAuthorizedAt)) } // AuthorizedAtNotNil applies the NotNil predicate on the "authorized_at" field. func AuthorizedAtNotNil() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotNull(FieldAuthorizedAt)) } // SettledTransactionGroupIDEQ applies the EQ predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDEQ(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldSettledTransactionGroupID, v)) } // SettledTransactionGroupIDNEQ applies the NEQ predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDNEQ(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldSettledTransactionGroupID, v)) } // SettledTransactionGroupIDIn applies the In predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDIn(vs ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldSettledTransactionGroupID, vs...)) } // SettledTransactionGroupIDNotIn applies the NotIn predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDNotIn(vs ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldSettledTransactionGroupID, vs...)) } // SettledTransactionGroupIDGT applies the GT predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDGT(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldSettledTransactionGroupID, v)) } // SettledTransactionGroupIDGTE applies the GTE predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDGTE(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldSettledTransactionGroupID, v)) } // SettledTransactionGroupIDLT applies the LT predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDLT(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldSettledTransactionGroupID, v)) } // SettledTransactionGroupIDLTE applies the LTE predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDLTE(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldSettledTransactionGroupID, v)) } // SettledTransactionGroupIDContains applies the Contains predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDContains(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContains(FieldSettledTransactionGroupID, v)) } // SettledTransactionGroupIDHasPrefix applies the HasPrefix predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDHasPrefix(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldHasPrefix(FieldSettledTransactionGroupID, v)) } // SettledTransactionGroupIDHasSuffix applies the HasSuffix predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDHasSuffix(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldHasSuffix(FieldSettledTransactionGroupID, v)) } // SettledTransactionGroupIDIsNil applies the IsNil predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDIsNil() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIsNull(FieldSettledTransactionGroupID)) } // SettledTransactionGroupIDNotNil applies the NotNil predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDNotNil() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotNull(FieldSettledTransactionGroupID)) } // SettledTransactionGroupIDEqualFold applies the EqualFold predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDEqualFold(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEqualFold(FieldSettledTransactionGroupID, v)) } // SettledTransactionGroupIDContainsFold applies the ContainsFold predicate on the "settled_transaction_group_id" field. func SettledTransactionGroupIDContainsFold(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContainsFold(FieldSettledTransactionGroupID, v)) } // SettledAtEQ applies the EQ predicate on the "settled_at" field. func SettledAtEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldSettledAt, v)) } // SettledAtNEQ applies the NEQ predicate on the "settled_at" field. func SettledAtNEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldSettledAt, v)) } // SettledAtIn applies the In predicate on the "settled_at" field. func SettledAtIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldSettledAt, vs...)) } // SettledAtNotIn applies the NotIn predicate on the "settled_at" field. func SettledAtNotIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldSettledAt, vs...)) } // SettledAtGT applies the GT predicate on the "settled_at" field. func SettledAtGT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldSettledAt, v)) } // SettledAtGTE applies the GTE predicate on the "settled_at" field. func SettledAtGTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldSettledAt, v)) } // SettledAtLT applies the LT predicate on the "settled_at" field. func SettledAtLT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldSettledAt, v)) } // SettledAtLTE applies the LTE predicate on the "settled_at" field. func SettledAtLTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldSettledAt, v)) } // SettledAtIsNil applies the IsNil predicate on the "settled_at" field. func SettledAtIsNil() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIsNull(FieldSettledAt)) } // SettledAtNotNil applies the NotNil predicate on the "settled_at" field. func SettledAtNotNil() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotNull(FieldSettledAt)) } // NamespaceEQ applies the EQ predicate on the "namespace" field. func NamespaceEQ(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldNamespace, v)) } // NamespaceNEQ applies the NEQ predicate on the "namespace" field. func NamespaceNEQ(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldNamespace, v)) } // NamespaceIn applies the In predicate on the "namespace" field. func NamespaceIn(vs ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldNamespace, vs...)) } // NamespaceNotIn applies the NotIn predicate on the "namespace" field. func NamespaceNotIn(vs ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldNamespace, vs...)) } // NamespaceGT applies the GT predicate on the "namespace" field. func NamespaceGT(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldNamespace, v)) } // NamespaceGTE applies the GTE predicate on the "namespace" field. func NamespaceGTE(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldNamespace, v)) } // NamespaceLT applies the LT predicate on the "namespace" field. func NamespaceLT(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldNamespace, v)) } // NamespaceLTE applies the LTE predicate on the "namespace" field. func NamespaceLTE(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldNamespace, v)) } // NamespaceContains applies the Contains predicate on the "namespace" field. func NamespaceContains(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContains(FieldNamespace, v)) } // NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field. func NamespaceHasPrefix(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldHasPrefix(FieldNamespace, v)) } // NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field. func NamespaceHasSuffix(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldHasSuffix(FieldNamespace, v)) } // NamespaceEqualFold applies the EqualFold predicate on the "namespace" field. func NamespaceEqualFold(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEqualFold(FieldNamespace, v)) } // NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field. func NamespaceContainsFold(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContainsFold(FieldNamespace, v)) } // CreatedAtEQ applies the EQ predicate on the "created_at" field. func CreatedAtEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldCreatedAt, v)) } // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. func CreatedAtNEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldCreatedAt, v)) } // CreatedAtIn applies the In predicate on the "created_at" field. func CreatedAtIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldCreatedAt, vs...)) } // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. func CreatedAtNotIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldCreatedAt, vs...)) } // CreatedAtGT applies the GT predicate on the "created_at" field. func CreatedAtGT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldCreatedAt, v)) } // CreatedAtGTE applies the GTE predicate on the "created_at" field. func CreatedAtGTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldCreatedAt, v)) } // CreatedAtLT applies the LT predicate on the "created_at" field. func CreatedAtLT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldCreatedAt, v)) } // CreatedAtLTE applies the LTE predicate on the "created_at" field. func CreatedAtLTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldCreatedAt, v)) } // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. func UpdatedAtEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldUpdatedAt, v)) } // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. func UpdatedAtNEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldUpdatedAt, v)) } // UpdatedAtIn applies the In predicate on the "updated_at" field. func UpdatedAtIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldUpdatedAt, vs...)) } // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. func UpdatedAtNotIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldUpdatedAt, vs...)) } // UpdatedAtGT applies the GT predicate on the "updated_at" field. func UpdatedAtGT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldUpdatedAt, v)) } // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. func UpdatedAtGTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldUpdatedAt, v)) } // UpdatedAtLT applies the LT predicate on the "updated_at" field. func UpdatedAtLT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldUpdatedAt, v)) } // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. func UpdatedAtLTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldUpdatedAt, v)) } // DeletedAtEQ applies the EQ predicate on the "deleted_at" field. func DeletedAtEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldDeletedAt, v)) } // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. func DeletedAtNEQ(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldDeletedAt, v)) } // DeletedAtIn applies the In predicate on the "deleted_at" field. func DeletedAtIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldDeletedAt, vs...)) } // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. func DeletedAtNotIn(vs ...time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldDeletedAt, vs...)) } // DeletedAtGT applies the GT predicate on the "deleted_at" field. func DeletedAtGT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldDeletedAt, v)) } // DeletedAtGTE applies the GTE predicate on the "deleted_at" field. func DeletedAtGTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldDeletedAt, v)) } // DeletedAtLT applies the LT predicate on the "deleted_at" field. func DeletedAtLT(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldDeletedAt, v)) } // DeletedAtLTE applies the LTE predicate on the "deleted_at" field. func DeletedAtLTE(v time.Time) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldDeletedAt, v)) } // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. func DeletedAtIsNil() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIsNull(FieldDeletedAt)) } // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. func DeletedAtNotNil() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotNull(FieldDeletedAt)) } // AnnotationsIsNil applies the IsNil predicate on the "annotations" field. func AnnotationsIsNil() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIsNull(FieldAnnotations)) } // AnnotationsNotNil applies the NotNil predicate on the "annotations" field. func AnnotationsNotNil() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotNull(FieldAnnotations)) } // RunIDEQ applies the EQ predicate on the "run_id" field. func RunIDEQ(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEQ(FieldRunID, v)) } // RunIDNEQ applies the NEQ predicate on the "run_id" field. func RunIDNEQ(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNEQ(FieldRunID, v)) } // RunIDIn applies the In predicate on the "run_id" field. func RunIDIn(vs ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldIn(FieldRunID, vs...)) } // RunIDNotIn applies the NotIn predicate on the "run_id" field. func RunIDNotIn(vs ...string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldNotIn(FieldRunID, vs...)) } // RunIDGT applies the GT predicate on the "run_id" field. func RunIDGT(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGT(FieldRunID, v)) } // RunIDGTE applies the GTE predicate on the "run_id" field. func RunIDGTE(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldGTE(FieldRunID, v)) } // RunIDLT applies the LT predicate on the "run_id" field. func RunIDLT(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLT(FieldRunID, v)) } // RunIDLTE applies the LTE predicate on the "run_id" field. func RunIDLTE(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldLTE(FieldRunID, v)) } // RunIDContains applies the Contains predicate on the "run_id" field. func RunIDContains(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContains(FieldRunID, v)) } // RunIDHasPrefix applies the HasPrefix predicate on the "run_id" field. func RunIDHasPrefix(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldHasPrefix(FieldRunID, v)) } // RunIDHasSuffix applies the HasSuffix predicate on the "run_id" field. func RunIDHasSuffix(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldHasSuffix(FieldRunID, v)) } // RunIDEqualFold applies the EqualFold predicate on the "run_id" field. func RunIDEqualFold(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldEqualFold(FieldRunID, v)) } // RunIDContainsFold applies the ContainsFold predicate on the "run_id" field. func RunIDContainsFold(v string) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.FieldContainsFold(FieldRunID, v)) } // HasRun applies the HasEdge predicate on the "run" edge. func HasRun() predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2O, true, RunTable, RunColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasRunWith applies the HasEdge predicate on the "run" edge with a given conditions (other predicates). func HasRunWith(preds ...predicate.ChargeUsageBasedRuns) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(func(s *sql.Selector) { step := newRunStep() 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.ChargeUsageBasedRunPayment) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.ChargeUsageBasedRunPayment) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.ChargeUsageBasedRunPayment) predicate.ChargeUsageBasedRunPayment { return predicate.ChargeUsageBasedRunPayment(sql.NotPredicates(p)) }