invoice

package
v0.0.0-...-fa32389 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the invoice type in the database.
	Label = "invoice"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldAskingPrice holds the string denoting the asking_price field in the database.
	FieldAskingPrice = "asking_price"
	// FieldIsLocked holds the string denoting the is_locked field in the database.
	FieldIsLocked = "is_locked"
	// FieldIsApproved holds the string denoting the is_approved field in the database.
	FieldIsApproved = "is_approved"
	// FieldInvoiceNumber holds the string denoting the invoice_number field in the database.
	FieldInvoiceNumber = "invoice_number"
	// FieldInvoiceDate holds the string denoting the invoice_date field in the database.
	FieldInvoiceDate = "invoice_date"
	// FieldDueDate holds the string denoting the due_date field in the database.
	FieldDueDate = "due_date"
	// FieldAmountDue holds the string denoting the amount_due field in the database.
	FieldAmountDue = "amount_due"
	// FieldCustomerName holds the string denoting the customer_name field in the database.
	FieldCustomerName = "customer_name"
	// FieldReference holds the string denoting the reference field in the database.
	FieldReference = "reference"
	// FieldCompanyName holds the string denoting the company_name field in the database.
	FieldCompanyName = "company_name"
	// FieldCurrency holds the string denoting the currency field in the database.
	FieldCurrency = "currency"
	// FieldTotalAmount holds the string denoting the total_amount field in the database.
	FieldTotalAmount = "total_amount"
	// FieldTotalVat holds the string denoting the total_vat field in the database.
	FieldTotalVat = "total_vat"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeItems holds the string denoting the items edge name in mutations.
	EdgeItems = "items"
	// EdgeBids holds the string denoting the bids edge name in mutations.
	EdgeBids = "bids"
	// EdgeIssuer holds the string denoting the issuer edge name in mutations.
	EdgeIssuer = "issuer"
	// EdgeInvestor holds the string denoting the investor edge name in mutations.
	EdgeInvestor = "investor"
	// Table holds the table name of the invoice in the database.
	Table = "invoices"
	// ItemsTable is the table that holds the items relation/edge.
	ItemsTable = "invoice_items"
	// ItemsInverseTable is the table name for the InvoiceItem entity.
	// It exists in this package in order to avoid circular dependency with the "invoiceitem" package.
	ItemsInverseTable = "invoice_items"
	// ItemsColumn is the table column denoting the items relation/edge.
	ItemsColumn = "invoice_items"
	// BidsTable is the table that holds the bids relation/edge.
	BidsTable = "bids"
	// BidsInverseTable is the table name for the Bid entity.
	// It exists in this package in order to avoid circular dependency with the "bid" package.
	BidsInverseTable = "bids"
	// BidsColumn is the table column denoting the bids relation/edge.
	BidsColumn = "invoice_bids"
	// IssuerTable is the table that holds the issuer relation/edge.
	IssuerTable = "invoices"
	// IssuerInverseTable is the table name for the Issuer entity.
	// It exists in this package in order to avoid circular dependency with the "issuer" package.
	IssuerInverseTable = "issuers"
	// IssuerColumn is the table column denoting the issuer relation/edge.
	IssuerColumn = "issuer_invoices"
	// InvestorTable is the table that holds the investor relation/edge. The primary key declared below.
	InvestorTable = "investor_invoices"
	// InvestorInverseTable is the table name for the Investor entity.
	// It exists in this package in order to avoid circular dependency with the "investor" package.
	InvestorInverseTable = "investors"
)
View Source
const DefaultStatus = StatusPending

StatusPending is the default value of the Status enum.

Variables

View Source
var (
	// DefaultAskingPrice holds the default value on creation for the "asking_price" field.
	DefaultAskingPrice float64
	// DefaultIsLocked holds the default value on creation for the "is_locked" field.
	DefaultIsLocked bool
	// DefaultIsApproved holds the default value on creation for the "is_approved" field.
	DefaultIsApproved bool
	// DefaultCurrency holds the default value on creation for the "currency" field.
	DefaultCurrency string
	// DefaultTotalAmount holds the default value on creation for the "total_amount" field.
	DefaultTotalAmount float64
	// DefaultTotalVat holds the default value on creation for the "total_vat" field.
	DefaultTotalVat float64
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for invoice fields.

View Source
var ForeignKeys = []string{
	"issuer_invoices",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "invoices" table and are not defined as standalone fields in the schema.

View Source
var (
	// InvestorPrimaryKey and InvestorColumn2 are the table columns denoting the
	// primary key for the investor relation (M2M).
	InvestorPrimaryKey = []string{"investor_id", "invoice_id"}
)

Functions

func AmountDue

func AmountDue(v float64) predicate.Invoice

AmountDue applies equality check predicate on the "amount_due" field. It's identical to AmountDueEQ.

func AmountDueEQ

func AmountDueEQ(v float64) predicate.Invoice

AmountDueEQ applies the EQ predicate on the "amount_due" field.

func AmountDueGT

func AmountDueGT(v float64) predicate.Invoice

AmountDueGT applies the GT predicate on the "amount_due" field.

func AmountDueGTE

func AmountDueGTE(v float64) predicate.Invoice

AmountDueGTE applies the GTE predicate on the "amount_due" field.

func AmountDueIn

func AmountDueIn(vs ...float64) predicate.Invoice

AmountDueIn applies the In predicate on the "amount_due" field.

func AmountDueLT

func AmountDueLT(v float64) predicate.Invoice

AmountDueLT applies the LT predicate on the "amount_due" field.

func AmountDueLTE

func AmountDueLTE(v float64) predicate.Invoice

AmountDueLTE applies the LTE predicate on the "amount_due" field.

func AmountDueNEQ

func AmountDueNEQ(v float64) predicate.Invoice

AmountDueNEQ applies the NEQ predicate on the "amount_due" field.

func AmountDueNotIn

func AmountDueNotIn(vs ...float64) predicate.Invoice

AmountDueNotIn applies the NotIn predicate on the "amount_due" field.

func And

func And(predicates ...predicate.Invoice) predicate.Invoice

And groups predicates with the AND operator between them.

func AskingPrice

func AskingPrice(v float64) predicate.Invoice

AskingPrice applies equality check predicate on the "asking_price" field. It's identical to AskingPriceEQ.

func AskingPriceEQ

func AskingPriceEQ(v float64) predicate.Invoice

AskingPriceEQ applies the EQ predicate on the "asking_price" field.

func AskingPriceGT

func AskingPriceGT(v float64) predicate.Invoice

AskingPriceGT applies the GT predicate on the "asking_price" field.

func AskingPriceGTE

func AskingPriceGTE(v float64) predicate.Invoice

AskingPriceGTE applies the GTE predicate on the "asking_price" field.

func AskingPriceIn

func AskingPriceIn(vs ...float64) predicate.Invoice

AskingPriceIn applies the In predicate on the "asking_price" field.

func AskingPriceLT

func AskingPriceLT(v float64) predicate.Invoice

AskingPriceLT applies the LT predicate on the "asking_price" field.

func AskingPriceLTE

func AskingPriceLTE(v float64) predicate.Invoice

AskingPriceLTE applies the LTE predicate on the "asking_price" field.

func AskingPriceNEQ

func AskingPriceNEQ(v float64) predicate.Invoice

AskingPriceNEQ applies the NEQ predicate on the "asking_price" field.

func AskingPriceNotIn

func AskingPriceNotIn(vs ...float64) predicate.Invoice

AskingPriceNotIn applies the NotIn predicate on the "asking_price" field.

func CompanyName

func CompanyName(v string) predicate.Invoice

CompanyName applies equality check predicate on the "company_name" field. It's identical to CompanyNameEQ.

func CompanyNameContains

func CompanyNameContains(v string) predicate.Invoice

CompanyNameContains applies the Contains predicate on the "company_name" field.

func CompanyNameContainsFold

func CompanyNameContainsFold(v string) predicate.Invoice

CompanyNameContainsFold applies the ContainsFold predicate on the "company_name" field.

func CompanyNameEQ

func CompanyNameEQ(v string) predicate.Invoice

CompanyNameEQ applies the EQ predicate on the "company_name" field.

func CompanyNameEqualFold

func CompanyNameEqualFold(v string) predicate.Invoice

CompanyNameEqualFold applies the EqualFold predicate on the "company_name" field.

func CompanyNameGT

func CompanyNameGT(v string) predicate.Invoice

CompanyNameGT applies the GT predicate on the "company_name" field.

func CompanyNameGTE

func CompanyNameGTE(v string) predicate.Invoice

CompanyNameGTE applies the GTE predicate on the "company_name" field.

func CompanyNameHasPrefix

func CompanyNameHasPrefix(v string) predicate.Invoice

CompanyNameHasPrefix applies the HasPrefix predicate on the "company_name" field.

func CompanyNameHasSuffix

func CompanyNameHasSuffix(v string) predicate.Invoice

CompanyNameHasSuffix applies the HasSuffix predicate on the "company_name" field.

func CompanyNameIn

func CompanyNameIn(vs ...string) predicate.Invoice

CompanyNameIn applies the In predicate on the "company_name" field.

func CompanyNameIsNil

func CompanyNameIsNil() predicate.Invoice

CompanyNameIsNil applies the IsNil predicate on the "company_name" field.

func CompanyNameLT

func CompanyNameLT(v string) predicate.Invoice

CompanyNameLT applies the LT predicate on the "company_name" field.

func CompanyNameLTE

func CompanyNameLTE(v string) predicate.Invoice

CompanyNameLTE applies the LTE predicate on the "company_name" field.

func CompanyNameNEQ

func CompanyNameNEQ(v string) predicate.Invoice

CompanyNameNEQ applies the NEQ predicate on the "company_name" field.

func CompanyNameNotIn

func CompanyNameNotIn(vs ...string) predicate.Invoice

CompanyNameNotIn applies the NotIn predicate on the "company_name" field.

func CompanyNameNotNil

func CompanyNameNotNil() predicate.Invoice

CompanyNameNotNil applies the NotNil predicate on the "company_name" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Invoice

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Invoice

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Invoice

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Invoice

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Invoice

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Invoice

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Invoice

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Invoice

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Invoice

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Currency

func Currency(v string) predicate.Invoice

Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.

func CurrencyContains

func CurrencyContains(v string) predicate.Invoice

CurrencyContains applies the Contains predicate on the "currency" field.

func CurrencyContainsFold

func CurrencyContainsFold(v string) predicate.Invoice

CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.

func CurrencyEQ

func CurrencyEQ(v string) predicate.Invoice

CurrencyEQ applies the EQ predicate on the "currency" field.

func CurrencyEqualFold

func CurrencyEqualFold(v string) predicate.Invoice

CurrencyEqualFold applies the EqualFold predicate on the "currency" field.

func CurrencyGT

func CurrencyGT(v string) predicate.Invoice

CurrencyGT applies the GT predicate on the "currency" field.

func CurrencyGTE

func CurrencyGTE(v string) predicate.Invoice

CurrencyGTE applies the GTE predicate on the "currency" field.

func CurrencyHasPrefix

func CurrencyHasPrefix(v string) predicate.Invoice

CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.

func CurrencyHasSuffix

func CurrencyHasSuffix(v string) predicate.Invoice

CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.

func CurrencyIn

func CurrencyIn(vs ...string) predicate.Invoice

CurrencyIn applies the In predicate on the "currency" field.

func CurrencyLT

func CurrencyLT(v string) predicate.Invoice

CurrencyLT applies the LT predicate on the "currency" field.

func CurrencyLTE

func CurrencyLTE(v string) predicate.Invoice

CurrencyLTE applies the LTE predicate on the "currency" field.

func CurrencyNEQ

func CurrencyNEQ(v string) predicate.Invoice

CurrencyNEQ applies the NEQ predicate on the "currency" field.

func CurrencyNotIn

func CurrencyNotIn(vs ...string) predicate.Invoice

CurrencyNotIn applies the NotIn predicate on the "currency" field.

func CustomerName

func CustomerName(v string) predicate.Invoice

CustomerName applies equality check predicate on the "customer_name" field. It's identical to CustomerNameEQ.

func CustomerNameContains

func CustomerNameContains(v string) predicate.Invoice

CustomerNameContains applies the Contains predicate on the "customer_name" field.

func CustomerNameContainsFold

func CustomerNameContainsFold(v string) predicate.Invoice

CustomerNameContainsFold applies the ContainsFold predicate on the "customer_name" field.

func CustomerNameEQ

func CustomerNameEQ(v string) predicate.Invoice

CustomerNameEQ applies the EQ predicate on the "customer_name" field.

func CustomerNameEqualFold

func CustomerNameEqualFold(v string) predicate.Invoice

CustomerNameEqualFold applies the EqualFold predicate on the "customer_name" field.

func CustomerNameGT

func CustomerNameGT(v string) predicate.Invoice

CustomerNameGT applies the GT predicate on the "customer_name" field.

func CustomerNameGTE

func CustomerNameGTE(v string) predicate.Invoice

CustomerNameGTE applies the GTE predicate on the "customer_name" field.

func CustomerNameHasPrefix

func CustomerNameHasPrefix(v string) predicate.Invoice

CustomerNameHasPrefix applies the HasPrefix predicate on the "customer_name" field.

func CustomerNameHasSuffix

func CustomerNameHasSuffix(v string) predicate.Invoice

CustomerNameHasSuffix applies the HasSuffix predicate on the "customer_name" field.

func CustomerNameIn

func CustomerNameIn(vs ...string) predicate.Invoice

CustomerNameIn applies the In predicate on the "customer_name" field.

func CustomerNameLT

func CustomerNameLT(v string) predicate.Invoice

CustomerNameLT applies the LT predicate on the "customer_name" field.

func CustomerNameLTE

func CustomerNameLTE(v string) predicate.Invoice

CustomerNameLTE applies the LTE predicate on the "customer_name" field.

func CustomerNameNEQ

func CustomerNameNEQ(v string) predicate.Invoice

CustomerNameNEQ applies the NEQ predicate on the "customer_name" field.

func CustomerNameNotIn

func CustomerNameNotIn(vs ...string) predicate.Invoice

CustomerNameNotIn applies the NotIn predicate on the "customer_name" field.

func DueDate

func DueDate(v time.Time) predicate.Invoice

DueDate applies equality check predicate on the "due_date" field. It's identical to DueDateEQ.

func DueDateEQ

func DueDateEQ(v time.Time) predicate.Invoice

DueDateEQ applies the EQ predicate on the "due_date" field.

func DueDateGT

func DueDateGT(v time.Time) predicate.Invoice

DueDateGT applies the GT predicate on the "due_date" field.

func DueDateGTE

func DueDateGTE(v time.Time) predicate.Invoice

DueDateGTE applies the GTE predicate on the "due_date" field.

func DueDateIn

func DueDateIn(vs ...time.Time) predicate.Invoice

DueDateIn applies the In predicate on the "due_date" field.

func DueDateLT

func DueDateLT(v time.Time) predicate.Invoice

DueDateLT applies the LT predicate on the "due_date" field.

func DueDateLTE

func DueDateLTE(v time.Time) predicate.Invoice

DueDateLTE applies the LTE predicate on the "due_date" field.

func DueDateNEQ

func DueDateNEQ(v time.Time) predicate.Invoice

DueDateNEQ applies the NEQ predicate on the "due_date" field.

func DueDateNotIn

func DueDateNotIn(vs ...time.Time) predicate.Invoice

DueDateNotIn applies the NotIn predicate on the "due_date" field.

func HasBids

func HasBids() predicate.Invoice

HasBids applies the HasEdge predicate on the "bids" edge.

func HasBidsWith

func HasBidsWith(preds ...predicate.Bid) predicate.Invoice

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

func HasInvestor

func HasInvestor() predicate.Invoice

HasInvestor applies the HasEdge predicate on the "investor" edge.

func HasInvestorWith

func HasInvestorWith(preds ...predicate.Investor) predicate.Invoice

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

func HasIssuer

func HasIssuer() predicate.Invoice

HasIssuer applies the HasEdge predicate on the "issuer" edge.

func HasIssuerWith

func HasIssuerWith(preds ...predicate.Issuer) predicate.Invoice

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

func HasItems

func HasItems() predicate.Invoice

HasItems applies the HasEdge predicate on the "items" edge.

func HasItemsWith

func HasItemsWith(preds ...predicate.InvoiceItem) predicate.Invoice

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

func ID

func ID(id uuid.UUID) predicate.Invoice

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Invoice

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Invoice

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Invoice

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Invoice

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Invoice

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Invoice

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Invoice

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Invoice

IDNotIn applies the NotIn predicate on the ID field.

func InvoiceDate

func InvoiceDate(v time.Time) predicate.Invoice

InvoiceDate applies equality check predicate on the "invoice_date" field. It's identical to InvoiceDateEQ.

func InvoiceDateEQ

func InvoiceDateEQ(v time.Time) predicate.Invoice

InvoiceDateEQ applies the EQ predicate on the "invoice_date" field.

func InvoiceDateGT

func InvoiceDateGT(v time.Time) predicate.Invoice

InvoiceDateGT applies the GT predicate on the "invoice_date" field.

func InvoiceDateGTE

func InvoiceDateGTE(v time.Time) predicate.Invoice

InvoiceDateGTE applies the GTE predicate on the "invoice_date" field.

func InvoiceDateIn

func InvoiceDateIn(vs ...time.Time) predicate.Invoice

InvoiceDateIn applies the In predicate on the "invoice_date" field.

func InvoiceDateLT

func InvoiceDateLT(v time.Time) predicate.Invoice

InvoiceDateLT applies the LT predicate on the "invoice_date" field.

func InvoiceDateLTE

func InvoiceDateLTE(v time.Time) predicate.Invoice

InvoiceDateLTE applies the LTE predicate on the "invoice_date" field.

func InvoiceDateNEQ

func InvoiceDateNEQ(v time.Time) predicate.Invoice

InvoiceDateNEQ applies the NEQ predicate on the "invoice_date" field.

func InvoiceDateNotIn

func InvoiceDateNotIn(vs ...time.Time) predicate.Invoice

InvoiceDateNotIn applies the NotIn predicate on the "invoice_date" field.

func InvoiceNumber

func InvoiceNumber(v string) predicate.Invoice

InvoiceNumber applies equality check predicate on the "invoice_number" field. It's identical to InvoiceNumberEQ.

func InvoiceNumberContains

func InvoiceNumberContains(v string) predicate.Invoice

InvoiceNumberContains applies the Contains predicate on the "invoice_number" field.

func InvoiceNumberContainsFold

func InvoiceNumberContainsFold(v string) predicate.Invoice

InvoiceNumberContainsFold applies the ContainsFold predicate on the "invoice_number" field.

func InvoiceNumberEQ

func InvoiceNumberEQ(v string) predicate.Invoice

InvoiceNumberEQ applies the EQ predicate on the "invoice_number" field.

func InvoiceNumberEqualFold

func InvoiceNumberEqualFold(v string) predicate.Invoice

InvoiceNumberEqualFold applies the EqualFold predicate on the "invoice_number" field.

func InvoiceNumberGT

func InvoiceNumberGT(v string) predicate.Invoice

InvoiceNumberGT applies the GT predicate on the "invoice_number" field.

func InvoiceNumberGTE

func InvoiceNumberGTE(v string) predicate.Invoice

InvoiceNumberGTE applies the GTE predicate on the "invoice_number" field.

func InvoiceNumberHasPrefix

func InvoiceNumberHasPrefix(v string) predicate.Invoice

InvoiceNumberHasPrefix applies the HasPrefix predicate on the "invoice_number" field.

func InvoiceNumberHasSuffix

func InvoiceNumberHasSuffix(v string) predicate.Invoice

InvoiceNumberHasSuffix applies the HasSuffix predicate on the "invoice_number" field.

func InvoiceNumberIn

func InvoiceNumberIn(vs ...string) predicate.Invoice

InvoiceNumberIn applies the In predicate on the "invoice_number" field.

func InvoiceNumberLT

func InvoiceNumberLT(v string) predicate.Invoice

InvoiceNumberLT applies the LT predicate on the "invoice_number" field.

func InvoiceNumberLTE

func InvoiceNumberLTE(v string) predicate.Invoice

InvoiceNumberLTE applies the LTE predicate on the "invoice_number" field.

func InvoiceNumberNEQ

func InvoiceNumberNEQ(v string) predicate.Invoice

InvoiceNumberNEQ applies the NEQ predicate on the "invoice_number" field.

func InvoiceNumberNotIn

func InvoiceNumberNotIn(vs ...string) predicate.Invoice

InvoiceNumberNotIn applies the NotIn predicate on the "invoice_number" field.

func IsApproved

func IsApproved(v bool) predicate.Invoice

IsApproved applies equality check predicate on the "is_approved" field. It's identical to IsApprovedEQ.

func IsApprovedEQ

func IsApprovedEQ(v bool) predicate.Invoice

IsApprovedEQ applies the EQ predicate on the "is_approved" field.

func IsApprovedNEQ

func IsApprovedNEQ(v bool) predicate.Invoice

IsApprovedNEQ applies the NEQ predicate on the "is_approved" field.

func IsLocked

func IsLocked(v bool) predicate.Invoice

IsLocked applies equality check predicate on the "is_locked" field. It's identical to IsLockedEQ.

func IsLockedEQ

func IsLockedEQ(v bool) predicate.Invoice

IsLockedEQ applies the EQ predicate on the "is_locked" field.

func IsLockedNEQ

func IsLockedNEQ(v bool) predicate.Invoice

IsLockedNEQ applies the NEQ predicate on the "is_locked" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Invoice) predicate.Invoice

Or groups predicates with the OR operator between them.

func Reference

func Reference(v string) predicate.Invoice

Reference applies equality check predicate on the "reference" field. It's identical to ReferenceEQ.

func ReferenceContains

func ReferenceContains(v string) predicate.Invoice

ReferenceContains applies the Contains predicate on the "reference" field.

func ReferenceContainsFold

func ReferenceContainsFold(v string) predicate.Invoice

ReferenceContainsFold applies the ContainsFold predicate on the "reference" field.

func ReferenceEQ

func ReferenceEQ(v string) predicate.Invoice

ReferenceEQ applies the EQ predicate on the "reference" field.

func ReferenceEqualFold

func ReferenceEqualFold(v string) predicate.Invoice

ReferenceEqualFold applies the EqualFold predicate on the "reference" field.

func ReferenceGT

func ReferenceGT(v string) predicate.Invoice

ReferenceGT applies the GT predicate on the "reference" field.

func ReferenceGTE

func ReferenceGTE(v string) predicate.Invoice

ReferenceGTE applies the GTE predicate on the "reference" field.

func ReferenceHasPrefix

func ReferenceHasPrefix(v string) predicate.Invoice

ReferenceHasPrefix applies the HasPrefix predicate on the "reference" field.

func ReferenceHasSuffix

func ReferenceHasSuffix(v string) predicate.Invoice

ReferenceHasSuffix applies the HasSuffix predicate on the "reference" field.

func ReferenceIn

func ReferenceIn(vs ...string) predicate.Invoice

ReferenceIn applies the In predicate on the "reference" field.

func ReferenceIsNil

func ReferenceIsNil() predicate.Invoice

ReferenceIsNil applies the IsNil predicate on the "reference" field.

func ReferenceLT

func ReferenceLT(v string) predicate.Invoice

ReferenceLT applies the LT predicate on the "reference" field.

func ReferenceLTE

func ReferenceLTE(v string) predicate.Invoice

ReferenceLTE applies the LTE predicate on the "reference" field.

func ReferenceNEQ

func ReferenceNEQ(v string) predicate.Invoice

ReferenceNEQ applies the NEQ predicate on the "reference" field.

func ReferenceNotIn

func ReferenceNotIn(vs ...string) predicate.Invoice

ReferenceNotIn applies the NotIn predicate on the "reference" field.

func ReferenceNotNil

func ReferenceNotNil() predicate.Invoice

ReferenceNotNil applies the NotNil predicate on the "reference" field.

func StatusEQ

func StatusEQ(v Status) predicate.Invoice

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Invoice

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Invoice

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Invoice

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func TotalAmount

func TotalAmount(v float64) predicate.Invoice

TotalAmount applies equality check predicate on the "total_amount" field. It's identical to TotalAmountEQ.

func TotalAmountEQ

func TotalAmountEQ(v float64) predicate.Invoice

TotalAmountEQ applies the EQ predicate on the "total_amount" field.

func TotalAmountGT

func TotalAmountGT(v float64) predicate.Invoice

TotalAmountGT applies the GT predicate on the "total_amount" field.

func TotalAmountGTE

func TotalAmountGTE(v float64) predicate.Invoice

TotalAmountGTE applies the GTE predicate on the "total_amount" field.

func TotalAmountIn

func TotalAmountIn(vs ...float64) predicate.Invoice

TotalAmountIn applies the In predicate on the "total_amount" field.

func TotalAmountIsNil

func TotalAmountIsNil() predicate.Invoice

TotalAmountIsNil applies the IsNil predicate on the "total_amount" field.

func TotalAmountLT

func TotalAmountLT(v float64) predicate.Invoice

TotalAmountLT applies the LT predicate on the "total_amount" field.

func TotalAmountLTE

func TotalAmountLTE(v float64) predicate.Invoice

TotalAmountLTE applies the LTE predicate on the "total_amount" field.

func TotalAmountNEQ

func TotalAmountNEQ(v float64) predicate.Invoice

TotalAmountNEQ applies the NEQ predicate on the "total_amount" field.

func TotalAmountNotIn

func TotalAmountNotIn(vs ...float64) predicate.Invoice

TotalAmountNotIn applies the NotIn predicate on the "total_amount" field.

func TotalAmountNotNil

func TotalAmountNotNil() predicate.Invoice

TotalAmountNotNil applies the NotNil predicate on the "total_amount" field.

func TotalVat

func TotalVat(v float64) predicate.Invoice

TotalVat applies equality check predicate on the "total_vat" field. It's identical to TotalVatEQ.

func TotalVatEQ

func TotalVatEQ(v float64) predicate.Invoice

TotalVatEQ applies the EQ predicate on the "total_vat" field.

func TotalVatGT

func TotalVatGT(v float64) predicate.Invoice

TotalVatGT applies the GT predicate on the "total_vat" field.

func TotalVatGTE

func TotalVatGTE(v float64) predicate.Invoice

TotalVatGTE applies the GTE predicate on the "total_vat" field.

func TotalVatIn

func TotalVatIn(vs ...float64) predicate.Invoice

TotalVatIn applies the In predicate on the "total_vat" field.

func TotalVatIsNil

func TotalVatIsNil() predicate.Invoice

TotalVatIsNil applies the IsNil predicate on the "total_vat" field.

func TotalVatLT

func TotalVatLT(v float64) predicate.Invoice

TotalVatLT applies the LT predicate on the "total_vat" field.

func TotalVatLTE

func TotalVatLTE(v float64) predicate.Invoice

TotalVatLTE applies the LTE predicate on the "total_vat" field.

func TotalVatNEQ

func TotalVatNEQ(v float64) predicate.Invoice

TotalVatNEQ applies the NEQ predicate on the "total_vat" field.

func TotalVatNotIn

func TotalVatNotIn(vs ...float64) predicate.Invoice

TotalVatNotIn applies the NotIn predicate on the "total_vat" field.

func TotalVatNotNil

func TotalVatNotNil() predicate.Invoice

TotalVatNotNil applies the NotNil predicate on the "total_vat" 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 Invoice queries.

func ByAmountDue

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

ByAmountDue orders the results by the amount_due field.

func ByAskingPrice

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

ByAskingPrice orders the results by the asking_price field.

func ByBids

func ByBids(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByBids orders the results by bids terms.

func ByBidsCount

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

ByBidsCount orders the results by bids count.

func ByCompanyName

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

ByCompanyName orders the results by the company_name field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCurrency

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

ByCurrency orders the results by the currency field.

func ByCustomerName

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

ByCustomerName orders the results by the customer_name field.

func ByDueDate

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

ByDueDate orders the results by the due_date field.

func ByID

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

ByID orders the results by the id field.

func ByInvestor

func ByInvestor(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByInvestor orders the results by investor terms.

func ByInvestorCount

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

ByInvestorCount orders the results by investor count.

func ByInvoiceDate

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

ByInvoiceDate orders the results by the invoice_date field.

func ByInvoiceNumber

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

ByInvoiceNumber orders the results by the invoice_number field.

func ByIsApproved

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

ByIsApproved orders the results by the is_approved field.

func ByIsLocked

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

ByIsLocked orders the results by the is_locked field.

func ByIssuerField

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

ByIssuerField orders the results by issuer field.

func ByItems

func ByItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByItems orders the results by items terms.

func ByItemsCount

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

ByItemsCount orders the results by items count.

func ByReference

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

ByReference orders the results by the reference field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTotalAmount

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

ByTotalAmount orders the results by the total_amount field.

func ByTotalVat

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

ByTotalVat orders the results by the total_vat field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusPending   Status = "pending"
	StatusProcessed Status = "processed"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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