chargeusagebasedcostbasis

package
v1.0.0-beta.232 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the chargeusagebasedcostbasis type in the database.
	Label = "charge_usage_based_cost_basis"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldMode holds the string denoting the mode field in the database.
	FieldMode = "mode"
	// FieldFiatCurrency holds the string denoting the fiat_currency field in the database.
	FieldFiatCurrency = "fiat_currency"
	// FieldCurrencyCostBasisID holds the string denoting the currency_cost_basis_id field in the database.
	FieldCurrencyCostBasisID = "currency_cost_basis_id"
	// FieldResolvedCostBasisID holds the string denoting the resolved_cost_basis_id field in the database.
	FieldResolvedCostBasisID = "resolved_cost_basis_id"
	// FieldCurrencyID holds the string denoting the currency_id field in the database.
	FieldCurrencyID = "currency_id"
	// FieldManualRate holds the string denoting the manual_rate field in the database.
	FieldManualRate = "manual_rate"
	// FieldResolvedCostBasis holds the string denoting the resolved_cost_basis field in the database.
	FieldResolvedCostBasis = "resolved_cost_basis"
	// FieldResolvedAt holds the string denoting the resolved_at field in the database.
	FieldResolvedAt = "resolved_at"
	// FieldNamespace holds the string denoting the namespace field in the database.
	FieldNamespace = "namespace"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// EdgeCurrencyCostBasis holds the string denoting the currency_cost_basis edge name in mutations.
	EdgeCurrencyCostBasis = "currency_cost_basis"
	// EdgeResolvedCurrencyCostBasis holds the string denoting the resolved_currency_cost_basis edge name in mutations.
	EdgeResolvedCurrencyCostBasis = "resolved_currency_cost_basis"
	// EdgeCustomCurrency holds the string denoting the custom_currency edge name in mutations.
	EdgeCustomCurrency = "custom_currency"
	// Table holds the table name of the chargeusagebasedcostbasis in the database.
	Table = "charge_usage_based_cost_bases"
	// CurrencyCostBasisTable is the table that holds the currency_cost_basis relation/edge.
	CurrencyCostBasisTable = "charge_usage_based_cost_bases"
	// CurrencyCostBasisInverseTable is the table name for the CurrencyCostBasis entity.
	// It exists in this package in order to avoid circular dependency with the "currencycostbasis" package.
	CurrencyCostBasisInverseTable = "currency_cost_bases"
	// CurrencyCostBasisColumn is the table column denoting the currency_cost_basis relation/edge.
	CurrencyCostBasisColumn = "currency_cost_basis_id"
	// ResolvedCurrencyCostBasisTable is the table that holds the resolved_currency_cost_basis relation/edge.
	ResolvedCurrencyCostBasisTable = "charge_usage_based_cost_bases"
	// ResolvedCurrencyCostBasisInverseTable is the table name for the CurrencyCostBasis entity.
	// It exists in this package in order to avoid circular dependency with the "currencycostbasis" package.
	ResolvedCurrencyCostBasisInverseTable = "currency_cost_bases"
	// ResolvedCurrencyCostBasisColumn is the table column denoting the resolved_currency_cost_basis relation/edge.
	ResolvedCurrencyCostBasisColumn = "resolved_cost_basis_id"
	// CustomCurrencyTable is the table that holds the custom_currency relation/edge.
	CustomCurrencyTable = "charge_usage_based_cost_bases"
	// CustomCurrencyInverseTable is the table name for the CustomCurrency entity.
	// It exists in this package in order to avoid circular dependency with the "customcurrency" package.
	CustomCurrencyInverseTable = "custom_currencies"
	// CustomCurrencyColumn is the table column denoting the custom_currency relation/edge.
	CustomCurrencyColumn = "currency_id"
)

Variables

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

Columns holds all SQL columns for chargeusagebasedcostbasis fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

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

func CreatedAtEQ

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

func CreatedAtGT

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

func CreatedAtGTE

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

func CreatedAtIn

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

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

func CreatedAtLT

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

func CreatedAtLTE

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

func CreatedAtNEQ

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

func CreatedAtNotIn

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

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

func CurrencyCostBasisID

func CurrencyCostBasisID(v string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisID applies equality check predicate on the "currency_cost_basis_id" field. It's identical to CurrencyCostBasisIDEQ.

func CurrencyCostBasisIDContains

func CurrencyCostBasisIDContains(v string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDContains applies the Contains predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDContainsFold

func CurrencyCostBasisIDContainsFold(v string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDContainsFold applies the ContainsFold predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDEQ

func CurrencyCostBasisIDEQ(v string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDEQ applies the EQ predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDEqualFold

func CurrencyCostBasisIDEqualFold(v string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDEqualFold applies the EqualFold predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDGT

func CurrencyCostBasisIDGT(v string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDGT applies the GT predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDGTE

func CurrencyCostBasisIDGTE(v string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDGTE applies the GTE predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDHasPrefix

func CurrencyCostBasisIDHasPrefix(v string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDHasPrefix applies the HasPrefix predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDHasSuffix

func CurrencyCostBasisIDHasSuffix(v string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDHasSuffix applies the HasSuffix predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDIn

func CurrencyCostBasisIDIn(vs ...string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDIn applies the In predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDIsNil

func CurrencyCostBasisIDIsNil() predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDIsNil applies the IsNil predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDLT

func CurrencyCostBasisIDLT(v string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDLT applies the LT predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDLTE

func CurrencyCostBasisIDLTE(v string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDLTE applies the LTE predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDNEQ

func CurrencyCostBasisIDNEQ(v string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDNEQ applies the NEQ predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDNotIn

func CurrencyCostBasisIDNotIn(vs ...string) predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDNotIn applies the NotIn predicate on the "currency_cost_basis_id" field.

func CurrencyCostBasisIDNotNil

func CurrencyCostBasisIDNotNil() predicate.ChargeUsageBasedCostBasis

CurrencyCostBasisIDNotNil applies the NotNil predicate on the "currency_cost_basis_id" field.

func CurrencyID

CurrencyID applies equality check predicate on the "currency_id" field. It's identical to CurrencyIDEQ.

func CurrencyIDContains

func CurrencyIDContains(v string) predicate.ChargeUsageBasedCostBasis

CurrencyIDContains applies the Contains predicate on the "currency_id" field.

func CurrencyIDContainsFold

func CurrencyIDContainsFold(v string) predicate.ChargeUsageBasedCostBasis

CurrencyIDContainsFold applies the ContainsFold predicate on the "currency_id" field.

func CurrencyIDEQ

CurrencyIDEQ applies the EQ predicate on the "currency_id" field.

func CurrencyIDEqualFold

func CurrencyIDEqualFold(v string) predicate.ChargeUsageBasedCostBasis

CurrencyIDEqualFold applies the EqualFold predicate on the "currency_id" field.

func CurrencyIDGT

CurrencyIDGT applies the GT predicate on the "currency_id" field.

func CurrencyIDGTE

CurrencyIDGTE applies the GTE predicate on the "currency_id" field.

func CurrencyIDHasPrefix

func CurrencyIDHasPrefix(v string) predicate.ChargeUsageBasedCostBasis

CurrencyIDHasPrefix applies the HasPrefix predicate on the "currency_id" field.

func CurrencyIDHasSuffix

func CurrencyIDHasSuffix(v string) predicate.ChargeUsageBasedCostBasis

CurrencyIDHasSuffix applies the HasSuffix predicate on the "currency_id" field.

func CurrencyIDIn

func CurrencyIDIn(vs ...string) predicate.ChargeUsageBasedCostBasis

CurrencyIDIn applies the In predicate on the "currency_id" field.

func CurrencyIDLT

CurrencyIDLT applies the LT predicate on the "currency_id" field.

func CurrencyIDLTE

CurrencyIDLTE applies the LTE predicate on the "currency_id" field.

func CurrencyIDNEQ

CurrencyIDNEQ applies the NEQ predicate on the "currency_id" field.

func CurrencyIDNotIn

func CurrencyIDNotIn(vs ...string) predicate.ChargeUsageBasedCostBasis

CurrencyIDNotIn applies the NotIn predicate on the "currency_id" field.

func DeletedAt

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

func DeletedAtEQ

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

func DeletedAtGT

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.ChargeUsageBasedCostBasis

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.ChargeUsageBasedCostBasis

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.ChargeUsageBasedCostBasis

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.ChargeUsageBasedCostBasis

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func FiatCurrency

FiatCurrency applies equality check predicate on the "fiat_currency" field. It's identical to FiatCurrencyEQ.

func FiatCurrencyContains

func FiatCurrencyContains(v currencyx.FiatCode) predicate.ChargeUsageBasedCostBasis

FiatCurrencyContains applies the Contains predicate on the "fiat_currency" field.

func FiatCurrencyContainsFold

func FiatCurrencyContainsFold(v currencyx.FiatCode) predicate.ChargeUsageBasedCostBasis

FiatCurrencyContainsFold applies the ContainsFold predicate on the "fiat_currency" field.

func FiatCurrencyEQ

FiatCurrencyEQ applies the EQ predicate on the "fiat_currency" field.

func FiatCurrencyEqualFold

func FiatCurrencyEqualFold(v currencyx.FiatCode) predicate.ChargeUsageBasedCostBasis

FiatCurrencyEqualFold applies the EqualFold predicate on the "fiat_currency" field.

func FiatCurrencyGT

FiatCurrencyGT applies the GT predicate on the "fiat_currency" field.

func FiatCurrencyGTE

FiatCurrencyGTE applies the GTE predicate on the "fiat_currency" field.

func FiatCurrencyHasPrefix

func FiatCurrencyHasPrefix(v currencyx.FiatCode) predicate.ChargeUsageBasedCostBasis

FiatCurrencyHasPrefix applies the HasPrefix predicate on the "fiat_currency" field.

func FiatCurrencyHasSuffix

func FiatCurrencyHasSuffix(v currencyx.FiatCode) predicate.ChargeUsageBasedCostBasis

FiatCurrencyHasSuffix applies the HasSuffix predicate on the "fiat_currency" field.

func FiatCurrencyIn

FiatCurrencyIn applies the In predicate on the "fiat_currency" field.

func FiatCurrencyLT

FiatCurrencyLT applies the LT predicate on the "fiat_currency" field.

func FiatCurrencyLTE

FiatCurrencyLTE applies the LTE predicate on the "fiat_currency" field.

func FiatCurrencyNEQ

FiatCurrencyNEQ applies the NEQ predicate on the "fiat_currency" field.

func FiatCurrencyNotIn

func FiatCurrencyNotIn(vs ...currencyx.FiatCode) predicate.ChargeUsageBasedCostBasis

FiatCurrencyNotIn applies the NotIn predicate on the "fiat_currency" field.

func HasCurrencyCostBasis

func HasCurrencyCostBasis() predicate.ChargeUsageBasedCostBasis

HasCurrencyCostBasis applies the HasEdge predicate on the "currency_cost_basis" edge.

func HasCurrencyCostBasisWith

func HasCurrencyCostBasisWith(preds ...predicate.CurrencyCostBasis) predicate.ChargeUsageBasedCostBasis

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

func HasCustomCurrency

func HasCustomCurrency() predicate.ChargeUsageBasedCostBasis

HasCustomCurrency applies the HasEdge predicate on the "custom_currency" edge.

func HasCustomCurrencyWith

func HasCustomCurrencyWith(preds ...predicate.CustomCurrency) predicate.ChargeUsageBasedCostBasis

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

func HasResolvedCurrencyCostBasis

func HasResolvedCurrencyCostBasis() predicate.ChargeUsageBasedCostBasis

HasResolvedCurrencyCostBasis applies the HasEdge predicate on the "resolved_currency_cost_basis" edge.

func HasResolvedCurrencyCostBasisWith

func HasResolvedCurrencyCostBasisWith(preds ...predicate.CurrencyCostBasis) predicate.ChargeUsageBasedCostBasis

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

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.ChargeUsageBasedCostBasis

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

IDNotIn applies the NotIn predicate on the ID field.

func ManualRate

ManualRate applies equality check predicate on the "manual_rate" field. It's identical to ManualRateEQ.

func ManualRateEQ

ManualRateEQ applies the EQ predicate on the "manual_rate" field.

func ManualRateGT

ManualRateGT applies the GT predicate on the "manual_rate" field.

func ManualRateGTE

ManualRateGTE applies the GTE predicate on the "manual_rate" field.

func ManualRateIn

ManualRateIn applies the In predicate on the "manual_rate" field.

func ManualRateIsNil

func ManualRateIsNil() predicate.ChargeUsageBasedCostBasis

ManualRateIsNil applies the IsNil predicate on the "manual_rate" field.

func ManualRateLT

ManualRateLT applies the LT predicate on the "manual_rate" field.

func ManualRateLTE

ManualRateLTE applies the LTE predicate on the "manual_rate" field.

func ManualRateNEQ

ManualRateNEQ applies the NEQ predicate on the "manual_rate" field.

func ManualRateNotIn

ManualRateNotIn applies the NotIn predicate on the "manual_rate" field.

func ManualRateNotNil

func ManualRateNotNil() predicate.ChargeUsageBasedCostBasis

ManualRateNotNil applies the NotNil predicate on the "manual_rate" field.

func ModeEQ

ModeEQ applies the EQ predicate on the "mode" field.

func ModeIn

ModeIn applies the In predicate on the "mode" field.

func ModeNEQ

ModeNEQ applies the NEQ predicate on the "mode" field.

func ModeNotIn

ModeNotIn applies the NotIn predicate on the "mode" field.

func ModeValidator

func ModeValidator(m costbasis.Mode) error

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

func Namespace

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

func NamespaceContains

func NamespaceContains(v string) predicate.ChargeUsageBasedCostBasis

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.ChargeUsageBasedCostBasis

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.ChargeUsageBasedCostBasis

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.ChargeUsageBasedCostBasis

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.ChargeUsageBasedCostBasis

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

func NamespaceIn(vs ...string) predicate.ChargeUsageBasedCostBasis

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

func NamespaceNotIn(vs ...string) predicate.ChargeUsageBasedCostBasis

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ResolvedAt

ResolvedAt applies equality check predicate on the "resolved_at" field. It's identical to ResolvedAtEQ.

func ResolvedAtEQ

ResolvedAtEQ applies the EQ predicate on the "resolved_at" field.

func ResolvedAtGT

ResolvedAtGT applies the GT predicate on the "resolved_at" field.

func ResolvedAtGTE

ResolvedAtGTE applies the GTE predicate on the "resolved_at" field.

func ResolvedAtIn

func ResolvedAtIn(vs ...time.Time) predicate.ChargeUsageBasedCostBasis

ResolvedAtIn applies the In predicate on the "resolved_at" field.

func ResolvedAtIsNil

func ResolvedAtIsNil() predicate.ChargeUsageBasedCostBasis

ResolvedAtIsNil applies the IsNil predicate on the "resolved_at" field.

func ResolvedAtLT

ResolvedAtLT applies the LT predicate on the "resolved_at" field.

func ResolvedAtLTE

ResolvedAtLTE applies the LTE predicate on the "resolved_at" field.

func ResolvedAtNEQ

ResolvedAtNEQ applies the NEQ predicate on the "resolved_at" field.

func ResolvedAtNotIn

func ResolvedAtNotIn(vs ...time.Time) predicate.ChargeUsageBasedCostBasis

ResolvedAtNotIn applies the NotIn predicate on the "resolved_at" field.

func ResolvedAtNotNil

func ResolvedAtNotNil() predicate.ChargeUsageBasedCostBasis

ResolvedAtNotNil applies the NotNil predicate on the "resolved_at" field.

func ResolvedCostBasis

ResolvedCostBasis applies equality check predicate on the "resolved_cost_basis" field. It's identical to ResolvedCostBasisEQ.

func ResolvedCostBasisEQ

ResolvedCostBasisEQ applies the EQ predicate on the "resolved_cost_basis" field.

func ResolvedCostBasisGT

ResolvedCostBasisGT applies the GT predicate on the "resolved_cost_basis" field.

func ResolvedCostBasisGTE

ResolvedCostBasisGTE applies the GTE predicate on the "resolved_cost_basis" field.

func ResolvedCostBasisID

func ResolvedCostBasisID(v string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisID applies equality check predicate on the "resolved_cost_basis_id" field. It's identical to ResolvedCostBasisIDEQ.

func ResolvedCostBasisIDContains

func ResolvedCostBasisIDContains(v string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDContains applies the Contains predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDContainsFold

func ResolvedCostBasisIDContainsFold(v string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDContainsFold applies the ContainsFold predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDEQ

func ResolvedCostBasisIDEQ(v string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDEQ applies the EQ predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDEqualFold

func ResolvedCostBasisIDEqualFold(v string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDEqualFold applies the EqualFold predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDGT

func ResolvedCostBasisIDGT(v string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDGT applies the GT predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDGTE

func ResolvedCostBasisIDGTE(v string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDGTE applies the GTE predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDHasPrefix

func ResolvedCostBasisIDHasPrefix(v string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDHasPrefix applies the HasPrefix predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDHasSuffix

func ResolvedCostBasisIDHasSuffix(v string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDHasSuffix applies the HasSuffix predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDIn

func ResolvedCostBasisIDIn(vs ...string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDIn applies the In predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDIsNil

func ResolvedCostBasisIDIsNil() predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDIsNil applies the IsNil predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDLT

func ResolvedCostBasisIDLT(v string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDLT applies the LT predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDLTE

func ResolvedCostBasisIDLTE(v string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDLTE applies the LTE predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDNEQ

func ResolvedCostBasisIDNEQ(v string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDNEQ applies the NEQ predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDNotIn

func ResolvedCostBasisIDNotIn(vs ...string) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDNotIn applies the NotIn predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIDNotNil

func ResolvedCostBasisIDNotNil() predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIDNotNil applies the NotNil predicate on the "resolved_cost_basis_id" field.

func ResolvedCostBasisIn

func ResolvedCostBasisIn(vs ...alpacadecimal.Decimal) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIn applies the In predicate on the "resolved_cost_basis" field.

func ResolvedCostBasisIsNil

func ResolvedCostBasisIsNil() predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisIsNil applies the IsNil predicate on the "resolved_cost_basis" field.

func ResolvedCostBasisLT

ResolvedCostBasisLT applies the LT predicate on the "resolved_cost_basis" field.

func ResolvedCostBasisLTE

ResolvedCostBasisLTE applies the LTE predicate on the "resolved_cost_basis" field.

func ResolvedCostBasisNEQ

ResolvedCostBasisNEQ applies the NEQ predicate on the "resolved_cost_basis" field.

func ResolvedCostBasisNotIn

func ResolvedCostBasisNotIn(vs ...alpacadecimal.Decimal) predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisNotIn applies the NotIn predicate on the "resolved_cost_basis" field.

func ResolvedCostBasisNotNil

func ResolvedCostBasisNotNil() predicate.ChargeUsageBasedCostBasis

ResolvedCostBasisNotNil applies the NotNil predicate on the "resolved_cost_basis" field.

func UpdatedAt

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

func UpdatedAtEQ

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

func UpdatedAtGT

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

func UpdatedAtGTE

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

func UpdatedAtIn

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

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

func UpdatedAtLT

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

func UpdatedAtLTE

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

func UpdatedAtNEQ

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

func UpdatedAtNotIn

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

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

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCurrencyCostBasisField

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

ByCurrencyCostBasisField orders the results by currency_cost_basis field.

func ByCurrencyCostBasisID

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

ByCurrencyCostBasisID orders the results by the currency_cost_basis_id field.

func ByCurrencyID

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

ByCurrencyID orders the results by the currency_id field.

func ByCustomCurrencyField

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

ByCustomCurrencyField orders the results by custom_currency field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByFiatCurrency

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

ByFiatCurrency orders the results by the fiat_currency field.

func ByID

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

ByID orders the results by the id field.

func ByManualRate

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

ByManualRate orders the results by the manual_rate field.

func ByMode

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

ByMode orders the results by the mode field.

func ByNamespace

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

ByNamespace orders the results by the namespace field.

func ByResolvedAt

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

ByResolvedAt orders the results by the resolved_at field.

func ByResolvedCostBasis

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

ByResolvedCostBasis orders the results by the resolved_cost_basis field.

func ByResolvedCostBasisID

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

ByResolvedCostBasisID orders the results by the resolved_cost_basis_id field.

func ByResolvedCurrencyCostBasisField

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

ByResolvedCurrencyCostBasisField orders the results by resolved_currency_cost_basis field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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