billingcontrol

package
v0.0.0-...-4d78421 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the billingcontrol type in the database.
	Label = "billing_control"
	// 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"
	// FieldRemoveBillingHistory holds the string denoting the remove_billing_history field in the database.
	FieldRemoveBillingHistory = "remove_billing_history"
	// FieldAutoBillShipment holds the string denoting the auto_bill_shipment field in the database.
	FieldAutoBillShipment = "auto_bill_shipment"
	// FieldAutoMarkReadyToBill holds the string denoting the auto_mark_ready_to_bill field in the database.
	FieldAutoMarkReadyToBill = "auto_mark_ready_to_bill"
	// FieldValidateCustomerRates holds the string denoting the validate_customer_rates field in the database.
	FieldValidateCustomerRates = "validate_customer_rates"
	// FieldAutoBillCriteria holds the string denoting the auto_bill_criteria field in the database.
	FieldAutoBillCriteria = "auto_bill_criteria"
	// FieldShipmentTransferCriteria holds the string denoting the shipment_transfer_criteria field in the database.
	FieldShipmentTransferCriteria = "shipment_transfer_criteria"
	// FieldEnforceCustomerBilling holds the string denoting the enforce_customer_billing field in the database.
	FieldEnforceCustomerBilling = "enforce_customer_billing"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeBusinessUnit holds the string denoting the business_unit edge name in mutations.
	EdgeBusinessUnit = "business_unit"
	// Table holds the table name of the billingcontrol in the database.
	Table = "billing_controls"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "billing_controls"
	// OrganizationInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OrganizationInverseTable = "organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_id"
	// BusinessUnitTable is the table that holds the business_unit relation/edge.
	BusinessUnitTable = "billing_controls"
	// BusinessUnitInverseTable is the table name for the BusinessUnit entity.
	// It exists in this package in order to avoid circular dependency with the "businessunit" package.
	BusinessUnitInverseTable = "business_units"
	// BusinessUnitColumn is the table column denoting the business_unit relation/edge.
	BusinessUnitColumn = "business_unit_id"
)
View Source
const DefaultAutoBillCriteria = AutoBillCriteriaMarkedReadyToBill

AutoBillCriteriaMarkedReadyToBill is the default value of the AutoBillCriteria enum.

View Source
const DefaultShipmentTransferCriteria = ShipmentTransferCriteriaReadyToBill

ShipmentTransferCriteriaReadyToBill is the default value of the ShipmentTransferCriteria 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
	// DefaultRemoveBillingHistory holds the default value on creation for the "remove_billing_history" field.
	DefaultRemoveBillingHistory bool
	// DefaultAutoBillShipment holds the default value on creation for the "auto_bill_shipment" field.
	DefaultAutoBillShipment bool
	// DefaultAutoMarkReadyToBill holds the default value on creation for the "auto_mark_ready_to_bill" field.
	DefaultAutoMarkReadyToBill bool
	// DefaultValidateCustomerRates holds the default value on creation for the "validate_customer_rates" field.
	DefaultValidateCustomerRates bool
	// DefaultEnforceCustomerBilling holds the default value on creation for the "enforce_customer_billing" field.
	DefaultEnforceCustomerBilling bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for billingcontrol fields.

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

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

Functions

func And

And groups predicates with the AND operator between them.

func AutoBillCriteriaEQ

func AutoBillCriteriaEQ(v AutoBillCriteria) predicate.BillingControl

AutoBillCriteriaEQ applies the EQ predicate on the "auto_bill_criteria" field.

func AutoBillCriteriaIn

func AutoBillCriteriaIn(vs ...AutoBillCriteria) predicate.BillingControl

AutoBillCriteriaIn applies the In predicate on the "auto_bill_criteria" field.

func AutoBillCriteriaNEQ

func AutoBillCriteriaNEQ(v AutoBillCriteria) predicate.BillingControl

AutoBillCriteriaNEQ applies the NEQ predicate on the "auto_bill_criteria" field.

func AutoBillCriteriaNotIn

func AutoBillCriteriaNotIn(vs ...AutoBillCriteria) predicate.BillingControl

AutoBillCriteriaNotIn applies the NotIn predicate on the "auto_bill_criteria" field.

func AutoBillCriteriaValidator

func AutoBillCriteriaValidator(abc AutoBillCriteria) error

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

func AutoBillShipment

func AutoBillShipment(v bool) predicate.BillingControl

AutoBillShipment applies equality check predicate on the "auto_bill_shipment" field. It's identical to AutoBillShipmentEQ.

func AutoBillShipmentEQ

func AutoBillShipmentEQ(v bool) predicate.BillingControl

AutoBillShipmentEQ applies the EQ predicate on the "auto_bill_shipment" field.

func AutoBillShipmentNEQ

func AutoBillShipmentNEQ(v bool) predicate.BillingControl

AutoBillShipmentNEQ applies the NEQ predicate on the "auto_bill_shipment" field.

func AutoMarkReadyToBill

func AutoMarkReadyToBill(v bool) predicate.BillingControl

AutoMarkReadyToBill applies equality check predicate on the "auto_mark_ready_to_bill" field. It's identical to AutoMarkReadyToBillEQ.

func AutoMarkReadyToBillEQ

func AutoMarkReadyToBillEQ(v bool) predicate.BillingControl

AutoMarkReadyToBillEQ applies the EQ predicate on the "auto_mark_ready_to_bill" field.

func AutoMarkReadyToBillNEQ

func AutoMarkReadyToBillNEQ(v bool) predicate.BillingControl

AutoMarkReadyToBillNEQ applies the NEQ predicate on the "auto_mark_ready_to_bill" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.BillingControl

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.BillingControl

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.BillingControl

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.BillingControl

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.BillingControl

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.BillingControl

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.BillingControl

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

func CreatedAtNotIn

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

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

func EnforceCustomerBilling

func EnforceCustomerBilling(v bool) predicate.BillingControl

EnforceCustomerBilling applies equality check predicate on the "enforce_customer_billing" field. It's identical to EnforceCustomerBillingEQ.

func EnforceCustomerBillingEQ

func EnforceCustomerBillingEQ(v bool) predicate.BillingControl

EnforceCustomerBillingEQ applies the EQ predicate on the "enforce_customer_billing" field.

func EnforceCustomerBillingNEQ

func EnforceCustomerBillingNEQ(v bool) predicate.BillingControl

EnforceCustomerBillingNEQ applies the NEQ predicate on the "enforce_customer_billing" field.

func HasBusinessUnit

func HasBusinessUnit() predicate.BillingControl

HasBusinessUnit applies the HasEdge predicate on the "business_unit" edge.

func HasBusinessUnitWith

func HasBusinessUnitWith(preds ...predicate.BusinessUnit) predicate.BillingControl

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

func HasOrganization

func HasOrganization() predicate.BillingControl

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.BillingControl

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func RemoveBillingHistory

func RemoveBillingHistory(v bool) predicate.BillingControl

RemoveBillingHistory applies equality check predicate on the "remove_billing_history" field. It's identical to RemoveBillingHistoryEQ.

func RemoveBillingHistoryEQ

func RemoveBillingHistoryEQ(v bool) predicate.BillingControl

RemoveBillingHistoryEQ applies the EQ predicate on the "remove_billing_history" field.

func RemoveBillingHistoryNEQ

func RemoveBillingHistoryNEQ(v bool) predicate.BillingControl

RemoveBillingHistoryNEQ applies the NEQ predicate on the "remove_billing_history" field.

func ShipmentTransferCriteriaEQ

func ShipmentTransferCriteriaEQ(v ShipmentTransferCriteria) predicate.BillingControl

ShipmentTransferCriteriaEQ applies the EQ predicate on the "shipment_transfer_criteria" field.

func ShipmentTransferCriteriaIn

func ShipmentTransferCriteriaIn(vs ...ShipmentTransferCriteria) predicate.BillingControl

ShipmentTransferCriteriaIn applies the In predicate on the "shipment_transfer_criteria" field.

func ShipmentTransferCriteriaNEQ

func ShipmentTransferCriteriaNEQ(v ShipmentTransferCriteria) predicate.BillingControl

ShipmentTransferCriteriaNEQ applies the NEQ predicate on the "shipment_transfer_criteria" field.

func ShipmentTransferCriteriaNotIn

func ShipmentTransferCriteriaNotIn(vs ...ShipmentTransferCriteria) predicate.BillingControl

ShipmentTransferCriteriaNotIn applies the NotIn predicate on the "shipment_transfer_criteria" field.

func ShipmentTransferCriteriaValidator

func ShipmentTransferCriteriaValidator(stc ShipmentTransferCriteria) error

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.BillingControl

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.BillingControl

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.BillingControl

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.BillingControl

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.BillingControl

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.BillingControl

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.BillingControl

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

func UpdatedAtNotIn

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

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).

func ValidateCustomerRates

func ValidateCustomerRates(v bool) predicate.BillingControl

ValidateCustomerRates applies equality check predicate on the "validate_customer_rates" field. It's identical to ValidateCustomerRatesEQ.

func ValidateCustomerRatesEQ

func ValidateCustomerRatesEQ(v bool) predicate.BillingControl

ValidateCustomerRatesEQ applies the EQ predicate on the "validate_customer_rates" field.

func ValidateCustomerRatesNEQ

func ValidateCustomerRatesNEQ(v bool) predicate.BillingControl

ValidateCustomerRatesNEQ applies the NEQ predicate on the "validate_customer_rates" field.

Types

type AutoBillCriteria

type AutoBillCriteria string

AutoBillCriteria defines the type for the "auto_bill_criteria" enum field.

const (
	AutoBillCriteriaDelivered            AutoBillCriteria = "Delivered"
	AutoBillCriteriaTransferredToBilling AutoBillCriteria = "TransferredToBilling"
	AutoBillCriteriaMarkedReadyToBill    AutoBillCriteria = "MarkedReadyToBill"
)

AutoBillCriteria values.

func (AutoBillCriteria) String

func (abc AutoBillCriteria) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the BillingControl queries.

func ByAutoBillCriteria

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

ByAutoBillCriteria orders the results by the auto_bill_criteria field.

func ByAutoBillShipment

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

ByAutoBillShipment orders the results by the auto_bill_shipment field.

func ByAutoMarkReadyToBill

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

ByAutoMarkReadyToBill orders the results by the auto_mark_ready_to_bill field.

func ByBusinessUnitField

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

ByBusinessUnitField orders the results by business_unit field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEnforceCustomerBilling

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

ByEnforceCustomerBilling orders the results by the enforce_customer_billing field.

func ByID

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

ByID orders the results by the id field.

func ByOrganizationField

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

ByOrganizationField orders the results by organization field.

func ByRemoveBillingHistory

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

ByRemoveBillingHistory orders the results by the remove_billing_history field.

func ByShipmentTransferCriteria

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

ByShipmentTransferCriteria orders the results by the shipment_transfer_criteria field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByValidateCustomerRates

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

ByValidateCustomerRates orders the results by the validate_customer_rates field.

type ShipmentTransferCriteria

type ShipmentTransferCriteria string

ShipmentTransferCriteria defines the type for the "shipment_transfer_criteria" enum field.

const (
	ShipmentTransferCriteriaReadyAndCompleted ShipmentTransferCriteria = "ReadyAndCompleted"
	ShipmentTransferCriteriaCompleted         ShipmentTransferCriteria = "Completed"
	ShipmentTransferCriteriaReadyToBill       ShipmentTransferCriteria = "ReadyToBill"
)

ShipmentTransferCriteria values.

func (ShipmentTransferCriteria) String

func (stc ShipmentTransferCriteria) String() string

Jump to

Keyboard shortcuts

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