billinginvoicediscount

package
v1.0.0-beta.192 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var (
	// NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save.
	NamespaceValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Columns holds all SQL columns for billinginvoicediscount fields.

Functions

func Amount

Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.

func AmountEQ

AmountEQ applies the EQ predicate on the "amount" field.

func AmountGT

AmountGT applies the GT predicate on the "amount" field.

func AmountGTE

AmountGTE applies the GTE predicate on the "amount" field.

func AmountIn

AmountIn applies the In predicate on the "amount" field.

func AmountLT

AmountLT applies the LT predicate on the "amount" field.

func AmountLTE

AmountLTE applies the LTE predicate on the "amount" field.

func AmountNEQ

AmountNEQ applies the NEQ predicate on the "amount" field.

func AmountNotIn

AmountNotIn applies the NotIn predicate on the "amount" field.

func And

And groups predicates with the AND operator between them.

func CreatedAt

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

func CreatedAtEQ

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

func CreatedAtGT

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

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

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

func DeletedAtEQ

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

func DeletedAtGT

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

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

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

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

func HasLines

HasLines applies the HasEdge predicate on the "lines" edge.

func HasLinesWith

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

func ID

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

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

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InvoiceID

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

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

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

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

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

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

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

func NameGTE

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.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

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

func NameLT

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

func NameLTE

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

func NameNEQ

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

func NameNotIn

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

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

func Namespace

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

func NamespaceContains

func NamespaceContains(v string) predicate.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

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

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

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 Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func TypeEQ

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

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

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

func UpdatedAtEQ

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

func UpdatedAtGT

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

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the 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.

Jump to

Keyboard shortcuts

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