order

package
v0.0.0-...-05e3429 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the order type in the database.
	Label = "order"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldCustomerID holds the string denoting the customer_id field in the database.
	FieldCustomerID = "customer_id"
	// FieldNote holds the string denoting the note field in the database.
	FieldNote = "note"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldParentOrderID holds the string denoting the parent_order_id field in the database.
	FieldParentOrderID = "parent_order_id"
	// FieldPriority holds the string denoting the priority field in the database.
	FieldPriority = "priority"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldStatusCode holds the string denoting the status_code field in the database.
	FieldStatusCode = "status_code"
	// FieldStaffID holds the string denoting the staff_id field in the database.
	FieldStaffID = "staff_id"
	// FieldInternalNote holds the string denoting the internal_note field in the database.
	FieldInternalNote = "internal_note"
	// FieldIsInternal holds the string denoting the is_internal field in the database.
	FieldIsInternal = "is_internal"
	// FieldAddressID holds the string denoting the address_id field in the database.
	FieldAddressID = "address_id"
	// EdgeCustomer holds the string denoting the customer edge name in mutations.
	EdgeCustomer = "customer"
	// EdgeCreator holds the string denoting the creator edge name in mutations.
	EdgeCreator = "creator"
	// EdgeParentOrder holds the string denoting the parent_order edge name in mutations.
	EdgeParentOrder = "parent_order"
	// EdgeOrderStatus holds the string denoting the order_status edge name in mutations.
	EdgeOrderStatus = "order_status"
	// EdgeStaff holds the string denoting the staff edge name in mutations.
	EdgeStaff = "staff"
	// EdgeOrderAddress holds the string denoting the order_address edge name in mutations.
	EdgeOrderAddress = "order_address"
	// Table holds the table name of the order in the database.
	Table = "orders"
	// CustomerTable is the table that holds the customer relation/edge.
	CustomerTable = "orders"
	// CustomerInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	CustomerInverseTable = "persons"
	// CustomerColumn is the table column denoting the customer relation/edge.
	CustomerColumn = "customer_id"
	// CreatorTable is the table that holds the creator relation/edge.
	CreatorTable = "orders"
	// CreatorInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	CreatorInverseTable = "persons"
	// CreatorColumn is the table column denoting the creator relation/edge.
	CreatorColumn = "created_by"
	// ParentOrderTable is the table that holds the parent_order relation/edge.
	ParentOrderTable = "orders"
	// ParentOrderColumn is the table column denoting the parent_order relation/edge.
	ParentOrderColumn = "parent_order_id"
	// OrderStatusTable is the table that holds the order_status relation/edge.
	OrderStatusTable = "orders"
	// OrderStatusInverseTable is the table name for the OrderStatusCode entity.
	// It exists in this package in order to avoid circular dependency with the "orderstatuscode" package.
	OrderStatusInverseTable = "order_status_codes"
	// OrderStatusColumn is the table column denoting the order_status relation/edge.
	OrderStatusColumn = "status_code"
	// StaffTable is the table that holds the staff relation/edge.
	StaffTable = "orders"
	// StaffInverseTable is the table name for the Person entity.
	// It exists in this package in order to avoid circular dependency with the "person" package.
	StaffInverseTable = "persons"
	// StaffColumn is the table column denoting the staff relation/edge.
	StaffColumn = "staff_id"
	// OrderAddressTable is the table that holds the order_address relation/edge.
	OrderAddressTable = "orders"
	// OrderAddressInverseTable is the table name for the Address entity.
	// It exists in this package in order to avoid circular dependency with the "address" package.
	OrderAddressInverseTable = "addresses"
	// OrderAddressColumn is the table column denoting the order_address relation/edge.
	OrderAddressColumn = "address_id"
)
View Source
const DefaultType = TypeSale

TypeSale is the default value of the Type enum.

Variables

View Source
var (
	// 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
	// DefaultPriority holds the default value on creation for the "priority" field.
	DefaultPriority int
	// PriorityValidator is a validator for the "priority" field. It is called by the builders before save.
	PriorityValidator func(int) error
	// DefaultStatusCode holds the default value on creation for the "status_code" field.
	DefaultStatusCode int
	// DefaultIsInternal holds the default value on creation for the "is_internal" field.
	DefaultIsInternal bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for order fields.

Functions

func AddressID

func AddressID(v uuid.UUID) predicate.Order

AddressID applies equality check predicate on the "address_id" field. It's identical to AddressIDEQ.

func AddressIDEQ

func AddressIDEQ(v uuid.UUID) predicate.Order

AddressIDEQ applies the EQ predicate on the "address_id" field.

func AddressIDIn

func AddressIDIn(vs ...uuid.UUID) predicate.Order

AddressIDIn applies the In predicate on the "address_id" field.

func AddressIDNEQ

func AddressIDNEQ(v uuid.UUID) predicate.Order

AddressIDNEQ applies the NEQ predicate on the "address_id" field.

func AddressIDNotIn

func AddressIDNotIn(vs ...uuid.UUID) predicate.Order

AddressIDNotIn applies the NotIn predicate on the "address_id" field.

func And

func And(predicates ...predicate.Order) predicate.Order

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Order

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Order

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Order

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Order

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Order

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Order

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Order

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v uuid.UUID) predicate.Order

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

func CreatedByEQ

func CreatedByEQ(v uuid.UUID) predicate.Order

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

func CreatedByIn

func CreatedByIn(vs ...uuid.UUID) predicate.Order

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

func CreatedByNEQ

func CreatedByNEQ(v uuid.UUID) predicate.Order

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

func CreatedByNotIn

func CreatedByNotIn(vs ...uuid.UUID) predicate.Order

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

func CustomerID

func CustomerID(v uuid.UUID) predicate.Order

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

func CustomerIDEQ

func CustomerIDEQ(v uuid.UUID) predicate.Order

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

func CustomerIDIn

func CustomerIDIn(vs ...uuid.UUID) predicate.Order

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

func CustomerIDNEQ

func CustomerIDNEQ(v uuid.UUID) predicate.Order

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

func CustomerIDNotIn

func CustomerIDNotIn(vs ...uuid.UUID) predicate.Order

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

func HasCreator

func HasCreator() predicate.Order

HasCreator applies the HasEdge predicate on the "creator" edge.

func HasCreatorWith

func HasCreatorWith(preds ...predicate.Person) predicate.Order

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

func HasCustomer

func HasCustomer() predicate.Order

HasCustomer applies the HasEdge predicate on the "customer" edge.

func HasCustomerWith

func HasCustomerWith(preds ...predicate.Person) predicate.Order

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

func HasOrderAddress

func HasOrderAddress() predicate.Order

HasOrderAddress applies the HasEdge predicate on the "order_address" edge.

func HasOrderAddressWith

func HasOrderAddressWith(preds ...predicate.Address) predicate.Order

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

func HasOrderStatus

func HasOrderStatus() predicate.Order

HasOrderStatus applies the HasEdge predicate on the "order_status" edge.

func HasOrderStatusWith

func HasOrderStatusWith(preds ...predicate.OrderStatusCode) predicate.Order

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

func HasParentOrder

func HasParentOrder() predicate.Order

HasParentOrder applies the HasEdge predicate on the "parent_order" edge.

func HasParentOrderWith

func HasParentOrderWith(preds ...predicate.Order) predicate.Order

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

func HasStaff

func HasStaff() predicate.Order

HasStaff applies the HasEdge predicate on the "staff" edge.

func HasStaffWith

func HasStaffWith(preds ...predicate.Person) predicate.Order

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

func ID

func ID(id uuid.UUID) predicate.Order

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Order

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Order

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Order

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Order

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Order

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Order

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InternalNote

func InternalNote(v string) predicate.Order

InternalNote applies equality check predicate on the "internal_note" field. It's identical to InternalNoteEQ.

func InternalNoteContains

func InternalNoteContains(v string) predicate.Order

InternalNoteContains applies the Contains predicate on the "internal_note" field.

func InternalNoteContainsFold

func InternalNoteContainsFold(v string) predicate.Order

InternalNoteContainsFold applies the ContainsFold predicate on the "internal_note" field.

func InternalNoteEQ

func InternalNoteEQ(v string) predicate.Order

InternalNoteEQ applies the EQ predicate on the "internal_note" field.

func InternalNoteEqualFold

func InternalNoteEqualFold(v string) predicate.Order

InternalNoteEqualFold applies the EqualFold predicate on the "internal_note" field.

func InternalNoteGT

func InternalNoteGT(v string) predicate.Order

InternalNoteGT applies the GT predicate on the "internal_note" field.

func InternalNoteGTE

func InternalNoteGTE(v string) predicate.Order

InternalNoteGTE applies the GTE predicate on the "internal_note" field.

func InternalNoteHasPrefix

func InternalNoteHasPrefix(v string) predicate.Order

InternalNoteHasPrefix applies the HasPrefix predicate on the "internal_note" field.

func InternalNoteHasSuffix

func InternalNoteHasSuffix(v string) predicate.Order

InternalNoteHasSuffix applies the HasSuffix predicate on the "internal_note" field.

func InternalNoteIn

func InternalNoteIn(vs ...string) predicate.Order

InternalNoteIn applies the In predicate on the "internal_note" field.

func InternalNoteIsNil

func InternalNoteIsNil() predicate.Order

InternalNoteIsNil applies the IsNil predicate on the "internal_note" field.

func InternalNoteLT

func InternalNoteLT(v string) predicate.Order

InternalNoteLT applies the LT predicate on the "internal_note" field.

func InternalNoteLTE

func InternalNoteLTE(v string) predicate.Order

InternalNoteLTE applies the LTE predicate on the "internal_note" field.

func InternalNoteNEQ

func InternalNoteNEQ(v string) predicate.Order

InternalNoteNEQ applies the NEQ predicate on the "internal_note" field.

func InternalNoteNotIn

func InternalNoteNotIn(vs ...string) predicate.Order

InternalNoteNotIn applies the NotIn predicate on the "internal_note" field.

func InternalNoteNotNil

func InternalNoteNotNil() predicate.Order

InternalNoteNotNil applies the NotNil predicate on the "internal_note" field.

func IsInternal

func IsInternal(v bool) predicate.Order

IsInternal applies equality check predicate on the "is_internal" field. It's identical to IsInternalEQ.

func IsInternalEQ

func IsInternalEQ(v bool) predicate.Order

IsInternalEQ applies the EQ predicate on the "is_internal" field.

func IsInternalNEQ

func IsInternalNEQ(v bool) predicate.Order

IsInternalNEQ applies the NEQ predicate on the "is_internal" field.

func Not

Not applies the not operator on the given predicate.

func Note

func Note(v string) predicate.Order

Note applies equality check predicate on the "note" field. It's identical to NoteEQ.

func NoteContains

func NoteContains(v string) predicate.Order

NoteContains applies the Contains predicate on the "note" field.

func NoteContainsFold

func NoteContainsFold(v string) predicate.Order

NoteContainsFold applies the ContainsFold predicate on the "note" field.

func NoteEQ

func NoteEQ(v string) predicate.Order

NoteEQ applies the EQ predicate on the "note" field.

func NoteEqualFold

func NoteEqualFold(v string) predicate.Order

NoteEqualFold applies the EqualFold predicate on the "note" field.

func NoteGT

func NoteGT(v string) predicate.Order

NoteGT applies the GT predicate on the "note" field.

func NoteGTE

func NoteGTE(v string) predicate.Order

NoteGTE applies the GTE predicate on the "note" field.

func NoteHasPrefix

func NoteHasPrefix(v string) predicate.Order

NoteHasPrefix applies the HasPrefix predicate on the "note" field.

func NoteHasSuffix

func NoteHasSuffix(v string) predicate.Order

NoteHasSuffix applies the HasSuffix predicate on the "note" field.

func NoteIn

func NoteIn(vs ...string) predicate.Order

NoteIn applies the In predicate on the "note" field.

func NoteIsNil

func NoteIsNil() predicate.Order

NoteIsNil applies the IsNil predicate on the "note" field.

func NoteLT

func NoteLT(v string) predicate.Order

NoteLT applies the LT predicate on the "note" field.

func NoteLTE

func NoteLTE(v string) predicate.Order

NoteLTE applies the LTE predicate on the "note" field.

func NoteNEQ

func NoteNEQ(v string) predicate.Order

NoteNEQ applies the NEQ predicate on the "note" field.

func NoteNotIn

func NoteNotIn(vs ...string) predicate.Order

NoteNotIn applies the NotIn predicate on the "note" field.

func NoteNotNil

func NoteNotNil() predicate.Order

NoteNotNil applies the NotNil predicate on the "note" field.

func Or

func Or(predicates ...predicate.Order) predicate.Order

Or groups predicates with the OR operator between them.

func ParentOrderID

func ParentOrderID(v uuid.UUID) predicate.Order

ParentOrderID applies equality check predicate on the "parent_order_id" field. It's identical to ParentOrderIDEQ.

func ParentOrderIDEQ

func ParentOrderIDEQ(v uuid.UUID) predicate.Order

ParentOrderIDEQ applies the EQ predicate on the "parent_order_id" field.

func ParentOrderIDIn

func ParentOrderIDIn(vs ...uuid.UUID) predicate.Order

ParentOrderIDIn applies the In predicate on the "parent_order_id" field.

func ParentOrderIDIsNil

func ParentOrderIDIsNil() predicate.Order

ParentOrderIDIsNil applies the IsNil predicate on the "parent_order_id" field.

func ParentOrderIDNEQ

func ParentOrderIDNEQ(v uuid.UUID) predicate.Order

ParentOrderIDNEQ applies the NEQ predicate on the "parent_order_id" field.

func ParentOrderIDNotIn

func ParentOrderIDNotIn(vs ...uuid.UUID) predicate.Order

ParentOrderIDNotIn applies the NotIn predicate on the "parent_order_id" field.

func ParentOrderIDNotNil

func ParentOrderIDNotNil() predicate.Order

ParentOrderIDNotNil applies the NotNil predicate on the "parent_order_id" field.

func Priority

func Priority(v int) predicate.Order

Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.

func PriorityEQ

func PriorityEQ(v int) predicate.Order

PriorityEQ applies the EQ predicate on the "priority" field.

func PriorityGT

func PriorityGT(v int) predicate.Order

PriorityGT applies the GT predicate on the "priority" field.

func PriorityGTE

func PriorityGTE(v int) predicate.Order

PriorityGTE applies the GTE predicate on the "priority" field.

func PriorityIn

func PriorityIn(vs ...int) predicate.Order

PriorityIn applies the In predicate on the "priority" field.

func PriorityLT

func PriorityLT(v int) predicate.Order

PriorityLT applies the LT predicate on the "priority" field.

func PriorityLTE

func PriorityLTE(v int) predicate.Order

PriorityLTE applies the LTE predicate on the "priority" field.

func PriorityNEQ

func PriorityNEQ(v int) predicate.Order

PriorityNEQ applies the NEQ predicate on the "priority" field.

func PriorityNotIn

func PriorityNotIn(vs ...int) predicate.Order

PriorityNotIn applies the NotIn predicate on the "priority" field.

func StaffID

func StaffID(v uuid.UUID) predicate.Order

StaffID applies equality check predicate on the "staff_id" field. It's identical to StaffIDEQ.

func StaffIDEQ

func StaffIDEQ(v uuid.UUID) predicate.Order

StaffIDEQ applies the EQ predicate on the "staff_id" field.

func StaffIDIn

func StaffIDIn(vs ...uuid.UUID) predicate.Order

StaffIDIn applies the In predicate on the "staff_id" field.

func StaffIDIsNil

func StaffIDIsNil() predicate.Order

StaffIDIsNil applies the IsNil predicate on the "staff_id" field.

func StaffIDNEQ

func StaffIDNEQ(v uuid.UUID) predicate.Order

StaffIDNEQ applies the NEQ predicate on the "staff_id" field.

func StaffIDNotIn

func StaffIDNotIn(vs ...uuid.UUID) predicate.Order

StaffIDNotIn applies the NotIn predicate on the "staff_id" field.

func StaffIDNotNil

func StaffIDNotNil() predicate.Order

StaffIDNotNil applies the NotNil predicate on the "staff_id" field.

func StatusCode

func StatusCode(v int) predicate.Order

StatusCode applies equality check predicate on the "status_code" field. It's identical to StatusCodeEQ.

func StatusCodeEQ

func StatusCodeEQ(v int) predicate.Order

StatusCodeEQ applies the EQ predicate on the "status_code" field.

func StatusCodeIn

func StatusCodeIn(vs ...int) predicate.Order

StatusCodeIn applies the In predicate on the "status_code" field.

func StatusCodeNEQ

func StatusCodeNEQ(v int) predicate.Order

StatusCodeNEQ applies the NEQ predicate on the "status_code" field.

func StatusCodeNotIn

func StatusCodeNotIn(vs ...int) predicate.Order

StatusCodeNotIn applies the NotIn predicate on the "status_code" field.

func TypeEQ

func TypeEQ(v Type) predicate.Order

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

func TypeIn

func TypeIn(vs ...Type) predicate.Order

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

func TypeNEQ

func TypeNEQ(v Type) predicate.Order

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

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Order

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Order

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Order

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Order

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Order

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Order

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Order

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Order

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

func UpdatedAtNotIn

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

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 Order queries.

func ByAddressID

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

ByAddressID orders the results by the address_id field.

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 ByCreatorField

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

ByCreatorField orders the results by creator field.

func ByCustomerField

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

ByCustomerField orders the results by customer field.

func ByCustomerID

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

ByCustomerID orders the results by the customer_id field.

func ByID

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

ByID orders the results by the id field.

func ByInternalNote

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

ByInternalNote orders the results by the internal_note field.

func ByIsInternal

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

ByIsInternal orders the results by the is_internal field.

func ByNote

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

ByNote orders the results by the note field.

func ByOrderAddressField

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

ByOrderAddressField orders the results by order_address field.

func ByOrderStatusField

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

ByOrderStatusField orders the results by order_status field.

func ByParentOrderField

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

ByParentOrderField orders the results by parent_order field.

func ByParentOrderID

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

ByParentOrderID orders the results by the parent_order_id field.

func ByPriority

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

ByPriority orders the results by the priority field.

func ByStaffField

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

ByStaffField orders the results by staff field.

func ByStaffID

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

ByStaffID orders the results by the staff_id field.

func ByStatusCode

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

ByStatusCode orders the results by the status_code 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.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeSale     Type = "SALE"
	TypeReturn   Type = "RETURN"
	TypeExchange Type = "EXCHANGE"
	TypeTransfer Type = "TRANSFER"
	TypeOther    Type = "OTHER"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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