creditnote

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the creditnote type in the database.
	Label = "credit_note"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTenantID holds the string denoting the tenant_id field in the database.
	FieldTenantID = "tenant_id"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// 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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldEnvironmentID holds the string denoting the environment_id field in the database.
	FieldEnvironmentID = "environment_id"
	// FieldInvoiceID holds the string denoting the invoice_id field in the database.
	FieldInvoiceID = "invoice_id"
	// FieldCustomerID holds the string denoting the customer_id field in the database.
	FieldCustomerID = "customer_id"
	// FieldSubscriptionID holds the string denoting the subscription_id field in the database.
	FieldSubscriptionID = "subscription_id"
	// FieldCreditNoteNumber holds the string denoting the credit_note_number field in the database.
	FieldCreditNoteNumber = "credit_note_number"
	// FieldCreditNoteStatus holds the string denoting the credit_note_status field in the database.
	FieldCreditNoteStatus = "credit_note_status"
	// FieldCreditNoteType holds the string denoting the credit_note_type field in the database.
	FieldCreditNoteType = "credit_note_type"
	// FieldRefundStatus holds the string denoting the refund_status field in the database.
	FieldRefundStatus = "refund_status"
	// FieldReason holds the string denoting the reason field in the database.
	FieldReason = "reason"
	// FieldMemo holds the string denoting the memo field in the database.
	FieldMemo = "memo"
	// FieldCurrency holds the string denoting the currency field in the database.
	FieldCurrency = "currency"
	// FieldIdempotencyKey holds the string denoting the idempotency_key field in the database.
	FieldIdempotencyKey = "idempotency_key"
	// FieldVoidedAt holds the string denoting the voided_at field in the database.
	FieldVoidedAt = "voided_at"
	// FieldFinalizedAt holds the string denoting the finalized_at field in the database.
	FieldFinalizedAt = "finalized_at"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldTotalAmount holds the string denoting the total_amount field in the database.
	FieldTotalAmount = "total_amount"
	// EdgeLineItems holds the string denoting the line_items edge name in mutations.
	EdgeLineItems = "line_items"
	// Table holds the table name of the creditnote in the database.
	Table = "credit_notes"
	// LineItemsTable is the table that holds the line_items relation/edge.
	LineItemsTable = "credit_note_line_items"
	// LineItemsInverseTable is the table name for the CreditNoteLineItem entity.
	// It exists in this package in order to avoid circular dependency with the "creditnotelineitem" package.
	LineItemsInverseTable = "credit_note_line_items"
	// LineItemsColumn is the table column denoting the line_items relation/edge.
	LineItemsColumn = "credit_note_id"
)

Variables

View Source
var (
	// TenantIDValidator is a validator for the "tenant_id" field. It is called by the builders before save.
	TenantIDValidator func(string) error
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// 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
	// DefaultEnvironmentID holds the default value on creation for the "environment_id" field.
	DefaultEnvironmentID string
	// InvoiceIDValidator is a validator for the "invoice_id" field. It is called by the builders before save.
	InvoiceIDValidator func(string) error
	// CustomerIDValidator is a validator for the "customer_id" field. It is called by the builders before save.
	CustomerIDValidator func(string) error
	// DefaultCreditNoteStatus holds the default value on creation for the "credit_note_status" field.
	DefaultCreditNoteStatus types.CreditNoteStatus
	// CreditNoteTypeValidator is a validator for the "credit_note_type" field. It is called by the builders before save.
	CreditNoteTypeValidator func(string) error
	// ReasonValidator is a validator for the "reason" field. It is called by the builders before save.
	ReasonValidator func(string) error
	// DefaultTotalAmount holds the default value on creation for the "total_amount" field.
	DefaultTotalAmount decimal.Decimal
)

Columns holds all SQL columns for creditnote fields.

Functions

func And

func And(predicates ...predicate.CreditNote) predicate.CreditNote

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.CreditNote

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.CreditNote

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.CreditNote

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.CreditNote

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.CreditNote

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.CreditNote

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.CreditNote

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v string) predicate.CreditNote

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.CreditNote

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.CreditNote

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.CreditNote

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.CreditNote

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.CreditNote

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.CreditNote

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.CreditNote

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.CreditNote

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.CreditNote

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.CreditNote

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.CreditNote

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.CreditNote

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.CreditNote

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.CreditNote

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.CreditNote

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func CreditNoteNumber

func CreditNoteNumber(v string) predicate.CreditNote

CreditNoteNumber applies equality check predicate on the "credit_note_number" field. It's identical to CreditNoteNumberEQ.

func CreditNoteNumberContains

func CreditNoteNumberContains(v string) predicate.CreditNote

CreditNoteNumberContains applies the Contains predicate on the "credit_note_number" field.

func CreditNoteNumberContainsFold

func CreditNoteNumberContainsFold(v string) predicate.CreditNote

CreditNoteNumberContainsFold applies the ContainsFold predicate on the "credit_note_number" field.

func CreditNoteNumberEQ

func CreditNoteNumberEQ(v string) predicate.CreditNote

CreditNoteNumberEQ applies the EQ predicate on the "credit_note_number" field.

func CreditNoteNumberEqualFold

func CreditNoteNumberEqualFold(v string) predicate.CreditNote

CreditNoteNumberEqualFold applies the EqualFold predicate on the "credit_note_number" field.

func CreditNoteNumberGT

func CreditNoteNumberGT(v string) predicate.CreditNote

CreditNoteNumberGT applies the GT predicate on the "credit_note_number" field.

func CreditNoteNumberGTE

func CreditNoteNumberGTE(v string) predicate.CreditNote

CreditNoteNumberGTE applies the GTE predicate on the "credit_note_number" field.

func CreditNoteNumberHasPrefix

func CreditNoteNumberHasPrefix(v string) predicate.CreditNote

CreditNoteNumberHasPrefix applies the HasPrefix predicate on the "credit_note_number" field.

func CreditNoteNumberHasSuffix

func CreditNoteNumberHasSuffix(v string) predicate.CreditNote

CreditNoteNumberHasSuffix applies the HasSuffix predicate on the "credit_note_number" field.

func CreditNoteNumberIn

func CreditNoteNumberIn(vs ...string) predicate.CreditNote

CreditNoteNumberIn applies the In predicate on the "credit_note_number" field.

func CreditNoteNumberLT

func CreditNoteNumberLT(v string) predicate.CreditNote

CreditNoteNumberLT applies the LT predicate on the "credit_note_number" field.

func CreditNoteNumberLTE

func CreditNoteNumberLTE(v string) predicate.CreditNote

CreditNoteNumberLTE applies the LTE predicate on the "credit_note_number" field.

func CreditNoteNumberNEQ

func CreditNoteNumberNEQ(v string) predicate.CreditNote

CreditNoteNumberNEQ applies the NEQ predicate on the "credit_note_number" field.

func CreditNoteNumberNotIn

func CreditNoteNumberNotIn(vs ...string) predicate.CreditNote

CreditNoteNumberNotIn applies the NotIn predicate on the "credit_note_number" field.

func CreditNoteStatus

func CreditNoteStatus(v types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatus applies equality check predicate on the "credit_note_status" field. It's identical to CreditNoteStatusEQ.

func CreditNoteStatusContains

func CreditNoteStatusContains(v types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusContains applies the Contains predicate on the "credit_note_status" field.

func CreditNoteStatusContainsFold

func CreditNoteStatusContainsFold(v types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusContainsFold applies the ContainsFold predicate on the "credit_note_status" field.

func CreditNoteStatusEQ

func CreditNoteStatusEQ(v types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusEQ applies the EQ predicate on the "credit_note_status" field.

func CreditNoteStatusEqualFold

func CreditNoteStatusEqualFold(v types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusEqualFold applies the EqualFold predicate on the "credit_note_status" field.

func CreditNoteStatusGT

func CreditNoteStatusGT(v types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusGT applies the GT predicate on the "credit_note_status" field.

func CreditNoteStatusGTE

func CreditNoteStatusGTE(v types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusGTE applies the GTE predicate on the "credit_note_status" field.

func CreditNoteStatusHasPrefix

func CreditNoteStatusHasPrefix(v types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusHasPrefix applies the HasPrefix predicate on the "credit_note_status" field.

func CreditNoteStatusHasSuffix

func CreditNoteStatusHasSuffix(v types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusHasSuffix applies the HasSuffix predicate on the "credit_note_status" field.

func CreditNoteStatusIn

func CreditNoteStatusIn(vs ...types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusIn applies the In predicate on the "credit_note_status" field.

func CreditNoteStatusLT

func CreditNoteStatusLT(v types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusLT applies the LT predicate on the "credit_note_status" field.

func CreditNoteStatusLTE

func CreditNoteStatusLTE(v types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusLTE applies the LTE predicate on the "credit_note_status" field.

func CreditNoteStatusNEQ

func CreditNoteStatusNEQ(v types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusNEQ applies the NEQ predicate on the "credit_note_status" field.

func CreditNoteStatusNotIn

func CreditNoteStatusNotIn(vs ...types.CreditNoteStatus) predicate.CreditNote

CreditNoteStatusNotIn applies the NotIn predicate on the "credit_note_status" field.

func CreditNoteType

func CreditNoteType(v types.CreditNoteType) predicate.CreditNote

CreditNoteType applies equality check predicate on the "credit_note_type" field. It's identical to CreditNoteTypeEQ.

func CreditNoteTypeContains

func CreditNoteTypeContains(v types.CreditNoteType) predicate.CreditNote

CreditNoteTypeContains applies the Contains predicate on the "credit_note_type" field.

func CreditNoteTypeContainsFold

func CreditNoteTypeContainsFold(v types.CreditNoteType) predicate.CreditNote

CreditNoteTypeContainsFold applies the ContainsFold predicate on the "credit_note_type" field.

func CreditNoteTypeEQ

func CreditNoteTypeEQ(v types.CreditNoteType) predicate.CreditNote

CreditNoteTypeEQ applies the EQ predicate on the "credit_note_type" field.

func CreditNoteTypeEqualFold

func CreditNoteTypeEqualFold(v types.CreditNoteType) predicate.CreditNote

CreditNoteTypeEqualFold applies the EqualFold predicate on the "credit_note_type" field.

func CreditNoteTypeGT

func CreditNoteTypeGT(v types.CreditNoteType) predicate.CreditNote

CreditNoteTypeGT applies the GT predicate on the "credit_note_type" field.

func CreditNoteTypeGTE

func CreditNoteTypeGTE(v types.CreditNoteType) predicate.CreditNote

CreditNoteTypeGTE applies the GTE predicate on the "credit_note_type" field.

func CreditNoteTypeHasPrefix

func CreditNoteTypeHasPrefix(v types.CreditNoteType) predicate.CreditNote

CreditNoteTypeHasPrefix applies the HasPrefix predicate on the "credit_note_type" field.

func CreditNoteTypeHasSuffix

func CreditNoteTypeHasSuffix(v types.CreditNoteType) predicate.CreditNote

CreditNoteTypeHasSuffix applies the HasSuffix predicate on the "credit_note_type" field.

func CreditNoteTypeIn

func CreditNoteTypeIn(vs ...types.CreditNoteType) predicate.CreditNote

CreditNoteTypeIn applies the In predicate on the "credit_note_type" field.

func CreditNoteTypeLT

func CreditNoteTypeLT(v types.CreditNoteType) predicate.CreditNote

CreditNoteTypeLT applies the LT predicate on the "credit_note_type" field.

func CreditNoteTypeLTE

func CreditNoteTypeLTE(v types.CreditNoteType) predicate.CreditNote

CreditNoteTypeLTE applies the LTE predicate on the "credit_note_type" field.

func CreditNoteTypeNEQ

func CreditNoteTypeNEQ(v types.CreditNoteType) predicate.CreditNote

CreditNoteTypeNEQ applies the NEQ predicate on the "credit_note_type" field.

func CreditNoteTypeNotIn

func CreditNoteTypeNotIn(vs ...types.CreditNoteType) predicate.CreditNote

CreditNoteTypeNotIn applies the NotIn predicate on the "credit_note_type" field.

func Currency

func Currency(v string) predicate.CreditNote

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

func CurrencyContains

func CurrencyContains(v string) predicate.CreditNote

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

func CurrencyContainsFold

func CurrencyContainsFold(v string) predicate.CreditNote

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

func CurrencyEQ

func CurrencyEQ(v string) predicate.CreditNote

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

func CurrencyEqualFold

func CurrencyEqualFold(v string) predicate.CreditNote

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

func CurrencyGT

func CurrencyGT(v string) predicate.CreditNote

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

func CurrencyGTE

func CurrencyGTE(v string) predicate.CreditNote

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

func CurrencyHasPrefix

func CurrencyHasPrefix(v string) predicate.CreditNote

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

func CurrencyHasSuffix

func CurrencyHasSuffix(v string) predicate.CreditNote

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

func CurrencyIn

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

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

func CurrencyLT

func CurrencyLT(v string) predicate.CreditNote

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

func CurrencyLTE

func CurrencyLTE(v string) predicate.CreditNote

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

func CurrencyNEQ

func CurrencyNEQ(v string) predicate.CreditNote

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

func CurrencyNotIn

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

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

func CustomerID

func CustomerID(v string) predicate.CreditNote

CustomerID applies equality check predicate on the "customer_id" field. It's identical to CustomerIDEQ.

func CustomerIDContains

func CustomerIDContains(v string) predicate.CreditNote

CustomerIDContains applies the Contains predicate on the "customer_id" field.

func CustomerIDContainsFold

func CustomerIDContainsFold(v string) predicate.CreditNote

CustomerIDContainsFold applies the ContainsFold predicate on the "customer_id" field.

func CustomerIDEQ

func CustomerIDEQ(v string) predicate.CreditNote

CustomerIDEQ applies the EQ predicate on the "customer_id" field.

func CustomerIDEqualFold

func CustomerIDEqualFold(v string) predicate.CreditNote

CustomerIDEqualFold applies the EqualFold predicate on the "customer_id" field.

func CustomerIDGT

func CustomerIDGT(v string) predicate.CreditNote

CustomerIDGT applies the GT predicate on the "customer_id" field.

func CustomerIDGTE

func CustomerIDGTE(v string) predicate.CreditNote

CustomerIDGTE applies the GTE predicate on the "customer_id" field.

func CustomerIDHasPrefix

func CustomerIDHasPrefix(v string) predicate.CreditNote

CustomerIDHasPrefix applies the HasPrefix predicate on the "customer_id" field.

func CustomerIDHasSuffix

func CustomerIDHasSuffix(v string) predicate.CreditNote

CustomerIDHasSuffix applies the HasSuffix predicate on the "customer_id" field.

func CustomerIDIn

func CustomerIDIn(vs ...string) predicate.CreditNote

CustomerIDIn applies the In predicate on the "customer_id" field.

func CustomerIDLT

func CustomerIDLT(v string) predicate.CreditNote

CustomerIDLT applies the LT predicate on the "customer_id" field.

func CustomerIDLTE

func CustomerIDLTE(v string) predicate.CreditNote

CustomerIDLTE applies the LTE predicate on the "customer_id" field.

func CustomerIDNEQ

func CustomerIDNEQ(v string) predicate.CreditNote

CustomerIDNEQ applies the NEQ predicate on the "customer_id" field.

func CustomerIDNotIn

func CustomerIDNotIn(vs ...string) predicate.CreditNote

CustomerIDNotIn applies the NotIn predicate on the "customer_id" field.

func EnvironmentID

func EnvironmentID(v string) predicate.CreditNote

EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.

func EnvironmentIDContains

func EnvironmentIDContains(v string) predicate.CreditNote

EnvironmentIDContains applies the Contains predicate on the "environment_id" field.

func EnvironmentIDContainsFold

func EnvironmentIDContainsFold(v string) predicate.CreditNote

EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.

func EnvironmentIDEQ

func EnvironmentIDEQ(v string) predicate.CreditNote

EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.

func EnvironmentIDEqualFold

func EnvironmentIDEqualFold(v string) predicate.CreditNote

EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.

func EnvironmentIDGT

func EnvironmentIDGT(v string) predicate.CreditNote

EnvironmentIDGT applies the GT predicate on the "environment_id" field.

func EnvironmentIDGTE

func EnvironmentIDGTE(v string) predicate.CreditNote

EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.

func EnvironmentIDHasPrefix

func EnvironmentIDHasPrefix(v string) predicate.CreditNote

EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.

func EnvironmentIDHasSuffix

func EnvironmentIDHasSuffix(v string) predicate.CreditNote

EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.

func EnvironmentIDIn

func EnvironmentIDIn(vs ...string) predicate.CreditNote

EnvironmentIDIn applies the In predicate on the "environment_id" field.

func EnvironmentIDIsNil

func EnvironmentIDIsNil() predicate.CreditNote

EnvironmentIDIsNil applies the IsNil predicate on the "environment_id" field.

func EnvironmentIDLT

func EnvironmentIDLT(v string) predicate.CreditNote

EnvironmentIDLT applies the LT predicate on the "environment_id" field.

func EnvironmentIDLTE

func EnvironmentIDLTE(v string) predicate.CreditNote

EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.

func EnvironmentIDNEQ

func EnvironmentIDNEQ(v string) predicate.CreditNote

EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.

func EnvironmentIDNotIn

func EnvironmentIDNotIn(vs ...string) predicate.CreditNote

EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.

func EnvironmentIDNotNil

func EnvironmentIDNotNil() predicate.CreditNote

EnvironmentIDNotNil applies the NotNil predicate on the "environment_id" field.

func FinalizedAt

func FinalizedAt(v time.Time) predicate.CreditNote

FinalizedAt applies equality check predicate on the "finalized_at" field. It's identical to FinalizedAtEQ.

func FinalizedAtEQ

func FinalizedAtEQ(v time.Time) predicate.CreditNote

FinalizedAtEQ applies the EQ predicate on the "finalized_at" field.

func FinalizedAtGT

func FinalizedAtGT(v time.Time) predicate.CreditNote

FinalizedAtGT applies the GT predicate on the "finalized_at" field.

func FinalizedAtGTE

func FinalizedAtGTE(v time.Time) predicate.CreditNote

FinalizedAtGTE applies the GTE predicate on the "finalized_at" field.

func FinalizedAtIn

func FinalizedAtIn(vs ...time.Time) predicate.CreditNote

FinalizedAtIn applies the In predicate on the "finalized_at" field.

func FinalizedAtIsNil

func FinalizedAtIsNil() predicate.CreditNote

FinalizedAtIsNil applies the IsNil predicate on the "finalized_at" field.

func FinalizedAtLT

func FinalizedAtLT(v time.Time) predicate.CreditNote

FinalizedAtLT applies the LT predicate on the "finalized_at" field.

func FinalizedAtLTE

func FinalizedAtLTE(v time.Time) predicate.CreditNote

FinalizedAtLTE applies the LTE predicate on the "finalized_at" field.

func FinalizedAtNEQ

func FinalizedAtNEQ(v time.Time) predicate.CreditNote

FinalizedAtNEQ applies the NEQ predicate on the "finalized_at" field.

func FinalizedAtNotIn

func FinalizedAtNotIn(vs ...time.Time) predicate.CreditNote

FinalizedAtNotIn applies the NotIn predicate on the "finalized_at" field.

func FinalizedAtNotNil

func FinalizedAtNotNil() predicate.CreditNote

FinalizedAtNotNil applies the NotNil predicate on the "finalized_at" field.

func HasLineItems

func HasLineItems() predicate.CreditNote

HasLineItems applies the HasEdge predicate on the "line_items" edge.

func HasLineItemsWith

func HasLineItemsWith(preds ...predicate.CreditNoteLineItem) predicate.CreditNote

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

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.CreditNote

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.CreditNote

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.CreditNote

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.CreditNote

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.CreditNote

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.CreditNote

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.CreditNote

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.CreditNote

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.CreditNote

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IdempotencyKey

func IdempotencyKey(v string) predicate.CreditNote

IdempotencyKey applies equality check predicate on the "idempotency_key" field. It's identical to IdempotencyKeyEQ.

func IdempotencyKeyContains

func IdempotencyKeyContains(v string) predicate.CreditNote

IdempotencyKeyContains applies the Contains predicate on the "idempotency_key" field.

func IdempotencyKeyContainsFold

func IdempotencyKeyContainsFold(v string) predicate.CreditNote

IdempotencyKeyContainsFold applies the ContainsFold predicate on the "idempotency_key" field.

func IdempotencyKeyEQ

func IdempotencyKeyEQ(v string) predicate.CreditNote

IdempotencyKeyEQ applies the EQ predicate on the "idempotency_key" field.

func IdempotencyKeyEqualFold

func IdempotencyKeyEqualFold(v string) predicate.CreditNote

IdempotencyKeyEqualFold applies the EqualFold predicate on the "idempotency_key" field.

func IdempotencyKeyGT

func IdempotencyKeyGT(v string) predicate.CreditNote

IdempotencyKeyGT applies the GT predicate on the "idempotency_key" field.

func IdempotencyKeyGTE

func IdempotencyKeyGTE(v string) predicate.CreditNote

IdempotencyKeyGTE applies the GTE predicate on the "idempotency_key" field.

func IdempotencyKeyHasPrefix

func IdempotencyKeyHasPrefix(v string) predicate.CreditNote

IdempotencyKeyHasPrefix applies the HasPrefix predicate on the "idempotency_key" field.

func IdempotencyKeyHasSuffix

func IdempotencyKeyHasSuffix(v string) predicate.CreditNote

IdempotencyKeyHasSuffix applies the HasSuffix predicate on the "idempotency_key" field.

func IdempotencyKeyIn

func IdempotencyKeyIn(vs ...string) predicate.CreditNote

IdempotencyKeyIn applies the In predicate on the "idempotency_key" field.

func IdempotencyKeyIsNil

func IdempotencyKeyIsNil() predicate.CreditNote

IdempotencyKeyIsNil applies the IsNil predicate on the "idempotency_key" field.

func IdempotencyKeyLT

func IdempotencyKeyLT(v string) predicate.CreditNote

IdempotencyKeyLT applies the LT predicate on the "idempotency_key" field.

func IdempotencyKeyLTE

func IdempotencyKeyLTE(v string) predicate.CreditNote

IdempotencyKeyLTE applies the LTE predicate on the "idempotency_key" field.

func IdempotencyKeyNEQ

func IdempotencyKeyNEQ(v string) predicate.CreditNote

IdempotencyKeyNEQ applies the NEQ predicate on the "idempotency_key" field.

func IdempotencyKeyNotIn

func IdempotencyKeyNotIn(vs ...string) predicate.CreditNote

IdempotencyKeyNotIn applies the NotIn predicate on the "idempotency_key" field.

func IdempotencyKeyNotNil

func IdempotencyKeyNotNil() predicate.CreditNote

IdempotencyKeyNotNil applies the NotNil predicate on the "idempotency_key" field.

func InvoiceID

func InvoiceID(v string) predicate.CreditNote

InvoiceID applies equality check predicate on the "invoice_id" field. It's identical to InvoiceIDEQ.

func InvoiceIDContains

func InvoiceIDContains(v string) predicate.CreditNote

InvoiceIDContains applies the Contains predicate on the "invoice_id" field.

func InvoiceIDContainsFold

func InvoiceIDContainsFold(v string) predicate.CreditNote

InvoiceIDContainsFold applies the ContainsFold predicate on the "invoice_id" field.

func InvoiceIDEQ

func InvoiceIDEQ(v string) predicate.CreditNote

InvoiceIDEQ applies the EQ predicate on the "invoice_id" field.

func InvoiceIDEqualFold

func InvoiceIDEqualFold(v string) predicate.CreditNote

InvoiceIDEqualFold applies the EqualFold predicate on the "invoice_id" field.

func InvoiceIDGT

func InvoiceIDGT(v string) predicate.CreditNote

InvoiceIDGT applies the GT predicate on the "invoice_id" field.

func InvoiceIDGTE

func InvoiceIDGTE(v string) predicate.CreditNote

InvoiceIDGTE applies the GTE predicate on the "invoice_id" field.

func InvoiceIDHasPrefix

func InvoiceIDHasPrefix(v string) predicate.CreditNote

InvoiceIDHasPrefix applies the HasPrefix predicate on the "invoice_id" field.

func InvoiceIDHasSuffix

func InvoiceIDHasSuffix(v string) predicate.CreditNote

InvoiceIDHasSuffix applies the HasSuffix predicate on the "invoice_id" field.

func InvoiceIDIn

func InvoiceIDIn(vs ...string) predicate.CreditNote

InvoiceIDIn applies the In predicate on the "invoice_id" field.

func InvoiceIDLT

func InvoiceIDLT(v string) predicate.CreditNote

InvoiceIDLT applies the LT predicate on the "invoice_id" field.

func InvoiceIDLTE

func InvoiceIDLTE(v string) predicate.CreditNote

InvoiceIDLTE applies the LTE predicate on the "invoice_id" field.

func InvoiceIDNEQ

func InvoiceIDNEQ(v string) predicate.CreditNote

InvoiceIDNEQ applies the NEQ predicate on the "invoice_id" field.

func InvoiceIDNotIn

func InvoiceIDNotIn(vs ...string) predicate.CreditNote

InvoiceIDNotIn applies the NotIn predicate on the "invoice_id" field.

func Memo

func Memo(v string) predicate.CreditNote

Memo applies equality check predicate on the "memo" field. It's identical to MemoEQ.

func MemoContains

func MemoContains(v string) predicate.CreditNote

MemoContains applies the Contains predicate on the "memo" field.

func MemoContainsFold

func MemoContainsFold(v string) predicate.CreditNote

MemoContainsFold applies the ContainsFold predicate on the "memo" field.

func MemoEQ

func MemoEQ(v string) predicate.CreditNote

MemoEQ applies the EQ predicate on the "memo" field.

func MemoEqualFold

func MemoEqualFold(v string) predicate.CreditNote

MemoEqualFold applies the EqualFold predicate on the "memo" field.

func MemoGT

func MemoGT(v string) predicate.CreditNote

MemoGT applies the GT predicate on the "memo" field.

func MemoGTE

func MemoGTE(v string) predicate.CreditNote

MemoGTE applies the GTE predicate on the "memo" field.

func MemoHasPrefix

func MemoHasPrefix(v string) predicate.CreditNote

MemoHasPrefix applies the HasPrefix predicate on the "memo" field.

func MemoHasSuffix

func MemoHasSuffix(v string) predicate.CreditNote

MemoHasSuffix applies the HasSuffix predicate on the "memo" field.

func MemoIn

func MemoIn(vs ...string) predicate.CreditNote

MemoIn applies the In predicate on the "memo" field.

func MemoLT

func MemoLT(v string) predicate.CreditNote

MemoLT applies the LT predicate on the "memo" field.

func MemoLTE

func MemoLTE(v string) predicate.CreditNote

MemoLTE applies the LTE predicate on the "memo" field.

func MemoNEQ

func MemoNEQ(v string) predicate.CreditNote

MemoNEQ applies the NEQ predicate on the "memo" field.

func MemoNotIn

func MemoNotIn(vs ...string) predicate.CreditNote

MemoNotIn applies the NotIn predicate on the "memo" field.

func MetadataIsNil

func MetadataIsNil() predicate.CreditNote

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.CreditNote

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.CreditNote) predicate.CreditNote

Or groups predicates with the OR operator between them.

func Reason

Reason applies equality check predicate on the "reason" field. It's identical to ReasonEQ.

func ReasonContains

func ReasonContains(v types.CreditNoteReason) predicate.CreditNote

ReasonContains applies the Contains predicate on the "reason" field.

func ReasonContainsFold

func ReasonContainsFold(v types.CreditNoteReason) predicate.CreditNote

ReasonContainsFold applies the ContainsFold predicate on the "reason" field.

func ReasonEQ

ReasonEQ applies the EQ predicate on the "reason" field.

func ReasonEqualFold

func ReasonEqualFold(v types.CreditNoteReason) predicate.CreditNote

ReasonEqualFold applies the EqualFold predicate on the "reason" field.

func ReasonGT

ReasonGT applies the GT predicate on the "reason" field.

func ReasonGTE

ReasonGTE applies the GTE predicate on the "reason" field.

func ReasonHasPrefix

func ReasonHasPrefix(v types.CreditNoteReason) predicate.CreditNote

ReasonHasPrefix applies the HasPrefix predicate on the "reason" field.

func ReasonHasSuffix

func ReasonHasSuffix(v types.CreditNoteReason) predicate.CreditNote

ReasonHasSuffix applies the HasSuffix predicate on the "reason" field.

func ReasonIn

ReasonIn applies the In predicate on the "reason" field.

func ReasonLT

ReasonLT applies the LT predicate on the "reason" field.

func ReasonLTE

ReasonLTE applies the LTE predicate on the "reason" field.

func ReasonNEQ

ReasonNEQ applies the NEQ predicate on the "reason" field.

func ReasonNotIn

func ReasonNotIn(vs ...types.CreditNoteReason) predicate.CreditNote

ReasonNotIn applies the NotIn predicate on the "reason" field.

func RefundStatus

func RefundStatus(v types.PaymentStatus) predicate.CreditNote

RefundStatus applies equality check predicate on the "refund_status" field. It's identical to RefundStatusEQ.

func RefundStatusContains

func RefundStatusContains(v types.PaymentStatus) predicate.CreditNote

RefundStatusContains applies the Contains predicate on the "refund_status" field.

func RefundStatusContainsFold

func RefundStatusContainsFold(v types.PaymentStatus) predicate.CreditNote

RefundStatusContainsFold applies the ContainsFold predicate on the "refund_status" field.

func RefundStatusEQ

func RefundStatusEQ(v types.PaymentStatus) predicate.CreditNote

RefundStatusEQ applies the EQ predicate on the "refund_status" field.

func RefundStatusEqualFold

func RefundStatusEqualFold(v types.PaymentStatus) predicate.CreditNote

RefundStatusEqualFold applies the EqualFold predicate on the "refund_status" field.

func RefundStatusGT

func RefundStatusGT(v types.PaymentStatus) predicate.CreditNote

RefundStatusGT applies the GT predicate on the "refund_status" field.

func RefundStatusGTE

func RefundStatusGTE(v types.PaymentStatus) predicate.CreditNote

RefundStatusGTE applies the GTE predicate on the "refund_status" field.

func RefundStatusHasPrefix

func RefundStatusHasPrefix(v types.PaymentStatus) predicate.CreditNote

RefundStatusHasPrefix applies the HasPrefix predicate on the "refund_status" field.

func RefundStatusHasSuffix

func RefundStatusHasSuffix(v types.PaymentStatus) predicate.CreditNote

RefundStatusHasSuffix applies the HasSuffix predicate on the "refund_status" field.

func RefundStatusIn

func RefundStatusIn(vs ...types.PaymentStatus) predicate.CreditNote

RefundStatusIn applies the In predicate on the "refund_status" field.

func RefundStatusIsNil

func RefundStatusIsNil() predicate.CreditNote

RefundStatusIsNil applies the IsNil predicate on the "refund_status" field.

func RefundStatusLT

func RefundStatusLT(v types.PaymentStatus) predicate.CreditNote

RefundStatusLT applies the LT predicate on the "refund_status" field.

func RefundStatusLTE

func RefundStatusLTE(v types.PaymentStatus) predicate.CreditNote

RefundStatusLTE applies the LTE predicate on the "refund_status" field.

func RefundStatusNEQ

func RefundStatusNEQ(v types.PaymentStatus) predicate.CreditNote

RefundStatusNEQ applies the NEQ predicate on the "refund_status" field.

func RefundStatusNotIn

func RefundStatusNotIn(vs ...types.PaymentStatus) predicate.CreditNote

RefundStatusNotIn applies the NotIn predicate on the "refund_status" field.

func RefundStatusNotNil

func RefundStatusNotNil() predicate.CreditNote

RefundStatusNotNil applies the NotNil predicate on the "refund_status" field.

func Status

func Status(v string) predicate.CreditNote

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.CreditNote

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.CreditNote

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.CreditNote

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

func StatusEqualFold

func StatusEqualFold(v string) predicate.CreditNote

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.CreditNote

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.CreditNote

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.CreditNote

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.CreditNote

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.CreditNote

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

func StatusLT

func StatusLT(v string) predicate.CreditNote

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.CreditNote

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.CreditNote

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

func StatusNotIn

func StatusNotIn(vs ...string) predicate.CreditNote

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

func SubscriptionID

func SubscriptionID(v string) predicate.CreditNote

SubscriptionID applies equality check predicate on the "subscription_id" field. It's identical to SubscriptionIDEQ.

func SubscriptionIDContains

func SubscriptionIDContains(v string) predicate.CreditNote

SubscriptionIDContains applies the Contains predicate on the "subscription_id" field.

func SubscriptionIDContainsFold

func SubscriptionIDContainsFold(v string) predicate.CreditNote

SubscriptionIDContainsFold applies the ContainsFold predicate on the "subscription_id" field.

func SubscriptionIDEQ

func SubscriptionIDEQ(v string) predicate.CreditNote

SubscriptionIDEQ applies the EQ predicate on the "subscription_id" field.

func SubscriptionIDEqualFold

func SubscriptionIDEqualFold(v string) predicate.CreditNote

SubscriptionIDEqualFold applies the EqualFold predicate on the "subscription_id" field.

func SubscriptionIDGT

func SubscriptionIDGT(v string) predicate.CreditNote

SubscriptionIDGT applies the GT predicate on the "subscription_id" field.

func SubscriptionIDGTE

func SubscriptionIDGTE(v string) predicate.CreditNote

SubscriptionIDGTE applies the GTE predicate on the "subscription_id" field.

func SubscriptionIDHasPrefix

func SubscriptionIDHasPrefix(v string) predicate.CreditNote

SubscriptionIDHasPrefix applies the HasPrefix predicate on the "subscription_id" field.

func SubscriptionIDHasSuffix

func SubscriptionIDHasSuffix(v string) predicate.CreditNote

SubscriptionIDHasSuffix applies the HasSuffix predicate on the "subscription_id" field.

func SubscriptionIDIn

func SubscriptionIDIn(vs ...string) predicate.CreditNote

SubscriptionIDIn applies the In predicate on the "subscription_id" field.

func SubscriptionIDIsNil

func SubscriptionIDIsNil() predicate.CreditNote

SubscriptionIDIsNil applies the IsNil predicate on the "subscription_id" field.

func SubscriptionIDLT

func SubscriptionIDLT(v string) predicate.CreditNote

SubscriptionIDLT applies the LT predicate on the "subscription_id" field.

func SubscriptionIDLTE

func SubscriptionIDLTE(v string) predicate.CreditNote

SubscriptionIDLTE applies the LTE predicate on the "subscription_id" field.

func SubscriptionIDNEQ

func SubscriptionIDNEQ(v string) predicate.CreditNote

SubscriptionIDNEQ applies the NEQ predicate on the "subscription_id" field.

func SubscriptionIDNotIn

func SubscriptionIDNotIn(vs ...string) predicate.CreditNote

SubscriptionIDNotIn applies the NotIn predicate on the "subscription_id" field.

func SubscriptionIDNotNil

func SubscriptionIDNotNil() predicate.CreditNote

SubscriptionIDNotNil applies the NotNil predicate on the "subscription_id" field.

func TenantID

func TenantID(v string) predicate.CreditNote

TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.

func TenantIDContains

func TenantIDContains(v string) predicate.CreditNote

TenantIDContains applies the Contains predicate on the "tenant_id" field.

func TenantIDContainsFold

func TenantIDContainsFold(v string) predicate.CreditNote

TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.

func TenantIDEQ

func TenantIDEQ(v string) predicate.CreditNote

TenantIDEQ applies the EQ predicate on the "tenant_id" field.

func TenantIDEqualFold

func TenantIDEqualFold(v string) predicate.CreditNote

TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.

func TenantIDGT

func TenantIDGT(v string) predicate.CreditNote

TenantIDGT applies the GT predicate on the "tenant_id" field.

func TenantIDGTE

func TenantIDGTE(v string) predicate.CreditNote

TenantIDGTE applies the GTE predicate on the "tenant_id" field.

func TenantIDHasPrefix

func TenantIDHasPrefix(v string) predicate.CreditNote

TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.

func TenantIDHasSuffix

func TenantIDHasSuffix(v string) predicate.CreditNote

TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.

func TenantIDIn

func TenantIDIn(vs ...string) predicate.CreditNote

TenantIDIn applies the In predicate on the "tenant_id" field.

func TenantIDLT

func TenantIDLT(v string) predicate.CreditNote

TenantIDLT applies the LT predicate on the "tenant_id" field.

func TenantIDLTE

func TenantIDLTE(v string) predicate.CreditNote

TenantIDLTE applies the LTE predicate on the "tenant_id" field.

func TenantIDNEQ

func TenantIDNEQ(v string) predicate.CreditNote

TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.

func TenantIDNotIn

func TenantIDNotIn(vs ...string) predicate.CreditNote

TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.

func TotalAmount

func TotalAmount(v decimal.Decimal) predicate.CreditNote

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

func TotalAmountEQ

func TotalAmountEQ(v decimal.Decimal) predicate.CreditNote

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

func TotalAmountGT

func TotalAmountGT(v decimal.Decimal) predicate.CreditNote

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

func TotalAmountGTE

func TotalAmountGTE(v decimal.Decimal) predicate.CreditNote

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

func TotalAmountIn

func TotalAmountIn(vs ...decimal.Decimal) predicate.CreditNote

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

func TotalAmountLT

func TotalAmountLT(v decimal.Decimal) predicate.CreditNote

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

func TotalAmountLTE

func TotalAmountLTE(v decimal.Decimal) predicate.CreditNote

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

func TotalAmountNEQ

func TotalAmountNEQ(v decimal.Decimal) predicate.CreditNote

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

func TotalAmountNotIn

func TotalAmountNotIn(vs ...decimal.Decimal) predicate.CreditNote

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.CreditNote

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.CreditNote

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.CreditNote

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.CreditNote

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.CreditNote

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.CreditNote

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.CreditNote

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.CreditNote

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.CreditNote

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v string) predicate.CreditNote

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.CreditNote

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.CreditNote

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.CreditNote

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.CreditNote

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.CreditNote

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.CreditNote

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.CreditNote

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.CreditNote

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.CreditNote

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.CreditNote

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.CreditNote

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.CreditNote

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.CreditNote

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.CreditNote

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.CreditNote

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

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

func VoidedAt

func VoidedAt(v time.Time) predicate.CreditNote

VoidedAt applies equality check predicate on the "voided_at" field. It's identical to VoidedAtEQ.

func VoidedAtEQ

func VoidedAtEQ(v time.Time) predicate.CreditNote

VoidedAtEQ applies the EQ predicate on the "voided_at" field.

func VoidedAtGT

func VoidedAtGT(v time.Time) predicate.CreditNote

VoidedAtGT applies the GT predicate on the "voided_at" field.

func VoidedAtGTE

func VoidedAtGTE(v time.Time) predicate.CreditNote

VoidedAtGTE applies the GTE predicate on the "voided_at" field.

func VoidedAtIn

func VoidedAtIn(vs ...time.Time) predicate.CreditNote

VoidedAtIn applies the In predicate on the "voided_at" field.

func VoidedAtIsNil

func VoidedAtIsNil() predicate.CreditNote

VoidedAtIsNil applies the IsNil predicate on the "voided_at" field.

func VoidedAtLT

func VoidedAtLT(v time.Time) predicate.CreditNote

VoidedAtLT applies the LT predicate on the "voided_at" field.

func VoidedAtLTE

func VoidedAtLTE(v time.Time) predicate.CreditNote

VoidedAtLTE applies the LTE predicate on the "voided_at" field.

func VoidedAtNEQ

func VoidedAtNEQ(v time.Time) predicate.CreditNote

VoidedAtNEQ applies the NEQ predicate on the "voided_at" field.

func VoidedAtNotIn

func VoidedAtNotIn(vs ...time.Time) predicate.CreditNote

VoidedAtNotIn applies the NotIn predicate on the "voided_at" field.

func VoidedAtNotNil

func VoidedAtNotNil() predicate.CreditNote

VoidedAtNotNil applies the NotNil predicate on the "voided_at" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the CreditNote queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByCreditNoteNumber

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

ByCreditNoteNumber orders the results by the credit_note_number field.

func ByCreditNoteStatus

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

ByCreditNoteStatus orders the results by the credit_note_status field.

func ByCreditNoteType

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

ByCreditNoteType orders the results by the credit_note_type field.

func ByCurrency

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

ByCurrency orders the results by the currency field.

func ByCustomerID

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

ByCustomerID orders the results by the customer_id field.

func ByEnvironmentID

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

ByEnvironmentID orders the results by the environment_id field.

func ByFinalizedAt

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

ByFinalizedAt orders the results by the finalized_at field.

func ByID

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

ByID orders the results by the id field.

func ByIdempotencyKey

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

ByIdempotencyKey orders the results by the idempotency_key field.

func ByInvoiceID

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

ByInvoiceID orders the results by the invoice_id field.

func ByLineItems

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

ByLineItems orders the results by line_items terms.

func ByLineItemsCount

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

ByLineItemsCount orders the results by line_items count.

func ByMemo

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

ByMemo orders the results by the memo field.

func ByReason

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

ByReason orders the results by the reason field.

func ByRefundStatus

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

ByRefundStatus orders the results by the refund_status field.

func ByStatus

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

ByStatus orders the results by the status field.

func BySubscriptionID

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

BySubscriptionID orders the results by the subscription_id field.

func ByTenantID

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

ByTenantID orders the results by the tenant_id field.

func ByTotalAmount

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

ByTotalAmount orders the results by the total_amount field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

func ByVoidedAt

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

ByVoidedAt orders the results by the voided_at field.

Jump to

Keyboard shortcuts

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