Documentation
¶
Index ¶
- Constants
- Variables
- func Amount(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
- func AmountEQ(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
- func AmountGT(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
- func AmountGTE(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
- func AmountIn(vs ...alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
- func AmountLT(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
- func AmountLTE(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
- func AmountNEQ(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
- func AmountNotIn(vs ...alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
- func And(predicates ...predicate.BillingInvoiceDiscount) predicate.BillingInvoiceDiscount
- func CreatedAt(v time.Time) predicate.BillingInvoiceDiscount
- func CreatedAtEQ(v time.Time) predicate.BillingInvoiceDiscount
- func CreatedAtGT(v time.Time) predicate.BillingInvoiceDiscount
- func CreatedAtGTE(v time.Time) predicate.BillingInvoiceDiscount
- func CreatedAtIn(vs ...time.Time) predicate.BillingInvoiceDiscount
- func CreatedAtLT(v time.Time) predicate.BillingInvoiceDiscount
- func CreatedAtLTE(v time.Time) predicate.BillingInvoiceDiscount
- func CreatedAtNEQ(v time.Time) predicate.BillingInvoiceDiscount
- func CreatedAtNotIn(vs ...time.Time) predicate.BillingInvoiceDiscount
- func DeletedAt(v time.Time) predicate.BillingInvoiceDiscount
- func DeletedAtEQ(v time.Time) predicate.BillingInvoiceDiscount
- func DeletedAtGT(v time.Time) predicate.BillingInvoiceDiscount
- func DeletedAtGTE(v time.Time) predicate.BillingInvoiceDiscount
- func DeletedAtIn(vs ...time.Time) predicate.BillingInvoiceDiscount
- func DeletedAtIsNil() predicate.BillingInvoiceDiscount
- func DeletedAtLT(v time.Time) predicate.BillingInvoiceDiscount
- func DeletedAtLTE(v time.Time) predicate.BillingInvoiceDiscount
- func DeletedAtNEQ(v time.Time) predicate.BillingInvoiceDiscount
- func DeletedAtNotIn(vs ...time.Time) predicate.BillingInvoiceDiscount
- func DeletedAtNotNil() predicate.BillingInvoiceDiscount
- func Description(v string) predicate.BillingInvoiceDiscount
- func DescriptionContains(v string) predicate.BillingInvoiceDiscount
- func DescriptionContainsFold(v string) predicate.BillingInvoiceDiscount
- func DescriptionEQ(v string) predicate.BillingInvoiceDiscount
- func DescriptionEqualFold(v string) predicate.BillingInvoiceDiscount
- func DescriptionGT(v string) predicate.BillingInvoiceDiscount
- func DescriptionGTE(v string) predicate.BillingInvoiceDiscount
- func DescriptionHasPrefix(v string) predicate.BillingInvoiceDiscount
- func DescriptionHasSuffix(v string) predicate.BillingInvoiceDiscount
- func DescriptionIn(vs ...string) predicate.BillingInvoiceDiscount
- func DescriptionIsNil() predicate.BillingInvoiceDiscount
- func DescriptionLT(v string) predicate.BillingInvoiceDiscount
- func DescriptionLTE(v string) predicate.BillingInvoiceDiscount
- func DescriptionNEQ(v string) predicate.BillingInvoiceDiscount
- func DescriptionNotIn(vs ...string) predicate.BillingInvoiceDiscount
- func DescriptionNotNil() predicate.BillingInvoiceDiscount
- func HasInvoice() predicate.BillingInvoiceDiscount
- func HasInvoiceWith(preds ...predicate.BillingInvoice) predicate.BillingInvoiceDiscount
- func HasLines() predicate.BillingInvoiceDiscount
- func HasLinesWith(preds ...predicate.BillingInvoiceLine) predicate.BillingInvoiceDiscount
- func ID(id string) predicate.BillingInvoiceDiscount
- func IDContainsFold(id string) predicate.BillingInvoiceDiscount
- func IDEQ(id string) predicate.BillingInvoiceDiscount
- func IDEqualFold(id string) predicate.BillingInvoiceDiscount
- func IDGT(id string) predicate.BillingInvoiceDiscount
- func IDGTE(id string) predicate.BillingInvoiceDiscount
- func IDIn(ids ...string) predicate.BillingInvoiceDiscount
- func IDLT(id string) predicate.BillingInvoiceDiscount
- func IDLTE(id string) predicate.BillingInvoiceDiscount
- func IDNEQ(id string) predicate.BillingInvoiceDiscount
- func IDNotIn(ids ...string) predicate.BillingInvoiceDiscount
- func InvoiceID(v string) predicate.BillingInvoiceDiscount
- func InvoiceIDContains(v string) predicate.BillingInvoiceDiscount
- func InvoiceIDContainsFold(v string) predicate.BillingInvoiceDiscount
- func InvoiceIDEQ(v string) predicate.BillingInvoiceDiscount
- func InvoiceIDEqualFold(v string) predicate.BillingInvoiceDiscount
- func InvoiceIDGT(v string) predicate.BillingInvoiceDiscount
- func InvoiceIDGTE(v string) predicate.BillingInvoiceDiscount
- func InvoiceIDHasPrefix(v string) predicate.BillingInvoiceDiscount
- func InvoiceIDHasSuffix(v string) predicate.BillingInvoiceDiscount
- func InvoiceIDIn(vs ...string) predicate.BillingInvoiceDiscount
- func InvoiceIDLT(v string) predicate.BillingInvoiceDiscount
- func InvoiceIDLTE(v string) predicate.BillingInvoiceDiscount
- func InvoiceIDNEQ(v string) predicate.BillingInvoiceDiscount
- func InvoiceIDNotIn(vs ...string) predicate.BillingInvoiceDiscount
- func LineIdsIsNil() predicate.BillingInvoiceDiscount
- func LineIdsNotNil() predicate.BillingInvoiceDiscount
- func MetadataIsNil() predicate.BillingInvoiceDiscount
- func MetadataNotNil() predicate.BillingInvoiceDiscount
- func Name(v string) predicate.BillingInvoiceDiscount
- func NameContains(v string) predicate.BillingInvoiceDiscount
- func NameContainsFold(v string) predicate.BillingInvoiceDiscount
- func NameEQ(v string) predicate.BillingInvoiceDiscount
- func NameEqualFold(v string) predicate.BillingInvoiceDiscount
- func NameGT(v string) predicate.BillingInvoiceDiscount
- func NameGTE(v string) predicate.BillingInvoiceDiscount
- func NameHasPrefix(v string) predicate.BillingInvoiceDiscount
- func NameHasSuffix(v string) predicate.BillingInvoiceDiscount
- func NameIn(vs ...string) predicate.BillingInvoiceDiscount
- func NameLT(v string) predicate.BillingInvoiceDiscount
- func NameLTE(v string) predicate.BillingInvoiceDiscount
- func NameNEQ(v string) predicate.BillingInvoiceDiscount
- func NameNotIn(vs ...string) predicate.BillingInvoiceDiscount
- func Namespace(v string) predicate.BillingInvoiceDiscount
- func NamespaceContains(v string) predicate.BillingInvoiceDiscount
- func NamespaceContainsFold(v string) predicate.BillingInvoiceDiscount
- func NamespaceEQ(v string) predicate.BillingInvoiceDiscount
- func NamespaceEqualFold(v string) predicate.BillingInvoiceDiscount
- func NamespaceGT(v string) predicate.BillingInvoiceDiscount
- func NamespaceGTE(v string) predicate.BillingInvoiceDiscount
- func NamespaceHasPrefix(v string) predicate.BillingInvoiceDiscount
- func NamespaceHasSuffix(v string) predicate.BillingInvoiceDiscount
- func NamespaceIn(vs ...string) predicate.BillingInvoiceDiscount
- func NamespaceLT(v string) predicate.BillingInvoiceDiscount
- func NamespaceLTE(v string) predicate.BillingInvoiceDiscount
- func NamespaceNEQ(v string) predicate.BillingInvoiceDiscount
- func NamespaceNotIn(vs ...string) predicate.BillingInvoiceDiscount
- func Not(p predicate.BillingInvoiceDiscount) predicate.BillingInvoiceDiscount
- func Or(predicates ...predicate.BillingInvoiceDiscount) predicate.BillingInvoiceDiscount
- func TypeEQ(v billing.InvoiceDiscountType) predicate.BillingInvoiceDiscount
- func TypeIn(vs ...billing.InvoiceDiscountType) predicate.BillingInvoiceDiscount
- func TypeNEQ(v billing.InvoiceDiscountType) predicate.BillingInvoiceDiscount
- func TypeNotIn(vs ...billing.InvoiceDiscountType) predicate.BillingInvoiceDiscount
- func TypeValidator(_type billing.InvoiceDiscountType) error
- func UpdatedAt(v time.Time) predicate.BillingInvoiceDiscount
- func UpdatedAtEQ(v time.Time) predicate.BillingInvoiceDiscount
- func UpdatedAtGT(v time.Time) predicate.BillingInvoiceDiscount
- func UpdatedAtGTE(v time.Time) predicate.BillingInvoiceDiscount
- func UpdatedAtIn(vs ...time.Time) predicate.BillingInvoiceDiscount
- func UpdatedAtLT(v time.Time) predicate.BillingInvoiceDiscount
- func UpdatedAtLTE(v time.Time) predicate.BillingInvoiceDiscount
- func UpdatedAtNEQ(v time.Time) predicate.BillingInvoiceDiscount
- func UpdatedAtNotIn(vs ...time.Time) predicate.BillingInvoiceDiscount
- func ValidColumn(column string) bool
- type OrderOption
- func ByAmount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceID(opts ...sql.OrderTermOption) OrderOption
- func ByLines(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLinesCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the billinginvoicediscount type in the database. Label = "billing_invoice_discount" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldNamespace holds the string denoting the namespace field in the database. FieldNamespace = "namespace" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldInvoiceID holds the string denoting the invoice_id field in the database. FieldInvoiceID = "invoice_id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldAmount holds the string denoting the amount field in the database. FieldAmount = "amount" // FieldLineIds holds the string denoting the line_ids field in the database. FieldLineIds = "line_ids" // EdgeInvoice holds the string denoting the invoice edge name in mutations. EdgeInvoice = "invoice" // EdgeLines holds the string denoting the lines edge name in mutations. EdgeLines = "lines" // Table holds the table name of the billinginvoicediscount in the database. Table = "billing_invoice_discounts" // InvoiceTable is the table that holds the invoice relation/edge. InvoiceTable = "billing_invoice_discounts" // InvoiceInverseTable is the table name for the BillingInvoice entity. // It exists in this package in order to avoid circular dependency with the "billinginvoice" package. InvoiceInverseTable = "billing_invoices" // InvoiceColumn is the table column denoting the invoice relation/edge. InvoiceColumn = "invoice_id" // LinesTable is the table that holds the lines relation/edge. LinesTable = "billing_invoice_lines" // LinesInverseTable is the table name for the BillingInvoiceLine entity. // It exists in this package in order to avoid circular dependency with the "billinginvoiceline" package. LinesInverseTable = "billing_invoice_lines" // LinesColumn is the table column denoting the lines relation/edge. LinesColumn = "line_ids" )
Variables ¶
var ( // NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save. NamespaceValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var Columns = []string{ FieldID, FieldNamespace, FieldMetadata, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldName, FieldDescription, FieldInvoiceID, FieldType, FieldAmount, FieldLineIds, }
Columns holds all SQL columns for billinginvoicediscount fields.
Functions ¶
func Amount ¶
func Amount(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.
func AmountEQ ¶
func AmountEQ(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
AmountEQ applies the EQ predicate on the "amount" field.
func AmountGT ¶
func AmountGT(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
AmountGT applies the GT predicate on the "amount" field.
func AmountGTE ¶
func AmountGTE(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
AmountGTE applies the GTE predicate on the "amount" field.
func AmountIn ¶
func AmountIn(vs ...alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
AmountIn applies the In predicate on the "amount" field.
func AmountLT ¶
func AmountLT(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
AmountLT applies the LT predicate on the "amount" field.
func AmountLTE ¶
func AmountLTE(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
AmountLTE applies the LTE predicate on the "amount" field.
func AmountNEQ ¶
func AmountNEQ(v alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
AmountNEQ applies the NEQ predicate on the "amount" field.
func AmountNotIn ¶
func AmountNotIn(vs ...alpacadecimal.Decimal) predicate.BillingInvoiceDiscount
AmountNotIn applies the NotIn predicate on the "amount" field.
func And ¶
func And(predicates ...predicate.BillingInvoiceDiscount) predicate.BillingInvoiceDiscount
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.BillingInvoiceDiscount
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.BillingInvoiceDiscount
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.BillingInvoiceDiscount
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.BillingInvoiceDiscount
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.BillingInvoiceDiscount
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.BillingInvoiceDiscount
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.BillingInvoiceDiscount
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.BillingInvoiceDiscount
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.BillingInvoiceDiscount
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.BillingInvoiceDiscount
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.BillingInvoiceDiscount
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.BillingInvoiceDiscount
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.BillingInvoiceDiscount
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.BillingInvoiceDiscount
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.BillingInvoiceDiscount
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.BillingInvoiceDiscount
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.BillingInvoiceDiscount
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.BillingInvoiceDiscount
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.BillingInvoiceDiscount
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.BillingInvoiceDiscount
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Description ¶
func Description(v string) predicate.BillingInvoiceDiscount
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.BillingInvoiceDiscount
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.BillingInvoiceDiscount
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.BillingInvoiceDiscount
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.BillingInvoiceDiscount
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.BillingInvoiceDiscount
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.BillingInvoiceDiscount
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.BillingInvoiceDiscount
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.BillingInvoiceDiscount
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.BillingInvoiceDiscount
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
func DescriptionIsNil() predicate.BillingInvoiceDiscount
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.BillingInvoiceDiscount
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.BillingInvoiceDiscount
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.BillingInvoiceDiscount
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.BillingInvoiceDiscount
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
func DescriptionNotNil() predicate.BillingInvoiceDiscount
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasInvoice ¶
func HasInvoice() predicate.BillingInvoiceDiscount
HasInvoice applies the HasEdge predicate on the "invoice" edge.
func HasInvoiceWith ¶
func HasInvoiceWith(preds ...predicate.BillingInvoice) predicate.BillingInvoiceDiscount
HasInvoiceWith applies the HasEdge predicate on the "invoice" edge with a given conditions (other predicates).
func HasLines ¶
func HasLines() predicate.BillingInvoiceDiscount
HasLines applies the HasEdge predicate on the "lines" edge.
func HasLinesWith ¶
func HasLinesWith(preds ...predicate.BillingInvoiceLine) predicate.BillingInvoiceDiscount
HasLinesWith applies the HasEdge predicate on the "lines" edge with a given conditions (other predicates).
func ID ¶
func ID(id string) predicate.BillingInvoiceDiscount
ID filters vertices based on their ID field.
func IDContainsFold ¶
func IDContainsFold(id string) predicate.BillingInvoiceDiscount
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.BillingInvoiceDiscount
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.BillingInvoiceDiscount
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.BillingInvoiceDiscount
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.BillingInvoiceDiscount
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.BillingInvoiceDiscount
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.BillingInvoiceDiscount
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.BillingInvoiceDiscount
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.BillingInvoiceDiscount
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.BillingInvoiceDiscount
IDNotIn applies the NotIn predicate on the ID field.
func InvoiceID ¶
func InvoiceID(v string) predicate.BillingInvoiceDiscount
InvoiceID applies equality check predicate on the "invoice_id" field. It's identical to InvoiceIDEQ.
func InvoiceIDContains ¶
func InvoiceIDContains(v string) predicate.BillingInvoiceDiscount
InvoiceIDContains applies the Contains predicate on the "invoice_id" field.
func InvoiceIDContainsFold ¶
func InvoiceIDContainsFold(v string) predicate.BillingInvoiceDiscount
InvoiceIDContainsFold applies the ContainsFold predicate on the "invoice_id" field.
func InvoiceIDEQ ¶
func InvoiceIDEQ(v string) predicate.BillingInvoiceDiscount
InvoiceIDEQ applies the EQ predicate on the "invoice_id" field.
func InvoiceIDEqualFold ¶
func InvoiceIDEqualFold(v string) predicate.BillingInvoiceDiscount
InvoiceIDEqualFold applies the EqualFold predicate on the "invoice_id" field.
func InvoiceIDGT ¶
func InvoiceIDGT(v string) predicate.BillingInvoiceDiscount
InvoiceIDGT applies the GT predicate on the "invoice_id" field.
func InvoiceIDGTE ¶
func InvoiceIDGTE(v string) predicate.BillingInvoiceDiscount
InvoiceIDGTE applies the GTE predicate on the "invoice_id" field.
func InvoiceIDHasPrefix ¶
func InvoiceIDHasPrefix(v string) predicate.BillingInvoiceDiscount
InvoiceIDHasPrefix applies the HasPrefix predicate on the "invoice_id" field.
func InvoiceIDHasSuffix ¶
func InvoiceIDHasSuffix(v string) predicate.BillingInvoiceDiscount
InvoiceIDHasSuffix applies the HasSuffix predicate on the "invoice_id" field.
func InvoiceIDIn ¶
func InvoiceIDIn(vs ...string) predicate.BillingInvoiceDiscount
InvoiceIDIn applies the In predicate on the "invoice_id" field.
func InvoiceIDLT ¶
func InvoiceIDLT(v string) predicate.BillingInvoiceDiscount
InvoiceIDLT applies the LT predicate on the "invoice_id" field.
func InvoiceIDLTE ¶
func InvoiceIDLTE(v string) predicate.BillingInvoiceDiscount
InvoiceIDLTE applies the LTE predicate on the "invoice_id" field.
func InvoiceIDNEQ ¶
func InvoiceIDNEQ(v string) predicate.BillingInvoiceDiscount
InvoiceIDNEQ applies the NEQ predicate on the "invoice_id" field.
func InvoiceIDNotIn ¶
func InvoiceIDNotIn(vs ...string) predicate.BillingInvoiceDiscount
InvoiceIDNotIn applies the NotIn predicate on the "invoice_id" field.
func LineIdsIsNil ¶
func LineIdsIsNil() predicate.BillingInvoiceDiscount
LineIdsIsNil applies the IsNil predicate on the "line_ids" field.
func LineIdsNotNil ¶
func LineIdsNotNil() predicate.BillingInvoiceDiscount
LineIdsNotNil applies the NotNil predicate on the "line_ids" field.
func MetadataIsNil ¶
func MetadataIsNil() predicate.BillingInvoiceDiscount
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
func MetadataNotNil() predicate.BillingInvoiceDiscount
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func Name ¶
func Name(v string) predicate.BillingInvoiceDiscount
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.BillingInvoiceDiscount
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.BillingInvoiceDiscount
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.BillingInvoiceDiscount
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.BillingInvoiceDiscount
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.BillingInvoiceDiscount
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.BillingInvoiceDiscount
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.BillingInvoiceDiscount
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.BillingInvoiceDiscount
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.BillingInvoiceDiscount
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.BillingInvoiceDiscount
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.BillingInvoiceDiscount
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.BillingInvoiceDiscount
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.BillingInvoiceDiscount
NameNotIn applies the NotIn predicate on the "name" field.
func Namespace ¶
func Namespace(v string) predicate.BillingInvoiceDiscount
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
func NamespaceContains(v string) predicate.BillingInvoiceDiscount
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
func NamespaceContainsFold(v string) predicate.BillingInvoiceDiscount
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
func NamespaceEQ(v string) predicate.BillingInvoiceDiscount
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
func NamespaceEqualFold(v string) predicate.BillingInvoiceDiscount
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
func NamespaceGT(v string) predicate.BillingInvoiceDiscount
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
func NamespaceGTE(v string) predicate.BillingInvoiceDiscount
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
func NamespaceHasPrefix(v string) predicate.BillingInvoiceDiscount
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
func NamespaceHasSuffix(v string) predicate.BillingInvoiceDiscount
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
func NamespaceIn(vs ...string) predicate.BillingInvoiceDiscount
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
func NamespaceLT(v string) predicate.BillingInvoiceDiscount
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
func NamespaceLTE(v string) predicate.BillingInvoiceDiscount
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
func NamespaceNEQ(v string) predicate.BillingInvoiceDiscount
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
func NamespaceNotIn(vs ...string) predicate.BillingInvoiceDiscount
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func Or ¶
func Or(predicates ...predicate.BillingInvoiceDiscount) predicate.BillingInvoiceDiscount
Or groups predicates with the OR operator between them.
func TypeEQ ¶
func TypeEQ(v billing.InvoiceDiscountType) predicate.BillingInvoiceDiscount
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...billing.InvoiceDiscountType) predicate.BillingInvoiceDiscount
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v billing.InvoiceDiscountType) predicate.BillingInvoiceDiscount
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...billing.InvoiceDiscountType) predicate.BillingInvoiceDiscount
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
func TypeValidator(_type billing.InvoiceDiscountType) error
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.BillingInvoiceDiscount
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.BillingInvoiceDiscount
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.BillingInvoiceDiscount
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.BillingInvoiceDiscount
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.BillingInvoiceDiscount
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.BillingInvoiceDiscount
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.BillingInvoiceDiscount
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.BillingInvoiceDiscount
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.BillingInvoiceDiscount
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the BillingInvoiceDiscount queries.
func ByAmount ¶
func ByAmount(opts ...sql.OrderTermOption) OrderOption
ByAmount orders the results by the amount field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInvoiceField ¶
func ByInvoiceField(field string, opts ...sql.OrderTermOption) OrderOption
ByInvoiceField orders the results by invoice field.
func ByInvoiceID ¶
func ByInvoiceID(opts ...sql.OrderTermOption) OrderOption
ByInvoiceID orders the results by the invoice_id field.
func ByLines ¶
func ByLines(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByLines orders the results by lines terms.
func ByLinesCount ¶
func ByLinesCount(opts ...sql.OrderTermOption) OrderOption
ByLinesCount orders the results by lines count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNamespace ¶
func ByNamespace(opts ...sql.OrderTermOption) OrderOption
ByNamespace orders the results by the namespace field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.