providerordertoken

package
v0.0.0-...-6269356 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the providerordertoken type in the database.
	Label = "provider_order_token"
	// 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"
	// FieldFixedConversionRate holds the string denoting the fixed_conversion_rate field in the database.
	FieldFixedConversionRate = "fixed_conversion_rate"
	// FieldFloatingConversionRate holds the string denoting the floating_conversion_rate field in the database.
	FieldFloatingConversionRate = "floating_conversion_rate"
	// FieldConversionRateType holds the string denoting the conversion_rate_type field in the database.
	FieldConversionRateType = "conversion_rate_type"
	// FieldMaxOrderAmount holds the string denoting the max_order_amount field in the database.
	FieldMaxOrderAmount = "max_order_amount"
	// FieldMinOrderAmount holds the string denoting the min_order_amount field in the database.
	FieldMinOrderAmount = "min_order_amount"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// FieldNetwork holds the string denoting the network field in the database.
	FieldNetwork = "network"
	// EdgeProvider holds the string denoting the provider edge name in mutations.
	EdgeProvider = "provider"
	// EdgeToken holds the string denoting the token edge name in mutations.
	EdgeToken = "token"
	// EdgeCurrency holds the string denoting the currency edge name in mutations.
	EdgeCurrency = "currency"
	// Table holds the table name of the providerordertoken in the database.
	Table = "provider_order_tokens"
	// ProviderTable is the table that holds the provider relation/edge.
	ProviderTable = "provider_order_tokens"
	// ProviderInverseTable is the table name for the ProviderProfile entity.
	// It exists in this package in order to avoid circular dependency with the "providerprofile" package.
	ProviderInverseTable = "provider_profiles"
	// ProviderColumn is the table column denoting the provider relation/edge.
	ProviderColumn = "provider_profile_order_tokens"
	// TokenTable is the table that holds the token relation/edge.
	TokenTable = "provider_order_tokens"
	// TokenInverseTable is the table name for the Token entity.
	// It exists in this package in order to avoid circular dependency with the "token" package.
	TokenInverseTable = "tokens"
	// TokenColumn is the table column denoting the token relation/edge.
	TokenColumn = "token_provider_order_tokens"
	// CurrencyTable is the table that holds the currency relation/edge.
	CurrencyTable = "provider_order_tokens"
	// CurrencyInverseTable is the table name for the FiatCurrency entity.
	// It exists in this package in order to avoid circular dependency with the "fiatcurrency" package.
	CurrencyInverseTable = "fiat_currencies"
	// CurrencyColumn is the table column denoting the currency relation/edge.
	CurrencyColumn = "fiat_currency_provider_order_tokens"
)

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
)

Columns holds all SQL columns for providerordertoken fields.

View Source
var ForeignKeys = []string{
	"fiat_currency_provider_order_tokens",
	"provider_profile_order_tokens",
	"token_provider_order_tokens",
}

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

Functions

func Address

Address applies equality check predicate on the "address" field. It's identical to AddressEQ.

func AddressContains

func AddressContains(v string) predicate.ProviderOrderToken

AddressContains applies the Contains predicate on the "address" field.

func AddressContainsFold

func AddressContainsFold(v string) predicate.ProviderOrderToken

AddressContainsFold applies the ContainsFold predicate on the "address" field.

func AddressEQ

func AddressEQ(v string) predicate.ProviderOrderToken

AddressEQ applies the EQ predicate on the "address" field.

func AddressEqualFold

func AddressEqualFold(v string) predicate.ProviderOrderToken

AddressEqualFold applies the EqualFold predicate on the "address" field.

func AddressGT

func AddressGT(v string) predicate.ProviderOrderToken

AddressGT applies the GT predicate on the "address" field.

func AddressGTE

func AddressGTE(v string) predicate.ProviderOrderToken

AddressGTE applies the GTE predicate on the "address" field.

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.ProviderOrderToken

AddressHasPrefix applies the HasPrefix predicate on the "address" field.

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.ProviderOrderToken

AddressHasSuffix applies the HasSuffix predicate on the "address" field.

func AddressIn

func AddressIn(vs ...string) predicate.ProviderOrderToken

AddressIn applies the In predicate on the "address" field.

func AddressIsNil

func AddressIsNil() predicate.ProviderOrderToken

AddressIsNil applies the IsNil predicate on the "address" field.

func AddressLT

func AddressLT(v string) predicate.ProviderOrderToken

AddressLT applies the LT predicate on the "address" field.

func AddressLTE

func AddressLTE(v string) predicate.ProviderOrderToken

AddressLTE applies the LTE predicate on the "address" field.

func AddressNEQ

func AddressNEQ(v string) predicate.ProviderOrderToken

AddressNEQ applies the NEQ predicate on the "address" field.

func AddressNotIn

func AddressNotIn(vs ...string) predicate.ProviderOrderToken

AddressNotIn applies the NotIn predicate on the "address" field.

func AddressNotNil

func AddressNotNil() predicate.ProviderOrderToken

AddressNotNil applies the NotNil predicate on the "address" field.

func And

And groups predicates with the AND operator between them.

func ConversionRateTypeEQ

func ConversionRateTypeEQ(v ConversionRateType) predicate.ProviderOrderToken

ConversionRateTypeEQ applies the EQ predicate on the "conversion_rate_type" field.

func ConversionRateTypeIn

func ConversionRateTypeIn(vs ...ConversionRateType) predicate.ProviderOrderToken

ConversionRateTypeIn applies the In predicate on the "conversion_rate_type" field.

func ConversionRateTypeNEQ

func ConversionRateTypeNEQ(v ConversionRateType) predicate.ProviderOrderToken

ConversionRateTypeNEQ applies the NEQ predicate on the "conversion_rate_type" field.

func ConversionRateTypeNotIn

func ConversionRateTypeNotIn(vs ...ConversionRateType) predicate.ProviderOrderToken

ConversionRateTypeNotIn applies the NotIn predicate on the "conversion_rate_type" field.

func ConversionRateTypeValidator

func ConversionRateTypeValidator(crt ConversionRateType) error

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

func CreatedAt

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ProviderOrderToken

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ProviderOrderToken

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ProviderOrderToken

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ProviderOrderToken

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ProviderOrderToken

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ProviderOrderToken

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

func CreatedAtNotIn

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

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

func FixedConversionRate

func FixedConversionRate(v decimal.Decimal) predicate.ProviderOrderToken

FixedConversionRate applies equality check predicate on the "fixed_conversion_rate" field. It's identical to FixedConversionRateEQ.

func FixedConversionRateEQ

func FixedConversionRateEQ(v decimal.Decimal) predicate.ProviderOrderToken

FixedConversionRateEQ applies the EQ predicate on the "fixed_conversion_rate" field.

func FixedConversionRateGT

func FixedConversionRateGT(v decimal.Decimal) predicate.ProviderOrderToken

FixedConversionRateGT applies the GT predicate on the "fixed_conversion_rate" field.

func FixedConversionRateGTE

func FixedConversionRateGTE(v decimal.Decimal) predicate.ProviderOrderToken

FixedConversionRateGTE applies the GTE predicate on the "fixed_conversion_rate" field.

func FixedConversionRateIn

func FixedConversionRateIn(vs ...decimal.Decimal) predicate.ProviderOrderToken

FixedConversionRateIn applies the In predicate on the "fixed_conversion_rate" field.

func FixedConversionRateLT

func FixedConversionRateLT(v decimal.Decimal) predicate.ProviderOrderToken

FixedConversionRateLT applies the LT predicate on the "fixed_conversion_rate" field.

func FixedConversionRateLTE

func FixedConversionRateLTE(v decimal.Decimal) predicate.ProviderOrderToken

FixedConversionRateLTE applies the LTE predicate on the "fixed_conversion_rate" field.

func FixedConversionRateNEQ

func FixedConversionRateNEQ(v decimal.Decimal) predicate.ProviderOrderToken

FixedConversionRateNEQ applies the NEQ predicate on the "fixed_conversion_rate" field.

func FixedConversionRateNotIn

func FixedConversionRateNotIn(vs ...decimal.Decimal) predicate.ProviderOrderToken

FixedConversionRateNotIn applies the NotIn predicate on the "fixed_conversion_rate" field.

func FloatingConversionRate

func FloatingConversionRate(v decimal.Decimal) predicate.ProviderOrderToken

FloatingConversionRate applies equality check predicate on the "floating_conversion_rate" field. It's identical to FloatingConversionRateEQ.

func FloatingConversionRateEQ

func FloatingConversionRateEQ(v decimal.Decimal) predicate.ProviderOrderToken

FloatingConversionRateEQ applies the EQ predicate on the "floating_conversion_rate" field.

func FloatingConversionRateGT

func FloatingConversionRateGT(v decimal.Decimal) predicate.ProviderOrderToken

FloatingConversionRateGT applies the GT predicate on the "floating_conversion_rate" field.

func FloatingConversionRateGTE

func FloatingConversionRateGTE(v decimal.Decimal) predicate.ProviderOrderToken

FloatingConversionRateGTE applies the GTE predicate on the "floating_conversion_rate" field.

func FloatingConversionRateIn

func FloatingConversionRateIn(vs ...decimal.Decimal) predicate.ProviderOrderToken

FloatingConversionRateIn applies the In predicate on the "floating_conversion_rate" field.

func FloatingConversionRateLT

func FloatingConversionRateLT(v decimal.Decimal) predicate.ProviderOrderToken

FloatingConversionRateLT applies the LT predicate on the "floating_conversion_rate" field.

func FloatingConversionRateLTE

func FloatingConversionRateLTE(v decimal.Decimal) predicate.ProviderOrderToken

FloatingConversionRateLTE applies the LTE predicate on the "floating_conversion_rate" field.

func FloatingConversionRateNEQ

func FloatingConversionRateNEQ(v decimal.Decimal) predicate.ProviderOrderToken

FloatingConversionRateNEQ applies the NEQ predicate on the "floating_conversion_rate" field.

func FloatingConversionRateNotIn

func FloatingConversionRateNotIn(vs ...decimal.Decimal) predicate.ProviderOrderToken

FloatingConversionRateNotIn applies the NotIn predicate on the "floating_conversion_rate" field.

func HasCurrency

func HasCurrency() predicate.ProviderOrderToken

HasCurrency applies the HasEdge predicate on the "currency" edge.

func HasCurrencyWith

func HasCurrencyWith(preds ...predicate.FiatCurrency) predicate.ProviderOrderToken

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

func HasProvider

func HasProvider() predicate.ProviderOrderToken

HasProvider applies the HasEdge predicate on the "provider" edge.

func HasProviderWith

func HasProviderWith(preds ...predicate.ProviderProfile) predicate.ProviderOrderToken

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

func HasToken

func HasToken() predicate.ProviderOrderToken

HasToken applies the HasEdge predicate on the "token" edge.

func HasTokenWith

func HasTokenWith(preds ...predicate.Token) predicate.ProviderOrderToken

HasTokenWith applies the HasEdge predicate on the "token" 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 ...int) predicate.ProviderOrderToken

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 ...int) predicate.ProviderOrderToken

IDNotIn applies the NotIn predicate on the ID field.

func MaxOrderAmount

func MaxOrderAmount(v decimal.Decimal) predicate.ProviderOrderToken

MaxOrderAmount applies equality check predicate on the "max_order_amount" field. It's identical to MaxOrderAmountEQ.

func MaxOrderAmountEQ

func MaxOrderAmountEQ(v decimal.Decimal) predicate.ProviderOrderToken

MaxOrderAmountEQ applies the EQ predicate on the "max_order_amount" field.

func MaxOrderAmountGT

func MaxOrderAmountGT(v decimal.Decimal) predicate.ProviderOrderToken

MaxOrderAmountGT applies the GT predicate on the "max_order_amount" field.

func MaxOrderAmountGTE

func MaxOrderAmountGTE(v decimal.Decimal) predicate.ProviderOrderToken

MaxOrderAmountGTE applies the GTE predicate on the "max_order_amount" field.

func MaxOrderAmountIn

func MaxOrderAmountIn(vs ...decimal.Decimal) predicate.ProviderOrderToken

MaxOrderAmountIn applies the In predicate on the "max_order_amount" field.

func MaxOrderAmountLT

func MaxOrderAmountLT(v decimal.Decimal) predicate.ProviderOrderToken

MaxOrderAmountLT applies the LT predicate on the "max_order_amount" field.

func MaxOrderAmountLTE

func MaxOrderAmountLTE(v decimal.Decimal) predicate.ProviderOrderToken

MaxOrderAmountLTE applies the LTE predicate on the "max_order_amount" field.

func MaxOrderAmountNEQ

func MaxOrderAmountNEQ(v decimal.Decimal) predicate.ProviderOrderToken

MaxOrderAmountNEQ applies the NEQ predicate on the "max_order_amount" field.

func MaxOrderAmountNotIn

func MaxOrderAmountNotIn(vs ...decimal.Decimal) predicate.ProviderOrderToken

MaxOrderAmountNotIn applies the NotIn predicate on the "max_order_amount" field.

func MinOrderAmount

func MinOrderAmount(v decimal.Decimal) predicate.ProviderOrderToken

MinOrderAmount applies equality check predicate on the "min_order_amount" field. It's identical to MinOrderAmountEQ.

func MinOrderAmountEQ

func MinOrderAmountEQ(v decimal.Decimal) predicate.ProviderOrderToken

MinOrderAmountEQ applies the EQ predicate on the "min_order_amount" field.

func MinOrderAmountGT

func MinOrderAmountGT(v decimal.Decimal) predicate.ProviderOrderToken

MinOrderAmountGT applies the GT predicate on the "min_order_amount" field.

func MinOrderAmountGTE

func MinOrderAmountGTE(v decimal.Decimal) predicate.ProviderOrderToken

MinOrderAmountGTE applies the GTE predicate on the "min_order_amount" field.

func MinOrderAmountIn

func MinOrderAmountIn(vs ...decimal.Decimal) predicate.ProviderOrderToken

MinOrderAmountIn applies the In predicate on the "min_order_amount" field.

func MinOrderAmountLT

func MinOrderAmountLT(v decimal.Decimal) predicate.ProviderOrderToken

MinOrderAmountLT applies the LT predicate on the "min_order_amount" field.

func MinOrderAmountLTE

func MinOrderAmountLTE(v decimal.Decimal) predicate.ProviderOrderToken

MinOrderAmountLTE applies the LTE predicate on the "min_order_amount" field.

func MinOrderAmountNEQ

func MinOrderAmountNEQ(v decimal.Decimal) predicate.ProviderOrderToken

MinOrderAmountNEQ applies the NEQ predicate on the "min_order_amount" field.

func MinOrderAmountNotIn

func MinOrderAmountNotIn(vs ...decimal.Decimal) predicate.ProviderOrderToken

MinOrderAmountNotIn applies the NotIn predicate on the "min_order_amount" field.

func Network

Network applies equality check predicate on the "network" field. It's identical to NetworkEQ.

func NetworkContains

func NetworkContains(v string) predicate.ProviderOrderToken

NetworkContains applies the Contains predicate on the "network" field.

func NetworkContainsFold

func NetworkContainsFold(v string) predicate.ProviderOrderToken

NetworkContainsFold applies the ContainsFold predicate on the "network" field.

func NetworkEQ

func NetworkEQ(v string) predicate.ProviderOrderToken

NetworkEQ applies the EQ predicate on the "network" field.

func NetworkEqualFold

func NetworkEqualFold(v string) predicate.ProviderOrderToken

NetworkEqualFold applies the EqualFold predicate on the "network" field.

func NetworkGT

func NetworkGT(v string) predicate.ProviderOrderToken

NetworkGT applies the GT predicate on the "network" field.

func NetworkGTE

func NetworkGTE(v string) predicate.ProviderOrderToken

NetworkGTE applies the GTE predicate on the "network" field.

func NetworkHasPrefix

func NetworkHasPrefix(v string) predicate.ProviderOrderToken

NetworkHasPrefix applies the HasPrefix predicate on the "network" field.

func NetworkHasSuffix

func NetworkHasSuffix(v string) predicate.ProviderOrderToken

NetworkHasSuffix applies the HasSuffix predicate on the "network" field.

func NetworkIn

func NetworkIn(vs ...string) predicate.ProviderOrderToken

NetworkIn applies the In predicate on the "network" field.

func NetworkIsNil

func NetworkIsNil() predicate.ProviderOrderToken

NetworkIsNil applies the IsNil predicate on the "network" field.

func NetworkLT

func NetworkLT(v string) predicate.ProviderOrderToken

NetworkLT applies the LT predicate on the "network" field.

func NetworkLTE

func NetworkLTE(v string) predicate.ProviderOrderToken

NetworkLTE applies the LTE predicate on the "network" field.

func NetworkNEQ

func NetworkNEQ(v string) predicate.ProviderOrderToken

NetworkNEQ applies the NEQ predicate on the "network" field.

func NetworkNotIn

func NetworkNotIn(vs ...string) predicate.ProviderOrderToken

NetworkNotIn applies the NotIn predicate on the "network" field.

func NetworkNotNil

func NetworkNotNil() predicate.ProviderOrderToken

NetworkNotNil applies the NotNil predicate on the "network" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func UpdatedAt

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ProviderOrderToken

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ProviderOrderToken

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ProviderOrderToken

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ProviderOrderToken

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ProviderOrderToken

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ProviderOrderToken

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

func UpdatedAtNotIn

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

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 ConversionRateType

type ConversionRateType string

ConversionRateType defines the type for the "conversion_rate_type" enum field.

const (
	ConversionRateTypeFixed    ConversionRateType = "fixed"
	ConversionRateTypeFloating ConversionRateType = "floating"
)

ConversionRateType values.

func (ConversionRateType) String

func (crt ConversionRateType) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ProviderOrderToken queries.

func ByAddress

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

ByAddress orders the results by the address field.

func ByConversionRateType

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

ByConversionRateType orders the results by the conversion_rate_type field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCurrencyField

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

ByCurrencyField orders the results by currency field.

func ByFixedConversionRate

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

ByFixedConversionRate orders the results by the fixed_conversion_rate field.

func ByFloatingConversionRate

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

ByFloatingConversionRate orders the results by the floating_conversion_rate field.

func ByID

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

ByID orders the results by the id field.

func ByMaxOrderAmount

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

ByMaxOrderAmount orders the results by the max_order_amount field.

func ByMinOrderAmount

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

ByMinOrderAmount orders the results by the min_order_amount field.

func ByNetwork

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

ByNetwork orders the results by the network field.

func ByProviderField

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

ByProviderField orders the results by provider field.

func ByTokenField

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

ByTokenField orders the results by token 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