ent

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Operation types.
	OpCreate    = ent.OpCreate
	OpDelete    = ent.OpDelete
	OpDeleteOne = ent.OpDeleteOne
	OpUpdate    = ent.OpUpdate
	OpUpdateOne = ent.OpUpdateOne

	// Node types.
	TypeAPIKey                      = "APIKey"
	TypeBeneficialOwner             = "BeneficialOwner"
	TypeFiatCurrency                = "FiatCurrency"
	TypeIdentityVerificationRequest = "IdentityVerificationRequest"
	TypeInstitution                 = "Institution"
	TypeKYBProfile                  = "KYBProfile"
	TypeLinkedAddress               = "LinkedAddress"
	TypeLockOrderFulfillment        = "LockOrderFulfillment"
	TypeLockPaymentOrder            = "LockPaymentOrder"
	TypeNetwork                     = "Network"
	TypePaymentOrder                = "PaymentOrder"
	TypePaymentOrderRecipient       = "PaymentOrderRecipient"
	TypePaymentWebhook              = "PaymentWebhook"
	TypeProviderCurrencies          = "ProviderCurrencies"
	TypeProviderOrderToken          = "ProviderOrderToken"
	TypeProviderProfile             = "ProviderProfile"
	TypeProviderRating              = "ProviderRating"
	TypeProvisionBucket             = "ProvisionBucket"
	TypeReceiveAddress              = "ReceiveAddress"
	TypeSenderOrderToken            = "SenderOrderToken"
	TypeSenderProfile               = "SenderProfile"
	TypeToken                       = "Token"
	TypeTransactionLog              = "TransactionLog"
	TypeUser                        = "User"
	TypeVerificationToken           = "VerificationToken"
	TypeWebhookRetryAttempt         = "WebhookRetryAttempt"
)

Variables

View Source
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")

ErrTxStarted is returned when trying to start a new transaction from a transactional client.

Functions

func Asc

func Asc(fields ...string) func(*sql.Selector)

Asc applies the given fields in ASC order.

func Desc

func Desc(fields ...string) func(*sql.Selector)

Desc applies the given fields in DESC order.

func IsConstraintError

func IsConstraintError(err error) bool

IsConstraintError returns a boolean indicating whether the error is a constraint failure.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns a boolean indicating whether the error is a not found error.

func IsNotLoaded

func IsNotLoaded(err error) bool

IsNotLoaded returns a boolean indicating whether the error is a not loaded error.

func IsNotSingular

func IsNotSingular(err error) bool

IsNotSingular returns a boolean indicating whether the error is a not singular error.

func IsValidationError

func IsValidationError(err error) bool

IsValidationError returns a boolean indicating whether the error is a validation error.

func MaskNotFound

func MaskNotFound(err error) error

MaskNotFound masks not found error.

func NewContext

func NewContext(parent context.Context, c *Client) context.Context

NewContext returns a new context with the given Client attached.

func NewTxContext

func NewTxContext(parent context.Context, tx *Tx) context.Context

NewTxContext returns a new context with the given Tx attached.

Types

type APIKey

type APIKey struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// Secret holds the value of the "secret" field.
	Secret string `json:"secret,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the APIKeyQuery when eager-loading is set.
	Edges APIKeyEdges `json:"edges"`
	// contains filtered or unexported fields
}

APIKey is the model entity for the APIKey schema.

func (*APIKey) QueryPaymentOrders

func (ak *APIKey) QueryPaymentOrders() *PaymentOrderQuery

QueryPaymentOrders queries the "payment_orders" edge of the APIKey entity.

func (*APIKey) QueryProviderProfile

func (ak *APIKey) QueryProviderProfile() *ProviderProfileQuery

QueryProviderProfile queries the "provider_profile" edge of the APIKey entity.

func (*APIKey) QuerySenderProfile

func (ak *APIKey) QuerySenderProfile() *SenderProfileQuery

QuerySenderProfile queries the "sender_profile" edge of the APIKey entity.

func (*APIKey) String

func (ak *APIKey) String() string

String implements the fmt.Stringer.

func (*APIKey) Unwrap

func (ak *APIKey) Unwrap() *APIKey

Unwrap unwraps the APIKey entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*APIKey) Update

func (ak *APIKey) Update() *APIKeyUpdateOne

Update returns a builder for updating this APIKey. Note that you need to call APIKey.Unwrap() before calling this method if this APIKey was returned from a transaction, and the transaction was committed or rolled back.

func (*APIKey) Value

func (ak *APIKey) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the APIKey. This includes values selected through modifiers, order, etc.

type APIKeyClient

type APIKeyClient struct {
	// contains filtered or unexported fields
}

APIKeyClient is a client for the APIKey schema.

func NewAPIKeyClient

func NewAPIKeyClient(c config) *APIKeyClient

NewAPIKeyClient returns a client for the APIKey from the given config.

func (*APIKeyClient) Create

func (c *APIKeyClient) Create() *APIKeyCreate

Create returns a builder for creating a APIKey entity.

func (*APIKeyClient) CreateBulk

func (c *APIKeyClient) CreateBulk(builders ...*APIKeyCreate) *APIKeyCreateBulk

CreateBulk returns a builder for creating a bulk of APIKey entities.

func (*APIKeyClient) Delete

func (c *APIKeyClient) Delete() *APIKeyDelete

Delete returns a delete builder for APIKey.

func (*APIKeyClient) DeleteOne

func (c *APIKeyClient) DeleteOne(ak *APIKey) *APIKeyDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*APIKeyClient) DeleteOneID

func (c *APIKeyClient) DeleteOneID(id uuid.UUID) *APIKeyDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*APIKeyClient) Get

func (c *APIKeyClient) Get(ctx context.Context, id uuid.UUID) (*APIKey, error)

Get returns a APIKey entity by its id.

func (*APIKeyClient) GetX

func (c *APIKeyClient) GetX(ctx context.Context, id uuid.UUID) *APIKey

GetX is like Get, but panics if an error occurs.

func (*APIKeyClient) Hooks

func (c *APIKeyClient) Hooks() []Hook

Hooks returns the client hooks.

func (*APIKeyClient) Intercept

func (c *APIKeyClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `apikey.Intercept(f(g(h())))`.

func (*APIKeyClient) Interceptors

func (c *APIKeyClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*APIKeyClient) MapCreateBulk

func (c *APIKeyClient) MapCreateBulk(slice any, setFunc func(*APIKeyCreate, int)) *APIKeyCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*APIKeyClient) Query

func (c *APIKeyClient) Query() *APIKeyQuery

Query returns a query builder for APIKey.

func (*APIKeyClient) QueryPaymentOrders

func (c *APIKeyClient) QueryPaymentOrders(ak *APIKey) *PaymentOrderQuery

QueryPaymentOrders queries the payment_orders edge of a APIKey.

func (*APIKeyClient) QueryProviderProfile

func (c *APIKeyClient) QueryProviderProfile(ak *APIKey) *ProviderProfileQuery

QueryProviderProfile queries the provider_profile edge of a APIKey.

func (*APIKeyClient) QuerySenderProfile

func (c *APIKeyClient) QuerySenderProfile(ak *APIKey) *SenderProfileQuery

QuerySenderProfile queries the sender_profile edge of a APIKey.

func (*APIKeyClient) Update

func (c *APIKeyClient) Update() *APIKeyUpdate

Update returns an update builder for APIKey.

func (*APIKeyClient) UpdateOne

func (c *APIKeyClient) UpdateOne(ak *APIKey) *APIKeyUpdateOne

UpdateOne returns an update builder for the given entity.

func (*APIKeyClient) UpdateOneID

func (c *APIKeyClient) UpdateOneID(id uuid.UUID) *APIKeyUpdateOne

UpdateOneID returns an update builder for the given id.

func (*APIKeyClient) Use

func (c *APIKeyClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `apikey.Hooks(f(g(h())))`.

type APIKeyCreate

type APIKeyCreate struct {
	// contains filtered or unexported fields
}

APIKeyCreate is the builder for creating a APIKey entity.

func (*APIKeyCreate) AddPaymentOrderIDs

func (akc *APIKeyCreate) AddPaymentOrderIDs(ids ...uuid.UUID) *APIKeyCreate

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*APIKeyCreate) AddPaymentOrders

func (akc *APIKeyCreate) AddPaymentOrders(p ...*PaymentOrder) *APIKeyCreate

AddPaymentOrders adds the "payment_orders" edges to the PaymentOrder entity.

func (*APIKeyCreate) Exec

func (akc *APIKeyCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*APIKeyCreate) ExecX

func (akc *APIKeyCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*APIKeyCreate) Mutation

func (akc *APIKeyCreate) Mutation() *APIKeyMutation

Mutation returns the APIKeyMutation object of the builder.

func (*APIKeyCreate) OnConflict

func (akc *APIKeyCreate) OnConflict(opts ...sql.ConflictOption) *APIKeyUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.APIKey.Create().
	SetSecret(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.APIKeyUpsert) {
		SetSecret(v+v).
	}).
	Exec(ctx)

func (*APIKeyCreate) OnConflictColumns

func (akc *APIKeyCreate) OnConflictColumns(columns ...string) *APIKeyUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.APIKey.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*APIKeyCreate) Save

func (akc *APIKeyCreate) Save(ctx context.Context) (*APIKey, error)

Save creates the APIKey in the database.

func (*APIKeyCreate) SaveX

func (akc *APIKeyCreate) SaveX(ctx context.Context) *APIKey

SaveX calls Save and panics if Save returns an error.

func (*APIKeyCreate) SetID

func (akc *APIKeyCreate) SetID(u uuid.UUID) *APIKeyCreate

SetID sets the "id" field.

func (*APIKeyCreate) SetNillableID

func (akc *APIKeyCreate) SetNillableID(u *uuid.UUID) *APIKeyCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*APIKeyCreate) SetNillableProviderProfileID

func (akc *APIKeyCreate) SetNillableProviderProfileID(id *string) *APIKeyCreate

SetNillableProviderProfileID sets the "provider_profile" edge to the ProviderProfile entity by ID if the given value is not nil.

func (*APIKeyCreate) SetNillableSenderProfileID

func (akc *APIKeyCreate) SetNillableSenderProfileID(id *uuid.UUID) *APIKeyCreate

SetNillableSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID if the given value is not nil.

func (*APIKeyCreate) SetProviderProfile

func (akc *APIKeyCreate) SetProviderProfile(p *ProviderProfile) *APIKeyCreate

SetProviderProfile sets the "provider_profile" edge to the ProviderProfile entity.

func (*APIKeyCreate) SetProviderProfileID

func (akc *APIKeyCreate) SetProviderProfileID(id string) *APIKeyCreate

SetProviderProfileID sets the "provider_profile" edge to the ProviderProfile entity by ID.

func (*APIKeyCreate) SetSecret

func (akc *APIKeyCreate) SetSecret(s string) *APIKeyCreate

SetSecret sets the "secret" field.

func (*APIKeyCreate) SetSenderProfile

func (akc *APIKeyCreate) SetSenderProfile(s *SenderProfile) *APIKeyCreate

SetSenderProfile sets the "sender_profile" edge to the SenderProfile entity.

func (*APIKeyCreate) SetSenderProfileID

func (akc *APIKeyCreate) SetSenderProfileID(id uuid.UUID) *APIKeyCreate

SetSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID.

type APIKeyCreateBulk

type APIKeyCreateBulk struct {
	// contains filtered or unexported fields
}

APIKeyCreateBulk is the builder for creating many APIKey entities in bulk.

func (*APIKeyCreateBulk) Exec

func (akcb *APIKeyCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*APIKeyCreateBulk) ExecX

func (akcb *APIKeyCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*APIKeyCreateBulk) OnConflict

func (akcb *APIKeyCreateBulk) OnConflict(opts ...sql.ConflictOption) *APIKeyUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.APIKey.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.APIKeyUpsert) {
		SetSecret(v+v).
	}).
	Exec(ctx)

func (*APIKeyCreateBulk) OnConflictColumns

func (akcb *APIKeyCreateBulk) OnConflictColumns(columns ...string) *APIKeyUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.APIKey.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*APIKeyCreateBulk) Save

func (akcb *APIKeyCreateBulk) Save(ctx context.Context) ([]*APIKey, error)

Save creates the APIKey entities in the database.

func (*APIKeyCreateBulk) SaveX

func (akcb *APIKeyCreateBulk) SaveX(ctx context.Context) []*APIKey

SaveX is like Save, but panics if an error occurs.

type APIKeyDelete

type APIKeyDelete struct {
	// contains filtered or unexported fields
}

APIKeyDelete is the builder for deleting a APIKey entity.

func (*APIKeyDelete) Exec

func (akd *APIKeyDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*APIKeyDelete) ExecX

func (akd *APIKeyDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*APIKeyDelete) Where

func (akd *APIKeyDelete) Where(ps ...predicate.APIKey) *APIKeyDelete

Where appends a list predicates to the APIKeyDelete builder.

type APIKeyDeleteOne

type APIKeyDeleteOne struct {
	// contains filtered or unexported fields
}

APIKeyDeleteOne is the builder for deleting a single APIKey entity.

func (*APIKeyDeleteOne) Exec

func (akdo *APIKeyDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*APIKeyDeleteOne) ExecX

func (akdo *APIKeyDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*APIKeyDeleteOne) Where

func (akdo *APIKeyDeleteOne) Where(ps ...predicate.APIKey) *APIKeyDeleteOne

Where appends a list predicates to the APIKeyDelete builder.

type APIKeyEdges

type APIKeyEdges struct {
	// SenderProfile holds the value of the sender_profile edge.
	SenderProfile *SenderProfile `json:"sender_profile,omitempty"`
	// ProviderProfile holds the value of the provider_profile edge.
	ProviderProfile *ProviderProfile `json:"provider_profile,omitempty"`
	// PaymentOrders holds the value of the payment_orders edge.
	PaymentOrders []*PaymentOrder `json:"payment_orders,omitempty"`
	// contains filtered or unexported fields
}

APIKeyEdges holds the relations/edges for other nodes in the graph.

func (APIKeyEdges) PaymentOrdersOrErr

func (e APIKeyEdges) PaymentOrdersOrErr() ([]*PaymentOrder, error)

PaymentOrdersOrErr returns the PaymentOrders value or an error if the edge was not loaded in eager-loading.

func (APIKeyEdges) ProviderProfileOrErr

func (e APIKeyEdges) ProviderProfileOrErr() (*ProviderProfile, error)

ProviderProfileOrErr returns the ProviderProfile value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (APIKeyEdges) SenderProfileOrErr

func (e APIKeyEdges) SenderProfileOrErr() (*SenderProfile, error)

SenderProfileOrErr returns the SenderProfile value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type APIKeyGroupBy

type APIKeyGroupBy struct {
	// contains filtered or unexported fields
}

APIKeyGroupBy is the group-by builder for APIKey entities.

func (*APIKeyGroupBy) Aggregate

func (akgb *APIKeyGroupBy) Aggregate(fns ...AggregateFunc) *APIKeyGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*APIKeyGroupBy) Bool

func (s *APIKeyGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*APIKeyGroupBy) BoolX

func (s *APIKeyGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*APIKeyGroupBy) Bools

func (s *APIKeyGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*APIKeyGroupBy) BoolsX

func (s *APIKeyGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*APIKeyGroupBy) Float64

func (s *APIKeyGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*APIKeyGroupBy) Float64X

func (s *APIKeyGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*APIKeyGroupBy) Float64s

func (s *APIKeyGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*APIKeyGroupBy) Float64sX

func (s *APIKeyGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*APIKeyGroupBy) Int

func (s *APIKeyGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*APIKeyGroupBy) IntX

func (s *APIKeyGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*APIKeyGroupBy) Ints

func (s *APIKeyGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*APIKeyGroupBy) IntsX

func (s *APIKeyGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*APIKeyGroupBy) Scan

func (akgb *APIKeyGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*APIKeyGroupBy) ScanX

func (s *APIKeyGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*APIKeyGroupBy) String

func (s *APIKeyGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*APIKeyGroupBy) StringX

func (s *APIKeyGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*APIKeyGroupBy) Strings

func (s *APIKeyGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*APIKeyGroupBy) StringsX

func (s *APIKeyGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type APIKeyMutation

type APIKeyMutation struct {
	// contains filtered or unexported fields
}

APIKeyMutation represents an operation that mutates the APIKey nodes in the graph.

func (*APIKeyMutation) AddField

func (m *APIKeyMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*APIKeyMutation) AddPaymentOrderIDs

func (m *APIKeyMutation) AddPaymentOrderIDs(ids ...uuid.UUID)

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by ids.

func (*APIKeyMutation) AddedEdges

func (m *APIKeyMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*APIKeyMutation) AddedField

func (m *APIKeyMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*APIKeyMutation) AddedFields

func (m *APIKeyMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*APIKeyMutation) AddedIDs

func (m *APIKeyMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*APIKeyMutation) ClearEdge

func (m *APIKeyMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*APIKeyMutation) ClearField

func (m *APIKeyMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*APIKeyMutation) ClearPaymentOrders

func (m *APIKeyMutation) ClearPaymentOrders()

ClearPaymentOrders clears the "payment_orders" edge to the PaymentOrder entity.

func (*APIKeyMutation) ClearProviderProfile

func (m *APIKeyMutation) ClearProviderProfile()

ClearProviderProfile clears the "provider_profile" edge to the ProviderProfile entity.

func (*APIKeyMutation) ClearSenderProfile

func (m *APIKeyMutation) ClearSenderProfile()

ClearSenderProfile clears the "sender_profile" edge to the SenderProfile entity.

func (*APIKeyMutation) ClearedEdges

func (m *APIKeyMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*APIKeyMutation) ClearedFields

func (m *APIKeyMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (APIKeyMutation) Client

func (m APIKeyMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*APIKeyMutation) EdgeCleared

func (m *APIKeyMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*APIKeyMutation) Field

func (m *APIKeyMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*APIKeyMutation) FieldCleared

func (m *APIKeyMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*APIKeyMutation) Fields

func (m *APIKeyMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*APIKeyMutation) ID

func (m *APIKeyMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*APIKeyMutation) IDs

func (m *APIKeyMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*APIKeyMutation) OldField

func (m *APIKeyMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*APIKeyMutation) OldSecret

func (m *APIKeyMutation) OldSecret(ctx context.Context) (v string, err error)

OldSecret returns the old "secret" field's value of the APIKey entity. If the APIKey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*APIKeyMutation) Op

func (m *APIKeyMutation) Op() Op

Op returns the operation name.

func (*APIKeyMutation) PaymentOrdersCleared

func (m *APIKeyMutation) PaymentOrdersCleared() bool

PaymentOrdersCleared reports if the "payment_orders" edge to the PaymentOrder entity was cleared.

func (*APIKeyMutation) PaymentOrdersIDs

func (m *APIKeyMutation) PaymentOrdersIDs() (ids []uuid.UUID)

PaymentOrdersIDs returns the "payment_orders" edge IDs in the mutation.

func (*APIKeyMutation) ProviderProfileCleared

func (m *APIKeyMutation) ProviderProfileCleared() bool

ProviderProfileCleared reports if the "provider_profile" edge to the ProviderProfile entity was cleared.

func (*APIKeyMutation) ProviderProfileID

func (m *APIKeyMutation) ProviderProfileID() (id string, exists bool)

ProviderProfileID returns the "provider_profile" edge ID in the mutation.

func (*APIKeyMutation) ProviderProfileIDs

func (m *APIKeyMutation) ProviderProfileIDs() (ids []string)

ProviderProfileIDs returns the "provider_profile" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProviderProfileID instead. It exists only for internal usage by the builders.

func (*APIKeyMutation) RemovePaymentOrderIDs

func (m *APIKeyMutation) RemovePaymentOrderIDs(ids ...uuid.UUID)

RemovePaymentOrderIDs removes the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*APIKeyMutation) RemovedEdges

func (m *APIKeyMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*APIKeyMutation) RemovedIDs

func (m *APIKeyMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*APIKeyMutation) RemovedPaymentOrdersIDs

func (m *APIKeyMutation) RemovedPaymentOrdersIDs() (ids []uuid.UUID)

RemovedPaymentOrders returns the removed IDs of the "payment_orders" edge to the PaymentOrder entity.

func (*APIKeyMutation) ResetEdge

func (m *APIKeyMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*APIKeyMutation) ResetField

func (m *APIKeyMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*APIKeyMutation) ResetPaymentOrders

func (m *APIKeyMutation) ResetPaymentOrders()

ResetPaymentOrders resets all changes to the "payment_orders" edge.

func (*APIKeyMutation) ResetProviderProfile

func (m *APIKeyMutation) ResetProviderProfile()

ResetProviderProfile resets all changes to the "provider_profile" edge.

func (*APIKeyMutation) ResetSecret

func (m *APIKeyMutation) ResetSecret()

ResetSecret resets all changes to the "secret" field.

func (*APIKeyMutation) ResetSenderProfile

func (m *APIKeyMutation) ResetSenderProfile()

ResetSenderProfile resets all changes to the "sender_profile" edge.

func (*APIKeyMutation) Secret

func (m *APIKeyMutation) Secret() (r string, exists bool)

Secret returns the value of the "secret" field in the mutation.

func (*APIKeyMutation) SenderProfileCleared

func (m *APIKeyMutation) SenderProfileCleared() bool

SenderProfileCleared reports if the "sender_profile" edge to the SenderProfile entity was cleared.

func (*APIKeyMutation) SenderProfileID

func (m *APIKeyMutation) SenderProfileID() (id uuid.UUID, exists bool)

SenderProfileID returns the "sender_profile" edge ID in the mutation.

func (*APIKeyMutation) SenderProfileIDs

func (m *APIKeyMutation) SenderProfileIDs() (ids []uuid.UUID)

SenderProfileIDs returns the "sender_profile" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SenderProfileID instead. It exists only for internal usage by the builders.

func (*APIKeyMutation) SetField

func (m *APIKeyMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*APIKeyMutation) SetID

func (m *APIKeyMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of APIKey entities.

func (*APIKeyMutation) SetOp

func (m *APIKeyMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*APIKeyMutation) SetProviderProfileID

func (m *APIKeyMutation) SetProviderProfileID(id string)

SetProviderProfileID sets the "provider_profile" edge to the ProviderProfile entity by id.

func (*APIKeyMutation) SetSecret

func (m *APIKeyMutation) SetSecret(s string)

SetSecret sets the "secret" field.

func (*APIKeyMutation) SetSenderProfileID

func (m *APIKeyMutation) SetSenderProfileID(id uuid.UUID)

SetSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by id.

func (APIKeyMutation) Tx

func (m APIKeyMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*APIKeyMutation) Type

func (m *APIKeyMutation) Type() string

Type returns the node type of this mutation (APIKey).

func (*APIKeyMutation) Where

func (m *APIKeyMutation) Where(ps ...predicate.APIKey)

Where appends a list predicates to the APIKeyMutation builder.

func (*APIKeyMutation) WhereP

func (m *APIKeyMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the APIKeyMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type APIKeyQuery

type APIKeyQuery struct {
	// contains filtered or unexported fields
}

APIKeyQuery is the builder for querying APIKey entities.

func (*APIKeyQuery) Aggregate

func (akq *APIKeyQuery) Aggregate(fns ...AggregateFunc) *APIKeySelect

Aggregate returns a APIKeySelect configured with the given aggregations.

func (*APIKeyQuery) All

func (akq *APIKeyQuery) All(ctx context.Context) ([]*APIKey, error)

All executes the query and returns a list of APIKeys.

func (*APIKeyQuery) AllX

func (akq *APIKeyQuery) AllX(ctx context.Context) []*APIKey

AllX is like All, but panics if an error occurs.

func (*APIKeyQuery) Clone

func (akq *APIKeyQuery) Clone() *APIKeyQuery

Clone returns a duplicate of the APIKeyQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*APIKeyQuery) Count

func (akq *APIKeyQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*APIKeyQuery) CountX

func (akq *APIKeyQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*APIKeyQuery) Exist

func (akq *APIKeyQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*APIKeyQuery) ExistX

func (akq *APIKeyQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*APIKeyQuery) First

func (akq *APIKeyQuery) First(ctx context.Context) (*APIKey, error)

First returns the first APIKey entity from the query. Returns a *NotFoundError when no APIKey was found.

func (*APIKeyQuery) FirstID

func (akq *APIKeyQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first APIKey ID from the query. Returns a *NotFoundError when no APIKey ID was found.

func (*APIKeyQuery) FirstIDX

func (akq *APIKeyQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*APIKeyQuery) FirstX

func (akq *APIKeyQuery) FirstX(ctx context.Context) *APIKey

FirstX is like First, but panics if an error occurs.

func (*APIKeyQuery) GroupBy

func (akq *APIKeyQuery) GroupBy(field string, fields ...string) *APIKeyGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Secret string `json:"secret,omitempty"`
	Count int `json:"count,omitempty"`
}

client.APIKey.Query().
	GroupBy(apikey.FieldSecret).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*APIKeyQuery) IDs

func (akq *APIKeyQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of APIKey IDs.

func (*APIKeyQuery) IDsX

func (akq *APIKeyQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*APIKeyQuery) Limit

func (akq *APIKeyQuery) Limit(limit int) *APIKeyQuery

Limit the number of records to be returned by this query.

func (*APIKeyQuery) Offset

func (akq *APIKeyQuery) Offset(offset int) *APIKeyQuery

Offset to start from.

func (*APIKeyQuery) Only

func (akq *APIKeyQuery) Only(ctx context.Context) (*APIKey, error)

Only returns a single APIKey entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one APIKey entity is found. Returns a *NotFoundError when no APIKey entities are found.

func (*APIKeyQuery) OnlyID

func (akq *APIKeyQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only APIKey ID in the query. Returns a *NotSingularError when more than one APIKey ID is found. Returns a *NotFoundError when no entities are found.

func (*APIKeyQuery) OnlyIDX

func (akq *APIKeyQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*APIKeyQuery) OnlyX

func (akq *APIKeyQuery) OnlyX(ctx context.Context) *APIKey

OnlyX is like Only, but panics if an error occurs.

func (*APIKeyQuery) Order

func (akq *APIKeyQuery) Order(o ...apikey.OrderOption) *APIKeyQuery

Order specifies how the records should be ordered.

func (*APIKeyQuery) QueryPaymentOrders

func (akq *APIKeyQuery) QueryPaymentOrders() *PaymentOrderQuery

QueryPaymentOrders chains the current query on the "payment_orders" edge.

func (*APIKeyQuery) QueryProviderProfile

func (akq *APIKeyQuery) QueryProviderProfile() *ProviderProfileQuery

QueryProviderProfile chains the current query on the "provider_profile" edge.

func (*APIKeyQuery) QuerySenderProfile

func (akq *APIKeyQuery) QuerySenderProfile() *SenderProfileQuery

QuerySenderProfile chains the current query on the "sender_profile" edge.

func (*APIKeyQuery) Select

func (akq *APIKeyQuery) Select(fields ...string) *APIKeySelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Secret string `json:"secret,omitempty"`
}

client.APIKey.Query().
	Select(apikey.FieldSecret).
	Scan(ctx, &v)

func (*APIKeyQuery) Unique

func (akq *APIKeyQuery) Unique(unique bool) *APIKeyQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*APIKeyQuery) Where

func (akq *APIKeyQuery) Where(ps ...predicate.APIKey) *APIKeyQuery

Where adds a new predicate for the APIKeyQuery builder.

func (*APIKeyQuery) WithPaymentOrders

func (akq *APIKeyQuery) WithPaymentOrders(opts ...func(*PaymentOrderQuery)) *APIKeyQuery

WithPaymentOrders tells the query-builder to eager-load the nodes that are connected to the "payment_orders" edge. The optional arguments are used to configure the query builder of the edge.

func (*APIKeyQuery) WithProviderProfile

func (akq *APIKeyQuery) WithProviderProfile(opts ...func(*ProviderProfileQuery)) *APIKeyQuery

WithProviderProfile tells the query-builder to eager-load the nodes that are connected to the "provider_profile" edge. The optional arguments are used to configure the query builder of the edge.

func (*APIKeyQuery) WithSenderProfile

func (akq *APIKeyQuery) WithSenderProfile(opts ...func(*SenderProfileQuery)) *APIKeyQuery

WithSenderProfile tells the query-builder to eager-load the nodes that are connected to the "sender_profile" edge. The optional arguments are used to configure the query builder of the edge.

type APIKeySelect

type APIKeySelect struct {
	*APIKeyQuery
	// contains filtered or unexported fields
}

APIKeySelect is the builder for selecting fields of APIKey entities.

func (*APIKeySelect) Aggregate

func (aks *APIKeySelect) Aggregate(fns ...AggregateFunc) *APIKeySelect

Aggregate adds the given aggregation functions to the selector query.

func (*APIKeySelect) Bool

func (s *APIKeySelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*APIKeySelect) BoolX

func (s *APIKeySelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*APIKeySelect) Bools

func (s *APIKeySelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*APIKeySelect) BoolsX

func (s *APIKeySelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*APIKeySelect) Float64

func (s *APIKeySelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*APIKeySelect) Float64X

func (s *APIKeySelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*APIKeySelect) Float64s

func (s *APIKeySelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*APIKeySelect) Float64sX

func (s *APIKeySelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*APIKeySelect) Int

func (s *APIKeySelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*APIKeySelect) IntX

func (s *APIKeySelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*APIKeySelect) Ints

func (s *APIKeySelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*APIKeySelect) IntsX

func (s *APIKeySelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*APIKeySelect) Scan

func (aks *APIKeySelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*APIKeySelect) ScanX

func (s *APIKeySelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*APIKeySelect) String

func (s *APIKeySelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*APIKeySelect) StringX

func (s *APIKeySelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*APIKeySelect) Strings

func (s *APIKeySelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*APIKeySelect) StringsX

func (s *APIKeySelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type APIKeyUpdate

type APIKeyUpdate struct {
	// contains filtered or unexported fields
}

APIKeyUpdate is the builder for updating APIKey entities.

func (*APIKeyUpdate) AddPaymentOrderIDs

func (aku *APIKeyUpdate) AddPaymentOrderIDs(ids ...uuid.UUID) *APIKeyUpdate

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*APIKeyUpdate) AddPaymentOrders

func (aku *APIKeyUpdate) AddPaymentOrders(p ...*PaymentOrder) *APIKeyUpdate

AddPaymentOrders adds the "payment_orders" edges to the PaymentOrder entity.

func (*APIKeyUpdate) ClearPaymentOrders

func (aku *APIKeyUpdate) ClearPaymentOrders() *APIKeyUpdate

ClearPaymentOrders clears all "payment_orders" edges to the PaymentOrder entity.

func (*APIKeyUpdate) Exec

func (aku *APIKeyUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*APIKeyUpdate) ExecX

func (aku *APIKeyUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*APIKeyUpdate) Mutation

func (aku *APIKeyUpdate) Mutation() *APIKeyMutation

Mutation returns the APIKeyMutation object of the builder.

func (*APIKeyUpdate) RemovePaymentOrderIDs

func (aku *APIKeyUpdate) RemovePaymentOrderIDs(ids ...uuid.UUID) *APIKeyUpdate

RemovePaymentOrderIDs removes the "payment_orders" edge to PaymentOrder entities by IDs.

func (*APIKeyUpdate) RemovePaymentOrders

func (aku *APIKeyUpdate) RemovePaymentOrders(p ...*PaymentOrder) *APIKeyUpdate

RemovePaymentOrders removes "payment_orders" edges to PaymentOrder entities.

func (*APIKeyUpdate) Save

func (aku *APIKeyUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*APIKeyUpdate) SaveX

func (aku *APIKeyUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*APIKeyUpdate) SetNillableSecret

func (aku *APIKeyUpdate) SetNillableSecret(s *string) *APIKeyUpdate

SetNillableSecret sets the "secret" field if the given value is not nil.

func (*APIKeyUpdate) SetSecret

func (aku *APIKeyUpdate) SetSecret(s string) *APIKeyUpdate

SetSecret sets the "secret" field.

func (*APIKeyUpdate) Where

func (aku *APIKeyUpdate) Where(ps ...predicate.APIKey) *APIKeyUpdate

Where appends a list predicates to the APIKeyUpdate builder.

type APIKeyUpdateOne

type APIKeyUpdateOne struct {
	// contains filtered or unexported fields
}

APIKeyUpdateOne is the builder for updating a single APIKey entity.

func (*APIKeyUpdateOne) AddPaymentOrderIDs

func (akuo *APIKeyUpdateOne) AddPaymentOrderIDs(ids ...uuid.UUID) *APIKeyUpdateOne

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*APIKeyUpdateOne) AddPaymentOrders

func (akuo *APIKeyUpdateOne) AddPaymentOrders(p ...*PaymentOrder) *APIKeyUpdateOne

AddPaymentOrders adds the "payment_orders" edges to the PaymentOrder entity.

func (*APIKeyUpdateOne) ClearPaymentOrders

func (akuo *APIKeyUpdateOne) ClearPaymentOrders() *APIKeyUpdateOne

ClearPaymentOrders clears all "payment_orders" edges to the PaymentOrder entity.

func (*APIKeyUpdateOne) Exec

func (akuo *APIKeyUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*APIKeyUpdateOne) ExecX

func (akuo *APIKeyUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*APIKeyUpdateOne) Mutation

func (akuo *APIKeyUpdateOne) Mutation() *APIKeyMutation

Mutation returns the APIKeyMutation object of the builder.

func (*APIKeyUpdateOne) RemovePaymentOrderIDs

func (akuo *APIKeyUpdateOne) RemovePaymentOrderIDs(ids ...uuid.UUID) *APIKeyUpdateOne

RemovePaymentOrderIDs removes the "payment_orders" edge to PaymentOrder entities by IDs.

func (*APIKeyUpdateOne) RemovePaymentOrders

func (akuo *APIKeyUpdateOne) RemovePaymentOrders(p ...*PaymentOrder) *APIKeyUpdateOne

RemovePaymentOrders removes "payment_orders" edges to PaymentOrder entities.

func (*APIKeyUpdateOne) Save

func (akuo *APIKeyUpdateOne) Save(ctx context.Context) (*APIKey, error)

Save executes the query and returns the updated APIKey entity.

func (*APIKeyUpdateOne) SaveX

func (akuo *APIKeyUpdateOne) SaveX(ctx context.Context) *APIKey

SaveX is like Save, but panics if an error occurs.

func (*APIKeyUpdateOne) Select

func (akuo *APIKeyUpdateOne) Select(field string, fields ...string) *APIKeyUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*APIKeyUpdateOne) SetNillableSecret

func (akuo *APIKeyUpdateOne) SetNillableSecret(s *string) *APIKeyUpdateOne

SetNillableSecret sets the "secret" field if the given value is not nil.

func (*APIKeyUpdateOne) SetSecret

func (akuo *APIKeyUpdateOne) SetSecret(s string) *APIKeyUpdateOne

SetSecret sets the "secret" field.

func (*APIKeyUpdateOne) Where

func (akuo *APIKeyUpdateOne) Where(ps ...predicate.APIKey) *APIKeyUpdateOne

Where appends a list predicates to the APIKeyUpdate builder.

type APIKeyUpsert

type APIKeyUpsert struct {
	*sql.UpdateSet
}

APIKeyUpsert is the "OnConflict" setter.

func (*APIKeyUpsert) SetSecret

func (u *APIKeyUpsert) SetSecret(v string) *APIKeyUpsert

SetSecret sets the "secret" field.

func (*APIKeyUpsert) UpdateSecret

func (u *APIKeyUpsert) UpdateSecret() *APIKeyUpsert

UpdateSecret sets the "secret" field to the value that was provided on create.

type APIKeyUpsertBulk

type APIKeyUpsertBulk struct {
	// contains filtered or unexported fields
}

APIKeyUpsertBulk is the builder for "upsert"-ing a bulk of APIKey nodes.

func (*APIKeyUpsertBulk) DoNothing

func (u *APIKeyUpsertBulk) DoNothing() *APIKeyUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*APIKeyUpsertBulk) Exec

func (u *APIKeyUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*APIKeyUpsertBulk) ExecX

func (u *APIKeyUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*APIKeyUpsertBulk) Ignore

func (u *APIKeyUpsertBulk) Ignore() *APIKeyUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.APIKey.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*APIKeyUpsertBulk) SetSecret

func (u *APIKeyUpsertBulk) SetSecret(v string) *APIKeyUpsertBulk

SetSecret sets the "secret" field.

func (*APIKeyUpsertBulk) Update

func (u *APIKeyUpsertBulk) Update(set func(*APIKeyUpsert)) *APIKeyUpsertBulk

Update allows overriding fields `UPDATE` values. See the APIKeyCreateBulk.OnConflict documentation for more info.

func (*APIKeyUpsertBulk) UpdateNewValues

func (u *APIKeyUpsertBulk) UpdateNewValues() *APIKeyUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.APIKey.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(apikey.FieldID)
		}),
	).
	Exec(ctx)

func (*APIKeyUpsertBulk) UpdateSecret

func (u *APIKeyUpsertBulk) UpdateSecret() *APIKeyUpsertBulk

UpdateSecret sets the "secret" field to the value that was provided on create.

type APIKeyUpsertOne

type APIKeyUpsertOne struct {
	// contains filtered or unexported fields
}

APIKeyUpsertOne is the builder for "upsert"-ing

one APIKey node.

func (*APIKeyUpsertOne) DoNothing

func (u *APIKeyUpsertOne) DoNothing() *APIKeyUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*APIKeyUpsertOne) Exec

func (u *APIKeyUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*APIKeyUpsertOne) ExecX

func (u *APIKeyUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*APIKeyUpsertOne) ID

func (u *APIKeyUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*APIKeyUpsertOne) IDX

func (u *APIKeyUpsertOne) IDX(ctx context.Context) uuid.UUID

IDX is like ID, but panics if an error occurs.

func (*APIKeyUpsertOne) Ignore

func (u *APIKeyUpsertOne) Ignore() *APIKeyUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.APIKey.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*APIKeyUpsertOne) SetSecret

func (u *APIKeyUpsertOne) SetSecret(v string) *APIKeyUpsertOne

SetSecret sets the "secret" field.

func (*APIKeyUpsertOne) Update

func (u *APIKeyUpsertOne) Update(set func(*APIKeyUpsert)) *APIKeyUpsertOne

Update allows overriding fields `UPDATE` values. See the APIKeyCreate.OnConflict documentation for more info.

func (*APIKeyUpsertOne) UpdateNewValues

func (u *APIKeyUpsertOne) UpdateNewValues() *APIKeyUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.APIKey.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(apikey.FieldID)
		}),
	).
	Exec(ctx)

func (*APIKeyUpsertOne) UpdateSecret

func (u *APIKeyUpsertOne) UpdateSecret() *APIKeyUpsertOne

UpdateSecret sets the "secret" field to the value that was provided on create.

type APIKeys

type APIKeys []*APIKey

APIKeys is a parsable slice of APIKey.

type AggregateFunc

type AggregateFunc func(*sql.Selector) string

AggregateFunc applies an aggregation step on the group-by traversal/selector.

func As

As is a pseudo aggregation function for renaming another other functions with custom names. For example:

GroupBy(field1, field2).
Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")).
Scan(ctx, &v)

func Count

func Count() AggregateFunc

Count applies the "count" aggregation function on each group.

func Max

func Max(field string) AggregateFunc

Max applies the "max" aggregation function on the given field of each group.

func Mean

func Mean(field string) AggregateFunc

Mean applies the "mean" aggregation function on the given field of each group.

func Min

func Min(field string) AggregateFunc

Min applies the "min" aggregation function on the given field of each group.

func Sum

func Sum(field string) AggregateFunc

Sum applies the "sum" aggregation function on the given field of each group.

type BeneficialOwner

type BeneficialOwner struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// FullName holds the value of the "full_name" field.
	FullName string `json:"full_name,omitempty"`
	// ResidentialAddress holds the value of the "residential_address" field.
	ResidentialAddress string `json:"residential_address,omitempty"`
	// ProofOfResidentialAddressURL holds the value of the "proof_of_residential_address_url" field.
	ProofOfResidentialAddressURL string `json:"proof_of_residential_address_url,omitempty"`
	// GovernmentIssuedIDURL holds the value of the "government_issued_id_url" field.
	GovernmentIssuedIDURL string `json:"government_issued_id_url,omitempty"`
	// DateOfBirth holds the value of the "date_of_birth" field.
	DateOfBirth string `json:"date_of_birth,omitempty"`
	// OwnershipPercentage holds the value of the "ownership_percentage" field.
	OwnershipPercentage float64 `json:"ownership_percentage,omitempty"`
	// GovernmentIssuedIDType holds the value of the "government_issued_id_type" field.
	GovernmentIssuedIDType beneficialowner.GovernmentIssuedIDType `json:"government_issued_id_type,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the BeneficialOwnerQuery when eager-loading is set.
	Edges BeneficialOwnerEdges `json:"edges"`
	// contains filtered or unexported fields
}

BeneficialOwner is the model entity for the BeneficialOwner schema.

func (*BeneficialOwner) QueryKybProfile

func (bo *BeneficialOwner) QueryKybProfile() *KYBProfileQuery

QueryKybProfile queries the "kyb_profile" edge of the BeneficialOwner entity.

func (*BeneficialOwner) String

func (bo *BeneficialOwner) String() string

String implements the fmt.Stringer.

func (*BeneficialOwner) Unwrap

func (bo *BeneficialOwner) Unwrap() *BeneficialOwner

Unwrap unwraps the BeneficialOwner entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*BeneficialOwner) Update

Update returns a builder for updating this BeneficialOwner. Note that you need to call BeneficialOwner.Unwrap() before calling this method if this BeneficialOwner was returned from a transaction, and the transaction was committed or rolled back.

func (*BeneficialOwner) Value

func (bo *BeneficialOwner) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the BeneficialOwner. This includes values selected through modifiers, order, etc.

type BeneficialOwnerClient

type BeneficialOwnerClient struct {
	// contains filtered or unexported fields
}

BeneficialOwnerClient is a client for the BeneficialOwner schema.

func NewBeneficialOwnerClient

func NewBeneficialOwnerClient(c config) *BeneficialOwnerClient

NewBeneficialOwnerClient returns a client for the BeneficialOwner from the given config.

func (*BeneficialOwnerClient) Create

Create returns a builder for creating a BeneficialOwner entity.

func (*BeneficialOwnerClient) CreateBulk

CreateBulk returns a builder for creating a bulk of BeneficialOwner entities.

func (*BeneficialOwnerClient) Delete

Delete returns a delete builder for BeneficialOwner.

func (*BeneficialOwnerClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*BeneficialOwnerClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*BeneficialOwnerClient) Get

Get returns a BeneficialOwner entity by its id.

func (*BeneficialOwnerClient) GetX

GetX is like Get, but panics if an error occurs.

func (*BeneficialOwnerClient) Hooks

func (c *BeneficialOwnerClient) Hooks() []Hook

Hooks returns the client hooks.

func (*BeneficialOwnerClient) Intercept

func (c *BeneficialOwnerClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `beneficialowner.Intercept(f(g(h())))`.

func (*BeneficialOwnerClient) Interceptors

func (c *BeneficialOwnerClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*BeneficialOwnerClient) MapCreateBulk

func (c *BeneficialOwnerClient) MapCreateBulk(slice any, setFunc func(*BeneficialOwnerCreate, int)) *BeneficialOwnerCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*BeneficialOwnerClient) Query

Query returns a query builder for BeneficialOwner.

func (*BeneficialOwnerClient) QueryKybProfile

func (c *BeneficialOwnerClient) QueryKybProfile(bo *BeneficialOwner) *KYBProfileQuery

QueryKybProfile queries the kyb_profile edge of a BeneficialOwner.

func (*BeneficialOwnerClient) Update

Update returns an update builder for BeneficialOwner.

func (*BeneficialOwnerClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*BeneficialOwnerClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*BeneficialOwnerClient) Use

func (c *BeneficialOwnerClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `beneficialowner.Hooks(f(g(h())))`.

type BeneficialOwnerCreate

type BeneficialOwnerCreate struct {
	// contains filtered or unexported fields
}

BeneficialOwnerCreate is the builder for creating a BeneficialOwner entity.

func (*BeneficialOwnerCreate) Exec

func (boc *BeneficialOwnerCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*BeneficialOwnerCreate) ExecX

func (boc *BeneficialOwnerCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*BeneficialOwnerCreate) Mutation

Mutation returns the BeneficialOwnerMutation object of the builder.

func (*BeneficialOwnerCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.BeneficialOwner.Create().
	SetFullName(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.BeneficialOwnerUpsert) {
		SetFullName(v+v).
	}).
	Exec(ctx)

func (*BeneficialOwnerCreate) OnConflictColumns

func (boc *BeneficialOwnerCreate) OnConflictColumns(columns ...string) *BeneficialOwnerUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.BeneficialOwner.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*BeneficialOwnerCreate) Save

Save creates the BeneficialOwner in the database.

func (*BeneficialOwnerCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*BeneficialOwnerCreate) SetDateOfBirth

func (boc *BeneficialOwnerCreate) SetDateOfBirth(s string) *BeneficialOwnerCreate

SetDateOfBirth sets the "date_of_birth" field.

func (*BeneficialOwnerCreate) SetFullName

func (boc *BeneficialOwnerCreate) SetFullName(s string) *BeneficialOwnerCreate

SetFullName sets the "full_name" field.

func (*BeneficialOwnerCreate) SetGovernmentIssuedIDType

SetGovernmentIssuedIDType sets the "government_issued_id_type" field.

func (*BeneficialOwnerCreate) SetGovernmentIssuedIDURL

func (boc *BeneficialOwnerCreate) SetGovernmentIssuedIDURL(s string) *BeneficialOwnerCreate

SetGovernmentIssuedIDURL sets the "government_issued_id_url" field.

func (*BeneficialOwnerCreate) SetID

SetID sets the "id" field.

func (*BeneficialOwnerCreate) SetKybProfile

func (boc *BeneficialOwnerCreate) SetKybProfile(k *KYBProfile) *BeneficialOwnerCreate

SetKybProfile sets the "kyb_profile" edge to the KYBProfile entity.

func (*BeneficialOwnerCreate) SetKybProfileID

func (boc *BeneficialOwnerCreate) SetKybProfileID(id uuid.UUID) *BeneficialOwnerCreate

SetKybProfileID sets the "kyb_profile" edge to the KYBProfile entity by ID.

func (*BeneficialOwnerCreate) SetNillableGovernmentIssuedIDType

func (boc *BeneficialOwnerCreate) SetNillableGovernmentIssuedIDType(biit *beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerCreate

SetNillableGovernmentIssuedIDType sets the "government_issued_id_type" field if the given value is not nil.

func (*BeneficialOwnerCreate) SetNillableID

func (boc *BeneficialOwnerCreate) SetNillableID(u *uuid.UUID) *BeneficialOwnerCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*BeneficialOwnerCreate) SetOwnershipPercentage

func (boc *BeneficialOwnerCreate) SetOwnershipPercentage(f float64) *BeneficialOwnerCreate

SetOwnershipPercentage sets the "ownership_percentage" field.

func (*BeneficialOwnerCreate) SetProofOfResidentialAddressURL

func (boc *BeneficialOwnerCreate) SetProofOfResidentialAddressURL(s string) *BeneficialOwnerCreate

SetProofOfResidentialAddressURL sets the "proof_of_residential_address_url" field.

func (*BeneficialOwnerCreate) SetResidentialAddress

func (boc *BeneficialOwnerCreate) SetResidentialAddress(s string) *BeneficialOwnerCreate

SetResidentialAddress sets the "residential_address" field.

type BeneficialOwnerCreateBulk

type BeneficialOwnerCreateBulk struct {
	// contains filtered or unexported fields
}

BeneficialOwnerCreateBulk is the builder for creating many BeneficialOwner entities in bulk.

func (*BeneficialOwnerCreateBulk) Exec

Exec executes the query.

func (*BeneficialOwnerCreateBulk) ExecX

func (bocb *BeneficialOwnerCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*BeneficialOwnerCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.BeneficialOwner.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.BeneficialOwnerUpsert) {
		SetFullName(v+v).
	}).
	Exec(ctx)

func (*BeneficialOwnerCreateBulk) OnConflictColumns

func (bocb *BeneficialOwnerCreateBulk) OnConflictColumns(columns ...string) *BeneficialOwnerUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.BeneficialOwner.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*BeneficialOwnerCreateBulk) Save

Save creates the BeneficialOwner entities in the database.

func (*BeneficialOwnerCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type BeneficialOwnerDelete

type BeneficialOwnerDelete struct {
	// contains filtered or unexported fields
}

BeneficialOwnerDelete is the builder for deleting a BeneficialOwner entity.

func (*BeneficialOwnerDelete) Exec

func (bod *BeneficialOwnerDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*BeneficialOwnerDelete) ExecX

func (bod *BeneficialOwnerDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*BeneficialOwnerDelete) Where

Where appends a list predicates to the BeneficialOwnerDelete builder.

type BeneficialOwnerDeleteOne

type BeneficialOwnerDeleteOne struct {
	// contains filtered or unexported fields
}

BeneficialOwnerDeleteOne is the builder for deleting a single BeneficialOwner entity.

func (*BeneficialOwnerDeleteOne) Exec

Exec executes the deletion query.

func (*BeneficialOwnerDeleteOne) ExecX

func (bodo *BeneficialOwnerDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*BeneficialOwnerDeleteOne) Where

Where appends a list predicates to the BeneficialOwnerDelete builder.

type BeneficialOwnerEdges

type BeneficialOwnerEdges struct {
	// KybProfile holds the value of the kyb_profile edge.
	KybProfile *KYBProfile `json:"kyb_profile,omitempty"`
	// contains filtered or unexported fields
}

BeneficialOwnerEdges holds the relations/edges for other nodes in the graph.

func (BeneficialOwnerEdges) KybProfileOrErr

func (e BeneficialOwnerEdges) KybProfileOrErr() (*KYBProfile, error)

KybProfileOrErr returns the KybProfile value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type BeneficialOwnerGroupBy

type BeneficialOwnerGroupBy struct {
	// contains filtered or unexported fields
}

BeneficialOwnerGroupBy is the group-by builder for BeneficialOwner entities.

func (*BeneficialOwnerGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*BeneficialOwnerGroupBy) Bool

func (s *BeneficialOwnerGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerGroupBy) BoolX

func (s *BeneficialOwnerGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*BeneficialOwnerGroupBy) Bools

func (s *BeneficialOwnerGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerGroupBy) BoolsX

func (s *BeneficialOwnerGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*BeneficialOwnerGroupBy) Float64

func (s *BeneficialOwnerGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerGroupBy) Float64X

func (s *BeneficialOwnerGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*BeneficialOwnerGroupBy) Float64s

func (s *BeneficialOwnerGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerGroupBy) Float64sX

func (s *BeneficialOwnerGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*BeneficialOwnerGroupBy) Int

func (s *BeneficialOwnerGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerGroupBy) IntX

func (s *BeneficialOwnerGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*BeneficialOwnerGroupBy) Ints

func (s *BeneficialOwnerGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerGroupBy) IntsX

func (s *BeneficialOwnerGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*BeneficialOwnerGroupBy) Scan

func (bogb *BeneficialOwnerGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*BeneficialOwnerGroupBy) ScanX

func (s *BeneficialOwnerGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*BeneficialOwnerGroupBy) String

func (s *BeneficialOwnerGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerGroupBy) StringX

func (s *BeneficialOwnerGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*BeneficialOwnerGroupBy) Strings

func (s *BeneficialOwnerGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerGroupBy) StringsX

func (s *BeneficialOwnerGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type BeneficialOwnerMutation

type BeneficialOwnerMutation struct {
	// contains filtered or unexported fields
}

BeneficialOwnerMutation represents an operation that mutates the BeneficialOwner nodes in the graph.

func (*BeneficialOwnerMutation) AddField

func (m *BeneficialOwnerMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*BeneficialOwnerMutation) AddOwnershipPercentage

func (m *BeneficialOwnerMutation) AddOwnershipPercentage(f float64)

AddOwnershipPercentage adds f to the "ownership_percentage" field.

func (*BeneficialOwnerMutation) AddedEdges

func (m *BeneficialOwnerMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*BeneficialOwnerMutation) AddedField

func (m *BeneficialOwnerMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*BeneficialOwnerMutation) AddedFields

func (m *BeneficialOwnerMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*BeneficialOwnerMutation) AddedIDs

func (m *BeneficialOwnerMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*BeneficialOwnerMutation) AddedOwnershipPercentage

func (m *BeneficialOwnerMutation) AddedOwnershipPercentage() (r float64, exists bool)

AddedOwnershipPercentage returns the value that was added to the "ownership_percentage" field in this mutation.

func (*BeneficialOwnerMutation) ClearEdge

func (m *BeneficialOwnerMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*BeneficialOwnerMutation) ClearField

func (m *BeneficialOwnerMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*BeneficialOwnerMutation) ClearGovernmentIssuedIDType

func (m *BeneficialOwnerMutation) ClearGovernmentIssuedIDType()

ClearGovernmentIssuedIDType clears the value of the "government_issued_id_type" field.

func (*BeneficialOwnerMutation) ClearKybProfile

func (m *BeneficialOwnerMutation) ClearKybProfile()

ClearKybProfile clears the "kyb_profile" edge to the KYBProfile entity.

func (*BeneficialOwnerMutation) ClearedEdges

func (m *BeneficialOwnerMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*BeneficialOwnerMutation) ClearedFields

func (m *BeneficialOwnerMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (BeneficialOwnerMutation) Client

func (m BeneficialOwnerMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*BeneficialOwnerMutation) DateOfBirth

func (m *BeneficialOwnerMutation) DateOfBirth() (r string, exists bool)

DateOfBirth returns the value of the "date_of_birth" field in the mutation.

func (*BeneficialOwnerMutation) EdgeCleared

func (m *BeneficialOwnerMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*BeneficialOwnerMutation) Field

func (m *BeneficialOwnerMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*BeneficialOwnerMutation) FieldCleared

func (m *BeneficialOwnerMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*BeneficialOwnerMutation) Fields

func (m *BeneficialOwnerMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*BeneficialOwnerMutation) FullName

func (m *BeneficialOwnerMutation) FullName() (r string, exists bool)

FullName returns the value of the "full_name" field in the mutation.

func (*BeneficialOwnerMutation) GovernmentIssuedIDType

func (m *BeneficialOwnerMutation) GovernmentIssuedIDType() (r beneficialowner.GovernmentIssuedIDType, exists bool)

GovernmentIssuedIDType returns the value of the "government_issued_id_type" field in the mutation.

func (*BeneficialOwnerMutation) GovernmentIssuedIDTypeCleared

func (m *BeneficialOwnerMutation) GovernmentIssuedIDTypeCleared() bool

GovernmentIssuedIDTypeCleared returns if the "government_issued_id_type" field was cleared in this mutation.

func (*BeneficialOwnerMutation) GovernmentIssuedIDURL

func (m *BeneficialOwnerMutation) GovernmentIssuedIDURL() (r string, exists bool)

GovernmentIssuedIDURL returns the value of the "government_issued_id_url" field in the mutation.

func (*BeneficialOwnerMutation) ID

func (m *BeneficialOwnerMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*BeneficialOwnerMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*BeneficialOwnerMutation) KybProfileCleared

func (m *BeneficialOwnerMutation) KybProfileCleared() bool

KybProfileCleared reports if the "kyb_profile" edge to the KYBProfile entity was cleared.

func (*BeneficialOwnerMutation) KybProfileID

func (m *BeneficialOwnerMutation) KybProfileID() (id uuid.UUID, exists bool)

KybProfileID returns the "kyb_profile" edge ID in the mutation.

func (*BeneficialOwnerMutation) KybProfileIDs

func (m *BeneficialOwnerMutation) KybProfileIDs() (ids []uuid.UUID)

KybProfileIDs returns the "kyb_profile" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use KybProfileID instead. It exists only for internal usage by the builders.

func (*BeneficialOwnerMutation) OldDateOfBirth

func (m *BeneficialOwnerMutation) OldDateOfBirth(ctx context.Context) (v string, err error)

OldDateOfBirth returns the old "date_of_birth" field's value of the BeneficialOwner entity. If the BeneficialOwner object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*BeneficialOwnerMutation) OldField

func (m *BeneficialOwnerMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*BeneficialOwnerMutation) OldFullName

func (m *BeneficialOwnerMutation) OldFullName(ctx context.Context) (v string, err error)

OldFullName returns the old "full_name" field's value of the BeneficialOwner entity. If the BeneficialOwner object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*BeneficialOwnerMutation) OldGovernmentIssuedIDType

func (m *BeneficialOwnerMutation) OldGovernmentIssuedIDType(ctx context.Context) (v beneficialowner.GovernmentIssuedIDType, err error)

OldGovernmentIssuedIDType returns the old "government_issued_id_type" field's value of the BeneficialOwner entity. If the BeneficialOwner object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*BeneficialOwnerMutation) OldGovernmentIssuedIDURL

func (m *BeneficialOwnerMutation) OldGovernmentIssuedIDURL(ctx context.Context) (v string, err error)

OldGovernmentIssuedIDURL returns the old "government_issued_id_url" field's value of the BeneficialOwner entity. If the BeneficialOwner object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*BeneficialOwnerMutation) OldOwnershipPercentage

func (m *BeneficialOwnerMutation) OldOwnershipPercentage(ctx context.Context) (v float64, err error)

OldOwnershipPercentage returns the old "ownership_percentage" field's value of the BeneficialOwner entity. If the BeneficialOwner object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*BeneficialOwnerMutation) OldProofOfResidentialAddressURL

func (m *BeneficialOwnerMutation) OldProofOfResidentialAddressURL(ctx context.Context) (v string, err error)

OldProofOfResidentialAddressURL returns the old "proof_of_residential_address_url" field's value of the BeneficialOwner entity. If the BeneficialOwner object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*BeneficialOwnerMutation) OldResidentialAddress

func (m *BeneficialOwnerMutation) OldResidentialAddress(ctx context.Context) (v string, err error)

OldResidentialAddress returns the old "residential_address" field's value of the BeneficialOwner entity. If the BeneficialOwner object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*BeneficialOwnerMutation) Op

func (m *BeneficialOwnerMutation) Op() Op

Op returns the operation name.

func (*BeneficialOwnerMutation) OwnershipPercentage

func (m *BeneficialOwnerMutation) OwnershipPercentage() (r float64, exists bool)

OwnershipPercentage returns the value of the "ownership_percentage" field in the mutation.

func (*BeneficialOwnerMutation) ProofOfResidentialAddressURL

func (m *BeneficialOwnerMutation) ProofOfResidentialAddressURL() (r string, exists bool)

ProofOfResidentialAddressURL returns the value of the "proof_of_residential_address_url" field in the mutation.

func (*BeneficialOwnerMutation) RemovedEdges

func (m *BeneficialOwnerMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*BeneficialOwnerMutation) RemovedIDs

func (m *BeneficialOwnerMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*BeneficialOwnerMutation) ResetDateOfBirth

func (m *BeneficialOwnerMutation) ResetDateOfBirth()

ResetDateOfBirth resets all changes to the "date_of_birth" field.

func (*BeneficialOwnerMutation) ResetEdge

func (m *BeneficialOwnerMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*BeneficialOwnerMutation) ResetField

func (m *BeneficialOwnerMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*BeneficialOwnerMutation) ResetFullName

func (m *BeneficialOwnerMutation) ResetFullName()

ResetFullName resets all changes to the "full_name" field.

func (*BeneficialOwnerMutation) ResetGovernmentIssuedIDType

func (m *BeneficialOwnerMutation) ResetGovernmentIssuedIDType()

ResetGovernmentIssuedIDType resets all changes to the "government_issued_id_type" field.

func (*BeneficialOwnerMutation) ResetGovernmentIssuedIDURL

func (m *BeneficialOwnerMutation) ResetGovernmentIssuedIDURL()

ResetGovernmentIssuedIDURL resets all changes to the "government_issued_id_url" field.

func (*BeneficialOwnerMutation) ResetKybProfile

func (m *BeneficialOwnerMutation) ResetKybProfile()

ResetKybProfile resets all changes to the "kyb_profile" edge.

func (*BeneficialOwnerMutation) ResetOwnershipPercentage

func (m *BeneficialOwnerMutation) ResetOwnershipPercentage()

ResetOwnershipPercentage resets all changes to the "ownership_percentage" field.

func (*BeneficialOwnerMutation) ResetProofOfResidentialAddressURL

func (m *BeneficialOwnerMutation) ResetProofOfResidentialAddressURL()

ResetProofOfResidentialAddressURL resets all changes to the "proof_of_residential_address_url" field.

func (*BeneficialOwnerMutation) ResetResidentialAddress

func (m *BeneficialOwnerMutation) ResetResidentialAddress()

ResetResidentialAddress resets all changes to the "residential_address" field.

func (*BeneficialOwnerMutation) ResidentialAddress

func (m *BeneficialOwnerMutation) ResidentialAddress() (r string, exists bool)

ResidentialAddress returns the value of the "residential_address" field in the mutation.

func (*BeneficialOwnerMutation) SetDateOfBirth

func (m *BeneficialOwnerMutation) SetDateOfBirth(s string)

SetDateOfBirth sets the "date_of_birth" field.

func (*BeneficialOwnerMutation) SetField

func (m *BeneficialOwnerMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*BeneficialOwnerMutation) SetFullName

func (m *BeneficialOwnerMutation) SetFullName(s string)

SetFullName sets the "full_name" field.

func (*BeneficialOwnerMutation) SetGovernmentIssuedIDType

func (m *BeneficialOwnerMutation) SetGovernmentIssuedIDType(biit beneficialowner.GovernmentIssuedIDType)

SetGovernmentIssuedIDType sets the "government_issued_id_type" field.

func (*BeneficialOwnerMutation) SetGovernmentIssuedIDURL

func (m *BeneficialOwnerMutation) SetGovernmentIssuedIDURL(s string)

SetGovernmentIssuedIDURL sets the "government_issued_id_url" field.

func (*BeneficialOwnerMutation) SetID

func (m *BeneficialOwnerMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of BeneficialOwner entities.

func (*BeneficialOwnerMutation) SetKybProfileID

func (m *BeneficialOwnerMutation) SetKybProfileID(id uuid.UUID)

SetKybProfileID sets the "kyb_profile" edge to the KYBProfile entity by id.

func (*BeneficialOwnerMutation) SetOp

func (m *BeneficialOwnerMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*BeneficialOwnerMutation) SetOwnershipPercentage

func (m *BeneficialOwnerMutation) SetOwnershipPercentage(f float64)

SetOwnershipPercentage sets the "ownership_percentage" field.

func (*BeneficialOwnerMutation) SetProofOfResidentialAddressURL

func (m *BeneficialOwnerMutation) SetProofOfResidentialAddressURL(s string)

SetProofOfResidentialAddressURL sets the "proof_of_residential_address_url" field.

func (*BeneficialOwnerMutation) SetResidentialAddress

func (m *BeneficialOwnerMutation) SetResidentialAddress(s string)

SetResidentialAddress sets the "residential_address" field.

func (BeneficialOwnerMutation) Tx

func (m BeneficialOwnerMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*BeneficialOwnerMutation) Type

func (m *BeneficialOwnerMutation) Type() string

Type returns the node type of this mutation (BeneficialOwner).

func (*BeneficialOwnerMutation) Where

Where appends a list predicates to the BeneficialOwnerMutation builder.

func (*BeneficialOwnerMutation) WhereP

func (m *BeneficialOwnerMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the BeneficialOwnerMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type BeneficialOwnerQuery

type BeneficialOwnerQuery struct {
	// contains filtered or unexported fields
}

BeneficialOwnerQuery is the builder for querying BeneficialOwner entities.

func (*BeneficialOwnerQuery) Aggregate

Aggregate returns a BeneficialOwnerSelect configured with the given aggregations.

func (*BeneficialOwnerQuery) All

All executes the query and returns a list of BeneficialOwners.

func (*BeneficialOwnerQuery) AllX

AllX is like All, but panics if an error occurs.

func (*BeneficialOwnerQuery) Clone

Clone returns a duplicate of the BeneficialOwnerQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*BeneficialOwnerQuery) Count

func (boq *BeneficialOwnerQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*BeneficialOwnerQuery) CountX

func (boq *BeneficialOwnerQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*BeneficialOwnerQuery) Exist

func (boq *BeneficialOwnerQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*BeneficialOwnerQuery) ExistX

func (boq *BeneficialOwnerQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*BeneficialOwnerQuery) First

First returns the first BeneficialOwner entity from the query. Returns a *NotFoundError when no BeneficialOwner was found.

func (*BeneficialOwnerQuery) FirstID

func (boq *BeneficialOwnerQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first BeneficialOwner ID from the query. Returns a *NotFoundError when no BeneficialOwner ID was found.

func (*BeneficialOwnerQuery) FirstIDX

func (boq *BeneficialOwnerQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*BeneficialOwnerQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*BeneficialOwnerQuery) GroupBy

func (boq *BeneficialOwnerQuery) GroupBy(field string, fields ...string) *BeneficialOwnerGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	FullName string `json:"full_name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.BeneficialOwner.Query().
	GroupBy(beneficialowner.FieldFullName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*BeneficialOwnerQuery) IDs

func (boq *BeneficialOwnerQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of BeneficialOwner IDs.

func (*BeneficialOwnerQuery) IDsX

func (boq *BeneficialOwnerQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*BeneficialOwnerQuery) Limit

func (boq *BeneficialOwnerQuery) Limit(limit int) *BeneficialOwnerQuery

Limit the number of records to be returned by this query.

func (*BeneficialOwnerQuery) Offset

func (boq *BeneficialOwnerQuery) Offset(offset int) *BeneficialOwnerQuery

Offset to start from.

func (*BeneficialOwnerQuery) Only

Only returns a single BeneficialOwner entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one BeneficialOwner entity is found. Returns a *NotFoundError when no BeneficialOwner entities are found.

func (*BeneficialOwnerQuery) OnlyID

func (boq *BeneficialOwnerQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only BeneficialOwner ID in the query. Returns a *NotSingularError when more than one BeneficialOwner ID is found. Returns a *NotFoundError when no entities are found.

func (*BeneficialOwnerQuery) OnlyIDX

func (boq *BeneficialOwnerQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*BeneficialOwnerQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*BeneficialOwnerQuery) Order

Order specifies how the records should be ordered.

func (*BeneficialOwnerQuery) QueryKybProfile

func (boq *BeneficialOwnerQuery) QueryKybProfile() *KYBProfileQuery

QueryKybProfile chains the current query on the "kyb_profile" edge.

func (*BeneficialOwnerQuery) Select

func (boq *BeneficialOwnerQuery) Select(fields ...string) *BeneficialOwnerSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	FullName string `json:"full_name,omitempty"`
}

client.BeneficialOwner.Query().
	Select(beneficialowner.FieldFullName).
	Scan(ctx, &v)

func (*BeneficialOwnerQuery) Unique

func (boq *BeneficialOwnerQuery) Unique(unique bool) *BeneficialOwnerQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*BeneficialOwnerQuery) Where

Where adds a new predicate for the BeneficialOwnerQuery builder.

func (*BeneficialOwnerQuery) WithKybProfile

func (boq *BeneficialOwnerQuery) WithKybProfile(opts ...func(*KYBProfileQuery)) *BeneficialOwnerQuery

WithKybProfile tells the query-builder to eager-load the nodes that are connected to the "kyb_profile" edge. The optional arguments are used to configure the query builder of the edge.

type BeneficialOwnerSelect

type BeneficialOwnerSelect struct {
	*BeneficialOwnerQuery
	// contains filtered or unexported fields
}

BeneficialOwnerSelect is the builder for selecting fields of BeneficialOwner entities.

func (*BeneficialOwnerSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*BeneficialOwnerSelect) Bool

func (s *BeneficialOwnerSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerSelect) BoolX

func (s *BeneficialOwnerSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*BeneficialOwnerSelect) Bools

func (s *BeneficialOwnerSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerSelect) BoolsX

func (s *BeneficialOwnerSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*BeneficialOwnerSelect) Float64

func (s *BeneficialOwnerSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerSelect) Float64X

func (s *BeneficialOwnerSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*BeneficialOwnerSelect) Float64s

func (s *BeneficialOwnerSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerSelect) Float64sX

func (s *BeneficialOwnerSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*BeneficialOwnerSelect) Int

func (s *BeneficialOwnerSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerSelect) IntX

func (s *BeneficialOwnerSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*BeneficialOwnerSelect) Ints

func (s *BeneficialOwnerSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerSelect) IntsX

func (s *BeneficialOwnerSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*BeneficialOwnerSelect) Scan

func (bos *BeneficialOwnerSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*BeneficialOwnerSelect) ScanX

func (s *BeneficialOwnerSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*BeneficialOwnerSelect) String

func (s *BeneficialOwnerSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerSelect) StringX

func (s *BeneficialOwnerSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*BeneficialOwnerSelect) Strings

func (s *BeneficialOwnerSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*BeneficialOwnerSelect) StringsX

func (s *BeneficialOwnerSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type BeneficialOwnerUpdate

type BeneficialOwnerUpdate struct {
	// contains filtered or unexported fields
}

BeneficialOwnerUpdate is the builder for updating BeneficialOwner entities.

func (*BeneficialOwnerUpdate) AddOwnershipPercentage

func (bou *BeneficialOwnerUpdate) AddOwnershipPercentage(f float64) *BeneficialOwnerUpdate

AddOwnershipPercentage adds f to the "ownership_percentage" field.

func (*BeneficialOwnerUpdate) ClearGovernmentIssuedIDType

func (bou *BeneficialOwnerUpdate) ClearGovernmentIssuedIDType() *BeneficialOwnerUpdate

ClearGovernmentIssuedIDType clears the value of the "government_issued_id_type" field.

func (*BeneficialOwnerUpdate) ClearKybProfile

func (bou *BeneficialOwnerUpdate) ClearKybProfile() *BeneficialOwnerUpdate

ClearKybProfile clears the "kyb_profile" edge to the KYBProfile entity.

func (*BeneficialOwnerUpdate) Exec

func (bou *BeneficialOwnerUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*BeneficialOwnerUpdate) ExecX

func (bou *BeneficialOwnerUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*BeneficialOwnerUpdate) Mutation

Mutation returns the BeneficialOwnerMutation object of the builder.

func (*BeneficialOwnerUpdate) Save

func (bou *BeneficialOwnerUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*BeneficialOwnerUpdate) SaveX

func (bou *BeneficialOwnerUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*BeneficialOwnerUpdate) SetDateOfBirth

func (bou *BeneficialOwnerUpdate) SetDateOfBirth(s string) *BeneficialOwnerUpdate

SetDateOfBirth sets the "date_of_birth" field.

func (*BeneficialOwnerUpdate) SetFullName

func (bou *BeneficialOwnerUpdate) SetFullName(s string) *BeneficialOwnerUpdate

SetFullName sets the "full_name" field.

func (*BeneficialOwnerUpdate) SetGovernmentIssuedIDType

SetGovernmentIssuedIDType sets the "government_issued_id_type" field.

func (*BeneficialOwnerUpdate) SetGovernmentIssuedIDURL

func (bou *BeneficialOwnerUpdate) SetGovernmentIssuedIDURL(s string) *BeneficialOwnerUpdate

SetGovernmentIssuedIDURL sets the "government_issued_id_url" field.

func (*BeneficialOwnerUpdate) SetKybProfile

func (bou *BeneficialOwnerUpdate) SetKybProfile(k *KYBProfile) *BeneficialOwnerUpdate

SetKybProfile sets the "kyb_profile" edge to the KYBProfile entity.

func (*BeneficialOwnerUpdate) SetKybProfileID

func (bou *BeneficialOwnerUpdate) SetKybProfileID(id uuid.UUID) *BeneficialOwnerUpdate

SetKybProfileID sets the "kyb_profile" edge to the KYBProfile entity by ID.

func (*BeneficialOwnerUpdate) SetNillableDateOfBirth

func (bou *BeneficialOwnerUpdate) SetNillableDateOfBirth(s *string) *BeneficialOwnerUpdate

SetNillableDateOfBirth sets the "date_of_birth" field if the given value is not nil.

func (*BeneficialOwnerUpdate) SetNillableFullName

func (bou *BeneficialOwnerUpdate) SetNillableFullName(s *string) *BeneficialOwnerUpdate

SetNillableFullName sets the "full_name" field if the given value is not nil.

func (*BeneficialOwnerUpdate) SetNillableGovernmentIssuedIDType

func (bou *BeneficialOwnerUpdate) SetNillableGovernmentIssuedIDType(biit *beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpdate

SetNillableGovernmentIssuedIDType sets the "government_issued_id_type" field if the given value is not nil.

func (*BeneficialOwnerUpdate) SetNillableGovernmentIssuedIDURL

func (bou *BeneficialOwnerUpdate) SetNillableGovernmentIssuedIDURL(s *string) *BeneficialOwnerUpdate

SetNillableGovernmentIssuedIDURL sets the "government_issued_id_url" field if the given value is not nil.

func (*BeneficialOwnerUpdate) SetNillableOwnershipPercentage

func (bou *BeneficialOwnerUpdate) SetNillableOwnershipPercentage(f *float64) *BeneficialOwnerUpdate

SetNillableOwnershipPercentage sets the "ownership_percentage" field if the given value is not nil.

func (*BeneficialOwnerUpdate) SetNillableProofOfResidentialAddressURL

func (bou *BeneficialOwnerUpdate) SetNillableProofOfResidentialAddressURL(s *string) *BeneficialOwnerUpdate

SetNillableProofOfResidentialAddressURL sets the "proof_of_residential_address_url" field if the given value is not nil.

func (*BeneficialOwnerUpdate) SetNillableResidentialAddress

func (bou *BeneficialOwnerUpdate) SetNillableResidentialAddress(s *string) *BeneficialOwnerUpdate

SetNillableResidentialAddress sets the "residential_address" field if the given value is not nil.

func (*BeneficialOwnerUpdate) SetOwnershipPercentage

func (bou *BeneficialOwnerUpdate) SetOwnershipPercentage(f float64) *BeneficialOwnerUpdate

SetOwnershipPercentage sets the "ownership_percentage" field.

func (*BeneficialOwnerUpdate) SetProofOfResidentialAddressURL

func (bou *BeneficialOwnerUpdate) SetProofOfResidentialAddressURL(s string) *BeneficialOwnerUpdate

SetProofOfResidentialAddressURL sets the "proof_of_residential_address_url" field.

func (*BeneficialOwnerUpdate) SetResidentialAddress

func (bou *BeneficialOwnerUpdate) SetResidentialAddress(s string) *BeneficialOwnerUpdate

SetResidentialAddress sets the "residential_address" field.

func (*BeneficialOwnerUpdate) Where

Where appends a list predicates to the BeneficialOwnerUpdate builder.

type BeneficialOwnerUpdateOne

type BeneficialOwnerUpdateOne struct {
	// contains filtered or unexported fields
}

BeneficialOwnerUpdateOne is the builder for updating a single BeneficialOwner entity.

func (*BeneficialOwnerUpdateOne) AddOwnershipPercentage

func (bouo *BeneficialOwnerUpdateOne) AddOwnershipPercentage(f float64) *BeneficialOwnerUpdateOne

AddOwnershipPercentage adds f to the "ownership_percentage" field.

func (*BeneficialOwnerUpdateOne) ClearGovernmentIssuedIDType

func (bouo *BeneficialOwnerUpdateOne) ClearGovernmentIssuedIDType() *BeneficialOwnerUpdateOne

ClearGovernmentIssuedIDType clears the value of the "government_issued_id_type" field.

func (*BeneficialOwnerUpdateOne) ClearKybProfile

func (bouo *BeneficialOwnerUpdateOne) ClearKybProfile() *BeneficialOwnerUpdateOne

ClearKybProfile clears the "kyb_profile" edge to the KYBProfile entity.

func (*BeneficialOwnerUpdateOne) Exec

Exec executes the query on the entity.

func (*BeneficialOwnerUpdateOne) ExecX

func (bouo *BeneficialOwnerUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*BeneficialOwnerUpdateOne) Mutation

Mutation returns the BeneficialOwnerMutation object of the builder.

func (*BeneficialOwnerUpdateOne) Save

Save executes the query and returns the updated BeneficialOwner entity.

func (*BeneficialOwnerUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*BeneficialOwnerUpdateOne) Select

func (bouo *BeneficialOwnerUpdateOne) Select(field string, fields ...string) *BeneficialOwnerUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*BeneficialOwnerUpdateOne) SetDateOfBirth

func (bouo *BeneficialOwnerUpdateOne) SetDateOfBirth(s string) *BeneficialOwnerUpdateOne

SetDateOfBirth sets the "date_of_birth" field.

func (*BeneficialOwnerUpdateOne) SetFullName

SetFullName sets the "full_name" field.

func (*BeneficialOwnerUpdateOne) SetGovernmentIssuedIDType

SetGovernmentIssuedIDType sets the "government_issued_id_type" field.

func (*BeneficialOwnerUpdateOne) SetGovernmentIssuedIDURL

func (bouo *BeneficialOwnerUpdateOne) SetGovernmentIssuedIDURL(s string) *BeneficialOwnerUpdateOne

SetGovernmentIssuedIDURL sets the "government_issued_id_url" field.

func (*BeneficialOwnerUpdateOne) SetKybProfile

SetKybProfile sets the "kyb_profile" edge to the KYBProfile entity.

func (*BeneficialOwnerUpdateOne) SetKybProfileID

func (bouo *BeneficialOwnerUpdateOne) SetKybProfileID(id uuid.UUID) *BeneficialOwnerUpdateOne

SetKybProfileID sets the "kyb_profile" edge to the KYBProfile entity by ID.

func (*BeneficialOwnerUpdateOne) SetNillableDateOfBirth

func (bouo *BeneficialOwnerUpdateOne) SetNillableDateOfBirth(s *string) *BeneficialOwnerUpdateOne

SetNillableDateOfBirth sets the "date_of_birth" field if the given value is not nil.

func (*BeneficialOwnerUpdateOne) SetNillableFullName

func (bouo *BeneficialOwnerUpdateOne) SetNillableFullName(s *string) *BeneficialOwnerUpdateOne

SetNillableFullName sets the "full_name" field if the given value is not nil.

func (*BeneficialOwnerUpdateOne) SetNillableGovernmentIssuedIDType

func (bouo *BeneficialOwnerUpdateOne) SetNillableGovernmentIssuedIDType(biit *beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpdateOne

SetNillableGovernmentIssuedIDType sets the "government_issued_id_type" field if the given value is not nil.

func (*BeneficialOwnerUpdateOne) SetNillableGovernmentIssuedIDURL

func (bouo *BeneficialOwnerUpdateOne) SetNillableGovernmentIssuedIDURL(s *string) *BeneficialOwnerUpdateOne

SetNillableGovernmentIssuedIDURL sets the "government_issued_id_url" field if the given value is not nil.

func (*BeneficialOwnerUpdateOne) SetNillableOwnershipPercentage

func (bouo *BeneficialOwnerUpdateOne) SetNillableOwnershipPercentage(f *float64) *BeneficialOwnerUpdateOne

SetNillableOwnershipPercentage sets the "ownership_percentage" field if the given value is not nil.

func (*BeneficialOwnerUpdateOne) SetNillableProofOfResidentialAddressURL

func (bouo *BeneficialOwnerUpdateOne) SetNillableProofOfResidentialAddressURL(s *string) *BeneficialOwnerUpdateOne

SetNillableProofOfResidentialAddressURL sets the "proof_of_residential_address_url" field if the given value is not nil.

func (*BeneficialOwnerUpdateOne) SetNillableResidentialAddress

func (bouo *BeneficialOwnerUpdateOne) SetNillableResidentialAddress(s *string) *BeneficialOwnerUpdateOne

SetNillableResidentialAddress sets the "residential_address" field if the given value is not nil.

func (*BeneficialOwnerUpdateOne) SetOwnershipPercentage

func (bouo *BeneficialOwnerUpdateOne) SetOwnershipPercentage(f float64) *BeneficialOwnerUpdateOne

SetOwnershipPercentage sets the "ownership_percentage" field.

func (*BeneficialOwnerUpdateOne) SetProofOfResidentialAddressURL

func (bouo *BeneficialOwnerUpdateOne) SetProofOfResidentialAddressURL(s string) *BeneficialOwnerUpdateOne

SetProofOfResidentialAddressURL sets the "proof_of_residential_address_url" field.

func (*BeneficialOwnerUpdateOne) SetResidentialAddress

func (bouo *BeneficialOwnerUpdateOne) SetResidentialAddress(s string) *BeneficialOwnerUpdateOne

SetResidentialAddress sets the "residential_address" field.

func (*BeneficialOwnerUpdateOne) Where

Where appends a list predicates to the BeneficialOwnerUpdate builder.

type BeneficialOwnerUpsert

type BeneficialOwnerUpsert struct {
	*sql.UpdateSet
}

BeneficialOwnerUpsert is the "OnConflict" setter.

func (*BeneficialOwnerUpsert) AddOwnershipPercentage

func (u *BeneficialOwnerUpsert) AddOwnershipPercentage(v float64) *BeneficialOwnerUpsert

AddOwnershipPercentage adds v to the "ownership_percentage" field.

func (*BeneficialOwnerUpsert) ClearGovernmentIssuedIDType

func (u *BeneficialOwnerUpsert) ClearGovernmentIssuedIDType() *BeneficialOwnerUpsert

ClearGovernmentIssuedIDType clears the value of the "government_issued_id_type" field.

func (*BeneficialOwnerUpsert) SetDateOfBirth

func (u *BeneficialOwnerUpsert) SetDateOfBirth(v string) *BeneficialOwnerUpsert

SetDateOfBirth sets the "date_of_birth" field.

func (*BeneficialOwnerUpsert) SetFullName

SetFullName sets the "full_name" field.

func (*BeneficialOwnerUpsert) SetGovernmentIssuedIDType

SetGovernmentIssuedIDType sets the "government_issued_id_type" field.

func (*BeneficialOwnerUpsert) SetGovernmentIssuedIDURL

func (u *BeneficialOwnerUpsert) SetGovernmentIssuedIDURL(v string) *BeneficialOwnerUpsert

SetGovernmentIssuedIDURL sets the "government_issued_id_url" field.

func (*BeneficialOwnerUpsert) SetOwnershipPercentage

func (u *BeneficialOwnerUpsert) SetOwnershipPercentage(v float64) *BeneficialOwnerUpsert

SetOwnershipPercentage sets the "ownership_percentage" field.

func (*BeneficialOwnerUpsert) SetProofOfResidentialAddressURL

func (u *BeneficialOwnerUpsert) SetProofOfResidentialAddressURL(v string) *BeneficialOwnerUpsert

SetProofOfResidentialAddressURL sets the "proof_of_residential_address_url" field.

func (*BeneficialOwnerUpsert) SetResidentialAddress

func (u *BeneficialOwnerUpsert) SetResidentialAddress(v string) *BeneficialOwnerUpsert

SetResidentialAddress sets the "residential_address" field.

func (*BeneficialOwnerUpsert) UpdateDateOfBirth

func (u *BeneficialOwnerUpsert) UpdateDateOfBirth() *BeneficialOwnerUpsert

UpdateDateOfBirth sets the "date_of_birth" field to the value that was provided on create.

func (*BeneficialOwnerUpsert) UpdateFullName

func (u *BeneficialOwnerUpsert) UpdateFullName() *BeneficialOwnerUpsert

UpdateFullName sets the "full_name" field to the value that was provided on create.

func (*BeneficialOwnerUpsert) UpdateGovernmentIssuedIDType

func (u *BeneficialOwnerUpsert) UpdateGovernmentIssuedIDType() *BeneficialOwnerUpsert

UpdateGovernmentIssuedIDType sets the "government_issued_id_type" field to the value that was provided on create.

func (*BeneficialOwnerUpsert) UpdateGovernmentIssuedIDURL

func (u *BeneficialOwnerUpsert) UpdateGovernmentIssuedIDURL() *BeneficialOwnerUpsert

UpdateGovernmentIssuedIDURL sets the "government_issued_id_url" field to the value that was provided on create.

func (*BeneficialOwnerUpsert) UpdateOwnershipPercentage

func (u *BeneficialOwnerUpsert) UpdateOwnershipPercentage() *BeneficialOwnerUpsert

UpdateOwnershipPercentage sets the "ownership_percentage" field to the value that was provided on create.

func (*BeneficialOwnerUpsert) UpdateProofOfResidentialAddressURL

func (u *BeneficialOwnerUpsert) UpdateProofOfResidentialAddressURL() *BeneficialOwnerUpsert

UpdateProofOfResidentialAddressURL sets the "proof_of_residential_address_url" field to the value that was provided on create.

func (*BeneficialOwnerUpsert) UpdateResidentialAddress

func (u *BeneficialOwnerUpsert) UpdateResidentialAddress() *BeneficialOwnerUpsert

UpdateResidentialAddress sets the "residential_address" field to the value that was provided on create.

type BeneficialOwnerUpsertBulk

type BeneficialOwnerUpsertBulk struct {
	// contains filtered or unexported fields
}

BeneficialOwnerUpsertBulk is the builder for "upsert"-ing a bulk of BeneficialOwner nodes.

func (*BeneficialOwnerUpsertBulk) AddOwnershipPercentage

func (u *BeneficialOwnerUpsertBulk) AddOwnershipPercentage(v float64) *BeneficialOwnerUpsertBulk

AddOwnershipPercentage adds v to the "ownership_percentage" field.

func (*BeneficialOwnerUpsertBulk) ClearGovernmentIssuedIDType

func (u *BeneficialOwnerUpsertBulk) ClearGovernmentIssuedIDType() *BeneficialOwnerUpsertBulk

ClearGovernmentIssuedIDType clears the value of the "government_issued_id_type" field.

func (*BeneficialOwnerUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*BeneficialOwnerUpsertBulk) Exec

Exec executes the query.

func (*BeneficialOwnerUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*BeneficialOwnerUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.BeneficialOwner.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*BeneficialOwnerUpsertBulk) SetDateOfBirth

SetDateOfBirth sets the "date_of_birth" field.

func (*BeneficialOwnerUpsertBulk) SetFullName

SetFullName sets the "full_name" field.

func (*BeneficialOwnerUpsertBulk) SetGovernmentIssuedIDType

SetGovernmentIssuedIDType sets the "government_issued_id_type" field.

func (*BeneficialOwnerUpsertBulk) SetGovernmentIssuedIDURL

func (u *BeneficialOwnerUpsertBulk) SetGovernmentIssuedIDURL(v string) *BeneficialOwnerUpsertBulk

SetGovernmentIssuedIDURL sets the "government_issued_id_url" field.

func (*BeneficialOwnerUpsertBulk) SetOwnershipPercentage

func (u *BeneficialOwnerUpsertBulk) SetOwnershipPercentage(v float64) *BeneficialOwnerUpsertBulk

SetOwnershipPercentage sets the "ownership_percentage" field.

func (*BeneficialOwnerUpsertBulk) SetProofOfResidentialAddressURL

func (u *BeneficialOwnerUpsertBulk) SetProofOfResidentialAddressURL(v string) *BeneficialOwnerUpsertBulk

SetProofOfResidentialAddressURL sets the "proof_of_residential_address_url" field.

func (*BeneficialOwnerUpsertBulk) SetResidentialAddress

func (u *BeneficialOwnerUpsertBulk) SetResidentialAddress(v string) *BeneficialOwnerUpsertBulk

SetResidentialAddress sets the "residential_address" field.

func (*BeneficialOwnerUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the BeneficialOwnerCreateBulk.OnConflict documentation for more info.

func (*BeneficialOwnerUpsertBulk) UpdateDateOfBirth

func (u *BeneficialOwnerUpsertBulk) UpdateDateOfBirth() *BeneficialOwnerUpsertBulk

UpdateDateOfBirth sets the "date_of_birth" field to the value that was provided on create.

func (*BeneficialOwnerUpsertBulk) UpdateFullName

UpdateFullName sets the "full_name" field to the value that was provided on create.

func (*BeneficialOwnerUpsertBulk) UpdateGovernmentIssuedIDType

func (u *BeneficialOwnerUpsertBulk) UpdateGovernmentIssuedIDType() *BeneficialOwnerUpsertBulk

UpdateGovernmentIssuedIDType sets the "government_issued_id_type" field to the value that was provided on create.

func (*BeneficialOwnerUpsertBulk) UpdateGovernmentIssuedIDURL

func (u *BeneficialOwnerUpsertBulk) UpdateGovernmentIssuedIDURL() *BeneficialOwnerUpsertBulk

UpdateGovernmentIssuedIDURL sets the "government_issued_id_url" field to the value that was provided on create.

func (*BeneficialOwnerUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.BeneficialOwner.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(beneficialowner.FieldID)
		}),
	).
	Exec(ctx)

func (*BeneficialOwnerUpsertBulk) UpdateOwnershipPercentage

func (u *BeneficialOwnerUpsertBulk) UpdateOwnershipPercentage() *BeneficialOwnerUpsertBulk

UpdateOwnershipPercentage sets the "ownership_percentage" field to the value that was provided on create.

func (*BeneficialOwnerUpsertBulk) UpdateProofOfResidentialAddressURL

func (u *BeneficialOwnerUpsertBulk) UpdateProofOfResidentialAddressURL() *BeneficialOwnerUpsertBulk

UpdateProofOfResidentialAddressURL sets the "proof_of_residential_address_url" field to the value that was provided on create.

func (*BeneficialOwnerUpsertBulk) UpdateResidentialAddress

func (u *BeneficialOwnerUpsertBulk) UpdateResidentialAddress() *BeneficialOwnerUpsertBulk

UpdateResidentialAddress sets the "residential_address" field to the value that was provided on create.

type BeneficialOwnerUpsertOne

type BeneficialOwnerUpsertOne struct {
	// contains filtered or unexported fields
}

BeneficialOwnerUpsertOne is the builder for "upsert"-ing

one BeneficialOwner node.

func (*BeneficialOwnerUpsertOne) AddOwnershipPercentage

func (u *BeneficialOwnerUpsertOne) AddOwnershipPercentage(v float64) *BeneficialOwnerUpsertOne

AddOwnershipPercentage adds v to the "ownership_percentage" field.

func (*BeneficialOwnerUpsertOne) ClearGovernmentIssuedIDType

func (u *BeneficialOwnerUpsertOne) ClearGovernmentIssuedIDType() *BeneficialOwnerUpsertOne

ClearGovernmentIssuedIDType clears the value of the "government_issued_id_type" field.

func (*BeneficialOwnerUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*BeneficialOwnerUpsertOne) Exec

Exec executes the query.

func (*BeneficialOwnerUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*BeneficialOwnerUpsertOne) ID

func (u *BeneficialOwnerUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*BeneficialOwnerUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*BeneficialOwnerUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.BeneficialOwner.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*BeneficialOwnerUpsertOne) SetDateOfBirth

SetDateOfBirth sets the "date_of_birth" field.

func (*BeneficialOwnerUpsertOne) SetFullName

SetFullName sets the "full_name" field.

func (*BeneficialOwnerUpsertOne) SetGovernmentIssuedIDType

SetGovernmentIssuedIDType sets the "government_issued_id_type" field.

func (*BeneficialOwnerUpsertOne) SetGovernmentIssuedIDURL

func (u *BeneficialOwnerUpsertOne) SetGovernmentIssuedIDURL(v string) *BeneficialOwnerUpsertOne

SetGovernmentIssuedIDURL sets the "government_issued_id_url" field.

func (*BeneficialOwnerUpsertOne) SetOwnershipPercentage

func (u *BeneficialOwnerUpsertOne) SetOwnershipPercentage(v float64) *BeneficialOwnerUpsertOne

SetOwnershipPercentage sets the "ownership_percentage" field.

func (*BeneficialOwnerUpsertOne) SetProofOfResidentialAddressURL

func (u *BeneficialOwnerUpsertOne) SetProofOfResidentialAddressURL(v string) *BeneficialOwnerUpsertOne

SetProofOfResidentialAddressURL sets the "proof_of_residential_address_url" field.

func (*BeneficialOwnerUpsertOne) SetResidentialAddress

func (u *BeneficialOwnerUpsertOne) SetResidentialAddress(v string) *BeneficialOwnerUpsertOne

SetResidentialAddress sets the "residential_address" field.

func (*BeneficialOwnerUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the BeneficialOwnerCreate.OnConflict documentation for more info.

func (*BeneficialOwnerUpsertOne) UpdateDateOfBirth

func (u *BeneficialOwnerUpsertOne) UpdateDateOfBirth() *BeneficialOwnerUpsertOne

UpdateDateOfBirth sets the "date_of_birth" field to the value that was provided on create.

func (*BeneficialOwnerUpsertOne) UpdateFullName

UpdateFullName sets the "full_name" field to the value that was provided on create.

func (*BeneficialOwnerUpsertOne) UpdateGovernmentIssuedIDType

func (u *BeneficialOwnerUpsertOne) UpdateGovernmentIssuedIDType() *BeneficialOwnerUpsertOne

UpdateGovernmentIssuedIDType sets the "government_issued_id_type" field to the value that was provided on create.

func (*BeneficialOwnerUpsertOne) UpdateGovernmentIssuedIDURL

func (u *BeneficialOwnerUpsertOne) UpdateGovernmentIssuedIDURL() *BeneficialOwnerUpsertOne

UpdateGovernmentIssuedIDURL sets the "government_issued_id_url" field to the value that was provided on create.

func (*BeneficialOwnerUpsertOne) UpdateNewValues

func (u *BeneficialOwnerUpsertOne) UpdateNewValues() *BeneficialOwnerUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.BeneficialOwner.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(beneficialowner.FieldID)
		}),
	).
	Exec(ctx)

func (*BeneficialOwnerUpsertOne) UpdateOwnershipPercentage

func (u *BeneficialOwnerUpsertOne) UpdateOwnershipPercentage() *BeneficialOwnerUpsertOne

UpdateOwnershipPercentage sets the "ownership_percentage" field to the value that was provided on create.

func (*BeneficialOwnerUpsertOne) UpdateProofOfResidentialAddressURL

func (u *BeneficialOwnerUpsertOne) UpdateProofOfResidentialAddressURL() *BeneficialOwnerUpsertOne

UpdateProofOfResidentialAddressURL sets the "proof_of_residential_address_url" field to the value that was provided on create.

func (*BeneficialOwnerUpsertOne) UpdateResidentialAddress

func (u *BeneficialOwnerUpsertOne) UpdateResidentialAddress() *BeneficialOwnerUpsertOne

UpdateResidentialAddress sets the "residential_address" field to the value that was provided on create.

type BeneficialOwners

type BeneficialOwners []*BeneficialOwner

BeneficialOwners is a parsable slice of BeneficialOwner.

type Client

type Client struct {

	// Schema is the client for creating, migrating and dropping schema.
	Schema *migrate.Schema
	// APIKey is the client for interacting with the APIKey builders.
	APIKey *APIKeyClient
	// BeneficialOwner is the client for interacting with the BeneficialOwner builders.
	BeneficialOwner *BeneficialOwnerClient
	// FiatCurrency is the client for interacting with the FiatCurrency builders.
	FiatCurrency *FiatCurrencyClient
	// IdentityVerificationRequest is the client for interacting with the IdentityVerificationRequest builders.
	IdentityVerificationRequest *IdentityVerificationRequestClient
	// Institution is the client for interacting with the Institution builders.
	Institution *InstitutionClient
	// KYBProfile is the client for interacting with the KYBProfile builders.
	KYBProfile *KYBProfileClient
	// LinkedAddress is the client for interacting with the LinkedAddress builders.
	LinkedAddress *LinkedAddressClient
	// LockOrderFulfillment is the client for interacting with the LockOrderFulfillment builders.
	LockOrderFulfillment *LockOrderFulfillmentClient
	// LockPaymentOrder is the client for interacting with the LockPaymentOrder builders.
	LockPaymentOrder *LockPaymentOrderClient
	// Network is the client for interacting with the Network builders.
	Network *NetworkClient
	// PaymentOrder is the client for interacting with the PaymentOrder builders.
	PaymentOrder *PaymentOrderClient
	// PaymentOrderRecipient is the client for interacting with the PaymentOrderRecipient builders.
	PaymentOrderRecipient *PaymentOrderRecipientClient
	// PaymentWebhook is the client for interacting with the PaymentWebhook builders.
	PaymentWebhook *PaymentWebhookClient
	// ProviderCurrencies is the client for interacting with the ProviderCurrencies builders.
	ProviderCurrencies *ProviderCurrenciesClient
	// ProviderOrderToken is the client for interacting with the ProviderOrderToken builders.
	ProviderOrderToken *ProviderOrderTokenClient
	// ProviderProfile is the client for interacting with the ProviderProfile builders.
	ProviderProfile *ProviderProfileClient
	// ProviderRating is the client for interacting with the ProviderRating builders.
	ProviderRating *ProviderRatingClient
	// ProvisionBucket is the client for interacting with the ProvisionBucket builders.
	ProvisionBucket *ProvisionBucketClient
	// ReceiveAddress is the client for interacting with the ReceiveAddress builders.
	ReceiveAddress *ReceiveAddressClient
	// SenderOrderToken is the client for interacting with the SenderOrderToken builders.
	SenderOrderToken *SenderOrderTokenClient
	// SenderProfile is the client for interacting with the SenderProfile builders.
	SenderProfile *SenderProfileClient
	// Token is the client for interacting with the Token builders.
	Token *TokenClient
	// TransactionLog is the client for interacting with the TransactionLog builders.
	TransactionLog *TransactionLogClient
	// User is the client for interacting with the User builders.
	User *UserClient
	// VerificationToken is the client for interacting with the VerificationToken builders.
	VerificationToken *VerificationTokenClient
	// WebhookRetryAttempt is the client for interacting with the WebhookRetryAttempt builders.
	WebhookRetryAttempt *WebhookRetryAttemptClient
	// contains filtered or unexported fields
}

Client is the client that holds all ent builders.

func FromContext

func FromContext(ctx context.Context) *Client

FromContext returns a Client stored inside a context, or nil if there isn't one.

func NewClient

func NewClient(opts ...Option) *Client

NewClient creates a new client configured with the given options.

func Open

func Open(driverName, dataSourceName string, options ...Option) (*Client, error)

Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.

func (*Client) BeginTx

func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)

BeginTx returns a transactional client with specified options.

func (*Client) Close

func (c *Client) Close() error

Close closes the database connection and prevents new queries from starting.

func (*Client) Debug

func (c *Client) Debug() *Client

Debug returns a new debug-client. It's used to get verbose logging on specific operations.

client.Debug().
	APIKey.
	Query().
	Count(ctx)

func (*Client) Intercept

func (c *Client) Intercept(interceptors ...Interceptor)

Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.

func (*Client) Mutate

func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)

Mutate implements the ent.Mutator interface.

func (*Client) Tx

func (c *Client) Tx(ctx context.Context) (*Tx, error)

Tx returns a new transactional client. The provided context is used until the transaction is committed or rolled back.

func (*Client) Use

func (c *Client) Use(hooks ...Hook)

Use adds the mutation hooks to all the entity clients. In order to add hooks to a specific client, call: `client.Node.Use(...)`.

type CommitFunc

type CommitFunc func(context.Context, *Tx) error

The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.

func (CommitFunc) Commit

func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error

Commit calls f(ctx, m).

type CommitHook

type CommitHook func(Committer) Committer

CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:

hook := func(next ent.Committer) ent.Committer {
	return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Commit(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Committer

type Committer interface {
	Commit(context.Context, *Tx) error
}

Committer is the interface that wraps the Commit method.

type ConstraintError

type ConstraintError struct {
	// contains filtered or unexported fields
}

ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.

func (ConstraintError) Error

func (e ConstraintError) Error() string

Error implements the error interface.

func (*ConstraintError) Unwrap

func (e *ConstraintError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type FiatCurrencies

type FiatCurrencies []*FiatCurrency

FiatCurrencies is a parsable slice of FiatCurrency.

type FiatCurrency

type FiatCurrency struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Code holds the value of the "code" field.
	Code string `json:"code,omitempty"`
	// ShortName holds the value of the "short_name" field.
	ShortName string `json:"short_name,omitempty"`
	// Decimals holds the value of the "decimals" field.
	Decimals int `json:"decimals,omitempty"`
	// Symbol holds the value of the "symbol" field.
	Symbol string `json:"symbol,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// MarketRate holds the value of the "market_rate" field.
	MarketRate decimal.Decimal `json:"market_rate,omitempty"`
	// IsEnabled holds the value of the "is_enabled" field.
	IsEnabled bool `json:"is_enabled,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the FiatCurrencyQuery when eager-loading is set.
	Edges FiatCurrencyEdges `json:"edges"`
	// contains filtered or unexported fields
}

FiatCurrency is the model entity for the FiatCurrency schema.

func (*FiatCurrency) QueryInstitutions

func (fc *FiatCurrency) QueryInstitutions() *InstitutionQuery

QueryInstitutions queries the "institutions" edge of the FiatCurrency entity.

func (*FiatCurrency) QueryProviderCurrencies added in v0.0.2

func (fc *FiatCurrency) QueryProviderCurrencies() *ProviderCurrenciesQuery

QueryProviderCurrencies queries the "provider_currencies" edge of the FiatCurrency entity.

func (*FiatCurrency) QueryProviderOrderTokens

func (fc *FiatCurrency) QueryProviderOrderTokens() *ProviderOrderTokenQuery

QueryProviderOrderTokens queries the "provider_order_tokens" edge of the FiatCurrency entity.

func (*FiatCurrency) QueryProvisionBuckets

func (fc *FiatCurrency) QueryProvisionBuckets() *ProvisionBucketQuery

QueryProvisionBuckets queries the "provision_buckets" edge of the FiatCurrency entity.

func (*FiatCurrency) String

func (fc *FiatCurrency) String() string

String implements the fmt.Stringer.

func (*FiatCurrency) Unwrap

func (fc *FiatCurrency) Unwrap() *FiatCurrency

Unwrap unwraps the FiatCurrency entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*FiatCurrency) Update

func (fc *FiatCurrency) Update() *FiatCurrencyUpdateOne

Update returns a builder for updating this FiatCurrency. Note that you need to call FiatCurrency.Unwrap() before calling this method if this FiatCurrency was returned from a transaction, and the transaction was committed or rolled back.

func (*FiatCurrency) Value

func (fc *FiatCurrency) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the FiatCurrency. This includes values selected through modifiers, order, etc.

type FiatCurrencyClient

type FiatCurrencyClient struct {
	// contains filtered or unexported fields
}

FiatCurrencyClient is a client for the FiatCurrency schema.

func NewFiatCurrencyClient

func NewFiatCurrencyClient(c config) *FiatCurrencyClient

NewFiatCurrencyClient returns a client for the FiatCurrency from the given config.

func (*FiatCurrencyClient) Create

Create returns a builder for creating a FiatCurrency entity.

func (*FiatCurrencyClient) CreateBulk

func (c *FiatCurrencyClient) CreateBulk(builders ...*FiatCurrencyCreate) *FiatCurrencyCreateBulk

CreateBulk returns a builder for creating a bulk of FiatCurrency entities.

func (*FiatCurrencyClient) Delete

Delete returns a delete builder for FiatCurrency.

func (*FiatCurrencyClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*FiatCurrencyClient) DeleteOneID

func (c *FiatCurrencyClient) DeleteOneID(id uuid.UUID) *FiatCurrencyDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*FiatCurrencyClient) Get

Get returns a FiatCurrency entity by its id.

func (*FiatCurrencyClient) GetX

GetX is like Get, but panics if an error occurs.

func (*FiatCurrencyClient) Hooks

func (c *FiatCurrencyClient) Hooks() []Hook

Hooks returns the client hooks.

func (*FiatCurrencyClient) Intercept

func (c *FiatCurrencyClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `fiatcurrency.Intercept(f(g(h())))`.

func (*FiatCurrencyClient) Interceptors

func (c *FiatCurrencyClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*FiatCurrencyClient) MapCreateBulk

func (c *FiatCurrencyClient) MapCreateBulk(slice any, setFunc func(*FiatCurrencyCreate, int)) *FiatCurrencyCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*FiatCurrencyClient) Query

Query returns a query builder for FiatCurrency.

func (*FiatCurrencyClient) QueryInstitutions

func (c *FiatCurrencyClient) QueryInstitutions(fc *FiatCurrency) *InstitutionQuery

QueryInstitutions queries the institutions edge of a FiatCurrency.

func (*FiatCurrencyClient) QueryProviderCurrencies added in v0.0.2

func (c *FiatCurrencyClient) QueryProviderCurrencies(fc *FiatCurrency) *ProviderCurrenciesQuery

QueryProviderCurrencies queries the provider_currencies edge of a FiatCurrency.

func (*FiatCurrencyClient) QueryProviderOrderTokens

func (c *FiatCurrencyClient) QueryProviderOrderTokens(fc *FiatCurrency) *ProviderOrderTokenQuery

QueryProviderOrderTokens queries the provider_order_tokens edge of a FiatCurrency.

func (*FiatCurrencyClient) QueryProvisionBuckets

func (c *FiatCurrencyClient) QueryProvisionBuckets(fc *FiatCurrency) *ProvisionBucketQuery

QueryProvisionBuckets queries the provision_buckets edge of a FiatCurrency.

func (*FiatCurrencyClient) Update

Update returns an update builder for FiatCurrency.

func (*FiatCurrencyClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*FiatCurrencyClient) UpdateOneID

func (c *FiatCurrencyClient) UpdateOneID(id uuid.UUID) *FiatCurrencyUpdateOne

UpdateOneID returns an update builder for the given id.

func (*FiatCurrencyClient) Use

func (c *FiatCurrencyClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `fiatcurrency.Hooks(f(g(h())))`.

type FiatCurrencyCreate

type FiatCurrencyCreate struct {
	// contains filtered or unexported fields
}

FiatCurrencyCreate is the builder for creating a FiatCurrency entity.

func (*FiatCurrencyCreate) AddInstitutionIDs

func (fcc *FiatCurrencyCreate) AddInstitutionIDs(ids ...int) *FiatCurrencyCreate

AddInstitutionIDs adds the "institutions" edge to the Institution entity by IDs.

func (*FiatCurrencyCreate) AddInstitutions

func (fcc *FiatCurrencyCreate) AddInstitutions(i ...*Institution) *FiatCurrencyCreate

AddInstitutions adds the "institutions" edges to the Institution entity.

func (*FiatCurrencyCreate) AddProviderCurrencies added in v0.0.2

func (fcc *FiatCurrencyCreate) AddProviderCurrencies(p ...*ProviderCurrencies) *FiatCurrencyCreate

AddProviderCurrencies adds the "provider_currencies" edges to the ProviderCurrencies entity.

func (*FiatCurrencyCreate) AddProviderCurrencyIDs added in v0.0.2

func (fcc *FiatCurrencyCreate) AddProviderCurrencyIDs(ids ...uuid.UUID) *FiatCurrencyCreate

AddProviderCurrencyIDs adds the "provider_currencies" edge to the ProviderCurrencies entity by IDs.

func (*FiatCurrencyCreate) AddProviderOrderTokenIDs

func (fcc *FiatCurrencyCreate) AddProviderOrderTokenIDs(ids ...int) *FiatCurrencyCreate

AddProviderOrderTokenIDs adds the "provider_order_tokens" edge to the ProviderOrderToken entity by IDs.

func (*FiatCurrencyCreate) AddProviderOrderTokens

func (fcc *FiatCurrencyCreate) AddProviderOrderTokens(p ...*ProviderOrderToken) *FiatCurrencyCreate

AddProviderOrderTokens adds the "provider_order_tokens" edges to the ProviderOrderToken entity.

func (*FiatCurrencyCreate) AddProvisionBucketIDs

func (fcc *FiatCurrencyCreate) AddProvisionBucketIDs(ids ...int) *FiatCurrencyCreate

AddProvisionBucketIDs adds the "provision_buckets" edge to the ProvisionBucket entity by IDs.

func (*FiatCurrencyCreate) AddProvisionBuckets

func (fcc *FiatCurrencyCreate) AddProvisionBuckets(p ...*ProvisionBucket) *FiatCurrencyCreate

AddProvisionBuckets adds the "provision_buckets" edges to the ProvisionBucket entity.

func (*FiatCurrencyCreate) Exec

func (fcc *FiatCurrencyCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*FiatCurrencyCreate) ExecX

func (fcc *FiatCurrencyCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*FiatCurrencyCreate) Mutation

func (fcc *FiatCurrencyCreate) Mutation() *FiatCurrencyMutation

Mutation returns the FiatCurrencyMutation object of the builder.

func (*FiatCurrencyCreate) OnConflict

func (fcc *FiatCurrencyCreate) OnConflict(opts ...sql.ConflictOption) *FiatCurrencyUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.FiatCurrency.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.FiatCurrencyUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*FiatCurrencyCreate) OnConflictColumns

func (fcc *FiatCurrencyCreate) OnConflictColumns(columns ...string) *FiatCurrencyUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.FiatCurrency.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*FiatCurrencyCreate) Save

Save creates the FiatCurrency in the database.

func (*FiatCurrencyCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*FiatCurrencyCreate) SetCode

func (fcc *FiatCurrencyCreate) SetCode(s string) *FiatCurrencyCreate

SetCode sets the "code" field.

func (*FiatCurrencyCreate) SetCreatedAt

func (fcc *FiatCurrencyCreate) SetCreatedAt(t time.Time) *FiatCurrencyCreate

SetCreatedAt sets the "created_at" field.

func (*FiatCurrencyCreate) SetDecimals

func (fcc *FiatCurrencyCreate) SetDecimals(i int) *FiatCurrencyCreate

SetDecimals sets the "decimals" field.

func (*FiatCurrencyCreate) SetID

SetID sets the "id" field.

func (*FiatCurrencyCreate) SetIsEnabled

func (fcc *FiatCurrencyCreate) SetIsEnabled(b bool) *FiatCurrencyCreate

SetIsEnabled sets the "is_enabled" field.

func (*FiatCurrencyCreate) SetMarketRate

func (fcc *FiatCurrencyCreate) SetMarketRate(d decimal.Decimal) *FiatCurrencyCreate

SetMarketRate sets the "market_rate" field.

func (*FiatCurrencyCreate) SetName

func (fcc *FiatCurrencyCreate) SetName(s string) *FiatCurrencyCreate

SetName sets the "name" field.

func (*FiatCurrencyCreate) SetNillableCreatedAt

func (fcc *FiatCurrencyCreate) SetNillableCreatedAt(t *time.Time) *FiatCurrencyCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*FiatCurrencyCreate) SetNillableDecimals

func (fcc *FiatCurrencyCreate) SetNillableDecimals(i *int) *FiatCurrencyCreate

SetNillableDecimals sets the "decimals" field if the given value is not nil.

func (*FiatCurrencyCreate) SetNillableID

func (fcc *FiatCurrencyCreate) SetNillableID(u *uuid.UUID) *FiatCurrencyCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*FiatCurrencyCreate) SetNillableIsEnabled

func (fcc *FiatCurrencyCreate) SetNillableIsEnabled(b *bool) *FiatCurrencyCreate

SetNillableIsEnabled sets the "is_enabled" field if the given value is not nil.

func (*FiatCurrencyCreate) SetNillableUpdatedAt

func (fcc *FiatCurrencyCreate) SetNillableUpdatedAt(t *time.Time) *FiatCurrencyCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*FiatCurrencyCreate) SetShortName

func (fcc *FiatCurrencyCreate) SetShortName(s string) *FiatCurrencyCreate

SetShortName sets the "short_name" field.

func (*FiatCurrencyCreate) SetSymbol

func (fcc *FiatCurrencyCreate) SetSymbol(s string) *FiatCurrencyCreate

SetSymbol sets the "symbol" field.

func (*FiatCurrencyCreate) SetUpdatedAt

func (fcc *FiatCurrencyCreate) SetUpdatedAt(t time.Time) *FiatCurrencyCreate

SetUpdatedAt sets the "updated_at" field.

type FiatCurrencyCreateBulk

type FiatCurrencyCreateBulk struct {
	// contains filtered or unexported fields
}

FiatCurrencyCreateBulk is the builder for creating many FiatCurrency entities in bulk.

func (*FiatCurrencyCreateBulk) Exec

func (fccb *FiatCurrencyCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*FiatCurrencyCreateBulk) ExecX

func (fccb *FiatCurrencyCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*FiatCurrencyCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.FiatCurrency.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.FiatCurrencyUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*FiatCurrencyCreateBulk) OnConflictColumns

func (fccb *FiatCurrencyCreateBulk) OnConflictColumns(columns ...string) *FiatCurrencyUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.FiatCurrency.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*FiatCurrencyCreateBulk) Save

Save creates the FiatCurrency entities in the database.

func (*FiatCurrencyCreateBulk) SaveX

func (fccb *FiatCurrencyCreateBulk) SaveX(ctx context.Context) []*FiatCurrency

SaveX is like Save, but panics if an error occurs.

type FiatCurrencyDelete

type FiatCurrencyDelete struct {
	// contains filtered or unexported fields
}

FiatCurrencyDelete is the builder for deleting a FiatCurrency entity.

func (*FiatCurrencyDelete) Exec

func (fcd *FiatCurrencyDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*FiatCurrencyDelete) ExecX

func (fcd *FiatCurrencyDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*FiatCurrencyDelete) Where

Where appends a list predicates to the FiatCurrencyDelete builder.

type FiatCurrencyDeleteOne

type FiatCurrencyDeleteOne struct {
	// contains filtered or unexported fields
}

FiatCurrencyDeleteOne is the builder for deleting a single FiatCurrency entity.

func (*FiatCurrencyDeleteOne) Exec

func (fcdo *FiatCurrencyDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*FiatCurrencyDeleteOne) ExecX

func (fcdo *FiatCurrencyDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*FiatCurrencyDeleteOne) Where

Where appends a list predicates to the FiatCurrencyDelete builder.

type FiatCurrencyEdges

type FiatCurrencyEdges struct {
	// ProviderCurrencies holds the value of the provider_currencies edge.
	ProviderCurrencies []*ProviderCurrencies `json:"provider_currencies,omitempty"`
	// ProvisionBuckets holds the value of the provision_buckets edge.
	ProvisionBuckets []*ProvisionBucket `json:"provision_buckets,omitempty"`
	// Institutions holds the value of the institutions edge.
	Institutions []*Institution `json:"institutions,omitempty"`
	// ProviderOrderTokens holds the value of the provider_order_tokens edge.
	ProviderOrderTokens []*ProviderOrderToken `json:"provider_order_tokens,omitempty"`
	// contains filtered or unexported fields
}

FiatCurrencyEdges holds the relations/edges for other nodes in the graph.

func (FiatCurrencyEdges) InstitutionsOrErr

func (e FiatCurrencyEdges) InstitutionsOrErr() ([]*Institution, error)

InstitutionsOrErr returns the Institutions value or an error if the edge was not loaded in eager-loading.

func (FiatCurrencyEdges) ProviderCurrenciesOrErr added in v0.0.2

func (e FiatCurrencyEdges) ProviderCurrenciesOrErr() ([]*ProviderCurrencies, error)

ProviderCurrenciesOrErr returns the ProviderCurrencies value or an error if the edge was not loaded in eager-loading.

func (FiatCurrencyEdges) ProviderOrderTokensOrErr

func (e FiatCurrencyEdges) ProviderOrderTokensOrErr() ([]*ProviderOrderToken, error)

ProviderOrderTokensOrErr returns the ProviderOrderTokens value or an error if the edge was not loaded in eager-loading.

func (FiatCurrencyEdges) ProvisionBucketsOrErr

func (e FiatCurrencyEdges) ProvisionBucketsOrErr() ([]*ProvisionBucket, error)

ProvisionBucketsOrErr returns the ProvisionBuckets value or an error if the edge was not loaded in eager-loading.

type FiatCurrencyGroupBy

type FiatCurrencyGroupBy struct {
	// contains filtered or unexported fields
}

FiatCurrencyGroupBy is the group-by builder for FiatCurrency entities.

func (*FiatCurrencyGroupBy) Aggregate

func (fcgb *FiatCurrencyGroupBy) Aggregate(fns ...AggregateFunc) *FiatCurrencyGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*FiatCurrencyGroupBy) Bool

func (s *FiatCurrencyGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FiatCurrencyGroupBy) BoolX

func (s *FiatCurrencyGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FiatCurrencyGroupBy) Bools

func (s *FiatCurrencyGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FiatCurrencyGroupBy) BoolsX

func (s *FiatCurrencyGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FiatCurrencyGroupBy) Float64

func (s *FiatCurrencyGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FiatCurrencyGroupBy) Float64X

func (s *FiatCurrencyGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FiatCurrencyGroupBy) Float64s

func (s *FiatCurrencyGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FiatCurrencyGroupBy) Float64sX

func (s *FiatCurrencyGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FiatCurrencyGroupBy) Int

func (s *FiatCurrencyGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FiatCurrencyGroupBy) IntX

func (s *FiatCurrencyGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FiatCurrencyGroupBy) Ints

func (s *FiatCurrencyGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FiatCurrencyGroupBy) IntsX

func (s *FiatCurrencyGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FiatCurrencyGroupBy) Scan

func (fcgb *FiatCurrencyGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*FiatCurrencyGroupBy) ScanX

func (s *FiatCurrencyGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*FiatCurrencyGroupBy) String

func (s *FiatCurrencyGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FiatCurrencyGroupBy) StringX

func (s *FiatCurrencyGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FiatCurrencyGroupBy) Strings

func (s *FiatCurrencyGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FiatCurrencyGroupBy) StringsX

func (s *FiatCurrencyGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type FiatCurrencyMutation

type FiatCurrencyMutation struct {
	// contains filtered or unexported fields
}

FiatCurrencyMutation represents an operation that mutates the FiatCurrency nodes in the graph.

func (*FiatCurrencyMutation) AddDecimals

func (m *FiatCurrencyMutation) AddDecimals(i int)

AddDecimals adds i to the "decimals" field.

func (*FiatCurrencyMutation) AddField

func (m *FiatCurrencyMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*FiatCurrencyMutation) AddInstitutionIDs

func (m *FiatCurrencyMutation) AddInstitutionIDs(ids ...int)

AddInstitutionIDs adds the "institutions" edge to the Institution entity by ids.

func (*FiatCurrencyMutation) AddMarketRate

func (m *FiatCurrencyMutation) AddMarketRate(d decimal.Decimal)

AddMarketRate adds d to the "market_rate" field.

func (*FiatCurrencyMutation) AddProviderCurrencyIDs added in v0.0.2

func (m *FiatCurrencyMutation) AddProviderCurrencyIDs(ids ...uuid.UUID)

AddProviderCurrencyIDs adds the "provider_currencies" edge to the ProviderCurrencies entity by ids.

func (*FiatCurrencyMutation) AddProviderOrderTokenIDs

func (m *FiatCurrencyMutation) AddProviderOrderTokenIDs(ids ...int)

AddProviderOrderTokenIDs adds the "provider_order_tokens" edge to the ProviderOrderToken entity by ids.

func (*FiatCurrencyMutation) AddProvisionBucketIDs

func (m *FiatCurrencyMutation) AddProvisionBucketIDs(ids ...int)

AddProvisionBucketIDs adds the "provision_buckets" edge to the ProvisionBucket entity by ids.

func (*FiatCurrencyMutation) AddedDecimals

func (m *FiatCurrencyMutation) AddedDecimals() (r int, exists bool)

AddedDecimals returns the value that was added to the "decimals" field in this mutation.

func (*FiatCurrencyMutation) AddedEdges

func (m *FiatCurrencyMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*FiatCurrencyMutation) AddedField

func (m *FiatCurrencyMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*FiatCurrencyMutation) AddedFields

func (m *FiatCurrencyMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*FiatCurrencyMutation) AddedIDs

func (m *FiatCurrencyMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*FiatCurrencyMutation) AddedMarketRate

func (m *FiatCurrencyMutation) AddedMarketRate() (r decimal.Decimal, exists bool)

AddedMarketRate returns the value that was added to the "market_rate" field in this mutation.

func (*FiatCurrencyMutation) ClearEdge

func (m *FiatCurrencyMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*FiatCurrencyMutation) ClearField

func (m *FiatCurrencyMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*FiatCurrencyMutation) ClearInstitutions

func (m *FiatCurrencyMutation) ClearInstitutions()

ClearInstitutions clears the "institutions" edge to the Institution entity.

func (*FiatCurrencyMutation) ClearProviderCurrencies added in v0.0.2

func (m *FiatCurrencyMutation) ClearProviderCurrencies()

ClearProviderCurrencies clears the "provider_currencies" edge to the ProviderCurrencies entity.

func (*FiatCurrencyMutation) ClearProviderOrderTokens

func (m *FiatCurrencyMutation) ClearProviderOrderTokens()

ClearProviderOrderTokens clears the "provider_order_tokens" edge to the ProviderOrderToken entity.

func (*FiatCurrencyMutation) ClearProvisionBuckets

func (m *FiatCurrencyMutation) ClearProvisionBuckets()

ClearProvisionBuckets clears the "provision_buckets" edge to the ProvisionBucket entity.

func (*FiatCurrencyMutation) ClearedEdges

func (m *FiatCurrencyMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*FiatCurrencyMutation) ClearedFields

func (m *FiatCurrencyMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (FiatCurrencyMutation) Client

func (m FiatCurrencyMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*FiatCurrencyMutation) Code

func (m *FiatCurrencyMutation) Code() (r string, exists bool)

Code returns the value of the "code" field in the mutation.

func (*FiatCurrencyMutation) CreatedAt

func (m *FiatCurrencyMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*FiatCurrencyMutation) Decimals

func (m *FiatCurrencyMutation) Decimals() (r int, exists bool)

Decimals returns the value of the "decimals" field in the mutation.

func (*FiatCurrencyMutation) EdgeCleared

func (m *FiatCurrencyMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*FiatCurrencyMutation) Field

func (m *FiatCurrencyMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*FiatCurrencyMutation) FieldCleared

func (m *FiatCurrencyMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*FiatCurrencyMutation) Fields

func (m *FiatCurrencyMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*FiatCurrencyMutation) ID

func (m *FiatCurrencyMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*FiatCurrencyMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*FiatCurrencyMutation) InstitutionsCleared

func (m *FiatCurrencyMutation) InstitutionsCleared() bool

InstitutionsCleared reports if the "institutions" edge to the Institution entity was cleared.

func (*FiatCurrencyMutation) InstitutionsIDs

func (m *FiatCurrencyMutation) InstitutionsIDs() (ids []int)

InstitutionsIDs returns the "institutions" edge IDs in the mutation.

func (*FiatCurrencyMutation) IsEnabled

func (m *FiatCurrencyMutation) IsEnabled() (r bool, exists bool)

IsEnabled returns the value of the "is_enabled" field in the mutation.

func (*FiatCurrencyMutation) MarketRate

func (m *FiatCurrencyMutation) MarketRate() (r decimal.Decimal, exists bool)

MarketRate returns the value of the "market_rate" field in the mutation.

func (*FiatCurrencyMutation) Name

func (m *FiatCurrencyMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*FiatCurrencyMutation) OldCode

func (m *FiatCurrencyMutation) OldCode(ctx context.Context) (v string, err error)

OldCode returns the old "code" field's value of the FiatCurrency entity. If the FiatCurrency object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FiatCurrencyMutation) OldCreatedAt

func (m *FiatCurrencyMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the FiatCurrency entity. If the FiatCurrency object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FiatCurrencyMutation) OldDecimals

func (m *FiatCurrencyMutation) OldDecimals(ctx context.Context) (v int, err error)

OldDecimals returns the old "decimals" field's value of the FiatCurrency entity. If the FiatCurrency object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FiatCurrencyMutation) OldField

func (m *FiatCurrencyMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*FiatCurrencyMutation) OldIsEnabled

func (m *FiatCurrencyMutation) OldIsEnabled(ctx context.Context) (v bool, err error)

OldIsEnabled returns the old "is_enabled" field's value of the FiatCurrency entity. If the FiatCurrency object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FiatCurrencyMutation) OldMarketRate

func (m *FiatCurrencyMutation) OldMarketRate(ctx context.Context) (v decimal.Decimal, err error)

OldMarketRate returns the old "market_rate" field's value of the FiatCurrency entity. If the FiatCurrency object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FiatCurrencyMutation) OldName

func (m *FiatCurrencyMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the FiatCurrency entity. If the FiatCurrency object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FiatCurrencyMutation) OldShortName

func (m *FiatCurrencyMutation) OldShortName(ctx context.Context) (v string, err error)

OldShortName returns the old "short_name" field's value of the FiatCurrency entity. If the FiatCurrency object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FiatCurrencyMutation) OldSymbol

func (m *FiatCurrencyMutation) OldSymbol(ctx context.Context) (v string, err error)

OldSymbol returns the old "symbol" field's value of the FiatCurrency entity. If the FiatCurrency object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FiatCurrencyMutation) OldUpdatedAt

func (m *FiatCurrencyMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the FiatCurrency entity. If the FiatCurrency object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*FiatCurrencyMutation) Op

func (m *FiatCurrencyMutation) Op() Op

Op returns the operation name.

func (*FiatCurrencyMutation) ProviderCurrenciesCleared added in v0.0.2

func (m *FiatCurrencyMutation) ProviderCurrenciesCleared() bool

ProviderCurrenciesCleared reports if the "provider_currencies" edge to the ProviderCurrencies entity was cleared.

func (*FiatCurrencyMutation) ProviderCurrenciesIDs added in v0.0.2

func (m *FiatCurrencyMutation) ProviderCurrenciesIDs() (ids []uuid.UUID)

ProviderCurrenciesIDs returns the "provider_currencies" edge IDs in the mutation.

func (*FiatCurrencyMutation) ProviderOrderTokensCleared

func (m *FiatCurrencyMutation) ProviderOrderTokensCleared() bool

ProviderOrderTokensCleared reports if the "provider_order_tokens" edge to the ProviderOrderToken entity was cleared.

func (*FiatCurrencyMutation) ProviderOrderTokensIDs

func (m *FiatCurrencyMutation) ProviderOrderTokensIDs() (ids []int)

ProviderOrderTokensIDs returns the "provider_order_tokens" edge IDs in the mutation.

func (*FiatCurrencyMutation) ProvisionBucketsCleared

func (m *FiatCurrencyMutation) ProvisionBucketsCleared() bool

ProvisionBucketsCleared reports if the "provision_buckets" edge to the ProvisionBucket entity was cleared.

func (*FiatCurrencyMutation) ProvisionBucketsIDs

func (m *FiatCurrencyMutation) ProvisionBucketsIDs() (ids []int)

ProvisionBucketsIDs returns the "provision_buckets" edge IDs in the mutation.

func (*FiatCurrencyMutation) RemoveInstitutionIDs

func (m *FiatCurrencyMutation) RemoveInstitutionIDs(ids ...int)

RemoveInstitutionIDs removes the "institutions" edge to the Institution entity by IDs.

func (*FiatCurrencyMutation) RemoveProviderCurrencyIDs added in v0.0.2

func (m *FiatCurrencyMutation) RemoveProviderCurrencyIDs(ids ...uuid.UUID)

RemoveProviderCurrencyIDs removes the "provider_currencies" edge to the ProviderCurrencies entity by IDs.

func (*FiatCurrencyMutation) RemoveProviderOrderTokenIDs

func (m *FiatCurrencyMutation) RemoveProviderOrderTokenIDs(ids ...int)

RemoveProviderOrderTokenIDs removes the "provider_order_tokens" edge to the ProviderOrderToken entity by IDs.

func (*FiatCurrencyMutation) RemoveProvisionBucketIDs

func (m *FiatCurrencyMutation) RemoveProvisionBucketIDs(ids ...int)

RemoveProvisionBucketIDs removes the "provision_buckets" edge to the ProvisionBucket entity by IDs.

func (*FiatCurrencyMutation) RemovedEdges

func (m *FiatCurrencyMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*FiatCurrencyMutation) RemovedIDs

func (m *FiatCurrencyMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*FiatCurrencyMutation) RemovedInstitutionsIDs

func (m *FiatCurrencyMutation) RemovedInstitutionsIDs() (ids []int)

RemovedInstitutions returns the removed IDs of the "institutions" edge to the Institution entity.

func (*FiatCurrencyMutation) RemovedProviderCurrenciesIDs added in v0.0.2

func (m *FiatCurrencyMutation) RemovedProviderCurrenciesIDs() (ids []uuid.UUID)

RemovedProviderCurrencies returns the removed IDs of the "provider_currencies" edge to the ProviderCurrencies entity.

func (*FiatCurrencyMutation) RemovedProviderOrderTokensIDs

func (m *FiatCurrencyMutation) RemovedProviderOrderTokensIDs() (ids []int)

RemovedProviderOrderTokens returns the removed IDs of the "provider_order_tokens" edge to the ProviderOrderToken entity.

func (*FiatCurrencyMutation) RemovedProvisionBucketsIDs

func (m *FiatCurrencyMutation) RemovedProvisionBucketsIDs() (ids []int)

RemovedProvisionBuckets returns the removed IDs of the "provision_buckets" edge to the ProvisionBucket entity.

func (*FiatCurrencyMutation) ResetCode

func (m *FiatCurrencyMutation) ResetCode()

ResetCode resets all changes to the "code" field.

func (*FiatCurrencyMutation) ResetCreatedAt

func (m *FiatCurrencyMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*FiatCurrencyMutation) ResetDecimals

func (m *FiatCurrencyMutation) ResetDecimals()

ResetDecimals resets all changes to the "decimals" field.

func (*FiatCurrencyMutation) ResetEdge

func (m *FiatCurrencyMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*FiatCurrencyMutation) ResetField

func (m *FiatCurrencyMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*FiatCurrencyMutation) ResetInstitutions

func (m *FiatCurrencyMutation) ResetInstitutions()

ResetInstitutions resets all changes to the "institutions" edge.

func (*FiatCurrencyMutation) ResetIsEnabled

func (m *FiatCurrencyMutation) ResetIsEnabled()

ResetIsEnabled resets all changes to the "is_enabled" field.

func (*FiatCurrencyMutation) ResetMarketRate

func (m *FiatCurrencyMutation) ResetMarketRate()

ResetMarketRate resets all changes to the "market_rate" field.

func (*FiatCurrencyMutation) ResetName

func (m *FiatCurrencyMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*FiatCurrencyMutation) ResetProviderCurrencies added in v0.0.2

func (m *FiatCurrencyMutation) ResetProviderCurrencies()

ResetProviderCurrencies resets all changes to the "provider_currencies" edge.

func (*FiatCurrencyMutation) ResetProviderOrderTokens

func (m *FiatCurrencyMutation) ResetProviderOrderTokens()

ResetProviderOrderTokens resets all changes to the "provider_order_tokens" edge.

func (*FiatCurrencyMutation) ResetProvisionBuckets

func (m *FiatCurrencyMutation) ResetProvisionBuckets()

ResetProvisionBuckets resets all changes to the "provision_buckets" edge.

func (*FiatCurrencyMutation) ResetShortName

func (m *FiatCurrencyMutation) ResetShortName()

ResetShortName resets all changes to the "short_name" field.

func (*FiatCurrencyMutation) ResetSymbol

func (m *FiatCurrencyMutation) ResetSymbol()

ResetSymbol resets all changes to the "symbol" field.

func (*FiatCurrencyMutation) ResetUpdatedAt

func (m *FiatCurrencyMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*FiatCurrencyMutation) SetCode

func (m *FiatCurrencyMutation) SetCode(s string)

SetCode sets the "code" field.

func (*FiatCurrencyMutation) SetCreatedAt

func (m *FiatCurrencyMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*FiatCurrencyMutation) SetDecimals

func (m *FiatCurrencyMutation) SetDecimals(i int)

SetDecimals sets the "decimals" field.

func (*FiatCurrencyMutation) SetField

func (m *FiatCurrencyMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*FiatCurrencyMutation) SetID

func (m *FiatCurrencyMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of FiatCurrency entities.

func (*FiatCurrencyMutation) SetIsEnabled

func (m *FiatCurrencyMutation) SetIsEnabled(b bool)

SetIsEnabled sets the "is_enabled" field.

func (*FiatCurrencyMutation) SetMarketRate

func (m *FiatCurrencyMutation) SetMarketRate(d decimal.Decimal)

SetMarketRate sets the "market_rate" field.

func (*FiatCurrencyMutation) SetName

func (m *FiatCurrencyMutation) SetName(s string)

SetName sets the "name" field.

func (*FiatCurrencyMutation) SetOp

func (m *FiatCurrencyMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*FiatCurrencyMutation) SetShortName

func (m *FiatCurrencyMutation) SetShortName(s string)

SetShortName sets the "short_name" field.

func (*FiatCurrencyMutation) SetSymbol

func (m *FiatCurrencyMutation) SetSymbol(s string)

SetSymbol sets the "symbol" field.

func (*FiatCurrencyMutation) SetUpdatedAt

func (m *FiatCurrencyMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*FiatCurrencyMutation) ShortName

func (m *FiatCurrencyMutation) ShortName() (r string, exists bool)

ShortName returns the value of the "short_name" field in the mutation.

func (*FiatCurrencyMutation) Symbol

func (m *FiatCurrencyMutation) Symbol() (r string, exists bool)

Symbol returns the value of the "symbol" field in the mutation.

func (FiatCurrencyMutation) Tx

func (m FiatCurrencyMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*FiatCurrencyMutation) Type

func (m *FiatCurrencyMutation) Type() string

Type returns the node type of this mutation (FiatCurrency).

func (*FiatCurrencyMutation) UpdatedAt

func (m *FiatCurrencyMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*FiatCurrencyMutation) Where

Where appends a list predicates to the FiatCurrencyMutation builder.

func (*FiatCurrencyMutation) WhereP

func (m *FiatCurrencyMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the FiatCurrencyMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type FiatCurrencyQuery

type FiatCurrencyQuery struct {
	// contains filtered or unexported fields
}

FiatCurrencyQuery is the builder for querying FiatCurrency entities.

func (*FiatCurrencyQuery) Aggregate

func (fcq *FiatCurrencyQuery) Aggregate(fns ...AggregateFunc) *FiatCurrencySelect

Aggregate returns a FiatCurrencySelect configured with the given aggregations.

func (*FiatCurrencyQuery) All

func (fcq *FiatCurrencyQuery) All(ctx context.Context) ([]*FiatCurrency, error)

All executes the query and returns a list of FiatCurrencies.

func (*FiatCurrencyQuery) AllX

func (fcq *FiatCurrencyQuery) AllX(ctx context.Context) []*FiatCurrency

AllX is like All, but panics if an error occurs.

func (*FiatCurrencyQuery) Clone

func (fcq *FiatCurrencyQuery) Clone() *FiatCurrencyQuery

Clone returns a duplicate of the FiatCurrencyQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*FiatCurrencyQuery) Count

func (fcq *FiatCurrencyQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*FiatCurrencyQuery) CountX

func (fcq *FiatCurrencyQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*FiatCurrencyQuery) Exist

func (fcq *FiatCurrencyQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*FiatCurrencyQuery) ExistX

func (fcq *FiatCurrencyQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*FiatCurrencyQuery) First

func (fcq *FiatCurrencyQuery) First(ctx context.Context) (*FiatCurrency, error)

First returns the first FiatCurrency entity from the query. Returns a *NotFoundError when no FiatCurrency was found.

func (*FiatCurrencyQuery) FirstID

func (fcq *FiatCurrencyQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first FiatCurrency ID from the query. Returns a *NotFoundError when no FiatCurrency ID was found.

func (*FiatCurrencyQuery) FirstIDX

func (fcq *FiatCurrencyQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*FiatCurrencyQuery) FirstX

func (fcq *FiatCurrencyQuery) FirstX(ctx context.Context) *FiatCurrency

FirstX is like First, but panics if an error occurs.

func (*FiatCurrencyQuery) GroupBy

func (fcq *FiatCurrencyQuery) GroupBy(field string, fields ...string) *FiatCurrencyGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.FiatCurrency.Query().
	GroupBy(fiatcurrency.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*FiatCurrencyQuery) IDs

func (fcq *FiatCurrencyQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of FiatCurrency IDs.

func (*FiatCurrencyQuery) IDsX

func (fcq *FiatCurrencyQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*FiatCurrencyQuery) Limit

func (fcq *FiatCurrencyQuery) Limit(limit int) *FiatCurrencyQuery

Limit the number of records to be returned by this query.

func (*FiatCurrencyQuery) Offset

func (fcq *FiatCurrencyQuery) Offset(offset int) *FiatCurrencyQuery

Offset to start from.

func (*FiatCurrencyQuery) Only

func (fcq *FiatCurrencyQuery) Only(ctx context.Context) (*FiatCurrency, error)

Only returns a single FiatCurrency entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FiatCurrency entity is found. Returns a *NotFoundError when no FiatCurrency entities are found.

func (*FiatCurrencyQuery) OnlyID

func (fcq *FiatCurrencyQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only FiatCurrency ID in the query. Returns a *NotSingularError when more than one FiatCurrency ID is found. Returns a *NotFoundError when no entities are found.

func (*FiatCurrencyQuery) OnlyIDX

func (fcq *FiatCurrencyQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*FiatCurrencyQuery) OnlyX

func (fcq *FiatCurrencyQuery) OnlyX(ctx context.Context) *FiatCurrency

OnlyX is like Only, but panics if an error occurs.

func (*FiatCurrencyQuery) Order

Order specifies how the records should be ordered.

func (*FiatCurrencyQuery) QueryInstitutions

func (fcq *FiatCurrencyQuery) QueryInstitutions() *InstitutionQuery

QueryInstitutions chains the current query on the "institutions" edge.

func (*FiatCurrencyQuery) QueryProviderCurrencies added in v0.0.2

func (fcq *FiatCurrencyQuery) QueryProviderCurrencies() *ProviderCurrenciesQuery

QueryProviderCurrencies chains the current query on the "provider_currencies" edge.

func (*FiatCurrencyQuery) QueryProviderOrderTokens

func (fcq *FiatCurrencyQuery) QueryProviderOrderTokens() *ProviderOrderTokenQuery

QueryProviderOrderTokens chains the current query on the "provider_order_tokens" edge.

func (*FiatCurrencyQuery) QueryProvisionBuckets

func (fcq *FiatCurrencyQuery) QueryProvisionBuckets() *ProvisionBucketQuery

QueryProvisionBuckets chains the current query on the "provision_buckets" edge.

func (*FiatCurrencyQuery) Select

func (fcq *FiatCurrencyQuery) Select(fields ...string) *FiatCurrencySelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.FiatCurrency.Query().
	Select(fiatcurrency.FieldCreatedAt).
	Scan(ctx, &v)

func (*FiatCurrencyQuery) Unique

func (fcq *FiatCurrencyQuery) Unique(unique bool) *FiatCurrencyQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*FiatCurrencyQuery) Where

Where adds a new predicate for the FiatCurrencyQuery builder.

func (*FiatCurrencyQuery) WithInstitutions

func (fcq *FiatCurrencyQuery) WithInstitutions(opts ...func(*InstitutionQuery)) *FiatCurrencyQuery

WithInstitutions tells the query-builder to eager-load the nodes that are connected to the "institutions" edge. The optional arguments are used to configure the query builder of the edge.

func (*FiatCurrencyQuery) WithProviderCurrencies added in v0.0.2

func (fcq *FiatCurrencyQuery) WithProviderCurrencies(opts ...func(*ProviderCurrenciesQuery)) *FiatCurrencyQuery

WithProviderCurrencies tells the query-builder to eager-load the nodes that are connected to the "provider_currencies" edge. The optional arguments are used to configure the query builder of the edge.

func (*FiatCurrencyQuery) WithProviderOrderTokens

func (fcq *FiatCurrencyQuery) WithProviderOrderTokens(opts ...func(*ProviderOrderTokenQuery)) *FiatCurrencyQuery

WithProviderOrderTokens tells the query-builder to eager-load the nodes that are connected to the "provider_order_tokens" edge. The optional arguments are used to configure the query builder of the edge.

func (*FiatCurrencyQuery) WithProvisionBuckets

func (fcq *FiatCurrencyQuery) WithProvisionBuckets(opts ...func(*ProvisionBucketQuery)) *FiatCurrencyQuery

WithProvisionBuckets tells the query-builder to eager-load the nodes that are connected to the "provision_buckets" edge. The optional arguments are used to configure the query builder of the edge.

type FiatCurrencySelect

type FiatCurrencySelect struct {
	*FiatCurrencyQuery
	// contains filtered or unexported fields
}

FiatCurrencySelect is the builder for selecting fields of FiatCurrency entities.

func (*FiatCurrencySelect) Aggregate

func (fcs *FiatCurrencySelect) Aggregate(fns ...AggregateFunc) *FiatCurrencySelect

Aggregate adds the given aggregation functions to the selector query.

func (*FiatCurrencySelect) Bool

func (s *FiatCurrencySelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FiatCurrencySelect) BoolX

func (s *FiatCurrencySelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FiatCurrencySelect) Bools

func (s *FiatCurrencySelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FiatCurrencySelect) BoolsX

func (s *FiatCurrencySelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FiatCurrencySelect) Float64

func (s *FiatCurrencySelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FiatCurrencySelect) Float64X

func (s *FiatCurrencySelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FiatCurrencySelect) Float64s

func (s *FiatCurrencySelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FiatCurrencySelect) Float64sX

func (s *FiatCurrencySelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FiatCurrencySelect) Int

func (s *FiatCurrencySelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FiatCurrencySelect) IntX

func (s *FiatCurrencySelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FiatCurrencySelect) Ints

func (s *FiatCurrencySelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FiatCurrencySelect) IntsX

func (s *FiatCurrencySelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FiatCurrencySelect) Scan

func (fcs *FiatCurrencySelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*FiatCurrencySelect) ScanX

func (s *FiatCurrencySelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*FiatCurrencySelect) String

func (s *FiatCurrencySelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FiatCurrencySelect) StringX

func (s *FiatCurrencySelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FiatCurrencySelect) Strings

func (s *FiatCurrencySelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FiatCurrencySelect) StringsX

func (s *FiatCurrencySelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type FiatCurrencyUpdate

type FiatCurrencyUpdate struct {
	// contains filtered or unexported fields
}

FiatCurrencyUpdate is the builder for updating FiatCurrency entities.

func (*FiatCurrencyUpdate) AddDecimals

func (fcu *FiatCurrencyUpdate) AddDecimals(i int) *FiatCurrencyUpdate

AddDecimals adds i to the "decimals" field.

func (*FiatCurrencyUpdate) AddInstitutionIDs

func (fcu *FiatCurrencyUpdate) AddInstitutionIDs(ids ...int) *FiatCurrencyUpdate

AddInstitutionIDs adds the "institutions" edge to the Institution entity by IDs.

func (*FiatCurrencyUpdate) AddInstitutions

func (fcu *FiatCurrencyUpdate) AddInstitutions(i ...*Institution) *FiatCurrencyUpdate

AddInstitutions adds the "institutions" edges to the Institution entity.

func (*FiatCurrencyUpdate) AddMarketRate

func (fcu *FiatCurrencyUpdate) AddMarketRate(d decimal.Decimal) *FiatCurrencyUpdate

AddMarketRate adds d to the "market_rate" field.

func (*FiatCurrencyUpdate) AddProviderCurrencies added in v0.0.2

func (fcu *FiatCurrencyUpdate) AddProviderCurrencies(p ...*ProviderCurrencies) *FiatCurrencyUpdate

AddProviderCurrencies adds the "provider_currencies" edges to the ProviderCurrencies entity.

func (*FiatCurrencyUpdate) AddProviderCurrencyIDs added in v0.0.2

func (fcu *FiatCurrencyUpdate) AddProviderCurrencyIDs(ids ...uuid.UUID) *FiatCurrencyUpdate

AddProviderCurrencyIDs adds the "provider_currencies" edge to the ProviderCurrencies entity by IDs.

func (*FiatCurrencyUpdate) AddProviderOrderTokenIDs

func (fcu *FiatCurrencyUpdate) AddProviderOrderTokenIDs(ids ...int) *FiatCurrencyUpdate

AddProviderOrderTokenIDs adds the "provider_order_tokens" edge to the ProviderOrderToken entity by IDs.

func (*FiatCurrencyUpdate) AddProviderOrderTokens

func (fcu *FiatCurrencyUpdate) AddProviderOrderTokens(p ...*ProviderOrderToken) *FiatCurrencyUpdate

AddProviderOrderTokens adds the "provider_order_tokens" edges to the ProviderOrderToken entity.

func (*FiatCurrencyUpdate) AddProvisionBucketIDs

func (fcu *FiatCurrencyUpdate) AddProvisionBucketIDs(ids ...int) *FiatCurrencyUpdate

AddProvisionBucketIDs adds the "provision_buckets" edge to the ProvisionBucket entity by IDs.

func (*FiatCurrencyUpdate) AddProvisionBuckets

func (fcu *FiatCurrencyUpdate) AddProvisionBuckets(p ...*ProvisionBucket) *FiatCurrencyUpdate

AddProvisionBuckets adds the "provision_buckets" edges to the ProvisionBucket entity.

func (*FiatCurrencyUpdate) ClearInstitutions

func (fcu *FiatCurrencyUpdate) ClearInstitutions() *FiatCurrencyUpdate

ClearInstitutions clears all "institutions" edges to the Institution entity.

func (*FiatCurrencyUpdate) ClearProviderCurrencies added in v0.0.2

func (fcu *FiatCurrencyUpdate) ClearProviderCurrencies() *FiatCurrencyUpdate

ClearProviderCurrencies clears all "provider_currencies" edges to the ProviderCurrencies entity.

func (*FiatCurrencyUpdate) ClearProviderOrderTokens

func (fcu *FiatCurrencyUpdate) ClearProviderOrderTokens() *FiatCurrencyUpdate

ClearProviderOrderTokens clears all "provider_order_tokens" edges to the ProviderOrderToken entity.

func (*FiatCurrencyUpdate) ClearProvisionBuckets

func (fcu *FiatCurrencyUpdate) ClearProvisionBuckets() *FiatCurrencyUpdate

ClearProvisionBuckets clears all "provision_buckets" edges to the ProvisionBucket entity.

func (*FiatCurrencyUpdate) Exec

func (fcu *FiatCurrencyUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*FiatCurrencyUpdate) ExecX

func (fcu *FiatCurrencyUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*FiatCurrencyUpdate) Mutation

func (fcu *FiatCurrencyUpdate) Mutation() *FiatCurrencyMutation

Mutation returns the FiatCurrencyMutation object of the builder.

func (*FiatCurrencyUpdate) RemoveInstitutionIDs

func (fcu *FiatCurrencyUpdate) RemoveInstitutionIDs(ids ...int) *FiatCurrencyUpdate

RemoveInstitutionIDs removes the "institutions" edge to Institution entities by IDs.

func (*FiatCurrencyUpdate) RemoveInstitutions

func (fcu *FiatCurrencyUpdate) RemoveInstitutions(i ...*Institution) *FiatCurrencyUpdate

RemoveInstitutions removes "institutions" edges to Institution entities.

func (*FiatCurrencyUpdate) RemoveProviderCurrencies added in v0.0.2

func (fcu *FiatCurrencyUpdate) RemoveProviderCurrencies(p ...*ProviderCurrencies) *FiatCurrencyUpdate

RemoveProviderCurrencies removes "provider_currencies" edges to ProviderCurrencies entities.

func (*FiatCurrencyUpdate) RemoveProviderCurrencyIDs added in v0.0.2

func (fcu *FiatCurrencyUpdate) RemoveProviderCurrencyIDs(ids ...uuid.UUID) *FiatCurrencyUpdate

RemoveProviderCurrencyIDs removes the "provider_currencies" edge to ProviderCurrencies entities by IDs.

func (*FiatCurrencyUpdate) RemoveProviderOrderTokenIDs

func (fcu *FiatCurrencyUpdate) RemoveProviderOrderTokenIDs(ids ...int) *FiatCurrencyUpdate

RemoveProviderOrderTokenIDs removes the "provider_order_tokens" edge to ProviderOrderToken entities by IDs.

func (*FiatCurrencyUpdate) RemoveProviderOrderTokens

func (fcu *FiatCurrencyUpdate) RemoveProviderOrderTokens(p ...*ProviderOrderToken) *FiatCurrencyUpdate

RemoveProviderOrderTokens removes "provider_order_tokens" edges to ProviderOrderToken entities.

func (*FiatCurrencyUpdate) RemoveProvisionBucketIDs

func (fcu *FiatCurrencyUpdate) RemoveProvisionBucketIDs(ids ...int) *FiatCurrencyUpdate

RemoveProvisionBucketIDs removes the "provision_buckets" edge to ProvisionBucket entities by IDs.

func (*FiatCurrencyUpdate) RemoveProvisionBuckets

func (fcu *FiatCurrencyUpdate) RemoveProvisionBuckets(p ...*ProvisionBucket) *FiatCurrencyUpdate

RemoveProvisionBuckets removes "provision_buckets" edges to ProvisionBucket entities.

func (*FiatCurrencyUpdate) Save

func (fcu *FiatCurrencyUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*FiatCurrencyUpdate) SaveX

func (fcu *FiatCurrencyUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*FiatCurrencyUpdate) SetCode

func (fcu *FiatCurrencyUpdate) SetCode(s string) *FiatCurrencyUpdate

SetCode sets the "code" field.

func (*FiatCurrencyUpdate) SetDecimals

func (fcu *FiatCurrencyUpdate) SetDecimals(i int) *FiatCurrencyUpdate

SetDecimals sets the "decimals" field.

func (*FiatCurrencyUpdate) SetIsEnabled

func (fcu *FiatCurrencyUpdate) SetIsEnabled(b bool) *FiatCurrencyUpdate

SetIsEnabled sets the "is_enabled" field.

func (*FiatCurrencyUpdate) SetMarketRate

func (fcu *FiatCurrencyUpdate) SetMarketRate(d decimal.Decimal) *FiatCurrencyUpdate

SetMarketRate sets the "market_rate" field.

func (*FiatCurrencyUpdate) SetName

func (fcu *FiatCurrencyUpdate) SetName(s string) *FiatCurrencyUpdate

SetName sets the "name" field.

func (*FiatCurrencyUpdate) SetNillableCode

func (fcu *FiatCurrencyUpdate) SetNillableCode(s *string) *FiatCurrencyUpdate

SetNillableCode sets the "code" field if the given value is not nil.

func (*FiatCurrencyUpdate) SetNillableDecimals

func (fcu *FiatCurrencyUpdate) SetNillableDecimals(i *int) *FiatCurrencyUpdate

SetNillableDecimals sets the "decimals" field if the given value is not nil.

func (*FiatCurrencyUpdate) SetNillableIsEnabled

func (fcu *FiatCurrencyUpdate) SetNillableIsEnabled(b *bool) *FiatCurrencyUpdate

SetNillableIsEnabled sets the "is_enabled" field if the given value is not nil.

func (*FiatCurrencyUpdate) SetNillableMarketRate

func (fcu *FiatCurrencyUpdate) SetNillableMarketRate(d *decimal.Decimal) *FiatCurrencyUpdate

SetNillableMarketRate sets the "market_rate" field if the given value is not nil.

func (*FiatCurrencyUpdate) SetNillableName

func (fcu *FiatCurrencyUpdate) SetNillableName(s *string) *FiatCurrencyUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*FiatCurrencyUpdate) SetNillableShortName

func (fcu *FiatCurrencyUpdate) SetNillableShortName(s *string) *FiatCurrencyUpdate

SetNillableShortName sets the "short_name" field if the given value is not nil.

func (*FiatCurrencyUpdate) SetNillableSymbol

func (fcu *FiatCurrencyUpdate) SetNillableSymbol(s *string) *FiatCurrencyUpdate

SetNillableSymbol sets the "symbol" field if the given value is not nil.

func (*FiatCurrencyUpdate) SetShortName

func (fcu *FiatCurrencyUpdate) SetShortName(s string) *FiatCurrencyUpdate

SetShortName sets the "short_name" field.

func (*FiatCurrencyUpdate) SetSymbol

func (fcu *FiatCurrencyUpdate) SetSymbol(s string) *FiatCurrencyUpdate

SetSymbol sets the "symbol" field.

func (*FiatCurrencyUpdate) SetUpdatedAt

func (fcu *FiatCurrencyUpdate) SetUpdatedAt(t time.Time) *FiatCurrencyUpdate

SetUpdatedAt sets the "updated_at" field.

func (*FiatCurrencyUpdate) Where

Where appends a list predicates to the FiatCurrencyUpdate builder.

type FiatCurrencyUpdateOne

type FiatCurrencyUpdateOne struct {
	// contains filtered or unexported fields
}

FiatCurrencyUpdateOne is the builder for updating a single FiatCurrency entity.

func (*FiatCurrencyUpdateOne) AddDecimals

func (fcuo *FiatCurrencyUpdateOne) AddDecimals(i int) *FiatCurrencyUpdateOne

AddDecimals adds i to the "decimals" field.

func (*FiatCurrencyUpdateOne) AddInstitutionIDs

func (fcuo *FiatCurrencyUpdateOne) AddInstitutionIDs(ids ...int) *FiatCurrencyUpdateOne

AddInstitutionIDs adds the "institutions" edge to the Institution entity by IDs.

func (*FiatCurrencyUpdateOne) AddInstitutions

func (fcuo *FiatCurrencyUpdateOne) AddInstitutions(i ...*Institution) *FiatCurrencyUpdateOne

AddInstitutions adds the "institutions" edges to the Institution entity.

func (*FiatCurrencyUpdateOne) AddMarketRate

AddMarketRate adds d to the "market_rate" field.

func (*FiatCurrencyUpdateOne) AddProviderCurrencies added in v0.0.2

func (fcuo *FiatCurrencyUpdateOne) AddProviderCurrencies(p ...*ProviderCurrencies) *FiatCurrencyUpdateOne

AddProviderCurrencies adds the "provider_currencies" edges to the ProviderCurrencies entity.

func (*FiatCurrencyUpdateOne) AddProviderCurrencyIDs added in v0.0.2

func (fcuo *FiatCurrencyUpdateOne) AddProviderCurrencyIDs(ids ...uuid.UUID) *FiatCurrencyUpdateOne

AddProviderCurrencyIDs adds the "provider_currencies" edge to the ProviderCurrencies entity by IDs.

func (*FiatCurrencyUpdateOne) AddProviderOrderTokenIDs

func (fcuo *FiatCurrencyUpdateOne) AddProviderOrderTokenIDs(ids ...int) *FiatCurrencyUpdateOne

AddProviderOrderTokenIDs adds the "provider_order_tokens" edge to the ProviderOrderToken entity by IDs.

func (*FiatCurrencyUpdateOne) AddProviderOrderTokens

func (fcuo *FiatCurrencyUpdateOne) AddProviderOrderTokens(p ...*ProviderOrderToken) *FiatCurrencyUpdateOne

AddProviderOrderTokens adds the "provider_order_tokens" edges to the ProviderOrderToken entity.

func (*FiatCurrencyUpdateOne) AddProvisionBucketIDs

func (fcuo *FiatCurrencyUpdateOne) AddProvisionBucketIDs(ids ...int) *FiatCurrencyUpdateOne

AddProvisionBucketIDs adds the "provision_buckets" edge to the ProvisionBucket entity by IDs.

func (*FiatCurrencyUpdateOne) AddProvisionBuckets

func (fcuo *FiatCurrencyUpdateOne) AddProvisionBuckets(p ...*ProvisionBucket) *FiatCurrencyUpdateOne

AddProvisionBuckets adds the "provision_buckets" edges to the ProvisionBucket entity.

func (*FiatCurrencyUpdateOne) ClearInstitutions

func (fcuo *FiatCurrencyUpdateOne) ClearInstitutions() *FiatCurrencyUpdateOne

ClearInstitutions clears all "institutions" edges to the Institution entity.

func (*FiatCurrencyUpdateOne) ClearProviderCurrencies added in v0.0.2

func (fcuo *FiatCurrencyUpdateOne) ClearProviderCurrencies() *FiatCurrencyUpdateOne

ClearProviderCurrencies clears all "provider_currencies" edges to the ProviderCurrencies entity.

func (*FiatCurrencyUpdateOne) ClearProviderOrderTokens

func (fcuo *FiatCurrencyUpdateOne) ClearProviderOrderTokens() *FiatCurrencyUpdateOne

ClearProviderOrderTokens clears all "provider_order_tokens" edges to the ProviderOrderToken entity.

func (*FiatCurrencyUpdateOne) ClearProvisionBuckets

func (fcuo *FiatCurrencyUpdateOne) ClearProvisionBuckets() *FiatCurrencyUpdateOne

ClearProvisionBuckets clears all "provision_buckets" edges to the ProvisionBucket entity.

func (*FiatCurrencyUpdateOne) Exec

func (fcuo *FiatCurrencyUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*FiatCurrencyUpdateOne) ExecX

func (fcuo *FiatCurrencyUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*FiatCurrencyUpdateOne) Mutation

func (fcuo *FiatCurrencyUpdateOne) Mutation() *FiatCurrencyMutation

Mutation returns the FiatCurrencyMutation object of the builder.

func (*FiatCurrencyUpdateOne) RemoveInstitutionIDs

func (fcuo *FiatCurrencyUpdateOne) RemoveInstitutionIDs(ids ...int) *FiatCurrencyUpdateOne

RemoveInstitutionIDs removes the "institutions" edge to Institution entities by IDs.

func (*FiatCurrencyUpdateOne) RemoveInstitutions

func (fcuo *FiatCurrencyUpdateOne) RemoveInstitutions(i ...*Institution) *FiatCurrencyUpdateOne

RemoveInstitutions removes "institutions" edges to Institution entities.

func (*FiatCurrencyUpdateOne) RemoveProviderCurrencies added in v0.0.2

func (fcuo *FiatCurrencyUpdateOne) RemoveProviderCurrencies(p ...*ProviderCurrencies) *FiatCurrencyUpdateOne

RemoveProviderCurrencies removes "provider_currencies" edges to ProviderCurrencies entities.

func (*FiatCurrencyUpdateOne) RemoveProviderCurrencyIDs added in v0.0.2

func (fcuo *FiatCurrencyUpdateOne) RemoveProviderCurrencyIDs(ids ...uuid.UUID) *FiatCurrencyUpdateOne

RemoveProviderCurrencyIDs removes the "provider_currencies" edge to ProviderCurrencies entities by IDs.

func (*FiatCurrencyUpdateOne) RemoveProviderOrderTokenIDs

func (fcuo *FiatCurrencyUpdateOne) RemoveProviderOrderTokenIDs(ids ...int) *FiatCurrencyUpdateOne

RemoveProviderOrderTokenIDs removes the "provider_order_tokens" edge to ProviderOrderToken entities by IDs.

func (*FiatCurrencyUpdateOne) RemoveProviderOrderTokens

func (fcuo *FiatCurrencyUpdateOne) RemoveProviderOrderTokens(p ...*ProviderOrderToken) *FiatCurrencyUpdateOne

RemoveProviderOrderTokens removes "provider_order_tokens" edges to ProviderOrderToken entities.

func (*FiatCurrencyUpdateOne) RemoveProvisionBucketIDs

func (fcuo *FiatCurrencyUpdateOne) RemoveProvisionBucketIDs(ids ...int) *FiatCurrencyUpdateOne

RemoveProvisionBucketIDs removes the "provision_buckets" edge to ProvisionBucket entities by IDs.

func (*FiatCurrencyUpdateOne) RemoveProvisionBuckets

func (fcuo *FiatCurrencyUpdateOne) RemoveProvisionBuckets(p ...*ProvisionBucket) *FiatCurrencyUpdateOne

RemoveProvisionBuckets removes "provision_buckets" edges to ProvisionBucket entities.

func (*FiatCurrencyUpdateOne) Save

Save executes the query and returns the updated FiatCurrency entity.

func (*FiatCurrencyUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*FiatCurrencyUpdateOne) Select

func (fcuo *FiatCurrencyUpdateOne) Select(field string, fields ...string) *FiatCurrencyUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*FiatCurrencyUpdateOne) SetCode

SetCode sets the "code" field.

func (*FiatCurrencyUpdateOne) SetDecimals

func (fcuo *FiatCurrencyUpdateOne) SetDecimals(i int) *FiatCurrencyUpdateOne

SetDecimals sets the "decimals" field.

func (*FiatCurrencyUpdateOne) SetIsEnabled

func (fcuo *FiatCurrencyUpdateOne) SetIsEnabled(b bool) *FiatCurrencyUpdateOne

SetIsEnabled sets the "is_enabled" field.

func (*FiatCurrencyUpdateOne) SetMarketRate

SetMarketRate sets the "market_rate" field.

func (*FiatCurrencyUpdateOne) SetName

SetName sets the "name" field.

func (*FiatCurrencyUpdateOne) SetNillableCode

func (fcuo *FiatCurrencyUpdateOne) SetNillableCode(s *string) *FiatCurrencyUpdateOne

SetNillableCode sets the "code" field if the given value is not nil.

func (*FiatCurrencyUpdateOne) SetNillableDecimals

func (fcuo *FiatCurrencyUpdateOne) SetNillableDecimals(i *int) *FiatCurrencyUpdateOne

SetNillableDecimals sets the "decimals" field if the given value is not nil.

func (*FiatCurrencyUpdateOne) SetNillableIsEnabled

func (fcuo *FiatCurrencyUpdateOne) SetNillableIsEnabled(b *bool) *FiatCurrencyUpdateOne

SetNillableIsEnabled sets the "is_enabled" field if the given value is not nil.

func (*FiatCurrencyUpdateOne) SetNillableMarketRate

func (fcuo *FiatCurrencyUpdateOne) SetNillableMarketRate(d *decimal.Decimal) *FiatCurrencyUpdateOne

SetNillableMarketRate sets the "market_rate" field if the given value is not nil.

func (*FiatCurrencyUpdateOne) SetNillableName

func (fcuo *FiatCurrencyUpdateOne) SetNillableName(s *string) *FiatCurrencyUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*FiatCurrencyUpdateOne) SetNillableShortName

func (fcuo *FiatCurrencyUpdateOne) SetNillableShortName(s *string) *FiatCurrencyUpdateOne

SetNillableShortName sets the "short_name" field if the given value is not nil.

func (*FiatCurrencyUpdateOne) SetNillableSymbol

func (fcuo *FiatCurrencyUpdateOne) SetNillableSymbol(s *string) *FiatCurrencyUpdateOne

SetNillableSymbol sets the "symbol" field if the given value is not nil.

func (*FiatCurrencyUpdateOne) SetShortName

func (fcuo *FiatCurrencyUpdateOne) SetShortName(s string) *FiatCurrencyUpdateOne

SetShortName sets the "short_name" field.

func (*FiatCurrencyUpdateOne) SetSymbol

SetSymbol sets the "symbol" field.

func (*FiatCurrencyUpdateOne) SetUpdatedAt

func (fcuo *FiatCurrencyUpdateOne) SetUpdatedAt(t time.Time) *FiatCurrencyUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*FiatCurrencyUpdateOne) Where

Where appends a list predicates to the FiatCurrencyUpdate builder.

type FiatCurrencyUpsert

type FiatCurrencyUpsert struct {
	*sql.UpdateSet
}

FiatCurrencyUpsert is the "OnConflict" setter.

func (*FiatCurrencyUpsert) AddDecimals

func (u *FiatCurrencyUpsert) AddDecimals(v int) *FiatCurrencyUpsert

AddDecimals adds v to the "decimals" field.

func (*FiatCurrencyUpsert) AddMarketRate

AddMarketRate adds v to the "market_rate" field.

func (*FiatCurrencyUpsert) SetCode

SetCode sets the "code" field.

func (*FiatCurrencyUpsert) SetDecimals

func (u *FiatCurrencyUpsert) SetDecimals(v int) *FiatCurrencyUpsert

SetDecimals sets the "decimals" field.

func (*FiatCurrencyUpsert) SetIsEnabled

func (u *FiatCurrencyUpsert) SetIsEnabled(v bool) *FiatCurrencyUpsert

SetIsEnabled sets the "is_enabled" field.

func (*FiatCurrencyUpsert) SetMarketRate

SetMarketRate sets the "market_rate" field.

func (*FiatCurrencyUpsert) SetName

SetName sets the "name" field.

func (*FiatCurrencyUpsert) SetShortName

func (u *FiatCurrencyUpsert) SetShortName(v string) *FiatCurrencyUpsert

SetShortName sets the "short_name" field.

func (*FiatCurrencyUpsert) SetSymbol

func (u *FiatCurrencyUpsert) SetSymbol(v string) *FiatCurrencyUpsert

SetSymbol sets the "symbol" field.

func (*FiatCurrencyUpsert) SetUpdatedAt

func (u *FiatCurrencyUpsert) SetUpdatedAt(v time.Time) *FiatCurrencyUpsert

SetUpdatedAt sets the "updated_at" field.

func (*FiatCurrencyUpsert) UpdateCode

func (u *FiatCurrencyUpsert) UpdateCode() *FiatCurrencyUpsert

UpdateCode sets the "code" field to the value that was provided on create.

func (*FiatCurrencyUpsert) UpdateDecimals

func (u *FiatCurrencyUpsert) UpdateDecimals() *FiatCurrencyUpsert

UpdateDecimals sets the "decimals" field to the value that was provided on create.

func (*FiatCurrencyUpsert) UpdateIsEnabled

func (u *FiatCurrencyUpsert) UpdateIsEnabled() *FiatCurrencyUpsert

UpdateIsEnabled sets the "is_enabled" field to the value that was provided on create.

func (*FiatCurrencyUpsert) UpdateMarketRate

func (u *FiatCurrencyUpsert) UpdateMarketRate() *FiatCurrencyUpsert

UpdateMarketRate sets the "market_rate" field to the value that was provided on create.

func (*FiatCurrencyUpsert) UpdateName

func (u *FiatCurrencyUpsert) UpdateName() *FiatCurrencyUpsert

UpdateName sets the "name" field to the value that was provided on create.

func (*FiatCurrencyUpsert) UpdateShortName

func (u *FiatCurrencyUpsert) UpdateShortName() *FiatCurrencyUpsert

UpdateShortName sets the "short_name" field to the value that was provided on create.

func (*FiatCurrencyUpsert) UpdateSymbol

func (u *FiatCurrencyUpsert) UpdateSymbol() *FiatCurrencyUpsert

UpdateSymbol sets the "symbol" field to the value that was provided on create.

func (*FiatCurrencyUpsert) UpdateUpdatedAt

func (u *FiatCurrencyUpsert) UpdateUpdatedAt() *FiatCurrencyUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type FiatCurrencyUpsertBulk

type FiatCurrencyUpsertBulk struct {
	// contains filtered or unexported fields
}

FiatCurrencyUpsertBulk is the builder for "upsert"-ing a bulk of FiatCurrency nodes.

func (*FiatCurrencyUpsertBulk) AddDecimals

AddDecimals adds v to the "decimals" field.

func (*FiatCurrencyUpsertBulk) AddMarketRate

AddMarketRate adds v to the "market_rate" field.

func (*FiatCurrencyUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FiatCurrencyUpsertBulk) Exec

Exec executes the query.

func (*FiatCurrencyUpsertBulk) ExecX

func (u *FiatCurrencyUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*FiatCurrencyUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.FiatCurrency.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*FiatCurrencyUpsertBulk) SetCode

SetCode sets the "code" field.

func (*FiatCurrencyUpsertBulk) SetDecimals

SetDecimals sets the "decimals" field.

func (*FiatCurrencyUpsertBulk) SetIsEnabled

SetIsEnabled sets the "is_enabled" field.

func (*FiatCurrencyUpsertBulk) SetMarketRate

SetMarketRate sets the "market_rate" field.

func (*FiatCurrencyUpsertBulk) SetName

SetName sets the "name" field.

func (*FiatCurrencyUpsertBulk) SetShortName

SetShortName sets the "short_name" field.

func (*FiatCurrencyUpsertBulk) SetSymbol

SetSymbol sets the "symbol" field.

func (*FiatCurrencyUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FiatCurrencyUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the FiatCurrencyCreateBulk.OnConflict documentation for more info.

func (*FiatCurrencyUpsertBulk) UpdateCode

UpdateCode sets the "code" field to the value that was provided on create.

func (*FiatCurrencyUpsertBulk) UpdateDecimals

func (u *FiatCurrencyUpsertBulk) UpdateDecimals() *FiatCurrencyUpsertBulk

UpdateDecimals sets the "decimals" field to the value that was provided on create.

func (*FiatCurrencyUpsertBulk) UpdateIsEnabled

func (u *FiatCurrencyUpsertBulk) UpdateIsEnabled() *FiatCurrencyUpsertBulk

UpdateIsEnabled sets the "is_enabled" field to the value that was provided on create.

func (*FiatCurrencyUpsertBulk) UpdateMarketRate

func (u *FiatCurrencyUpsertBulk) UpdateMarketRate() *FiatCurrencyUpsertBulk

UpdateMarketRate sets the "market_rate" field to the value that was provided on create.

func (*FiatCurrencyUpsertBulk) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

func (*FiatCurrencyUpsertBulk) UpdateNewValues

func (u *FiatCurrencyUpsertBulk) UpdateNewValues() *FiatCurrencyUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.FiatCurrency.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(fiatcurrency.FieldID)
		}),
	).
	Exec(ctx)

func (*FiatCurrencyUpsertBulk) UpdateShortName

func (u *FiatCurrencyUpsertBulk) UpdateShortName() *FiatCurrencyUpsertBulk

UpdateShortName sets the "short_name" field to the value that was provided on create.

func (*FiatCurrencyUpsertBulk) UpdateSymbol

UpdateSymbol sets the "symbol" field to the value that was provided on create.

func (*FiatCurrencyUpsertBulk) UpdateUpdatedAt

func (u *FiatCurrencyUpsertBulk) UpdateUpdatedAt() *FiatCurrencyUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type FiatCurrencyUpsertOne

type FiatCurrencyUpsertOne struct {
	// contains filtered or unexported fields
}

FiatCurrencyUpsertOne is the builder for "upsert"-ing

one FiatCurrency node.

func (*FiatCurrencyUpsertOne) AddDecimals

func (u *FiatCurrencyUpsertOne) AddDecimals(v int) *FiatCurrencyUpsertOne

AddDecimals adds v to the "decimals" field.

func (*FiatCurrencyUpsertOne) AddMarketRate

AddMarketRate adds v to the "market_rate" field.

func (*FiatCurrencyUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FiatCurrencyUpsertOne) Exec

Exec executes the query.

func (*FiatCurrencyUpsertOne) ExecX

func (u *FiatCurrencyUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*FiatCurrencyUpsertOne) ID

func (u *FiatCurrencyUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*FiatCurrencyUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*FiatCurrencyUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.FiatCurrency.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*FiatCurrencyUpsertOne) SetCode

SetCode sets the "code" field.

func (*FiatCurrencyUpsertOne) SetDecimals

func (u *FiatCurrencyUpsertOne) SetDecimals(v int) *FiatCurrencyUpsertOne

SetDecimals sets the "decimals" field.

func (*FiatCurrencyUpsertOne) SetIsEnabled

func (u *FiatCurrencyUpsertOne) SetIsEnabled(v bool) *FiatCurrencyUpsertOne

SetIsEnabled sets the "is_enabled" field.

func (*FiatCurrencyUpsertOne) SetMarketRate

SetMarketRate sets the "market_rate" field.

func (*FiatCurrencyUpsertOne) SetName

SetName sets the "name" field.

func (*FiatCurrencyUpsertOne) SetShortName

SetShortName sets the "short_name" field.

func (*FiatCurrencyUpsertOne) SetSymbol

SetSymbol sets the "symbol" field.

func (*FiatCurrencyUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*FiatCurrencyUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the FiatCurrencyCreate.OnConflict documentation for more info.

func (*FiatCurrencyUpsertOne) UpdateCode

UpdateCode sets the "code" field to the value that was provided on create.

func (*FiatCurrencyUpsertOne) UpdateDecimals

func (u *FiatCurrencyUpsertOne) UpdateDecimals() *FiatCurrencyUpsertOne

UpdateDecimals sets the "decimals" field to the value that was provided on create.

func (*FiatCurrencyUpsertOne) UpdateIsEnabled

func (u *FiatCurrencyUpsertOne) UpdateIsEnabled() *FiatCurrencyUpsertOne

UpdateIsEnabled sets the "is_enabled" field to the value that was provided on create.

func (*FiatCurrencyUpsertOne) UpdateMarketRate

func (u *FiatCurrencyUpsertOne) UpdateMarketRate() *FiatCurrencyUpsertOne

UpdateMarketRate sets the "market_rate" field to the value that was provided on create.

func (*FiatCurrencyUpsertOne) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

func (*FiatCurrencyUpsertOne) UpdateNewValues

func (u *FiatCurrencyUpsertOne) UpdateNewValues() *FiatCurrencyUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.FiatCurrency.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(fiatcurrency.FieldID)
		}),
	).
	Exec(ctx)

func (*FiatCurrencyUpsertOne) UpdateShortName

func (u *FiatCurrencyUpsertOne) UpdateShortName() *FiatCurrencyUpsertOne

UpdateShortName sets the "short_name" field to the value that was provided on create.

func (*FiatCurrencyUpsertOne) UpdateSymbol

func (u *FiatCurrencyUpsertOne) UpdateSymbol() *FiatCurrencyUpsertOne

UpdateSymbol sets the "symbol" field to the value that was provided on create.

func (*FiatCurrencyUpsertOne) UpdateUpdatedAt

func (u *FiatCurrencyUpsertOne) UpdateUpdatedAt() *FiatCurrencyUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type Hook

type Hook = ent.Hook

ent aliases to avoid import conflicts in user's code.

type IdentityVerificationRequest

type IdentityVerificationRequest struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// WalletAddress holds the value of the "wallet_address" field.
	WalletAddress string `json:"wallet_address,omitempty"`
	// WalletSignature holds the value of the "wallet_signature" field.
	WalletSignature string `json:"wallet_signature,omitempty"`
	// Platform holds the value of the "platform" field.
	Platform identityverificationrequest.Platform `json:"platform,omitempty"`
	// PlatformRef holds the value of the "platform_ref" field.
	PlatformRef string `json:"platform_ref,omitempty"`
	// VerificationURL holds the value of the "verification_url" field.
	VerificationURL string `json:"verification_url,omitempty"`
	// Status holds the value of the "status" field.
	Status identityverificationrequest.Status `json:"status,omitempty"`
	// FeeReclaimed holds the value of the "fee_reclaimed" field.
	FeeReclaimed bool `json:"fee_reclaimed,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// LastURLCreatedAt holds the value of the "last_url_created_at" field.
	LastURLCreatedAt time.Time `json:"last_url_created_at,omitempty"`
	// contains filtered or unexported fields
}

IdentityVerificationRequest is the model entity for the IdentityVerificationRequest schema.

func (*IdentityVerificationRequest) String

func (ivr *IdentityVerificationRequest) String() string

String implements the fmt.Stringer.

func (*IdentityVerificationRequest) Unwrap

Unwrap unwraps the IdentityVerificationRequest entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*IdentityVerificationRequest) Update

Update returns a builder for updating this IdentityVerificationRequest. Note that you need to call IdentityVerificationRequest.Unwrap() before calling this method if this IdentityVerificationRequest was returned from a transaction, and the transaction was committed or rolled back.

func (*IdentityVerificationRequest) Value

func (ivr *IdentityVerificationRequest) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the IdentityVerificationRequest. This includes values selected through modifiers, order, etc.

type IdentityVerificationRequestClient

type IdentityVerificationRequestClient struct {
	// contains filtered or unexported fields
}

IdentityVerificationRequestClient is a client for the IdentityVerificationRequest schema.

func NewIdentityVerificationRequestClient

func NewIdentityVerificationRequestClient(c config) *IdentityVerificationRequestClient

NewIdentityVerificationRequestClient returns a client for the IdentityVerificationRequest from the given config.

func (*IdentityVerificationRequestClient) Create

Create returns a builder for creating a IdentityVerificationRequest entity.

func (*IdentityVerificationRequestClient) CreateBulk

CreateBulk returns a builder for creating a bulk of IdentityVerificationRequest entities.

func (*IdentityVerificationRequestClient) Delete

Delete returns a delete builder for IdentityVerificationRequest.

func (*IdentityVerificationRequestClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*IdentityVerificationRequestClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*IdentityVerificationRequestClient) Get

Get returns a IdentityVerificationRequest entity by its id.

func (*IdentityVerificationRequestClient) GetX

GetX is like Get, but panics if an error occurs.

func (*IdentityVerificationRequestClient) Hooks

Hooks returns the client hooks.

func (*IdentityVerificationRequestClient) Intercept

func (c *IdentityVerificationRequestClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `identityverificationrequest.Intercept(f(g(h())))`.

func (*IdentityVerificationRequestClient) Interceptors

func (c *IdentityVerificationRequestClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*IdentityVerificationRequestClient) MapCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*IdentityVerificationRequestClient) Query

Query returns a query builder for IdentityVerificationRequest.

func (*IdentityVerificationRequestClient) Update

Update returns an update builder for IdentityVerificationRequest.

func (*IdentityVerificationRequestClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*IdentityVerificationRequestClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*IdentityVerificationRequestClient) Use

func (c *IdentityVerificationRequestClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `identityverificationrequest.Hooks(f(g(h())))`.

type IdentityVerificationRequestCreate

type IdentityVerificationRequestCreate struct {
	// contains filtered or unexported fields
}

IdentityVerificationRequestCreate is the builder for creating a IdentityVerificationRequest entity.

func (*IdentityVerificationRequestCreate) Exec

Exec executes the query.

func (*IdentityVerificationRequestCreate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*IdentityVerificationRequestCreate) Mutation

Mutation returns the IdentityVerificationRequestMutation object of the builder.

func (*IdentityVerificationRequestCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.IdentityVerificationRequest.Create().
	SetWalletAddress(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.IdentityVerificationRequestUpsert) {
		SetWalletAddress(v+v).
	}).
	Exec(ctx)

func (*IdentityVerificationRequestCreate) OnConflictColumns

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.IdentityVerificationRequest.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*IdentityVerificationRequestCreate) Save

Save creates the IdentityVerificationRequest in the database.

func (*IdentityVerificationRequestCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*IdentityVerificationRequestCreate) SetFeeReclaimed

SetFeeReclaimed sets the "fee_reclaimed" field.

func (*IdentityVerificationRequestCreate) SetID

SetID sets the "id" field.

func (*IdentityVerificationRequestCreate) SetLastURLCreatedAt

SetLastURLCreatedAt sets the "last_url_created_at" field.

func (*IdentityVerificationRequestCreate) SetNillableFeeReclaimed

SetNillableFeeReclaimed sets the "fee_reclaimed" field if the given value is not nil.

func (*IdentityVerificationRequestCreate) SetNillableID

SetNillableID sets the "id" field if the given value is not nil.

func (*IdentityVerificationRequestCreate) SetNillableLastURLCreatedAt

func (ivrc *IdentityVerificationRequestCreate) SetNillableLastURLCreatedAt(t *time.Time) *IdentityVerificationRequestCreate

SetNillableLastURLCreatedAt sets the "last_url_created_at" field if the given value is not nil.

func (*IdentityVerificationRequestCreate) SetNillableStatus

SetNillableStatus sets the "status" field if the given value is not nil.

func (*IdentityVerificationRequestCreate) SetNillableUpdatedAt

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*IdentityVerificationRequestCreate) SetPlatform

SetPlatform sets the "platform" field.

func (*IdentityVerificationRequestCreate) SetPlatformRef

SetPlatformRef sets the "platform_ref" field.

func (*IdentityVerificationRequestCreate) SetStatus

SetStatus sets the "status" field.

func (*IdentityVerificationRequestCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*IdentityVerificationRequestCreate) SetVerificationURL

SetVerificationURL sets the "verification_url" field.

func (*IdentityVerificationRequestCreate) SetWalletAddress

SetWalletAddress sets the "wallet_address" field.

func (*IdentityVerificationRequestCreate) SetWalletSignature

SetWalletSignature sets the "wallet_signature" field.

type IdentityVerificationRequestCreateBulk

type IdentityVerificationRequestCreateBulk struct {
	// contains filtered or unexported fields
}

IdentityVerificationRequestCreateBulk is the builder for creating many IdentityVerificationRequest entities in bulk.

func (*IdentityVerificationRequestCreateBulk) Exec

Exec executes the query.

func (*IdentityVerificationRequestCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*IdentityVerificationRequestCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.IdentityVerificationRequest.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.IdentityVerificationRequestUpsert) {
		SetWalletAddress(v+v).
	}).
	Exec(ctx)

func (*IdentityVerificationRequestCreateBulk) OnConflictColumns

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.IdentityVerificationRequest.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*IdentityVerificationRequestCreateBulk) Save

Save creates the IdentityVerificationRequest entities in the database.

func (*IdentityVerificationRequestCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type IdentityVerificationRequestDelete

type IdentityVerificationRequestDelete struct {
	// contains filtered or unexported fields
}

IdentityVerificationRequestDelete is the builder for deleting a IdentityVerificationRequest entity.

func (*IdentityVerificationRequestDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*IdentityVerificationRequestDelete) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*IdentityVerificationRequestDelete) Where

Where appends a list predicates to the IdentityVerificationRequestDelete builder.

type IdentityVerificationRequestDeleteOne

type IdentityVerificationRequestDeleteOne struct {
	// contains filtered or unexported fields
}

IdentityVerificationRequestDeleteOne is the builder for deleting a single IdentityVerificationRequest entity.

func (*IdentityVerificationRequestDeleteOne) Exec

Exec executes the deletion query.

func (*IdentityVerificationRequestDeleteOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*IdentityVerificationRequestDeleteOne) Where

Where appends a list predicates to the IdentityVerificationRequestDelete builder.

type IdentityVerificationRequestGroupBy

type IdentityVerificationRequestGroupBy struct {
	// contains filtered or unexported fields
}

IdentityVerificationRequestGroupBy is the group-by builder for IdentityVerificationRequest entities.

func (*IdentityVerificationRequestGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*IdentityVerificationRequestGroupBy) Bool

func (s *IdentityVerificationRequestGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestGroupBy) BoolX

func (s *IdentityVerificationRequestGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*IdentityVerificationRequestGroupBy) Bools

func (s *IdentityVerificationRequestGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestGroupBy) BoolsX

func (s *IdentityVerificationRequestGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*IdentityVerificationRequestGroupBy) Float64

func (s *IdentityVerificationRequestGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestGroupBy) Float64X

func (s *IdentityVerificationRequestGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*IdentityVerificationRequestGroupBy) Float64s

func (s *IdentityVerificationRequestGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestGroupBy) Float64sX

func (s *IdentityVerificationRequestGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*IdentityVerificationRequestGroupBy) Int

func (s *IdentityVerificationRequestGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestGroupBy) IntX

func (s *IdentityVerificationRequestGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*IdentityVerificationRequestGroupBy) Ints

func (s *IdentityVerificationRequestGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestGroupBy) IntsX

func (s *IdentityVerificationRequestGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*IdentityVerificationRequestGroupBy) Scan

Scan applies the selector query and scans the result into the given value.

func (*IdentityVerificationRequestGroupBy) ScanX

func (s *IdentityVerificationRequestGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*IdentityVerificationRequestGroupBy) String

func (s *IdentityVerificationRequestGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestGroupBy) StringX

func (s *IdentityVerificationRequestGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*IdentityVerificationRequestGroupBy) Strings

func (s *IdentityVerificationRequestGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestGroupBy) StringsX

func (s *IdentityVerificationRequestGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type IdentityVerificationRequestMutation

type IdentityVerificationRequestMutation struct {
	// contains filtered or unexported fields
}

IdentityVerificationRequestMutation represents an operation that mutates the IdentityVerificationRequest nodes in the graph.

func (*IdentityVerificationRequestMutation) AddField

func (m *IdentityVerificationRequestMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*IdentityVerificationRequestMutation) AddedEdges

func (m *IdentityVerificationRequestMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*IdentityVerificationRequestMutation) AddedField

func (m *IdentityVerificationRequestMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*IdentityVerificationRequestMutation) AddedFields

func (m *IdentityVerificationRequestMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*IdentityVerificationRequestMutation) AddedIDs

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*IdentityVerificationRequestMutation) ClearEdge

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*IdentityVerificationRequestMutation) ClearField

func (m *IdentityVerificationRequestMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*IdentityVerificationRequestMutation) ClearedEdges

func (m *IdentityVerificationRequestMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*IdentityVerificationRequestMutation) ClearedFields

func (m *IdentityVerificationRequestMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (IdentityVerificationRequestMutation) Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*IdentityVerificationRequestMutation) EdgeCleared

func (m *IdentityVerificationRequestMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*IdentityVerificationRequestMutation) FeeReclaimed

func (m *IdentityVerificationRequestMutation) FeeReclaimed() (r bool, exists bool)

FeeReclaimed returns the value of the "fee_reclaimed" field in the mutation.

func (*IdentityVerificationRequestMutation) Field

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*IdentityVerificationRequestMutation) FieldCleared

func (m *IdentityVerificationRequestMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*IdentityVerificationRequestMutation) Fields

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*IdentityVerificationRequestMutation) ID

func (m *IdentityVerificationRequestMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*IdentityVerificationRequestMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*IdentityVerificationRequestMutation) LastURLCreatedAt

func (m *IdentityVerificationRequestMutation) LastURLCreatedAt() (r time.Time, exists bool)

LastURLCreatedAt returns the value of the "last_url_created_at" field in the mutation.

func (*IdentityVerificationRequestMutation) OldFeeReclaimed

func (m *IdentityVerificationRequestMutation) OldFeeReclaimed(ctx context.Context) (v bool, err error)

OldFeeReclaimed returns the old "fee_reclaimed" field's value of the IdentityVerificationRequest entity. If the IdentityVerificationRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IdentityVerificationRequestMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*IdentityVerificationRequestMutation) OldLastURLCreatedAt

func (m *IdentityVerificationRequestMutation) OldLastURLCreatedAt(ctx context.Context) (v time.Time, err error)

OldLastURLCreatedAt returns the old "last_url_created_at" field's value of the IdentityVerificationRequest entity. If the IdentityVerificationRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IdentityVerificationRequestMutation) OldPlatform

OldPlatform returns the old "platform" field's value of the IdentityVerificationRequest entity. If the IdentityVerificationRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IdentityVerificationRequestMutation) OldPlatformRef

func (m *IdentityVerificationRequestMutation) OldPlatformRef(ctx context.Context) (v string, err error)

OldPlatformRef returns the old "platform_ref" field's value of the IdentityVerificationRequest entity. If the IdentityVerificationRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IdentityVerificationRequestMutation) OldStatus

OldStatus returns the old "status" field's value of the IdentityVerificationRequest entity. If the IdentityVerificationRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IdentityVerificationRequestMutation) OldUpdatedAt

func (m *IdentityVerificationRequestMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the IdentityVerificationRequest entity. If the IdentityVerificationRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IdentityVerificationRequestMutation) OldVerificationURL

func (m *IdentityVerificationRequestMutation) OldVerificationURL(ctx context.Context) (v string, err error)

OldVerificationURL returns the old "verification_url" field's value of the IdentityVerificationRequest entity. If the IdentityVerificationRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IdentityVerificationRequestMutation) OldWalletAddress

func (m *IdentityVerificationRequestMutation) OldWalletAddress(ctx context.Context) (v string, err error)

OldWalletAddress returns the old "wallet_address" field's value of the IdentityVerificationRequest entity. If the IdentityVerificationRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IdentityVerificationRequestMutation) OldWalletSignature

func (m *IdentityVerificationRequestMutation) OldWalletSignature(ctx context.Context) (v string, err error)

OldWalletSignature returns the old "wallet_signature" field's value of the IdentityVerificationRequest entity. If the IdentityVerificationRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*IdentityVerificationRequestMutation) Op

Op returns the operation name.

func (*IdentityVerificationRequestMutation) Platform

Platform returns the value of the "platform" field in the mutation.

func (*IdentityVerificationRequestMutation) PlatformRef

func (m *IdentityVerificationRequestMutation) PlatformRef() (r string, exists bool)

PlatformRef returns the value of the "platform_ref" field in the mutation.

func (*IdentityVerificationRequestMutation) RemovedEdges

func (m *IdentityVerificationRequestMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*IdentityVerificationRequestMutation) RemovedIDs

func (m *IdentityVerificationRequestMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*IdentityVerificationRequestMutation) ResetEdge

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*IdentityVerificationRequestMutation) ResetFeeReclaimed

func (m *IdentityVerificationRequestMutation) ResetFeeReclaimed()

ResetFeeReclaimed resets all changes to the "fee_reclaimed" field.

func (*IdentityVerificationRequestMutation) ResetField

func (m *IdentityVerificationRequestMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*IdentityVerificationRequestMutation) ResetLastURLCreatedAt

func (m *IdentityVerificationRequestMutation) ResetLastURLCreatedAt()

ResetLastURLCreatedAt resets all changes to the "last_url_created_at" field.

func (*IdentityVerificationRequestMutation) ResetPlatform

func (m *IdentityVerificationRequestMutation) ResetPlatform()

ResetPlatform resets all changes to the "platform" field.

func (*IdentityVerificationRequestMutation) ResetPlatformRef

func (m *IdentityVerificationRequestMutation) ResetPlatformRef()

ResetPlatformRef resets all changes to the "platform_ref" field.

func (*IdentityVerificationRequestMutation) ResetStatus

func (m *IdentityVerificationRequestMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*IdentityVerificationRequestMutation) ResetUpdatedAt

func (m *IdentityVerificationRequestMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*IdentityVerificationRequestMutation) ResetVerificationURL

func (m *IdentityVerificationRequestMutation) ResetVerificationURL()

ResetVerificationURL resets all changes to the "verification_url" field.

func (*IdentityVerificationRequestMutation) ResetWalletAddress

func (m *IdentityVerificationRequestMutation) ResetWalletAddress()

ResetWalletAddress resets all changes to the "wallet_address" field.

func (*IdentityVerificationRequestMutation) ResetWalletSignature

func (m *IdentityVerificationRequestMutation) ResetWalletSignature()

ResetWalletSignature resets all changes to the "wallet_signature" field.

func (*IdentityVerificationRequestMutation) SetFeeReclaimed

func (m *IdentityVerificationRequestMutation) SetFeeReclaimed(b bool)

SetFeeReclaimed sets the "fee_reclaimed" field.

func (*IdentityVerificationRequestMutation) SetField

func (m *IdentityVerificationRequestMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*IdentityVerificationRequestMutation) SetID

SetID sets the value of the id field. Note that this operation is only accepted on creation of IdentityVerificationRequest entities.

func (*IdentityVerificationRequestMutation) SetLastURLCreatedAt

func (m *IdentityVerificationRequestMutation) SetLastURLCreatedAt(t time.Time)

SetLastURLCreatedAt sets the "last_url_created_at" field.

func (*IdentityVerificationRequestMutation) SetOp

SetOp allows setting the mutation operation.

func (*IdentityVerificationRequestMutation) SetPlatform

SetPlatform sets the "platform" field.

func (*IdentityVerificationRequestMutation) SetPlatformRef

func (m *IdentityVerificationRequestMutation) SetPlatformRef(s string)

SetPlatformRef sets the "platform_ref" field.

func (*IdentityVerificationRequestMutation) SetStatus

SetStatus sets the "status" field.

func (*IdentityVerificationRequestMutation) SetUpdatedAt

func (m *IdentityVerificationRequestMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*IdentityVerificationRequestMutation) SetVerificationURL

func (m *IdentityVerificationRequestMutation) SetVerificationURL(s string)

SetVerificationURL sets the "verification_url" field.

func (*IdentityVerificationRequestMutation) SetWalletAddress

func (m *IdentityVerificationRequestMutation) SetWalletAddress(s string)

SetWalletAddress sets the "wallet_address" field.

func (*IdentityVerificationRequestMutation) SetWalletSignature

func (m *IdentityVerificationRequestMutation) SetWalletSignature(s string)

SetWalletSignature sets the "wallet_signature" field.

func (*IdentityVerificationRequestMutation) Status

Status returns the value of the "status" field in the mutation.

func (IdentityVerificationRequestMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*IdentityVerificationRequestMutation) Type

Type returns the node type of this mutation (IdentityVerificationRequest).

func (*IdentityVerificationRequestMutation) UpdatedAt

func (m *IdentityVerificationRequestMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*IdentityVerificationRequestMutation) VerificationURL

func (m *IdentityVerificationRequestMutation) VerificationURL() (r string, exists bool)

VerificationURL returns the value of the "verification_url" field in the mutation.

func (*IdentityVerificationRequestMutation) WalletAddress

func (m *IdentityVerificationRequestMutation) WalletAddress() (r string, exists bool)

WalletAddress returns the value of the "wallet_address" field in the mutation.

func (*IdentityVerificationRequestMutation) WalletSignature

func (m *IdentityVerificationRequestMutation) WalletSignature() (r string, exists bool)

WalletSignature returns the value of the "wallet_signature" field in the mutation.

func (*IdentityVerificationRequestMutation) Where

Where appends a list predicates to the IdentityVerificationRequestMutation builder.

func (*IdentityVerificationRequestMutation) WhereP

func (m *IdentityVerificationRequestMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the IdentityVerificationRequestMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type IdentityVerificationRequestQuery

type IdentityVerificationRequestQuery struct {
	// contains filtered or unexported fields
}

IdentityVerificationRequestQuery is the builder for querying IdentityVerificationRequest entities.

func (*IdentityVerificationRequestQuery) Aggregate

Aggregate returns a IdentityVerificationRequestSelect configured with the given aggregations.

func (*IdentityVerificationRequestQuery) All

All executes the query and returns a list of IdentityVerificationRequests.

func (*IdentityVerificationRequestQuery) AllX

AllX is like All, but panics if an error occurs.

func (*IdentityVerificationRequestQuery) Clone

Clone returns a duplicate of the IdentityVerificationRequestQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*IdentityVerificationRequestQuery) Count

Count returns the count of the given query.

func (*IdentityVerificationRequestQuery) CountX

CountX is like Count, but panics if an error occurs.

func (*IdentityVerificationRequestQuery) Exist

Exist returns true if the query has elements in the graph.

func (*IdentityVerificationRequestQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*IdentityVerificationRequestQuery) First

First returns the first IdentityVerificationRequest entity from the query. Returns a *NotFoundError when no IdentityVerificationRequest was found.

func (*IdentityVerificationRequestQuery) FirstID

func (ivrq *IdentityVerificationRequestQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first IdentityVerificationRequest ID from the query. Returns a *NotFoundError when no IdentityVerificationRequest ID was found.

func (*IdentityVerificationRequestQuery) FirstIDX

FirstIDX is like FirstID, but panics if an error occurs.

func (*IdentityVerificationRequestQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*IdentityVerificationRequestQuery) GroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	WalletAddress string `json:"wallet_address,omitempty"`
	Count int `json:"count,omitempty"`
}

client.IdentityVerificationRequest.Query().
	GroupBy(identityverificationrequest.FieldWalletAddress).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*IdentityVerificationRequestQuery) IDs

func (ivrq *IdentityVerificationRequestQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of IdentityVerificationRequest IDs.

func (*IdentityVerificationRequestQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*IdentityVerificationRequestQuery) Limit

Limit the number of records to be returned by this query.

func (*IdentityVerificationRequestQuery) Offset

Offset to start from.

func (*IdentityVerificationRequestQuery) Only

Only returns a single IdentityVerificationRequest entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one IdentityVerificationRequest entity is found. Returns a *NotFoundError when no IdentityVerificationRequest entities are found.

func (*IdentityVerificationRequestQuery) OnlyID

func (ivrq *IdentityVerificationRequestQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only IdentityVerificationRequest ID in the query. Returns a *NotSingularError when more than one IdentityVerificationRequest ID is found. Returns a *NotFoundError when no entities are found.

func (*IdentityVerificationRequestQuery) OnlyIDX

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*IdentityVerificationRequestQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*IdentityVerificationRequestQuery) Order

Order specifies how the records should be ordered.

func (*IdentityVerificationRequestQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	WalletAddress string `json:"wallet_address,omitempty"`
}

client.IdentityVerificationRequest.Query().
	Select(identityverificationrequest.FieldWalletAddress).
	Scan(ctx, &v)

func (*IdentityVerificationRequestQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*IdentityVerificationRequestQuery) Where

Where adds a new predicate for the IdentityVerificationRequestQuery builder.

type IdentityVerificationRequestSelect

type IdentityVerificationRequestSelect struct {
	*IdentityVerificationRequestQuery
	// contains filtered or unexported fields
}

IdentityVerificationRequestSelect is the builder for selecting fields of IdentityVerificationRequest entities.

func (*IdentityVerificationRequestSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*IdentityVerificationRequestSelect) Bool

func (s *IdentityVerificationRequestSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestSelect) BoolX

func (s *IdentityVerificationRequestSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*IdentityVerificationRequestSelect) Bools

func (s *IdentityVerificationRequestSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestSelect) BoolsX

func (s *IdentityVerificationRequestSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*IdentityVerificationRequestSelect) Float64

func (s *IdentityVerificationRequestSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestSelect) Float64X

func (s *IdentityVerificationRequestSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*IdentityVerificationRequestSelect) Float64s

func (s *IdentityVerificationRequestSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestSelect) Float64sX

func (s *IdentityVerificationRequestSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*IdentityVerificationRequestSelect) Int

func (s *IdentityVerificationRequestSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestSelect) IntX

func (s *IdentityVerificationRequestSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*IdentityVerificationRequestSelect) Ints

func (s *IdentityVerificationRequestSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestSelect) IntsX

func (s *IdentityVerificationRequestSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*IdentityVerificationRequestSelect) Scan

Scan applies the selector query and scans the result into the given value.

func (*IdentityVerificationRequestSelect) ScanX

func (s *IdentityVerificationRequestSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*IdentityVerificationRequestSelect) String

func (s *IdentityVerificationRequestSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestSelect) StringX

func (s *IdentityVerificationRequestSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*IdentityVerificationRequestSelect) Strings

func (s *IdentityVerificationRequestSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*IdentityVerificationRequestSelect) StringsX

func (s *IdentityVerificationRequestSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type IdentityVerificationRequestUpdate

type IdentityVerificationRequestUpdate struct {
	// contains filtered or unexported fields
}

IdentityVerificationRequestUpdate is the builder for updating IdentityVerificationRequest entities.

func (*IdentityVerificationRequestUpdate) Exec

Exec executes the query.

func (*IdentityVerificationRequestUpdate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*IdentityVerificationRequestUpdate) Mutation

Mutation returns the IdentityVerificationRequestMutation object of the builder.

func (*IdentityVerificationRequestUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*IdentityVerificationRequestUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*IdentityVerificationRequestUpdate) SetFeeReclaimed

SetFeeReclaimed sets the "fee_reclaimed" field.

func (*IdentityVerificationRequestUpdate) SetLastURLCreatedAt

SetLastURLCreatedAt sets the "last_url_created_at" field.

func (*IdentityVerificationRequestUpdate) SetNillableFeeReclaimed

SetNillableFeeReclaimed sets the "fee_reclaimed" field if the given value is not nil.

func (*IdentityVerificationRequestUpdate) SetNillableLastURLCreatedAt

func (ivru *IdentityVerificationRequestUpdate) SetNillableLastURLCreatedAt(t *time.Time) *IdentityVerificationRequestUpdate

SetNillableLastURLCreatedAt sets the "last_url_created_at" field if the given value is not nil.

func (*IdentityVerificationRequestUpdate) SetNillablePlatform

SetNillablePlatform sets the "platform" field if the given value is not nil.

func (*IdentityVerificationRequestUpdate) SetNillablePlatformRef

SetNillablePlatformRef sets the "platform_ref" field if the given value is not nil.

func (*IdentityVerificationRequestUpdate) SetNillableStatus

SetNillableStatus sets the "status" field if the given value is not nil.

func (*IdentityVerificationRequestUpdate) SetNillableVerificationURL

func (ivru *IdentityVerificationRequestUpdate) SetNillableVerificationURL(s *string) *IdentityVerificationRequestUpdate

SetNillableVerificationURL sets the "verification_url" field if the given value is not nil.

func (*IdentityVerificationRequestUpdate) SetNillableWalletAddress

SetNillableWalletAddress sets the "wallet_address" field if the given value is not nil.

func (*IdentityVerificationRequestUpdate) SetNillableWalletSignature

func (ivru *IdentityVerificationRequestUpdate) SetNillableWalletSignature(s *string) *IdentityVerificationRequestUpdate

SetNillableWalletSignature sets the "wallet_signature" field if the given value is not nil.

func (*IdentityVerificationRequestUpdate) SetPlatform

SetPlatform sets the "platform" field.

func (*IdentityVerificationRequestUpdate) SetPlatformRef

SetPlatformRef sets the "platform_ref" field.

func (*IdentityVerificationRequestUpdate) SetStatus

SetStatus sets the "status" field.

func (*IdentityVerificationRequestUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*IdentityVerificationRequestUpdate) SetVerificationURL

SetVerificationURL sets the "verification_url" field.

func (*IdentityVerificationRequestUpdate) SetWalletAddress

SetWalletAddress sets the "wallet_address" field.

func (*IdentityVerificationRequestUpdate) SetWalletSignature

SetWalletSignature sets the "wallet_signature" field.

func (*IdentityVerificationRequestUpdate) Where

Where appends a list predicates to the IdentityVerificationRequestUpdate builder.

type IdentityVerificationRequestUpdateOne

type IdentityVerificationRequestUpdateOne struct {
	// contains filtered or unexported fields
}

IdentityVerificationRequestUpdateOne is the builder for updating a single IdentityVerificationRequest entity.

func (*IdentityVerificationRequestUpdateOne) Exec

Exec executes the query on the entity.

func (*IdentityVerificationRequestUpdateOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*IdentityVerificationRequestUpdateOne) Mutation

Mutation returns the IdentityVerificationRequestMutation object of the builder.

func (*IdentityVerificationRequestUpdateOne) Save

Save executes the query and returns the updated IdentityVerificationRequest entity.

func (*IdentityVerificationRequestUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*IdentityVerificationRequestUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*IdentityVerificationRequestUpdateOne) SetFeeReclaimed

SetFeeReclaimed sets the "fee_reclaimed" field.

func (*IdentityVerificationRequestUpdateOne) SetLastURLCreatedAt

SetLastURLCreatedAt sets the "last_url_created_at" field.

func (*IdentityVerificationRequestUpdateOne) SetNillableFeeReclaimed

SetNillableFeeReclaimed sets the "fee_reclaimed" field if the given value is not nil.

func (*IdentityVerificationRequestUpdateOne) SetNillableLastURLCreatedAt

SetNillableLastURLCreatedAt sets the "last_url_created_at" field if the given value is not nil.

func (*IdentityVerificationRequestUpdateOne) SetNillablePlatform

SetNillablePlatform sets the "platform" field if the given value is not nil.

func (*IdentityVerificationRequestUpdateOne) SetNillablePlatformRef

SetNillablePlatformRef sets the "platform_ref" field if the given value is not nil.

func (*IdentityVerificationRequestUpdateOne) SetNillableStatus

SetNillableStatus sets the "status" field if the given value is not nil.

func (*IdentityVerificationRequestUpdateOne) SetNillableVerificationURL

SetNillableVerificationURL sets the "verification_url" field if the given value is not nil.

func (*IdentityVerificationRequestUpdateOne) SetNillableWalletAddress

SetNillableWalletAddress sets the "wallet_address" field if the given value is not nil.

func (*IdentityVerificationRequestUpdateOne) SetNillableWalletSignature

SetNillableWalletSignature sets the "wallet_signature" field if the given value is not nil.

func (*IdentityVerificationRequestUpdateOne) SetPlatform

SetPlatform sets the "platform" field.

func (*IdentityVerificationRequestUpdateOne) SetPlatformRef

SetPlatformRef sets the "platform_ref" field.

func (*IdentityVerificationRequestUpdateOne) SetStatus

SetStatus sets the "status" field.

func (*IdentityVerificationRequestUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*IdentityVerificationRequestUpdateOne) SetVerificationURL

SetVerificationURL sets the "verification_url" field.

func (*IdentityVerificationRequestUpdateOne) SetWalletAddress

SetWalletAddress sets the "wallet_address" field.

func (*IdentityVerificationRequestUpdateOne) SetWalletSignature

SetWalletSignature sets the "wallet_signature" field.

func (*IdentityVerificationRequestUpdateOne) Where

Where appends a list predicates to the IdentityVerificationRequestUpdate builder.

type IdentityVerificationRequestUpsert

type IdentityVerificationRequestUpsert struct {
	*sql.UpdateSet
}

IdentityVerificationRequestUpsert is the "OnConflict" setter.

func (*IdentityVerificationRequestUpsert) SetFeeReclaimed

SetFeeReclaimed sets the "fee_reclaimed" field.

func (*IdentityVerificationRequestUpsert) SetLastURLCreatedAt

SetLastURLCreatedAt sets the "last_url_created_at" field.

func (*IdentityVerificationRequestUpsert) SetPlatform

SetPlatform sets the "platform" field.

func (*IdentityVerificationRequestUpsert) SetPlatformRef

SetPlatformRef sets the "platform_ref" field.

func (*IdentityVerificationRequestUpsert) SetStatus

SetStatus sets the "status" field.

func (*IdentityVerificationRequestUpsert) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*IdentityVerificationRequestUpsert) SetVerificationURL

SetVerificationURL sets the "verification_url" field.

func (*IdentityVerificationRequestUpsert) SetWalletAddress

SetWalletAddress sets the "wallet_address" field.

func (*IdentityVerificationRequestUpsert) SetWalletSignature

SetWalletSignature sets the "wallet_signature" field.

func (*IdentityVerificationRequestUpsert) UpdateFeeReclaimed

UpdateFeeReclaimed sets the "fee_reclaimed" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsert) UpdateLastURLCreatedAt

UpdateLastURLCreatedAt sets the "last_url_created_at" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsert) UpdatePlatform

UpdatePlatform sets the "platform" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsert) UpdatePlatformRef

UpdatePlatformRef sets the "platform_ref" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsert) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsert) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsert) UpdateVerificationURL

UpdateVerificationURL sets the "verification_url" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsert) UpdateWalletAddress

UpdateWalletAddress sets the "wallet_address" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsert) UpdateWalletSignature

UpdateWalletSignature sets the "wallet_signature" field to the value that was provided on create.

type IdentityVerificationRequestUpsertBulk

type IdentityVerificationRequestUpsertBulk struct {
	// contains filtered or unexported fields
}

IdentityVerificationRequestUpsertBulk is the builder for "upsert"-ing a bulk of IdentityVerificationRequest nodes.

func (*IdentityVerificationRequestUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*IdentityVerificationRequestUpsertBulk) Exec

Exec executes the query.

func (*IdentityVerificationRequestUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*IdentityVerificationRequestUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.IdentityVerificationRequest.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*IdentityVerificationRequestUpsertBulk) SetFeeReclaimed

SetFeeReclaimed sets the "fee_reclaimed" field.

func (*IdentityVerificationRequestUpsertBulk) SetLastURLCreatedAt

SetLastURLCreatedAt sets the "last_url_created_at" field.

func (*IdentityVerificationRequestUpsertBulk) SetPlatform

SetPlatform sets the "platform" field.

func (*IdentityVerificationRequestUpsertBulk) SetPlatformRef

SetPlatformRef sets the "platform_ref" field.

func (*IdentityVerificationRequestUpsertBulk) SetStatus

SetStatus sets the "status" field.

func (*IdentityVerificationRequestUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*IdentityVerificationRequestUpsertBulk) SetVerificationURL

SetVerificationURL sets the "verification_url" field.

func (*IdentityVerificationRequestUpsertBulk) SetWalletAddress

SetWalletAddress sets the "wallet_address" field.

func (*IdentityVerificationRequestUpsertBulk) SetWalletSignature

SetWalletSignature sets the "wallet_signature" field.

func (*IdentityVerificationRequestUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the IdentityVerificationRequestCreateBulk.OnConflict documentation for more info.

func (*IdentityVerificationRequestUpsertBulk) UpdateFeeReclaimed

UpdateFeeReclaimed sets the "fee_reclaimed" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertBulk) UpdateLastURLCreatedAt

UpdateLastURLCreatedAt sets the "last_url_created_at" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.IdentityVerificationRequest.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(identityverificationrequest.FieldID)
		}),
	).
	Exec(ctx)

func (*IdentityVerificationRequestUpsertBulk) UpdatePlatform

UpdatePlatform sets the "platform" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertBulk) UpdatePlatformRef

UpdatePlatformRef sets the "platform_ref" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertBulk) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertBulk) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertBulk) UpdateVerificationURL

UpdateVerificationURL sets the "verification_url" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertBulk) UpdateWalletAddress

UpdateWalletAddress sets the "wallet_address" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertBulk) UpdateWalletSignature

UpdateWalletSignature sets the "wallet_signature" field to the value that was provided on create.

type IdentityVerificationRequestUpsertOne

type IdentityVerificationRequestUpsertOne struct {
	// contains filtered or unexported fields
}

IdentityVerificationRequestUpsertOne is the builder for "upsert"-ing

one IdentityVerificationRequest node.

func (*IdentityVerificationRequestUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*IdentityVerificationRequestUpsertOne) Exec

Exec executes the query.

func (*IdentityVerificationRequestUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*IdentityVerificationRequestUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*IdentityVerificationRequestUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*IdentityVerificationRequestUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.IdentityVerificationRequest.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*IdentityVerificationRequestUpsertOne) SetFeeReclaimed

SetFeeReclaimed sets the "fee_reclaimed" field.

func (*IdentityVerificationRequestUpsertOne) SetLastURLCreatedAt

SetLastURLCreatedAt sets the "last_url_created_at" field.

func (*IdentityVerificationRequestUpsertOne) SetPlatform

SetPlatform sets the "platform" field.

func (*IdentityVerificationRequestUpsertOne) SetPlatformRef

SetPlatformRef sets the "platform_ref" field.

func (*IdentityVerificationRequestUpsertOne) SetStatus

SetStatus sets the "status" field.

func (*IdentityVerificationRequestUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*IdentityVerificationRequestUpsertOne) SetVerificationURL

SetVerificationURL sets the "verification_url" field.

func (*IdentityVerificationRequestUpsertOne) SetWalletAddress

SetWalletAddress sets the "wallet_address" field.

func (*IdentityVerificationRequestUpsertOne) SetWalletSignature

SetWalletSignature sets the "wallet_signature" field.

func (*IdentityVerificationRequestUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the IdentityVerificationRequestCreate.OnConflict documentation for more info.

func (*IdentityVerificationRequestUpsertOne) UpdateFeeReclaimed

UpdateFeeReclaimed sets the "fee_reclaimed" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertOne) UpdateLastURLCreatedAt

UpdateLastURLCreatedAt sets the "last_url_created_at" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.IdentityVerificationRequest.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(identityverificationrequest.FieldID)
		}),
	).
	Exec(ctx)

func (*IdentityVerificationRequestUpsertOne) UpdatePlatform

UpdatePlatform sets the "platform" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertOne) UpdatePlatformRef

UpdatePlatformRef sets the "platform_ref" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertOne) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertOne) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertOne) UpdateVerificationURL

UpdateVerificationURL sets the "verification_url" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertOne) UpdateWalletAddress

UpdateWalletAddress sets the "wallet_address" field to the value that was provided on create.

func (*IdentityVerificationRequestUpsertOne) UpdateWalletSignature

UpdateWalletSignature sets the "wallet_signature" field to the value that was provided on create.

type IdentityVerificationRequests

type IdentityVerificationRequests []*IdentityVerificationRequest

IdentityVerificationRequests is a parsable slice of IdentityVerificationRequest.

type Institution

type Institution struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Code holds the value of the "code" field.
	Code string `json:"code,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Type holds the value of the "type" field.
	Type institution.Type `json:"type,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the InstitutionQuery when eager-loading is set.
	Edges InstitutionEdges `json:"edges"`
	// contains filtered or unexported fields
}

Institution is the model entity for the Institution schema.

func (*Institution) QueryFiatCurrency

func (i *Institution) QueryFiatCurrency() *FiatCurrencyQuery

QueryFiatCurrency queries the "fiat_currency" edge of the Institution entity.

func (*Institution) String

func (i *Institution) String() string

String implements the fmt.Stringer.

func (*Institution) Unwrap

func (i *Institution) Unwrap() *Institution

Unwrap unwraps the Institution entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Institution) Update

func (i *Institution) Update() *InstitutionUpdateOne

Update returns a builder for updating this Institution. Note that you need to call Institution.Unwrap() before calling this method if this Institution was returned from a transaction, and the transaction was committed or rolled back.

func (*Institution) Value

func (i *Institution) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Institution. This includes values selected through modifiers, order, etc.

type InstitutionClient

type InstitutionClient struct {
	// contains filtered or unexported fields
}

InstitutionClient is a client for the Institution schema.

func NewInstitutionClient

func NewInstitutionClient(c config) *InstitutionClient

NewInstitutionClient returns a client for the Institution from the given config.

func (*InstitutionClient) Create

func (c *InstitutionClient) Create() *InstitutionCreate

Create returns a builder for creating a Institution entity.

func (*InstitutionClient) CreateBulk

func (c *InstitutionClient) CreateBulk(builders ...*InstitutionCreate) *InstitutionCreateBulk

CreateBulk returns a builder for creating a bulk of Institution entities.

func (*InstitutionClient) Delete

func (c *InstitutionClient) Delete() *InstitutionDelete

Delete returns a delete builder for Institution.

func (*InstitutionClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*InstitutionClient) DeleteOneID

func (c *InstitutionClient) DeleteOneID(id int) *InstitutionDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*InstitutionClient) Get

func (c *InstitutionClient) Get(ctx context.Context, id int) (*Institution, error)

Get returns a Institution entity by its id.

func (*InstitutionClient) GetX

func (c *InstitutionClient) GetX(ctx context.Context, id int) *Institution

GetX is like Get, but panics if an error occurs.

func (*InstitutionClient) Hooks

func (c *InstitutionClient) Hooks() []Hook

Hooks returns the client hooks.

func (*InstitutionClient) Intercept

func (c *InstitutionClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `institution.Intercept(f(g(h())))`.

func (*InstitutionClient) Interceptors

func (c *InstitutionClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*InstitutionClient) MapCreateBulk

func (c *InstitutionClient) MapCreateBulk(slice any, setFunc func(*InstitutionCreate, int)) *InstitutionCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*InstitutionClient) Query

func (c *InstitutionClient) Query() *InstitutionQuery

Query returns a query builder for Institution.

func (*InstitutionClient) QueryFiatCurrency

func (c *InstitutionClient) QueryFiatCurrency(i *Institution) *FiatCurrencyQuery

QueryFiatCurrency queries the fiat_currency edge of a Institution.

func (*InstitutionClient) Update

func (c *InstitutionClient) Update() *InstitutionUpdate

Update returns an update builder for Institution.

func (*InstitutionClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*InstitutionClient) UpdateOneID

func (c *InstitutionClient) UpdateOneID(id int) *InstitutionUpdateOne

UpdateOneID returns an update builder for the given id.

func (*InstitutionClient) Use

func (c *InstitutionClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `institution.Hooks(f(g(h())))`.

type InstitutionCreate

type InstitutionCreate struct {
	// contains filtered or unexported fields
}

InstitutionCreate is the builder for creating a Institution entity.

func (*InstitutionCreate) Exec

func (ic *InstitutionCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*InstitutionCreate) ExecX

func (ic *InstitutionCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*InstitutionCreate) Mutation

func (ic *InstitutionCreate) Mutation() *InstitutionMutation

Mutation returns the InstitutionMutation object of the builder.

func (*InstitutionCreate) OnConflict

func (ic *InstitutionCreate) OnConflict(opts ...sql.ConflictOption) *InstitutionUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Institution.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.InstitutionUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*InstitutionCreate) OnConflictColumns

func (ic *InstitutionCreate) OnConflictColumns(columns ...string) *InstitutionUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Institution.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*InstitutionCreate) Save

Save creates the Institution in the database.

func (*InstitutionCreate) SaveX

func (ic *InstitutionCreate) SaveX(ctx context.Context) *Institution

SaveX calls Save and panics if Save returns an error.

func (*InstitutionCreate) SetCode

func (ic *InstitutionCreate) SetCode(s string) *InstitutionCreate

SetCode sets the "code" field.

func (*InstitutionCreate) SetCreatedAt

func (ic *InstitutionCreate) SetCreatedAt(t time.Time) *InstitutionCreate

SetCreatedAt sets the "created_at" field.

func (*InstitutionCreate) SetFiatCurrency

func (ic *InstitutionCreate) SetFiatCurrency(f *FiatCurrency) *InstitutionCreate

SetFiatCurrency sets the "fiat_currency" edge to the FiatCurrency entity.

func (*InstitutionCreate) SetFiatCurrencyID

func (ic *InstitutionCreate) SetFiatCurrencyID(id uuid.UUID) *InstitutionCreate

SetFiatCurrencyID sets the "fiat_currency" edge to the FiatCurrency entity by ID.

func (*InstitutionCreate) SetName

func (ic *InstitutionCreate) SetName(s string) *InstitutionCreate

SetName sets the "name" field.

func (*InstitutionCreate) SetNillableCreatedAt

func (ic *InstitutionCreate) SetNillableCreatedAt(t *time.Time) *InstitutionCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*InstitutionCreate) SetNillableFiatCurrencyID

func (ic *InstitutionCreate) SetNillableFiatCurrencyID(id *uuid.UUID) *InstitutionCreate

SetNillableFiatCurrencyID sets the "fiat_currency" edge to the FiatCurrency entity by ID if the given value is not nil.

func (*InstitutionCreate) SetNillableType

func (ic *InstitutionCreate) SetNillableType(i *institution.Type) *InstitutionCreate

SetNillableType sets the "type" field if the given value is not nil.

func (*InstitutionCreate) SetNillableUpdatedAt

func (ic *InstitutionCreate) SetNillableUpdatedAt(t *time.Time) *InstitutionCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*InstitutionCreate) SetType

SetType sets the "type" field.

func (*InstitutionCreate) SetUpdatedAt

func (ic *InstitutionCreate) SetUpdatedAt(t time.Time) *InstitutionCreate

SetUpdatedAt sets the "updated_at" field.

type InstitutionCreateBulk

type InstitutionCreateBulk struct {
	// contains filtered or unexported fields
}

InstitutionCreateBulk is the builder for creating many Institution entities in bulk.

func (*InstitutionCreateBulk) Exec

func (icb *InstitutionCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*InstitutionCreateBulk) ExecX

func (icb *InstitutionCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*InstitutionCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Institution.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.InstitutionUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*InstitutionCreateBulk) OnConflictColumns

func (icb *InstitutionCreateBulk) OnConflictColumns(columns ...string) *InstitutionUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Institution.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*InstitutionCreateBulk) Save

func (icb *InstitutionCreateBulk) Save(ctx context.Context) ([]*Institution, error)

Save creates the Institution entities in the database.

func (*InstitutionCreateBulk) SaveX

func (icb *InstitutionCreateBulk) SaveX(ctx context.Context) []*Institution

SaveX is like Save, but panics if an error occurs.

type InstitutionDelete

type InstitutionDelete struct {
	// contains filtered or unexported fields
}

InstitutionDelete is the builder for deleting a Institution entity.

func (*InstitutionDelete) Exec

func (id *InstitutionDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*InstitutionDelete) ExecX

func (id *InstitutionDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*InstitutionDelete) Where

Where appends a list predicates to the InstitutionDelete builder.

type InstitutionDeleteOne

type InstitutionDeleteOne struct {
	// contains filtered or unexported fields
}

InstitutionDeleteOne is the builder for deleting a single Institution entity.

func (*InstitutionDeleteOne) Exec

func (ido *InstitutionDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*InstitutionDeleteOne) ExecX

func (ido *InstitutionDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*InstitutionDeleteOne) Where

Where appends a list predicates to the InstitutionDelete builder.

type InstitutionEdges

type InstitutionEdges struct {
	// FiatCurrency holds the value of the fiat_currency edge.
	FiatCurrency *FiatCurrency `json:"fiat_currency,omitempty"`
	// contains filtered or unexported fields
}

InstitutionEdges holds the relations/edges for other nodes in the graph.

func (InstitutionEdges) FiatCurrencyOrErr

func (e InstitutionEdges) FiatCurrencyOrErr() (*FiatCurrency, error)

FiatCurrencyOrErr returns the FiatCurrency value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type InstitutionGroupBy

type InstitutionGroupBy struct {
	// contains filtered or unexported fields
}

InstitutionGroupBy is the group-by builder for Institution entities.

func (*InstitutionGroupBy) Aggregate

func (igb *InstitutionGroupBy) Aggregate(fns ...AggregateFunc) *InstitutionGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*InstitutionGroupBy) Bool

func (s *InstitutionGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*InstitutionGroupBy) BoolX

func (s *InstitutionGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*InstitutionGroupBy) Bools

func (s *InstitutionGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*InstitutionGroupBy) BoolsX

func (s *InstitutionGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*InstitutionGroupBy) Float64

func (s *InstitutionGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*InstitutionGroupBy) Float64X

func (s *InstitutionGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*InstitutionGroupBy) Float64s

func (s *InstitutionGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*InstitutionGroupBy) Float64sX

func (s *InstitutionGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*InstitutionGroupBy) Int

func (s *InstitutionGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*InstitutionGroupBy) IntX

func (s *InstitutionGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*InstitutionGroupBy) Ints

func (s *InstitutionGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*InstitutionGroupBy) IntsX

func (s *InstitutionGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*InstitutionGroupBy) Scan

func (igb *InstitutionGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*InstitutionGroupBy) ScanX

func (s *InstitutionGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*InstitutionGroupBy) String

func (s *InstitutionGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*InstitutionGroupBy) StringX

func (s *InstitutionGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*InstitutionGroupBy) Strings

func (s *InstitutionGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*InstitutionGroupBy) StringsX

func (s *InstitutionGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type InstitutionMutation

type InstitutionMutation struct {
	// contains filtered or unexported fields
}

InstitutionMutation represents an operation that mutates the Institution nodes in the graph.

func (*InstitutionMutation) AddField

func (m *InstitutionMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*InstitutionMutation) AddedEdges

func (m *InstitutionMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*InstitutionMutation) AddedField

func (m *InstitutionMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*InstitutionMutation) AddedFields

func (m *InstitutionMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*InstitutionMutation) AddedIDs

func (m *InstitutionMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*InstitutionMutation) ClearEdge

func (m *InstitutionMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*InstitutionMutation) ClearFiatCurrency

func (m *InstitutionMutation) ClearFiatCurrency()

ClearFiatCurrency clears the "fiat_currency" edge to the FiatCurrency entity.

func (*InstitutionMutation) ClearField

func (m *InstitutionMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*InstitutionMutation) ClearedEdges

func (m *InstitutionMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*InstitutionMutation) ClearedFields

func (m *InstitutionMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (InstitutionMutation) Client

func (m InstitutionMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*InstitutionMutation) Code

func (m *InstitutionMutation) Code() (r string, exists bool)

Code returns the value of the "code" field in the mutation.

func (*InstitutionMutation) CreatedAt

func (m *InstitutionMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*InstitutionMutation) EdgeCleared

func (m *InstitutionMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*InstitutionMutation) FiatCurrencyCleared

func (m *InstitutionMutation) FiatCurrencyCleared() bool

FiatCurrencyCleared reports if the "fiat_currency" edge to the FiatCurrency entity was cleared.

func (*InstitutionMutation) FiatCurrencyID

func (m *InstitutionMutation) FiatCurrencyID() (id uuid.UUID, exists bool)

FiatCurrencyID returns the "fiat_currency" edge ID in the mutation.

func (*InstitutionMutation) FiatCurrencyIDs

func (m *InstitutionMutation) FiatCurrencyIDs() (ids []uuid.UUID)

FiatCurrencyIDs returns the "fiat_currency" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use FiatCurrencyID instead. It exists only for internal usage by the builders.

func (*InstitutionMutation) Field

func (m *InstitutionMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*InstitutionMutation) FieldCleared

func (m *InstitutionMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*InstitutionMutation) Fields

func (m *InstitutionMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*InstitutionMutation) GetType

func (m *InstitutionMutation) GetType() (r institution.Type, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*InstitutionMutation) ID

func (m *InstitutionMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*InstitutionMutation) IDs

func (m *InstitutionMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*InstitutionMutation) Name

func (m *InstitutionMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*InstitutionMutation) OldCode

func (m *InstitutionMutation) OldCode(ctx context.Context) (v string, err error)

OldCode returns the old "code" field's value of the Institution entity. If the Institution object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*InstitutionMutation) OldCreatedAt

func (m *InstitutionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Institution entity. If the Institution object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*InstitutionMutation) OldField

func (m *InstitutionMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*InstitutionMutation) OldName

func (m *InstitutionMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Institution entity. If the Institution object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*InstitutionMutation) OldType

func (m *InstitutionMutation) OldType(ctx context.Context) (v institution.Type, err error)

OldType returns the old "type" field's value of the Institution entity. If the Institution object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*InstitutionMutation) OldUpdatedAt

func (m *InstitutionMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Institution entity. If the Institution object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*InstitutionMutation) Op

func (m *InstitutionMutation) Op() Op

Op returns the operation name.

func (*InstitutionMutation) RemovedEdges

func (m *InstitutionMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*InstitutionMutation) RemovedIDs

func (m *InstitutionMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*InstitutionMutation) ResetCode

func (m *InstitutionMutation) ResetCode()

ResetCode resets all changes to the "code" field.

func (*InstitutionMutation) ResetCreatedAt

func (m *InstitutionMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*InstitutionMutation) ResetEdge

func (m *InstitutionMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*InstitutionMutation) ResetFiatCurrency

func (m *InstitutionMutation) ResetFiatCurrency()

ResetFiatCurrency resets all changes to the "fiat_currency" edge.

func (*InstitutionMutation) ResetField

func (m *InstitutionMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*InstitutionMutation) ResetName

func (m *InstitutionMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*InstitutionMutation) ResetType

func (m *InstitutionMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*InstitutionMutation) ResetUpdatedAt

func (m *InstitutionMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*InstitutionMutation) SetCode

func (m *InstitutionMutation) SetCode(s string)

SetCode sets the "code" field.

func (*InstitutionMutation) SetCreatedAt

func (m *InstitutionMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*InstitutionMutation) SetFiatCurrencyID

func (m *InstitutionMutation) SetFiatCurrencyID(id uuid.UUID)

SetFiatCurrencyID sets the "fiat_currency" edge to the FiatCurrency entity by id.

func (*InstitutionMutation) SetField

func (m *InstitutionMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*InstitutionMutation) SetName

func (m *InstitutionMutation) SetName(s string)

SetName sets the "name" field.

func (*InstitutionMutation) SetOp

func (m *InstitutionMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*InstitutionMutation) SetType

func (m *InstitutionMutation) SetType(i institution.Type)

SetType sets the "type" field.

func (*InstitutionMutation) SetUpdatedAt

func (m *InstitutionMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (InstitutionMutation) Tx

func (m InstitutionMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*InstitutionMutation) Type

func (m *InstitutionMutation) Type() string

Type returns the node type of this mutation (Institution).

func (*InstitutionMutation) UpdatedAt

func (m *InstitutionMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*InstitutionMutation) Where

func (m *InstitutionMutation) Where(ps ...predicate.Institution)

Where appends a list predicates to the InstitutionMutation builder.

func (*InstitutionMutation) WhereP

func (m *InstitutionMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the InstitutionMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type InstitutionQuery

type InstitutionQuery struct {
	// contains filtered or unexported fields
}

InstitutionQuery is the builder for querying Institution entities.

func (*InstitutionQuery) Aggregate

func (iq *InstitutionQuery) Aggregate(fns ...AggregateFunc) *InstitutionSelect

Aggregate returns a InstitutionSelect configured with the given aggregations.

func (*InstitutionQuery) All

func (iq *InstitutionQuery) All(ctx context.Context) ([]*Institution, error)

All executes the query and returns a list of Institutions.

func (*InstitutionQuery) AllX

func (iq *InstitutionQuery) AllX(ctx context.Context) []*Institution

AllX is like All, but panics if an error occurs.

func (*InstitutionQuery) Clone

func (iq *InstitutionQuery) Clone() *InstitutionQuery

Clone returns a duplicate of the InstitutionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*InstitutionQuery) Count

func (iq *InstitutionQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*InstitutionQuery) CountX

func (iq *InstitutionQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*InstitutionQuery) Exist

func (iq *InstitutionQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*InstitutionQuery) ExistX

func (iq *InstitutionQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*InstitutionQuery) First

func (iq *InstitutionQuery) First(ctx context.Context) (*Institution, error)

First returns the first Institution entity from the query. Returns a *NotFoundError when no Institution was found.

func (*InstitutionQuery) FirstID

func (iq *InstitutionQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Institution ID from the query. Returns a *NotFoundError when no Institution ID was found.

func (*InstitutionQuery) FirstIDX

func (iq *InstitutionQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*InstitutionQuery) FirstX

func (iq *InstitutionQuery) FirstX(ctx context.Context) *Institution

FirstX is like First, but panics if an error occurs.

func (*InstitutionQuery) GroupBy

func (iq *InstitutionQuery) GroupBy(field string, fields ...string) *InstitutionGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Institution.Query().
	GroupBy(institution.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*InstitutionQuery) IDs

func (iq *InstitutionQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Institution IDs.

func (*InstitutionQuery) IDsX

func (iq *InstitutionQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*InstitutionQuery) Limit

func (iq *InstitutionQuery) Limit(limit int) *InstitutionQuery

Limit the number of records to be returned by this query.

func (*InstitutionQuery) Offset

func (iq *InstitutionQuery) Offset(offset int) *InstitutionQuery

Offset to start from.

func (*InstitutionQuery) Only

func (iq *InstitutionQuery) Only(ctx context.Context) (*Institution, error)

Only returns a single Institution entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Institution entity is found. Returns a *NotFoundError when no Institution entities are found.

func (*InstitutionQuery) OnlyID

func (iq *InstitutionQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Institution ID in the query. Returns a *NotSingularError when more than one Institution ID is found. Returns a *NotFoundError when no entities are found.

func (*InstitutionQuery) OnlyIDX

func (iq *InstitutionQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*InstitutionQuery) OnlyX

func (iq *InstitutionQuery) OnlyX(ctx context.Context) *Institution

OnlyX is like Only, but panics if an error occurs.

func (*InstitutionQuery) Order

Order specifies how the records should be ordered.

func (*InstitutionQuery) QueryFiatCurrency

func (iq *InstitutionQuery) QueryFiatCurrency() *FiatCurrencyQuery

QueryFiatCurrency chains the current query on the "fiat_currency" edge.

func (*InstitutionQuery) Select

func (iq *InstitutionQuery) Select(fields ...string) *InstitutionSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Institution.Query().
	Select(institution.FieldCreatedAt).
	Scan(ctx, &v)

func (*InstitutionQuery) Unique

func (iq *InstitutionQuery) Unique(unique bool) *InstitutionQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*InstitutionQuery) Where

Where adds a new predicate for the InstitutionQuery builder.

func (*InstitutionQuery) WithFiatCurrency

func (iq *InstitutionQuery) WithFiatCurrency(opts ...func(*FiatCurrencyQuery)) *InstitutionQuery

WithFiatCurrency tells the query-builder to eager-load the nodes that are connected to the "fiat_currency" edge. The optional arguments are used to configure the query builder of the edge.

type InstitutionSelect

type InstitutionSelect struct {
	*InstitutionQuery
	// contains filtered or unexported fields
}

InstitutionSelect is the builder for selecting fields of Institution entities.

func (*InstitutionSelect) Aggregate

func (is *InstitutionSelect) Aggregate(fns ...AggregateFunc) *InstitutionSelect

Aggregate adds the given aggregation functions to the selector query.

func (*InstitutionSelect) Bool

func (s *InstitutionSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*InstitutionSelect) BoolX

func (s *InstitutionSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*InstitutionSelect) Bools

func (s *InstitutionSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*InstitutionSelect) BoolsX

func (s *InstitutionSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*InstitutionSelect) Float64

func (s *InstitutionSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*InstitutionSelect) Float64X

func (s *InstitutionSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*InstitutionSelect) Float64s

func (s *InstitutionSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*InstitutionSelect) Float64sX

func (s *InstitutionSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*InstitutionSelect) Int

func (s *InstitutionSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*InstitutionSelect) IntX

func (s *InstitutionSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*InstitutionSelect) Ints

func (s *InstitutionSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*InstitutionSelect) IntsX

func (s *InstitutionSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*InstitutionSelect) Scan

func (is *InstitutionSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*InstitutionSelect) ScanX

func (s *InstitutionSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*InstitutionSelect) String

func (s *InstitutionSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*InstitutionSelect) StringX

func (s *InstitutionSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*InstitutionSelect) Strings

func (s *InstitutionSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*InstitutionSelect) StringsX

func (s *InstitutionSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type InstitutionUpdate

type InstitutionUpdate struct {
	// contains filtered or unexported fields
}

InstitutionUpdate is the builder for updating Institution entities.

func (*InstitutionUpdate) ClearFiatCurrency

func (iu *InstitutionUpdate) ClearFiatCurrency() *InstitutionUpdate

ClearFiatCurrency clears the "fiat_currency" edge to the FiatCurrency entity.

func (*InstitutionUpdate) Exec

func (iu *InstitutionUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*InstitutionUpdate) ExecX

func (iu *InstitutionUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*InstitutionUpdate) Mutation

func (iu *InstitutionUpdate) Mutation() *InstitutionMutation

Mutation returns the InstitutionMutation object of the builder.

func (*InstitutionUpdate) Save

func (iu *InstitutionUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*InstitutionUpdate) SaveX

func (iu *InstitutionUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*InstitutionUpdate) SetCode

func (iu *InstitutionUpdate) SetCode(s string) *InstitutionUpdate

SetCode sets the "code" field.

func (*InstitutionUpdate) SetFiatCurrency

func (iu *InstitutionUpdate) SetFiatCurrency(f *FiatCurrency) *InstitutionUpdate

SetFiatCurrency sets the "fiat_currency" edge to the FiatCurrency entity.

func (*InstitutionUpdate) SetFiatCurrencyID

func (iu *InstitutionUpdate) SetFiatCurrencyID(id uuid.UUID) *InstitutionUpdate

SetFiatCurrencyID sets the "fiat_currency" edge to the FiatCurrency entity by ID.

func (*InstitutionUpdate) SetName

func (iu *InstitutionUpdate) SetName(s string) *InstitutionUpdate

SetName sets the "name" field.

func (*InstitutionUpdate) SetNillableCode

func (iu *InstitutionUpdate) SetNillableCode(s *string) *InstitutionUpdate

SetNillableCode sets the "code" field if the given value is not nil.

func (*InstitutionUpdate) SetNillableFiatCurrencyID

func (iu *InstitutionUpdate) SetNillableFiatCurrencyID(id *uuid.UUID) *InstitutionUpdate

SetNillableFiatCurrencyID sets the "fiat_currency" edge to the FiatCurrency entity by ID if the given value is not nil.

func (*InstitutionUpdate) SetNillableName

func (iu *InstitutionUpdate) SetNillableName(s *string) *InstitutionUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*InstitutionUpdate) SetNillableType

func (iu *InstitutionUpdate) SetNillableType(i *institution.Type) *InstitutionUpdate

SetNillableType sets the "type" field if the given value is not nil.

func (*InstitutionUpdate) SetType

SetType sets the "type" field.

func (*InstitutionUpdate) SetUpdatedAt

func (iu *InstitutionUpdate) SetUpdatedAt(t time.Time) *InstitutionUpdate

SetUpdatedAt sets the "updated_at" field.

func (*InstitutionUpdate) Where

Where appends a list predicates to the InstitutionUpdate builder.

type InstitutionUpdateOne

type InstitutionUpdateOne struct {
	// contains filtered or unexported fields
}

InstitutionUpdateOne is the builder for updating a single Institution entity.

func (*InstitutionUpdateOne) ClearFiatCurrency

func (iuo *InstitutionUpdateOne) ClearFiatCurrency() *InstitutionUpdateOne

ClearFiatCurrency clears the "fiat_currency" edge to the FiatCurrency entity.

func (*InstitutionUpdateOne) Exec

func (iuo *InstitutionUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*InstitutionUpdateOne) ExecX

func (iuo *InstitutionUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*InstitutionUpdateOne) Mutation

func (iuo *InstitutionUpdateOne) Mutation() *InstitutionMutation

Mutation returns the InstitutionMutation object of the builder.

func (*InstitutionUpdateOne) Save

Save executes the query and returns the updated Institution entity.

func (*InstitutionUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*InstitutionUpdateOne) Select

func (iuo *InstitutionUpdateOne) Select(field string, fields ...string) *InstitutionUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*InstitutionUpdateOne) SetCode

SetCode sets the "code" field.

func (*InstitutionUpdateOne) SetFiatCurrency

func (iuo *InstitutionUpdateOne) SetFiatCurrency(f *FiatCurrency) *InstitutionUpdateOne

SetFiatCurrency sets the "fiat_currency" edge to the FiatCurrency entity.

func (*InstitutionUpdateOne) SetFiatCurrencyID

func (iuo *InstitutionUpdateOne) SetFiatCurrencyID(id uuid.UUID) *InstitutionUpdateOne

SetFiatCurrencyID sets the "fiat_currency" edge to the FiatCurrency entity by ID.

func (*InstitutionUpdateOne) SetName

SetName sets the "name" field.

func (*InstitutionUpdateOne) SetNillableCode

func (iuo *InstitutionUpdateOne) SetNillableCode(s *string) *InstitutionUpdateOne

SetNillableCode sets the "code" field if the given value is not nil.

func (*InstitutionUpdateOne) SetNillableFiatCurrencyID

func (iuo *InstitutionUpdateOne) SetNillableFiatCurrencyID(id *uuid.UUID) *InstitutionUpdateOne

SetNillableFiatCurrencyID sets the "fiat_currency" edge to the FiatCurrency entity by ID if the given value is not nil.

func (*InstitutionUpdateOne) SetNillableName

func (iuo *InstitutionUpdateOne) SetNillableName(s *string) *InstitutionUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*InstitutionUpdateOne) SetNillableType

func (iuo *InstitutionUpdateOne) SetNillableType(i *institution.Type) *InstitutionUpdateOne

SetNillableType sets the "type" field if the given value is not nil.

func (*InstitutionUpdateOne) SetType

SetType sets the "type" field.

func (*InstitutionUpdateOne) SetUpdatedAt

func (iuo *InstitutionUpdateOne) SetUpdatedAt(t time.Time) *InstitutionUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*InstitutionUpdateOne) Where

Where appends a list predicates to the InstitutionUpdate builder.

type InstitutionUpsert

type InstitutionUpsert struct {
	*sql.UpdateSet
}

InstitutionUpsert is the "OnConflict" setter.

func (*InstitutionUpsert) SetCode

SetCode sets the "code" field.

func (*InstitutionUpsert) SetName

SetName sets the "name" field.

func (*InstitutionUpsert) SetType

SetType sets the "type" field.

func (*InstitutionUpsert) SetUpdatedAt

func (u *InstitutionUpsert) SetUpdatedAt(v time.Time) *InstitutionUpsert

SetUpdatedAt sets the "updated_at" field.

func (*InstitutionUpsert) UpdateCode

func (u *InstitutionUpsert) UpdateCode() *InstitutionUpsert

UpdateCode sets the "code" field to the value that was provided on create.

func (*InstitutionUpsert) UpdateName

func (u *InstitutionUpsert) UpdateName() *InstitutionUpsert

UpdateName sets the "name" field to the value that was provided on create.

func (*InstitutionUpsert) UpdateType

func (u *InstitutionUpsert) UpdateType() *InstitutionUpsert

UpdateType sets the "type" field to the value that was provided on create.

func (*InstitutionUpsert) UpdateUpdatedAt

func (u *InstitutionUpsert) UpdateUpdatedAt() *InstitutionUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type InstitutionUpsertBulk

type InstitutionUpsertBulk struct {
	// contains filtered or unexported fields
}

InstitutionUpsertBulk is the builder for "upsert"-ing a bulk of Institution nodes.

func (*InstitutionUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*InstitutionUpsertBulk) Exec

Exec executes the query.

func (*InstitutionUpsertBulk) ExecX

func (u *InstitutionUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*InstitutionUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Institution.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*InstitutionUpsertBulk) SetCode

SetCode sets the "code" field.

func (*InstitutionUpsertBulk) SetName

SetName sets the "name" field.

func (*InstitutionUpsertBulk) SetType

SetType sets the "type" field.

func (*InstitutionUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*InstitutionUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the InstitutionCreateBulk.OnConflict documentation for more info.

func (*InstitutionUpsertBulk) UpdateCode

UpdateCode sets the "code" field to the value that was provided on create.

func (*InstitutionUpsertBulk) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

func (*InstitutionUpsertBulk) UpdateNewValues

func (u *InstitutionUpsertBulk) UpdateNewValues() *InstitutionUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Institution.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*InstitutionUpsertBulk) UpdateType

UpdateType sets the "type" field to the value that was provided on create.

func (*InstitutionUpsertBulk) UpdateUpdatedAt

func (u *InstitutionUpsertBulk) UpdateUpdatedAt() *InstitutionUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type InstitutionUpsertOne

type InstitutionUpsertOne struct {
	// contains filtered or unexported fields
}

InstitutionUpsertOne is the builder for "upsert"-ing

one Institution node.

func (*InstitutionUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*InstitutionUpsertOne) Exec

Exec executes the query.

func (*InstitutionUpsertOne) ExecX

func (u *InstitutionUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*InstitutionUpsertOne) ID

func (u *InstitutionUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*InstitutionUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*InstitutionUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Institution.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*InstitutionUpsertOne) SetCode

SetCode sets the "code" field.

func (*InstitutionUpsertOne) SetName

SetName sets the "name" field.

func (*InstitutionUpsertOne) SetType

SetType sets the "type" field.

func (*InstitutionUpsertOne) SetUpdatedAt

func (u *InstitutionUpsertOne) SetUpdatedAt(v time.Time) *InstitutionUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*InstitutionUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the InstitutionCreate.OnConflict documentation for more info.

func (*InstitutionUpsertOne) UpdateCode

func (u *InstitutionUpsertOne) UpdateCode() *InstitutionUpsertOne

UpdateCode sets the "code" field to the value that was provided on create.

func (*InstitutionUpsertOne) UpdateName

func (u *InstitutionUpsertOne) UpdateName() *InstitutionUpsertOne

UpdateName sets the "name" field to the value that was provided on create.

func (*InstitutionUpsertOne) UpdateNewValues

func (u *InstitutionUpsertOne) UpdateNewValues() *InstitutionUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Institution.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*InstitutionUpsertOne) UpdateType

func (u *InstitutionUpsertOne) UpdateType() *InstitutionUpsertOne

UpdateType sets the "type" field to the value that was provided on create.

func (*InstitutionUpsertOne) UpdateUpdatedAt

func (u *InstitutionUpsertOne) UpdateUpdatedAt() *InstitutionUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type Institutions

type Institutions []*Institution

Institutions is a parsable slice of Institution.

type InterceptFunc

type InterceptFunc = ent.InterceptFunc

ent aliases to avoid import conflicts in user's code.

type Interceptor

type Interceptor = ent.Interceptor

ent aliases to avoid import conflicts in user's code.

type KYBProfile

type KYBProfile struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// MobileNumber holds the value of the "mobile_number" field.
	MobileNumber string `json:"mobile_number,omitempty"`
	// CompanyName holds the value of the "company_name" field.
	CompanyName string `json:"company_name,omitempty"`
	// RegisteredBusinessAddress holds the value of the "registered_business_address" field.
	RegisteredBusinessAddress string `json:"registered_business_address,omitempty"`
	// CertificateOfIncorporationURL holds the value of the "certificate_of_incorporation_url" field.
	CertificateOfIncorporationURL string `json:"certificate_of_incorporation_url,omitempty"`
	// ArticlesOfIncorporationURL holds the value of the "articles_of_incorporation_url" field.
	ArticlesOfIncorporationURL string `json:"articles_of_incorporation_url,omitempty"`
	// BusinessLicenseURL holds the value of the "business_license_url" field.
	BusinessLicenseURL *string `json:"business_license_url,omitempty"`
	// ProofOfBusinessAddressURL holds the value of the "proof_of_business_address_url" field.
	ProofOfBusinessAddressURL string `json:"proof_of_business_address_url,omitempty"`
	// AmlPolicyURL holds the value of the "aml_policy_url" field.
	AmlPolicyURL string `json:"aml_policy_url,omitempty"`
	// KycPolicyURL holds the value of the "kyc_policy_url" field.
	KycPolicyURL *string `json:"kyc_policy_url,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the KYBProfileQuery when eager-loading is set.
	Edges KYBProfileEdges `json:"edges"`
	// contains filtered or unexported fields
}

KYBProfile is the model entity for the KYBProfile schema.

func (*KYBProfile) QueryBeneficialOwners

func (kp *KYBProfile) QueryBeneficialOwners() *BeneficialOwnerQuery

QueryBeneficialOwners queries the "beneficial_owners" edge of the KYBProfile entity.

func (*KYBProfile) QueryUser

func (kp *KYBProfile) QueryUser() *UserQuery

QueryUser queries the "user" edge of the KYBProfile entity.

func (*KYBProfile) String

func (kp *KYBProfile) String() string

String implements the fmt.Stringer.

func (*KYBProfile) Unwrap

func (kp *KYBProfile) Unwrap() *KYBProfile

Unwrap unwraps the KYBProfile entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*KYBProfile) Update

func (kp *KYBProfile) Update() *KYBProfileUpdateOne

Update returns a builder for updating this KYBProfile. Note that you need to call KYBProfile.Unwrap() before calling this method if this KYBProfile was returned from a transaction, and the transaction was committed or rolled back.

func (*KYBProfile) Value

func (kp *KYBProfile) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the KYBProfile. This includes values selected through modifiers, order, etc.

type KYBProfileClient

type KYBProfileClient struct {
	// contains filtered or unexported fields
}

KYBProfileClient is a client for the KYBProfile schema.

func NewKYBProfileClient

func NewKYBProfileClient(c config) *KYBProfileClient

NewKYBProfileClient returns a client for the KYBProfile from the given config.

func (*KYBProfileClient) Create

func (c *KYBProfileClient) Create() *KYBProfileCreate

Create returns a builder for creating a KYBProfile entity.

func (*KYBProfileClient) CreateBulk

func (c *KYBProfileClient) CreateBulk(builders ...*KYBProfileCreate) *KYBProfileCreateBulk

CreateBulk returns a builder for creating a bulk of KYBProfile entities.

func (*KYBProfileClient) Delete

func (c *KYBProfileClient) Delete() *KYBProfileDelete

Delete returns a delete builder for KYBProfile.

func (*KYBProfileClient) DeleteOne

func (c *KYBProfileClient) DeleteOne(kp *KYBProfile) *KYBProfileDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*KYBProfileClient) DeleteOneID

func (c *KYBProfileClient) DeleteOneID(id uuid.UUID) *KYBProfileDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*KYBProfileClient) Get

Get returns a KYBProfile entity by its id.

func (*KYBProfileClient) GetX

func (c *KYBProfileClient) GetX(ctx context.Context, id uuid.UUID) *KYBProfile

GetX is like Get, but panics if an error occurs.

func (*KYBProfileClient) Hooks

func (c *KYBProfileClient) Hooks() []Hook

Hooks returns the client hooks.

func (*KYBProfileClient) Intercept

func (c *KYBProfileClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `kybprofile.Intercept(f(g(h())))`.

func (*KYBProfileClient) Interceptors

func (c *KYBProfileClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*KYBProfileClient) MapCreateBulk

func (c *KYBProfileClient) MapCreateBulk(slice any, setFunc func(*KYBProfileCreate, int)) *KYBProfileCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*KYBProfileClient) Query

func (c *KYBProfileClient) Query() *KYBProfileQuery

Query returns a query builder for KYBProfile.

func (*KYBProfileClient) QueryBeneficialOwners

func (c *KYBProfileClient) QueryBeneficialOwners(kp *KYBProfile) *BeneficialOwnerQuery

QueryBeneficialOwners queries the beneficial_owners edge of a KYBProfile.

func (*KYBProfileClient) QueryUser

func (c *KYBProfileClient) QueryUser(kp *KYBProfile) *UserQuery

QueryUser queries the user edge of a KYBProfile.

func (*KYBProfileClient) Update

func (c *KYBProfileClient) Update() *KYBProfileUpdate

Update returns an update builder for KYBProfile.

func (*KYBProfileClient) UpdateOne

func (c *KYBProfileClient) UpdateOne(kp *KYBProfile) *KYBProfileUpdateOne

UpdateOne returns an update builder for the given entity.

func (*KYBProfileClient) UpdateOneID

func (c *KYBProfileClient) UpdateOneID(id uuid.UUID) *KYBProfileUpdateOne

UpdateOneID returns an update builder for the given id.

func (*KYBProfileClient) Use

func (c *KYBProfileClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `kybprofile.Hooks(f(g(h())))`.

type KYBProfileCreate

type KYBProfileCreate struct {
	// contains filtered or unexported fields
}

KYBProfileCreate is the builder for creating a KYBProfile entity.

func (*KYBProfileCreate) AddBeneficialOwnerIDs

func (kpc *KYBProfileCreate) AddBeneficialOwnerIDs(ids ...uuid.UUID) *KYBProfileCreate

AddBeneficialOwnerIDs adds the "beneficial_owners" edge to the BeneficialOwner entity by IDs.

func (*KYBProfileCreate) AddBeneficialOwners

func (kpc *KYBProfileCreate) AddBeneficialOwners(b ...*BeneficialOwner) *KYBProfileCreate

AddBeneficialOwners adds the "beneficial_owners" edges to the BeneficialOwner entity.

func (*KYBProfileCreate) Exec

func (kpc *KYBProfileCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*KYBProfileCreate) ExecX

func (kpc *KYBProfileCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*KYBProfileCreate) Mutation

func (kpc *KYBProfileCreate) Mutation() *KYBProfileMutation

Mutation returns the KYBProfileMutation object of the builder.

func (*KYBProfileCreate) OnConflict

func (kpc *KYBProfileCreate) OnConflict(opts ...sql.ConflictOption) *KYBProfileUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.KYBProfile.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.KYBProfileUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*KYBProfileCreate) OnConflictColumns

func (kpc *KYBProfileCreate) OnConflictColumns(columns ...string) *KYBProfileUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.KYBProfile.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*KYBProfileCreate) Save

func (kpc *KYBProfileCreate) Save(ctx context.Context) (*KYBProfile, error)

Save creates the KYBProfile in the database.

func (*KYBProfileCreate) SaveX

func (kpc *KYBProfileCreate) SaveX(ctx context.Context) *KYBProfile

SaveX calls Save and panics if Save returns an error.

func (*KYBProfileCreate) SetAmlPolicyURL

func (kpc *KYBProfileCreate) SetAmlPolicyURL(s string) *KYBProfileCreate

SetAmlPolicyURL sets the "aml_policy_url" field.

func (*KYBProfileCreate) SetArticlesOfIncorporationURL

func (kpc *KYBProfileCreate) SetArticlesOfIncorporationURL(s string) *KYBProfileCreate

SetArticlesOfIncorporationURL sets the "articles_of_incorporation_url" field.

func (*KYBProfileCreate) SetBusinessLicenseURL

func (kpc *KYBProfileCreate) SetBusinessLicenseURL(s string) *KYBProfileCreate

SetBusinessLicenseURL sets the "business_license_url" field.

func (*KYBProfileCreate) SetCertificateOfIncorporationURL

func (kpc *KYBProfileCreate) SetCertificateOfIncorporationURL(s string) *KYBProfileCreate

SetCertificateOfIncorporationURL sets the "certificate_of_incorporation_url" field.

func (*KYBProfileCreate) SetCompanyName

func (kpc *KYBProfileCreate) SetCompanyName(s string) *KYBProfileCreate

SetCompanyName sets the "company_name" field.

func (*KYBProfileCreate) SetCreatedAt

func (kpc *KYBProfileCreate) SetCreatedAt(t time.Time) *KYBProfileCreate

SetCreatedAt sets the "created_at" field.

func (*KYBProfileCreate) SetID

func (kpc *KYBProfileCreate) SetID(u uuid.UUID) *KYBProfileCreate

SetID sets the "id" field.

func (*KYBProfileCreate) SetKycPolicyURL

func (kpc *KYBProfileCreate) SetKycPolicyURL(s string) *KYBProfileCreate

SetKycPolicyURL sets the "kyc_policy_url" field.

func (*KYBProfileCreate) SetMobileNumber

func (kpc *KYBProfileCreate) SetMobileNumber(s string) *KYBProfileCreate

SetMobileNumber sets the "mobile_number" field.

func (*KYBProfileCreate) SetNillableAmlPolicyURL

func (kpc *KYBProfileCreate) SetNillableAmlPolicyURL(s *string) *KYBProfileCreate

SetNillableAmlPolicyURL sets the "aml_policy_url" field if the given value is not nil.

func (*KYBProfileCreate) SetNillableBusinessLicenseURL

func (kpc *KYBProfileCreate) SetNillableBusinessLicenseURL(s *string) *KYBProfileCreate

SetNillableBusinessLicenseURL sets the "business_license_url" field if the given value is not nil.

func (*KYBProfileCreate) SetNillableCreatedAt

func (kpc *KYBProfileCreate) SetNillableCreatedAt(t *time.Time) *KYBProfileCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*KYBProfileCreate) SetNillableID

func (kpc *KYBProfileCreate) SetNillableID(u *uuid.UUID) *KYBProfileCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*KYBProfileCreate) SetNillableKycPolicyURL

func (kpc *KYBProfileCreate) SetNillableKycPolicyURL(s *string) *KYBProfileCreate

SetNillableKycPolicyURL sets the "kyc_policy_url" field if the given value is not nil.

func (*KYBProfileCreate) SetNillableUpdatedAt

func (kpc *KYBProfileCreate) SetNillableUpdatedAt(t *time.Time) *KYBProfileCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*KYBProfileCreate) SetNillableUserID

func (kpc *KYBProfileCreate) SetNillableUserID(id *uuid.UUID) *KYBProfileCreate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*KYBProfileCreate) SetProofOfBusinessAddressURL

func (kpc *KYBProfileCreate) SetProofOfBusinessAddressURL(s string) *KYBProfileCreate

SetProofOfBusinessAddressURL sets the "proof_of_business_address_url" field.

func (*KYBProfileCreate) SetRegisteredBusinessAddress

func (kpc *KYBProfileCreate) SetRegisteredBusinessAddress(s string) *KYBProfileCreate

SetRegisteredBusinessAddress sets the "registered_business_address" field.

func (*KYBProfileCreate) SetUpdatedAt

func (kpc *KYBProfileCreate) SetUpdatedAt(t time.Time) *KYBProfileCreate

SetUpdatedAt sets the "updated_at" field.

func (*KYBProfileCreate) SetUser

func (kpc *KYBProfileCreate) SetUser(u *User) *KYBProfileCreate

SetUser sets the "user" edge to the User entity.

func (*KYBProfileCreate) SetUserID

func (kpc *KYBProfileCreate) SetUserID(id uuid.UUID) *KYBProfileCreate

SetUserID sets the "user" edge to the User entity by ID.

type KYBProfileCreateBulk

type KYBProfileCreateBulk struct {
	// contains filtered or unexported fields
}

KYBProfileCreateBulk is the builder for creating many KYBProfile entities in bulk.

func (*KYBProfileCreateBulk) Exec

func (kpcb *KYBProfileCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*KYBProfileCreateBulk) ExecX

func (kpcb *KYBProfileCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*KYBProfileCreateBulk) OnConflict

func (kpcb *KYBProfileCreateBulk) OnConflict(opts ...sql.ConflictOption) *KYBProfileUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.KYBProfile.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.KYBProfileUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*KYBProfileCreateBulk) OnConflictColumns

func (kpcb *KYBProfileCreateBulk) OnConflictColumns(columns ...string) *KYBProfileUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.KYBProfile.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*KYBProfileCreateBulk) Save

func (kpcb *KYBProfileCreateBulk) Save(ctx context.Context) ([]*KYBProfile, error)

Save creates the KYBProfile entities in the database.

func (*KYBProfileCreateBulk) SaveX

func (kpcb *KYBProfileCreateBulk) SaveX(ctx context.Context) []*KYBProfile

SaveX is like Save, but panics if an error occurs.

type KYBProfileDelete

type KYBProfileDelete struct {
	// contains filtered or unexported fields
}

KYBProfileDelete is the builder for deleting a KYBProfile entity.

func (*KYBProfileDelete) Exec

func (kpd *KYBProfileDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*KYBProfileDelete) ExecX

func (kpd *KYBProfileDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*KYBProfileDelete) Where

Where appends a list predicates to the KYBProfileDelete builder.

type KYBProfileDeleteOne

type KYBProfileDeleteOne struct {
	// contains filtered or unexported fields
}

KYBProfileDeleteOne is the builder for deleting a single KYBProfile entity.

func (*KYBProfileDeleteOne) Exec

func (kpdo *KYBProfileDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*KYBProfileDeleteOne) ExecX

func (kpdo *KYBProfileDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*KYBProfileDeleteOne) Where

Where appends a list predicates to the KYBProfileDelete builder.

type KYBProfileEdges

type KYBProfileEdges struct {
	// BeneficialOwners holds the value of the beneficial_owners edge.
	BeneficialOwners []*BeneficialOwner `json:"beneficial_owners,omitempty"`
	// User holds the value of the user edge.
	User *User `json:"user,omitempty"`
	// contains filtered or unexported fields
}

KYBProfileEdges holds the relations/edges for other nodes in the graph.

func (KYBProfileEdges) BeneficialOwnersOrErr

func (e KYBProfileEdges) BeneficialOwnersOrErr() ([]*BeneficialOwner, error)

BeneficialOwnersOrErr returns the BeneficialOwners value or an error if the edge was not loaded in eager-loading.

func (KYBProfileEdges) UserOrErr

func (e KYBProfileEdges) UserOrErr() (*User, error)

UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type KYBProfileGroupBy

type KYBProfileGroupBy struct {
	// contains filtered or unexported fields
}

KYBProfileGroupBy is the group-by builder for KYBProfile entities.

func (*KYBProfileGroupBy) Aggregate

func (kpgb *KYBProfileGroupBy) Aggregate(fns ...AggregateFunc) *KYBProfileGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*KYBProfileGroupBy) Bool

func (s *KYBProfileGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*KYBProfileGroupBy) BoolX

func (s *KYBProfileGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*KYBProfileGroupBy) Bools

func (s *KYBProfileGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*KYBProfileGroupBy) BoolsX

func (s *KYBProfileGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*KYBProfileGroupBy) Float64

func (s *KYBProfileGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*KYBProfileGroupBy) Float64X

func (s *KYBProfileGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*KYBProfileGroupBy) Float64s

func (s *KYBProfileGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*KYBProfileGroupBy) Float64sX

func (s *KYBProfileGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*KYBProfileGroupBy) Int

func (s *KYBProfileGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*KYBProfileGroupBy) IntX

func (s *KYBProfileGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*KYBProfileGroupBy) Ints

func (s *KYBProfileGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*KYBProfileGroupBy) IntsX

func (s *KYBProfileGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*KYBProfileGroupBy) Scan

func (kpgb *KYBProfileGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*KYBProfileGroupBy) ScanX

func (s *KYBProfileGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*KYBProfileGroupBy) String

func (s *KYBProfileGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*KYBProfileGroupBy) StringX

func (s *KYBProfileGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*KYBProfileGroupBy) Strings

func (s *KYBProfileGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*KYBProfileGroupBy) StringsX

func (s *KYBProfileGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type KYBProfileMutation

type KYBProfileMutation struct {
	// contains filtered or unexported fields
}

KYBProfileMutation represents an operation that mutates the KYBProfile nodes in the graph.

func (*KYBProfileMutation) AddBeneficialOwnerIDs

func (m *KYBProfileMutation) AddBeneficialOwnerIDs(ids ...uuid.UUID)

AddBeneficialOwnerIDs adds the "beneficial_owners" edge to the BeneficialOwner entity by ids.

func (*KYBProfileMutation) AddField

func (m *KYBProfileMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*KYBProfileMutation) AddedEdges

func (m *KYBProfileMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*KYBProfileMutation) AddedField

func (m *KYBProfileMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*KYBProfileMutation) AddedFields

func (m *KYBProfileMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*KYBProfileMutation) AddedIDs

func (m *KYBProfileMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*KYBProfileMutation) AmlPolicyURL

func (m *KYBProfileMutation) AmlPolicyURL() (r string, exists bool)

AmlPolicyURL returns the value of the "aml_policy_url" field in the mutation.

func (*KYBProfileMutation) AmlPolicyURLCleared

func (m *KYBProfileMutation) AmlPolicyURLCleared() bool

AmlPolicyURLCleared returns if the "aml_policy_url" field was cleared in this mutation.

func (*KYBProfileMutation) ArticlesOfIncorporationURL

func (m *KYBProfileMutation) ArticlesOfIncorporationURL() (r string, exists bool)

ArticlesOfIncorporationURL returns the value of the "articles_of_incorporation_url" field in the mutation.

func (*KYBProfileMutation) BeneficialOwnersCleared

func (m *KYBProfileMutation) BeneficialOwnersCleared() bool

BeneficialOwnersCleared reports if the "beneficial_owners" edge to the BeneficialOwner entity was cleared.

func (*KYBProfileMutation) BeneficialOwnersIDs

func (m *KYBProfileMutation) BeneficialOwnersIDs() (ids []uuid.UUID)

BeneficialOwnersIDs returns the "beneficial_owners" edge IDs in the mutation.

func (*KYBProfileMutation) BusinessLicenseURL

func (m *KYBProfileMutation) BusinessLicenseURL() (r string, exists bool)

BusinessLicenseURL returns the value of the "business_license_url" field in the mutation.

func (*KYBProfileMutation) BusinessLicenseURLCleared

func (m *KYBProfileMutation) BusinessLicenseURLCleared() bool

BusinessLicenseURLCleared returns if the "business_license_url" field was cleared in this mutation.

func (*KYBProfileMutation) CertificateOfIncorporationURL

func (m *KYBProfileMutation) CertificateOfIncorporationURL() (r string, exists bool)

CertificateOfIncorporationURL returns the value of the "certificate_of_incorporation_url" field in the mutation.

func (*KYBProfileMutation) ClearAmlPolicyURL

func (m *KYBProfileMutation) ClearAmlPolicyURL()

ClearAmlPolicyURL clears the value of the "aml_policy_url" field.

func (*KYBProfileMutation) ClearBeneficialOwners

func (m *KYBProfileMutation) ClearBeneficialOwners()

ClearBeneficialOwners clears the "beneficial_owners" edge to the BeneficialOwner entity.

func (*KYBProfileMutation) ClearBusinessLicenseURL

func (m *KYBProfileMutation) ClearBusinessLicenseURL()

ClearBusinessLicenseURL clears the value of the "business_license_url" field.

func (*KYBProfileMutation) ClearEdge

func (m *KYBProfileMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*KYBProfileMutation) ClearField

func (m *KYBProfileMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*KYBProfileMutation) ClearKycPolicyURL

func (m *KYBProfileMutation) ClearKycPolicyURL()

ClearKycPolicyURL clears the value of the "kyc_policy_url" field.

func (*KYBProfileMutation) ClearUser

func (m *KYBProfileMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*KYBProfileMutation) ClearedEdges

func (m *KYBProfileMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*KYBProfileMutation) ClearedFields

func (m *KYBProfileMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (KYBProfileMutation) Client

func (m KYBProfileMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*KYBProfileMutation) CompanyName

func (m *KYBProfileMutation) CompanyName() (r string, exists bool)

CompanyName returns the value of the "company_name" field in the mutation.

func (*KYBProfileMutation) CreatedAt

func (m *KYBProfileMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*KYBProfileMutation) EdgeCleared

func (m *KYBProfileMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*KYBProfileMutation) Field

func (m *KYBProfileMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*KYBProfileMutation) FieldCleared

func (m *KYBProfileMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*KYBProfileMutation) Fields

func (m *KYBProfileMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*KYBProfileMutation) ID

func (m *KYBProfileMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*KYBProfileMutation) IDs

func (m *KYBProfileMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*KYBProfileMutation) KycPolicyURL

func (m *KYBProfileMutation) KycPolicyURL() (r string, exists bool)

KycPolicyURL returns the value of the "kyc_policy_url" field in the mutation.

func (*KYBProfileMutation) KycPolicyURLCleared

func (m *KYBProfileMutation) KycPolicyURLCleared() bool

KycPolicyURLCleared returns if the "kyc_policy_url" field was cleared in this mutation.

func (*KYBProfileMutation) MobileNumber

func (m *KYBProfileMutation) MobileNumber() (r string, exists bool)

MobileNumber returns the value of the "mobile_number" field in the mutation.

func (*KYBProfileMutation) OldAmlPolicyURL

func (m *KYBProfileMutation) OldAmlPolicyURL(ctx context.Context) (v string, err error)

OldAmlPolicyURL returns the old "aml_policy_url" field's value of the KYBProfile entity. If the KYBProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*KYBProfileMutation) OldArticlesOfIncorporationURL

func (m *KYBProfileMutation) OldArticlesOfIncorporationURL(ctx context.Context) (v string, err error)

OldArticlesOfIncorporationURL returns the old "articles_of_incorporation_url" field's value of the KYBProfile entity. If the KYBProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*KYBProfileMutation) OldBusinessLicenseURL

func (m *KYBProfileMutation) OldBusinessLicenseURL(ctx context.Context) (v *string, err error)

OldBusinessLicenseURL returns the old "business_license_url" field's value of the KYBProfile entity. If the KYBProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*KYBProfileMutation) OldCertificateOfIncorporationURL

func (m *KYBProfileMutation) OldCertificateOfIncorporationURL(ctx context.Context) (v string, err error)

OldCertificateOfIncorporationURL returns the old "certificate_of_incorporation_url" field's value of the KYBProfile entity. If the KYBProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*KYBProfileMutation) OldCompanyName

func (m *KYBProfileMutation) OldCompanyName(ctx context.Context) (v string, err error)

OldCompanyName returns the old "company_name" field's value of the KYBProfile entity. If the KYBProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*KYBProfileMutation) OldCreatedAt

func (m *KYBProfileMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the KYBProfile entity. If the KYBProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*KYBProfileMutation) OldField

func (m *KYBProfileMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*KYBProfileMutation) OldKycPolicyURL

func (m *KYBProfileMutation) OldKycPolicyURL(ctx context.Context) (v *string, err error)

OldKycPolicyURL returns the old "kyc_policy_url" field's value of the KYBProfile entity. If the KYBProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*KYBProfileMutation) OldMobileNumber

func (m *KYBProfileMutation) OldMobileNumber(ctx context.Context) (v string, err error)

OldMobileNumber returns the old "mobile_number" field's value of the KYBProfile entity. If the KYBProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*KYBProfileMutation) OldProofOfBusinessAddressURL

func (m *KYBProfileMutation) OldProofOfBusinessAddressURL(ctx context.Context) (v string, err error)

OldProofOfBusinessAddressURL returns the old "proof_of_business_address_url" field's value of the KYBProfile entity. If the KYBProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*KYBProfileMutation) OldRegisteredBusinessAddress

func (m *KYBProfileMutation) OldRegisteredBusinessAddress(ctx context.Context) (v string, err error)

OldRegisteredBusinessAddress returns the old "registered_business_address" field's value of the KYBProfile entity. If the KYBProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*KYBProfileMutation) OldUpdatedAt

func (m *KYBProfileMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the KYBProfile entity. If the KYBProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*KYBProfileMutation) Op

func (m *KYBProfileMutation) Op() Op

Op returns the operation name.

func (*KYBProfileMutation) ProofOfBusinessAddressURL

func (m *KYBProfileMutation) ProofOfBusinessAddressURL() (r string, exists bool)

ProofOfBusinessAddressURL returns the value of the "proof_of_business_address_url" field in the mutation.

func (*KYBProfileMutation) RegisteredBusinessAddress

func (m *KYBProfileMutation) RegisteredBusinessAddress() (r string, exists bool)

RegisteredBusinessAddress returns the value of the "registered_business_address" field in the mutation.

func (*KYBProfileMutation) RemoveBeneficialOwnerIDs

func (m *KYBProfileMutation) RemoveBeneficialOwnerIDs(ids ...uuid.UUID)

RemoveBeneficialOwnerIDs removes the "beneficial_owners" edge to the BeneficialOwner entity by IDs.

func (*KYBProfileMutation) RemovedBeneficialOwnersIDs

func (m *KYBProfileMutation) RemovedBeneficialOwnersIDs() (ids []uuid.UUID)

RemovedBeneficialOwners returns the removed IDs of the "beneficial_owners" edge to the BeneficialOwner entity.

func (*KYBProfileMutation) RemovedEdges

func (m *KYBProfileMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*KYBProfileMutation) RemovedIDs

func (m *KYBProfileMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*KYBProfileMutation) ResetAmlPolicyURL

func (m *KYBProfileMutation) ResetAmlPolicyURL()

ResetAmlPolicyURL resets all changes to the "aml_policy_url" field.

func (*KYBProfileMutation) ResetArticlesOfIncorporationURL

func (m *KYBProfileMutation) ResetArticlesOfIncorporationURL()

ResetArticlesOfIncorporationURL resets all changes to the "articles_of_incorporation_url" field.

func (*KYBProfileMutation) ResetBeneficialOwners

func (m *KYBProfileMutation) ResetBeneficialOwners()

ResetBeneficialOwners resets all changes to the "beneficial_owners" edge.

func (*KYBProfileMutation) ResetBusinessLicenseURL

func (m *KYBProfileMutation) ResetBusinessLicenseURL()

ResetBusinessLicenseURL resets all changes to the "business_license_url" field.

func (*KYBProfileMutation) ResetCertificateOfIncorporationURL

func (m *KYBProfileMutation) ResetCertificateOfIncorporationURL()

ResetCertificateOfIncorporationURL resets all changes to the "certificate_of_incorporation_url" field.

func (*KYBProfileMutation) ResetCompanyName

func (m *KYBProfileMutation) ResetCompanyName()

ResetCompanyName resets all changes to the "company_name" field.

func (*KYBProfileMutation) ResetCreatedAt

func (m *KYBProfileMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*KYBProfileMutation) ResetEdge

func (m *KYBProfileMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*KYBProfileMutation) ResetField

func (m *KYBProfileMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*KYBProfileMutation) ResetKycPolicyURL

func (m *KYBProfileMutation) ResetKycPolicyURL()

ResetKycPolicyURL resets all changes to the "kyc_policy_url" field.

func (*KYBProfileMutation) ResetMobileNumber

func (m *KYBProfileMutation) ResetMobileNumber()

ResetMobileNumber resets all changes to the "mobile_number" field.

func (*KYBProfileMutation) ResetProofOfBusinessAddressURL

func (m *KYBProfileMutation) ResetProofOfBusinessAddressURL()

ResetProofOfBusinessAddressURL resets all changes to the "proof_of_business_address_url" field.

func (*KYBProfileMutation) ResetRegisteredBusinessAddress

func (m *KYBProfileMutation) ResetRegisteredBusinessAddress()

ResetRegisteredBusinessAddress resets all changes to the "registered_business_address" field.

func (*KYBProfileMutation) ResetUpdatedAt

func (m *KYBProfileMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*KYBProfileMutation) ResetUser

func (m *KYBProfileMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*KYBProfileMutation) SetAmlPolicyURL

func (m *KYBProfileMutation) SetAmlPolicyURL(s string)

SetAmlPolicyURL sets the "aml_policy_url" field.

func (*KYBProfileMutation) SetArticlesOfIncorporationURL

func (m *KYBProfileMutation) SetArticlesOfIncorporationURL(s string)

SetArticlesOfIncorporationURL sets the "articles_of_incorporation_url" field.

func (*KYBProfileMutation) SetBusinessLicenseURL

func (m *KYBProfileMutation) SetBusinessLicenseURL(s string)

SetBusinessLicenseURL sets the "business_license_url" field.

func (*KYBProfileMutation) SetCertificateOfIncorporationURL

func (m *KYBProfileMutation) SetCertificateOfIncorporationURL(s string)

SetCertificateOfIncorporationURL sets the "certificate_of_incorporation_url" field.

func (*KYBProfileMutation) SetCompanyName

func (m *KYBProfileMutation) SetCompanyName(s string)

SetCompanyName sets the "company_name" field.

func (*KYBProfileMutation) SetCreatedAt

func (m *KYBProfileMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*KYBProfileMutation) SetField

func (m *KYBProfileMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*KYBProfileMutation) SetID

func (m *KYBProfileMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of KYBProfile entities.

func (*KYBProfileMutation) SetKycPolicyURL

func (m *KYBProfileMutation) SetKycPolicyURL(s string)

SetKycPolicyURL sets the "kyc_policy_url" field.

func (*KYBProfileMutation) SetMobileNumber

func (m *KYBProfileMutation) SetMobileNumber(s string)

SetMobileNumber sets the "mobile_number" field.

func (*KYBProfileMutation) SetOp

func (m *KYBProfileMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*KYBProfileMutation) SetProofOfBusinessAddressURL

func (m *KYBProfileMutation) SetProofOfBusinessAddressURL(s string)

SetProofOfBusinessAddressURL sets the "proof_of_business_address_url" field.

func (*KYBProfileMutation) SetRegisteredBusinessAddress

func (m *KYBProfileMutation) SetRegisteredBusinessAddress(s string)

SetRegisteredBusinessAddress sets the "registered_business_address" field.

func (*KYBProfileMutation) SetUpdatedAt

func (m *KYBProfileMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*KYBProfileMutation) SetUserID

func (m *KYBProfileMutation) SetUserID(id uuid.UUID)

SetUserID sets the "user" edge to the User entity by id.

func (KYBProfileMutation) Tx

func (m KYBProfileMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*KYBProfileMutation) Type

func (m *KYBProfileMutation) Type() string

Type returns the node type of this mutation (KYBProfile).

func (*KYBProfileMutation) UpdatedAt

func (m *KYBProfileMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*KYBProfileMutation) UserCleared

func (m *KYBProfileMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*KYBProfileMutation) UserID

func (m *KYBProfileMutation) UserID() (id uuid.UUID, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*KYBProfileMutation) UserIDs

func (m *KYBProfileMutation) UserIDs() (ids []uuid.UUID)

UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.

func (*KYBProfileMutation) Where

func (m *KYBProfileMutation) Where(ps ...predicate.KYBProfile)

Where appends a list predicates to the KYBProfileMutation builder.

func (*KYBProfileMutation) WhereP

func (m *KYBProfileMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the KYBProfileMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type KYBProfileQuery

type KYBProfileQuery struct {
	// contains filtered or unexported fields
}

KYBProfileQuery is the builder for querying KYBProfile entities.

func (*KYBProfileQuery) Aggregate

func (kpq *KYBProfileQuery) Aggregate(fns ...AggregateFunc) *KYBProfileSelect

Aggregate returns a KYBProfileSelect configured with the given aggregations.

func (*KYBProfileQuery) All

func (kpq *KYBProfileQuery) All(ctx context.Context) ([]*KYBProfile, error)

All executes the query and returns a list of KYBProfiles.

func (*KYBProfileQuery) AllX

func (kpq *KYBProfileQuery) AllX(ctx context.Context) []*KYBProfile

AllX is like All, but panics if an error occurs.

func (*KYBProfileQuery) Clone

func (kpq *KYBProfileQuery) Clone() *KYBProfileQuery

Clone returns a duplicate of the KYBProfileQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*KYBProfileQuery) Count

func (kpq *KYBProfileQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*KYBProfileQuery) CountX

func (kpq *KYBProfileQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*KYBProfileQuery) Exist

func (kpq *KYBProfileQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*KYBProfileQuery) ExistX

func (kpq *KYBProfileQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*KYBProfileQuery) First

func (kpq *KYBProfileQuery) First(ctx context.Context) (*KYBProfile, error)

First returns the first KYBProfile entity from the query. Returns a *NotFoundError when no KYBProfile was found.

func (*KYBProfileQuery) FirstID

func (kpq *KYBProfileQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first KYBProfile ID from the query. Returns a *NotFoundError when no KYBProfile ID was found.

func (*KYBProfileQuery) FirstIDX

func (kpq *KYBProfileQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*KYBProfileQuery) FirstX

func (kpq *KYBProfileQuery) FirstX(ctx context.Context) *KYBProfile

FirstX is like First, but panics if an error occurs.

func (*KYBProfileQuery) GroupBy

func (kpq *KYBProfileQuery) GroupBy(field string, fields ...string) *KYBProfileGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.KYBProfile.Query().
	GroupBy(kybprofile.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*KYBProfileQuery) IDs

func (kpq *KYBProfileQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of KYBProfile IDs.

func (*KYBProfileQuery) IDsX

func (kpq *KYBProfileQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*KYBProfileQuery) Limit

func (kpq *KYBProfileQuery) Limit(limit int) *KYBProfileQuery

Limit the number of records to be returned by this query.

func (*KYBProfileQuery) Offset

func (kpq *KYBProfileQuery) Offset(offset int) *KYBProfileQuery

Offset to start from.

func (*KYBProfileQuery) Only

func (kpq *KYBProfileQuery) Only(ctx context.Context) (*KYBProfile, error)

Only returns a single KYBProfile entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one KYBProfile entity is found. Returns a *NotFoundError when no KYBProfile entities are found.

func (*KYBProfileQuery) OnlyID

func (kpq *KYBProfileQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only KYBProfile ID in the query. Returns a *NotSingularError when more than one KYBProfile ID is found. Returns a *NotFoundError when no entities are found.

func (*KYBProfileQuery) OnlyIDX

func (kpq *KYBProfileQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*KYBProfileQuery) OnlyX

func (kpq *KYBProfileQuery) OnlyX(ctx context.Context) *KYBProfile

OnlyX is like Only, but panics if an error occurs.

func (*KYBProfileQuery) Order

Order specifies how the records should be ordered.

func (*KYBProfileQuery) QueryBeneficialOwners

func (kpq *KYBProfileQuery) QueryBeneficialOwners() *BeneficialOwnerQuery

QueryBeneficialOwners chains the current query on the "beneficial_owners" edge.

func (*KYBProfileQuery) QueryUser

func (kpq *KYBProfileQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*KYBProfileQuery) Select

func (kpq *KYBProfileQuery) Select(fields ...string) *KYBProfileSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.KYBProfile.Query().
	Select(kybprofile.FieldCreatedAt).
	Scan(ctx, &v)

func (*KYBProfileQuery) Unique

func (kpq *KYBProfileQuery) Unique(unique bool) *KYBProfileQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*KYBProfileQuery) Where

Where adds a new predicate for the KYBProfileQuery builder.

func (*KYBProfileQuery) WithBeneficialOwners

func (kpq *KYBProfileQuery) WithBeneficialOwners(opts ...func(*BeneficialOwnerQuery)) *KYBProfileQuery

WithBeneficialOwners tells the query-builder to eager-load the nodes that are connected to the "beneficial_owners" edge. The optional arguments are used to configure the query builder of the edge.

func (*KYBProfileQuery) WithUser

func (kpq *KYBProfileQuery) WithUser(opts ...func(*UserQuery)) *KYBProfileQuery

WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.

type KYBProfileSelect

type KYBProfileSelect struct {
	*KYBProfileQuery
	// contains filtered or unexported fields
}

KYBProfileSelect is the builder for selecting fields of KYBProfile entities.

func (*KYBProfileSelect) Aggregate

func (kps *KYBProfileSelect) Aggregate(fns ...AggregateFunc) *KYBProfileSelect

Aggregate adds the given aggregation functions to the selector query.

func (*KYBProfileSelect) Bool

func (s *KYBProfileSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*KYBProfileSelect) BoolX

func (s *KYBProfileSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*KYBProfileSelect) Bools

func (s *KYBProfileSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*KYBProfileSelect) BoolsX

func (s *KYBProfileSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*KYBProfileSelect) Float64

func (s *KYBProfileSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*KYBProfileSelect) Float64X

func (s *KYBProfileSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*KYBProfileSelect) Float64s

func (s *KYBProfileSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*KYBProfileSelect) Float64sX

func (s *KYBProfileSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*KYBProfileSelect) Int

func (s *KYBProfileSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*KYBProfileSelect) IntX

func (s *KYBProfileSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*KYBProfileSelect) Ints

func (s *KYBProfileSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*KYBProfileSelect) IntsX

func (s *KYBProfileSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*KYBProfileSelect) Scan

func (kps *KYBProfileSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*KYBProfileSelect) ScanX

func (s *KYBProfileSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*KYBProfileSelect) String

func (s *KYBProfileSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*KYBProfileSelect) StringX

func (s *KYBProfileSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*KYBProfileSelect) Strings

func (s *KYBProfileSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*KYBProfileSelect) StringsX

func (s *KYBProfileSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type KYBProfileUpdate

type KYBProfileUpdate struct {
	// contains filtered or unexported fields
}

KYBProfileUpdate is the builder for updating KYBProfile entities.

func (*KYBProfileUpdate) AddBeneficialOwnerIDs

func (kpu *KYBProfileUpdate) AddBeneficialOwnerIDs(ids ...uuid.UUID) *KYBProfileUpdate

AddBeneficialOwnerIDs adds the "beneficial_owners" edge to the BeneficialOwner entity by IDs.

func (*KYBProfileUpdate) AddBeneficialOwners

func (kpu *KYBProfileUpdate) AddBeneficialOwners(b ...*BeneficialOwner) *KYBProfileUpdate

AddBeneficialOwners adds the "beneficial_owners" edges to the BeneficialOwner entity.

func (*KYBProfileUpdate) ClearAmlPolicyURL

func (kpu *KYBProfileUpdate) ClearAmlPolicyURL() *KYBProfileUpdate

ClearAmlPolicyURL clears the value of the "aml_policy_url" field.

func (*KYBProfileUpdate) ClearBeneficialOwners

func (kpu *KYBProfileUpdate) ClearBeneficialOwners() *KYBProfileUpdate

ClearBeneficialOwners clears all "beneficial_owners" edges to the BeneficialOwner entity.

func (*KYBProfileUpdate) ClearBusinessLicenseURL

func (kpu *KYBProfileUpdate) ClearBusinessLicenseURL() *KYBProfileUpdate

ClearBusinessLicenseURL clears the value of the "business_license_url" field.

func (*KYBProfileUpdate) ClearKycPolicyURL

func (kpu *KYBProfileUpdate) ClearKycPolicyURL() *KYBProfileUpdate

ClearKycPolicyURL clears the value of the "kyc_policy_url" field.

func (*KYBProfileUpdate) ClearUser

func (kpu *KYBProfileUpdate) ClearUser() *KYBProfileUpdate

ClearUser clears the "user" edge to the User entity.

func (*KYBProfileUpdate) Exec

func (kpu *KYBProfileUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*KYBProfileUpdate) ExecX

func (kpu *KYBProfileUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*KYBProfileUpdate) Mutation

func (kpu *KYBProfileUpdate) Mutation() *KYBProfileMutation

Mutation returns the KYBProfileMutation object of the builder.

func (*KYBProfileUpdate) RemoveBeneficialOwnerIDs

func (kpu *KYBProfileUpdate) RemoveBeneficialOwnerIDs(ids ...uuid.UUID) *KYBProfileUpdate

RemoveBeneficialOwnerIDs removes the "beneficial_owners" edge to BeneficialOwner entities by IDs.

func (*KYBProfileUpdate) RemoveBeneficialOwners

func (kpu *KYBProfileUpdate) RemoveBeneficialOwners(b ...*BeneficialOwner) *KYBProfileUpdate

RemoveBeneficialOwners removes "beneficial_owners" edges to BeneficialOwner entities.

func (*KYBProfileUpdate) Save

func (kpu *KYBProfileUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*KYBProfileUpdate) SaveX

func (kpu *KYBProfileUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*KYBProfileUpdate) SetAmlPolicyURL

func (kpu *KYBProfileUpdate) SetAmlPolicyURL(s string) *KYBProfileUpdate

SetAmlPolicyURL sets the "aml_policy_url" field.

func (*KYBProfileUpdate) SetArticlesOfIncorporationURL

func (kpu *KYBProfileUpdate) SetArticlesOfIncorporationURL(s string) *KYBProfileUpdate

SetArticlesOfIncorporationURL sets the "articles_of_incorporation_url" field.

func (*KYBProfileUpdate) SetBusinessLicenseURL

func (kpu *KYBProfileUpdate) SetBusinessLicenseURL(s string) *KYBProfileUpdate

SetBusinessLicenseURL sets the "business_license_url" field.

func (*KYBProfileUpdate) SetCertificateOfIncorporationURL

func (kpu *KYBProfileUpdate) SetCertificateOfIncorporationURL(s string) *KYBProfileUpdate

SetCertificateOfIncorporationURL sets the "certificate_of_incorporation_url" field.

func (*KYBProfileUpdate) SetCompanyName

func (kpu *KYBProfileUpdate) SetCompanyName(s string) *KYBProfileUpdate

SetCompanyName sets the "company_name" field.

func (*KYBProfileUpdate) SetKycPolicyURL

func (kpu *KYBProfileUpdate) SetKycPolicyURL(s string) *KYBProfileUpdate

SetKycPolicyURL sets the "kyc_policy_url" field.

func (*KYBProfileUpdate) SetMobileNumber

func (kpu *KYBProfileUpdate) SetMobileNumber(s string) *KYBProfileUpdate

SetMobileNumber sets the "mobile_number" field.

func (*KYBProfileUpdate) SetNillableAmlPolicyURL

func (kpu *KYBProfileUpdate) SetNillableAmlPolicyURL(s *string) *KYBProfileUpdate

SetNillableAmlPolicyURL sets the "aml_policy_url" field if the given value is not nil.

func (*KYBProfileUpdate) SetNillableArticlesOfIncorporationURL

func (kpu *KYBProfileUpdate) SetNillableArticlesOfIncorporationURL(s *string) *KYBProfileUpdate

SetNillableArticlesOfIncorporationURL sets the "articles_of_incorporation_url" field if the given value is not nil.

func (*KYBProfileUpdate) SetNillableBusinessLicenseURL

func (kpu *KYBProfileUpdate) SetNillableBusinessLicenseURL(s *string) *KYBProfileUpdate

SetNillableBusinessLicenseURL sets the "business_license_url" field if the given value is not nil.

func (*KYBProfileUpdate) SetNillableCertificateOfIncorporationURL

func (kpu *KYBProfileUpdate) SetNillableCertificateOfIncorporationURL(s *string) *KYBProfileUpdate

SetNillableCertificateOfIncorporationURL sets the "certificate_of_incorporation_url" field if the given value is not nil.

func (*KYBProfileUpdate) SetNillableCompanyName

func (kpu *KYBProfileUpdate) SetNillableCompanyName(s *string) *KYBProfileUpdate

SetNillableCompanyName sets the "company_name" field if the given value is not nil.

func (*KYBProfileUpdate) SetNillableKycPolicyURL

func (kpu *KYBProfileUpdate) SetNillableKycPolicyURL(s *string) *KYBProfileUpdate

SetNillableKycPolicyURL sets the "kyc_policy_url" field if the given value is not nil.

func (*KYBProfileUpdate) SetNillableMobileNumber

func (kpu *KYBProfileUpdate) SetNillableMobileNumber(s *string) *KYBProfileUpdate

SetNillableMobileNumber sets the "mobile_number" field if the given value is not nil.

func (*KYBProfileUpdate) SetNillableProofOfBusinessAddressURL

func (kpu *KYBProfileUpdate) SetNillableProofOfBusinessAddressURL(s *string) *KYBProfileUpdate

SetNillableProofOfBusinessAddressURL sets the "proof_of_business_address_url" field if the given value is not nil.

func (*KYBProfileUpdate) SetNillableRegisteredBusinessAddress

func (kpu *KYBProfileUpdate) SetNillableRegisteredBusinessAddress(s *string) *KYBProfileUpdate

SetNillableRegisteredBusinessAddress sets the "registered_business_address" field if the given value is not nil.

func (*KYBProfileUpdate) SetNillableUserID

func (kpu *KYBProfileUpdate) SetNillableUserID(id *uuid.UUID) *KYBProfileUpdate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*KYBProfileUpdate) SetProofOfBusinessAddressURL

func (kpu *KYBProfileUpdate) SetProofOfBusinessAddressURL(s string) *KYBProfileUpdate

SetProofOfBusinessAddressURL sets the "proof_of_business_address_url" field.

func (*KYBProfileUpdate) SetRegisteredBusinessAddress

func (kpu *KYBProfileUpdate) SetRegisteredBusinessAddress(s string) *KYBProfileUpdate

SetRegisteredBusinessAddress sets the "registered_business_address" field.

func (*KYBProfileUpdate) SetUpdatedAt

func (kpu *KYBProfileUpdate) SetUpdatedAt(t time.Time) *KYBProfileUpdate

SetUpdatedAt sets the "updated_at" field.

func (*KYBProfileUpdate) SetUser

func (kpu *KYBProfileUpdate) SetUser(u *User) *KYBProfileUpdate

SetUser sets the "user" edge to the User entity.

func (*KYBProfileUpdate) SetUserID

func (kpu *KYBProfileUpdate) SetUserID(id uuid.UUID) *KYBProfileUpdate

SetUserID sets the "user" edge to the User entity by ID.

func (*KYBProfileUpdate) Where

Where appends a list predicates to the KYBProfileUpdate builder.

type KYBProfileUpdateOne

type KYBProfileUpdateOne struct {
	// contains filtered or unexported fields
}

KYBProfileUpdateOne is the builder for updating a single KYBProfile entity.

func (*KYBProfileUpdateOne) AddBeneficialOwnerIDs

func (kpuo *KYBProfileUpdateOne) AddBeneficialOwnerIDs(ids ...uuid.UUID) *KYBProfileUpdateOne

AddBeneficialOwnerIDs adds the "beneficial_owners" edge to the BeneficialOwner entity by IDs.

func (*KYBProfileUpdateOne) AddBeneficialOwners

func (kpuo *KYBProfileUpdateOne) AddBeneficialOwners(b ...*BeneficialOwner) *KYBProfileUpdateOne

AddBeneficialOwners adds the "beneficial_owners" edges to the BeneficialOwner entity.

func (*KYBProfileUpdateOne) ClearAmlPolicyURL

func (kpuo *KYBProfileUpdateOne) ClearAmlPolicyURL() *KYBProfileUpdateOne

ClearAmlPolicyURL clears the value of the "aml_policy_url" field.

func (*KYBProfileUpdateOne) ClearBeneficialOwners

func (kpuo *KYBProfileUpdateOne) ClearBeneficialOwners() *KYBProfileUpdateOne

ClearBeneficialOwners clears all "beneficial_owners" edges to the BeneficialOwner entity.

func (*KYBProfileUpdateOne) ClearBusinessLicenseURL

func (kpuo *KYBProfileUpdateOne) ClearBusinessLicenseURL() *KYBProfileUpdateOne

ClearBusinessLicenseURL clears the value of the "business_license_url" field.

func (*KYBProfileUpdateOne) ClearKycPolicyURL

func (kpuo *KYBProfileUpdateOne) ClearKycPolicyURL() *KYBProfileUpdateOne

ClearKycPolicyURL clears the value of the "kyc_policy_url" field.

func (*KYBProfileUpdateOne) ClearUser

func (kpuo *KYBProfileUpdateOne) ClearUser() *KYBProfileUpdateOne

ClearUser clears the "user" edge to the User entity.

func (*KYBProfileUpdateOne) Exec

func (kpuo *KYBProfileUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*KYBProfileUpdateOne) ExecX

func (kpuo *KYBProfileUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*KYBProfileUpdateOne) Mutation

func (kpuo *KYBProfileUpdateOne) Mutation() *KYBProfileMutation

Mutation returns the KYBProfileMutation object of the builder.

func (*KYBProfileUpdateOne) RemoveBeneficialOwnerIDs

func (kpuo *KYBProfileUpdateOne) RemoveBeneficialOwnerIDs(ids ...uuid.UUID) *KYBProfileUpdateOne

RemoveBeneficialOwnerIDs removes the "beneficial_owners" edge to BeneficialOwner entities by IDs.

func (*KYBProfileUpdateOne) RemoveBeneficialOwners

func (kpuo *KYBProfileUpdateOne) RemoveBeneficialOwners(b ...*BeneficialOwner) *KYBProfileUpdateOne

RemoveBeneficialOwners removes "beneficial_owners" edges to BeneficialOwner entities.

func (*KYBProfileUpdateOne) Save

func (kpuo *KYBProfileUpdateOne) Save(ctx context.Context) (*KYBProfile, error)

Save executes the query and returns the updated KYBProfile entity.

func (*KYBProfileUpdateOne) SaveX

func (kpuo *KYBProfileUpdateOne) SaveX(ctx context.Context) *KYBProfile

SaveX is like Save, but panics if an error occurs.

func (*KYBProfileUpdateOne) Select

func (kpuo *KYBProfileUpdateOne) Select(field string, fields ...string) *KYBProfileUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*KYBProfileUpdateOne) SetAmlPolicyURL

func (kpuo *KYBProfileUpdateOne) SetAmlPolicyURL(s string) *KYBProfileUpdateOne

SetAmlPolicyURL sets the "aml_policy_url" field.

func (*KYBProfileUpdateOne) SetArticlesOfIncorporationURL

func (kpuo *KYBProfileUpdateOne) SetArticlesOfIncorporationURL(s string) *KYBProfileUpdateOne

SetArticlesOfIncorporationURL sets the "articles_of_incorporation_url" field.

func (*KYBProfileUpdateOne) SetBusinessLicenseURL

func (kpuo *KYBProfileUpdateOne) SetBusinessLicenseURL(s string) *KYBProfileUpdateOne

SetBusinessLicenseURL sets the "business_license_url" field.

func (*KYBProfileUpdateOne) SetCertificateOfIncorporationURL

func (kpuo *KYBProfileUpdateOne) SetCertificateOfIncorporationURL(s string) *KYBProfileUpdateOne

SetCertificateOfIncorporationURL sets the "certificate_of_incorporation_url" field.

func (*KYBProfileUpdateOne) SetCompanyName

func (kpuo *KYBProfileUpdateOne) SetCompanyName(s string) *KYBProfileUpdateOne

SetCompanyName sets the "company_name" field.

func (*KYBProfileUpdateOne) SetKycPolicyURL

func (kpuo *KYBProfileUpdateOne) SetKycPolicyURL(s string) *KYBProfileUpdateOne

SetKycPolicyURL sets the "kyc_policy_url" field.

func (*KYBProfileUpdateOne) SetMobileNumber

func (kpuo *KYBProfileUpdateOne) SetMobileNumber(s string) *KYBProfileUpdateOne

SetMobileNumber sets the "mobile_number" field.

func (*KYBProfileUpdateOne) SetNillableAmlPolicyURL

func (kpuo *KYBProfileUpdateOne) SetNillableAmlPolicyURL(s *string) *KYBProfileUpdateOne

SetNillableAmlPolicyURL sets the "aml_policy_url" field if the given value is not nil.

func (*KYBProfileUpdateOne) SetNillableArticlesOfIncorporationURL

func (kpuo *KYBProfileUpdateOne) SetNillableArticlesOfIncorporationURL(s *string) *KYBProfileUpdateOne

SetNillableArticlesOfIncorporationURL sets the "articles_of_incorporation_url" field if the given value is not nil.

func (*KYBProfileUpdateOne) SetNillableBusinessLicenseURL

func (kpuo *KYBProfileUpdateOne) SetNillableBusinessLicenseURL(s *string) *KYBProfileUpdateOne

SetNillableBusinessLicenseURL sets the "business_license_url" field if the given value is not nil.

func (*KYBProfileUpdateOne) SetNillableCertificateOfIncorporationURL

func (kpuo *KYBProfileUpdateOne) SetNillableCertificateOfIncorporationURL(s *string) *KYBProfileUpdateOne

SetNillableCertificateOfIncorporationURL sets the "certificate_of_incorporation_url" field if the given value is not nil.

func (*KYBProfileUpdateOne) SetNillableCompanyName

func (kpuo *KYBProfileUpdateOne) SetNillableCompanyName(s *string) *KYBProfileUpdateOne

SetNillableCompanyName sets the "company_name" field if the given value is not nil.

func (*KYBProfileUpdateOne) SetNillableKycPolicyURL

func (kpuo *KYBProfileUpdateOne) SetNillableKycPolicyURL(s *string) *KYBProfileUpdateOne

SetNillableKycPolicyURL sets the "kyc_policy_url" field if the given value is not nil.

func (*KYBProfileUpdateOne) SetNillableMobileNumber

func (kpuo *KYBProfileUpdateOne) SetNillableMobileNumber(s *string) *KYBProfileUpdateOne

SetNillableMobileNumber sets the "mobile_number" field if the given value is not nil.

func (*KYBProfileUpdateOne) SetNillableProofOfBusinessAddressURL

func (kpuo *KYBProfileUpdateOne) SetNillableProofOfBusinessAddressURL(s *string) *KYBProfileUpdateOne

SetNillableProofOfBusinessAddressURL sets the "proof_of_business_address_url" field if the given value is not nil.

func (*KYBProfileUpdateOne) SetNillableRegisteredBusinessAddress

func (kpuo *KYBProfileUpdateOne) SetNillableRegisteredBusinessAddress(s *string) *KYBProfileUpdateOne

SetNillableRegisteredBusinessAddress sets the "registered_business_address" field if the given value is not nil.

func (*KYBProfileUpdateOne) SetNillableUserID

func (kpuo *KYBProfileUpdateOne) SetNillableUserID(id *uuid.UUID) *KYBProfileUpdateOne

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*KYBProfileUpdateOne) SetProofOfBusinessAddressURL

func (kpuo *KYBProfileUpdateOne) SetProofOfBusinessAddressURL(s string) *KYBProfileUpdateOne

SetProofOfBusinessAddressURL sets the "proof_of_business_address_url" field.

func (*KYBProfileUpdateOne) SetRegisteredBusinessAddress

func (kpuo *KYBProfileUpdateOne) SetRegisteredBusinessAddress(s string) *KYBProfileUpdateOne

SetRegisteredBusinessAddress sets the "registered_business_address" field.

func (*KYBProfileUpdateOne) SetUpdatedAt

func (kpuo *KYBProfileUpdateOne) SetUpdatedAt(t time.Time) *KYBProfileUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*KYBProfileUpdateOne) SetUser

func (kpuo *KYBProfileUpdateOne) SetUser(u *User) *KYBProfileUpdateOne

SetUser sets the "user" edge to the User entity.

func (*KYBProfileUpdateOne) SetUserID

func (kpuo *KYBProfileUpdateOne) SetUserID(id uuid.UUID) *KYBProfileUpdateOne

SetUserID sets the "user" edge to the User entity by ID.

func (*KYBProfileUpdateOne) Where

Where appends a list predicates to the KYBProfileUpdate builder.

type KYBProfileUpsert

type KYBProfileUpsert struct {
	*sql.UpdateSet
}

KYBProfileUpsert is the "OnConflict" setter.

func (*KYBProfileUpsert) ClearAmlPolicyURL

func (u *KYBProfileUpsert) ClearAmlPolicyURL() *KYBProfileUpsert

ClearAmlPolicyURL clears the value of the "aml_policy_url" field.

func (*KYBProfileUpsert) ClearBusinessLicenseURL

func (u *KYBProfileUpsert) ClearBusinessLicenseURL() *KYBProfileUpsert

ClearBusinessLicenseURL clears the value of the "business_license_url" field.

func (*KYBProfileUpsert) ClearKycPolicyURL

func (u *KYBProfileUpsert) ClearKycPolicyURL() *KYBProfileUpsert

ClearKycPolicyURL clears the value of the "kyc_policy_url" field.

func (*KYBProfileUpsert) SetAmlPolicyURL

func (u *KYBProfileUpsert) SetAmlPolicyURL(v string) *KYBProfileUpsert

SetAmlPolicyURL sets the "aml_policy_url" field.

func (*KYBProfileUpsert) SetArticlesOfIncorporationURL

func (u *KYBProfileUpsert) SetArticlesOfIncorporationURL(v string) *KYBProfileUpsert

SetArticlesOfIncorporationURL sets the "articles_of_incorporation_url" field.

func (*KYBProfileUpsert) SetBusinessLicenseURL

func (u *KYBProfileUpsert) SetBusinessLicenseURL(v string) *KYBProfileUpsert

SetBusinessLicenseURL sets the "business_license_url" field.

func (*KYBProfileUpsert) SetCertificateOfIncorporationURL

func (u *KYBProfileUpsert) SetCertificateOfIncorporationURL(v string) *KYBProfileUpsert

SetCertificateOfIncorporationURL sets the "certificate_of_incorporation_url" field.

func (*KYBProfileUpsert) SetCompanyName

func (u *KYBProfileUpsert) SetCompanyName(v string) *KYBProfileUpsert

SetCompanyName sets the "company_name" field.

func (*KYBProfileUpsert) SetKycPolicyURL

func (u *KYBProfileUpsert) SetKycPolicyURL(v string) *KYBProfileUpsert

SetKycPolicyURL sets the "kyc_policy_url" field.

func (*KYBProfileUpsert) SetMobileNumber

func (u *KYBProfileUpsert) SetMobileNumber(v string) *KYBProfileUpsert

SetMobileNumber sets the "mobile_number" field.

func (*KYBProfileUpsert) SetProofOfBusinessAddressURL

func (u *KYBProfileUpsert) SetProofOfBusinessAddressURL(v string) *KYBProfileUpsert

SetProofOfBusinessAddressURL sets the "proof_of_business_address_url" field.

func (*KYBProfileUpsert) SetRegisteredBusinessAddress

func (u *KYBProfileUpsert) SetRegisteredBusinessAddress(v string) *KYBProfileUpsert

SetRegisteredBusinessAddress sets the "registered_business_address" field.

func (*KYBProfileUpsert) SetUpdatedAt

func (u *KYBProfileUpsert) SetUpdatedAt(v time.Time) *KYBProfileUpsert

SetUpdatedAt sets the "updated_at" field.

func (*KYBProfileUpsert) UpdateAmlPolicyURL

func (u *KYBProfileUpsert) UpdateAmlPolicyURL() *KYBProfileUpsert

UpdateAmlPolicyURL sets the "aml_policy_url" field to the value that was provided on create.

func (*KYBProfileUpsert) UpdateArticlesOfIncorporationURL

func (u *KYBProfileUpsert) UpdateArticlesOfIncorporationURL() *KYBProfileUpsert

UpdateArticlesOfIncorporationURL sets the "articles_of_incorporation_url" field to the value that was provided on create.

func (*KYBProfileUpsert) UpdateBusinessLicenseURL

func (u *KYBProfileUpsert) UpdateBusinessLicenseURL() *KYBProfileUpsert

UpdateBusinessLicenseURL sets the "business_license_url" field to the value that was provided on create.

func (*KYBProfileUpsert) UpdateCertificateOfIncorporationURL

func (u *KYBProfileUpsert) UpdateCertificateOfIncorporationURL() *KYBProfileUpsert

UpdateCertificateOfIncorporationURL sets the "certificate_of_incorporation_url" field to the value that was provided on create.

func (*KYBProfileUpsert) UpdateCompanyName

func (u *KYBProfileUpsert) UpdateCompanyName() *KYBProfileUpsert

UpdateCompanyName sets the "company_name" field to the value that was provided on create.

func (*KYBProfileUpsert) UpdateKycPolicyURL

func (u *KYBProfileUpsert) UpdateKycPolicyURL() *KYBProfileUpsert

UpdateKycPolicyURL sets the "kyc_policy_url" field to the value that was provided on create.

func (*KYBProfileUpsert) UpdateMobileNumber

func (u *KYBProfileUpsert) UpdateMobileNumber() *KYBProfileUpsert

UpdateMobileNumber sets the "mobile_number" field to the value that was provided on create.

func (*KYBProfileUpsert) UpdateProofOfBusinessAddressURL

func (u *KYBProfileUpsert) UpdateProofOfBusinessAddressURL() *KYBProfileUpsert

UpdateProofOfBusinessAddressURL sets the "proof_of_business_address_url" field to the value that was provided on create.

func (*KYBProfileUpsert) UpdateRegisteredBusinessAddress

func (u *KYBProfileUpsert) UpdateRegisteredBusinessAddress() *KYBProfileUpsert

UpdateRegisteredBusinessAddress sets the "registered_business_address" field to the value that was provided on create.

func (*KYBProfileUpsert) UpdateUpdatedAt

func (u *KYBProfileUpsert) UpdateUpdatedAt() *KYBProfileUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type KYBProfileUpsertBulk

type KYBProfileUpsertBulk struct {
	// contains filtered or unexported fields
}

KYBProfileUpsertBulk is the builder for "upsert"-ing a bulk of KYBProfile nodes.

func (*KYBProfileUpsertBulk) ClearAmlPolicyURL

func (u *KYBProfileUpsertBulk) ClearAmlPolicyURL() *KYBProfileUpsertBulk

ClearAmlPolicyURL clears the value of the "aml_policy_url" field.

func (*KYBProfileUpsertBulk) ClearBusinessLicenseURL

func (u *KYBProfileUpsertBulk) ClearBusinessLicenseURL() *KYBProfileUpsertBulk

ClearBusinessLicenseURL clears the value of the "business_license_url" field.

func (*KYBProfileUpsertBulk) ClearKycPolicyURL

func (u *KYBProfileUpsertBulk) ClearKycPolicyURL() *KYBProfileUpsertBulk

ClearKycPolicyURL clears the value of the "kyc_policy_url" field.

func (*KYBProfileUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*KYBProfileUpsertBulk) Exec

Exec executes the query.

func (*KYBProfileUpsertBulk) ExecX

func (u *KYBProfileUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*KYBProfileUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.KYBProfile.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*KYBProfileUpsertBulk) SetAmlPolicyURL

func (u *KYBProfileUpsertBulk) SetAmlPolicyURL(v string) *KYBProfileUpsertBulk

SetAmlPolicyURL sets the "aml_policy_url" field.

func (*KYBProfileUpsertBulk) SetArticlesOfIncorporationURL

func (u *KYBProfileUpsertBulk) SetArticlesOfIncorporationURL(v string) *KYBProfileUpsertBulk

SetArticlesOfIncorporationURL sets the "articles_of_incorporation_url" field.

func (*KYBProfileUpsertBulk) SetBusinessLicenseURL

func (u *KYBProfileUpsertBulk) SetBusinessLicenseURL(v string) *KYBProfileUpsertBulk

SetBusinessLicenseURL sets the "business_license_url" field.

func (*KYBProfileUpsertBulk) SetCertificateOfIncorporationURL

func (u *KYBProfileUpsertBulk) SetCertificateOfIncorporationURL(v string) *KYBProfileUpsertBulk

SetCertificateOfIncorporationURL sets the "certificate_of_incorporation_url" field.

func (*KYBProfileUpsertBulk) SetCompanyName

func (u *KYBProfileUpsertBulk) SetCompanyName(v string) *KYBProfileUpsertBulk

SetCompanyName sets the "company_name" field.

func (*KYBProfileUpsertBulk) SetKycPolicyURL

func (u *KYBProfileUpsertBulk) SetKycPolicyURL(v string) *KYBProfileUpsertBulk

SetKycPolicyURL sets the "kyc_policy_url" field.

func (*KYBProfileUpsertBulk) SetMobileNumber

func (u *KYBProfileUpsertBulk) SetMobileNumber(v string) *KYBProfileUpsertBulk

SetMobileNumber sets the "mobile_number" field.

func (*KYBProfileUpsertBulk) SetProofOfBusinessAddressURL

func (u *KYBProfileUpsertBulk) SetProofOfBusinessAddressURL(v string) *KYBProfileUpsertBulk

SetProofOfBusinessAddressURL sets the "proof_of_business_address_url" field.

func (*KYBProfileUpsertBulk) SetRegisteredBusinessAddress

func (u *KYBProfileUpsertBulk) SetRegisteredBusinessAddress(v string) *KYBProfileUpsertBulk

SetRegisteredBusinessAddress sets the "registered_business_address" field.

func (*KYBProfileUpsertBulk) SetUpdatedAt

func (u *KYBProfileUpsertBulk) SetUpdatedAt(v time.Time) *KYBProfileUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*KYBProfileUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the KYBProfileCreateBulk.OnConflict documentation for more info.

func (*KYBProfileUpsertBulk) UpdateAmlPolicyURL

func (u *KYBProfileUpsertBulk) UpdateAmlPolicyURL() *KYBProfileUpsertBulk

UpdateAmlPolicyURL sets the "aml_policy_url" field to the value that was provided on create.

func (*KYBProfileUpsertBulk) UpdateArticlesOfIncorporationURL

func (u *KYBProfileUpsertBulk) UpdateArticlesOfIncorporationURL() *KYBProfileUpsertBulk

UpdateArticlesOfIncorporationURL sets the "articles_of_incorporation_url" field to the value that was provided on create.

func (*KYBProfileUpsertBulk) UpdateBusinessLicenseURL

func (u *KYBProfileUpsertBulk) UpdateBusinessLicenseURL() *KYBProfileUpsertBulk

UpdateBusinessLicenseURL sets the "business_license_url" field to the value that was provided on create.

func (*KYBProfileUpsertBulk) UpdateCertificateOfIncorporationURL

func (u *KYBProfileUpsertBulk) UpdateCertificateOfIncorporationURL() *KYBProfileUpsertBulk

UpdateCertificateOfIncorporationURL sets the "certificate_of_incorporation_url" field to the value that was provided on create.

func (*KYBProfileUpsertBulk) UpdateCompanyName

func (u *KYBProfileUpsertBulk) UpdateCompanyName() *KYBProfileUpsertBulk

UpdateCompanyName sets the "company_name" field to the value that was provided on create.

func (*KYBProfileUpsertBulk) UpdateKycPolicyURL

func (u *KYBProfileUpsertBulk) UpdateKycPolicyURL() *KYBProfileUpsertBulk

UpdateKycPolicyURL sets the "kyc_policy_url" field to the value that was provided on create.

func (*KYBProfileUpsertBulk) UpdateMobileNumber

func (u *KYBProfileUpsertBulk) UpdateMobileNumber() *KYBProfileUpsertBulk

UpdateMobileNumber sets the "mobile_number" field to the value that was provided on create.

func (*KYBProfileUpsertBulk) UpdateNewValues

func (u *KYBProfileUpsertBulk) UpdateNewValues() *KYBProfileUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.KYBProfile.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(kybprofile.FieldID)
		}),
	).
	Exec(ctx)

func (*KYBProfileUpsertBulk) UpdateProofOfBusinessAddressURL

func (u *KYBProfileUpsertBulk) UpdateProofOfBusinessAddressURL() *KYBProfileUpsertBulk

UpdateProofOfBusinessAddressURL sets the "proof_of_business_address_url" field to the value that was provided on create.

func (*KYBProfileUpsertBulk) UpdateRegisteredBusinessAddress

func (u *KYBProfileUpsertBulk) UpdateRegisteredBusinessAddress() *KYBProfileUpsertBulk

UpdateRegisteredBusinessAddress sets the "registered_business_address" field to the value that was provided on create.

func (*KYBProfileUpsertBulk) UpdateUpdatedAt

func (u *KYBProfileUpsertBulk) UpdateUpdatedAt() *KYBProfileUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type KYBProfileUpsertOne

type KYBProfileUpsertOne struct {
	// contains filtered or unexported fields
}

KYBProfileUpsertOne is the builder for "upsert"-ing

one KYBProfile node.

func (*KYBProfileUpsertOne) ClearAmlPolicyURL

func (u *KYBProfileUpsertOne) ClearAmlPolicyURL() *KYBProfileUpsertOne

ClearAmlPolicyURL clears the value of the "aml_policy_url" field.

func (*KYBProfileUpsertOne) ClearBusinessLicenseURL

func (u *KYBProfileUpsertOne) ClearBusinessLicenseURL() *KYBProfileUpsertOne

ClearBusinessLicenseURL clears the value of the "business_license_url" field.

func (*KYBProfileUpsertOne) ClearKycPolicyURL

func (u *KYBProfileUpsertOne) ClearKycPolicyURL() *KYBProfileUpsertOne

ClearKycPolicyURL clears the value of the "kyc_policy_url" field.

func (*KYBProfileUpsertOne) DoNothing

func (u *KYBProfileUpsertOne) DoNothing() *KYBProfileUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*KYBProfileUpsertOne) Exec

Exec executes the query.

func (*KYBProfileUpsertOne) ExecX

func (u *KYBProfileUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*KYBProfileUpsertOne) ID

func (u *KYBProfileUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*KYBProfileUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*KYBProfileUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.KYBProfile.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*KYBProfileUpsertOne) SetAmlPolicyURL

func (u *KYBProfileUpsertOne) SetAmlPolicyURL(v string) *KYBProfileUpsertOne

SetAmlPolicyURL sets the "aml_policy_url" field.

func (*KYBProfileUpsertOne) SetArticlesOfIncorporationURL

func (u *KYBProfileUpsertOne) SetArticlesOfIncorporationURL(v string) *KYBProfileUpsertOne

SetArticlesOfIncorporationURL sets the "articles_of_incorporation_url" field.

func (*KYBProfileUpsertOne) SetBusinessLicenseURL

func (u *KYBProfileUpsertOne) SetBusinessLicenseURL(v string) *KYBProfileUpsertOne

SetBusinessLicenseURL sets the "business_license_url" field.

func (*KYBProfileUpsertOne) SetCertificateOfIncorporationURL

func (u *KYBProfileUpsertOne) SetCertificateOfIncorporationURL(v string) *KYBProfileUpsertOne

SetCertificateOfIncorporationURL sets the "certificate_of_incorporation_url" field.

func (*KYBProfileUpsertOne) SetCompanyName

func (u *KYBProfileUpsertOne) SetCompanyName(v string) *KYBProfileUpsertOne

SetCompanyName sets the "company_name" field.

func (*KYBProfileUpsertOne) SetKycPolicyURL

func (u *KYBProfileUpsertOne) SetKycPolicyURL(v string) *KYBProfileUpsertOne

SetKycPolicyURL sets the "kyc_policy_url" field.

func (*KYBProfileUpsertOne) SetMobileNumber

func (u *KYBProfileUpsertOne) SetMobileNumber(v string) *KYBProfileUpsertOne

SetMobileNumber sets the "mobile_number" field.

func (*KYBProfileUpsertOne) SetProofOfBusinessAddressURL

func (u *KYBProfileUpsertOne) SetProofOfBusinessAddressURL(v string) *KYBProfileUpsertOne

SetProofOfBusinessAddressURL sets the "proof_of_business_address_url" field.

func (*KYBProfileUpsertOne) SetRegisteredBusinessAddress

func (u *KYBProfileUpsertOne) SetRegisteredBusinessAddress(v string) *KYBProfileUpsertOne

SetRegisteredBusinessAddress sets the "registered_business_address" field.

func (*KYBProfileUpsertOne) SetUpdatedAt

func (u *KYBProfileUpsertOne) SetUpdatedAt(v time.Time) *KYBProfileUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*KYBProfileUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the KYBProfileCreate.OnConflict documentation for more info.

func (*KYBProfileUpsertOne) UpdateAmlPolicyURL

func (u *KYBProfileUpsertOne) UpdateAmlPolicyURL() *KYBProfileUpsertOne

UpdateAmlPolicyURL sets the "aml_policy_url" field to the value that was provided on create.

func (*KYBProfileUpsertOne) UpdateArticlesOfIncorporationURL

func (u *KYBProfileUpsertOne) UpdateArticlesOfIncorporationURL() *KYBProfileUpsertOne

UpdateArticlesOfIncorporationURL sets the "articles_of_incorporation_url" field to the value that was provided on create.

func (*KYBProfileUpsertOne) UpdateBusinessLicenseURL

func (u *KYBProfileUpsertOne) UpdateBusinessLicenseURL() *KYBProfileUpsertOne

UpdateBusinessLicenseURL sets the "business_license_url" field to the value that was provided on create.

func (*KYBProfileUpsertOne) UpdateCertificateOfIncorporationURL

func (u *KYBProfileUpsertOne) UpdateCertificateOfIncorporationURL() *KYBProfileUpsertOne

UpdateCertificateOfIncorporationURL sets the "certificate_of_incorporation_url" field to the value that was provided on create.

func (*KYBProfileUpsertOne) UpdateCompanyName

func (u *KYBProfileUpsertOne) UpdateCompanyName() *KYBProfileUpsertOne

UpdateCompanyName sets the "company_name" field to the value that was provided on create.

func (*KYBProfileUpsertOne) UpdateKycPolicyURL

func (u *KYBProfileUpsertOne) UpdateKycPolicyURL() *KYBProfileUpsertOne

UpdateKycPolicyURL sets the "kyc_policy_url" field to the value that was provided on create.

func (*KYBProfileUpsertOne) UpdateMobileNumber

func (u *KYBProfileUpsertOne) UpdateMobileNumber() *KYBProfileUpsertOne

UpdateMobileNumber sets the "mobile_number" field to the value that was provided on create.

func (*KYBProfileUpsertOne) UpdateNewValues

func (u *KYBProfileUpsertOne) UpdateNewValues() *KYBProfileUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.KYBProfile.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(kybprofile.FieldID)
		}),
	).
	Exec(ctx)

func (*KYBProfileUpsertOne) UpdateProofOfBusinessAddressURL

func (u *KYBProfileUpsertOne) UpdateProofOfBusinessAddressURL() *KYBProfileUpsertOne

UpdateProofOfBusinessAddressURL sets the "proof_of_business_address_url" field to the value that was provided on create.

func (*KYBProfileUpsertOne) UpdateRegisteredBusinessAddress

func (u *KYBProfileUpsertOne) UpdateRegisteredBusinessAddress() *KYBProfileUpsertOne

UpdateRegisteredBusinessAddress sets the "registered_business_address" field to the value that was provided on create.

func (*KYBProfileUpsertOne) UpdateUpdatedAt

func (u *KYBProfileUpsertOne) UpdateUpdatedAt() *KYBProfileUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type KYBProfiles

type KYBProfiles []*KYBProfile

KYBProfiles is a parsable slice of KYBProfile.

type LinkedAddress

type LinkedAddress struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Address holds the value of the "address" field.
	Address string `json:"address,omitempty"`
	// Salt holds the value of the "salt" field.
	Salt []byte `json:"salt,omitempty"`
	// Institution holds the value of the "institution" field.
	Institution string `json:"institution,omitempty"`
	// AccountIdentifier holds the value of the "account_identifier" field.
	AccountIdentifier string `json:"account_identifier,omitempty"`
	// AccountName holds the value of the "account_name" field.
	AccountName string `json:"account_name,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata map[string]interface{} `json:"metadata,omitempty"`
	// OwnerAddress holds the value of the "owner_address" field.
	OwnerAddress string `json:"owner_address,omitempty"`
	// LastIndexedBlock holds the value of the "last_indexed_block" field.
	LastIndexedBlock int64 `json:"last_indexed_block,omitempty"`
	// TxHash holds the value of the "tx_hash" field.
	TxHash string `json:"tx_hash,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the LinkedAddressQuery when eager-loading is set.
	Edges LinkedAddressEdges `json:"edges"`
	// contains filtered or unexported fields
}

LinkedAddress is the model entity for the LinkedAddress schema.

func (*LinkedAddress) QueryPaymentOrders

func (la *LinkedAddress) QueryPaymentOrders() *PaymentOrderQuery

QueryPaymentOrders queries the "payment_orders" edge of the LinkedAddress entity.

func (*LinkedAddress) String

func (la *LinkedAddress) String() string

String implements the fmt.Stringer.

func (*LinkedAddress) Unwrap

func (la *LinkedAddress) Unwrap() *LinkedAddress

Unwrap unwraps the LinkedAddress entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*LinkedAddress) Update

func (la *LinkedAddress) Update() *LinkedAddressUpdateOne

Update returns a builder for updating this LinkedAddress. Note that you need to call LinkedAddress.Unwrap() before calling this method if this LinkedAddress was returned from a transaction, and the transaction was committed or rolled back.

func (*LinkedAddress) Value

func (la *LinkedAddress) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the LinkedAddress. This includes values selected through modifiers, order, etc.

type LinkedAddressClient

type LinkedAddressClient struct {
	// contains filtered or unexported fields
}

LinkedAddressClient is a client for the LinkedAddress schema.

func NewLinkedAddressClient

func NewLinkedAddressClient(c config) *LinkedAddressClient

NewLinkedAddressClient returns a client for the LinkedAddress from the given config.

func (*LinkedAddressClient) Create

Create returns a builder for creating a LinkedAddress entity.

func (*LinkedAddressClient) CreateBulk

CreateBulk returns a builder for creating a bulk of LinkedAddress entities.

func (*LinkedAddressClient) Delete

Delete returns a delete builder for LinkedAddress.

func (*LinkedAddressClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*LinkedAddressClient) DeleteOneID

func (c *LinkedAddressClient) DeleteOneID(id int) *LinkedAddressDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*LinkedAddressClient) Get

Get returns a LinkedAddress entity by its id.

func (*LinkedAddressClient) GetX

GetX is like Get, but panics if an error occurs.

func (*LinkedAddressClient) Hooks

func (c *LinkedAddressClient) Hooks() []Hook

Hooks returns the client hooks.

func (*LinkedAddressClient) Intercept

func (c *LinkedAddressClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `linkedaddress.Intercept(f(g(h())))`.

func (*LinkedAddressClient) Interceptors

func (c *LinkedAddressClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*LinkedAddressClient) MapCreateBulk

func (c *LinkedAddressClient) MapCreateBulk(slice any, setFunc func(*LinkedAddressCreate, int)) *LinkedAddressCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*LinkedAddressClient) Query

Query returns a query builder for LinkedAddress.

func (*LinkedAddressClient) QueryPaymentOrders

func (c *LinkedAddressClient) QueryPaymentOrders(la *LinkedAddress) *PaymentOrderQuery

QueryPaymentOrders queries the payment_orders edge of a LinkedAddress.

func (*LinkedAddressClient) Update

Update returns an update builder for LinkedAddress.

func (*LinkedAddressClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*LinkedAddressClient) UpdateOneID

func (c *LinkedAddressClient) UpdateOneID(id int) *LinkedAddressUpdateOne

UpdateOneID returns an update builder for the given id.

func (*LinkedAddressClient) Use

func (c *LinkedAddressClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `linkedaddress.Hooks(f(g(h())))`.

type LinkedAddressCreate

type LinkedAddressCreate struct {
	// contains filtered or unexported fields
}

LinkedAddressCreate is the builder for creating a LinkedAddress entity.

func (*LinkedAddressCreate) AddPaymentOrderIDs

func (lac *LinkedAddressCreate) AddPaymentOrderIDs(ids ...uuid.UUID) *LinkedAddressCreate

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*LinkedAddressCreate) AddPaymentOrders

func (lac *LinkedAddressCreate) AddPaymentOrders(p ...*PaymentOrder) *LinkedAddressCreate

AddPaymentOrders adds the "payment_orders" edges to the PaymentOrder entity.

func (*LinkedAddressCreate) Exec

func (lac *LinkedAddressCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*LinkedAddressCreate) ExecX

func (lac *LinkedAddressCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LinkedAddressCreate) Mutation

func (lac *LinkedAddressCreate) Mutation() *LinkedAddressMutation

Mutation returns the LinkedAddressMutation object of the builder.

func (*LinkedAddressCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.LinkedAddress.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.LinkedAddressUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*LinkedAddressCreate) OnConflictColumns

func (lac *LinkedAddressCreate) OnConflictColumns(columns ...string) *LinkedAddressUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.LinkedAddress.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*LinkedAddressCreate) Save

Save creates the LinkedAddress in the database.

func (*LinkedAddressCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*LinkedAddressCreate) SetAccountIdentifier

func (lac *LinkedAddressCreate) SetAccountIdentifier(s string) *LinkedAddressCreate

SetAccountIdentifier sets the "account_identifier" field.

func (*LinkedAddressCreate) SetAccountName

func (lac *LinkedAddressCreate) SetAccountName(s string) *LinkedAddressCreate

SetAccountName sets the "account_name" field.

func (*LinkedAddressCreate) SetAddress

func (lac *LinkedAddressCreate) SetAddress(s string) *LinkedAddressCreate

SetAddress sets the "address" field.

func (*LinkedAddressCreate) SetCreatedAt

func (lac *LinkedAddressCreate) SetCreatedAt(t time.Time) *LinkedAddressCreate

SetCreatedAt sets the "created_at" field.

func (*LinkedAddressCreate) SetInstitution

func (lac *LinkedAddressCreate) SetInstitution(s string) *LinkedAddressCreate

SetInstitution sets the "institution" field.

func (*LinkedAddressCreate) SetLastIndexedBlock

func (lac *LinkedAddressCreate) SetLastIndexedBlock(i int64) *LinkedAddressCreate

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*LinkedAddressCreate) SetMetadata

func (lac *LinkedAddressCreate) SetMetadata(m map[string]interface{}) *LinkedAddressCreate

SetMetadata sets the "metadata" field.

func (*LinkedAddressCreate) SetNillableCreatedAt

func (lac *LinkedAddressCreate) SetNillableCreatedAt(t *time.Time) *LinkedAddressCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*LinkedAddressCreate) SetNillableLastIndexedBlock

func (lac *LinkedAddressCreate) SetNillableLastIndexedBlock(i *int64) *LinkedAddressCreate

SetNillableLastIndexedBlock sets the "last_indexed_block" field if the given value is not nil.

func (*LinkedAddressCreate) SetNillableTxHash

func (lac *LinkedAddressCreate) SetNillableTxHash(s *string) *LinkedAddressCreate

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*LinkedAddressCreate) SetNillableUpdatedAt

func (lac *LinkedAddressCreate) SetNillableUpdatedAt(t *time.Time) *LinkedAddressCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*LinkedAddressCreate) SetOwnerAddress

func (lac *LinkedAddressCreate) SetOwnerAddress(s string) *LinkedAddressCreate

SetOwnerAddress sets the "owner_address" field.

func (*LinkedAddressCreate) SetSalt

func (lac *LinkedAddressCreate) SetSalt(b []byte) *LinkedAddressCreate

SetSalt sets the "salt" field.

func (*LinkedAddressCreate) SetTxHash

func (lac *LinkedAddressCreate) SetTxHash(s string) *LinkedAddressCreate

SetTxHash sets the "tx_hash" field.

func (*LinkedAddressCreate) SetUpdatedAt

func (lac *LinkedAddressCreate) SetUpdatedAt(t time.Time) *LinkedAddressCreate

SetUpdatedAt sets the "updated_at" field.

type LinkedAddressCreateBulk

type LinkedAddressCreateBulk struct {
	// contains filtered or unexported fields
}

LinkedAddressCreateBulk is the builder for creating many LinkedAddress entities in bulk.

func (*LinkedAddressCreateBulk) Exec

func (lacb *LinkedAddressCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*LinkedAddressCreateBulk) ExecX

func (lacb *LinkedAddressCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LinkedAddressCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.LinkedAddress.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.LinkedAddressUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*LinkedAddressCreateBulk) OnConflictColumns

func (lacb *LinkedAddressCreateBulk) OnConflictColumns(columns ...string) *LinkedAddressUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.LinkedAddress.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*LinkedAddressCreateBulk) Save

Save creates the LinkedAddress entities in the database.

func (*LinkedAddressCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type LinkedAddressDelete

type LinkedAddressDelete struct {
	// contains filtered or unexported fields
}

LinkedAddressDelete is the builder for deleting a LinkedAddress entity.

func (*LinkedAddressDelete) Exec

func (lad *LinkedAddressDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*LinkedAddressDelete) ExecX

func (lad *LinkedAddressDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*LinkedAddressDelete) Where

Where appends a list predicates to the LinkedAddressDelete builder.

type LinkedAddressDeleteOne

type LinkedAddressDeleteOne struct {
	// contains filtered or unexported fields
}

LinkedAddressDeleteOne is the builder for deleting a single LinkedAddress entity.

func (*LinkedAddressDeleteOne) Exec

func (lado *LinkedAddressDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*LinkedAddressDeleteOne) ExecX

func (lado *LinkedAddressDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LinkedAddressDeleteOne) Where

Where appends a list predicates to the LinkedAddressDelete builder.

type LinkedAddressEdges

type LinkedAddressEdges struct {
	// PaymentOrders holds the value of the payment_orders edge.
	PaymentOrders []*PaymentOrder `json:"payment_orders,omitempty"`
	// contains filtered or unexported fields
}

LinkedAddressEdges holds the relations/edges for other nodes in the graph.

func (LinkedAddressEdges) PaymentOrdersOrErr

func (e LinkedAddressEdges) PaymentOrdersOrErr() ([]*PaymentOrder, error)

PaymentOrdersOrErr returns the PaymentOrders value or an error if the edge was not loaded in eager-loading.

type LinkedAddressGroupBy

type LinkedAddressGroupBy struct {
	// contains filtered or unexported fields
}

LinkedAddressGroupBy is the group-by builder for LinkedAddress entities.

func (*LinkedAddressGroupBy) Aggregate

func (lagb *LinkedAddressGroupBy) Aggregate(fns ...AggregateFunc) *LinkedAddressGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*LinkedAddressGroupBy) Bool

func (s *LinkedAddressGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*LinkedAddressGroupBy) BoolX

func (s *LinkedAddressGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*LinkedAddressGroupBy) Bools

func (s *LinkedAddressGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*LinkedAddressGroupBy) BoolsX

func (s *LinkedAddressGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*LinkedAddressGroupBy) Float64

func (s *LinkedAddressGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*LinkedAddressGroupBy) Float64X

func (s *LinkedAddressGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*LinkedAddressGroupBy) Float64s

func (s *LinkedAddressGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*LinkedAddressGroupBy) Float64sX

func (s *LinkedAddressGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*LinkedAddressGroupBy) Int

func (s *LinkedAddressGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*LinkedAddressGroupBy) IntX

func (s *LinkedAddressGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*LinkedAddressGroupBy) Ints

func (s *LinkedAddressGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*LinkedAddressGroupBy) IntsX

func (s *LinkedAddressGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*LinkedAddressGroupBy) Scan

func (lagb *LinkedAddressGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*LinkedAddressGroupBy) ScanX

func (s *LinkedAddressGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*LinkedAddressGroupBy) String

func (s *LinkedAddressGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*LinkedAddressGroupBy) StringX

func (s *LinkedAddressGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*LinkedAddressGroupBy) Strings

func (s *LinkedAddressGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*LinkedAddressGroupBy) StringsX

func (s *LinkedAddressGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type LinkedAddressMutation

type LinkedAddressMutation struct {
	// contains filtered or unexported fields
}

LinkedAddressMutation represents an operation that mutates the LinkedAddress nodes in the graph.

func (*LinkedAddressMutation) AccountIdentifier

func (m *LinkedAddressMutation) AccountIdentifier() (r string, exists bool)

AccountIdentifier returns the value of the "account_identifier" field in the mutation.

func (*LinkedAddressMutation) AccountName

func (m *LinkedAddressMutation) AccountName() (r string, exists bool)

AccountName returns the value of the "account_name" field in the mutation.

func (*LinkedAddressMutation) AddField

func (m *LinkedAddressMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*LinkedAddressMutation) AddLastIndexedBlock

func (m *LinkedAddressMutation) AddLastIndexedBlock(i int64)

AddLastIndexedBlock adds i to the "last_indexed_block" field.

func (*LinkedAddressMutation) AddPaymentOrderIDs

func (m *LinkedAddressMutation) AddPaymentOrderIDs(ids ...uuid.UUID)

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by ids.

func (*LinkedAddressMutation) AddedEdges

func (m *LinkedAddressMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*LinkedAddressMutation) AddedField

func (m *LinkedAddressMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*LinkedAddressMutation) AddedFields

func (m *LinkedAddressMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*LinkedAddressMutation) AddedIDs

func (m *LinkedAddressMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*LinkedAddressMutation) AddedLastIndexedBlock

func (m *LinkedAddressMutation) AddedLastIndexedBlock() (r int64, exists bool)

AddedLastIndexedBlock returns the value that was added to the "last_indexed_block" field in this mutation.

func (*LinkedAddressMutation) Address

func (m *LinkedAddressMutation) Address() (r string, exists bool)

Address returns the value of the "address" field in the mutation.

func (*LinkedAddressMutation) ClearEdge

func (m *LinkedAddressMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*LinkedAddressMutation) ClearField

func (m *LinkedAddressMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*LinkedAddressMutation) ClearLastIndexedBlock

func (m *LinkedAddressMutation) ClearLastIndexedBlock()

ClearLastIndexedBlock clears the value of the "last_indexed_block" field.

func (*LinkedAddressMutation) ClearMetadata

func (m *LinkedAddressMutation) ClearMetadata()

ClearMetadata clears the value of the "metadata" field.

func (*LinkedAddressMutation) ClearPaymentOrders

func (m *LinkedAddressMutation) ClearPaymentOrders()

ClearPaymentOrders clears the "payment_orders" edge to the PaymentOrder entity.

func (*LinkedAddressMutation) ClearSalt

func (m *LinkedAddressMutation) ClearSalt()

ClearSalt clears the value of the "salt" field.

func (*LinkedAddressMutation) ClearTxHash

func (m *LinkedAddressMutation) ClearTxHash()

ClearTxHash clears the value of the "tx_hash" field.

func (*LinkedAddressMutation) ClearedEdges

func (m *LinkedAddressMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*LinkedAddressMutation) ClearedFields

func (m *LinkedAddressMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (LinkedAddressMutation) Client

func (m LinkedAddressMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*LinkedAddressMutation) CreatedAt

func (m *LinkedAddressMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*LinkedAddressMutation) EdgeCleared

func (m *LinkedAddressMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*LinkedAddressMutation) Field

func (m *LinkedAddressMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*LinkedAddressMutation) FieldCleared

func (m *LinkedAddressMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*LinkedAddressMutation) Fields

func (m *LinkedAddressMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*LinkedAddressMutation) ID

func (m *LinkedAddressMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*LinkedAddressMutation) IDs

func (m *LinkedAddressMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*LinkedAddressMutation) Institution

func (m *LinkedAddressMutation) Institution() (r string, exists bool)

Institution returns the value of the "institution" field in the mutation.

func (*LinkedAddressMutation) LastIndexedBlock

func (m *LinkedAddressMutation) LastIndexedBlock() (r int64, exists bool)

LastIndexedBlock returns the value of the "last_indexed_block" field in the mutation.

func (*LinkedAddressMutation) LastIndexedBlockCleared

func (m *LinkedAddressMutation) LastIndexedBlockCleared() bool

LastIndexedBlockCleared returns if the "last_indexed_block" field was cleared in this mutation.

func (*LinkedAddressMutation) Metadata

func (m *LinkedAddressMutation) Metadata() (r map[string]interface{}, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*LinkedAddressMutation) MetadataCleared

func (m *LinkedAddressMutation) MetadataCleared() bool

MetadataCleared returns if the "metadata" field was cleared in this mutation.

func (*LinkedAddressMutation) OldAccountIdentifier

func (m *LinkedAddressMutation) OldAccountIdentifier(ctx context.Context) (v string, err error)

OldAccountIdentifier returns the old "account_identifier" field's value of the LinkedAddress entity. If the LinkedAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LinkedAddressMutation) OldAccountName

func (m *LinkedAddressMutation) OldAccountName(ctx context.Context) (v string, err error)

OldAccountName returns the old "account_name" field's value of the LinkedAddress entity. If the LinkedAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LinkedAddressMutation) OldAddress

func (m *LinkedAddressMutation) OldAddress(ctx context.Context) (v string, err error)

OldAddress returns the old "address" field's value of the LinkedAddress entity. If the LinkedAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LinkedAddressMutation) OldCreatedAt

func (m *LinkedAddressMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the LinkedAddress entity. If the LinkedAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LinkedAddressMutation) OldField

func (m *LinkedAddressMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*LinkedAddressMutation) OldInstitution

func (m *LinkedAddressMutation) OldInstitution(ctx context.Context) (v string, err error)

OldInstitution returns the old "institution" field's value of the LinkedAddress entity. If the LinkedAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LinkedAddressMutation) OldLastIndexedBlock

func (m *LinkedAddressMutation) OldLastIndexedBlock(ctx context.Context) (v int64, err error)

OldLastIndexedBlock returns the old "last_indexed_block" field's value of the LinkedAddress entity. If the LinkedAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LinkedAddressMutation) OldMetadata

func (m *LinkedAddressMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error)

OldMetadata returns the old "metadata" field's value of the LinkedAddress entity. If the LinkedAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LinkedAddressMutation) OldOwnerAddress

func (m *LinkedAddressMutation) OldOwnerAddress(ctx context.Context) (v string, err error)

OldOwnerAddress returns the old "owner_address" field's value of the LinkedAddress entity. If the LinkedAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LinkedAddressMutation) OldSalt

func (m *LinkedAddressMutation) OldSalt(ctx context.Context) (v []byte, err error)

OldSalt returns the old "salt" field's value of the LinkedAddress entity. If the LinkedAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LinkedAddressMutation) OldTxHash

func (m *LinkedAddressMutation) OldTxHash(ctx context.Context) (v string, err error)

OldTxHash returns the old "tx_hash" field's value of the LinkedAddress entity. If the LinkedAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LinkedAddressMutation) OldUpdatedAt

func (m *LinkedAddressMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the LinkedAddress entity. If the LinkedAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LinkedAddressMutation) Op

func (m *LinkedAddressMutation) Op() Op

Op returns the operation name.

func (*LinkedAddressMutation) OwnerAddress

func (m *LinkedAddressMutation) OwnerAddress() (r string, exists bool)

OwnerAddress returns the value of the "owner_address" field in the mutation.

func (*LinkedAddressMutation) PaymentOrdersCleared

func (m *LinkedAddressMutation) PaymentOrdersCleared() bool

PaymentOrdersCleared reports if the "payment_orders" edge to the PaymentOrder entity was cleared.

func (*LinkedAddressMutation) PaymentOrdersIDs

func (m *LinkedAddressMutation) PaymentOrdersIDs() (ids []uuid.UUID)

PaymentOrdersIDs returns the "payment_orders" edge IDs in the mutation.

func (*LinkedAddressMutation) RemovePaymentOrderIDs

func (m *LinkedAddressMutation) RemovePaymentOrderIDs(ids ...uuid.UUID)

RemovePaymentOrderIDs removes the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*LinkedAddressMutation) RemovedEdges

func (m *LinkedAddressMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*LinkedAddressMutation) RemovedIDs

func (m *LinkedAddressMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*LinkedAddressMutation) RemovedPaymentOrdersIDs

func (m *LinkedAddressMutation) RemovedPaymentOrdersIDs() (ids []uuid.UUID)

RemovedPaymentOrders returns the removed IDs of the "payment_orders" edge to the PaymentOrder entity.

func (*LinkedAddressMutation) ResetAccountIdentifier

func (m *LinkedAddressMutation) ResetAccountIdentifier()

ResetAccountIdentifier resets all changes to the "account_identifier" field.

func (*LinkedAddressMutation) ResetAccountName

func (m *LinkedAddressMutation) ResetAccountName()

ResetAccountName resets all changes to the "account_name" field.

func (*LinkedAddressMutation) ResetAddress

func (m *LinkedAddressMutation) ResetAddress()

ResetAddress resets all changes to the "address" field.

func (*LinkedAddressMutation) ResetCreatedAt

func (m *LinkedAddressMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*LinkedAddressMutation) ResetEdge

func (m *LinkedAddressMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*LinkedAddressMutation) ResetField

func (m *LinkedAddressMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*LinkedAddressMutation) ResetInstitution

func (m *LinkedAddressMutation) ResetInstitution()

ResetInstitution resets all changes to the "institution" field.

func (*LinkedAddressMutation) ResetLastIndexedBlock

func (m *LinkedAddressMutation) ResetLastIndexedBlock()

ResetLastIndexedBlock resets all changes to the "last_indexed_block" field.

func (*LinkedAddressMutation) ResetMetadata

func (m *LinkedAddressMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*LinkedAddressMutation) ResetOwnerAddress

func (m *LinkedAddressMutation) ResetOwnerAddress()

ResetOwnerAddress resets all changes to the "owner_address" field.

func (*LinkedAddressMutation) ResetPaymentOrders

func (m *LinkedAddressMutation) ResetPaymentOrders()

ResetPaymentOrders resets all changes to the "payment_orders" edge.

func (*LinkedAddressMutation) ResetSalt

func (m *LinkedAddressMutation) ResetSalt()

ResetSalt resets all changes to the "salt" field.

func (*LinkedAddressMutation) ResetTxHash

func (m *LinkedAddressMutation) ResetTxHash()

ResetTxHash resets all changes to the "tx_hash" field.

func (*LinkedAddressMutation) ResetUpdatedAt

func (m *LinkedAddressMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*LinkedAddressMutation) Salt

func (m *LinkedAddressMutation) Salt() (r []byte, exists bool)

Salt returns the value of the "salt" field in the mutation.

func (*LinkedAddressMutation) SaltCleared

func (m *LinkedAddressMutation) SaltCleared() bool

SaltCleared returns if the "salt" field was cleared in this mutation.

func (*LinkedAddressMutation) SetAccountIdentifier

func (m *LinkedAddressMutation) SetAccountIdentifier(s string)

SetAccountIdentifier sets the "account_identifier" field.

func (*LinkedAddressMutation) SetAccountName

func (m *LinkedAddressMutation) SetAccountName(s string)

SetAccountName sets the "account_name" field.

func (*LinkedAddressMutation) SetAddress

func (m *LinkedAddressMutation) SetAddress(s string)

SetAddress sets the "address" field.

func (*LinkedAddressMutation) SetCreatedAt

func (m *LinkedAddressMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*LinkedAddressMutation) SetField

func (m *LinkedAddressMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*LinkedAddressMutation) SetInstitution

func (m *LinkedAddressMutation) SetInstitution(s string)

SetInstitution sets the "institution" field.

func (*LinkedAddressMutation) SetLastIndexedBlock

func (m *LinkedAddressMutation) SetLastIndexedBlock(i int64)

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*LinkedAddressMutation) SetMetadata

func (m *LinkedAddressMutation) SetMetadata(value map[string]interface{})

SetMetadata sets the "metadata" field.

func (*LinkedAddressMutation) SetOp

func (m *LinkedAddressMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*LinkedAddressMutation) SetOwnerAddress

func (m *LinkedAddressMutation) SetOwnerAddress(s string)

SetOwnerAddress sets the "owner_address" field.

func (*LinkedAddressMutation) SetSalt

func (m *LinkedAddressMutation) SetSalt(b []byte)

SetSalt sets the "salt" field.

func (*LinkedAddressMutation) SetTxHash

func (m *LinkedAddressMutation) SetTxHash(s string)

SetTxHash sets the "tx_hash" field.

func (*LinkedAddressMutation) SetUpdatedAt

func (m *LinkedAddressMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (LinkedAddressMutation) Tx

func (m LinkedAddressMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*LinkedAddressMutation) TxHash

func (m *LinkedAddressMutation) TxHash() (r string, exists bool)

TxHash returns the value of the "tx_hash" field in the mutation.

func (*LinkedAddressMutation) TxHashCleared

func (m *LinkedAddressMutation) TxHashCleared() bool

TxHashCleared returns if the "tx_hash" field was cleared in this mutation.

func (*LinkedAddressMutation) Type

func (m *LinkedAddressMutation) Type() string

Type returns the node type of this mutation (LinkedAddress).

func (*LinkedAddressMutation) UpdatedAt

func (m *LinkedAddressMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*LinkedAddressMutation) Where

Where appends a list predicates to the LinkedAddressMutation builder.

func (*LinkedAddressMutation) WhereP

func (m *LinkedAddressMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the LinkedAddressMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type LinkedAddressQuery

type LinkedAddressQuery struct {
	// contains filtered or unexported fields
}

LinkedAddressQuery is the builder for querying LinkedAddress entities.

func (*LinkedAddressQuery) Aggregate

func (laq *LinkedAddressQuery) Aggregate(fns ...AggregateFunc) *LinkedAddressSelect

Aggregate returns a LinkedAddressSelect configured with the given aggregations.

func (*LinkedAddressQuery) All

All executes the query and returns a list of LinkedAddresses.

func (*LinkedAddressQuery) AllX

func (laq *LinkedAddressQuery) AllX(ctx context.Context) []*LinkedAddress

AllX is like All, but panics if an error occurs.

func (*LinkedAddressQuery) Clone

func (laq *LinkedAddressQuery) Clone() *LinkedAddressQuery

Clone returns a duplicate of the LinkedAddressQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*LinkedAddressQuery) Count

func (laq *LinkedAddressQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*LinkedAddressQuery) CountX

func (laq *LinkedAddressQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*LinkedAddressQuery) Exist

func (laq *LinkedAddressQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*LinkedAddressQuery) ExistX

func (laq *LinkedAddressQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*LinkedAddressQuery) First

First returns the first LinkedAddress entity from the query. Returns a *NotFoundError when no LinkedAddress was found.

func (*LinkedAddressQuery) FirstID

func (laq *LinkedAddressQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first LinkedAddress ID from the query. Returns a *NotFoundError when no LinkedAddress ID was found.

func (*LinkedAddressQuery) FirstIDX

func (laq *LinkedAddressQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*LinkedAddressQuery) FirstX

func (laq *LinkedAddressQuery) FirstX(ctx context.Context) *LinkedAddress

FirstX is like First, but panics if an error occurs.

func (*LinkedAddressQuery) GroupBy

func (laq *LinkedAddressQuery) GroupBy(field string, fields ...string) *LinkedAddressGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.LinkedAddress.Query().
	GroupBy(linkedaddress.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*LinkedAddressQuery) IDs

func (laq *LinkedAddressQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of LinkedAddress IDs.

func (*LinkedAddressQuery) IDsX

func (laq *LinkedAddressQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*LinkedAddressQuery) Limit

func (laq *LinkedAddressQuery) Limit(limit int) *LinkedAddressQuery

Limit the number of records to be returned by this query.

func (*LinkedAddressQuery) Offset

func (laq *LinkedAddressQuery) Offset(offset int) *LinkedAddressQuery

Offset to start from.

func (*LinkedAddressQuery) Only

Only returns a single LinkedAddress entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one LinkedAddress entity is found. Returns a *NotFoundError when no LinkedAddress entities are found.

func (*LinkedAddressQuery) OnlyID

func (laq *LinkedAddressQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only LinkedAddress ID in the query. Returns a *NotSingularError when more than one LinkedAddress ID is found. Returns a *NotFoundError when no entities are found.

func (*LinkedAddressQuery) OnlyIDX

func (laq *LinkedAddressQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*LinkedAddressQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*LinkedAddressQuery) Order

Order specifies how the records should be ordered.

func (*LinkedAddressQuery) QueryPaymentOrders

func (laq *LinkedAddressQuery) QueryPaymentOrders() *PaymentOrderQuery

QueryPaymentOrders chains the current query on the "payment_orders" edge.

func (*LinkedAddressQuery) Select

func (laq *LinkedAddressQuery) Select(fields ...string) *LinkedAddressSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.LinkedAddress.Query().
	Select(linkedaddress.FieldCreatedAt).
	Scan(ctx, &v)

func (*LinkedAddressQuery) Unique

func (laq *LinkedAddressQuery) Unique(unique bool) *LinkedAddressQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*LinkedAddressQuery) Where

Where adds a new predicate for the LinkedAddressQuery builder.

func (*LinkedAddressQuery) WithPaymentOrders

func (laq *LinkedAddressQuery) WithPaymentOrders(opts ...func(*PaymentOrderQuery)) *LinkedAddressQuery

WithPaymentOrders tells the query-builder to eager-load the nodes that are connected to the "payment_orders" edge. The optional arguments are used to configure the query builder of the edge.

type LinkedAddressSelect

type LinkedAddressSelect struct {
	*LinkedAddressQuery
	// contains filtered or unexported fields
}

LinkedAddressSelect is the builder for selecting fields of LinkedAddress entities.

func (*LinkedAddressSelect) Aggregate

func (las *LinkedAddressSelect) Aggregate(fns ...AggregateFunc) *LinkedAddressSelect

Aggregate adds the given aggregation functions to the selector query.

func (*LinkedAddressSelect) Bool

func (s *LinkedAddressSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*LinkedAddressSelect) BoolX

func (s *LinkedAddressSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*LinkedAddressSelect) Bools

func (s *LinkedAddressSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*LinkedAddressSelect) BoolsX

func (s *LinkedAddressSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*LinkedAddressSelect) Float64

func (s *LinkedAddressSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*LinkedAddressSelect) Float64X

func (s *LinkedAddressSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*LinkedAddressSelect) Float64s

func (s *LinkedAddressSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*LinkedAddressSelect) Float64sX

func (s *LinkedAddressSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*LinkedAddressSelect) Int

func (s *LinkedAddressSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*LinkedAddressSelect) IntX

func (s *LinkedAddressSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*LinkedAddressSelect) Ints

func (s *LinkedAddressSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*LinkedAddressSelect) IntsX

func (s *LinkedAddressSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*LinkedAddressSelect) Scan

func (las *LinkedAddressSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*LinkedAddressSelect) ScanX

func (s *LinkedAddressSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*LinkedAddressSelect) String

func (s *LinkedAddressSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*LinkedAddressSelect) StringX

func (s *LinkedAddressSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*LinkedAddressSelect) Strings

func (s *LinkedAddressSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*LinkedAddressSelect) StringsX

func (s *LinkedAddressSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type LinkedAddressUpdate

type LinkedAddressUpdate struct {
	// contains filtered or unexported fields
}

LinkedAddressUpdate is the builder for updating LinkedAddress entities.

func (*LinkedAddressUpdate) AddLastIndexedBlock

func (lau *LinkedAddressUpdate) AddLastIndexedBlock(i int64) *LinkedAddressUpdate

AddLastIndexedBlock adds i to the "last_indexed_block" field.

func (*LinkedAddressUpdate) AddPaymentOrderIDs

func (lau *LinkedAddressUpdate) AddPaymentOrderIDs(ids ...uuid.UUID) *LinkedAddressUpdate

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*LinkedAddressUpdate) AddPaymentOrders

func (lau *LinkedAddressUpdate) AddPaymentOrders(p ...*PaymentOrder) *LinkedAddressUpdate

AddPaymentOrders adds the "payment_orders" edges to the PaymentOrder entity.

func (*LinkedAddressUpdate) ClearLastIndexedBlock

func (lau *LinkedAddressUpdate) ClearLastIndexedBlock() *LinkedAddressUpdate

ClearLastIndexedBlock clears the value of the "last_indexed_block" field.

func (*LinkedAddressUpdate) ClearMetadata

func (lau *LinkedAddressUpdate) ClearMetadata() *LinkedAddressUpdate

ClearMetadata clears the value of the "metadata" field.

func (*LinkedAddressUpdate) ClearPaymentOrders

func (lau *LinkedAddressUpdate) ClearPaymentOrders() *LinkedAddressUpdate

ClearPaymentOrders clears all "payment_orders" edges to the PaymentOrder entity.

func (*LinkedAddressUpdate) ClearSalt

func (lau *LinkedAddressUpdate) ClearSalt() *LinkedAddressUpdate

ClearSalt clears the value of the "salt" field.

func (*LinkedAddressUpdate) ClearTxHash

func (lau *LinkedAddressUpdate) ClearTxHash() *LinkedAddressUpdate

ClearTxHash clears the value of the "tx_hash" field.

func (*LinkedAddressUpdate) Exec

func (lau *LinkedAddressUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*LinkedAddressUpdate) ExecX

func (lau *LinkedAddressUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LinkedAddressUpdate) Mutation

func (lau *LinkedAddressUpdate) Mutation() *LinkedAddressMutation

Mutation returns the LinkedAddressMutation object of the builder.

func (*LinkedAddressUpdate) RemovePaymentOrderIDs

func (lau *LinkedAddressUpdate) RemovePaymentOrderIDs(ids ...uuid.UUID) *LinkedAddressUpdate

RemovePaymentOrderIDs removes the "payment_orders" edge to PaymentOrder entities by IDs.

func (*LinkedAddressUpdate) RemovePaymentOrders

func (lau *LinkedAddressUpdate) RemovePaymentOrders(p ...*PaymentOrder) *LinkedAddressUpdate

RemovePaymentOrders removes "payment_orders" edges to PaymentOrder entities.

func (*LinkedAddressUpdate) Save

func (lau *LinkedAddressUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*LinkedAddressUpdate) SaveX

func (lau *LinkedAddressUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*LinkedAddressUpdate) SetAccountIdentifier

func (lau *LinkedAddressUpdate) SetAccountIdentifier(s string) *LinkedAddressUpdate

SetAccountIdentifier sets the "account_identifier" field.

func (*LinkedAddressUpdate) SetAccountName

func (lau *LinkedAddressUpdate) SetAccountName(s string) *LinkedAddressUpdate

SetAccountName sets the "account_name" field.

func (*LinkedAddressUpdate) SetAddress

func (lau *LinkedAddressUpdate) SetAddress(s string) *LinkedAddressUpdate

SetAddress sets the "address" field.

func (*LinkedAddressUpdate) SetInstitution

func (lau *LinkedAddressUpdate) SetInstitution(s string) *LinkedAddressUpdate

SetInstitution sets the "institution" field.

func (*LinkedAddressUpdate) SetLastIndexedBlock

func (lau *LinkedAddressUpdate) SetLastIndexedBlock(i int64) *LinkedAddressUpdate

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*LinkedAddressUpdate) SetMetadata

func (lau *LinkedAddressUpdate) SetMetadata(m map[string]interface{}) *LinkedAddressUpdate

SetMetadata sets the "metadata" field.

func (*LinkedAddressUpdate) SetNillableAccountIdentifier

func (lau *LinkedAddressUpdate) SetNillableAccountIdentifier(s *string) *LinkedAddressUpdate

SetNillableAccountIdentifier sets the "account_identifier" field if the given value is not nil.

func (*LinkedAddressUpdate) SetNillableAccountName

func (lau *LinkedAddressUpdate) SetNillableAccountName(s *string) *LinkedAddressUpdate

SetNillableAccountName sets the "account_name" field if the given value is not nil.

func (*LinkedAddressUpdate) SetNillableAddress

func (lau *LinkedAddressUpdate) SetNillableAddress(s *string) *LinkedAddressUpdate

SetNillableAddress sets the "address" field if the given value is not nil.

func (*LinkedAddressUpdate) SetNillableInstitution

func (lau *LinkedAddressUpdate) SetNillableInstitution(s *string) *LinkedAddressUpdate

SetNillableInstitution sets the "institution" field if the given value is not nil.

func (*LinkedAddressUpdate) SetNillableLastIndexedBlock

func (lau *LinkedAddressUpdate) SetNillableLastIndexedBlock(i *int64) *LinkedAddressUpdate

SetNillableLastIndexedBlock sets the "last_indexed_block" field if the given value is not nil.

func (*LinkedAddressUpdate) SetNillableOwnerAddress

func (lau *LinkedAddressUpdate) SetNillableOwnerAddress(s *string) *LinkedAddressUpdate

SetNillableOwnerAddress sets the "owner_address" field if the given value is not nil.

func (*LinkedAddressUpdate) SetNillableTxHash

func (lau *LinkedAddressUpdate) SetNillableTxHash(s *string) *LinkedAddressUpdate

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*LinkedAddressUpdate) SetOwnerAddress

func (lau *LinkedAddressUpdate) SetOwnerAddress(s string) *LinkedAddressUpdate

SetOwnerAddress sets the "owner_address" field.

func (*LinkedAddressUpdate) SetSalt

func (lau *LinkedAddressUpdate) SetSalt(b []byte) *LinkedAddressUpdate

SetSalt sets the "salt" field.

func (*LinkedAddressUpdate) SetTxHash

func (lau *LinkedAddressUpdate) SetTxHash(s string) *LinkedAddressUpdate

SetTxHash sets the "tx_hash" field.

func (*LinkedAddressUpdate) SetUpdatedAt

func (lau *LinkedAddressUpdate) SetUpdatedAt(t time.Time) *LinkedAddressUpdate

SetUpdatedAt sets the "updated_at" field.

func (*LinkedAddressUpdate) Where

Where appends a list predicates to the LinkedAddressUpdate builder.

type LinkedAddressUpdateOne

type LinkedAddressUpdateOne struct {
	// contains filtered or unexported fields
}

LinkedAddressUpdateOne is the builder for updating a single LinkedAddress entity.

func (*LinkedAddressUpdateOne) AddLastIndexedBlock

func (lauo *LinkedAddressUpdateOne) AddLastIndexedBlock(i int64) *LinkedAddressUpdateOne

AddLastIndexedBlock adds i to the "last_indexed_block" field.

func (*LinkedAddressUpdateOne) AddPaymentOrderIDs

func (lauo *LinkedAddressUpdateOne) AddPaymentOrderIDs(ids ...uuid.UUID) *LinkedAddressUpdateOne

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*LinkedAddressUpdateOne) AddPaymentOrders

func (lauo *LinkedAddressUpdateOne) AddPaymentOrders(p ...*PaymentOrder) *LinkedAddressUpdateOne

AddPaymentOrders adds the "payment_orders" edges to the PaymentOrder entity.

func (*LinkedAddressUpdateOne) ClearLastIndexedBlock

func (lauo *LinkedAddressUpdateOne) ClearLastIndexedBlock() *LinkedAddressUpdateOne

ClearLastIndexedBlock clears the value of the "last_indexed_block" field.

func (*LinkedAddressUpdateOne) ClearMetadata

func (lauo *LinkedAddressUpdateOne) ClearMetadata() *LinkedAddressUpdateOne

ClearMetadata clears the value of the "metadata" field.

func (*LinkedAddressUpdateOne) ClearPaymentOrders

func (lauo *LinkedAddressUpdateOne) ClearPaymentOrders() *LinkedAddressUpdateOne

ClearPaymentOrders clears all "payment_orders" edges to the PaymentOrder entity.

func (*LinkedAddressUpdateOne) ClearSalt

ClearSalt clears the value of the "salt" field.

func (*LinkedAddressUpdateOne) ClearTxHash

func (lauo *LinkedAddressUpdateOne) ClearTxHash() *LinkedAddressUpdateOne

ClearTxHash clears the value of the "tx_hash" field.

func (*LinkedAddressUpdateOne) Exec

func (lauo *LinkedAddressUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*LinkedAddressUpdateOne) ExecX

func (lauo *LinkedAddressUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LinkedAddressUpdateOne) Mutation

Mutation returns the LinkedAddressMutation object of the builder.

func (*LinkedAddressUpdateOne) RemovePaymentOrderIDs

func (lauo *LinkedAddressUpdateOne) RemovePaymentOrderIDs(ids ...uuid.UUID) *LinkedAddressUpdateOne

RemovePaymentOrderIDs removes the "payment_orders" edge to PaymentOrder entities by IDs.

func (*LinkedAddressUpdateOne) RemovePaymentOrders

func (lauo *LinkedAddressUpdateOne) RemovePaymentOrders(p ...*PaymentOrder) *LinkedAddressUpdateOne

RemovePaymentOrders removes "payment_orders" edges to PaymentOrder entities.

func (*LinkedAddressUpdateOne) Save

Save executes the query and returns the updated LinkedAddress entity.

func (*LinkedAddressUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*LinkedAddressUpdateOne) Select

func (lauo *LinkedAddressUpdateOne) Select(field string, fields ...string) *LinkedAddressUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*LinkedAddressUpdateOne) SetAccountIdentifier

func (lauo *LinkedAddressUpdateOne) SetAccountIdentifier(s string) *LinkedAddressUpdateOne

SetAccountIdentifier sets the "account_identifier" field.

func (*LinkedAddressUpdateOne) SetAccountName

func (lauo *LinkedAddressUpdateOne) SetAccountName(s string) *LinkedAddressUpdateOne

SetAccountName sets the "account_name" field.

func (*LinkedAddressUpdateOne) SetAddress

SetAddress sets the "address" field.

func (*LinkedAddressUpdateOne) SetInstitution

func (lauo *LinkedAddressUpdateOne) SetInstitution(s string) *LinkedAddressUpdateOne

SetInstitution sets the "institution" field.

func (*LinkedAddressUpdateOne) SetLastIndexedBlock

func (lauo *LinkedAddressUpdateOne) SetLastIndexedBlock(i int64) *LinkedAddressUpdateOne

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*LinkedAddressUpdateOne) SetMetadata

func (lauo *LinkedAddressUpdateOne) SetMetadata(m map[string]interface{}) *LinkedAddressUpdateOne

SetMetadata sets the "metadata" field.

func (*LinkedAddressUpdateOne) SetNillableAccountIdentifier

func (lauo *LinkedAddressUpdateOne) SetNillableAccountIdentifier(s *string) *LinkedAddressUpdateOne

SetNillableAccountIdentifier sets the "account_identifier" field if the given value is not nil.

func (*LinkedAddressUpdateOne) SetNillableAccountName

func (lauo *LinkedAddressUpdateOne) SetNillableAccountName(s *string) *LinkedAddressUpdateOne

SetNillableAccountName sets the "account_name" field if the given value is not nil.

func (*LinkedAddressUpdateOne) SetNillableAddress

func (lauo *LinkedAddressUpdateOne) SetNillableAddress(s *string) *LinkedAddressUpdateOne

SetNillableAddress sets the "address" field if the given value is not nil.

func (*LinkedAddressUpdateOne) SetNillableInstitution

func (lauo *LinkedAddressUpdateOne) SetNillableInstitution(s *string) *LinkedAddressUpdateOne

SetNillableInstitution sets the "institution" field if the given value is not nil.

func (*LinkedAddressUpdateOne) SetNillableLastIndexedBlock

func (lauo *LinkedAddressUpdateOne) SetNillableLastIndexedBlock(i *int64) *LinkedAddressUpdateOne

SetNillableLastIndexedBlock sets the "last_indexed_block" field if the given value is not nil.

func (*LinkedAddressUpdateOne) SetNillableOwnerAddress

func (lauo *LinkedAddressUpdateOne) SetNillableOwnerAddress(s *string) *LinkedAddressUpdateOne

SetNillableOwnerAddress sets the "owner_address" field if the given value is not nil.

func (*LinkedAddressUpdateOne) SetNillableTxHash

func (lauo *LinkedAddressUpdateOne) SetNillableTxHash(s *string) *LinkedAddressUpdateOne

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*LinkedAddressUpdateOne) SetOwnerAddress

func (lauo *LinkedAddressUpdateOne) SetOwnerAddress(s string) *LinkedAddressUpdateOne

SetOwnerAddress sets the "owner_address" field.

func (*LinkedAddressUpdateOne) SetSalt

SetSalt sets the "salt" field.

func (*LinkedAddressUpdateOne) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*LinkedAddressUpdateOne) SetUpdatedAt

func (lauo *LinkedAddressUpdateOne) SetUpdatedAt(t time.Time) *LinkedAddressUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*LinkedAddressUpdateOne) Where

Where appends a list predicates to the LinkedAddressUpdate builder.

type LinkedAddressUpsert

type LinkedAddressUpsert struct {
	*sql.UpdateSet
}

LinkedAddressUpsert is the "OnConflict" setter.

func (*LinkedAddressUpsert) AddLastIndexedBlock

func (u *LinkedAddressUpsert) AddLastIndexedBlock(v int64) *LinkedAddressUpsert

AddLastIndexedBlock adds v to the "last_indexed_block" field.

func (*LinkedAddressUpsert) ClearLastIndexedBlock

func (u *LinkedAddressUpsert) ClearLastIndexedBlock() *LinkedAddressUpsert

ClearLastIndexedBlock clears the value of the "last_indexed_block" field.

func (*LinkedAddressUpsert) ClearMetadata

func (u *LinkedAddressUpsert) ClearMetadata() *LinkedAddressUpsert

ClearMetadata clears the value of the "metadata" field.

func (*LinkedAddressUpsert) ClearSalt

func (u *LinkedAddressUpsert) ClearSalt() *LinkedAddressUpsert

ClearSalt clears the value of the "salt" field.

func (*LinkedAddressUpsert) ClearTxHash

func (u *LinkedAddressUpsert) ClearTxHash() *LinkedAddressUpsert

ClearTxHash clears the value of the "tx_hash" field.

func (*LinkedAddressUpsert) SetAccountIdentifier

func (u *LinkedAddressUpsert) SetAccountIdentifier(v string) *LinkedAddressUpsert

SetAccountIdentifier sets the "account_identifier" field.

func (*LinkedAddressUpsert) SetAccountName

func (u *LinkedAddressUpsert) SetAccountName(v string) *LinkedAddressUpsert

SetAccountName sets the "account_name" field.

func (*LinkedAddressUpsert) SetAddress

SetAddress sets the "address" field.

func (*LinkedAddressUpsert) SetInstitution

func (u *LinkedAddressUpsert) SetInstitution(v string) *LinkedAddressUpsert

SetInstitution sets the "institution" field.

func (*LinkedAddressUpsert) SetLastIndexedBlock

func (u *LinkedAddressUpsert) SetLastIndexedBlock(v int64) *LinkedAddressUpsert

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*LinkedAddressUpsert) SetMetadata

func (u *LinkedAddressUpsert) SetMetadata(v map[string]interface{}) *LinkedAddressUpsert

SetMetadata sets the "metadata" field.

func (*LinkedAddressUpsert) SetOwnerAddress

func (u *LinkedAddressUpsert) SetOwnerAddress(v string) *LinkedAddressUpsert

SetOwnerAddress sets the "owner_address" field.

func (*LinkedAddressUpsert) SetSalt

func (u *LinkedAddressUpsert) SetSalt(v []byte) *LinkedAddressUpsert

SetSalt sets the "salt" field.

func (*LinkedAddressUpsert) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*LinkedAddressUpsert) SetUpdatedAt

func (u *LinkedAddressUpsert) SetUpdatedAt(v time.Time) *LinkedAddressUpsert

SetUpdatedAt sets the "updated_at" field.

func (*LinkedAddressUpsert) UpdateAccountIdentifier

func (u *LinkedAddressUpsert) UpdateAccountIdentifier() *LinkedAddressUpsert

UpdateAccountIdentifier sets the "account_identifier" field to the value that was provided on create.

func (*LinkedAddressUpsert) UpdateAccountName

func (u *LinkedAddressUpsert) UpdateAccountName() *LinkedAddressUpsert

UpdateAccountName sets the "account_name" field to the value that was provided on create.

func (*LinkedAddressUpsert) UpdateAddress

func (u *LinkedAddressUpsert) UpdateAddress() *LinkedAddressUpsert

UpdateAddress sets the "address" field to the value that was provided on create.

func (*LinkedAddressUpsert) UpdateInstitution

func (u *LinkedAddressUpsert) UpdateInstitution() *LinkedAddressUpsert

UpdateInstitution sets the "institution" field to the value that was provided on create.

func (*LinkedAddressUpsert) UpdateLastIndexedBlock

func (u *LinkedAddressUpsert) UpdateLastIndexedBlock() *LinkedAddressUpsert

UpdateLastIndexedBlock sets the "last_indexed_block" field to the value that was provided on create.

func (*LinkedAddressUpsert) UpdateMetadata

func (u *LinkedAddressUpsert) UpdateMetadata() *LinkedAddressUpsert

UpdateMetadata sets the "metadata" field to the value that was provided on create.

func (*LinkedAddressUpsert) UpdateOwnerAddress

func (u *LinkedAddressUpsert) UpdateOwnerAddress() *LinkedAddressUpsert

UpdateOwnerAddress sets the "owner_address" field to the value that was provided on create.

func (*LinkedAddressUpsert) UpdateSalt

func (u *LinkedAddressUpsert) UpdateSalt() *LinkedAddressUpsert

UpdateSalt sets the "salt" field to the value that was provided on create.

func (*LinkedAddressUpsert) UpdateTxHash

func (u *LinkedAddressUpsert) UpdateTxHash() *LinkedAddressUpsert

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

func (*LinkedAddressUpsert) UpdateUpdatedAt

func (u *LinkedAddressUpsert) UpdateUpdatedAt() *LinkedAddressUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type LinkedAddressUpsertBulk

type LinkedAddressUpsertBulk struct {
	// contains filtered or unexported fields
}

LinkedAddressUpsertBulk is the builder for "upsert"-ing a bulk of LinkedAddress nodes.

func (*LinkedAddressUpsertBulk) AddLastIndexedBlock

func (u *LinkedAddressUpsertBulk) AddLastIndexedBlock(v int64) *LinkedAddressUpsertBulk

AddLastIndexedBlock adds v to the "last_indexed_block" field.

func (*LinkedAddressUpsertBulk) ClearLastIndexedBlock

func (u *LinkedAddressUpsertBulk) ClearLastIndexedBlock() *LinkedAddressUpsertBulk

ClearLastIndexedBlock clears the value of the "last_indexed_block" field.

func (*LinkedAddressUpsertBulk) ClearMetadata

ClearMetadata clears the value of the "metadata" field.

func (*LinkedAddressUpsertBulk) ClearSalt

ClearSalt clears the value of the "salt" field.

func (*LinkedAddressUpsertBulk) ClearTxHash

ClearTxHash clears the value of the "tx_hash" field.

func (*LinkedAddressUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*LinkedAddressUpsertBulk) Exec

Exec executes the query.

func (*LinkedAddressUpsertBulk) ExecX

func (u *LinkedAddressUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LinkedAddressUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.LinkedAddress.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*LinkedAddressUpsertBulk) SetAccountIdentifier

func (u *LinkedAddressUpsertBulk) SetAccountIdentifier(v string) *LinkedAddressUpsertBulk

SetAccountIdentifier sets the "account_identifier" field.

func (*LinkedAddressUpsertBulk) SetAccountName

SetAccountName sets the "account_name" field.

func (*LinkedAddressUpsertBulk) SetAddress

SetAddress sets the "address" field.

func (*LinkedAddressUpsertBulk) SetInstitution

SetInstitution sets the "institution" field.

func (*LinkedAddressUpsertBulk) SetLastIndexedBlock

func (u *LinkedAddressUpsertBulk) SetLastIndexedBlock(v int64) *LinkedAddressUpsertBulk

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*LinkedAddressUpsertBulk) SetMetadata

func (u *LinkedAddressUpsertBulk) SetMetadata(v map[string]interface{}) *LinkedAddressUpsertBulk

SetMetadata sets the "metadata" field.

func (*LinkedAddressUpsertBulk) SetOwnerAddress

SetOwnerAddress sets the "owner_address" field.

func (*LinkedAddressUpsertBulk) SetSalt

SetSalt sets the "salt" field.

func (*LinkedAddressUpsertBulk) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*LinkedAddressUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LinkedAddressUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the LinkedAddressCreateBulk.OnConflict documentation for more info.

func (*LinkedAddressUpsertBulk) UpdateAccountIdentifier

func (u *LinkedAddressUpsertBulk) UpdateAccountIdentifier() *LinkedAddressUpsertBulk

UpdateAccountIdentifier sets the "account_identifier" field to the value that was provided on create.

func (*LinkedAddressUpsertBulk) UpdateAccountName

func (u *LinkedAddressUpsertBulk) UpdateAccountName() *LinkedAddressUpsertBulk

UpdateAccountName sets the "account_name" field to the value that was provided on create.

func (*LinkedAddressUpsertBulk) UpdateAddress

UpdateAddress sets the "address" field to the value that was provided on create.

func (*LinkedAddressUpsertBulk) UpdateInstitution

func (u *LinkedAddressUpsertBulk) UpdateInstitution() *LinkedAddressUpsertBulk

UpdateInstitution sets the "institution" field to the value that was provided on create.

func (*LinkedAddressUpsertBulk) UpdateLastIndexedBlock

func (u *LinkedAddressUpsertBulk) UpdateLastIndexedBlock() *LinkedAddressUpsertBulk

UpdateLastIndexedBlock sets the "last_indexed_block" field to the value that was provided on create.

func (*LinkedAddressUpsertBulk) UpdateMetadata

func (u *LinkedAddressUpsertBulk) UpdateMetadata() *LinkedAddressUpsertBulk

UpdateMetadata sets the "metadata" field to the value that was provided on create.

func (*LinkedAddressUpsertBulk) UpdateNewValues

func (u *LinkedAddressUpsertBulk) UpdateNewValues() *LinkedAddressUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.LinkedAddress.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*LinkedAddressUpsertBulk) UpdateOwnerAddress

func (u *LinkedAddressUpsertBulk) UpdateOwnerAddress() *LinkedAddressUpsertBulk

UpdateOwnerAddress sets the "owner_address" field to the value that was provided on create.

func (*LinkedAddressUpsertBulk) UpdateSalt

UpdateSalt sets the "salt" field to the value that was provided on create.

func (*LinkedAddressUpsertBulk) UpdateTxHash

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

func (*LinkedAddressUpsertBulk) UpdateUpdatedAt

func (u *LinkedAddressUpsertBulk) UpdateUpdatedAt() *LinkedAddressUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type LinkedAddressUpsertOne

type LinkedAddressUpsertOne struct {
	// contains filtered or unexported fields
}

LinkedAddressUpsertOne is the builder for "upsert"-ing

one LinkedAddress node.

func (*LinkedAddressUpsertOne) AddLastIndexedBlock

func (u *LinkedAddressUpsertOne) AddLastIndexedBlock(v int64) *LinkedAddressUpsertOne

AddLastIndexedBlock adds v to the "last_indexed_block" field.

func (*LinkedAddressUpsertOne) ClearLastIndexedBlock

func (u *LinkedAddressUpsertOne) ClearLastIndexedBlock() *LinkedAddressUpsertOne

ClearLastIndexedBlock clears the value of the "last_indexed_block" field.

func (*LinkedAddressUpsertOne) ClearMetadata

func (u *LinkedAddressUpsertOne) ClearMetadata() *LinkedAddressUpsertOne

ClearMetadata clears the value of the "metadata" field.

func (*LinkedAddressUpsertOne) ClearSalt

ClearSalt clears the value of the "salt" field.

func (*LinkedAddressUpsertOne) ClearTxHash

ClearTxHash clears the value of the "tx_hash" field.

func (*LinkedAddressUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*LinkedAddressUpsertOne) Exec

Exec executes the query.

func (*LinkedAddressUpsertOne) ExecX

func (u *LinkedAddressUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LinkedAddressUpsertOne) ID

func (u *LinkedAddressUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*LinkedAddressUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*LinkedAddressUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.LinkedAddress.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*LinkedAddressUpsertOne) SetAccountIdentifier

func (u *LinkedAddressUpsertOne) SetAccountIdentifier(v string) *LinkedAddressUpsertOne

SetAccountIdentifier sets the "account_identifier" field.

func (*LinkedAddressUpsertOne) SetAccountName

SetAccountName sets the "account_name" field.

func (*LinkedAddressUpsertOne) SetAddress

SetAddress sets the "address" field.

func (*LinkedAddressUpsertOne) SetInstitution

SetInstitution sets the "institution" field.

func (*LinkedAddressUpsertOne) SetLastIndexedBlock

func (u *LinkedAddressUpsertOne) SetLastIndexedBlock(v int64) *LinkedAddressUpsertOne

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*LinkedAddressUpsertOne) SetMetadata

func (u *LinkedAddressUpsertOne) SetMetadata(v map[string]interface{}) *LinkedAddressUpsertOne

SetMetadata sets the "metadata" field.

func (*LinkedAddressUpsertOne) SetOwnerAddress

func (u *LinkedAddressUpsertOne) SetOwnerAddress(v string) *LinkedAddressUpsertOne

SetOwnerAddress sets the "owner_address" field.

func (*LinkedAddressUpsertOne) SetSalt

SetSalt sets the "salt" field.

func (*LinkedAddressUpsertOne) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*LinkedAddressUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LinkedAddressUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the LinkedAddressCreate.OnConflict documentation for more info.

func (*LinkedAddressUpsertOne) UpdateAccountIdentifier

func (u *LinkedAddressUpsertOne) UpdateAccountIdentifier() *LinkedAddressUpsertOne

UpdateAccountIdentifier sets the "account_identifier" field to the value that was provided on create.

func (*LinkedAddressUpsertOne) UpdateAccountName

func (u *LinkedAddressUpsertOne) UpdateAccountName() *LinkedAddressUpsertOne

UpdateAccountName sets the "account_name" field to the value that was provided on create.

func (*LinkedAddressUpsertOne) UpdateAddress

func (u *LinkedAddressUpsertOne) UpdateAddress() *LinkedAddressUpsertOne

UpdateAddress sets the "address" field to the value that was provided on create.

func (*LinkedAddressUpsertOne) UpdateInstitution

func (u *LinkedAddressUpsertOne) UpdateInstitution() *LinkedAddressUpsertOne

UpdateInstitution sets the "institution" field to the value that was provided on create.

func (*LinkedAddressUpsertOne) UpdateLastIndexedBlock

func (u *LinkedAddressUpsertOne) UpdateLastIndexedBlock() *LinkedAddressUpsertOne

UpdateLastIndexedBlock sets the "last_indexed_block" field to the value that was provided on create.

func (*LinkedAddressUpsertOne) UpdateMetadata

func (u *LinkedAddressUpsertOne) UpdateMetadata() *LinkedAddressUpsertOne

UpdateMetadata sets the "metadata" field to the value that was provided on create.

func (*LinkedAddressUpsertOne) UpdateNewValues

func (u *LinkedAddressUpsertOne) UpdateNewValues() *LinkedAddressUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.LinkedAddress.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*LinkedAddressUpsertOne) UpdateOwnerAddress

func (u *LinkedAddressUpsertOne) UpdateOwnerAddress() *LinkedAddressUpsertOne

UpdateOwnerAddress sets the "owner_address" field to the value that was provided on create.

func (*LinkedAddressUpsertOne) UpdateSalt

UpdateSalt sets the "salt" field to the value that was provided on create.

func (*LinkedAddressUpsertOne) UpdateTxHash

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

func (*LinkedAddressUpsertOne) UpdateUpdatedAt

func (u *LinkedAddressUpsertOne) UpdateUpdatedAt() *LinkedAddressUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type LinkedAddresses

type LinkedAddresses []*LinkedAddress

LinkedAddresses is a parsable slice of LinkedAddress.

type LockOrderFulfillment

type LockOrderFulfillment struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// TxID holds the value of the "tx_id" field.
	TxID string `json:"tx_id,omitempty"`
	// Psp holds the value of the "psp" field.
	Psp string `json:"psp,omitempty"`
	// ValidationStatus holds the value of the "validation_status" field.
	ValidationStatus lockorderfulfillment.ValidationStatus `json:"validation_status,omitempty"`
	// ValidationError holds the value of the "validation_error" field.
	ValidationError string `json:"validation_error,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the LockOrderFulfillmentQuery when eager-loading is set.
	Edges LockOrderFulfillmentEdges `json:"edges"`
	// contains filtered or unexported fields
}

LockOrderFulfillment is the model entity for the LockOrderFulfillment schema.

func (*LockOrderFulfillment) QueryOrder

func (lof *LockOrderFulfillment) QueryOrder() *LockPaymentOrderQuery

QueryOrder queries the "order" edge of the LockOrderFulfillment entity.

func (*LockOrderFulfillment) String

func (lof *LockOrderFulfillment) String() string

String implements the fmt.Stringer.

func (*LockOrderFulfillment) Unwrap

Unwrap unwraps the LockOrderFulfillment entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*LockOrderFulfillment) Update

Update returns a builder for updating this LockOrderFulfillment. Note that you need to call LockOrderFulfillment.Unwrap() before calling this method if this LockOrderFulfillment was returned from a transaction, and the transaction was committed or rolled back.

func (*LockOrderFulfillment) Value

func (lof *LockOrderFulfillment) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the LockOrderFulfillment. This includes values selected through modifiers, order, etc.

type LockOrderFulfillmentClient

type LockOrderFulfillmentClient struct {
	// contains filtered or unexported fields
}

LockOrderFulfillmentClient is a client for the LockOrderFulfillment schema.

func NewLockOrderFulfillmentClient

func NewLockOrderFulfillmentClient(c config) *LockOrderFulfillmentClient

NewLockOrderFulfillmentClient returns a client for the LockOrderFulfillment from the given config.

func (*LockOrderFulfillmentClient) Create

Create returns a builder for creating a LockOrderFulfillment entity.

func (*LockOrderFulfillmentClient) CreateBulk

CreateBulk returns a builder for creating a bulk of LockOrderFulfillment entities.

func (*LockOrderFulfillmentClient) Delete

Delete returns a delete builder for LockOrderFulfillment.

func (*LockOrderFulfillmentClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*LockOrderFulfillmentClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*LockOrderFulfillmentClient) Get

Get returns a LockOrderFulfillment entity by its id.

func (*LockOrderFulfillmentClient) GetX

GetX is like Get, but panics if an error occurs.

func (*LockOrderFulfillmentClient) Hooks

func (c *LockOrderFulfillmentClient) Hooks() []Hook

Hooks returns the client hooks.

func (*LockOrderFulfillmentClient) Intercept

func (c *LockOrderFulfillmentClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `lockorderfulfillment.Intercept(f(g(h())))`.

func (*LockOrderFulfillmentClient) Interceptors

func (c *LockOrderFulfillmentClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*LockOrderFulfillmentClient) MapCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*LockOrderFulfillmentClient) Query

Query returns a query builder for LockOrderFulfillment.

func (*LockOrderFulfillmentClient) QueryOrder

QueryOrder queries the order edge of a LockOrderFulfillment.

func (*LockOrderFulfillmentClient) Update

Update returns an update builder for LockOrderFulfillment.

func (*LockOrderFulfillmentClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*LockOrderFulfillmentClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*LockOrderFulfillmentClient) Use

func (c *LockOrderFulfillmentClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `lockorderfulfillment.Hooks(f(g(h())))`.

type LockOrderFulfillmentCreate

type LockOrderFulfillmentCreate struct {
	// contains filtered or unexported fields
}

LockOrderFulfillmentCreate is the builder for creating a LockOrderFulfillment entity.

func (*LockOrderFulfillmentCreate) Exec

Exec executes the query.

func (*LockOrderFulfillmentCreate) ExecX

func (lofc *LockOrderFulfillmentCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LockOrderFulfillmentCreate) Mutation

Mutation returns the LockOrderFulfillmentMutation object of the builder.

func (*LockOrderFulfillmentCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.LockOrderFulfillment.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.LockOrderFulfillmentUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*LockOrderFulfillmentCreate) OnConflictColumns

func (lofc *LockOrderFulfillmentCreate) OnConflictColumns(columns ...string) *LockOrderFulfillmentUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.LockOrderFulfillment.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*LockOrderFulfillmentCreate) Save

Save creates the LockOrderFulfillment in the database.

func (*LockOrderFulfillmentCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*LockOrderFulfillmentCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*LockOrderFulfillmentCreate) SetID

SetID sets the "id" field.

func (*LockOrderFulfillmentCreate) SetNillableCreatedAt

func (lofc *LockOrderFulfillmentCreate) SetNillableCreatedAt(t *time.Time) *LockOrderFulfillmentCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*LockOrderFulfillmentCreate) SetNillableID

SetNillableID sets the "id" field if the given value is not nil.

func (*LockOrderFulfillmentCreate) SetNillablePsp

SetNillablePsp sets the "psp" field if the given value is not nil.

func (*LockOrderFulfillmentCreate) SetNillableTxID

SetNillableTxID sets the "tx_id" field if the given value is not nil.

func (*LockOrderFulfillmentCreate) SetNillableUpdatedAt

func (lofc *LockOrderFulfillmentCreate) SetNillableUpdatedAt(t *time.Time) *LockOrderFulfillmentCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*LockOrderFulfillmentCreate) SetNillableValidationError

func (lofc *LockOrderFulfillmentCreate) SetNillableValidationError(s *string) *LockOrderFulfillmentCreate

SetNillableValidationError sets the "validation_error" field if the given value is not nil.

func (*LockOrderFulfillmentCreate) SetNillableValidationStatus

SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.

func (*LockOrderFulfillmentCreate) SetOrder

SetOrder sets the "order" edge to the LockPaymentOrder entity.

func (*LockOrderFulfillmentCreate) SetOrderID

SetOrderID sets the "order" edge to the LockPaymentOrder entity by ID.

func (*LockOrderFulfillmentCreate) SetPsp

SetPsp sets the "psp" field.

func (*LockOrderFulfillmentCreate) SetTxID

SetTxID sets the "tx_id" field.

func (*LockOrderFulfillmentCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LockOrderFulfillmentCreate) SetValidationError

func (lofc *LockOrderFulfillmentCreate) SetValidationError(s string) *LockOrderFulfillmentCreate

SetValidationError sets the "validation_error" field.

func (*LockOrderFulfillmentCreate) SetValidationStatus

SetValidationStatus sets the "validation_status" field.

type LockOrderFulfillmentCreateBulk

type LockOrderFulfillmentCreateBulk struct {
	// contains filtered or unexported fields
}

LockOrderFulfillmentCreateBulk is the builder for creating many LockOrderFulfillment entities in bulk.

func (*LockOrderFulfillmentCreateBulk) Exec

Exec executes the query.

func (*LockOrderFulfillmentCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*LockOrderFulfillmentCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.LockOrderFulfillment.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.LockOrderFulfillmentUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*LockOrderFulfillmentCreateBulk) OnConflictColumns

func (lofcb *LockOrderFulfillmentCreateBulk) OnConflictColumns(columns ...string) *LockOrderFulfillmentUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.LockOrderFulfillment.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*LockOrderFulfillmentCreateBulk) Save

Save creates the LockOrderFulfillment entities in the database.

func (*LockOrderFulfillmentCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type LockOrderFulfillmentDelete

type LockOrderFulfillmentDelete struct {
	// contains filtered or unexported fields
}

LockOrderFulfillmentDelete is the builder for deleting a LockOrderFulfillment entity.

func (*LockOrderFulfillmentDelete) Exec

func (lofd *LockOrderFulfillmentDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*LockOrderFulfillmentDelete) ExecX

func (lofd *LockOrderFulfillmentDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*LockOrderFulfillmentDelete) Where

Where appends a list predicates to the LockOrderFulfillmentDelete builder.

type LockOrderFulfillmentDeleteOne

type LockOrderFulfillmentDeleteOne struct {
	// contains filtered or unexported fields
}

LockOrderFulfillmentDeleteOne is the builder for deleting a single LockOrderFulfillment entity.

func (*LockOrderFulfillmentDeleteOne) Exec

Exec executes the deletion query.

func (*LockOrderFulfillmentDeleteOne) ExecX

func (lofdo *LockOrderFulfillmentDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LockOrderFulfillmentDeleteOne) Where

Where appends a list predicates to the LockOrderFulfillmentDelete builder.

type LockOrderFulfillmentEdges

type LockOrderFulfillmentEdges struct {
	// Order holds the value of the order edge.
	Order *LockPaymentOrder `json:"order,omitempty"`
	// contains filtered or unexported fields
}

LockOrderFulfillmentEdges holds the relations/edges for other nodes in the graph.

func (LockOrderFulfillmentEdges) OrderOrErr

OrderOrErr returns the Order value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type LockOrderFulfillmentGroupBy

type LockOrderFulfillmentGroupBy struct {
	// contains filtered or unexported fields
}

LockOrderFulfillmentGroupBy is the group-by builder for LockOrderFulfillment entities.

func (*LockOrderFulfillmentGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*LockOrderFulfillmentGroupBy) Bool

func (s *LockOrderFulfillmentGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentGroupBy) BoolX

func (s *LockOrderFulfillmentGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*LockOrderFulfillmentGroupBy) Bools

func (s *LockOrderFulfillmentGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentGroupBy) BoolsX

func (s *LockOrderFulfillmentGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*LockOrderFulfillmentGroupBy) Float64

func (s *LockOrderFulfillmentGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentGroupBy) Float64X

func (s *LockOrderFulfillmentGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*LockOrderFulfillmentGroupBy) Float64s

func (s *LockOrderFulfillmentGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentGroupBy) Float64sX

func (s *LockOrderFulfillmentGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*LockOrderFulfillmentGroupBy) Int

func (s *LockOrderFulfillmentGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentGroupBy) IntX

func (s *LockOrderFulfillmentGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*LockOrderFulfillmentGroupBy) Ints

func (s *LockOrderFulfillmentGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentGroupBy) IntsX

func (s *LockOrderFulfillmentGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*LockOrderFulfillmentGroupBy) Scan

func (lofgb *LockOrderFulfillmentGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*LockOrderFulfillmentGroupBy) ScanX

func (s *LockOrderFulfillmentGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*LockOrderFulfillmentGroupBy) String

func (s *LockOrderFulfillmentGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentGroupBy) StringX

func (s *LockOrderFulfillmentGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*LockOrderFulfillmentGroupBy) Strings

func (s *LockOrderFulfillmentGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentGroupBy) StringsX

func (s *LockOrderFulfillmentGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type LockOrderFulfillmentMutation

type LockOrderFulfillmentMutation struct {
	// contains filtered or unexported fields
}

LockOrderFulfillmentMutation represents an operation that mutates the LockOrderFulfillment nodes in the graph.

func (*LockOrderFulfillmentMutation) AddField

func (m *LockOrderFulfillmentMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*LockOrderFulfillmentMutation) AddedEdges

func (m *LockOrderFulfillmentMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*LockOrderFulfillmentMutation) AddedField

func (m *LockOrderFulfillmentMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*LockOrderFulfillmentMutation) AddedFields

func (m *LockOrderFulfillmentMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*LockOrderFulfillmentMutation) AddedIDs

func (m *LockOrderFulfillmentMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*LockOrderFulfillmentMutation) ClearEdge

func (m *LockOrderFulfillmentMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*LockOrderFulfillmentMutation) ClearField

func (m *LockOrderFulfillmentMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*LockOrderFulfillmentMutation) ClearOrder

func (m *LockOrderFulfillmentMutation) ClearOrder()

ClearOrder clears the "order" edge to the LockPaymentOrder entity.

func (*LockOrderFulfillmentMutation) ClearPsp

func (m *LockOrderFulfillmentMutation) ClearPsp()

ClearPsp clears the value of the "psp" field.

func (*LockOrderFulfillmentMutation) ClearTxID

func (m *LockOrderFulfillmentMutation) ClearTxID()

ClearTxID clears the value of the "tx_id" field.

func (*LockOrderFulfillmentMutation) ClearValidationError

func (m *LockOrderFulfillmentMutation) ClearValidationError()

ClearValidationError clears the value of the "validation_error" field.

func (*LockOrderFulfillmentMutation) ClearedEdges

func (m *LockOrderFulfillmentMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*LockOrderFulfillmentMutation) ClearedFields

func (m *LockOrderFulfillmentMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (LockOrderFulfillmentMutation) Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*LockOrderFulfillmentMutation) CreatedAt

func (m *LockOrderFulfillmentMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*LockOrderFulfillmentMutation) EdgeCleared

func (m *LockOrderFulfillmentMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*LockOrderFulfillmentMutation) Field

func (m *LockOrderFulfillmentMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*LockOrderFulfillmentMutation) FieldCleared

func (m *LockOrderFulfillmentMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*LockOrderFulfillmentMutation) Fields

func (m *LockOrderFulfillmentMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*LockOrderFulfillmentMutation) ID

func (m *LockOrderFulfillmentMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*LockOrderFulfillmentMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*LockOrderFulfillmentMutation) OldCreatedAt

func (m *LockOrderFulfillmentMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the LockOrderFulfillment entity. If the LockOrderFulfillment object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockOrderFulfillmentMutation) OldField

func (m *LockOrderFulfillmentMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*LockOrderFulfillmentMutation) OldPsp

func (m *LockOrderFulfillmentMutation) OldPsp(ctx context.Context) (v string, err error)

OldPsp returns the old "psp" field's value of the LockOrderFulfillment entity. If the LockOrderFulfillment object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockOrderFulfillmentMutation) OldTxID

func (m *LockOrderFulfillmentMutation) OldTxID(ctx context.Context) (v string, err error)

OldTxID returns the old "tx_id" field's value of the LockOrderFulfillment entity. If the LockOrderFulfillment object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockOrderFulfillmentMutation) OldUpdatedAt

func (m *LockOrderFulfillmentMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the LockOrderFulfillment entity. If the LockOrderFulfillment object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockOrderFulfillmentMutation) OldValidationError

func (m *LockOrderFulfillmentMutation) OldValidationError(ctx context.Context) (v string, err error)

OldValidationError returns the old "validation_error" field's value of the LockOrderFulfillment entity. If the LockOrderFulfillment object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockOrderFulfillmentMutation) OldValidationStatus

OldValidationStatus returns the old "validation_status" field's value of the LockOrderFulfillment entity. If the LockOrderFulfillment object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockOrderFulfillmentMutation) Op

Op returns the operation name.

func (*LockOrderFulfillmentMutation) OrderCleared

func (m *LockOrderFulfillmentMutation) OrderCleared() bool

OrderCleared reports if the "order" edge to the LockPaymentOrder entity was cleared.

func (*LockOrderFulfillmentMutation) OrderID

func (m *LockOrderFulfillmentMutation) OrderID() (id uuid.UUID, exists bool)

OrderID returns the "order" edge ID in the mutation.

func (*LockOrderFulfillmentMutation) OrderIDs

func (m *LockOrderFulfillmentMutation) OrderIDs() (ids []uuid.UUID)

OrderIDs returns the "order" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OrderID instead. It exists only for internal usage by the builders.

func (*LockOrderFulfillmentMutation) Psp

func (m *LockOrderFulfillmentMutation) Psp() (r string, exists bool)

Psp returns the value of the "psp" field in the mutation.

func (*LockOrderFulfillmentMutation) PspCleared

func (m *LockOrderFulfillmentMutation) PspCleared() bool

PspCleared returns if the "psp" field was cleared in this mutation.

func (*LockOrderFulfillmentMutation) RemovedEdges

func (m *LockOrderFulfillmentMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*LockOrderFulfillmentMutation) RemovedIDs

func (m *LockOrderFulfillmentMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*LockOrderFulfillmentMutation) ResetCreatedAt

func (m *LockOrderFulfillmentMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*LockOrderFulfillmentMutation) ResetEdge

func (m *LockOrderFulfillmentMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*LockOrderFulfillmentMutation) ResetField

func (m *LockOrderFulfillmentMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*LockOrderFulfillmentMutation) ResetOrder

func (m *LockOrderFulfillmentMutation) ResetOrder()

ResetOrder resets all changes to the "order" edge.

func (*LockOrderFulfillmentMutation) ResetPsp

func (m *LockOrderFulfillmentMutation) ResetPsp()

ResetPsp resets all changes to the "psp" field.

func (*LockOrderFulfillmentMutation) ResetTxID

func (m *LockOrderFulfillmentMutation) ResetTxID()

ResetTxID resets all changes to the "tx_id" field.

func (*LockOrderFulfillmentMutation) ResetUpdatedAt

func (m *LockOrderFulfillmentMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*LockOrderFulfillmentMutation) ResetValidationError

func (m *LockOrderFulfillmentMutation) ResetValidationError()

ResetValidationError resets all changes to the "validation_error" field.

func (*LockOrderFulfillmentMutation) ResetValidationStatus

func (m *LockOrderFulfillmentMutation) ResetValidationStatus()

ResetValidationStatus resets all changes to the "validation_status" field.

func (*LockOrderFulfillmentMutation) SetCreatedAt

func (m *LockOrderFulfillmentMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*LockOrderFulfillmentMutation) SetField

func (m *LockOrderFulfillmentMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*LockOrderFulfillmentMutation) SetID

func (m *LockOrderFulfillmentMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of LockOrderFulfillment entities.

func (*LockOrderFulfillmentMutation) SetOp

func (m *LockOrderFulfillmentMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*LockOrderFulfillmentMutation) SetOrderID

func (m *LockOrderFulfillmentMutation) SetOrderID(id uuid.UUID)

SetOrderID sets the "order" edge to the LockPaymentOrder entity by id.

func (*LockOrderFulfillmentMutation) SetPsp

func (m *LockOrderFulfillmentMutation) SetPsp(s string)

SetPsp sets the "psp" field.

func (*LockOrderFulfillmentMutation) SetTxID

func (m *LockOrderFulfillmentMutation) SetTxID(s string)

SetTxID sets the "tx_id" field.

func (*LockOrderFulfillmentMutation) SetUpdatedAt

func (m *LockOrderFulfillmentMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*LockOrderFulfillmentMutation) SetValidationError

func (m *LockOrderFulfillmentMutation) SetValidationError(s string)

SetValidationError sets the "validation_error" field.

func (*LockOrderFulfillmentMutation) SetValidationStatus

SetValidationStatus sets the "validation_status" field.

func (LockOrderFulfillmentMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*LockOrderFulfillmentMutation) TxID

func (m *LockOrderFulfillmentMutation) TxID() (r string, exists bool)

TxID returns the value of the "tx_id" field in the mutation.

func (*LockOrderFulfillmentMutation) TxIDCleared

func (m *LockOrderFulfillmentMutation) TxIDCleared() bool

TxIDCleared returns if the "tx_id" field was cleared in this mutation.

func (*LockOrderFulfillmentMutation) Type

Type returns the node type of this mutation (LockOrderFulfillment).

func (*LockOrderFulfillmentMutation) UpdatedAt

func (m *LockOrderFulfillmentMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*LockOrderFulfillmentMutation) ValidationError

func (m *LockOrderFulfillmentMutation) ValidationError() (r string, exists bool)

ValidationError returns the value of the "validation_error" field in the mutation.

func (*LockOrderFulfillmentMutation) ValidationErrorCleared

func (m *LockOrderFulfillmentMutation) ValidationErrorCleared() bool

ValidationErrorCleared returns if the "validation_error" field was cleared in this mutation.

func (*LockOrderFulfillmentMutation) ValidationStatus

func (m *LockOrderFulfillmentMutation) ValidationStatus() (r lockorderfulfillment.ValidationStatus, exists bool)

ValidationStatus returns the value of the "validation_status" field in the mutation.

func (*LockOrderFulfillmentMutation) Where

Where appends a list predicates to the LockOrderFulfillmentMutation builder.

func (*LockOrderFulfillmentMutation) WhereP

func (m *LockOrderFulfillmentMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the LockOrderFulfillmentMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type LockOrderFulfillmentQuery

type LockOrderFulfillmentQuery struct {
	// contains filtered or unexported fields
}

LockOrderFulfillmentQuery is the builder for querying LockOrderFulfillment entities.

func (*LockOrderFulfillmentQuery) Aggregate

Aggregate returns a LockOrderFulfillmentSelect configured with the given aggregations.

func (*LockOrderFulfillmentQuery) All

All executes the query and returns a list of LockOrderFulfillments.

func (*LockOrderFulfillmentQuery) AllX

AllX is like All, but panics if an error occurs.

func (*LockOrderFulfillmentQuery) Clone

Clone returns a duplicate of the LockOrderFulfillmentQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*LockOrderFulfillmentQuery) Count

func (lofq *LockOrderFulfillmentQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*LockOrderFulfillmentQuery) CountX

func (lofq *LockOrderFulfillmentQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*LockOrderFulfillmentQuery) Exist

func (lofq *LockOrderFulfillmentQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*LockOrderFulfillmentQuery) ExistX

func (lofq *LockOrderFulfillmentQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*LockOrderFulfillmentQuery) First

First returns the first LockOrderFulfillment entity from the query. Returns a *NotFoundError when no LockOrderFulfillment was found.

func (*LockOrderFulfillmentQuery) FirstID

func (lofq *LockOrderFulfillmentQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first LockOrderFulfillment ID from the query. Returns a *NotFoundError when no LockOrderFulfillment ID was found.

func (*LockOrderFulfillmentQuery) FirstIDX

func (lofq *LockOrderFulfillmentQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*LockOrderFulfillmentQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*LockOrderFulfillmentQuery) GroupBy

func (lofq *LockOrderFulfillmentQuery) GroupBy(field string, fields ...string) *LockOrderFulfillmentGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.LockOrderFulfillment.Query().
	GroupBy(lockorderfulfillment.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*LockOrderFulfillmentQuery) IDs

func (lofq *LockOrderFulfillmentQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of LockOrderFulfillment IDs.

func (*LockOrderFulfillmentQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*LockOrderFulfillmentQuery) Limit

Limit the number of records to be returned by this query.

func (*LockOrderFulfillmentQuery) Offset

Offset to start from.

func (*LockOrderFulfillmentQuery) Only

Only returns a single LockOrderFulfillment entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one LockOrderFulfillment entity is found. Returns a *NotFoundError when no LockOrderFulfillment entities are found.

func (*LockOrderFulfillmentQuery) OnlyID

func (lofq *LockOrderFulfillmentQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only LockOrderFulfillment ID in the query. Returns a *NotSingularError when more than one LockOrderFulfillment ID is found. Returns a *NotFoundError when no entities are found.

func (*LockOrderFulfillmentQuery) OnlyIDX

func (lofq *LockOrderFulfillmentQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*LockOrderFulfillmentQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*LockOrderFulfillmentQuery) Order

Order specifies how the records should be ordered.

func (*LockOrderFulfillmentQuery) QueryOrder

QueryOrder chains the current query on the "order" edge.

func (*LockOrderFulfillmentQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.LockOrderFulfillment.Query().
	Select(lockorderfulfillment.FieldCreatedAt).
	Scan(ctx, &v)

func (*LockOrderFulfillmentQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*LockOrderFulfillmentQuery) Where

Where adds a new predicate for the LockOrderFulfillmentQuery builder.

func (*LockOrderFulfillmentQuery) WithOrder

WithOrder tells the query-builder to eager-load the nodes that are connected to the "order" edge. The optional arguments are used to configure the query builder of the edge.

type LockOrderFulfillmentSelect

type LockOrderFulfillmentSelect struct {
	*LockOrderFulfillmentQuery
	// contains filtered or unexported fields
}

LockOrderFulfillmentSelect is the builder for selecting fields of LockOrderFulfillment entities.

func (*LockOrderFulfillmentSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*LockOrderFulfillmentSelect) Bool

func (s *LockOrderFulfillmentSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentSelect) BoolX

func (s *LockOrderFulfillmentSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*LockOrderFulfillmentSelect) Bools

func (s *LockOrderFulfillmentSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentSelect) BoolsX

func (s *LockOrderFulfillmentSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*LockOrderFulfillmentSelect) Float64

func (s *LockOrderFulfillmentSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentSelect) Float64X

func (s *LockOrderFulfillmentSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*LockOrderFulfillmentSelect) Float64s

func (s *LockOrderFulfillmentSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentSelect) Float64sX

func (s *LockOrderFulfillmentSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*LockOrderFulfillmentSelect) Int

func (s *LockOrderFulfillmentSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentSelect) IntX

func (s *LockOrderFulfillmentSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*LockOrderFulfillmentSelect) Ints

func (s *LockOrderFulfillmentSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentSelect) IntsX

func (s *LockOrderFulfillmentSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*LockOrderFulfillmentSelect) Scan

func (lofs *LockOrderFulfillmentSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*LockOrderFulfillmentSelect) ScanX

func (s *LockOrderFulfillmentSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*LockOrderFulfillmentSelect) String

func (s *LockOrderFulfillmentSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentSelect) StringX

func (s *LockOrderFulfillmentSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*LockOrderFulfillmentSelect) Strings

func (s *LockOrderFulfillmentSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*LockOrderFulfillmentSelect) StringsX

func (s *LockOrderFulfillmentSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type LockOrderFulfillmentUpdate

type LockOrderFulfillmentUpdate struct {
	// contains filtered or unexported fields
}

LockOrderFulfillmentUpdate is the builder for updating LockOrderFulfillment entities.

func (*LockOrderFulfillmentUpdate) ClearOrder

ClearOrder clears the "order" edge to the LockPaymentOrder entity.

func (*LockOrderFulfillmentUpdate) ClearPsp

ClearPsp clears the value of the "psp" field.

func (*LockOrderFulfillmentUpdate) ClearTxID

ClearTxID clears the value of the "tx_id" field.

func (*LockOrderFulfillmentUpdate) ClearValidationError

func (lofu *LockOrderFulfillmentUpdate) ClearValidationError() *LockOrderFulfillmentUpdate

ClearValidationError clears the value of the "validation_error" field.

func (*LockOrderFulfillmentUpdate) Exec

Exec executes the query.

func (*LockOrderFulfillmentUpdate) ExecX

func (lofu *LockOrderFulfillmentUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LockOrderFulfillmentUpdate) Mutation

Mutation returns the LockOrderFulfillmentMutation object of the builder.

func (*LockOrderFulfillmentUpdate) Save

func (lofu *LockOrderFulfillmentUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*LockOrderFulfillmentUpdate) SaveX

func (lofu *LockOrderFulfillmentUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*LockOrderFulfillmentUpdate) SetNillablePsp

SetNillablePsp sets the "psp" field if the given value is not nil.

func (*LockOrderFulfillmentUpdate) SetNillableTxID

SetNillableTxID sets the "tx_id" field if the given value is not nil.

func (*LockOrderFulfillmentUpdate) SetNillableValidationError

func (lofu *LockOrderFulfillmentUpdate) SetNillableValidationError(s *string) *LockOrderFulfillmentUpdate

SetNillableValidationError sets the "validation_error" field if the given value is not nil.

func (*LockOrderFulfillmentUpdate) SetNillableValidationStatus

SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.

func (*LockOrderFulfillmentUpdate) SetOrder

SetOrder sets the "order" edge to the LockPaymentOrder entity.

func (*LockOrderFulfillmentUpdate) SetOrderID

SetOrderID sets the "order" edge to the LockPaymentOrder entity by ID.

func (*LockOrderFulfillmentUpdate) SetPsp

SetPsp sets the "psp" field.

func (*LockOrderFulfillmentUpdate) SetTxID

SetTxID sets the "tx_id" field.

func (*LockOrderFulfillmentUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LockOrderFulfillmentUpdate) SetValidationError

func (lofu *LockOrderFulfillmentUpdate) SetValidationError(s string) *LockOrderFulfillmentUpdate

SetValidationError sets the "validation_error" field.

func (*LockOrderFulfillmentUpdate) SetValidationStatus

SetValidationStatus sets the "validation_status" field.

func (*LockOrderFulfillmentUpdate) Where

Where appends a list predicates to the LockOrderFulfillmentUpdate builder.

type LockOrderFulfillmentUpdateOne

type LockOrderFulfillmentUpdateOne struct {
	// contains filtered or unexported fields
}

LockOrderFulfillmentUpdateOne is the builder for updating a single LockOrderFulfillment entity.

func (*LockOrderFulfillmentUpdateOne) ClearOrder

ClearOrder clears the "order" edge to the LockPaymentOrder entity.

func (*LockOrderFulfillmentUpdateOne) ClearPsp

ClearPsp clears the value of the "psp" field.

func (*LockOrderFulfillmentUpdateOne) ClearTxID

ClearTxID clears the value of the "tx_id" field.

func (*LockOrderFulfillmentUpdateOne) ClearValidationError

func (lofuo *LockOrderFulfillmentUpdateOne) ClearValidationError() *LockOrderFulfillmentUpdateOne

ClearValidationError clears the value of the "validation_error" field.

func (*LockOrderFulfillmentUpdateOne) Exec

Exec executes the query on the entity.

func (*LockOrderFulfillmentUpdateOne) ExecX

func (lofuo *LockOrderFulfillmentUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LockOrderFulfillmentUpdateOne) Mutation

Mutation returns the LockOrderFulfillmentMutation object of the builder.

func (*LockOrderFulfillmentUpdateOne) Save

Save executes the query and returns the updated LockOrderFulfillment entity.

func (*LockOrderFulfillmentUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*LockOrderFulfillmentUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*LockOrderFulfillmentUpdateOne) SetNillablePsp

SetNillablePsp sets the "psp" field if the given value is not nil.

func (*LockOrderFulfillmentUpdateOne) SetNillableTxID

SetNillableTxID sets the "tx_id" field if the given value is not nil.

func (*LockOrderFulfillmentUpdateOne) SetNillableValidationError

func (lofuo *LockOrderFulfillmentUpdateOne) SetNillableValidationError(s *string) *LockOrderFulfillmentUpdateOne

SetNillableValidationError sets the "validation_error" field if the given value is not nil.

func (*LockOrderFulfillmentUpdateOne) SetNillableValidationStatus

SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.

func (*LockOrderFulfillmentUpdateOne) SetOrder

SetOrder sets the "order" edge to the LockPaymentOrder entity.

func (*LockOrderFulfillmentUpdateOne) SetOrderID

SetOrderID sets the "order" edge to the LockPaymentOrder entity by ID.

func (*LockOrderFulfillmentUpdateOne) SetPsp

SetPsp sets the "psp" field.

func (*LockOrderFulfillmentUpdateOne) SetTxID

SetTxID sets the "tx_id" field.

func (*LockOrderFulfillmentUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LockOrderFulfillmentUpdateOne) SetValidationError

SetValidationError sets the "validation_error" field.

func (*LockOrderFulfillmentUpdateOne) SetValidationStatus

SetValidationStatus sets the "validation_status" field.

func (*LockOrderFulfillmentUpdateOne) Where

Where appends a list predicates to the LockOrderFulfillmentUpdate builder.

type LockOrderFulfillmentUpsert

type LockOrderFulfillmentUpsert struct {
	*sql.UpdateSet
}

LockOrderFulfillmentUpsert is the "OnConflict" setter.

func (*LockOrderFulfillmentUpsert) ClearPsp

ClearPsp clears the value of the "psp" field.

func (*LockOrderFulfillmentUpsert) ClearTxID

ClearTxID clears the value of the "tx_id" field.

func (*LockOrderFulfillmentUpsert) ClearValidationError

func (u *LockOrderFulfillmentUpsert) ClearValidationError() *LockOrderFulfillmentUpsert

ClearValidationError clears the value of the "validation_error" field.

func (*LockOrderFulfillmentUpsert) SetPsp

SetPsp sets the "psp" field.

func (*LockOrderFulfillmentUpsert) SetTxID

SetTxID sets the "tx_id" field.

func (*LockOrderFulfillmentUpsert) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LockOrderFulfillmentUpsert) SetValidationError

SetValidationError sets the "validation_error" field.

func (*LockOrderFulfillmentUpsert) SetValidationStatus

SetValidationStatus sets the "validation_status" field.

func (*LockOrderFulfillmentUpsert) UpdatePsp

UpdatePsp sets the "psp" field to the value that was provided on create.

func (*LockOrderFulfillmentUpsert) UpdateTxID

UpdateTxID sets the "tx_id" field to the value that was provided on create.

func (*LockOrderFulfillmentUpsert) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*LockOrderFulfillmentUpsert) UpdateValidationError

func (u *LockOrderFulfillmentUpsert) UpdateValidationError() *LockOrderFulfillmentUpsert

UpdateValidationError sets the "validation_error" field to the value that was provided on create.

func (*LockOrderFulfillmentUpsert) UpdateValidationStatus

func (u *LockOrderFulfillmentUpsert) UpdateValidationStatus() *LockOrderFulfillmentUpsert

UpdateValidationStatus sets the "validation_status" field to the value that was provided on create.

type LockOrderFulfillmentUpsertBulk

type LockOrderFulfillmentUpsertBulk struct {
	// contains filtered or unexported fields
}

LockOrderFulfillmentUpsertBulk is the builder for "upsert"-ing a bulk of LockOrderFulfillment nodes.

func (*LockOrderFulfillmentUpsertBulk) ClearPsp

ClearPsp clears the value of the "psp" field.

func (*LockOrderFulfillmentUpsertBulk) ClearTxID

ClearTxID clears the value of the "tx_id" field.

func (*LockOrderFulfillmentUpsertBulk) ClearValidationError

ClearValidationError clears the value of the "validation_error" field.

func (*LockOrderFulfillmentUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*LockOrderFulfillmentUpsertBulk) Exec

Exec executes the query.

func (*LockOrderFulfillmentUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*LockOrderFulfillmentUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.LockOrderFulfillment.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*LockOrderFulfillmentUpsertBulk) SetPsp

SetPsp sets the "psp" field.

func (*LockOrderFulfillmentUpsertBulk) SetTxID

SetTxID sets the "tx_id" field.

func (*LockOrderFulfillmentUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LockOrderFulfillmentUpsertBulk) SetValidationError

SetValidationError sets the "validation_error" field.

func (*LockOrderFulfillmentUpsertBulk) SetValidationStatus

SetValidationStatus sets the "validation_status" field.

func (*LockOrderFulfillmentUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the LockOrderFulfillmentCreateBulk.OnConflict documentation for more info.

func (*LockOrderFulfillmentUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.LockOrderFulfillment.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(lockorderfulfillment.FieldID)
		}),
	).
	Exec(ctx)

func (*LockOrderFulfillmentUpsertBulk) UpdatePsp

UpdatePsp sets the "psp" field to the value that was provided on create.

func (*LockOrderFulfillmentUpsertBulk) UpdateTxID

UpdateTxID sets the "tx_id" field to the value that was provided on create.

func (*LockOrderFulfillmentUpsertBulk) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*LockOrderFulfillmentUpsertBulk) UpdateValidationError

UpdateValidationError sets the "validation_error" field to the value that was provided on create.

func (*LockOrderFulfillmentUpsertBulk) UpdateValidationStatus

UpdateValidationStatus sets the "validation_status" field to the value that was provided on create.

type LockOrderFulfillmentUpsertOne

type LockOrderFulfillmentUpsertOne struct {
	// contains filtered or unexported fields
}

LockOrderFulfillmentUpsertOne is the builder for "upsert"-ing

one LockOrderFulfillment node.

func (*LockOrderFulfillmentUpsertOne) ClearPsp

ClearPsp clears the value of the "psp" field.

func (*LockOrderFulfillmentUpsertOne) ClearTxID

ClearTxID clears the value of the "tx_id" field.

func (*LockOrderFulfillmentUpsertOne) ClearValidationError

ClearValidationError clears the value of the "validation_error" field.

func (*LockOrderFulfillmentUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*LockOrderFulfillmentUpsertOne) Exec

Exec executes the query.

func (*LockOrderFulfillmentUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*LockOrderFulfillmentUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*LockOrderFulfillmentUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*LockOrderFulfillmentUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.LockOrderFulfillment.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*LockOrderFulfillmentUpsertOne) SetPsp

SetPsp sets the "psp" field.

func (*LockOrderFulfillmentUpsertOne) SetTxID

SetTxID sets the "tx_id" field.

func (*LockOrderFulfillmentUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LockOrderFulfillmentUpsertOne) SetValidationError

SetValidationError sets the "validation_error" field.

func (*LockOrderFulfillmentUpsertOne) SetValidationStatus

SetValidationStatus sets the "validation_status" field.

func (*LockOrderFulfillmentUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the LockOrderFulfillmentCreate.OnConflict documentation for more info.

func (*LockOrderFulfillmentUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.LockOrderFulfillment.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(lockorderfulfillment.FieldID)
		}),
	).
	Exec(ctx)

func (*LockOrderFulfillmentUpsertOne) UpdatePsp

UpdatePsp sets the "psp" field to the value that was provided on create.

func (*LockOrderFulfillmentUpsertOne) UpdateTxID

UpdateTxID sets the "tx_id" field to the value that was provided on create.

func (*LockOrderFulfillmentUpsertOne) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*LockOrderFulfillmentUpsertOne) UpdateValidationError

UpdateValidationError sets the "validation_error" field to the value that was provided on create.

func (*LockOrderFulfillmentUpsertOne) UpdateValidationStatus

func (u *LockOrderFulfillmentUpsertOne) UpdateValidationStatus() *LockOrderFulfillmentUpsertOne

UpdateValidationStatus sets the "validation_status" field to the value that was provided on create.

type LockOrderFulfillments

type LockOrderFulfillments []*LockOrderFulfillment

LockOrderFulfillments is a parsable slice of LockOrderFulfillment.

type LockPaymentOrder

type LockPaymentOrder struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// GatewayID holds the value of the "gateway_id" field.
	GatewayID string `json:"gateway_id,omitempty"`
	// Amount holds the value of the "amount" field.
	Amount decimal.Decimal `json:"amount,omitempty"`
	// ProtocolFee holds the value of the "protocol_fee" field.
	ProtocolFee decimal.Decimal `json:"protocol_fee,omitempty"`
	// Rate holds the value of the "rate" field.
	Rate decimal.Decimal `json:"rate,omitempty"`
	// OrderPercent holds the value of the "order_percent" field.
	OrderPercent decimal.Decimal `json:"order_percent,omitempty"`
	// Sender holds the value of the "sender" field.
	Sender string `json:"sender,omitempty"`
	// TxHash holds the value of the "tx_hash" field.
	TxHash string `json:"tx_hash,omitempty"`
	// Status holds the value of the "status" field.
	Status lockpaymentorder.Status `json:"status,omitempty"`
	// BlockNumber holds the value of the "block_number" field.
	BlockNumber int64 `json:"block_number,omitempty"`
	// Institution holds the value of the "institution" field.
	Institution string `json:"institution,omitempty"`
	// AccountIdentifier holds the value of the "account_identifier" field.
	AccountIdentifier string `json:"account_identifier,omitempty"`
	// AccountName holds the value of the "account_name" field.
	AccountName string `json:"account_name,omitempty"`
	// Memo holds the value of the "memo" field.
	Memo string `json:"memo,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata map[string]interface{} `json:"metadata,omitempty"`
	// CancellationCount holds the value of the "cancellation_count" field.
	CancellationCount int `json:"cancellation_count,omitempty"`
	// CancellationReasons holds the value of the "cancellation_reasons" field.
	CancellationReasons []string `json:"cancellation_reasons,omitempty"`
	// MessageHash holds the value of the "message_hash" field.
	MessageHash string `json:"message_hash,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the LockPaymentOrderQuery when eager-loading is set.
	Edges LockPaymentOrderEdges `json:"edges"`
	// contains filtered or unexported fields
}

LockPaymentOrder is the model entity for the LockPaymentOrder schema.

func (*LockPaymentOrder) QueryFulfillments

func (lpo *LockPaymentOrder) QueryFulfillments() *LockOrderFulfillmentQuery

QueryFulfillments queries the "fulfillments" edge of the LockPaymentOrder entity.

func (*LockPaymentOrder) QueryProvider

func (lpo *LockPaymentOrder) QueryProvider() *ProviderProfileQuery

QueryProvider queries the "provider" edge of the LockPaymentOrder entity.

func (*LockPaymentOrder) QueryProvisionBucket

func (lpo *LockPaymentOrder) QueryProvisionBucket() *ProvisionBucketQuery

QueryProvisionBucket queries the "provision_bucket" edge of the LockPaymentOrder entity.

func (*LockPaymentOrder) QueryToken

func (lpo *LockPaymentOrder) QueryToken() *TokenQuery

QueryToken queries the "token" edge of the LockPaymentOrder entity.

func (*LockPaymentOrder) QueryTransactions

func (lpo *LockPaymentOrder) QueryTransactions() *TransactionLogQuery

QueryTransactions queries the "transactions" edge of the LockPaymentOrder entity.

func (*LockPaymentOrder) String

func (lpo *LockPaymentOrder) String() string

String implements the fmt.Stringer.

func (*LockPaymentOrder) Unwrap

func (lpo *LockPaymentOrder) Unwrap() *LockPaymentOrder

Unwrap unwraps the LockPaymentOrder entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*LockPaymentOrder) Update

Update returns a builder for updating this LockPaymentOrder. Note that you need to call LockPaymentOrder.Unwrap() before calling this method if this LockPaymentOrder was returned from a transaction, and the transaction was committed or rolled back.

func (*LockPaymentOrder) Value

func (lpo *LockPaymentOrder) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the LockPaymentOrder. This includes values selected through modifiers, order, etc.

type LockPaymentOrderClient

type LockPaymentOrderClient struct {
	// contains filtered or unexported fields
}

LockPaymentOrderClient is a client for the LockPaymentOrder schema.

func NewLockPaymentOrderClient

func NewLockPaymentOrderClient(c config) *LockPaymentOrderClient

NewLockPaymentOrderClient returns a client for the LockPaymentOrder from the given config.

func (*LockPaymentOrderClient) Create

Create returns a builder for creating a LockPaymentOrder entity.

func (*LockPaymentOrderClient) CreateBulk

CreateBulk returns a builder for creating a bulk of LockPaymentOrder entities.

func (*LockPaymentOrderClient) Delete

Delete returns a delete builder for LockPaymentOrder.

func (*LockPaymentOrderClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*LockPaymentOrderClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*LockPaymentOrderClient) Get

Get returns a LockPaymentOrder entity by its id.

func (*LockPaymentOrderClient) GetX

GetX is like Get, but panics if an error occurs.

func (*LockPaymentOrderClient) Hooks

func (c *LockPaymentOrderClient) Hooks() []Hook

Hooks returns the client hooks.

func (*LockPaymentOrderClient) Intercept

func (c *LockPaymentOrderClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `lockpaymentorder.Intercept(f(g(h())))`.

func (*LockPaymentOrderClient) Interceptors

func (c *LockPaymentOrderClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*LockPaymentOrderClient) MapCreateBulk

func (c *LockPaymentOrderClient) MapCreateBulk(slice any, setFunc func(*LockPaymentOrderCreate, int)) *LockPaymentOrderCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*LockPaymentOrderClient) Query

Query returns a query builder for LockPaymentOrder.

func (*LockPaymentOrderClient) QueryFulfillments

QueryFulfillments queries the fulfillments edge of a LockPaymentOrder.

func (*LockPaymentOrderClient) QueryProvider

QueryProvider queries the provider edge of a LockPaymentOrder.

func (*LockPaymentOrderClient) QueryProvisionBucket

func (c *LockPaymentOrderClient) QueryProvisionBucket(lpo *LockPaymentOrder) *ProvisionBucketQuery

QueryProvisionBucket queries the provision_bucket edge of a LockPaymentOrder.

func (*LockPaymentOrderClient) QueryToken

func (c *LockPaymentOrderClient) QueryToken(lpo *LockPaymentOrder) *TokenQuery

QueryToken queries the token edge of a LockPaymentOrder.

func (*LockPaymentOrderClient) QueryTransactions

func (c *LockPaymentOrderClient) QueryTransactions(lpo *LockPaymentOrder) *TransactionLogQuery

QueryTransactions queries the transactions edge of a LockPaymentOrder.

func (*LockPaymentOrderClient) Update

Update returns an update builder for LockPaymentOrder.

func (*LockPaymentOrderClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*LockPaymentOrderClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*LockPaymentOrderClient) Use

func (c *LockPaymentOrderClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `lockpaymentorder.Hooks(f(g(h())))`.

type LockPaymentOrderCreate

type LockPaymentOrderCreate struct {
	// contains filtered or unexported fields
}

LockPaymentOrderCreate is the builder for creating a LockPaymentOrder entity.

func (*LockPaymentOrderCreate) AddFulfillmentIDs

func (lpoc *LockPaymentOrderCreate) AddFulfillmentIDs(ids ...uuid.UUID) *LockPaymentOrderCreate

AddFulfillmentIDs adds the "fulfillments" edge to the LockOrderFulfillment entity by IDs.

func (*LockPaymentOrderCreate) AddFulfillments

AddFulfillments adds the "fulfillments" edges to the LockOrderFulfillment entity.

func (*LockPaymentOrderCreate) AddTransactionIDs

func (lpoc *LockPaymentOrderCreate) AddTransactionIDs(ids ...uuid.UUID) *LockPaymentOrderCreate

AddTransactionIDs adds the "transactions" edge to the TransactionLog entity by IDs.

func (*LockPaymentOrderCreate) AddTransactions

func (lpoc *LockPaymentOrderCreate) AddTransactions(t ...*TransactionLog) *LockPaymentOrderCreate

AddTransactions adds the "transactions" edges to the TransactionLog entity.

func (*LockPaymentOrderCreate) Exec

func (lpoc *LockPaymentOrderCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*LockPaymentOrderCreate) ExecX

func (lpoc *LockPaymentOrderCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LockPaymentOrderCreate) Mutation

Mutation returns the LockPaymentOrderMutation object of the builder.

func (*LockPaymentOrderCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.LockPaymentOrder.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.LockPaymentOrderUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*LockPaymentOrderCreate) OnConflictColumns

func (lpoc *LockPaymentOrderCreate) OnConflictColumns(columns ...string) *LockPaymentOrderUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.LockPaymentOrder.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*LockPaymentOrderCreate) Save

Save creates the LockPaymentOrder in the database.

func (*LockPaymentOrderCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*LockPaymentOrderCreate) SetAccountIdentifier

func (lpoc *LockPaymentOrderCreate) SetAccountIdentifier(s string) *LockPaymentOrderCreate

SetAccountIdentifier sets the "account_identifier" field.

func (*LockPaymentOrderCreate) SetAccountName

func (lpoc *LockPaymentOrderCreate) SetAccountName(s string) *LockPaymentOrderCreate

SetAccountName sets the "account_name" field.

func (*LockPaymentOrderCreate) SetAmount

SetAmount sets the "amount" field.

func (*LockPaymentOrderCreate) SetBlockNumber

func (lpoc *LockPaymentOrderCreate) SetBlockNumber(i int64) *LockPaymentOrderCreate

SetBlockNumber sets the "block_number" field.

func (*LockPaymentOrderCreate) SetCancellationCount

func (lpoc *LockPaymentOrderCreate) SetCancellationCount(i int) *LockPaymentOrderCreate

SetCancellationCount sets the "cancellation_count" field.

func (*LockPaymentOrderCreate) SetCancellationReasons

func (lpoc *LockPaymentOrderCreate) SetCancellationReasons(s []string) *LockPaymentOrderCreate

SetCancellationReasons sets the "cancellation_reasons" field.

func (*LockPaymentOrderCreate) SetCreatedAt

func (lpoc *LockPaymentOrderCreate) SetCreatedAt(t time.Time) *LockPaymentOrderCreate

SetCreatedAt sets the "created_at" field.

func (*LockPaymentOrderCreate) SetGatewayID

func (lpoc *LockPaymentOrderCreate) SetGatewayID(s string) *LockPaymentOrderCreate

SetGatewayID sets the "gateway_id" field.

func (*LockPaymentOrderCreate) SetID

SetID sets the "id" field.

func (*LockPaymentOrderCreate) SetInstitution

func (lpoc *LockPaymentOrderCreate) SetInstitution(s string) *LockPaymentOrderCreate

SetInstitution sets the "institution" field.

func (*LockPaymentOrderCreate) SetMemo

SetMemo sets the "memo" field.

func (*LockPaymentOrderCreate) SetMessageHash added in v0.0.2

func (lpoc *LockPaymentOrderCreate) SetMessageHash(s string) *LockPaymentOrderCreate

SetMessageHash sets the "message_hash" field.

func (*LockPaymentOrderCreate) SetMetadata

func (lpoc *LockPaymentOrderCreate) SetMetadata(m map[string]interface{}) *LockPaymentOrderCreate

SetMetadata sets the "metadata" field.

func (*LockPaymentOrderCreate) SetNillableCancellationCount

func (lpoc *LockPaymentOrderCreate) SetNillableCancellationCount(i *int) *LockPaymentOrderCreate

SetNillableCancellationCount sets the "cancellation_count" field if the given value is not nil.

func (*LockPaymentOrderCreate) SetNillableCreatedAt

func (lpoc *LockPaymentOrderCreate) SetNillableCreatedAt(t *time.Time) *LockPaymentOrderCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*LockPaymentOrderCreate) SetNillableID

func (lpoc *LockPaymentOrderCreate) SetNillableID(u *uuid.UUID) *LockPaymentOrderCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*LockPaymentOrderCreate) SetNillableMemo

func (lpoc *LockPaymentOrderCreate) SetNillableMemo(s *string) *LockPaymentOrderCreate

SetNillableMemo sets the "memo" field if the given value is not nil.

func (*LockPaymentOrderCreate) SetNillableMessageHash added in v0.0.2

func (lpoc *LockPaymentOrderCreate) SetNillableMessageHash(s *string) *LockPaymentOrderCreate

SetNillableMessageHash sets the "message_hash" field if the given value is not nil.

func (*LockPaymentOrderCreate) SetNillableProviderID

func (lpoc *LockPaymentOrderCreate) SetNillableProviderID(id *string) *LockPaymentOrderCreate

SetNillableProviderID sets the "provider" edge to the ProviderProfile entity by ID if the given value is not nil.

func (*LockPaymentOrderCreate) SetNillableProvisionBucketID

func (lpoc *LockPaymentOrderCreate) SetNillableProvisionBucketID(id *int) *LockPaymentOrderCreate

SetNillableProvisionBucketID sets the "provision_bucket" edge to the ProvisionBucket entity by ID if the given value is not nil.

func (*LockPaymentOrderCreate) SetNillableSender

func (lpoc *LockPaymentOrderCreate) SetNillableSender(s *string) *LockPaymentOrderCreate

SetNillableSender sets the "sender" field if the given value is not nil.

func (*LockPaymentOrderCreate) SetNillableStatus

SetNillableStatus sets the "status" field if the given value is not nil.

func (*LockPaymentOrderCreate) SetNillableTxHash

func (lpoc *LockPaymentOrderCreate) SetNillableTxHash(s *string) *LockPaymentOrderCreate

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*LockPaymentOrderCreate) SetNillableUpdatedAt

func (lpoc *LockPaymentOrderCreate) SetNillableUpdatedAt(t *time.Time) *LockPaymentOrderCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*LockPaymentOrderCreate) SetOrderPercent

SetOrderPercent sets the "order_percent" field.

func (*LockPaymentOrderCreate) SetProtocolFee added in v0.0.2

SetProtocolFee sets the "protocol_fee" field.

func (*LockPaymentOrderCreate) SetProvider

SetProvider sets the "provider" edge to the ProviderProfile entity.

func (*LockPaymentOrderCreate) SetProviderID

func (lpoc *LockPaymentOrderCreate) SetProviderID(id string) *LockPaymentOrderCreate

SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.

func (*LockPaymentOrderCreate) SetProvisionBucket

func (lpoc *LockPaymentOrderCreate) SetProvisionBucket(p *ProvisionBucket) *LockPaymentOrderCreate

SetProvisionBucket sets the "provision_bucket" edge to the ProvisionBucket entity.

func (*LockPaymentOrderCreate) SetProvisionBucketID

func (lpoc *LockPaymentOrderCreate) SetProvisionBucketID(id int) *LockPaymentOrderCreate

SetProvisionBucketID sets the "provision_bucket" edge to the ProvisionBucket entity by ID.

func (*LockPaymentOrderCreate) SetRate

SetRate sets the "rate" field.

func (*LockPaymentOrderCreate) SetSender

SetSender sets the "sender" field.

func (*LockPaymentOrderCreate) SetStatus

SetStatus sets the "status" field.

func (*LockPaymentOrderCreate) SetToken

SetToken sets the "token" edge to the Token entity.

func (*LockPaymentOrderCreate) SetTokenID

func (lpoc *LockPaymentOrderCreate) SetTokenID(id int) *LockPaymentOrderCreate

SetTokenID sets the "token" edge to the Token entity by ID.

func (*LockPaymentOrderCreate) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*LockPaymentOrderCreate) SetUpdatedAt

func (lpoc *LockPaymentOrderCreate) SetUpdatedAt(t time.Time) *LockPaymentOrderCreate

SetUpdatedAt sets the "updated_at" field.

type LockPaymentOrderCreateBulk

type LockPaymentOrderCreateBulk struct {
	// contains filtered or unexported fields
}

LockPaymentOrderCreateBulk is the builder for creating many LockPaymentOrder entities in bulk.

func (*LockPaymentOrderCreateBulk) Exec

Exec executes the query.

func (*LockPaymentOrderCreateBulk) ExecX

func (lpocb *LockPaymentOrderCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LockPaymentOrderCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.LockPaymentOrder.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.LockPaymentOrderUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*LockPaymentOrderCreateBulk) OnConflictColumns

func (lpocb *LockPaymentOrderCreateBulk) OnConflictColumns(columns ...string) *LockPaymentOrderUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.LockPaymentOrder.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*LockPaymentOrderCreateBulk) Save

Save creates the LockPaymentOrder entities in the database.

func (*LockPaymentOrderCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type LockPaymentOrderDelete

type LockPaymentOrderDelete struct {
	// contains filtered or unexported fields
}

LockPaymentOrderDelete is the builder for deleting a LockPaymentOrder entity.

func (*LockPaymentOrderDelete) Exec

func (lpod *LockPaymentOrderDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*LockPaymentOrderDelete) ExecX

func (lpod *LockPaymentOrderDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*LockPaymentOrderDelete) Where

Where appends a list predicates to the LockPaymentOrderDelete builder.

type LockPaymentOrderDeleteOne

type LockPaymentOrderDeleteOne struct {
	// contains filtered or unexported fields
}

LockPaymentOrderDeleteOne is the builder for deleting a single LockPaymentOrder entity.

func (*LockPaymentOrderDeleteOne) Exec

Exec executes the deletion query.

func (*LockPaymentOrderDeleteOne) ExecX

func (lpodo *LockPaymentOrderDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LockPaymentOrderDeleteOne) Where

Where appends a list predicates to the LockPaymentOrderDelete builder.

type LockPaymentOrderEdges

type LockPaymentOrderEdges struct {
	// Token holds the value of the token edge.
	Token *Token `json:"token,omitempty"`
	// ProvisionBucket holds the value of the provision_bucket edge.
	ProvisionBucket *ProvisionBucket `json:"provision_bucket,omitempty"`
	// Provider holds the value of the provider edge.
	Provider *ProviderProfile `json:"provider,omitempty"`
	// Fulfillments holds the value of the fulfillments edge.
	Fulfillments []*LockOrderFulfillment `json:"fulfillments,omitempty"`
	// Transactions holds the value of the transactions edge.
	Transactions []*TransactionLog `json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

LockPaymentOrderEdges holds the relations/edges for other nodes in the graph.

func (LockPaymentOrderEdges) FulfillmentsOrErr

func (e LockPaymentOrderEdges) FulfillmentsOrErr() ([]*LockOrderFulfillment, error)

FulfillmentsOrErr returns the Fulfillments value or an error if the edge was not loaded in eager-loading.

func (LockPaymentOrderEdges) ProviderOrErr

func (e LockPaymentOrderEdges) ProviderOrErr() (*ProviderProfile, error)

ProviderOrErr returns the Provider value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (LockPaymentOrderEdges) ProvisionBucketOrErr

func (e LockPaymentOrderEdges) ProvisionBucketOrErr() (*ProvisionBucket, error)

ProvisionBucketOrErr returns the ProvisionBucket value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (LockPaymentOrderEdges) TokenOrErr

func (e LockPaymentOrderEdges) TokenOrErr() (*Token, error)

TokenOrErr returns the Token value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (LockPaymentOrderEdges) TransactionsOrErr

func (e LockPaymentOrderEdges) TransactionsOrErr() ([]*TransactionLog, error)

TransactionsOrErr returns the Transactions value or an error if the edge was not loaded in eager-loading.

type LockPaymentOrderGroupBy

type LockPaymentOrderGroupBy struct {
	// contains filtered or unexported fields
}

LockPaymentOrderGroupBy is the group-by builder for LockPaymentOrder entities.

func (*LockPaymentOrderGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*LockPaymentOrderGroupBy) Bool

func (s *LockPaymentOrderGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderGroupBy) BoolX

func (s *LockPaymentOrderGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*LockPaymentOrderGroupBy) Bools

func (s *LockPaymentOrderGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderGroupBy) BoolsX

func (s *LockPaymentOrderGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*LockPaymentOrderGroupBy) Float64

func (s *LockPaymentOrderGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderGroupBy) Float64X

func (s *LockPaymentOrderGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*LockPaymentOrderGroupBy) Float64s

func (s *LockPaymentOrderGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderGroupBy) Float64sX

func (s *LockPaymentOrderGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*LockPaymentOrderGroupBy) Int

func (s *LockPaymentOrderGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderGroupBy) IntX

func (s *LockPaymentOrderGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*LockPaymentOrderGroupBy) Ints

func (s *LockPaymentOrderGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderGroupBy) IntsX

func (s *LockPaymentOrderGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*LockPaymentOrderGroupBy) Scan

func (lpogb *LockPaymentOrderGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*LockPaymentOrderGroupBy) ScanX

func (s *LockPaymentOrderGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*LockPaymentOrderGroupBy) String

func (s *LockPaymentOrderGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderGroupBy) StringX

func (s *LockPaymentOrderGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*LockPaymentOrderGroupBy) Strings

func (s *LockPaymentOrderGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderGroupBy) StringsX

func (s *LockPaymentOrderGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type LockPaymentOrderMutation

type LockPaymentOrderMutation struct {
	// contains filtered or unexported fields
}

LockPaymentOrderMutation represents an operation that mutates the LockPaymentOrder nodes in the graph.

func (*LockPaymentOrderMutation) AccountIdentifier

func (m *LockPaymentOrderMutation) AccountIdentifier() (r string, exists bool)

AccountIdentifier returns the value of the "account_identifier" field in the mutation.

func (*LockPaymentOrderMutation) AccountName

func (m *LockPaymentOrderMutation) AccountName() (r string, exists bool)

AccountName returns the value of the "account_name" field in the mutation.

func (*LockPaymentOrderMutation) AddAmount

func (m *LockPaymentOrderMutation) AddAmount(d decimal.Decimal)

AddAmount adds d to the "amount" field.

func (*LockPaymentOrderMutation) AddBlockNumber

func (m *LockPaymentOrderMutation) AddBlockNumber(i int64)

AddBlockNumber adds i to the "block_number" field.

func (*LockPaymentOrderMutation) AddCancellationCount

func (m *LockPaymentOrderMutation) AddCancellationCount(i int)

AddCancellationCount adds i to the "cancellation_count" field.

func (*LockPaymentOrderMutation) AddField

func (m *LockPaymentOrderMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*LockPaymentOrderMutation) AddFulfillmentIDs

func (m *LockPaymentOrderMutation) AddFulfillmentIDs(ids ...uuid.UUID)

AddFulfillmentIDs adds the "fulfillments" edge to the LockOrderFulfillment entity by ids.

func (*LockPaymentOrderMutation) AddOrderPercent

func (m *LockPaymentOrderMutation) AddOrderPercent(d decimal.Decimal)

AddOrderPercent adds d to the "order_percent" field.

func (*LockPaymentOrderMutation) AddProtocolFee added in v0.0.2

func (m *LockPaymentOrderMutation) AddProtocolFee(d decimal.Decimal)

AddProtocolFee adds d to the "protocol_fee" field.

func (*LockPaymentOrderMutation) AddRate

AddRate adds d to the "rate" field.

func (*LockPaymentOrderMutation) AddTransactionIDs

func (m *LockPaymentOrderMutation) AddTransactionIDs(ids ...uuid.UUID)

AddTransactionIDs adds the "transactions" edge to the TransactionLog entity by ids.

func (*LockPaymentOrderMutation) AddedAmount

func (m *LockPaymentOrderMutation) AddedAmount() (r decimal.Decimal, exists bool)

AddedAmount returns the value that was added to the "amount" field in this mutation.

func (*LockPaymentOrderMutation) AddedBlockNumber

func (m *LockPaymentOrderMutation) AddedBlockNumber() (r int64, exists bool)

AddedBlockNumber returns the value that was added to the "block_number" field in this mutation.

func (*LockPaymentOrderMutation) AddedCancellationCount

func (m *LockPaymentOrderMutation) AddedCancellationCount() (r int, exists bool)

AddedCancellationCount returns the value that was added to the "cancellation_count" field in this mutation.

func (*LockPaymentOrderMutation) AddedEdges

func (m *LockPaymentOrderMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*LockPaymentOrderMutation) AddedField

func (m *LockPaymentOrderMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*LockPaymentOrderMutation) AddedFields

func (m *LockPaymentOrderMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*LockPaymentOrderMutation) AddedIDs

func (m *LockPaymentOrderMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*LockPaymentOrderMutation) AddedOrderPercent

func (m *LockPaymentOrderMutation) AddedOrderPercent() (r decimal.Decimal, exists bool)

AddedOrderPercent returns the value that was added to the "order_percent" field in this mutation.

func (*LockPaymentOrderMutation) AddedProtocolFee added in v0.0.2

func (m *LockPaymentOrderMutation) AddedProtocolFee() (r decimal.Decimal, exists bool)

AddedProtocolFee returns the value that was added to the "protocol_fee" field in this mutation.

func (*LockPaymentOrderMutation) AddedRate

func (m *LockPaymentOrderMutation) AddedRate() (r decimal.Decimal, exists bool)

AddedRate returns the value that was added to the "rate" field in this mutation.

func (*LockPaymentOrderMutation) Amount

func (m *LockPaymentOrderMutation) Amount() (r decimal.Decimal, exists bool)

Amount returns the value of the "amount" field in the mutation.

func (*LockPaymentOrderMutation) AppendCancellationReasons

func (m *LockPaymentOrderMutation) AppendCancellationReasons(s []string)

AppendCancellationReasons adds s to the "cancellation_reasons" field.

func (*LockPaymentOrderMutation) AppendedCancellationReasons

func (m *LockPaymentOrderMutation) AppendedCancellationReasons() ([]string, bool)

AppendedCancellationReasons returns the list of values that were appended to the "cancellation_reasons" field in this mutation.

func (*LockPaymentOrderMutation) BlockNumber

func (m *LockPaymentOrderMutation) BlockNumber() (r int64, exists bool)

BlockNumber returns the value of the "block_number" field in the mutation.

func (*LockPaymentOrderMutation) CancellationCount

func (m *LockPaymentOrderMutation) CancellationCount() (r int, exists bool)

CancellationCount returns the value of the "cancellation_count" field in the mutation.

func (*LockPaymentOrderMutation) CancellationReasons

func (m *LockPaymentOrderMutation) CancellationReasons() (r []string, exists bool)

CancellationReasons returns the value of the "cancellation_reasons" field in the mutation.

func (*LockPaymentOrderMutation) ClearEdge

func (m *LockPaymentOrderMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*LockPaymentOrderMutation) ClearField

func (m *LockPaymentOrderMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*LockPaymentOrderMutation) ClearFulfillments

func (m *LockPaymentOrderMutation) ClearFulfillments()

ClearFulfillments clears the "fulfillments" edge to the LockOrderFulfillment entity.

func (*LockPaymentOrderMutation) ClearMemo

func (m *LockPaymentOrderMutation) ClearMemo()

ClearMemo clears the value of the "memo" field.

func (*LockPaymentOrderMutation) ClearMessageHash added in v0.0.2

func (m *LockPaymentOrderMutation) ClearMessageHash()

ClearMessageHash clears the value of the "message_hash" field.

func (*LockPaymentOrderMutation) ClearMetadata

func (m *LockPaymentOrderMutation) ClearMetadata()

ClearMetadata clears the value of the "metadata" field.

func (*LockPaymentOrderMutation) ClearProvider

func (m *LockPaymentOrderMutation) ClearProvider()

ClearProvider clears the "provider" edge to the ProviderProfile entity.

func (*LockPaymentOrderMutation) ClearProvisionBucket

func (m *LockPaymentOrderMutation) ClearProvisionBucket()

ClearProvisionBucket clears the "provision_bucket" edge to the ProvisionBucket entity.

func (*LockPaymentOrderMutation) ClearSender

func (m *LockPaymentOrderMutation) ClearSender()

ClearSender clears the value of the "sender" field.

func (*LockPaymentOrderMutation) ClearToken

func (m *LockPaymentOrderMutation) ClearToken()

ClearToken clears the "token" edge to the Token entity.

func (*LockPaymentOrderMutation) ClearTransactions

func (m *LockPaymentOrderMutation) ClearTransactions()

ClearTransactions clears the "transactions" edge to the TransactionLog entity.

func (*LockPaymentOrderMutation) ClearTxHash

func (m *LockPaymentOrderMutation) ClearTxHash()

ClearTxHash clears the value of the "tx_hash" field.

func (*LockPaymentOrderMutation) ClearedEdges

func (m *LockPaymentOrderMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*LockPaymentOrderMutation) ClearedFields

func (m *LockPaymentOrderMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (LockPaymentOrderMutation) Client

func (m LockPaymentOrderMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*LockPaymentOrderMutation) CreatedAt

func (m *LockPaymentOrderMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*LockPaymentOrderMutation) EdgeCleared

func (m *LockPaymentOrderMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*LockPaymentOrderMutation) Field

func (m *LockPaymentOrderMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*LockPaymentOrderMutation) FieldCleared

func (m *LockPaymentOrderMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*LockPaymentOrderMutation) Fields

func (m *LockPaymentOrderMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*LockPaymentOrderMutation) FulfillmentsCleared

func (m *LockPaymentOrderMutation) FulfillmentsCleared() bool

FulfillmentsCleared reports if the "fulfillments" edge to the LockOrderFulfillment entity was cleared.

func (*LockPaymentOrderMutation) FulfillmentsIDs

func (m *LockPaymentOrderMutation) FulfillmentsIDs() (ids []uuid.UUID)

FulfillmentsIDs returns the "fulfillments" edge IDs in the mutation.

func (*LockPaymentOrderMutation) GatewayID

func (m *LockPaymentOrderMutation) GatewayID() (r string, exists bool)

GatewayID returns the value of the "gateway_id" field in the mutation.

func (*LockPaymentOrderMutation) ID

func (m *LockPaymentOrderMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*LockPaymentOrderMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*LockPaymentOrderMutation) Institution

func (m *LockPaymentOrderMutation) Institution() (r string, exists bool)

Institution returns the value of the "institution" field in the mutation.

func (*LockPaymentOrderMutation) Memo

func (m *LockPaymentOrderMutation) Memo() (r string, exists bool)

Memo returns the value of the "memo" field in the mutation.

func (*LockPaymentOrderMutation) MemoCleared

func (m *LockPaymentOrderMutation) MemoCleared() bool

MemoCleared returns if the "memo" field was cleared in this mutation.

func (*LockPaymentOrderMutation) MessageHash added in v0.0.2

func (m *LockPaymentOrderMutation) MessageHash() (r string, exists bool)

MessageHash returns the value of the "message_hash" field in the mutation.

func (*LockPaymentOrderMutation) MessageHashCleared added in v0.0.2

func (m *LockPaymentOrderMutation) MessageHashCleared() bool

MessageHashCleared returns if the "message_hash" field was cleared in this mutation.

func (*LockPaymentOrderMutation) Metadata

func (m *LockPaymentOrderMutation) Metadata() (r map[string]interface{}, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*LockPaymentOrderMutation) MetadataCleared

func (m *LockPaymentOrderMutation) MetadataCleared() bool

MetadataCleared returns if the "metadata" field was cleared in this mutation.

func (*LockPaymentOrderMutation) OldAccountIdentifier

func (m *LockPaymentOrderMutation) OldAccountIdentifier(ctx context.Context) (v string, err error)

OldAccountIdentifier returns the old "account_identifier" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldAccountName

func (m *LockPaymentOrderMutation) OldAccountName(ctx context.Context) (v string, err error)

OldAccountName returns the old "account_name" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldAmount

func (m *LockPaymentOrderMutation) OldAmount(ctx context.Context) (v decimal.Decimal, err error)

OldAmount returns the old "amount" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldBlockNumber

func (m *LockPaymentOrderMutation) OldBlockNumber(ctx context.Context) (v int64, err error)

OldBlockNumber returns the old "block_number" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldCancellationCount

func (m *LockPaymentOrderMutation) OldCancellationCount(ctx context.Context) (v int, err error)

OldCancellationCount returns the old "cancellation_count" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldCancellationReasons

func (m *LockPaymentOrderMutation) OldCancellationReasons(ctx context.Context) (v []string, err error)

OldCancellationReasons returns the old "cancellation_reasons" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldCreatedAt

func (m *LockPaymentOrderMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldField

func (m *LockPaymentOrderMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*LockPaymentOrderMutation) OldGatewayID

func (m *LockPaymentOrderMutation) OldGatewayID(ctx context.Context) (v string, err error)

OldGatewayID returns the old "gateway_id" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldInstitution

func (m *LockPaymentOrderMutation) OldInstitution(ctx context.Context) (v string, err error)

OldInstitution returns the old "institution" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldMemo

func (m *LockPaymentOrderMutation) OldMemo(ctx context.Context) (v string, err error)

OldMemo returns the old "memo" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldMessageHash added in v0.0.2

func (m *LockPaymentOrderMutation) OldMessageHash(ctx context.Context) (v string, err error)

OldMessageHash returns the old "message_hash" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldMetadata

func (m *LockPaymentOrderMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error)

OldMetadata returns the old "metadata" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldOrderPercent

func (m *LockPaymentOrderMutation) OldOrderPercent(ctx context.Context) (v decimal.Decimal, err error)

OldOrderPercent returns the old "order_percent" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldProtocolFee added in v0.0.2

func (m *LockPaymentOrderMutation) OldProtocolFee(ctx context.Context) (v decimal.Decimal, err error)

OldProtocolFee returns the old "protocol_fee" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldRate

func (m *LockPaymentOrderMutation) OldRate(ctx context.Context) (v decimal.Decimal, err error)

OldRate returns the old "rate" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldSender

func (m *LockPaymentOrderMutation) OldSender(ctx context.Context) (v string, err error)

OldSender returns the old "sender" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldStatus

OldStatus returns the old "status" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldTxHash

func (m *LockPaymentOrderMutation) OldTxHash(ctx context.Context) (v string, err error)

OldTxHash returns the old "tx_hash" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) OldUpdatedAt

func (m *LockPaymentOrderMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the LockPaymentOrder entity. If the LockPaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LockPaymentOrderMutation) Op

func (m *LockPaymentOrderMutation) Op() Op

Op returns the operation name.

func (*LockPaymentOrderMutation) OrderPercent

func (m *LockPaymentOrderMutation) OrderPercent() (r decimal.Decimal, exists bool)

OrderPercent returns the value of the "order_percent" field in the mutation.

func (*LockPaymentOrderMutation) ProtocolFee added in v0.0.2

func (m *LockPaymentOrderMutation) ProtocolFee() (r decimal.Decimal, exists bool)

ProtocolFee returns the value of the "protocol_fee" field in the mutation.

func (*LockPaymentOrderMutation) ProviderCleared

func (m *LockPaymentOrderMutation) ProviderCleared() bool

ProviderCleared reports if the "provider" edge to the ProviderProfile entity was cleared.

func (*LockPaymentOrderMutation) ProviderID

func (m *LockPaymentOrderMutation) ProviderID() (id string, exists bool)

ProviderID returns the "provider" edge ID in the mutation.

func (*LockPaymentOrderMutation) ProviderIDs

func (m *LockPaymentOrderMutation) ProviderIDs() (ids []string)

ProviderIDs returns the "provider" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProviderID instead. It exists only for internal usage by the builders.

func (*LockPaymentOrderMutation) ProvisionBucketCleared

func (m *LockPaymentOrderMutation) ProvisionBucketCleared() bool

ProvisionBucketCleared reports if the "provision_bucket" edge to the ProvisionBucket entity was cleared.

func (*LockPaymentOrderMutation) ProvisionBucketID

func (m *LockPaymentOrderMutation) ProvisionBucketID() (id int, exists bool)

ProvisionBucketID returns the "provision_bucket" edge ID in the mutation.

func (*LockPaymentOrderMutation) ProvisionBucketIDs

func (m *LockPaymentOrderMutation) ProvisionBucketIDs() (ids []int)

ProvisionBucketIDs returns the "provision_bucket" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProvisionBucketID instead. It exists only for internal usage by the builders.

func (*LockPaymentOrderMutation) Rate

func (m *LockPaymentOrderMutation) Rate() (r decimal.Decimal, exists bool)

Rate returns the value of the "rate" field in the mutation.

func (*LockPaymentOrderMutation) RemoveFulfillmentIDs

func (m *LockPaymentOrderMutation) RemoveFulfillmentIDs(ids ...uuid.UUID)

RemoveFulfillmentIDs removes the "fulfillments" edge to the LockOrderFulfillment entity by IDs.

func (*LockPaymentOrderMutation) RemoveTransactionIDs

func (m *LockPaymentOrderMutation) RemoveTransactionIDs(ids ...uuid.UUID)

RemoveTransactionIDs removes the "transactions" edge to the TransactionLog entity by IDs.

func (*LockPaymentOrderMutation) RemovedEdges

func (m *LockPaymentOrderMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*LockPaymentOrderMutation) RemovedFulfillmentsIDs

func (m *LockPaymentOrderMutation) RemovedFulfillmentsIDs() (ids []uuid.UUID)

RemovedFulfillments returns the removed IDs of the "fulfillments" edge to the LockOrderFulfillment entity.

func (*LockPaymentOrderMutation) RemovedIDs

func (m *LockPaymentOrderMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*LockPaymentOrderMutation) RemovedTransactionsIDs

func (m *LockPaymentOrderMutation) RemovedTransactionsIDs() (ids []uuid.UUID)

RemovedTransactions returns the removed IDs of the "transactions" edge to the TransactionLog entity.

func (*LockPaymentOrderMutation) ResetAccountIdentifier

func (m *LockPaymentOrderMutation) ResetAccountIdentifier()

ResetAccountIdentifier resets all changes to the "account_identifier" field.

func (*LockPaymentOrderMutation) ResetAccountName

func (m *LockPaymentOrderMutation) ResetAccountName()

ResetAccountName resets all changes to the "account_name" field.

func (*LockPaymentOrderMutation) ResetAmount

func (m *LockPaymentOrderMutation) ResetAmount()

ResetAmount resets all changes to the "amount" field.

func (*LockPaymentOrderMutation) ResetBlockNumber

func (m *LockPaymentOrderMutation) ResetBlockNumber()

ResetBlockNumber resets all changes to the "block_number" field.

func (*LockPaymentOrderMutation) ResetCancellationCount

func (m *LockPaymentOrderMutation) ResetCancellationCount()

ResetCancellationCount resets all changes to the "cancellation_count" field.

func (*LockPaymentOrderMutation) ResetCancellationReasons

func (m *LockPaymentOrderMutation) ResetCancellationReasons()

ResetCancellationReasons resets all changes to the "cancellation_reasons" field.

func (*LockPaymentOrderMutation) ResetCreatedAt

func (m *LockPaymentOrderMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*LockPaymentOrderMutation) ResetEdge

func (m *LockPaymentOrderMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*LockPaymentOrderMutation) ResetField

func (m *LockPaymentOrderMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*LockPaymentOrderMutation) ResetFulfillments

func (m *LockPaymentOrderMutation) ResetFulfillments()

ResetFulfillments resets all changes to the "fulfillments" edge.

func (*LockPaymentOrderMutation) ResetGatewayID

func (m *LockPaymentOrderMutation) ResetGatewayID()

ResetGatewayID resets all changes to the "gateway_id" field.

func (*LockPaymentOrderMutation) ResetInstitution

func (m *LockPaymentOrderMutation) ResetInstitution()

ResetInstitution resets all changes to the "institution" field.

func (*LockPaymentOrderMutation) ResetMemo

func (m *LockPaymentOrderMutation) ResetMemo()

ResetMemo resets all changes to the "memo" field.

func (*LockPaymentOrderMutation) ResetMessageHash added in v0.0.2

func (m *LockPaymentOrderMutation) ResetMessageHash()

ResetMessageHash resets all changes to the "message_hash" field.

func (*LockPaymentOrderMutation) ResetMetadata

func (m *LockPaymentOrderMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*LockPaymentOrderMutation) ResetOrderPercent

func (m *LockPaymentOrderMutation) ResetOrderPercent()

ResetOrderPercent resets all changes to the "order_percent" field.

func (*LockPaymentOrderMutation) ResetProtocolFee added in v0.0.2

func (m *LockPaymentOrderMutation) ResetProtocolFee()

ResetProtocolFee resets all changes to the "protocol_fee" field.

func (*LockPaymentOrderMutation) ResetProvider

func (m *LockPaymentOrderMutation) ResetProvider()

ResetProvider resets all changes to the "provider" edge.

func (*LockPaymentOrderMutation) ResetProvisionBucket

func (m *LockPaymentOrderMutation) ResetProvisionBucket()

ResetProvisionBucket resets all changes to the "provision_bucket" edge.

func (*LockPaymentOrderMutation) ResetRate

func (m *LockPaymentOrderMutation) ResetRate()

ResetRate resets all changes to the "rate" field.

func (*LockPaymentOrderMutation) ResetSender

func (m *LockPaymentOrderMutation) ResetSender()

ResetSender resets all changes to the "sender" field.

func (*LockPaymentOrderMutation) ResetStatus

func (m *LockPaymentOrderMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*LockPaymentOrderMutation) ResetToken

func (m *LockPaymentOrderMutation) ResetToken()

ResetToken resets all changes to the "token" edge.

func (*LockPaymentOrderMutation) ResetTransactions

func (m *LockPaymentOrderMutation) ResetTransactions()

ResetTransactions resets all changes to the "transactions" edge.

func (*LockPaymentOrderMutation) ResetTxHash

func (m *LockPaymentOrderMutation) ResetTxHash()

ResetTxHash resets all changes to the "tx_hash" field.

func (*LockPaymentOrderMutation) ResetUpdatedAt

func (m *LockPaymentOrderMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*LockPaymentOrderMutation) Sender

func (m *LockPaymentOrderMutation) Sender() (r string, exists bool)

Sender returns the value of the "sender" field in the mutation.

func (*LockPaymentOrderMutation) SenderCleared

func (m *LockPaymentOrderMutation) SenderCleared() bool

SenderCleared returns if the "sender" field was cleared in this mutation.

func (*LockPaymentOrderMutation) SetAccountIdentifier

func (m *LockPaymentOrderMutation) SetAccountIdentifier(s string)

SetAccountIdentifier sets the "account_identifier" field.

func (*LockPaymentOrderMutation) SetAccountName

func (m *LockPaymentOrderMutation) SetAccountName(s string)

SetAccountName sets the "account_name" field.

func (*LockPaymentOrderMutation) SetAmount

func (m *LockPaymentOrderMutation) SetAmount(d decimal.Decimal)

SetAmount sets the "amount" field.

func (*LockPaymentOrderMutation) SetBlockNumber

func (m *LockPaymentOrderMutation) SetBlockNumber(i int64)

SetBlockNumber sets the "block_number" field.

func (*LockPaymentOrderMutation) SetCancellationCount

func (m *LockPaymentOrderMutation) SetCancellationCount(i int)

SetCancellationCount sets the "cancellation_count" field.

func (*LockPaymentOrderMutation) SetCancellationReasons

func (m *LockPaymentOrderMutation) SetCancellationReasons(s []string)

SetCancellationReasons sets the "cancellation_reasons" field.

func (*LockPaymentOrderMutation) SetCreatedAt

func (m *LockPaymentOrderMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*LockPaymentOrderMutation) SetField

func (m *LockPaymentOrderMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*LockPaymentOrderMutation) SetGatewayID

func (m *LockPaymentOrderMutation) SetGatewayID(s string)

SetGatewayID sets the "gateway_id" field.

func (*LockPaymentOrderMutation) SetID

func (m *LockPaymentOrderMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of LockPaymentOrder entities.

func (*LockPaymentOrderMutation) SetInstitution

func (m *LockPaymentOrderMutation) SetInstitution(s string)

SetInstitution sets the "institution" field.

func (*LockPaymentOrderMutation) SetMemo

func (m *LockPaymentOrderMutation) SetMemo(s string)

SetMemo sets the "memo" field.

func (*LockPaymentOrderMutation) SetMessageHash added in v0.0.2

func (m *LockPaymentOrderMutation) SetMessageHash(s string)

SetMessageHash sets the "message_hash" field.

func (*LockPaymentOrderMutation) SetMetadata

func (m *LockPaymentOrderMutation) SetMetadata(value map[string]interface{})

SetMetadata sets the "metadata" field.

func (*LockPaymentOrderMutation) SetOp

func (m *LockPaymentOrderMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*LockPaymentOrderMutation) SetOrderPercent

func (m *LockPaymentOrderMutation) SetOrderPercent(d decimal.Decimal)

SetOrderPercent sets the "order_percent" field.

func (*LockPaymentOrderMutation) SetProtocolFee added in v0.0.2

func (m *LockPaymentOrderMutation) SetProtocolFee(d decimal.Decimal)

SetProtocolFee sets the "protocol_fee" field.

func (*LockPaymentOrderMutation) SetProviderID

func (m *LockPaymentOrderMutation) SetProviderID(id string)

SetProviderID sets the "provider" edge to the ProviderProfile entity by id.

func (*LockPaymentOrderMutation) SetProvisionBucketID

func (m *LockPaymentOrderMutation) SetProvisionBucketID(id int)

SetProvisionBucketID sets the "provision_bucket" edge to the ProvisionBucket entity by id.

func (*LockPaymentOrderMutation) SetRate

SetRate sets the "rate" field.

func (*LockPaymentOrderMutation) SetSender

func (m *LockPaymentOrderMutation) SetSender(s string)

SetSender sets the "sender" field.

func (*LockPaymentOrderMutation) SetStatus

SetStatus sets the "status" field.

func (*LockPaymentOrderMutation) SetTokenID

func (m *LockPaymentOrderMutation) SetTokenID(id int)

SetTokenID sets the "token" edge to the Token entity by id.

func (*LockPaymentOrderMutation) SetTxHash

func (m *LockPaymentOrderMutation) SetTxHash(s string)

SetTxHash sets the "tx_hash" field.

func (*LockPaymentOrderMutation) SetUpdatedAt

func (m *LockPaymentOrderMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*LockPaymentOrderMutation) Status

func (m *LockPaymentOrderMutation) Status() (r lockpaymentorder.Status, exists bool)

Status returns the value of the "status" field in the mutation.

func (*LockPaymentOrderMutation) TokenCleared

func (m *LockPaymentOrderMutation) TokenCleared() bool

TokenCleared reports if the "token" edge to the Token entity was cleared.

func (*LockPaymentOrderMutation) TokenID

func (m *LockPaymentOrderMutation) TokenID() (id int, exists bool)

TokenID returns the "token" edge ID in the mutation.

func (*LockPaymentOrderMutation) TokenIDs

func (m *LockPaymentOrderMutation) TokenIDs() (ids []int)

TokenIDs returns the "token" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use TokenID instead. It exists only for internal usage by the builders.

func (*LockPaymentOrderMutation) TransactionsCleared

func (m *LockPaymentOrderMutation) TransactionsCleared() bool

TransactionsCleared reports if the "transactions" edge to the TransactionLog entity was cleared.

func (*LockPaymentOrderMutation) TransactionsIDs

func (m *LockPaymentOrderMutation) TransactionsIDs() (ids []uuid.UUID)

TransactionsIDs returns the "transactions" edge IDs in the mutation.

func (LockPaymentOrderMutation) Tx

func (m LockPaymentOrderMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*LockPaymentOrderMutation) TxHash

func (m *LockPaymentOrderMutation) TxHash() (r string, exists bool)

TxHash returns the value of the "tx_hash" field in the mutation.

func (*LockPaymentOrderMutation) TxHashCleared

func (m *LockPaymentOrderMutation) TxHashCleared() bool

TxHashCleared returns if the "tx_hash" field was cleared in this mutation.

func (*LockPaymentOrderMutation) Type

func (m *LockPaymentOrderMutation) Type() string

Type returns the node type of this mutation (LockPaymentOrder).

func (*LockPaymentOrderMutation) UpdatedAt

func (m *LockPaymentOrderMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*LockPaymentOrderMutation) Where

Where appends a list predicates to the LockPaymentOrderMutation builder.

func (*LockPaymentOrderMutation) WhereP

func (m *LockPaymentOrderMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the LockPaymentOrderMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type LockPaymentOrderQuery

type LockPaymentOrderQuery struct {
	// contains filtered or unexported fields
}

LockPaymentOrderQuery is the builder for querying LockPaymentOrder entities.

func (*LockPaymentOrderQuery) Aggregate

Aggregate returns a LockPaymentOrderSelect configured with the given aggregations.

func (*LockPaymentOrderQuery) All

All executes the query and returns a list of LockPaymentOrders.

func (*LockPaymentOrderQuery) AllX

AllX is like All, but panics if an error occurs.

func (*LockPaymentOrderQuery) Clone

Clone returns a duplicate of the LockPaymentOrderQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*LockPaymentOrderQuery) Count

func (lpoq *LockPaymentOrderQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*LockPaymentOrderQuery) CountX

func (lpoq *LockPaymentOrderQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*LockPaymentOrderQuery) Exist

func (lpoq *LockPaymentOrderQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*LockPaymentOrderQuery) ExistX

func (lpoq *LockPaymentOrderQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*LockPaymentOrderQuery) First

First returns the first LockPaymentOrder entity from the query. Returns a *NotFoundError when no LockPaymentOrder was found.

func (*LockPaymentOrderQuery) FirstID

func (lpoq *LockPaymentOrderQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first LockPaymentOrder ID from the query. Returns a *NotFoundError when no LockPaymentOrder ID was found.

func (*LockPaymentOrderQuery) FirstIDX

func (lpoq *LockPaymentOrderQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*LockPaymentOrderQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*LockPaymentOrderQuery) GroupBy

func (lpoq *LockPaymentOrderQuery) GroupBy(field string, fields ...string) *LockPaymentOrderGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.LockPaymentOrder.Query().
	GroupBy(lockpaymentorder.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*LockPaymentOrderQuery) IDs

func (lpoq *LockPaymentOrderQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of LockPaymentOrder IDs.

func (*LockPaymentOrderQuery) IDsX

func (lpoq *LockPaymentOrderQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*LockPaymentOrderQuery) Limit

func (lpoq *LockPaymentOrderQuery) Limit(limit int) *LockPaymentOrderQuery

Limit the number of records to be returned by this query.

func (*LockPaymentOrderQuery) Offset

func (lpoq *LockPaymentOrderQuery) Offset(offset int) *LockPaymentOrderQuery

Offset to start from.

func (*LockPaymentOrderQuery) Only

Only returns a single LockPaymentOrder entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one LockPaymentOrder entity is found. Returns a *NotFoundError when no LockPaymentOrder entities are found.

func (*LockPaymentOrderQuery) OnlyID

func (lpoq *LockPaymentOrderQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only LockPaymentOrder ID in the query. Returns a *NotSingularError when more than one LockPaymentOrder ID is found. Returns a *NotFoundError when no entities are found.

func (*LockPaymentOrderQuery) OnlyIDX

func (lpoq *LockPaymentOrderQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*LockPaymentOrderQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*LockPaymentOrderQuery) Order

Order specifies how the records should be ordered.

func (*LockPaymentOrderQuery) QueryFulfillments

func (lpoq *LockPaymentOrderQuery) QueryFulfillments() *LockOrderFulfillmentQuery

QueryFulfillments chains the current query on the "fulfillments" edge.

func (*LockPaymentOrderQuery) QueryProvider

func (lpoq *LockPaymentOrderQuery) QueryProvider() *ProviderProfileQuery

QueryProvider chains the current query on the "provider" edge.

func (*LockPaymentOrderQuery) QueryProvisionBucket

func (lpoq *LockPaymentOrderQuery) QueryProvisionBucket() *ProvisionBucketQuery

QueryProvisionBucket chains the current query on the "provision_bucket" edge.

func (*LockPaymentOrderQuery) QueryToken

func (lpoq *LockPaymentOrderQuery) QueryToken() *TokenQuery

QueryToken chains the current query on the "token" edge.

func (*LockPaymentOrderQuery) QueryTransactions

func (lpoq *LockPaymentOrderQuery) QueryTransactions() *TransactionLogQuery

QueryTransactions chains the current query on the "transactions" edge.

func (*LockPaymentOrderQuery) Select

func (lpoq *LockPaymentOrderQuery) Select(fields ...string) *LockPaymentOrderSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.LockPaymentOrder.Query().
	Select(lockpaymentorder.FieldCreatedAt).
	Scan(ctx, &v)

func (*LockPaymentOrderQuery) Unique

func (lpoq *LockPaymentOrderQuery) Unique(unique bool) *LockPaymentOrderQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*LockPaymentOrderQuery) Where

Where adds a new predicate for the LockPaymentOrderQuery builder.

func (*LockPaymentOrderQuery) WithFulfillments

func (lpoq *LockPaymentOrderQuery) WithFulfillments(opts ...func(*LockOrderFulfillmentQuery)) *LockPaymentOrderQuery

WithFulfillments tells the query-builder to eager-load the nodes that are connected to the "fulfillments" edge. The optional arguments are used to configure the query builder of the edge.

func (*LockPaymentOrderQuery) WithProvider

func (lpoq *LockPaymentOrderQuery) WithProvider(opts ...func(*ProviderProfileQuery)) *LockPaymentOrderQuery

WithProvider tells the query-builder to eager-load the nodes that are connected to the "provider" edge. The optional arguments are used to configure the query builder of the edge.

func (*LockPaymentOrderQuery) WithProvisionBucket

func (lpoq *LockPaymentOrderQuery) WithProvisionBucket(opts ...func(*ProvisionBucketQuery)) *LockPaymentOrderQuery

WithProvisionBucket tells the query-builder to eager-load the nodes that are connected to the "provision_bucket" edge. The optional arguments are used to configure the query builder of the edge.

func (*LockPaymentOrderQuery) WithToken

func (lpoq *LockPaymentOrderQuery) WithToken(opts ...func(*TokenQuery)) *LockPaymentOrderQuery

WithToken tells the query-builder to eager-load the nodes that are connected to the "token" edge. The optional arguments are used to configure the query builder of the edge.

func (*LockPaymentOrderQuery) WithTransactions

func (lpoq *LockPaymentOrderQuery) WithTransactions(opts ...func(*TransactionLogQuery)) *LockPaymentOrderQuery

WithTransactions tells the query-builder to eager-load the nodes that are connected to the "transactions" edge. The optional arguments are used to configure the query builder of the edge.

type LockPaymentOrderSelect

type LockPaymentOrderSelect struct {
	*LockPaymentOrderQuery
	// contains filtered or unexported fields
}

LockPaymentOrderSelect is the builder for selecting fields of LockPaymentOrder entities.

func (*LockPaymentOrderSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*LockPaymentOrderSelect) Bool

func (s *LockPaymentOrderSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderSelect) BoolX

func (s *LockPaymentOrderSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*LockPaymentOrderSelect) Bools

func (s *LockPaymentOrderSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderSelect) BoolsX

func (s *LockPaymentOrderSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*LockPaymentOrderSelect) Float64

func (s *LockPaymentOrderSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderSelect) Float64X

func (s *LockPaymentOrderSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*LockPaymentOrderSelect) Float64s

func (s *LockPaymentOrderSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderSelect) Float64sX

func (s *LockPaymentOrderSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*LockPaymentOrderSelect) Int

func (s *LockPaymentOrderSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderSelect) IntX

func (s *LockPaymentOrderSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*LockPaymentOrderSelect) Ints

func (s *LockPaymentOrderSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderSelect) IntsX

func (s *LockPaymentOrderSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*LockPaymentOrderSelect) Scan

func (lpos *LockPaymentOrderSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*LockPaymentOrderSelect) ScanX

func (s *LockPaymentOrderSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*LockPaymentOrderSelect) String

func (s *LockPaymentOrderSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderSelect) StringX

func (s *LockPaymentOrderSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*LockPaymentOrderSelect) Strings

func (s *LockPaymentOrderSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*LockPaymentOrderSelect) StringsX

func (s *LockPaymentOrderSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type LockPaymentOrderUpdate

type LockPaymentOrderUpdate struct {
	// contains filtered or unexported fields
}

LockPaymentOrderUpdate is the builder for updating LockPaymentOrder entities.

func (*LockPaymentOrderUpdate) AddAmount

AddAmount adds d to the "amount" field.

func (*LockPaymentOrderUpdate) AddBlockNumber

func (lpou *LockPaymentOrderUpdate) AddBlockNumber(i int64) *LockPaymentOrderUpdate

AddBlockNumber adds i to the "block_number" field.

func (*LockPaymentOrderUpdate) AddCancellationCount

func (lpou *LockPaymentOrderUpdate) AddCancellationCount(i int) *LockPaymentOrderUpdate

AddCancellationCount adds i to the "cancellation_count" field.

func (*LockPaymentOrderUpdate) AddFulfillmentIDs

func (lpou *LockPaymentOrderUpdate) AddFulfillmentIDs(ids ...uuid.UUID) *LockPaymentOrderUpdate

AddFulfillmentIDs adds the "fulfillments" edge to the LockOrderFulfillment entity by IDs.

func (*LockPaymentOrderUpdate) AddFulfillments

AddFulfillments adds the "fulfillments" edges to the LockOrderFulfillment entity.

func (*LockPaymentOrderUpdate) AddOrderPercent

AddOrderPercent adds d to the "order_percent" field.

func (*LockPaymentOrderUpdate) AddProtocolFee added in v0.0.2

AddProtocolFee adds d to the "protocol_fee" field.

func (*LockPaymentOrderUpdate) AddRate

AddRate adds d to the "rate" field.

func (*LockPaymentOrderUpdate) AddTransactionIDs

func (lpou *LockPaymentOrderUpdate) AddTransactionIDs(ids ...uuid.UUID) *LockPaymentOrderUpdate

AddTransactionIDs adds the "transactions" edge to the TransactionLog entity by IDs.

func (*LockPaymentOrderUpdate) AddTransactions

func (lpou *LockPaymentOrderUpdate) AddTransactions(t ...*TransactionLog) *LockPaymentOrderUpdate

AddTransactions adds the "transactions" edges to the TransactionLog entity.

func (*LockPaymentOrderUpdate) AppendCancellationReasons

func (lpou *LockPaymentOrderUpdate) AppendCancellationReasons(s []string) *LockPaymentOrderUpdate

AppendCancellationReasons appends s to the "cancellation_reasons" field.

func (*LockPaymentOrderUpdate) ClearFulfillments

func (lpou *LockPaymentOrderUpdate) ClearFulfillments() *LockPaymentOrderUpdate

ClearFulfillments clears all "fulfillments" edges to the LockOrderFulfillment entity.

func (*LockPaymentOrderUpdate) ClearMemo

ClearMemo clears the value of the "memo" field.

func (*LockPaymentOrderUpdate) ClearMessageHash added in v0.0.2

func (lpou *LockPaymentOrderUpdate) ClearMessageHash() *LockPaymentOrderUpdate

ClearMessageHash clears the value of the "message_hash" field.

func (*LockPaymentOrderUpdate) ClearMetadata

func (lpou *LockPaymentOrderUpdate) ClearMetadata() *LockPaymentOrderUpdate

ClearMetadata clears the value of the "metadata" field.

func (*LockPaymentOrderUpdate) ClearProvider

func (lpou *LockPaymentOrderUpdate) ClearProvider() *LockPaymentOrderUpdate

ClearProvider clears the "provider" edge to the ProviderProfile entity.

func (*LockPaymentOrderUpdate) ClearProvisionBucket

func (lpou *LockPaymentOrderUpdate) ClearProvisionBucket() *LockPaymentOrderUpdate

ClearProvisionBucket clears the "provision_bucket" edge to the ProvisionBucket entity.

func (*LockPaymentOrderUpdate) ClearSender

func (lpou *LockPaymentOrderUpdate) ClearSender() *LockPaymentOrderUpdate

ClearSender clears the value of the "sender" field.

func (*LockPaymentOrderUpdate) ClearToken

func (lpou *LockPaymentOrderUpdate) ClearToken() *LockPaymentOrderUpdate

ClearToken clears the "token" edge to the Token entity.

func (*LockPaymentOrderUpdate) ClearTransactions

func (lpou *LockPaymentOrderUpdate) ClearTransactions() *LockPaymentOrderUpdate

ClearTransactions clears all "transactions" edges to the TransactionLog entity.

func (*LockPaymentOrderUpdate) ClearTxHash

func (lpou *LockPaymentOrderUpdate) ClearTxHash() *LockPaymentOrderUpdate

ClearTxHash clears the value of the "tx_hash" field.

func (*LockPaymentOrderUpdate) Exec

func (lpou *LockPaymentOrderUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*LockPaymentOrderUpdate) ExecX

func (lpou *LockPaymentOrderUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LockPaymentOrderUpdate) Mutation

Mutation returns the LockPaymentOrderMutation object of the builder.

func (*LockPaymentOrderUpdate) RemoveFulfillmentIDs

func (lpou *LockPaymentOrderUpdate) RemoveFulfillmentIDs(ids ...uuid.UUID) *LockPaymentOrderUpdate

RemoveFulfillmentIDs removes the "fulfillments" edge to LockOrderFulfillment entities by IDs.

func (*LockPaymentOrderUpdate) RemoveFulfillments

func (lpou *LockPaymentOrderUpdate) RemoveFulfillments(l ...*LockOrderFulfillment) *LockPaymentOrderUpdate

RemoveFulfillments removes "fulfillments" edges to LockOrderFulfillment entities.

func (*LockPaymentOrderUpdate) RemoveTransactionIDs

func (lpou *LockPaymentOrderUpdate) RemoveTransactionIDs(ids ...uuid.UUID) *LockPaymentOrderUpdate

RemoveTransactionIDs removes the "transactions" edge to TransactionLog entities by IDs.

func (*LockPaymentOrderUpdate) RemoveTransactions

func (lpou *LockPaymentOrderUpdate) RemoveTransactions(t ...*TransactionLog) *LockPaymentOrderUpdate

RemoveTransactions removes "transactions" edges to TransactionLog entities.

func (*LockPaymentOrderUpdate) Save

func (lpou *LockPaymentOrderUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*LockPaymentOrderUpdate) SaveX

func (lpou *LockPaymentOrderUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*LockPaymentOrderUpdate) SetAccountIdentifier

func (lpou *LockPaymentOrderUpdate) SetAccountIdentifier(s string) *LockPaymentOrderUpdate

SetAccountIdentifier sets the "account_identifier" field.

func (*LockPaymentOrderUpdate) SetAccountName

func (lpou *LockPaymentOrderUpdate) SetAccountName(s string) *LockPaymentOrderUpdate

SetAccountName sets the "account_name" field.

func (*LockPaymentOrderUpdate) SetAmount

SetAmount sets the "amount" field.

func (*LockPaymentOrderUpdate) SetBlockNumber

func (lpou *LockPaymentOrderUpdate) SetBlockNumber(i int64) *LockPaymentOrderUpdate

SetBlockNumber sets the "block_number" field.

func (*LockPaymentOrderUpdate) SetCancellationCount

func (lpou *LockPaymentOrderUpdate) SetCancellationCount(i int) *LockPaymentOrderUpdate

SetCancellationCount sets the "cancellation_count" field.

func (*LockPaymentOrderUpdate) SetCancellationReasons

func (lpou *LockPaymentOrderUpdate) SetCancellationReasons(s []string) *LockPaymentOrderUpdate

SetCancellationReasons sets the "cancellation_reasons" field.

func (*LockPaymentOrderUpdate) SetGatewayID

func (lpou *LockPaymentOrderUpdate) SetGatewayID(s string) *LockPaymentOrderUpdate

SetGatewayID sets the "gateway_id" field.

func (*LockPaymentOrderUpdate) SetInstitution

func (lpou *LockPaymentOrderUpdate) SetInstitution(s string) *LockPaymentOrderUpdate

SetInstitution sets the "institution" field.

func (*LockPaymentOrderUpdate) SetMemo

SetMemo sets the "memo" field.

func (*LockPaymentOrderUpdate) SetMessageHash added in v0.0.2

func (lpou *LockPaymentOrderUpdate) SetMessageHash(s string) *LockPaymentOrderUpdate

SetMessageHash sets the "message_hash" field.

func (*LockPaymentOrderUpdate) SetMetadata

func (lpou *LockPaymentOrderUpdate) SetMetadata(m map[string]interface{}) *LockPaymentOrderUpdate

SetMetadata sets the "metadata" field.

func (*LockPaymentOrderUpdate) SetNillableAccountIdentifier

func (lpou *LockPaymentOrderUpdate) SetNillableAccountIdentifier(s *string) *LockPaymentOrderUpdate

SetNillableAccountIdentifier sets the "account_identifier" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableAccountName

func (lpou *LockPaymentOrderUpdate) SetNillableAccountName(s *string) *LockPaymentOrderUpdate

SetNillableAccountName sets the "account_name" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableAmount

func (lpou *LockPaymentOrderUpdate) SetNillableAmount(d *decimal.Decimal) *LockPaymentOrderUpdate

SetNillableAmount sets the "amount" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableBlockNumber

func (lpou *LockPaymentOrderUpdate) SetNillableBlockNumber(i *int64) *LockPaymentOrderUpdate

SetNillableBlockNumber sets the "block_number" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableCancellationCount

func (lpou *LockPaymentOrderUpdate) SetNillableCancellationCount(i *int) *LockPaymentOrderUpdate

SetNillableCancellationCount sets the "cancellation_count" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableGatewayID

func (lpou *LockPaymentOrderUpdate) SetNillableGatewayID(s *string) *LockPaymentOrderUpdate

SetNillableGatewayID sets the "gateway_id" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableInstitution

func (lpou *LockPaymentOrderUpdate) SetNillableInstitution(s *string) *LockPaymentOrderUpdate

SetNillableInstitution sets the "institution" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableMemo

func (lpou *LockPaymentOrderUpdate) SetNillableMemo(s *string) *LockPaymentOrderUpdate

SetNillableMemo sets the "memo" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableMessageHash added in v0.0.2

func (lpou *LockPaymentOrderUpdate) SetNillableMessageHash(s *string) *LockPaymentOrderUpdate

SetNillableMessageHash sets the "message_hash" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableOrderPercent

func (lpou *LockPaymentOrderUpdate) SetNillableOrderPercent(d *decimal.Decimal) *LockPaymentOrderUpdate

SetNillableOrderPercent sets the "order_percent" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableProtocolFee added in v0.0.2

func (lpou *LockPaymentOrderUpdate) SetNillableProtocolFee(d *decimal.Decimal) *LockPaymentOrderUpdate

SetNillableProtocolFee sets the "protocol_fee" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableProviderID

func (lpou *LockPaymentOrderUpdate) SetNillableProviderID(id *string) *LockPaymentOrderUpdate

SetNillableProviderID sets the "provider" edge to the ProviderProfile entity by ID if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableProvisionBucketID

func (lpou *LockPaymentOrderUpdate) SetNillableProvisionBucketID(id *int) *LockPaymentOrderUpdate

SetNillableProvisionBucketID sets the "provision_bucket" edge to the ProvisionBucket entity by ID if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableRate

func (lpou *LockPaymentOrderUpdate) SetNillableRate(d *decimal.Decimal) *LockPaymentOrderUpdate

SetNillableRate sets the "rate" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableSender

func (lpou *LockPaymentOrderUpdate) SetNillableSender(s *string) *LockPaymentOrderUpdate

SetNillableSender sets the "sender" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableStatus

SetNillableStatus sets the "status" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetNillableTxHash

func (lpou *LockPaymentOrderUpdate) SetNillableTxHash(s *string) *LockPaymentOrderUpdate

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*LockPaymentOrderUpdate) SetOrderPercent

SetOrderPercent sets the "order_percent" field.

func (*LockPaymentOrderUpdate) SetProtocolFee added in v0.0.2

SetProtocolFee sets the "protocol_fee" field.

func (*LockPaymentOrderUpdate) SetProvider

SetProvider sets the "provider" edge to the ProviderProfile entity.

func (*LockPaymentOrderUpdate) SetProviderID

func (lpou *LockPaymentOrderUpdate) SetProviderID(id string) *LockPaymentOrderUpdate

SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.

func (*LockPaymentOrderUpdate) SetProvisionBucket

func (lpou *LockPaymentOrderUpdate) SetProvisionBucket(p *ProvisionBucket) *LockPaymentOrderUpdate

SetProvisionBucket sets the "provision_bucket" edge to the ProvisionBucket entity.

func (*LockPaymentOrderUpdate) SetProvisionBucketID

func (lpou *LockPaymentOrderUpdate) SetProvisionBucketID(id int) *LockPaymentOrderUpdate

SetProvisionBucketID sets the "provision_bucket" edge to the ProvisionBucket entity by ID.

func (*LockPaymentOrderUpdate) SetRate

SetRate sets the "rate" field.

func (*LockPaymentOrderUpdate) SetSender

SetSender sets the "sender" field.

func (*LockPaymentOrderUpdate) SetStatus

SetStatus sets the "status" field.

func (*LockPaymentOrderUpdate) SetToken

SetToken sets the "token" edge to the Token entity.

func (*LockPaymentOrderUpdate) SetTokenID

func (lpou *LockPaymentOrderUpdate) SetTokenID(id int) *LockPaymentOrderUpdate

SetTokenID sets the "token" edge to the Token entity by ID.

func (*LockPaymentOrderUpdate) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*LockPaymentOrderUpdate) SetUpdatedAt

func (lpou *LockPaymentOrderUpdate) SetUpdatedAt(t time.Time) *LockPaymentOrderUpdate

SetUpdatedAt sets the "updated_at" field.

func (*LockPaymentOrderUpdate) Where

Where appends a list predicates to the LockPaymentOrderUpdate builder.

type LockPaymentOrderUpdateOne

type LockPaymentOrderUpdateOne struct {
	// contains filtered or unexported fields
}

LockPaymentOrderUpdateOne is the builder for updating a single LockPaymentOrder entity.

func (*LockPaymentOrderUpdateOne) AddAmount

AddAmount adds d to the "amount" field.

func (*LockPaymentOrderUpdateOne) AddBlockNumber

func (lpouo *LockPaymentOrderUpdateOne) AddBlockNumber(i int64) *LockPaymentOrderUpdateOne

AddBlockNumber adds i to the "block_number" field.

func (*LockPaymentOrderUpdateOne) AddCancellationCount

func (lpouo *LockPaymentOrderUpdateOne) AddCancellationCount(i int) *LockPaymentOrderUpdateOne

AddCancellationCount adds i to the "cancellation_count" field.

func (*LockPaymentOrderUpdateOne) AddFulfillmentIDs

func (lpouo *LockPaymentOrderUpdateOne) AddFulfillmentIDs(ids ...uuid.UUID) *LockPaymentOrderUpdateOne

AddFulfillmentIDs adds the "fulfillments" edge to the LockOrderFulfillment entity by IDs.

func (*LockPaymentOrderUpdateOne) AddFulfillments

AddFulfillments adds the "fulfillments" edges to the LockOrderFulfillment entity.

func (*LockPaymentOrderUpdateOne) AddOrderPercent

AddOrderPercent adds d to the "order_percent" field.

func (*LockPaymentOrderUpdateOne) AddProtocolFee added in v0.0.2

AddProtocolFee adds d to the "protocol_fee" field.

func (*LockPaymentOrderUpdateOne) AddRate

AddRate adds d to the "rate" field.

func (*LockPaymentOrderUpdateOne) AddTransactionIDs

func (lpouo *LockPaymentOrderUpdateOne) AddTransactionIDs(ids ...uuid.UUID) *LockPaymentOrderUpdateOne

AddTransactionIDs adds the "transactions" edge to the TransactionLog entity by IDs.

func (*LockPaymentOrderUpdateOne) AddTransactions

AddTransactions adds the "transactions" edges to the TransactionLog entity.

func (*LockPaymentOrderUpdateOne) AppendCancellationReasons

func (lpouo *LockPaymentOrderUpdateOne) AppendCancellationReasons(s []string) *LockPaymentOrderUpdateOne

AppendCancellationReasons appends s to the "cancellation_reasons" field.

func (*LockPaymentOrderUpdateOne) ClearFulfillments

func (lpouo *LockPaymentOrderUpdateOne) ClearFulfillments() *LockPaymentOrderUpdateOne

ClearFulfillments clears all "fulfillments" edges to the LockOrderFulfillment entity.

func (*LockPaymentOrderUpdateOne) ClearMemo

ClearMemo clears the value of the "memo" field.

func (*LockPaymentOrderUpdateOne) ClearMessageHash added in v0.0.2

func (lpouo *LockPaymentOrderUpdateOne) ClearMessageHash() *LockPaymentOrderUpdateOne

ClearMessageHash clears the value of the "message_hash" field.

func (*LockPaymentOrderUpdateOne) ClearMetadata

func (lpouo *LockPaymentOrderUpdateOne) ClearMetadata() *LockPaymentOrderUpdateOne

ClearMetadata clears the value of the "metadata" field.

func (*LockPaymentOrderUpdateOne) ClearProvider

func (lpouo *LockPaymentOrderUpdateOne) ClearProvider() *LockPaymentOrderUpdateOne

ClearProvider clears the "provider" edge to the ProviderProfile entity.

func (*LockPaymentOrderUpdateOne) ClearProvisionBucket

func (lpouo *LockPaymentOrderUpdateOne) ClearProvisionBucket() *LockPaymentOrderUpdateOne

ClearProvisionBucket clears the "provision_bucket" edge to the ProvisionBucket entity.

func (*LockPaymentOrderUpdateOne) ClearSender

ClearSender clears the value of the "sender" field.

func (*LockPaymentOrderUpdateOne) ClearToken

ClearToken clears the "token" edge to the Token entity.

func (*LockPaymentOrderUpdateOne) ClearTransactions

func (lpouo *LockPaymentOrderUpdateOne) ClearTransactions() *LockPaymentOrderUpdateOne

ClearTransactions clears all "transactions" edges to the TransactionLog entity.

func (*LockPaymentOrderUpdateOne) ClearTxHash

ClearTxHash clears the value of the "tx_hash" field.

func (*LockPaymentOrderUpdateOne) Exec

Exec executes the query on the entity.

func (*LockPaymentOrderUpdateOne) ExecX

func (lpouo *LockPaymentOrderUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LockPaymentOrderUpdateOne) Mutation

Mutation returns the LockPaymentOrderMutation object of the builder.

func (*LockPaymentOrderUpdateOne) RemoveFulfillmentIDs

func (lpouo *LockPaymentOrderUpdateOne) RemoveFulfillmentIDs(ids ...uuid.UUID) *LockPaymentOrderUpdateOne

RemoveFulfillmentIDs removes the "fulfillments" edge to LockOrderFulfillment entities by IDs.

func (*LockPaymentOrderUpdateOne) RemoveFulfillments

RemoveFulfillments removes "fulfillments" edges to LockOrderFulfillment entities.

func (*LockPaymentOrderUpdateOne) RemoveTransactionIDs

func (lpouo *LockPaymentOrderUpdateOne) RemoveTransactionIDs(ids ...uuid.UUID) *LockPaymentOrderUpdateOne

RemoveTransactionIDs removes the "transactions" edge to TransactionLog entities by IDs.

func (*LockPaymentOrderUpdateOne) RemoveTransactions

func (lpouo *LockPaymentOrderUpdateOne) RemoveTransactions(t ...*TransactionLog) *LockPaymentOrderUpdateOne

RemoveTransactions removes "transactions" edges to TransactionLog entities.

func (*LockPaymentOrderUpdateOne) Save

Save executes the query and returns the updated LockPaymentOrder entity.

func (*LockPaymentOrderUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*LockPaymentOrderUpdateOne) Select

func (lpouo *LockPaymentOrderUpdateOne) Select(field string, fields ...string) *LockPaymentOrderUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*LockPaymentOrderUpdateOne) SetAccountIdentifier

func (lpouo *LockPaymentOrderUpdateOne) SetAccountIdentifier(s string) *LockPaymentOrderUpdateOne

SetAccountIdentifier sets the "account_identifier" field.

func (*LockPaymentOrderUpdateOne) SetAccountName

SetAccountName sets the "account_name" field.

func (*LockPaymentOrderUpdateOne) SetAmount

SetAmount sets the "amount" field.

func (*LockPaymentOrderUpdateOne) SetBlockNumber

func (lpouo *LockPaymentOrderUpdateOne) SetBlockNumber(i int64) *LockPaymentOrderUpdateOne

SetBlockNumber sets the "block_number" field.

func (*LockPaymentOrderUpdateOne) SetCancellationCount

func (lpouo *LockPaymentOrderUpdateOne) SetCancellationCount(i int) *LockPaymentOrderUpdateOne

SetCancellationCount sets the "cancellation_count" field.

func (*LockPaymentOrderUpdateOne) SetCancellationReasons

func (lpouo *LockPaymentOrderUpdateOne) SetCancellationReasons(s []string) *LockPaymentOrderUpdateOne

SetCancellationReasons sets the "cancellation_reasons" field.

func (*LockPaymentOrderUpdateOne) SetGatewayID

SetGatewayID sets the "gateway_id" field.

func (*LockPaymentOrderUpdateOne) SetInstitution

SetInstitution sets the "institution" field.

func (*LockPaymentOrderUpdateOne) SetMemo

SetMemo sets the "memo" field.

func (*LockPaymentOrderUpdateOne) SetMessageHash added in v0.0.2

SetMessageHash sets the "message_hash" field.

func (*LockPaymentOrderUpdateOne) SetMetadata

func (lpouo *LockPaymentOrderUpdateOne) SetMetadata(m map[string]interface{}) *LockPaymentOrderUpdateOne

SetMetadata sets the "metadata" field.

func (*LockPaymentOrderUpdateOne) SetNillableAccountIdentifier

func (lpouo *LockPaymentOrderUpdateOne) SetNillableAccountIdentifier(s *string) *LockPaymentOrderUpdateOne

SetNillableAccountIdentifier sets the "account_identifier" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableAccountName

func (lpouo *LockPaymentOrderUpdateOne) SetNillableAccountName(s *string) *LockPaymentOrderUpdateOne

SetNillableAccountName sets the "account_name" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableAmount

SetNillableAmount sets the "amount" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableBlockNumber

func (lpouo *LockPaymentOrderUpdateOne) SetNillableBlockNumber(i *int64) *LockPaymentOrderUpdateOne

SetNillableBlockNumber sets the "block_number" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableCancellationCount

func (lpouo *LockPaymentOrderUpdateOne) SetNillableCancellationCount(i *int) *LockPaymentOrderUpdateOne

SetNillableCancellationCount sets the "cancellation_count" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableGatewayID

func (lpouo *LockPaymentOrderUpdateOne) SetNillableGatewayID(s *string) *LockPaymentOrderUpdateOne

SetNillableGatewayID sets the "gateway_id" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableInstitution

func (lpouo *LockPaymentOrderUpdateOne) SetNillableInstitution(s *string) *LockPaymentOrderUpdateOne

SetNillableInstitution sets the "institution" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableMemo

func (lpouo *LockPaymentOrderUpdateOne) SetNillableMemo(s *string) *LockPaymentOrderUpdateOne

SetNillableMemo sets the "memo" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableMessageHash added in v0.0.2

func (lpouo *LockPaymentOrderUpdateOne) SetNillableMessageHash(s *string) *LockPaymentOrderUpdateOne

SetNillableMessageHash sets the "message_hash" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableOrderPercent

func (lpouo *LockPaymentOrderUpdateOne) SetNillableOrderPercent(d *decimal.Decimal) *LockPaymentOrderUpdateOne

SetNillableOrderPercent sets the "order_percent" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableProtocolFee added in v0.0.2

func (lpouo *LockPaymentOrderUpdateOne) SetNillableProtocolFee(d *decimal.Decimal) *LockPaymentOrderUpdateOne

SetNillableProtocolFee sets the "protocol_fee" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableProviderID

func (lpouo *LockPaymentOrderUpdateOne) SetNillableProviderID(id *string) *LockPaymentOrderUpdateOne

SetNillableProviderID sets the "provider" edge to the ProviderProfile entity by ID if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableProvisionBucketID

func (lpouo *LockPaymentOrderUpdateOne) SetNillableProvisionBucketID(id *int) *LockPaymentOrderUpdateOne

SetNillableProvisionBucketID sets the "provision_bucket" edge to the ProvisionBucket entity by ID if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableRate

SetNillableRate sets the "rate" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableSender

func (lpouo *LockPaymentOrderUpdateOne) SetNillableSender(s *string) *LockPaymentOrderUpdateOne

SetNillableSender sets the "sender" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableStatus

SetNillableStatus sets the "status" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetNillableTxHash

func (lpouo *LockPaymentOrderUpdateOne) SetNillableTxHash(s *string) *LockPaymentOrderUpdateOne

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*LockPaymentOrderUpdateOne) SetOrderPercent

SetOrderPercent sets the "order_percent" field.

func (*LockPaymentOrderUpdateOne) SetProtocolFee added in v0.0.2

SetProtocolFee sets the "protocol_fee" field.

func (*LockPaymentOrderUpdateOne) SetProvider

SetProvider sets the "provider" edge to the ProviderProfile entity.

func (*LockPaymentOrderUpdateOne) SetProviderID

SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.

func (*LockPaymentOrderUpdateOne) SetProvisionBucket

SetProvisionBucket sets the "provision_bucket" edge to the ProvisionBucket entity.

func (*LockPaymentOrderUpdateOne) SetProvisionBucketID

func (lpouo *LockPaymentOrderUpdateOne) SetProvisionBucketID(id int) *LockPaymentOrderUpdateOne

SetProvisionBucketID sets the "provision_bucket" edge to the ProvisionBucket entity by ID.

func (*LockPaymentOrderUpdateOne) SetRate

SetRate sets the "rate" field.

func (*LockPaymentOrderUpdateOne) SetSender

SetSender sets the "sender" field.

func (*LockPaymentOrderUpdateOne) SetStatus

SetStatus sets the "status" field.

func (*LockPaymentOrderUpdateOne) SetToken

SetToken sets the "token" edge to the Token entity.

func (*LockPaymentOrderUpdateOne) SetTokenID

SetTokenID sets the "token" edge to the Token entity by ID.

func (*LockPaymentOrderUpdateOne) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*LockPaymentOrderUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LockPaymentOrderUpdateOne) Where

Where appends a list predicates to the LockPaymentOrderUpdate builder.

type LockPaymentOrderUpsert

type LockPaymentOrderUpsert struct {
	*sql.UpdateSet
}

LockPaymentOrderUpsert is the "OnConflict" setter.

func (*LockPaymentOrderUpsert) AddAmount

AddAmount adds v to the "amount" field.

func (*LockPaymentOrderUpsert) AddBlockNumber

func (u *LockPaymentOrderUpsert) AddBlockNumber(v int64) *LockPaymentOrderUpsert

AddBlockNumber adds v to the "block_number" field.

func (*LockPaymentOrderUpsert) AddCancellationCount

func (u *LockPaymentOrderUpsert) AddCancellationCount(v int) *LockPaymentOrderUpsert

AddCancellationCount adds v to the "cancellation_count" field.

func (*LockPaymentOrderUpsert) AddOrderPercent

AddOrderPercent adds v to the "order_percent" field.

func (*LockPaymentOrderUpsert) AddProtocolFee added in v0.0.2

AddProtocolFee adds v to the "protocol_fee" field.

func (*LockPaymentOrderUpsert) AddRate

AddRate adds v to the "rate" field.

func (*LockPaymentOrderUpsert) ClearMemo

ClearMemo clears the value of the "memo" field.

func (*LockPaymentOrderUpsert) ClearMessageHash added in v0.0.2

func (u *LockPaymentOrderUpsert) ClearMessageHash() *LockPaymentOrderUpsert

ClearMessageHash clears the value of the "message_hash" field.

func (*LockPaymentOrderUpsert) ClearMetadata

func (u *LockPaymentOrderUpsert) ClearMetadata() *LockPaymentOrderUpsert

ClearMetadata clears the value of the "metadata" field.

func (*LockPaymentOrderUpsert) ClearSender

ClearSender clears the value of the "sender" field.

func (*LockPaymentOrderUpsert) ClearTxHash

ClearTxHash clears the value of the "tx_hash" field.

func (*LockPaymentOrderUpsert) SetAccountIdentifier

func (u *LockPaymentOrderUpsert) SetAccountIdentifier(v string) *LockPaymentOrderUpsert

SetAccountIdentifier sets the "account_identifier" field.

func (*LockPaymentOrderUpsert) SetAccountName

SetAccountName sets the "account_name" field.

func (*LockPaymentOrderUpsert) SetAmount

SetAmount sets the "amount" field.

func (*LockPaymentOrderUpsert) SetBlockNumber

func (u *LockPaymentOrderUpsert) SetBlockNumber(v int64) *LockPaymentOrderUpsert

SetBlockNumber sets the "block_number" field.

func (*LockPaymentOrderUpsert) SetCancellationCount

func (u *LockPaymentOrderUpsert) SetCancellationCount(v int) *LockPaymentOrderUpsert

SetCancellationCount sets the "cancellation_count" field.

func (*LockPaymentOrderUpsert) SetCancellationReasons

func (u *LockPaymentOrderUpsert) SetCancellationReasons(v []string) *LockPaymentOrderUpsert

SetCancellationReasons sets the "cancellation_reasons" field.

func (*LockPaymentOrderUpsert) SetGatewayID

SetGatewayID sets the "gateway_id" field.

func (*LockPaymentOrderUpsert) SetInstitution

SetInstitution sets the "institution" field.

func (*LockPaymentOrderUpsert) SetMemo

SetMemo sets the "memo" field.

func (*LockPaymentOrderUpsert) SetMessageHash added in v0.0.2

SetMessageHash sets the "message_hash" field.

func (*LockPaymentOrderUpsert) SetMetadata

func (u *LockPaymentOrderUpsert) SetMetadata(v map[string]interface{}) *LockPaymentOrderUpsert

SetMetadata sets the "metadata" field.

func (*LockPaymentOrderUpsert) SetOrderPercent

SetOrderPercent sets the "order_percent" field.

func (*LockPaymentOrderUpsert) SetProtocolFee added in v0.0.2

SetProtocolFee sets the "protocol_fee" field.

func (*LockPaymentOrderUpsert) SetRate

SetRate sets the "rate" field.

func (*LockPaymentOrderUpsert) SetSender

SetSender sets the "sender" field.

func (*LockPaymentOrderUpsert) SetStatus

SetStatus sets the "status" field.

func (*LockPaymentOrderUpsert) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*LockPaymentOrderUpsert) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LockPaymentOrderUpsert) UpdateAccountIdentifier

func (u *LockPaymentOrderUpsert) UpdateAccountIdentifier() *LockPaymentOrderUpsert

UpdateAccountIdentifier sets the "account_identifier" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateAccountName

func (u *LockPaymentOrderUpsert) UpdateAccountName() *LockPaymentOrderUpsert

UpdateAccountName sets the "account_name" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateAmount

UpdateAmount sets the "amount" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateBlockNumber

func (u *LockPaymentOrderUpsert) UpdateBlockNumber() *LockPaymentOrderUpsert

UpdateBlockNumber sets the "block_number" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateCancellationCount

func (u *LockPaymentOrderUpsert) UpdateCancellationCount() *LockPaymentOrderUpsert

UpdateCancellationCount sets the "cancellation_count" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateCancellationReasons

func (u *LockPaymentOrderUpsert) UpdateCancellationReasons() *LockPaymentOrderUpsert

UpdateCancellationReasons sets the "cancellation_reasons" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateGatewayID

func (u *LockPaymentOrderUpsert) UpdateGatewayID() *LockPaymentOrderUpsert

UpdateGatewayID sets the "gateway_id" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateInstitution

func (u *LockPaymentOrderUpsert) UpdateInstitution() *LockPaymentOrderUpsert

UpdateInstitution sets the "institution" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateMemo

UpdateMemo sets the "memo" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateMessageHash added in v0.0.2

func (u *LockPaymentOrderUpsert) UpdateMessageHash() *LockPaymentOrderUpsert

UpdateMessageHash sets the "message_hash" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateMetadata

func (u *LockPaymentOrderUpsert) UpdateMetadata() *LockPaymentOrderUpsert

UpdateMetadata sets the "metadata" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateOrderPercent

func (u *LockPaymentOrderUpsert) UpdateOrderPercent() *LockPaymentOrderUpsert

UpdateOrderPercent sets the "order_percent" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateProtocolFee added in v0.0.2

func (u *LockPaymentOrderUpsert) UpdateProtocolFee() *LockPaymentOrderUpsert

UpdateProtocolFee sets the "protocol_fee" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateRate

UpdateRate sets the "rate" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateSender

UpdateSender sets the "sender" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateTxHash

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

func (*LockPaymentOrderUpsert) UpdateUpdatedAt

func (u *LockPaymentOrderUpsert) UpdateUpdatedAt() *LockPaymentOrderUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type LockPaymentOrderUpsertBulk

type LockPaymentOrderUpsertBulk struct {
	// contains filtered or unexported fields
}

LockPaymentOrderUpsertBulk is the builder for "upsert"-ing a bulk of LockPaymentOrder nodes.

func (*LockPaymentOrderUpsertBulk) AddAmount

AddAmount adds v to the "amount" field.

func (*LockPaymentOrderUpsertBulk) AddBlockNumber

AddBlockNumber adds v to the "block_number" field.

func (*LockPaymentOrderUpsertBulk) AddCancellationCount

func (u *LockPaymentOrderUpsertBulk) AddCancellationCount(v int) *LockPaymentOrderUpsertBulk

AddCancellationCount adds v to the "cancellation_count" field.

func (*LockPaymentOrderUpsertBulk) AddOrderPercent

AddOrderPercent adds v to the "order_percent" field.

func (*LockPaymentOrderUpsertBulk) AddProtocolFee added in v0.0.2

AddProtocolFee adds v to the "protocol_fee" field.

func (*LockPaymentOrderUpsertBulk) AddRate

AddRate adds v to the "rate" field.

func (*LockPaymentOrderUpsertBulk) ClearMemo

ClearMemo clears the value of the "memo" field.

func (*LockPaymentOrderUpsertBulk) ClearMessageHash added in v0.0.2

ClearMessageHash clears the value of the "message_hash" field.

func (*LockPaymentOrderUpsertBulk) ClearMetadata

ClearMetadata clears the value of the "metadata" field.

func (*LockPaymentOrderUpsertBulk) ClearSender

ClearSender clears the value of the "sender" field.

func (*LockPaymentOrderUpsertBulk) ClearTxHash

ClearTxHash clears the value of the "tx_hash" field.

func (*LockPaymentOrderUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*LockPaymentOrderUpsertBulk) Exec

Exec executes the query.

func (*LockPaymentOrderUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*LockPaymentOrderUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.LockPaymentOrder.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*LockPaymentOrderUpsertBulk) SetAccountIdentifier

func (u *LockPaymentOrderUpsertBulk) SetAccountIdentifier(v string) *LockPaymentOrderUpsertBulk

SetAccountIdentifier sets the "account_identifier" field.

func (*LockPaymentOrderUpsertBulk) SetAccountName

SetAccountName sets the "account_name" field.

func (*LockPaymentOrderUpsertBulk) SetAmount

SetAmount sets the "amount" field.

func (*LockPaymentOrderUpsertBulk) SetBlockNumber

SetBlockNumber sets the "block_number" field.

func (*LockPaymentOrderUpsertBulk) SetCancellationCount

func (u *LockPaymentOrderUpsertBulk) SetCancellationCount(v int) *LockPaymentOrderUpsertBulk

SetCancellationCount sets the "cancellation_count" field.

func (*LockPaymentOrderUpsertBulk) SetCancellationReasons

func (u *LockPaymentOrderUpsertBulk) SetCancellationReasons(v []string) *LockPaymentOrderUpsertBulk

SetCancellationReasons sets the "cancellation_reasons" field.

func (*LockPaymentOrderUpsertBulk) SetGatewayID

SetGatewayID sets the "gateway_id" field.

func (*LockPaymentOrderUpsertBulk) SetInstitution

SetInstitution sets the "institution" field.

func (*LockPaymentOrderUpsertBulk) SetMemo

SetMemo sets the "memo" field.

func (*LockPaymentOrderUpsertBulk) SetMessageHash added in v0.0.2

SetMessageHash sets the "message_hash" field.

func (*LockPaymentOrderUpsertBulk) SetMetadata

func (u *LockPaymentOrderUpsertBulk) SetMetadata(v map[string]interface{}) *LockPaymentOrderUpsertBulk

SetMetadata sets the "metadata" field.

func (*LockPaymentOrderUpsertBulk) SetOrderPercent

SetOrderPercent sets the "order_percent" field.

func (*LockPaymentOrderUpsertBulk) SetProtocolFee added in v0.0.2

SetProtocolFee sets the "protocol_fee" field.

func (*LockPaymentOrderUpsertBulk) SetRate

SetRate sets the "rate" field.

func (*LockPaymentOrderUpsertBulk) SetSender

SetSender sets the "sender" field.

func (*LockPaymentOrderUpsertBulk) SetStatus

SetStatus sets the "status" field.

func (*LockPaymentOrderUpsertBulk) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*LockPaymentOrderUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LockPaymentOrderUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the LockPaymentOrderCreateBulk.OnConflict documentation for more info.

func (*LockPaymentOrderUpsertBulk) UpdateAccountIdentifier

func (u *LockPaymentOrderUpsertBulk) UpdateAccountIdentifier() *LockPaymentOrderUpsertBulk

UpdateAccountIdentifier sets the "account_identifier" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateAccountName

UpdateAccountName sets the "account_name" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateAmount

UpdateAmount sets the "amount" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateBlockNumber

UpdateBlockNumber sets the "block_number" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateCancellationCount

func (u *LockPaymentOrderUpsertBulk) UpdateCancellationCount() *LockPaymentOrderUpsertBulk

UpdateCancellationCount sets the "cancellation_count" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateCancellationReasons

func (u *LockPaymentOrderUpsertBulk) UpdateCancellationReasons() *LockPaymentOrderUpsertBulk

UpdateCancellationReasons sets the "cancellation_reasons" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateGatewayID

UpdateGatewayID sets the "gateway_id" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateInstitution

UpdateInstitution sets the "institution" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateMemo

UpdateMemo sets the "memo" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateMessageHash added in v0.0.2

UpdateMessageHash sets the "message_hash" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateMetadata

UpdateMetadata sets the "metadata" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.LockPaymentOrder.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(lockpaymentorder.FieldID)
		}),
	).
	Exec(ctx)

func (*LockPaymentOrderUpsertBulk) UpdateOrderPercent

func (u *LockPaymentOrderUpsertBulk) UpdateOrderPercent() *LockPaymentOrderUpsertBulk

UpdateOrderPercent sets the "order_percent" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateProtocolFee added in v0.0.2

UpdateProtocolFee sets the "protocol_fee" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateRate

UpdateRate sets the "rate" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateSender

UpdateSender sets the "sender" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateTxHash

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

func (*LockPaymentOrderUpsertBulk) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type LockPaymentOrderUpsertOne

type LockPaymentOrderUpsertOne struct {
	// contains filtered or unexported fields
}

LockPaymentOrderUpsertOne is the builder for "upsert"-ing

one LockPaymentOrder node.

func (*LockPaymentOrderUpsertOne) AddAmount

AddAmount adds v to the "amount" field.

func (*LockPaymentOrderUpsertOne) AddBlockNumber

AddBlockNumber adds v to the "block_number" field.

func (*LockPaymentOrderUpsertOne) AddCancellationCount

func (u *LockPaymentOrderUpsertOne) AddCancellationCount(v int) *LockPaymentOrderUpsertOne

AddCancellationCount adds v to the "cancellation_count" field.

func (*LockPaymentOrderUpsertOne) AddOrderPercent

AddOrderPercent adds v to the "order_percent" field.

func (*LockPaymentOrderUpsertOne) AddProtocolFee added in v0.0.2

AddProtocolFee adds v to the "protocol_fee" field.

func (*LockPaymentOrderUpsertOne) AddRate

AddRate adds v to the "rate" field.

func (*LockPaymentOrderUpsertOne) ClearMemo

ClearMemo clears the value of the "memo" field.

func (*LockPaymentOrderUpsertOne) ClearMessageHash added in v0.0.2

ClearMessageHash clears the value of the "message_hash" field.

func (*LockPaymentOrderUpsertOne) ClearMetadata

ClearMetadata clears the value of the "metadata" field.

func (*LockPaymentOrderUpsertOne) ClearSender

ClearSender clears the value of the "sender" field.

func (*LockPaymentOrderUpsertOne) ClearTxHash

ClearTxHash clears the value of the "tx_hash" field.

func (*LockPaymentOrderUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*LockPaymentOrderUpsertOne) Exec

Exec executes the query.

func (*LockPaymentOrderUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*LockPaymentOrderUpsertOne) ID

func (u *LockPaymentOrderUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*LockPaymentOrderUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*LockPaymentOrderUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.LockPaymentOrder.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*LockPaymentOrderUpsertOne) SetAccountIdentifier

func (u *LockPaymentOrderUpsertOne) SetAccountIdentifier(v string) *LockPaymentOrderUpsertOne

SetAccountIdentifier sets the "account_identifier" field.

func (*LockPaymentOrderUpsertOne) SetAccountName

SetAccountName sets the "account_name" field.

func (*LockPaymentOrderUpsertOne) SetAmount

SetAmount sets the "amount" field.

func (*LockPaymentOrderUpsertOne) SetBlockNumber

SetBlockNumber sets the "block_number" field.

func (*LockPaymentOrderUpsertOne) SetCancellationCount

func (u *LockPaymentOrderUpsertOne) SetCancellationCount(v int) *LockPaymentOrderUpsertOne

SetCancellationCount sets the "cancellation_count" field.

func (*LockPaymentOrderUpsertOne) SetCancellationReasons

func (u *LockPaymentOrderUpsertOne) SetCancellationReasons(v []string) *LockPaymentOrderUpsertOne

SetCancellationReasons sets the "cancellation_reasons" field.

func (*LockPaymentOrderUpsertOne) SetGatewayID

SetGatewayID sets the "gateway_id" field.

func (*LockPaymentOrderUpsertOne) SetInstitution

SetInstitution sets the "institution" field.

func (*LockPaymentOrderUpsertOne) SetMemo

SetMemo sets the "memo" field.

func (*LockPaymentOrderUpsertOne) SetMessageHash added in v0.0.2

SetMessageHash sets the "message_hash" field.

func (*LockPaymentOrderUpsertOne) SetMetadata

func (u *LockPaymentOrderUpsertOne) SetMetadata(v map[string]interface{}) *LockPaymentOrderUpsertOne

SetMetadata sets the "metadata" field.

func (*LockPaymentOrderUpsertOne) SetOrderPercent

SetOrderPercent sets the "order_percent" field.

func (*LockPaymentOrderUpsertOne) SetProtocolFee added in v0.0.2

SetProtocolFee sets the "protocol_fee" field.

func (*LockPaymentOrderUpsertOne) SetRate

SetRate sets the "rate" field.

func (*LockPaymentOrderUpsertOne) SetSender

SetSender sets the "sender" field.

func (*LockPaymentOrderUpsertOne) SetStatus

SetStatus sets the "status" field.

func (*LockPaymentOrderUpsertOne) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*LockPaymentOrderUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*LockPaymentOrderUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the LockPaymentOrderCreate.OnConflict documentation for more info.

func (*LockPaymentOrderUpsertOne) UpdateAccountIdentifier

func (u *LockPaymentOrderUpsertOne) UpdateAccountIdentifier() *LockPaymentOrderUpsertOne

UpdateAccountIdentifier sets the "account_identifier" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateAccountName

func (u *LockPaymentOrderUpsertOne) UpdateAccountName() *LockPaymentOrderUpsertOne

UpdateAccountName sets the "account_name" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateAmount

UpdateAmount sets the "amount" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateBlockNumber

func (u *LockPaymentOrderUpsertOne) UpdateBlockNumber() *LockPaymentOrderUpsertOne

UpdateBlockNumber sets the "block_number" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateCancellationCount

func (u *LockPaymentOrderUpsertOne) UpdateCancellationCount() *LockPaymentOrderUpsertOne

UpdateCancellationCount sets the "cancellation_count" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateCancellationReasons

func (u *LockPaymentOrderUpsertOne) UpdateCancellationReasons() *LockPaymentOrderUpsertOne

UpdateCancellationReasons sets the "cancellation_reasons" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateGatewayID

UpdateGatewayID sets the "gateway_id" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateInstitution

func (u *LockPaymentOrderUpsertOne) UpdateInstitution() *LockPaymentOrderUpsertOne

UpdateInstitution sets the "institution" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateMemo

UpdateMemo sets the "memo" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateMessageHash added in v0.0.2

func (u *LockPaymentOrderUpsertOne) UpdateMessageHash() *LockPaymentOrderUpsertOne

UpdateMessageHash sets the "message_hash" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateMetadata

UpdateMetadata sets the "metadata" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.LockPaymentOrder.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(lockpaymentorder.FieldID)
		}),
	).
	Exec(ctx)

func (*LockPaymentOrderUpsertOne) UpdateOrderPercent

func (u *LockPaymentOrderUpsertOne) UpdateOrderPercent() *LockPaymentOrderUpsertOne

UpdateOrderPercent sets the "order_percent" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateProtocolFee added in v0.0.2

func (u *LockPaymentOrderUpsertOne) UpdateProtocolFee() *LockPaymentOrderUpsertOne

UpdateProtocolFee sets the "protocol_fee" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateRate

UpdateRate sets the "rate" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateSender

UpdateSender sets the "sender" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateTxHash

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

func (*LockPaymentOrderUpsertOne) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type LockPaymentOrders

type LockPaymentOrders []*LockPaymentOrder

LockPaymentOrders is a parsable slice of LockPaymentOrder.

type MutateFunc

type MutateFunc = ent.MutateFunc

ent aliases to avoid import conflicts in user's code.

type Mutation

type Mutation = ent.Mutation

ent aliases to avoid import conflicts in user's code.

type Mutator

type Mutator = ent.Mutator

ent aliases to avoid import conflicts in user's code.

type Network

type Network struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// ChainID holds the value of the "chain_id" field.
	ChainID int64 `json:"chain_id,omitempty"`
	// Identifier holds the value of the "identifier" field.
	Identifier string `json:"identifier,omitempty"`
	// RPCEndpoint holds the value of the "rpc_endpoint" field.
	RPCEndpoint string `json:"rpc_endpoint,omitempty"`
	// GatewayContractAddress holds the value of the "gateway_contract_address" field.
	GatewayContractAddress string `json:"gateway_contract_address,omitempty"`
	// BlockTime holds the value of the "block_time" field.
	BlockTime decimal.Decimal `json:"block_time,omitempty"`
	// IsTestnet holds the value of the "is_testnet" field.
	IsTestnet bool `json:"is_testnet,omitempty"`
	// BundlerURL holds the value of the "bundler_url" field.
	BundlerURL string `json:"bundler_url,omitempty"`
	// PaymasterURL holds the value of the "paymaster_url" field.
	PaymasterURL string `json:"paymaster_url,omitempty"`
	// Fee holds the value of the "fee" field.
	Fee decimal.Decimal `json:"fee,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the NetworkQuery when eager-loading is set.
	Edges NetworkEdges `json:"edges"`
	// contains filtered or unexported fields
}

Network is the model entity for the Network schema.

func (*Network) QueryPaymentWebhook

func (n *Network) QueryPaymentWebhook() *PaymentWebhookQuery

QueryPaymentWebhook queries the "payment_webhook" edge of the Network entity.

func (*Network) QueryTokens

func (n *Network) QueryTokens() *TokenQuery

QueryTokens queries the "tokens" edge of the Network entity.

func (*Network) String

func (n *Network) String() string

String implements the fmt.Stringer.

func (*Network) Unwrap

func (n *Network) Unwrap() *Network

Unwrap unwraps the Network entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Network) Update

func (n *Network) Update() *NetworkUpdateOne

Update returns a builder for updating this Network. Note that you need to call Network.Unwrap() before calling this method if this Network was returned from a transaction, and the transaction was committed or rolled back.

func (*Network) Value

func (n *Network) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Network. This includes values selected through modifiers, order, etc.

type NetworkClient

type NetworkClient struct {
	// contains filtered or unexported fields
}

NetworkClient is a client for the Network schema.

func NewNetworkClient

func NewNetworkClient(c config) *NetworkClient

NewNetworkClient returns a client for the Network from the given config.

func (*NetworkClient) Create

func (c *NetworkClient) Create() *NetworkCreate

Create returns a builder for creating a Network entity.

func (*NetworkClient) CreateBulk

func (c *NetworkClient) CreateBulk(builders ...*NetworkCreate) *NetworkCreateBulk

CreateBulk returns a builder for creating a bulk of Network entities.

func (*NetworkClient) Delete

func (c *NetworkClient) Delete() *NetworkDelete

Delete returns a delete builder for Network.

func (*NetworkClient) DeleteOne

func (c *NetworkClient) DeleteOne(n *Network) *NetworkDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*NetworkClient) DeleteOneID

func (c *NetworkClient) DeleteOneID(id int) *NetworkDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*NetworkClient) Get

func (c *NetworkClient) Get(ctx context.Context, id int) (*Network, error)

Get returns a Network entity by its id.

func (*NetworkClient) GetX

func (c *NetworkClient) GetX(ctx context.Context, id int) *Network

GetX is like Get, but panics if an error occurs.

func (*NetworkClient) Hooks

func (c *NetworkClient) Hooks() []Hook

Hooks returns the client hooks.

func (*NetworkClient) Intercept

func (c *NetworkClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `network.Intercept(f(g(h())))`.

func (*NetworkClient) Interceptors

func (c *NetworkClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*NetworkClient) MapCreateBulk

func (c *NetworkClient) MapCreateBulk(slice any, setFunc func(*NetworkCreate, int)) *NetworkCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*NetworkClient) Query

func (c *NetworkClient) Query() *NetworkQuery

Query returns a query builder for Network.

func (*NetworkClient) QueryPaymentWebhook

func (c *NetworkClient) QueryPaymentWebhook(n *Network) *PaymentWebhookQuery

QueryPaymentWebhook queries the payment_webhook edge of a Network.

func (*NetworkClient) QueryTokens

func (c *NetworkClient) QueryTokens(n *Network) *TokenQuery

QueryTokens queries the tokens edge of a Network.

func (*NetworkClient) Update

func (c *NetworkClient) Update() *NetworkUpdate

Update returns an update builder for Network.

func (*NetworkClient) UpdateOne

func (c *NetworkClient) UpdateOne(n *Network) *NetworkUpdateOne

UpdateOne returns an update builder for the given entity.

func (*NetworkClient) UpdateOneID

func (c *NetworkClient) UpdateOneID(id int) *NetworkUpdateOne

UpdateOneID returns an update builder for the given id.

func (*NetworkClient) Use

func (c *NetworkClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `network.Hooks(f(g(h())))`.

type NetworkCreate

type NetworkCreate struct {
	// contains filtered or unexported fields
}

NetworkCreate is the builder for creating a Network entity.

func (*NetworkCreate) AddTokenIDs

func (nc *NetworkCreate) AddTokenIDs(ids ...int) *NetworkCreate

AddTokenIDs adds the "tokens" edge to the Token entity by IDs.

func (*NetworkCreate) AddTokens

func (nc *NetworkCreate) AddTokens(t ...*Token) *NetworkCreate

AddTokens adds the "tokens" edges to the Token entity.

func (*NetworkCreate) Exec

func (nc *NetworkCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*NetworkCreate) ExecX

func (nc *NetworkCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*NetworkCreate) Mutation

func (nc *NetworkCreate) Mutation() *NetworkMutation

Mutation returns the NetworkMutation object of the builder.

func (*NetworkCreate) OnConflict

func (nc *NetworkCreate) OnConflict(opts ...sql.ConflictOption) *NetworkUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Network.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.NetworkUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*NetworkCreate) OnConflictColumns

func (nc *NetworkCreate) OnConflictColumns(columns ...string) *NetworkUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Network.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*NetworkCreate) Save

func (nc *NetworkCreate) Save(ctx context.Context) (*Network, error)

Save creates the Network in the database.

func (*NetworkCreate) SaveX

func (nc *NetworkCreate) SaveX(ctx context.Context) *Network

SaveX calls Save and panics if Save returns an error.

func (*NetworkCreate) SetBlockTime

func (nc *NetworkCreate) SetBlockTime(d decimal.Decimal) *NetworkCreate

SetBlockTime sets the "block_time" field.

func (*NetworkCreate) SetBundlerURL

func (nc *NetworkCreate) SetBundlerURL(s string) *NetworkCreate

SetBundlerURL sets the "bundler_url" field.

func (*NetworkCreate) SetChainID

func (nc *NetworkCreate) SetChainID(i int64) *NetworkCreate

SetChainID sets the "chain_id" field.

func (*NetworkCreate) SetCreatedAt

func (nc *NetworkCreate) SetCreatedAt(t time.Time) *NetworkCreate

SetCreatedAt sets the "created_at" field.

func (*NetworkCreate) SetFee

func (nc *NetworkCreate) SetFee(d decimal.Decimal) *NetworkCreate

SetFee sets the "fee" field.

func (*NetworkCreate) SetGatewayContractAddress

func (nc *NetworkCreate) SetGatewayContractAddress(s string) *NetworkCreate

SetGatewayContractAddress sets the "gateway_contract_address" field.

func (*NetworkCreate) SetIdentifier

func (nc *NetworkCreate) SetIdentifier(s string) *NetworkCreate

SetIdentifier sets the "identifier" field.

func (*NetworkCreate) SetIsTestnet

func (nc *NetworkCreate) SetIsTestnet(b bool) *NetworkCreate

SetIsTestnet sets the "is_testnet" field.

func (*NetworkCreate) SetNillableBundlerURL

func (nc *NetworkCreate) SetNillableBundlerURL(s *string) *NetworkCreate

SetNillableBundlerURL sets the "bundler_url" field if the given value is not nil.

func (*NetworkCreate) SetNillableCreatedAt

func (nc *NetworkCreate) SetNillableCreatedAt(t *time.Time) *NetworkCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*NetworkCreate) SetNillableGatewayContractAddress

func (nc *NetworkCreate) SetNillableGatewayContractAddress(s *string) *NetworkCreate

SetNillableGatewayContractAddress sets the "gateway_contract_address" field if the given value is not nil.

func (*NetworkCreate) SetNillablePaymasterURL

func (nc *NetworkCreate) SetNillablePaymasterURL(s *string) *NetworkCreate

SetNillablePaymasterURL sets the "paymaster_url" field if the given value is not nil.

func (*NetworkCreate) SetNillablePaymentWebhookID

func (nc *NetworkCreate) SetNillablePaymentWebhookID(id *uuid.UUID) *NetworkCreate

SetNillablePaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by ID if the given value is not nil.

func (*NetworkCreate) SetNillableUpdatedAt

func (nc *NetworkCreate) SetNillableUpdatedAt(t *time.Time) *NetworkCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*NetworkCreate) SetPaymasterURL

func (nc *NetworkCreate) SetPaymasterURL(s string) *NetworkCreate

SetPaymasterURL sets the "paymaster_url" field.

func (*NetworkCreate) SetPaymentWebhook

func (nc *NetworkCreate) SetPaymentWebhook(p *PaymentWebhook) *NetworkCreate

SetPaymentWebhook sets the "payment_webhook" edge to the PaymentWebhook entity.

func (*NetworkCreate) SetPaymentWebhookID

func (nc *NetworkCreate) SetPaymentWebhookID(id uuid.UUID) *NetworkCreate

SetPaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by ID.

func (*NetworkCreate) SetRPCEndpoint

func (nc *NetworkCreate) SetRPCEndpoint(s string) *NetworkCreate

SetRPCEndpoint sets the "rpc_endpoint" field.

func (*NetworkCreate) SetUpdatedAt

func (nc *NetworkCreate) SetUpdatedAt(t time.Time) *NetworkCreate

SetUpdatedAt sets the "updated_at" field.

type NetworkCreateBulk

type NetworkCreateBulk struct {
	// contains filtered or unexported fields
}

NetworkCreateBulk is the builder for creating many Network entities in bulk.

func (*NetworkCreateBulk) Exec

func (ncb *NetworkCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*NetworkCreateBulk) ExecX

func (ncb *NetworkCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*NetworkCreateBulk) OnConflict

func (ncb *NetworkCreateBulk) OnConflict(opts ...sql.ConflictOption) *NetworkUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Network.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.NetworkUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*NetworkCreateBulk) OnConflictColumns

func (ncb *NetworkCreateBulk) OnConflictColumns(columns ...string) *NetworkUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Network.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*NetworkCreateBulk) Save

func (ncb *NetworkCreateBulk) Save(ctx context.Context) ([]*Network, error)

Save creates the Network entities in the database.

func (*NetworkCreateBulk) SaveX

func (ncb *NetworkCreateBulk) SaveX(ctx context.Context) []*Network

SaveX is like Save, but panics if an error occurs.

type NetworkDelete

type NetworkDelete struct {
	// contains filtered or unexported fields
}

NetworkDelete is the builder for deleting a Network entity.

func (*NetworkDelete) Exec

func (nd *NetworkDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*NetworkDelete) ExecX

func (nd *NetworkDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*NetworkDelete) Where

func (nd *NetworkDelete) Where(ps ...predicate.Network) *NetworkDelete

Where appends a list predicates to the NetworkDelete builder.

type NetworkDeleteOne

type NetworkDeleteOne struct {
	// contains filtered or unexported fields
}

NetworkDeleteOne is the builder for deleting a single Network entity.

func (*NetworkDeleteOne) Exec

func (ndo *NetworkDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*NetworkDeleteOne) ExecX

func (ndo *NetworkDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*NetworkDeleteOne) Where

Where appends a list predicates to the NetworkDelete builder.

type NetworkEdges

type NetworkEdges struct {
	// Tokens holds the value of the tokens edge.
	Tokens []*Token `json:"tokens,omitempty"`
	// PaymentWebhook holds the value of the payment_webhook edge.
	PaymentWebhook *PaymentWebhook `json:"payment_webhook,omitempty"`
	// contains filtered or unexported fields
}

NetworkEdges holds the relations/edges for other nodes in the graph.

func (NetworkEdges) PaymentWebhookOrErr

func (e NetworkEdges) PaymentWebhookOrErr() (*PaymentWebhook, error)

PaymentWebhookOrErr returns the PaymentWebhook value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (NetworkEdges) TokensOrErr

func (e NetworkEdges) TokensOrErr() ([]*Token, error)

TokensOrErr returns the Tokens value or an error if the edge was not loaded in eager-loading.

type NetworkGroupBy

type NetworkGroupBy struct {
	// contains filtered or unexported fields
}

NetworkGroupBy is the group-by builder for Network entities.

func (*NetworkGroupBy) Aggregate

func (ngb *NetworkGroupBy) Aggregate(fns ...AggregateFunc) *NetworkGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*NetworkGroupBy) Bool

func (s *NetworkGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*NetworkGroupBy) BoolX

func (s *NetworkGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*NetworkGroupBy) Bools

func (s *NetworkGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*NetworkGroupBy) BoolsX

func (s *NetworkGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*NetworkGroupBy) Float64

func (s *NetworkGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*NetworkGroupBy) Float64X

func (s *NetworkGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*NetworkGroupBy) Float64s

func (s *NetworkGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*NetworkGroupBy) Float64sX

func (s *NetworkGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*NetworkGroupBy) Int

func (s *NetworkGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*NetworkGroupBy) IntX

func (s *NetworkGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*NetworkGroupBy) Ints

func (s *NetworkGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*NetworkGroupBy) IntsX

func (s *NetworkGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*NetworkGroupBy) Scan

func (ngb *NetworkGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*NetworkGroupBy) ScanX

func (s *NetworkGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*NetworkGroupBy) String

func (s *NetworkGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*NetworkGroupBy) StringX

func (s *NetworkGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*NetworkGroupBy) Strings

func (s *NetworkGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*NetworkGroupBy) StringsX

func (s *NetworkGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type NetworkMutation

type NetworkMutation struct {
	// contains filtered or unexported fields
}

NetworkMutation represents an operation that mutates the Network nodes in the graph.

func (*NetworkMutation) AddBlockTime

func (m *NetworkMutation) AddBlockTime(d decimal.Decimal)

AddBlockTime adds d to the "block_time" field.

func (*NetworkMutation) AddChainID

func (m *NetworkMutation) AddChainID(i int64)

AddChainID adds i to the "chain_id" field.

func (*NetworkMutation) AddFee

func (m *NetworkMutation) AddFee(d decimal.Decimal)

AddFee adds d to the "fee" field.

func (*NetworkMutation) AddField

func (m *NetworkMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*NetworkMutation) AddTokenIDs

func (m *NetworkMutation) AddTokenIDs(ids ...int)

AddTokenIDs adds the "tokens" edge to the Token entity by ids.

func (*NetworkMutation) AddedBlockTime

func (m *NetworkMutation) AddedBlockTime() (r decimal.Decimal, exists bool)

AddedBlockTime returns the value that was added to the "block_time" field in this mutation.

func (*NetworkMutation) AddedChainID

func (m *NetworkMutation) AddedChainID() (r int64, exists bool)

AddedChainID returns the value that was added to the "chain_id" field in this mutation.

func (*NetworkMutation) AddedEdges

func (m *NetworkMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*NetworkMutation) AddedFee

func (m *NetworkMutation) AddedFee() (r decimal.Decimal, exists bool)

AddedFee returns the value that was added to the "fee" field in this mutation.

func (*NetworkMutation) AddedField

func (m *NetworkMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*NetworkMutation) AddedFields

func (m *NetworkMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*NetworkMutation) AddedIDs

func (m *NetworkMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*NetworkMutation) BlockTime

func (m *NetworkMutation) BlockTime() (r decimal.Decimal, exists bool)

BlockTime returns the value of the "block_time" field in the mutation.

func (*NetworkMutation) BundlerURL

func (m *NetworkMutation) BundlerURL() (r string, exists bool)

BundlerURL returns the value of the "bundler_url" field in the mutation.

func (*NetworkMutation) BundlerURLCleared

func (m *NetworkMutation) BundlerURLCleared() bool

BundlerURLCleared returns if the "bundler_url" field was cleared in this mutation.

func (*NetworkMutation) ChainID

func (m *NetworkMutation) ChainID() (r int64, exists bool)

ChainID returns the value of the "chain_id" field in the mutation.

func (*NetworkMutation) ClearBundlerURL

func (m *NetworkMutation) ClearBundlerURL()

ClearBundlerURL clears the value of the "bundler_url" field.

func (*NetworkMutation) ClearEdge

func (m *NetworkMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*NetworkMutation) ClearField

func (m *NetworkMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*NetworkMutation) ClearPaymasterURL

func (m *NetworkMutation) ClearPaymasterURL()

ClearPaymasterURL clears the value of the "paymaster_url" field.

func (*NetworkMutation) ClearPaymentWebhook

func (m *NetworkMutation) ClearPaymentWebhook()

ClearPaymentWebhook clears the "payment_webhook" edge to the PaymentWebhook entity.

func (*NetworkMutation) ClearTokens

func (m *NetworkMutation) ClearTokens()

ClearTokens clears the "tokens" edge to the Token entity.

func (*NetworkMutation) ClearedEdges

func (m *NetworkMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*NetworkMutation) ClearedFields

func (m *NetworkMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (NetworkMutation) Client

func (m NetworkMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*NetworkMutation) CreatedAt

func (m *NetworkMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*NetworkMutation) EdgeCleared

func (m *NetworkMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*NetworkMutation) Fee

func (m *NetworkMutation) Fee() (r decimal.Decimal, exists bool)

Fee returns the value of the "fee" field in the mutation.

func (*NetworkMutation) Field

func (m *NetworkMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*NetworkMutation) FieldCleared

func (m *NetworkMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*NetworkMutation) Fields

func (m *NetworkMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*NetworkMutation) GatewayContractAddress

func (m *NetworkMutation) GatewayContractAddress() (r string, exists bool)

GatewayContractAddress returns the value of the "gateway_contract_address" field in the mutation.

func (*NetworkMutation) ID

func (m *NetworkMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*NetworkMutation) IDs

func (m *NetworkMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*NetworkMutation) Identifier

func (m *NetworkMutation) Identifier() (r string, exists bool)

Identifier returns the value of the "identifier" field in the mutation.

func (*NetworkMutation) IsTestnet

func (m *NetworkMutation) IsTestnet() (r bool, exists bool)

IsTestnet returns the value of the "is_testnet" field in the mutation.

func (*NetworkMutation) OldBlockTime

func (m *NetworkMutation) OldBlockTime(ctx context.Context) (v decimal.Decimal, err error)

OldBlockTime returns the old "block_time" field's value of the Network entity. If the Network object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*NetworkMutation) OldBundlerURL

func (m *NetworkMutation) OldBundlerURL(ctx context.Context) (v string, err error)

OldBundlerURL returns the old "bundler_url" field's value of the Network entity. If the Network object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*NetworkMutation) OldChainID

func (m *NetworkMutation) OldChainID(ctx context.Context) (v int64, err error)

OldChainID returns the old "chain_id" field's value of the Network entity. If the Network object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*NetworkMutation) OldCreatedAt

func (m *NetworkMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Network entity. If the Network object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*NetworkMutation) OldFee

func (m *NetworkMutation) OldFee(ctx context.Context) (v decimal.Decimal, err error)

OldFee returns the old "fee" field's value of the Network entity. If the Network object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*NetworkMutation) OldField

func (m *NetworkMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*NetworkMutation) OldGatewayContractAddress

func (m *NetworkMutation) OldGatewayContractAddress(ctx context.Context) (v string, err error)

OldGatewayContractAddress returns the old "gateway_contract_address" field's value of the Network entity. If the Network object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*NetworkMutation) OldIdentifier

func (m *NetworkMutation) OldIdentifier(ctx context.Context) (v string, err error)

OldIdentifier returns the old "identifier" field's value of the Network entity. If the Network object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*NetworkMutation) OldIsTestnet

func (m *NetworkMutation) OldIsTestnet(ctx context.Context) (v bool, err error)

OldIsTestnet returns the old "is_testnet" field's value of the Network entity. If the Network object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*NetworkMutation) OldPaymasterURL

func (m *NetworkMutation) OldPaymasterURL(ctx context.Context) (v string, err error)

OldPaymasterURL returns the old "paymaster_url" field's value of the Network entity. If the Network object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*NetworkMutation) OldRPCEndpoint

func (m *NetworkMutation) OldRPCEndpoint(ctx context.Context) (v string, err error)

OldRPCEndpoint returns the old "rpc_endpoint" field's value of the Network entity. If the Network object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*NetworkMutation) OldUpdatedAt

func (m *NetworkMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Network entity. If the Network object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*NetworkMutation) Op

func (m *NetworkMutation) Op() Op

Op returns the operation name.

func (*NetworkMutation) PaymasterURL

func (m *NetworkMutation) PaymasterURL() (r string, exists bool)

PaymasterURL returns the value of the "paymaster_url" field in the mutation.

func (*NetworkMutation) PaymasterURLCleared

func (m *NetworkMutation) PaymasterURLCleared() bool

PaymasterURLCleared returns if the "paymaster_url" field was cleared in this mutation.

func (*NetworkMutation) PaymentWebhookCleared

func (m *NetworkMutation) PaymentWebhookCleared() bool

PaymentWebhookCleared reports if the "payment_webhook" edge to the PaymentWebhook entity was cleared.

func (*NetworkMutation) PaymentWebhookID

func (m *NetworkMutation) PaymentWebhookID() (id uuid.UUID, exists bool)

PaymentWebhookID returns the "payment_webhook" edge ID in the mutation.

func (*NetworkMutation) PaymentWebhookIDs

func (m *NetworkMutation) PaymentWebhookIDs() (ids []uuid.UUID)

PaymentWebhookIDs returns the "payment_webhook" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PaymentWebhookID instead. It exists only for internal usage by the builders.

func (*NetworkMutation) RPCEndpoint

func (m *NetworkMutation) RPCEndpoint() (r string, exists bool)

RPCEndpoint returns the value of the "rpc_endpoint" field in the mutation.

func (*NetworkMutation) RemoveTokenIDs

func (m *NetworkMutation) RemoveTokenIDs(ids ...int)

RemoveTokenIDs removes the "tokens" edge to the Token entity by IDs.

func (*NetworkMutation) RemovedEdges

func (m *NetworkMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*NetworkMutation) RemovedIDs

func (m *NetworkMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*NetworkMutation) RemovedTokensIDs

func (m *NetworkMutation) RemovedTokensIDs() (ids []int)

RemovedTokens returns the removed IDs of the "tokens" edge to the Token entity.

func (*NetworkMutation) ResetBlockTime

func (m *NetworkMutation) ResetBlockTime()

ResetBlockTime resets all changes to the "block_time" field.

func (*NetworkMutation) ResetBundlerURL

func (m *NetworkMutation) ResetBundlerURL()

ResetBundlerURL resets all changes to the "bundler_url" field.

func (*NetworkMutation) ResetChainID

func (m *NetworkMutation) ResetChainID()

ResetChainID resets all changes to the "chain_id" field.

func (*NetworkMutation) ResetCreatedAt

func (m *NetworkMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*NetworkMutation) ResetEdge

func (m *NetworkMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*NetworkMutation) ResetFee

func (m *NetworkMutation) ResetFee()

ResetFee resets all changes to the "fee" field.

func (*NetworkMutation) ResetField

func (m *NetworkMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*NetworkMutation) ResetGatewayContractAddress

func (m *NetworkMutation) ResetGatewayContractAddress()

ResetGatewayContractAddress resets all changes to the "gateway_contract_address" field.

func (*NetworkMutation) ResetIdentifier

func (m *NetworkMutation) ResetIdentifier()

ResetIdentifier resets all changes to the "identifier" field.

func (*NetworkMutation) ResetIsTestnet

func (m *NetworkMutation) ResetIsTestnet()

ResetIsTestnet resets all changes to the "is_testnet" field.

func (*NetworkMutation) ResetPaymasterURL

func (m *NetworkMutation) ResetPaymasterURL()

ResetPaymasterURL resets all changes to the "paymaster_url" field.

func (*NetworkMutation) ResetPaymentWebhook

func (m *NetworkMutation) ResetPaymentWebhook()

ResetPaymentWebhook resets all changes to the "payment_webhook" edge.

func (*NetworkMutation) ResetRPCEndpoint

func (m *NetworkMutation) ResetRPCEndpoint()

ResetRPCEndpoint resets all changes to the "rpc_endpoint" field.

func (*NetworkMutation) ResetTokens

func (m *NetworkMutation) ResetTokens()

ResetTokens resets all changes to the "tokens" edge.

func (*NetworkMutation) ResetUpdatedAt

func (m *NetworkMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*NetworkMutation) SetBlockTime

func (m *NetworkMutation) SetBlockTime(d decimal.Decimal)

SetBlockTime sets the "block_time" field.

func (*NetworkMutation) SetBundlerURL

func (m *NetworkMutation) SetBundlerURL(s string)

SetBundlerURL sets the "bundler_url" field.

func (*NetworkMutation) SetChainID

func (m *NetworkMutation) SetChainID(i int64)

SetChainID sets the "chain_id" field.

func (*NetworkMutation) SetCreatedAt

func (m *NetworkMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*NetworkMutation) SetFee

func (m *NetworkMutation) SetFee(d decimal.Decimal)

SetFee sets the "fee" field.

func (*NetworkMutation) SetField

func (m *NetworkMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*NetworkMutation) SetGatewayContractAddress

func (m *NetworkMutation) SetGatewayContractAddress(s string)

SetGatewayContractAddress sets the "gateway_contract_address" field.

func (*NetworkMutation) SetIdentifier

func (m *NetworkMutation) SetIdentifier(s string)

SetIdentifier sets the "identifier" field.

func (*NetworkMutation) SetIsTestnet

func (m *NetworkMutation) SetIsTestnet(b bool)

SetIsTestnet sets the "is_testnet" field.

func (*NetworkMutation) SetOp

func (m *NetworkMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*NetworkMutation) SetPaymasterURL

func (m *NetworkMutation) SetPaymasterURL(s string)

SetPaymasterURL sets the "paymaster_url" field.

func (*NetworkMutation) SetPaymentWebhookID

func (m *NetworkMutation) SetPaymentWebhookID(id uuid.UUID)

SetPaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by id.

func (*NetworkMutation) SetRPCEndpoint

func (m *NetworkMutation) SetRPCEndpoint(s string)

SetRPCEndpoint sets the "rpc_endpoint" field.

func (*NetworkMutation) SetUpdatedAt

func (m *NetworkMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*NetworkMutation) TokensCleared

func (m *NetworkMutation) TokensCleared() bool

TokensCleared reports if the "tokens" edge to the Token entity was cleared.

func (*NetworkMutation) TokensIDs

func (m *NetworkMutation) TokensIDs() (ids []int)

TokensIDs returns the "tokens" edge IDs in the mutation.

func (NetworkMutation) Tx

func (m NetworkMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*NetworkMutation) Type

func (m *NetworkMutation) Type() string

Type returns the node type of this mutation (Network).

func (*NetworkMutation) UpdatedAt

func (m *NetworkMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*NetworkMutation) Where

func (m *NetworkMutation) Where(ps ...predicate.Network)

Where appends a list predicates to the NetworkMutation builder.

func (*NetworkMutation) WhereP

func (m *NetworkMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the NetworkMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type NetworkQuery

type NetworkQuery struct {
	// contains filtered or unexported fields
}

NetworkQuery is the builder for querying Network entities.

func (*NetworkQuery) Aggregate

func (nq *NetworkQuery) Aggregate(fns ...AggregateFunc) *NetworkSelect

Aggregate returns a NetworkSelect configured with the given aggregations.

func (*NetworkQuery) All

func (nq *NetworkQuery) All(ctx context.Context) ([]*Network, error)

All executes the query and returns a list of Networks.

func (*NetworkQuery) AllX

func (nq *NetworkQuery) AllX(ctx context.Context) []*Network

AllX is like All, but panics if an error occurs.

func (*NetworkQuery) Clone

func (nq *NetworkQuery) Clone() *NetworkQuery

Clone returns a duplicate of the NetworkQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*NetworkQuery) Count

func (nq *NetworkQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*NetworkQuery) CountX

func (nq *NetworkQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*NetworkQuery) Exist

func (nq *NetworkQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*NetworkQuery) ExistX

func (nq *NetworkQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*NetworkQuery) First

func (nq *NetworkQuery) First(ctx context.Context) (*Network, error)

First returns the first Network entity from the query. Returns a *NotFoundError when no Network was found.

func (*NetworkQuery) FirstID

func (nq *NetworkQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Network ID from the query. Returns a *NotFoundError when no Network ID was found.

func (*NetworkQuery) FirstIDX

func (nq *NetworkQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*NetworkQuery) FirstX

func (nq *NetworkQuery) FirstX(ctx context.Context) *Network

FirstX is like First, but panics if an error occurs.

func (*NetworkQuery) GroupBy

func (nq *NetworkQuery) GroupBy(field string, fields ...string) *NetworkGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Network.Query().
	GroupBy(network.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*NetworkQuery) IDs

func (nq *NetworkQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Network IDs.

func (*NetworkQuery) IDsX

func (nq *NetworkQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*NetworkQuery) Limit

func (nq *NetworkQuery) Limit(limit int) *NetworkQuery

Limit the number of records to be returned by this query.

func (*NetworkQuery) Offset

func (nq *NetworkQuery) Offset(offset int) *NetworkQuery

Offset to start from.

func (*NetworkQuery) Only

func (nq *NetworkQuery) Only(ctx context.Context) (*Network, error)

Only returns a single Network entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Network entity is found. Returns a *NotFoundError when no Network entities are found.

func (*NetworkQuery) OnlyID

func (nq *NetworkQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Network ID in the query. Returns a *NotSingularError when more than one Network ID is found. Returns a *NotFoundError when no entities are found.

func (*NetworkQuery) OnlyIDX

func (nq *NetworkQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*NetworkQuery) OnlyX

func (nq *NetworkQuery) OnlyX(ctx context.Context) *Network

OnlyX is like Only, but panics if an error occurs.

func (*NetworkQuery) Order

func (nq *NetworkQuery) Order(o ...network.OrderOption) *NetworkQuery

Order specifies how the records should be ordered.

func (*NetworkQuery) QueryPaymentWebhook

func (nq *NetworkQuery) QueryPaymentWebhook() *PaymentWebhookQuery

QueryPaymentWebhook chains the current query on the "payment_webhook" edge.

func (*NetworkQuery) QueryTokens

func (nq *NetworkQuery) QueryTokens() *TokenQuery

QueryTokens chains the current query on the "tokens" edge.

func (*NetworkQuery) Select

func (nq *NetworkQuery) Select(fields ...string) *NetworkSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Network.Query().
	Select(network.FieldCreatedAt).
	Scan(ctx, &v)

func (*NetworkQuery) Unique

func (nq *NetworkQuery) Unique(unique bool) *NetworkQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*NetworkQuery) Where

func (nq *NetworkQuery) Where(ps ...predicate.Network) *NetworkQuery

Where adds a new predicate for the NetworkQuery builder.

func (*NetworkQuery) WithPaymentWebhook

func (nq *NetworkQuery) WithPaymentWebhook(opts ...func(*PaymentWebhookQuery)) *NetworkQuery

WithPaymentWebhook tells the query-builder to eager-load the nodes that are connected to the "payment_webhook" edge. The optional arguments are used to configure the query builder of the edge.

func (*NetworkQuery) WithTokens

func (nq *NetworkQuery) WithTokens(opts ...func(*TokenQuery)) *NetworkQuery

WithTokens tells the query-builder to eager-load the nodes that are connected to the "tokens" edge. The optional arguments are used to configure the query builder of the edge.

type NetworkSelect

type NetworkSelect struct {
	*NetworkQuery
	// contains filtered or unexported fields
}

NetworkSelect is the builder for selecting fields of Network entities.

func (*NetworkSelect) Aggregate

func (ns *NetworkSelect) Aggregate(fns ...AggregateFunc) *NetworkSelect

Aggregate adds the given aggregation functions to the selector query.

func (*NetworkSelect) Bool

func (s *NetworkSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*NetworkSelect) BoolX

func (s *NetworkSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*NetworkSelect) Bools

func (s *NetworkSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*NetworkSelect) BoolsX

func (s *NetworkSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*NetworkSelect) Float64

func (s *NetworkSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*NetworkSelect) Float64X

func (s *NetworkSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*NetworkSelect) Float64s

func (s *NetworkSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*NetworkSelect) Float64sX

func (s *NetworkSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*NetworkSelect) Int

func (s *NetworkSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*NetworkSelect) IntX

func (s *NetworkSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*NetworkSelect) Ints

func (s *NetworkSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*NetworkSelect) IntsX

func (s *NetworkSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*NetworkSelect) Scan

func (ns *NetworkSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*NetworkSelect) ScanX

func (s *NetworkSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*NetworkSelect) String

func (s *NetworkSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*NetworkSelect) StringX

func (s *NetworkSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*NetworkSelect) Strings

func (s *NetworkSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*NetworkSelect) StringsX

func (s *NetworkSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type NetworkUpdate

type NetworkUpdate struct {
	// contains filtered or unexported fields
}

NetworkUpdate is the builder for updating Network entities.

func (*NetworkUpdate) AddBlockTime

func (nu *NetworkUpdate) AddBlockTime(d decimal.Decimal) *NetworkUpdate

AddBlockTime adds d to the "block_time" field.

func (*NetworkUpdate) AddChainID

func (nu *NetworkUpdate) AddChainID(i int64) *NetworkUpdate

AddChainID adds i to the "chain_id" field.

func (*NetworkUpdate) AddFee

func (nu *NetworkUpdate) AddFee(d decimal.Decimal) *NetworkUpdate

AddFee adds d to the "fee" field.

func (*NetworkUpdate) AddTokenIDs

func (nu *NetworkUpdate) AddTokenIDs(ids ...int) *NetworkUpdate

AddTokenIDs adds the "tokens" edge to the Token entity by IDs.

func (*NetworkUpdate) AddTokens

func (nu *NetworkUpdate) AddTokens(t ...*Token) *NetworkUpdate

AddTokens adds the "tokens" edges to the Token entity.

func (*NetworkUpdate) ClearBundlerURL

func (nu *NetworkUpdate) ClearBundlerURL() *NetworkUpdate

ClearBundlerURL clears the value of the "bundler_url" field.

func (*NetworkUpdate) ClearPaymasterURL

func (nu *NetworkUpdate) ClearPaymasterURL() *NetworkUpdate

ClearPaymasterURL clears the value of the "paymaster_url" field.

func (*NetworkUpdate) ClearPaymentWebhook

func (nu *NetworkUpdate) ClearPaymentWebhook() *NetworkUpdate

ClearPaymentWebhook clears the "payment_webhook" edge to the PaymentWebhook entity.

func (*NetworkUpdate) ClearTokens

func (nu *NetworkUpdate) ClearTokens() *NetworkUpdate

ClearTokens clears all "tokens" edges to the Token entity.

func (*NetworkUpdate) Exec

func (nu *NetworkUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*NetworkUpdate) ExecX

func (nu *NetworkUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*NetworkUpdate) Mutation

func (nu *NetworkUpdate) Mutation() *NetworkMutation

Mutation returns the NetworkMutation object of the builder.

func (*NetworkUpdate) RemoveTokenIDs

func (nu *NetworkUpdate) RemoveTokenIDs(ids ...int) *NetworkUpdate

RemoveTokenIDs removes the "tokens" edge to Token entities by IDs.

func (*NetworkUpdate) RemoveTokens

func (nu *NetworkUpdate) RemoveTokens(t ...*Token) *NetworkUpdate

RemoveTokens removes "tokens" edges to Token entities.

func (*NetworkUpdate) Save

func (nu *NetworkUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*NetworkUpdate) SaveX

func (nu *NetworkUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*NetworkUpdate) SetBlockTime

func (nu *NetworkUpdate) SetBlockTime(d decimal.Decimal) *NetworkUpdate

SetBlockTime sets the "block_time" field.

func (*NetworkUpdate) SetBundlerURL

func (nu *NetworkUpdate) SetBundlerURL(s string) *NetworkUpdate

SetBundlerURL sets the "bundler_url" field.

func (*NetworkUpdate) SetChainID

func (nu *NetworkUpdate) SetChainID(i int64) *NetworkUpdate

SetChainID sets the "chain_id" field.

func (*NetworkUpdate) SetFee

func (nu *NetworkUpdate) SetFee(d decimal.Decimal) *NetworkUpdate

SetFee sets the "fee" field.

func (*NetworkUpdate) SetGatewayContractAddress

func (nu *NetworkUpdate) SetGatewayContractAddress(s string) *NetworkUpdate

SetGatewayContractAddress sets the "gateway_contract_address" field.

func (*NetworkUpdate) SetIdentifier

func (nu *NetworkUpdate) SetIdentifier(s string) *NetworkUpdate

SetIdentifier sets the "identifier" field.

func (*NetworkUpdate) SetIsTestnet

func (nu *NetworkUpdate) SetIsTestnet(b bool) *NetworkUpdate

SetIsTestnet sets the "is_testnet" field.

func (*NetworkUpdate) SetNillableBlockTime

func (nu *NetworkUpdate) SetNillableBlockTime(d *decimal.Decimal) *NetworkUpdate

SetNillableBlockTime sets the "block_time" field if the given value is not nil.

func (*NetworkUpdate) SetNillableBundlerURL

func (nu *NetworkUpdate) SetNillableBundlerURL(s *string) *NetworkUpdate

SetNillableBundlerURL sets the "bundler_url" field if the given value is not nil.

func (*NetworkUpdate) SetNillableChainID

func (nu *NetworkUpdate) SetNillableChainID(i *int64) *NetworkUpdate

SetNillableChainID sets the "chain_id" field if the given value is not nil.

func (*NetworkUpdate) SetNillableFee

func (nu *NetworkUpdate) SetNillableFee(d *decimal.Decimal) *NetworkUpdate

SetNillableFee sets the "fee" field if the given value is not nil.

func (*NetworkUpdate) SetNillableGatewayContractAddress

func (nu *NetworkUpdate) SetNillableGatewayContractAddress(s *string) *NetworkUpdate

SetNillableGatewayContractAddress sets the "gateway_contract_address" field if the given value is not nil.

func (*NetworkUpdate) SetNillableIdentifier

func (nu *NetworkUpdate) SetNillableIdentifier(s *string) *NetworkUpdate

SetNillableIdentifier sets the "identifier" field if the given value is not nil.

func (*NetworkUpdate) SetNillableIsTestnet

func (nu *NetworkUpdate) SetNillableIsTestnet(b *bool) *NetworkUpdate

SetNillableIsTestnet sets the "is_testnet" field if the given value is not nil.

func (*NetworkUpdate) SetNillablePaymasterURL

func (nu *NetworkUpdate) SetNillablePaymasterURL(s *string) *NetworkUpdate

SetNillablePaymasterURL sets the "paymaster_url" field if the given value is not nil.

func (*NetworkUpdate) SetNillablePaymentWebhookID

func (nu *NetworkUpdate) SetNillablePaymentWebhookID(id *uuid.UUID) *NetworkUpdate

SetNillablePaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by ID if the given value is not nil.

func (*NetworkUpdate) SetNillableRPCEndpoint

func (nu *NetworkUpdate) SetNillableRPCEndpoint(s *string) *NetworkUpdate

SetNillableRPCEndpoint sets the "rpc_endpoint" field if the given value is not nil.

func (*NetworkUpdate) SetPaymasterURL

func (nu *NetworkUpdate) SetPaymasterURL(s string) *NetworkUpdate

SetPaymasterURL sets the "paymaster_url" field.

func (*NetworkUpdate) SetPaymentWebhook

func (nu *NetworkUpdate) SetPaymentWebhook(p *PaymentWebhook) *NetworkUpdate

SetPaymentWebhook sets the "payment_webhook" edge to the PaymentWebhook entity.

func (*NetworkUpdate) SetPaymentWebhookID

func (nu *NetworkUpdate) SetPaymentWebhookID(id uuid.UUID) *NetworkUpdate

SetPaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by ID.

func (*NetworkUpdate) SetRPCEndpoint

func (nu *NetworkUpdate) SetRPCEndpoint(s string) *NetworkUpdate

SetRPCEndpoint sets the "rpc_endpoint" field.

func (*NetworkUpdate) SetUpdatedAt

func (nu *NetworkUpdate) SetUpdatedAt(t time.Time) *NetworkUpdate

SetUpdatedAt sets the "updated_at" field.

func (*NetworkUpdate) Where

func (nu *NetworkUpdate) Where(ps ...predicate.Network) *NetworkUpdate

Where appends a list predicates to the NetworkUpdate builder.

type NetworkUpdateOne

type NetworkUpdateOne struct {
	// contains filtered or unexported fields
}

NetworkUpdateOne is the builder for updating a single Network entity.

func (*NetworkUpdateOne) AddBlockTime

func (nuo *NetworkUpdateOne) AddBlockTime(d decimal.Decimal) *NetworkUpdateOne

AddBlockTime adds d to the "block_time" field.

func (*NetworkUpdateOne) AddChainID

func (nuo *NetworkUpdateOne) AddChainID(i int64) *NetworkUpdateOne

AddChainID adds i to the "chain_id" field.

func (*NetworkUpdateOne) AddFee

AddFee adds d to the "fee" field.

func (*NetworkUpdateOne) AddTokenIDs

func (nuo *NetworkUpdateOne) AddTokenIDs(ids ...int) *NetworkUpdateOne

AddTokenIDs adds the "tokens" edge to the Token entity by IDs.

func (*NetworkUpdateOne) AddTokens

func (nuo *NetworkUpdateOne) AddTokens(t ...*Token) *NetworkUpdateOne

AddTokens adds the "tokens" edges to the Token entity.

func (*NetworkUpdateOne) ClearBundlerURL

func (nuo *NetworkUpdateOne) ClearBundlerURL() *NetworkUpdateOne

ClearBundlerURL clears the value of the "bundler_url" field.

func (*NetworkUpdateOne) ClearPaymasterURL

func (nuo *NetworkUpdateOne) ClearPaymasterURL() *NetworkUpdateOne

ClearPaymasterURL clears the value of the "paymaster_url" field.

func (*NetworkUpdateOne) ClearPaymentWebhook

func (nuo *NetworkUpdateOne) ClearPaymentWebhook() *NetworkUpdateOne

ClearPaymentWebhook clears the "payment_webhook" edge to the PaymentWebhook entity.

func (*NetworkUpdateOne) ClearTokens

func (nuo *NetworkUpdateOne) ClearTokens() *NetworkUpdateOne

ClearTokens clears all "tokens" edges to the Token entity.

func (*NetworkUpdateOne) Exec

func (nuo *NetworkUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*NetworkUpdateOne) ExecX

func (nuo *NetworkUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*NetworkUpdateOne) Mutation

func (nuo *NetworkUpdateOne) Mutation() *NetworkMutation

Mutation returns the NetworkMutation object of the builder.

func (*NetworkUpdateOne) RemoveTokenIDs

func (nuo *NetworkUpdateOne) RemoveTokenIDs(ids ...int) *NetworkUpdateOne

RemoveTokenIDs removes the "tokens" edge to Token entities by IDs.

func (*NetworkUpdateOne) RemoveTokens

func (nuo *NetworkUpdateOne) RemoveTokens(t ...*Token) *NetworkUpdateOne

RemoveTokens removes "tokens" edges to Token entities.

func (*NetworkUpdateOne) Save

func (nuo *NetworkUpdateOne) Save(ctx context.Context) (*Network, error)

Save executes the query and returns the updated Network entity.

func (*NetworkUpdateOne) SaveX

func (nuo *NetworkUpdateOne) SaveX(ctx context.Context) *Network

SaveX is like Save, but panics if an error occurs.

func (*NetworkUpdateOne) Select

func (nuo *NetworkUpdateOne) Select(field string, fields ...string) *NetworkUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*NetworkUpdateOne) SetBlockTime

func (nuo *NetworkUpdateOne) SetBlockTime(d decimal.Decimal) *NetworkUpdateOne

SetBlockTime sets the "block_time" field.

func (*NetworkUpdateOne) SetBundlerURL

func (nuo *NetworkUpdateOne) SetBundlerURL(s string) *NetworkUpdateOne

SetBundlerURL sets the "bundler_url" field.

func (*NetworkUpdateOne) SetChainID

func (nuo *NetworkUpdateOne) SetChainID(i int64) *NetworkUpdateOne

SetChainID sets the "chain_id" field.

func (*NetworkUpdateOne) SetFee

SetFee sets the "fee" field.

func (*NetworkUpdateOne) SetGatewayContractAddress

func (nuo *NetworkUpdateOne) SetGatewayContractAddress(s string) *NetworkUpdateOne

SetGatewayContractAddress sets the "gateway_contract_address" field.

func (*NetworkUpdateOne) SetIdentifier

func (nuo *NetworkUpdateOne) SetIdentifier(s string) *NetworkUpdateOne

SetIdentifier sets the "identifier" field.

func (*NetworkUpdateOne) SetIsTestnet

func (nuo *NetworkUpdateOne) SetIsTestnet(b bool) *NetworkUpdateOne

SetIsTestnet sets the "is_testnet" field.

func (*NetworkUpdateOne) SetNillableBlockTime

func (nuo *NetworkUpdateOne) SetNillableBlockTime(d *decimal.Decimal) *NetworkUpdateOne

SetNillableBlockTime sets the "block_time" field if the given value is not nil.

func (*NetworkUpdateOne) SetNillableBundlerURL

func (nuo *NetworkUpdateOne) SetNillableBundlerURL(s *string) *NetworkUpdateOne

SetNillableBundlerURL sets the "bundler_url" field if the given value is not nil.

func (*NetworkUpdateOne) SetNillableChainID

func (nuo *NetworkUpdateOne) SetNillableChainID(i *int64) *NetworkUpdateOne

SetNillableChainID sets the "chain_id" field if the given value is not nil.

func (*NetworkUpdateOne) SetNillableFee

func (nuo *NetworkUpdateOne) SetNillableFee(d *decimal.Decimal) *NetworkUpdateOne

SetNillableFee sets the "fee" field if the given value is not nil.

func (*NetworkUpdateOne) SetNillableGatewayContractAddress

func (nuo *NetworkUpdateOne) SetNillableGatewayContractAddress(s *string) *NetworkUpdateOne

SetNillableGatewayContractAddress sets the "gateway_contract_address" field if the given value is not nil.

func (*NetworkUpdateOne) SetNillableIdentifier

func (nuo *NetworkUpdateOne) SetNillableIdentifier(s *string) *NetworkUpdateOne

SetNillableIdentifier sets the "identifier" field if the given value is not nil.

func (*NetworkUpdateOne) SetNillableIsTestnet

func (nuo *NetworkUpdateOne) SetNillableIsTestnet(b *bool) *NetworkUpdateOne

SetNillableIsTestnet sets the "is_testnet" field if the given value is not nil.

func (*NetworkUpdateOne) SetNillablePaymasterURL

func (nuo *NetworkUpdateOne) SetNillablePaymasterURL(s *string) *NetworkUpdateOne

SetNillablePaymasterURL sets the "paymaster_url" field if the given value is not nil.

func (*NetworkUpdateOne) SetNillablePaymentWebhookID

func (nuo *NetworkUpdateOne) SetNillablePaymentWebhookID(id *uuid.UUID) *NetworkUpdateOne

SetNillablePaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by ID if the given value is not nil.

func (*NetworkUpdateOne) SetNillableRPCEndpoint

func (nuo *NetworkUpdateOne) SetNillableRPCEndpoint(s *string) *NetworkUpdateOne

SetNillableRPCEndpoint sets the "rpc_endpoint" field if the given value is not nil.

func (*NetworkUpdateOne) SetPaymasterURL

func (nuo *NetworkUpdateOne) SetPaymasterURL(s string) *NetworkUpdateOne

SetPaymasterURL sets the "paymaster_url" field.

func (*NetworkUpdateOne) SetPaymentWebhook

func (nuo *NetworkUpdateOne) SetPaymentWebhook(p *PaymentWebhook) *NetworkUpdateOne

SetPaymentWebhook sets the "payment_webhook" edge to the PaymentWebhook entity.

func (*NetworkUpdateOne) SetPaymentWebhookID

func (nuo *NetworkUpdateOne) SetPaymentWebhookID(id uuid.UUID) *NetworkUpdateOne

SetPaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by ID.

func (*NetworkUpdateOne) SetRPCEndpoint

func (nuo *NetworkUpdateOne) SetRPCEndpoint(s string) *NetworkUpdateOne

SetRPCEndpoint sets the "rpc_endpoint" field.

func (*NetworkUpdateOne) SetUpdatedAt

func (nuo *NetworkUpdateOne) SetUpdatedAt(t time.Time) *NetworkUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*NetworkUpdateOne) Where

Where appends a list predicates to the NetworkUpdate builder.

type NetworkUpsert

type NetworkUpsert struct {
	*sql.UpdateSet
}

NetworkUpsert is the "OnConflict" setter.

func (*NetworkUpsert) AddBlockTime

func (u *NetworkUpsert) AddBlockTime(v decimal.Decimal) *NetworkUpsert

AddBlockTime adds v to the "block_time" field.

func (*NetworkUpsert) AddChainID

func (u *NetworkUpsert) AddChainID(v int64) *NetworkUpsert

AddChainID adds v to the "chain_id" field.

func (*NetworkUpsert) AddFee

AddFee adds v to the "fee" field.

func (*NetworkUpsert) ClearBundlerURL

func (u *NetworkUpsert) ClearBundlerURL() *NetworkUpsert

ClearBundlerURL clears the value of the "bundler_url" field.

func (*NetworkUpsert) ClearPaymasterURL

func (u *NetworkUpsert) ClearPaymasterURL() *NetworkUpsert

ClearPaymasterURL clears the value of the "paymaster_url" field.

func (*NetworkUpsert) SetBlockTime

func (u *NetworkUpsert) SetBlockTime(v decimal.Decimal) *NetworkUpsert

SetBlockTime sets the "block_time" field.

func (*NetworkUpsert) SetBundlerURL

func (u *NetworkUpsert) SetBundlerURL(v string) *NetworkUpsert

SetBundlerURL sets the "bundler_url" field.

func (*NetworkUpsert) SetChainID

func (u *NetworkUpsert) SetChainID(v int64) *NetworkUpsert

SetChainID sets the "chain_id" field.

func (*NetworkUpsert) SetFee

SetFee sets the "fee" field.

func (*NetworkUpsert) SetGatewayContractAddress

func (u *NetworkUpsert) SetGatewayContractAddress(v string) *NetworkUpsert

SetGatewayContractAddress sets the "gateway_contract_address" field.

func (*NetworkUpsert) SetIdentifier

func (u *NetworkUpsert) SetIdentifier(v string) *NetworkUpsert

SetIdentifier sets the "identifier" field.

func (*NetworkUpsert) SetIsTestnet

func (u *NetworkUpsert) SetIsTestnet(v bool) *NetworkUpsert

SetIsTestnet sets the "is_testnet" field.

func (*NetworkUpsert) SetPaymasterURL

func (u *NetworkUpsert) SetPaymasterURL(v string) *NetworkUpsert

SetPaymasterURL sets the "paymaster_url" field.

func (*NetworkUpsert) SetRPCEndpoint

func (u *NetworkUpsert) SetRPCEndpoint(v string) *NetworkUpsert

SetRPCEndpoint sets the "rpc_endpoint" field.

func (*NetworkUpsert) SetUpdatedAt

func (u *NetworkUpsert) SetUpdatedAt(v time.Time) *NetworkUpsert

SetUpdatedAt sets the "updated_at" field.

func (*NetworkUpsert) UpdateBlockTime

func (u *NetworkUpsert) UpdateBlockTime() *NetworkUpsert

UpdateBlockTime sets the "block_time" field to the value that was provided on create.

func (*NetworkUpsert) UpdateBundlerURL

func (u *NetworkUpsert) UpdateBundlerURL() *NetworkUpsert

UpdateBundlerURL sets the "bundler_url" field to the value that was provided on create.

func (*NetworkUpsert) UpdateChainID

func (u *NetworkUpsert) UpdateChainID() *NetworkUpsert

UpdateChainID sets the "chain_id" field to the value that was provided on create.

func (*NetworkUpsert) UpdateFee

func (u *NetworkUpsert) UpdateFee() *NetworkUpsert

UpdateFee sets the "fee" field to the value that was provided on create.

func (*NetworkUpsert) UpdateGatewayContractAddress

func (u *NetworkUpsert) UpdateGatewayContractAddress() *NetworkUpsert

UpdateGatewayContractAddress sets the "gateway_contract_address" field to the value that was provided on create.

func (*NetworkUpsert) UpdateIdentifier

func (u *NetworkUpsert) UpdateIdentifier() *NetworkUpsert

UpdateIdentifier sets the "identifier" field to the value that was provided on create.

func (*NetworkUpsert) UpdateIsTestnet

func (u *NetworkUpsert) UpdateIsTestnet() *NetworkUpsert

UpdateIsTestnet sets the "is_testnet" field to the value that was provided on create.

func (*NetworkUpsert) UpdatePaymasterURL

func (u *NetworkUpsert) UpdatePaymasterURL() *NetworkUpsert

UpdatePaymasterURL sets the "paymaster_url" field to the value that was provided on create.

func (*NetworkUpsert) UpdateRPCEndpoint

func (u *NetworkUpsert) UpdateRPCEndpoint() *NetworkUpsert

UpdateRPCEndpoint sets the "rpc_endpoint" field to the value that was provided on create.

func (*NetworkUpsert) UpdateUpdatedAt

func (u *NetworkUpsert) UpdateUpdatedAt() *NetworkUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type NetworkUpsertBulk

type NetworkUpsertBulk struct {
	// contains filtered or unexported fields
}

NetworkUpsertBulk is the builder for "upsert"-ing a bulk of Network nodes.

func (*NetworkUpsertBulk) AddBlockTime

func (u *NetworkUpsertBulk) AddBlockTime(v decimal.Decimal) *NetworkUpsertBulk

AddBlockTime adds v to the "block_time" field.

func (*NetworkUpsertBulk) AddChainID

func (u *NetworkUpsertBulk) AddChainID(v int64) *NetworkUpsertBulk

AddChainID adds v to the "chain_id" field.

func (*NetworkUpsertBulk) AddFee

AddFee adds v to the "fee" field.

func (*NetworkUpsertBulk) ClearBundlerURL

func (u *NetworkUpsertBulk) ClearBundlerURL() *NetworkUpsertBulk

ClearBundlerURL clears the value of the "bundler_url" field.

func (*NetworkUpsertBulk) ClearPaymasterURL

func (u *NetworkUpsertBulk) ClearPaymasterURL() *NetworkUpsertBulk

ClearPaymasterURL clears the value of the "paymaster_url" field.

func (*NetworkUpsertBulk) DoNothing

func (u *NetworkUpsertBulk) DoNothing() *NetworkUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*NetworkUpsertBulk) Exec

func (u *NetworkUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*NetworkUpsertBulk) ExecX

func (u *NetworkUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*NetworkUpsertBulk) Ignore

func (u *NetworkUpsertBulk) Ignore() *NetworkUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Network.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*NetworkUpsertBulk) SetBlockTime

func (u *NetworkUpsertBulk) SetBlockTime(v decimal.Decimal) *NetworkUpsertBulk

SetBlockTime sets the "block_time" field.

func (*NetworkUpsertBulk) SetBundlerURL

func (u *NetworkUpsertBulk) SetBundlerURL(v string) *NetworkUpsertBulk

SetBundlerURL sets the "bundler_url" field.

func (*NetworkUpsertBulk) SetChainID

func (u *NetworkUpsertBulk) SetChainID(v int64) *NetworkUpsertBulk

SetChainID sets the "chain_id" field.

func (*NetworkUpsertBulk) SetFee

SetFee sets the "fee" field.

func (*NetworkUpsertBulk) SetGatewayContractAddress

func (u *NetworkUpsertBulk) SetGatewayContractAddress(v string) *NetworkUpsertBulk

SetGatewayContractAddress sets the "gateway_contract_address" field.

func (*NetworkUpsertBulk) SetIdentifier

func (u *NetworkUpsertBulk) SetIdentifier(v string) *NetworkUpsertBulk

SetIdentifier sets the "identifier" field.

func (*NetworkUpsertBulk) SetIsTestnet

func (u *NetworkUpsertBulk) SetIsTestnet(v bool) *NetworkUpsertBulk

SetIsTestnet sets the "is_testnet" field.

func (*NetworkUpsertBulk) SetPaymasterURL

func (u *NetworkUpsertBulk) SetPaymasterURL(v string) *NetworkUpsertBulk

SetPaymasterURL sets the "paymaster_url" field.

func (*NetworkUpsertBulk) SetRPCEndpoint

func (u *NetworkUpsertBulk) SetRPCEndpoint(v string) *NetworkUpsertBulk

SetRPCEndpoint sets the "rpc_endpoint" field.

func (*NetworkUpsertBulk) SetUpdatedAt

func (u *NetworkUpsertBulk) SetUpdatedAt(v time.Time) *NetworkUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*NetworkUpsertBulk) Update

func (u *NetworkUpsertBulk) Update(set func(*NetworkUpsert)) *NetworkUpsertBulk

Update allows overriding fields `UPDATE` values. See the NetworkCreateBulk.OnConflict documentation for more info.

func (*NetworkUpsertBulk) UpdateBlockTime

func (u *NetworkUpsertBulk) UpdateBlockTime() *NetworkUpsertBulk

UpdateBlockTime sets the "block_time" field to the value that was provided on create.

func (*NetworkUpsertBulk) UpdateBundlerURL

func (u *NetworkUpsertBulk) UpdateBundlerURL() *NetworkUpsertBulk

UpdateBundlerURL sets the "bundler_url" field to the value that was provided on create.

func (*NetworkUpsertBulk) UpdateChainID

func (u *NetworkUpsertBulk) UpdateChainID() *NetworkUpsertBulk

UpdateChainID sets the "chain_id" field to the value that was provided on create.

func (*NetworkUpsertBulk) UpdateFee

func (u *NetworkUpsertBulk) UpdateFee() *NetworkUpsertBulk

UpdateFee sets the "fee" field to the value that was provided on create.

func (*NetworkUpsertBulk) UpdateGatewayContractAddress

func (u *NetworkUpsertBulk) UpdateGatewayContractAddress() *NetworkUpsertBulk

UpdateGatewayContractAddress sets the "gateway_contract_address" field to the value that was provided on create.

func (*NetworkUpsertBulk) UpdateIdentifier

func (u *NetworkUpsertBulk) UpdateIdentifier() *NetworkUpsertBulk

UpdateIdentifier sets the "identifier" field to the value that was provided on create.

func (*NetworkUpsertBulk) UpdateIsTestnet

func (u *NetworkUpsertBulk) UpdateIsTestnet() *NetworkUpsertBulk

UpdateIsTestnet sets the "is_testnet" field to the value that was provided on create.

func (*NetworkUpsertBulk) UpdateNewValues

func (u *NetworkUpsertBulk) UpdateNewValues() *NetworkUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Network.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*NetworkUpsertBulk) UpdatePaymasterURL

func (u *NetworkUpsertBulk) UpdatePaymasterURL() *NetworkUpsertBulk

UpdatePaymasterURL sets the "paymaster_url" field to the value that was provided on create.

func (*NetworkUpsertBulk) UpdateRPCEndpoint

func (u *NetworkUpsertBulk) UpdateRPCEndpoint() *NetworkUpsertBulk

UpdateRPCEndpoint sets the "rpc_endpoint" field to the value that was provided on create.

func (*NetworkUpsertBulk) UpdateUpdatedAt

func (u *NetworkUpsertBulk) UpdateUpdatedAt() *NetworkUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type NetworkUpsertOne

type NetworkUpsertOne struct {
	// contains filtered or unexported fields
}

NetworkUpsertOne is the builder for "upsert"-ing

one Network node.

func (*NetworkUpsertOne) AddBlockTime

func (u *NetworkUpsertOne) AddBlockTime(v decimal.Decimal) *NetworkUpsertOne

AddBlockTime adds v to the "block_time" field.

func (*NetworkUpsertOne) AddChainID

func (u *NetworkUpsertOne) AddChainID(v int64) *NetworkUpsertOne

AddChainID adds v to the "chain_id" field.

func (*NetworkUpsertOne) AddFee

AddFee adds v to the "fee" field.

func (*NetworkUpsertOne) ClearBundlerURL

func (u *NetworkUpsertOne) ClearBundlerURL() *NetworkUpsertOne

ClearBundlerURL clears the value of the "bundler_url" field.

func (*NetworkUpsertOne) ClearPaymasterURL

func (u *NetworkUpsertOne) ClearPaymasterURL() *NetworkUpsertOne

ClearPaymasterURL clears the value of the "paymaster_url" field.

func (*NetworkUpsertOne) DoNothing

func (u *NetworkUpsertOne) DoNothing() *NetworkUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*NetworkUpsertOne) Exec

func (u *NetworkUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*NetworkUpsertOne) ExecX

func (u *NetworkUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*NetworkUpsertOne) ID

func (u *NetworkUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*NetworkUpsertOne) IDX

func (u *NetworkUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*NetworkUpsertOne) Ignore

func (u *NetworkUpsertOne) Ignore() *NetworkUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Network.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*NetworkUpsertOne) SetBlockTime

func (u *NetworkUpsertOne) SetBlockTime(v decimal.Decimal) *NetworkUpsertOne

SetBlockTime sets the "block_time" field.

func (*NetworkUpsertOne) SetBundlerURL

func (u *NetworkUpsertOne) SetBundlerURL(v string) *NetworkUpsertOne

SetBundlerURL sets the "bundler_url" field.

func (*NetworkUpsertOne) SetChainID

func (u *NetworkUpsertOne) SetChainID(v int64) *NetworkUpsertOne

SetChainID sets the "chain_id" field.

func (*NetworkUpsertOne) SetFee

SetFee sets the "fee" field.

func (*NetworkUpsertOne) SetGatewayContractAddress

func (u *NetworkUpsertOne) SetGatewayContractAddress(v string) *NetworkUpsertOne

SetGatewayContractAddress sets the "gateway_contract_address" field.

func (*NetworkUpsertOne) SetIdentifier

func (u *NetworkUpsertOne) SetIdentifier(v string) *NetworkUpsertOne

SetIdentifier sets the "identifier" field.

func (*NetworkUpsertOne) SetIsTestnet

func (u *NetworkUpsertOne) SetIsTestnet(v bool) *NetworkUpsertOne

SetIsTestnet sets the "is_testnet" field.

func (*NetworkUpsertOne) SetPaymasterURL

func (u *NetworkUpsertOne) SetPaymasterURL(v string) *NetworkUpsertOne

SetPaymasterURL sets the "paymaster_url" field.

func (*NetworkUpsertOne) SetRPCEndpoint

func (u *NetworkUpsertOne) SetRPCEndpoint(v string) *NetworkUpsertOne

SetRPCEndpoint sets the "rpc_endpoint" field.

func (*NetworkUpsertOne) SetUpdatedAt

func (u *NetworkUpsertOne) SetUpdatedAt(v time.Time) *NetworkUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*NetworkUpsertOne) Update

func (u *NetworkUpsertOne) Update(set func(*NetworkUpsert)) *NetworkUpsertOne

Update allows overriding fields `UPDATE` values. See the NetworkCreate.OnConflict documentation for more info.

func (*NetworkUpsertOne) UpdateBlockTime

func (u *NetworkUpsertOne) UpdateBlockTime() *NetworkUpsertOne

UpdateBlockTime sets the "block_time" field to the value that was provided on create.

func (*NetworkUpsertOne) UpdateBundlerURL

func (u *NetworkUpsertOne) UpdateBundlerURL() *NetworkUpsertOne

UpdateBundlerURL sets the "bundler_url" field to the value that was provided on create.

func (*NetworkUpsertOne) UpdateChainID

func (u *NetworkUpsertOne) UpdateChainID() *NetworkUpsertOne

UpdateChainID sets the "chain_id" field to the value that was provided on create.

func (*NetworkUpsertOne) UpdateFee

func (u *NetworkUpsertOne) UpdateFee() *NetworkUpsertOne

UpdateFee sets the "fee" field to the value that was provided on create.

func (*NetworkUpsertOne) UpdateGatewayContractAddress

func (u *NetworkUpsertOne) UpdateGatewayContractAddress() *NetworkUpsertOne

UpdateGatewayContractAddress sets the "gateway_contract_address" field to the value that was provided on create.

func (*NetworkUpsertOne) UpdateIdentifier

func (u *NetworkUpsertOne) UpdateIdentifier() *NetworkUpsertOne

UpdateIdentifier sets the "identifier" field to the value that was provided on create.

func (*NetworkUpsertOne) UpdateIsTestnet

func (u *NetworkUpsertOne) UpdateIsTestnet() *NetworkUpsertOne

UpdateIsTestnet sets the "is_testnet" field to the value that was provided on create.

func (*NetworkUpsertOne) UpdateNewValues

func (u *NetworkUpsertOne) UpdateNewValues() *NetworkUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Network.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*NetworkUpsertOne) UpdatePaymasterURL

func (u *NetworkUpsertOne) UpdatePaymasterURL() *NetworkUpsertOne

UpdatePaymasterURL sets the "paymaster_url" field to the value that was provided on create.

func (*NetworkUpsertOne) UpdateRPCEndpoint

func (u *NetworkUpsertOne) UpdateRPCEndpoint() *NetworkUpsertOne

UpdateRPCEndpoint sets the "rpc_endpoint" field to the value that was provided on create.

func (*NetworkUpsertOne) UpdateUpdatedAt

func (u *NetworkUpsertOne) UpdateUpdatedAt() *NetworkUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type Networks

type Networks []*Network

Networks is a parsable slice of Network.

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

NotFoundError returns when trying to fetch a specific entity and it was not found in the database.

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

Error implements the error interface.

type NotLoadedError

type NotLoadedError struct {
	// contains filtered or unexported fields
}

NotLoadedError returns when trying to get a node that was not loaded by the query.

func (*NotLoadedError) Error

func (e *NotLoadedError) Error() string

Error implements the error interface.

type NotSingularError

type NotSingularError struct {
	// contains filtered or unexported fields
}

NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.

func (*NotSingularError) Error

func (e *NotSingularError) Error() string

Error implements the error interface.

type Op

type Op = ent.Op

ent aliases to avoid import conflicts in user's code.

type Option

type Option func(*config)

Option function to configure the client.

func Debug

func Debug() Option

Debug enables debug logging on the ent.Driver.

func Driver

func Driver(driver dialect.Driver) Option

Driver configures the client driver.

func Log

func Log(fn func(...any)) Option

Log sets the logging function for debug mode.

type OrderFunc

type OrderFunc func(*sql.Selector)

OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.

type PaymentOrder

type PaymentOrder struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Amount holds the value of the "amount" field.
	Amount decimal.Decimal `json:"amount,omitempty"`
	// AmountPaid holds the value of the "amount_paid" field.
	AmountPaid decimal.Decimal `json:"amount_paid,omitempty"`
	// AmountReturned holds the value of the "amount_returned" field.
	AmountReturned decimal.Decimal `json:"amount_returned,omitempty"`
	// PercentSettled holds the value of the "percent_settled" field.
	PercentSettled decimal.Decimal `json:"percent_settled,omitempty"`
	// SenderFee holds the value of the "sender_fee" field.
	SenderFee decimal.Decimal `json:"sender_fee,omitempty"`
	// NetworkFee holds the value of the "network_fee" field.
	NetworkFee decimal.Decimal `json:"network_fee,omitempty"`
	// Rate holds the value of the "rate" field.
	Rate decimal.Decimal `json:"rate,omitempty"`
	// TxHash holds the value of the "tx_hash" field.
	TxHash string `json:"tx_hash,omitempty"`
	// BlockNumber holds the value of the "block_number" field.
	BlockNumber int64 `json:"block_number,omitempty"`
	// FromAddress holds the value of the "from_address" field.
	FromAddress string `json:"from_address,omitempty"`
	// ReturnAddress holds the value of the "return_address" field.
	ReturnAddress string `json:"return_address,omitempty"`
	// ReceiveAddressText holds the value of the "receive_address_text" field.
	ReceiveAddressText string `json:"receive_address_text,omitempty"`
	// FeePercent holds the value of the "fee_percent" field.
	FeePercent decimal.Decimal `json:"fee_percent,omitempty"`
	// FeeAddress holds the value of the "fee_address" field.
	FeeAddress string `json:"fee_address,omitempty"`
	// GatewayID holds the value of the "gateway_id" field.
	GatewayID string `json:"gateway_id,omitempty"`
	// MessageHash holds the value of the "message_hash" field.
	MessageHash string `json:"message_hash,omitempty"`
	// Reference holds the value of the "reference" field.
	Reference string `json:"reference,omitempty"`
	// Status holds the value of the "status" field.
	Status paymentorder.Status `json:"status,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the PaymentOrderQuery when eager-loading is set.
	Edges PaymentOrderEdges `json:"edges"`
	// contains filtered or unexported fields
}

PaymentOrder is the model entity for the PaymentOrder schema.

func (*PaymentOrder) QueryLinkedAddress

func (po *PaymentOrder) QueryLinkedAddress() *LinkedAddressQuery

QueryLinkedAddress queries the "linked_address" edge of the PaymentOrder entity.

func (*PaymentOrder) QueryPaymentWebhook

func (po *PaymentOrder) QueryPaymentWebhook() *PaymentWebhookQuery

QueryPaymentWebhook queries the "payment_webhook" edge of the PaymentOrder entity.

func (*PaymentOrder) QueryReceiveAddress

func (po *PaymentOrder) QueryReceiveAddress() *ReceiveAddressQuery

QueryReceiveAddress queries the "receive_address" edge of the PaymentOrder entity.

func (*PaymentOrder) QueryRecipient

func (po *PaymentOrder) QueryRecipient() *PaymentOrderRecipientQuery

QueryRecipient queries the "recipient" edge of the PaymentOrder entity.

func (*PaymentOrder) QuerySenderProfile

func (po *PaymentOrder) QuerySenderProfile() *SenderProfileQuery

QuerySenderProfile queries the "sender_profile" edge of the PaymentOrder entity.

func (*PaymentOrder) QueryToken

func (po *PaymentOrder) QueryToken() *TokenQuery

QueryToken queries the "token" edge of the PaymentOrder entity.

func (*PaymentOrder) QueryTransactions

func (po *PaymentOrder) QueryTransactions() *TransactionLogQuery

QueryTransactions queries the "transactions" edge of the PaymentOrder entity.

func (*PaymentOrder) String

func (po *PaymentOrder) String() string

String implements the fmt.Stringer.

func (*PaymentOrder) Unwrap

func (po *PaymentOrder) Unwrap() *PaymentOrder

Unwrap unwraps the PaymentOrder entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*PaymentOrder) Update

func (po *PaymentOrder) Update() *PaymentOrderUpdateOne

Update returns a builder for updating this PaymentOrder. Note that you need to call PaymentOrder.Unwrap() before calling this method if this PaymentOrder was returned from a transaction, and the transaction was committed or rolled back.

func (*PaymentOrder) Value

func (po *PaymentOrder) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the PaymentOrder. This includes values selected through modifiers, order, etc.

type PaymentOrderClient

type PaymentOrderClient struct {
	// contains filtered or unexported fields
}

PaymentOrderClient is a client for the PaymentOrder schema.

func NewPaymentOrderClient

func NewPaymentOrderClient(c config) *PaymentOrderClient

NewPaymentOrderClient returns a client for the PaymentOrder from the given config.

func (*PaymentOrderClient) Create

Create returns a builder for creating a PaymentOrder entity.

func (*PaymentOrderClient) CreateBulk

func (c *PaymentOrderClient) CreateBulk(builders ...*PaymentOrderCreate) *PaymentOrderCreateBulk

CreateBulk returns a builder for creating a bulk of PaymentOrder entities.

func (*PaymentOrderClient) Delete

Delete returns a delete builder for PaymentOrder.

func (*PaymentOrderClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*PaymentOrderClient) DeleteOneID

func (c *PaymentOrderClient) DeleteOneID(id uuid.UUID) *PaymentOrderDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*PaymentOrderClient) Get

Get returns a PaymentOrder entity by its id.

func (*PaymentOrderClient) GetX

GetX is like Get, but panics if an error occurs.

func (*PaymentOrderClient) Hooks

func (c *PaymentOrderClient) Hooks() []Hook

Hooks returns the client hooks.

func (*PaymentOrderClient) Intercept

func (c *PaymentOrderClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `paymentorder.Intercept(f(g(h())))`.

func (*PaymentOrderClient) Interceptors

func (c *PaymentOrderClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*PaymentOrderClient) MapCreateBulk

func (c *PaymentOrderClient) MapCreateBulk(slice any, setFunc func(*PaymentOrderCreate, int)) *PaymentOrderCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*PaymentOrderClient) Query

Query returns a query builder for PaymentOrder.

func (*PaymentOrderClient) QueryLinkedAddress

func (c *PaymentOrderClient) QueryLinkedAddress(po *PaymentOrder) *LinkedAddressQuery

QueryLinkedAddress queries the linked_address edge of a PaymentOrder.

func (*PaymentOrderClient) QueryPaymentWebhook

func (c *PaymentOrderClient) QueryPaymentWebhook(po *PaymentOrder) *PaymentWebhookQuery

QueryPaymentWebhook queries the payment_webhook edge of a PaymentOrder.

func (*PaymentOrderClient) QueryReceiveAddress

func (c *PaymentOrderClient) QueryReceiveAddress(po *PaymentOrder) *ReceiveAddressQuery

QueryReceiveAddress queries the receive_address edge of a PaymentOrder.

func (*PaymentOrderClient) QueryRecipient

QueryRecipient queries the recipient edge of a PaymentOrder.

func (*PaymentOrderClient) QuerySenderProfile

func (c *PaymentOrderClient) QuerySenderProfile(po *PaymentOrder) *SenderProfileQuery

QuerySenderProfile queries the sender_profile edge of a PaymentOrder.

func (*PaymentOrderClient) QueryToken

func (c *PaymentOrderClient) QueryToken(po *PaymentOrder) *TokenQuery

QueryToken queries the token edge of a PaymentOrder.

func (*PaymentOrderClient) QueryTransactions

func (c *PaymentOrderClient) QueryTransactions(po *PaymentOrder) *TransactionLogQuery

QueryTransactions queries the transactions edge of a PaymentOrder.

func (*PaymentOrderClient) Update

Update returns an update builder for PaymentOrder.

func (*PaymentOrderClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*PaymentOrderClient) UpdateOneID

func (c *PaymentOrderClient) UpdateOneID(id uuid.UUID) *PaymentOrderUpdateOne

UpdateOneID returns an update builder for the given id.

func (*PaymentOrderClient) Use

func (c *PaymentOrderClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `paymentorder.Hooks(f(g(h())))`.

type PaymentOrderCreate

type PaymentOrderCreate struct {
	// contains filtered or unexported fields
}

PaymentOrderCreate is the builder for creating a PaymentOrder entity.

func (*PaymentOrderCreate) AddTransactionIDs

func (poc *PaymentOrderCreate) AddTransactionIDs(ids ...uuid.UUID) *PaymentOrderCreate

AddTransactionIDs adds the "transactions" edge to the TransactionLog entity by IDs.

func (*PaymentOrderCreate) AddTransactions

func (poc *PaymentOrderCreate) AddTransactions(t ...*TransactionLog) *PaymentOrderCreate

AddTransactions adds the "transactions" edges to the TransactionLog entity.

func (*PaymentOrderCreate) Exec

func (poc *PaymentOrderCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*PaymentOrderCreate) ExecX

func (poc *PaymentOrderCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderCreate) Mutation

func (poc *PaymentOrderCreate) Mutation() *PaymentOrderMutation

Mutation returns the PaymentOrderMutation object of the builder.

func (*PaymentOrderCreate) OnConflict

func (poc *PaymentOrderCreate) OnConflict(opts ...sql.ConflictOption) *PaymentOrderUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.PaymentOrder.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.PaymentOrderUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*PaymentOrderCreate) OnConflictColumns

func (poc *PaymentOrderCreate) OnConflictColumns(columns ...string) *PaymentOrderUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.PaymentOrder.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*PaymentOrderCreate) Save

Save creates the PaymentOrder in the database.

func (*PaymentOrderCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*PaymentOrderCreate) SetAmount

SetAmount sets the "amount" field.

func (*PaymentOrderCreate) SetAmountPaid

func (poc *PaymentOrderCreate) SetAmountPaid(d decimal.Decimal) *PaymentOrderCreate

SetAmountPaid sets the "amount_paid" field.

func (*PaymentOrderCreate) SetAmountReturned

func (poc *PaymentOrderCreate) SetAmountReturned(d decimal.Decimal) *PaymentOrderCreate

SetAmountReturned sets the "amount_returned" field.

func (*PaymentOrderCreate) SetBlockNumber

func (poc *PaymentOrderCreate) SetBlockNumber(i int64) *PaymentOrderCreate

SetBlockNumber sets the "block_number" field.

func (*PaymentOrderCreate) SetCreatedAt

func (poc *PaymentOrderCreate) SetCreatedAt(t time.Time) *PaymentOrderCreate

SetCreatedAt sets the "created_at" field.

func (*PaymentOrderCreate) SetFeeAddress

func (poc *PaymentOrderCreate) SetFeeAddress(s string) *PaymentOrderCreate

SetFeeAddress sets the "fee_address" field.

func (*PaymentOrderCreate) SetFeePercent

func (poc *PaymentOrderCreate) SetFeePercent(d decimal.Decimal) *PaymentOrderCreate

SetFeePercent sets the "fee_percent" field.

func (*PaymentOrderCreate) SetFromAddress

func (poc *PaymentOrderCreate) SetFromAddress(s string) *PaymentOrderCreate

SetFromAddress sets the "from_address" field.

func (*PaymentOrderCreate) SetGatewayID

func (poc *PaymentOrderCreate) SetGatewayID(s string) *PaymentOrderCreate

SetGatewayID sets the "gateway_id" field.

func (*PaymentOrderCreate) SetID

SetID sets the "id" field.

func (*PaymentOrderCreate) SetLinkedAddress

func (poc *PaymentOrderCreate) SetLinkedAddress(l *LinkedAddress) *PaymentOrderCreate

SetLinkedAddress sets the "linked_address" edge to the LinkedAddress entity.

func (*PaymentOrderCreate) SetLinkedAddressID

func (poc *PaymentOrderCreate) SetLinkedAddressID(id int) *PaymentOrderCreate

SetLinkedAddressID sets the "linked_address" edge to the LinkedAddress entity by ID.

func (*PaymentOrderCreate) SetMessageHash

func (poc *PaymentOrderCreate) SetMessageHash(s string) *PaymentOrderCreate

SetMessageHash sets the "message_hash" field.

func (*PaymentOrderCreate) SetNetworkFee

func (poc *PaymentOrderCreate) SetNetworkFee(d decimal.Decimal) *PaymentOrderCreate

SetNetworkFee sets the "network_fee" field.

func (*PaymentOrderCreate) SetNillableBlockNumber

func (poc *PaymentOrderCreate) SetNillableBlockNumber(i *int64) *PaymentOrderCreate

SetNillableBlockNumber sets the "block_number" field if the given value is not nil.

func (*PaymentOrderCreate) SetNillableCreatedAt

func (poc *PaymentOrderCreate) SetNillableCreatedAt(t *time.Time) *PaymentOrderCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*PaymentOrderCreate) SetNillableFeeAddress

func (poc *PaymentOrderCreate) SetNillableFeeAddress(s *string) *PaymentOrderCreate

SetNillableFeeAddress sets the "fee_address" field if the given value is not nil.

func (*PaymentOrderCreate) SetNillableFromAddress

func (poc *PaymentOrderCreate) SetNillableFromAddress(s *string) *PaymentOrderCreate

SetNillableFromAddress sets the "from_address" field if the given value is not nil.

func (*PaymentOrderCreate) SetNillableGatewayID

func (poc *PaymentOrderCreate) SetNillableGatewayID(s *string) *PaymentOrderCreate

SetNillableGatewayID sets the "gateway_id" field if the given value is not nil.

func (*PaymentOrderCreate) SetNillableID

func (poc *PaymentOrderCreate) SetNillableID(u *uuid.UUID) *PaymentOrderCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*PaymentOrderCreate) SetNillableLinkedAddressID

func (poc *PaymentOrderCreate) SetNillableLinkedAddressID(id *int) *PaymentOrderCreate

SetNillableLinkedAddressID sets the "linked_address" edge to the LinkedAddress entity by ID if the given value is not nil.

func (*PaymentOrderCreate) SetNillableMessageHash

func (poc *PaymentOrderCreate) SetNillableMessageHash(s *string) *PaymentOrderCreate

SetNillableMessageHash sets the "message_hash" field if the given value is not nil.

func (*PaymentOrderCreate) SetNillablePaymentWebhookID

func (poc *PaymentOrderCreate) SetNillablePaymentWebhookID(id *uuid.UUID) *PaymentOrderCreate

SetNillablePaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by ID if the given value is not nil.

func (*PaymentOrderCreate) SetNillableReceiveAddressID

func (poc *PaymentOrderCreate) SetNillableReceiveAddressID(id *int) *PaymentOrderCreate

SetNillableReceiveAddressID sets the "receive_address" edge to the ReceiveAddress entity by ID if the given value is not nil.

func (*PaymentOrderCreate) SetNillableRecipientID

func (poc *PaymentOrderCreate) SetNillableRecipientID(id *int) *PaymentOrderCreate

SetNillableRecipientID sets the "recipient" edge to the PaymentOrderRecipient entity by ID if the given value is not nil.

func (*PaymentOrderCreate) SetNillableReference

func (poc *PaymentOrderCreate) SetNillableReference(s *string) *PaymentOrderCreate

SetNillableReference sets the "reference" field if the given value is not nil.

func (*PaymentOrderCreate) SetNillableReturnAddress

func (poc *PaymentOrderCreate) SetNillableReturnAddress(s *string) *PaymentOrderCreate

SetNillableReturnAddress sets the "return_address" field if the given value is not nil.

func (*PaymentOrderCreate) SetNillableSenderProfileID

func (poc *PaymentOrderCreate) SetNillableSenderProfileID(id *uuid.UUID) *PaymentOrderCreate

SetNillableSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID if the given value is not nil.

func (*PaymentOrderCreate) SetNillableStatus

func (poc *PaymentOrderCreate) SetNillableStatus(pa *paymentorder.Status) *PaymentOrderCreate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*PaymentOrderCreate) SetNillableTxHash

func (poc *PaymentOrderCreate) SetNillableTxHash(s *string) *PaymentOrderCreate

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*PaymentOrderCreate) SetNillableUpdatedAt

func (poc *PaymentOrderCreate) SetNillableUpdatedAt(t *time.Time) *PaymentOrderCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*PaymentOrderCreate) SetPaymentWebhook

func (poc *PaymentOrderCreate) SetPaymentWebhook(p *PaymentWebhook) *PaymentOrderCreate

SetPaymentWebhook sets the "payment_webhook" edge to the PaymentWebhook entity.

func (*PaymentOrderCreate) SetPaymentWebhookID

func (poc *PaymentOrderCreate) SetPaymentWebhookID(id uuid.UUID) *PaymentOrderCreate

SetPaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by ID.

func (*PaymentOrderCreate) SetPercentSettled

func (poc *PaymentOrderCreate) SetPercentSettled(d decimal.Decimal) *PaymentOrderCreate

SetPercentSettled sets the "percent_settled" field.

func (*PaymentOrderCreate) SetRate

SetRate sets the "rate" field.

func (*PaymentOrderCreate) SetReceiveAddress

func (poc *PaymentOrderCreate) SetReceiveAddress(r *ReceiveAddress) *PaymentOrderCreate

SetReceiveAddress sets the "receive_address" edge to the ReceiveAddress entity.

func (*PaymentOrderCreate) SetReceiveAddressID

func (poc *PaymentOrderCreate) SetReceiveAddressID(id int) *PaymentOrderCreate

SetReceiveAddressID sets the "receive_address" edge to the ReceiveAddress entity by ID.

func (*PaymentOrderCreate) SetReceiveAddressText

func (poc *PaymentOrderCreate) SetReceiveAddressText(s string) *PaymentOrderCreate

SetReceiveAddressText sets the "receive_address_text" field.

func (*PaymentOrderCreate) SetRecipient

SetRecipient sets the "recipient" edge to the PaymentOrderRecipient entity.

func (*PaymentOrderCreate) SetRecipientID

func (poc *PaymentOrderCreate) SetRecipientID(id int) *PaymentOrderCreate

SetRecipientID sets the "recipient" edge to the PaymentOrderRecipient entity by ID.

func (*PaymentOrderCreate) SetReference

func (poc *PaymentOrderCreate) SetReference(s string) *PaymentOrderCreate

SetReference sets the "reference" field.

func (*PaymentOrderCreate) SetReturnAddress

func (poc *PaymentOrderCreate) SetReturnAddress(s string) *PaymentOrderCreate

SetReturnAddress sets the "return_address" field.

func (*PaymentOrderCreate) SetSenderFee

func (poc *PaymentOrderCreate) SetSenderFee(d decimal.Decimal) *PaymentOrderCreate

SetSenderFee sets the "sender_fee" field.

func (*PaymentOrderCreate) SetSenderProfile

func (poc *PaymentOrderCreate) SetSenderProfile(s *SenderProfile) *PaymentOrderCreate

SetSenderProfile sets the "sender_profile" edge to the SenderProfile entity.

func (*PaymentOrderCreate) SetSenderProfileID

func (poc *PaymentOrderCreate) SetSenderProfileID(id uuid.UUID) *PaymentOrderCreate

SetSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID.

func (*PaymentOrderCreate) SetStatus

SetStatus sets the "status" field.

func (*PaymentOrderCreate) SetToken

func (poc *PaymentOrderCreate) SetToken(t *Token) *PaymentOrderCreate

SetToken sets the "token" edge to the Token entity.

func (*PaymentOrderCreate) SetTokenID

func (poc *PaymentOrderCreate) SetTokenID(id int) *PaymentOrderCreate

SetTokenID sets the "token" edge to the Token entity by ID.

func (*PaymentOrderCreate) SetTxHash

func (poc *PaymentOrderCreate) SetTxHash(s string) *PaymentOrderCreate

SetTxHash sets the "tx_hash" field.

func (*PaymentOrderCreate) SetUpdatedAt

func (poc *PaymentOrderCreate) SetUpdatedAt(t time.Time) *PaymentOrderCreate

SetUpdatedAt sets the "updated_at" field.

type PaymentOrderCreateBulk

type PaymentOrderCreateBulk struct {
	// contains filtered or unexported fields
}

PaymentOrderCreateBulk is the builder for creating many PaymentOrder entities in bulk.

func (*PaymentOrderCreateBulk) Exec

func (pocb *PaymentOrderCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*PaymentOrderCreateBulk) ExecX

func (pocb *PaymentOrderCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.PaymentOrder.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.PaymentOrderUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*PaymentOrderCreateBulk) OnConflictColumns

func (pocb *PaymentOrderCreateBulk) OnConflictColumns(columns ...string) *PaymentOrderUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.PaymentOrder.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*PaymentOrderCreateBulk) Save

Save creates the PaymentOrder entities in the database.

func (*PaymentOrderCreateBulk) SaveX

func (pocb *PaymentOrderCreateBulk) SaveX(ctx context.Context) []*PaymentOrder

SaveX is like Save, but panics if an error occurs.

type PaymentOrderDelete

type PaymentOrderDelete struct {
	// contains filtered or unexported fields
}

PaymentOrderDelete is the builder for deleting a PaymentOrder entity.

func (*PaymentOrderDelete) Exec

func (pod *PaymentOrderDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*PaymentOrderDelete) ExecX

func (pod *PaymentOrderDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderDelete) Where

Where appends a list predicates to the PaymentOrderDelete builder.

type PaymentOrderDeleteOne

type PaymentOrderDeleteOne struct {
	// contains filtered or unexported fields
}

PaymentOrderDeleteOne is the builder for deleting a single PaymentOrder entity.

func (*PaymentOrderDeleteOne) Exec

func (podo *PaymentOrderDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*PaymentOrderDeleteOne) ExecX

func (podo *PaymentOrderDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderDeleteOne) Where

Where appends a list predicates to the PaymentOrderDelete builder.

type PaymentOrderEdges

type PaymentOrderEdges struct {
	// SenderProfile holds the value of the sender_profile edge.
	SenderProfile *SenderProfile `json:"sender_profile,omitempty"`
	// Token holds the value of the token edge.
	Token *Token `json:"token,omitempty"`
	// LinkedAddress holds the value of the linked_address edge.
	LinkedAddress *LinkedAddress `json:"linked_address,omitempty"`
	// ReceiveAddress holds the value of the receive_address edge.
	ReceiveAddress *ReceiveAddress `json:"receive_address,omitempty"`
	// Recipient holds the value of the recipient edge.
	Recipient *PaymentOrderRecipient `json:"recipient,omitempty"`
	// Transactions holds the value of the transactions edge.
	Transactions []*TransactionLog `json:"transactions,omitempty"`
	// PaymentWebhook holds the value of the payment_webhook edge.
	PaymentWebhook *PaymentWebhook `json:"payment_webhook,omitempty"`
	// contains filtered or unexported fields
}

PaymentOrderEdges holds the relations/edges for other nodes in the graph.

func (PaymentOrderEdges) LinkedAddressOrErr

func (e PaymentOrderEdges) LinkedAddressOrErr() (*LinkedAddress, error)

LinkedAddressOrErr returns the LinkedAddress value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (PaymentOrderEdges) PaymentWebhookOrErr

func (e PaymentOrderEdges) PaymentWebhookOrErr() (*PaymentWebhook, error)

PaymentWebhookOrErr returns the PaymentWebhook value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (PaymentOrderEdges) ReceiveAddressOrErr

func (e PaymentOrderEdges) ReceiveAddressOrErr() (*ReceiveAddress, error)

ReceiveAddressOrErr returns the ReceiveAddress value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (PaymentOrderEdges) RecipientOrErr

func (e PaymentOrderEdges) RecipientOrErr() (*PaymentOrderRecipient, error)

RecipientOrErr returns the Recipient value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (PaymentOrderEdges) SenderProfileOrErr

func (e PaymentOrderEdges) SenderProfileOrErr() (*SenderProfile, error)

SenderProfileOrErr returns the SenderProfile value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (PaymentOrderEdges) TokenOrErr

func (e PaymentOrderEdges) TokenOrErr() (*Token, error)

TokenOrErr returns the Token value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (PaymentOrderEdges) TransactionsOrErr

func (e PaymentOrderEdges) TransactionsOrErr() ([]*TransactionLog, error)

TransactionsOrErr returns the Transactions value or an error if the edge was not loaded in eager-loading.

type PaymentOrderGroupBy

type PaymentOrderGroupBy struct {
	// contains filtered or unexported fields
}

PaymentOrderGroupBy is the group-by builder for PaymentOrder entities.

func (*PaymentOrderGroupBy) Aggregate

func (pogb *PaymentOrderGroupBy) Aggregate(fns ...AggregateFunc) *PaymentOrderGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*PaymentOrderGroupBy) Bool

func (s *PaymentOrderGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*PaymentOrderGroupBy) BoolX

func (s *PaymentOrderGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*PaymentOrderGroupBy) Bools

func (s *PaymentOrderGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*PaymentOrderGroupBy) BoolsX

func (s *PaymentOrderGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*PaymentOrderGroupBy) Float64

func (s *PaymentOrderGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*PaymentOrderGroupBy) Float64X

func (s *PaymentOrderGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*PaymentOrderGroupBy) Float64s

func (s *PaymentOrderGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*PaymentOrderGroupBy) Float64sX

func (s *PaymentOrderGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*PaymentOrderGroupBy) Int

func (s *PaymentOrderGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*PaymentOrderGroupBy) IntX

func (s *PaymentOrderGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*PaymentOrderGroupBy) Ints

func (s *PaymentOrderGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*PaymentOrderGroupBy) IntsX

func (s *PaymentOrderGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*PaymentOrderGroupBy) Scan

func (pogb *PaymentOrderGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*PaymentOrderGroupBy) ScanX

func (s *PaymentOrderGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*PaymentOrderGroupBy) String

func (s *PaymentOrderGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*PaymentOrderGroupBy) StringX

func (s *PaymentOrderGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*PaymentOrderGroupBy) Strings

func (s *PaymentOrderGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*PaymentOrderGroupBy) StringsX

func (s *PaymentOrderGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type PaymentOrderMutation

type PaymentOrderMutation struct {
	// contains filtered or unexported fields
}

PaymentOrderMutation represents an operation that mutates the PaymentOrder nodes in the graph.

func (*PaymentOrderMutation) AddAmount

func (m *PaymentOrderMutation) AddAmount(d decimal.Decimal)

AddAmount adds d to the "amount" field.

func (*PaymentOrderMutation) AddAmountPaid

func (m *PaymentOrderMutation) AddAmountPaid(d decimal.Decimal)

AddAmountPaid adds d to the "amount_paid" field.

func (*PaymentOrderMutation) AddAmountReturned

func (m *PaymentOrderMutation) AddAmountReturned(d decimal.Decimal)

AddAmountReturned adds d to the "amount_returned" field.

func (*PaymentOrderMutation) AddBlockNumber

func (m *PaymentOrderMutation) AddBlockNumber(i int64)

AddBlockNumber adds i to the "block_number" field.

func (*PaymentOrderMutation) AddFeePercent

func (m *PaymentOrderMutation) AddFeePercent(d decimal.Decimal)

AddFeePercent adds d to the "fee_percent" field.

func (*PaymentOrderMutation) AddField

func (m *PaymentOrderMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*PaymentOrderMutation) AddNetworkFee

func (m *PaymentOrderMutation) AddNetworkFee(d decimal.Decimal)

AddNetworkFee adds d to the "network_fee" field.

func (*PaymentOrderMutation) AddPercentSettled

func (m *PaymentOrderMutation) AddPercentSettled(d decimal.Decimal)

AddPercentSettled adds d to the "percent_settled" field.

func (*PaymentOrderMutation) AddRate

func (m *PaymentOrderMutation) AddRate(d decimal.Decimal)

AddRate adds d to the "rate" field.

func (*PaymentOrderMutation) AddSenderFee

func (m *PaymentOrderMutation) AddSenderFee(d decimal.Decimal)

AddSenderFee adds d to the "sender_fee" field.

func (*PaymentOrderMutation) AddTransactionIDs

func (m *PaymentOrderMutation) AddTransactionIDs(ids ...uuid.UUID)

AddTransactionIDs adds the "transactions" edge to the TransactionLog entity by ids.

func (*PaymentOrderMutation) AddedAmount

func (m *PaymentOrderMutation) AddedAmount() (r decimal.Decimal, exists bool)

AddedAmount returns the value that was added to the "amount" field in this mutation.

func (*PaymentOrderMutation) AddedAmountPaid

func (m *PaymentOrderMutation) AddedAmountPaid() (r decimal.Decimal, exists bool)

AddedAmountPaid returns the value that was added to the "amount_paid" field in this mutation.

func (*PaymentOrderMutation) AddedAmountReturned

func (m *PaymentOrderMutation) AddedAmountReturned() (r decimal.Decimal, exists bool)

AddedAmountReturned returns the value that was added to the "amount_returned" field in this mutation.

func (*PaymentOrderMutation) AddedBlockNumber

func (m *PaymentOrderMutation) AddedBlockNumber() (r int64, exists bool)

AddedBlockNumber returns the value that was added to the "block_number" field in this mutation.

func (*PaymentOrderMutation) AddedEdges

func (m *PaymentOrderMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*PaymentOrderMutation) AddedFeePercent

func (m *PaymentOrderMutation) AddedFeePercent() (r decimal.Decimal, exists bool)

AddedFeePercent returns the value that was added to the "fee_percent" field in this mutation.

func (*PaymentOrderMutation) AddedField

func (m *PaymentOrderMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*PaymentOrderMutation) AddedFields

func (m *PaymentOrderMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*PaymentOrderMutation) AddedIDs

func (m *PaymentOrderMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*PaymentOrderMutation) AddedNetworkFee

func (m *PaymentOrderMutation) AddedNetworkFee() (r decimal.Decimal, exists bool)

AddedNetworkFee returns the value that was added to the "network_fee" field in this mutation.

func (*PaymentOrderMutation) AddedPercentSettled

func (m *PaymentOrderMutation) AddedPercentSettled() (r decimal.Decimal, exists bool)

AddedPercentSettled returns the value that was added to the "percent_settled" field in this mutation.

func (*PaymentOrderMutation) AddedRate

func (m *PaymentOrderMutation) AddedRate() (r decimal.Decimal, exists bool)

AddedRate returns the value that was added to the "rate" field in this mutation.

func (*PaymentOrderMutation) AddedSenderFee

func (m *PaymentOrderMutation) AddedSenderFee() (r decimal.Decimal, exists bool)

AddedSenderFee returns the value that was added to the "sender_fee" field in this mutation.

func (*PaymentOrderMutation) Amount

func (m *PaymentOrderMutation) Amount() (r decimal.Decimal, exists bool)

Amount returns the value of the "amount" field in the mutation.

func (*PaymentOrderMutation) AmountPaid

func (m *PaymentOrderMutation) AmountPaid() (r decimal.Decimal, exists bool)

AmountPaid returns the value of the "amount_paid" field in the mutation.

func (*PaymentOrderMutation) AmountReturned

func (m *PaymentOrderMutation) AmountReturned() (r decimal.Decimal, exists bool)

AmountReturned returns the value of the "amount_returned" field in the mutation.

func (*PaymentOrderMutation) BlockNumber

func (m *PaymentOrderMutation) BlockNumber() (r int64, exists bool)

BlockNumber returns the value of the "block_number" field in the mutation.

func (*PaymentOrderMutation) ClearEdge

func (m *PaymentOrderMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*PaymentOrderMutation) ClearFeeAddress

func (m *PaymentOrderMutation) ClearFeeAddress()

ClearFeeAddress clears the value of the "fee_address" field.

func (*PaymentOrderMutation) ClearField

func (m *PaymentOrderMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*PaymentOrderMutation) ClearFromAddress

func (m *PaymentOrderMutation) ClearFromAddress()

ClearFromAddress clears the value of the "from_address" field.

func (*PaymentOrderMutation) ClearGatewayID

func (m *PaymentOrderMutation) ClearGatewayID()

ClearGatewayID clears the value of the "gateway_id" field.

func (*PaymentOrderMutation) ClearLinkedAddress

func (m *PaymentOrderMutation) ClearLinkedAddress()

ClearLinkedAddress clears the "linked_address" edge to the LinkedAddress entity.

func (*PaymentOrderMutation) ClearMessageHash

func (m *PaymentOrderMutation) ClearMessageHash()

ClearMessageHash clears the value of the "message_hash" field.

func (*PaymentOrderMutation) ClearPaymentWebhook

func (m *PaymentOrderMutation) ClearPaymentWebhook()

ClearPaymentWebhook clears the "payment_webhook" edge to the PaymentWebhook entity.

func (*PaymentOrderMutation) ClearReceiveAddress

func (m *PaymentOrderMutation) ClearReceiveAddress()

ClearReceiveAddress clears the "receive_address" edge to the ReceiveAddress entity.

func (*PaymentOrderMutation) ClearRecipient

func (m *PaymentOrderMutation) ClearRecipient()

ClearRecipient clears the "recipient" edge to the PaymentOrderRecipient entity.

func (*PaymentOrderMutation) ClearReference

func (m *PaymentOrderMutation) ClearReference()

ClearReference clears the value of the "reference" field.

func (*PaymentOrderMutation) ClearReturnAddress

func (m *PaymentOrderMutation) ClearReturnAddress()

ClearReturnAddress clears the value of the "return_address" field.

func (*PaymentOrderMutation) ClearSenderProfile

func (m *PaymentOrderMutation) ClearSenderProfile()

ClearSenderProfile clears the "sender_profile" edge to the SenderProfile entity.

func (*PaymentOrderMutation) ClearToken

func (m *PaymentOrderMutation) ClearToken()

ClearToken clears the "token" edge to the Token entity.

func (*PaymentOrderMutation) ClearTransactions

func (m *PaymentOrderMutation) ClearTransactions()

ClearTransactions clears the "transactions" edge to the TransactionLog entity.

func (*PaymentOrderMutation) ClearTxHash

func (m *PaymentOrderMutation) ClearTxHash()

ClearTxHash clears the value of the "tx_hash" field.

func (*PaymentOrderMutation) ClearedEdges

func (m *PaymentOrderMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*PaymentOrderMutation) ClearedFields

func (m *PaymentOrderMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (PaymentOrderMutation) Client

func (m PaymentOrderMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*PaymentOrderMutation) CreatedAt

func (m *PaymentOrderMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*PaymentOrderMutation) EdgeCleared

func (m *PaymentOrderMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*PaymentOrderMutation) FeeAddress

func (m *PaymentOrderMutation) FeeAddress() (r string, exists bool)

FeeAddress returns the value of the "fee_address" field in the mutation.

func (*PaymentOrderMutation) FeeAddressCleared

func (m *PaymentOrderMutation) FeeAddressCleared() bool

FeeAddressCleared returns if the "fee_address" field was cleared in this mutation.

func (*PaymentOrderMutation) FeePercent

func (m *PaymentOrderMutation) FeePercent() (r decimal.Decimal, exists bool)

FeePercent returns the value of the "fee_percent" field in the mutation.

func (*PaymentOrderMutation) Field

func (m *PaymentOrderMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*PaymentOrderMutation) FieldCleared

func (m *PaymentOrderMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*PaymentOrderMutation) Fields

func (m *PaymentOrderMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*PaymentOrderMutation) FromAddress

func (m *PaymentOrderMutation) FromAddress() (r string, exists bool)

FromAddress returns the value of the "from_address" field in the mutation.

func (*PaymentOrderMutation) FromAddressCleared

func (m *PaymentOrderMutation) FromAddressCleared() bool

FromAddressCleared returns if the "from_address" field was cleared in this mutation.

func (*PaymentOrderMutation) GatewayID

func (m *PaymentOrderMutation) GatewayID() (r string, exists bool)

GatewayID returns the value of the "gateway_id" field in the mutation.

func (*PaymentOrderMutation) GatewayIDCleared

func (m *PaymentOrderMutation) GatewayIDCleared() bool

GatewayIDCleared returns if the "gateway_id" field was cleared in this mutation.

func (*PaymentOrderMutation) ID

func (m *PaymentOrderMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*PaymentOrderMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*PaymentOrderMutation) LinkedAddressCleared

func (m *PaymentOrderMutation) LinkedAddressCleared() bool

LinkedAddressCleared reports if the "linked_address" edge to the LinkedAddress entity was cleared.

func (*PaymentOrderMutation) LinkedAddressID

func (m *PaymentOrderMutation) LinkedAddressID() (id int, exists bool)

LinkedAddressID returns the "linked_address" edge ID in the mutation.

func (*PaymentOrderMutation) LinkedAddressIDs

func (m *PaymentOrderMutation) LinkedAddressIDs() (ids []int)

LinkedAddressIDs returns the "linked_address" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use LinkedAddressID instead. It exists only for internal usage by the builders.

func (*PaymentOrderMutation) MessageHash

func (m *PaymentOrderMutation) MessageHash() (r string, exists bool)

MessageHash returns the value of the "message_hash" field in the mutation.

func (*PaymentOrderMutation) MessageHashCleared

func (m *PaymentOrderMutation) MessageHashCleared() bool

MessageHashCleared returns if the "message_hash" field was cleared in this mutation.

func (*PaymentOrderMutation) NetworkFee

func (m *PaymentOrderMutation) NetworkFee() (r decimal.Decimal, exists bool)

NetworkFee returns the value of the "network_fee" field in the mutation.

func (*PaymentOrderMutation) OldAmount

func (m *PaymentOrderMutation) OldAmount(ctx context.Context) (v decimal.Decimal, err error)

OldAmount returns the old "amount" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldAmountPaid

func (m *PaymentOrderMutation) OldAmountPaid(ctx context.Context) (v decimal.Decimal, err error)

OldAmountPaid returns the old "amount_paid" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldAmountReturned

func (m *PaymentOrderMutation) OldAmountReturned(ctx context.Context) (v decimal.Decimal, err error)

OldAmountReturned returns the old "amount_returned" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldBlockNumber

func (m *PaymentOrderMutation) OldBlockNumber(ctx context.Context) (v int64, err error)

OldBlockNumber returns the old "block_number" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldCreatedAt

func (m *PaymentOrderMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldFeeAddress

func (m *PaymentOrderMutation) OldFeeAddress(ctx context.Context) (v string, err error)

OldFeeAddress returns the old "fee_address" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldFeePercent

func (m *PaymentOrderMutation) OldFeePercent(ctx context.Context) (v decimal.Decimal, err error)

OldFeePercent returns the old "fee_percent" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldField

func (m *PaymentOrderMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*PaymentOrderMutation) OldFromAddress

func (m *PaymentOrderMutation) OldFromAddress(ctx context.Context) (v string, err error)

OldFromAddress returns the old "from_address" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldGatewayID

func (m *PaymentOrderMutation) OldGatewayID(ctx context.Context) (v string, err error)

OldGatewayID returns the old "gateway_id" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldMessageHash

func (m *PaymentOrderMutation) OldMessageHash(ctx context.Context) (v string, err error)

OldMessageHash returns the old "message_hash" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldNetworkFee

func (m *PaymentOrderMutation) OldNetworkFee(ctx context.Context) (v decimal.Decimal, err error)

OldNetworkFee returns the old "network_fee" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldPercentSettled

func (m *PaymentOrderMutation) OldPercentSettled(ctx context.Context) (v decimal.Decimal, err error)

OldPercentSettled returns the old "percent_settled" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldRate

func (m *PaymentOrderMutation) OldRate(ctx context.Context) (v decimal.Decimal, err error)

OldRate returns the old "rate" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldReceiveAddressText

func (m *PaymentOrderMutation) OldReceiveAddressText(ctx context.Context) (v string, err error)

OldReceiveAddressText returns the old "receive_address_text" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldReference

func (m *PaymentOrderMutation) OldReference(ctx context.Context) (v string, err error)

OldReference returns the old "reference" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldReturnAddress

func (m *PaymentOrderMutation) OldReturnAddress(ctx context.Context) (v string, err error)

OldReturnAddress returns the old "return_address" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldSenderFee

func (m *PaymentOrderMutation) OldSenderFee(ctx context.Context) (v decimal.Decimal, err error)

OldSenderFee returns the old "sender_fee" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldStatus

func (m *PaymentOrderMutation) OldStatus(ctx context.Context) (v paymentorder.Status, err error)

OldStatus returns the old "status" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldTxHash

func (m *PaymentOrderMutation) OldTxHash(ctx context.Context) (v string, err error)

OldTxHash returns the old "tx_hash" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) OldUpdatedAt

func (m *PaymentOrderMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the PaymentOrder entity. If the PaymentOrder object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderMutation) Op

func (m *PaymentOrderMutation) Op() Op

Op returns the operation name.

func (*PaymentOrderMutation) PaymentWebhookCleared

func (m *PaymentOrderMutation) PaymentWebhookCleared() bool

PaymentWebhookCleared reports if the "payment_webhook" edge to the PaymentWebhook entity was cleared.

func (*PaymentOrderMutation) PaymentWebhookID

func (m *PaymentOrderMutation) PaymentWebhookID() (id uuid.UUID, exists bool)

PaymentWebhookID returns the "payment_webhook" edge ID in the mutation.

func (*PaymentOrderMutation) PaymentWebhookIDs

func (m *PaymentOrderMutation) PaymentWebhookIDs() (ids []uuid.UUID)

PaymentWebhookIDs returns the "payment_webhook" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PaymentWebhookID instead. It exists only for internal usage by the builders.

func (*PaymentOrderMutation) PercentSettled

func (m *PaymentOrderMutation) PercentSettled() (r decimal.Decimal, exists bool)

PercentSettled returns the value of the "percent_settled" field in the mutation.

func (*PaymentOrderMutation) Rate

func (m *PaymentOrderMutation) Rate() (r decimal.Decimal, exists bool)

Rate returns the value of the "rate" field in the mutation.

func (*PaymentOrderMutation) ReceiveAddressCleared

func (m *PaymentOrderMutation) ReceiveAddressCleared() bool

ReceiveAddressCleared reports if the "receive_address" edge to the ReceiveAddress entity was cleared.

func (*PaymentOrderMutation) ReceiveAddressID

func (m *PaymentOrderMutation) ReceiveAddressID() (id int, exists bool)

ReceiveAddressID returns the "receive_address" edge ID in the mutation.

func (*PaymentOrderMutation) ReceiveAddressIDs

func (m *PaymentOrderMutation) ReceiveAddressIDs() (ids []int)

ReceiveAddressIDs returns the "receive_address" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ReceiveAddressID instead. It exists only for internal usage by the builders.

func (*PaymentOrderMutation) ReceiveAddressText

func (m *PaymentOrderMutation) ReceiveAddressText() (r string, exists bool)

ReceiveAddressText returns the value of the "receive_address_text" field in the mutation.

func (*PaymentOrderMutation) RecipientCleared

func (m *PaymentOrderMutation) RecipientCleared() bool

RecipientCleared reports if the "recipient" edge to the PaymentOrderRecipient entity was cleared.

func (*PaymentOrderMutation) RecipientID

func (m *PaymentOrderMutation) RecipientID() (id int, exists bool)

RecipientID returns the "recipient" edge ID in the mutation.

func (*PaymentOrderMutation) RecipientIDs

func (m *PaymentOrderMutation) RecipientIDs() (ids []int)

RecipientIDs returns the "recipient" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RecipientID instead. It exists only for internal usage by the builders.

func (*PaymentOrderMutation) Reference

func (m *PaymentOrderMutation) Reference() (r string, exists bool)

Reference returns the value of the "reference" field in the mutation.

func (*PaymentOrderMutation) ReferenceCleared

func (m *PaymentOrderMutation) ReferenceCleared() bool

ReferenceCleared returns if the "reference" field was cleared in this mutation.

func (*PaymentOrderMutation) RemoveTransactionIDs

func (m *PaymentOrderMutation) RemoveTransactionIDs(ids ...uuid.UUID)

RemoveTransactionIDs removes the "transactions" edge to the TransactionLog entity by IDs.

func (*PaymentOrderMutation) RemovedEdges

func (m *PaymentOrderMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*PaymentOrderMutation) RemovedIDs

func (m *PaymentOrderMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*PaymentOrderMutation) RemovedTransactionsIDs

func (m *PaymentOrderMutation) RemovedTransactionsIDs() (ids []uuid.UUID)

RemovedTransactions returns the removed IDs of the "transactions" edge to the TransactionLog entity.

func (*PaymentOrderMutation) ResetAmount

func (m *PaymentOrderMutation) ResetAmount()

ResetAmount resets all changes to the "amount" field.

func (*PaymentOrderMutation) ResetAmountPaid

func (m *PaymentOrderMutation) ResetAmountPaid()

ResetAmountPaid resets all changes to the "amount_paid" field.

func (*PaymentOrderMutation) ResetAmountReturned

func (m *PaymentOrderMutation) ResetAmountReturned()

ResetAmountReturned resets all changes to the "amount_returned" field.

func (*PaymentOrderMutation) ResetBlockNumber

func (m *PaymentOrderMutation) ResetBlockNumber()

ResetBlockNumber resets all changes to the "block_number" field.

func (*PaymentOrderMutation) ResetCreatedAt

func (m *PaymentOrderMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*PaymentOrderMutation) ResetEdge

func (m *PaymentOrderMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*PaymentOrderMutation) ResetFeeAddress

func (m *PaymentOrderMutation) ResetFeeAddress()

ResetFeeAddress resets all changes to the "fee_address" field.

func (*PaymentOrderMutation) ResetFeePercent

func (m *PaymentOrderMutation) ResetFeePercent()

ResetFeePercent resets all changes to the "fee_percent" field.

func (*PaymentOrderMutation) ResetField

func (m *PaymentOrderMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*PaymentOrderMutation) ResetFromAddress

func (m *PaymentOrderMutation) ResetFromAddress()

ResetFromAddress resets all changes to the "from_address" field.

func (*PaymentOrderMutation) ResetGatewayID

func (m *PaymentOrderMutation) ResetGatewayID()

ResetGatewayID resets all changes to the "gateway_id" field.

func (*PaymentOrderMutation) ResetLinkedAddress

func (m *PaymentOrderMutation) ResetLinkedAddress()

ResetLinkedAddress resets all changes to the "linked_address" edge.

func (*PaymentOrderMutation) ResetMessageHash

func (m *PaymentOrderMutation) ResetMessageHash()

ResetMessageHash resets all changes to the "message_hash" field.

func (*PaymentOrderMutation) ResetNetworkFee

func (m *PaymentOrderMutation) ResetNetworkFee()

ResetNetworkFee resets all changes to the "network_fee" field.

func (*PaymentOrderMutation) ResetPaymentWebhook

func (m *PaymentOrderMutation) ResetPaymentWebhook()

ResetPaymentWebhook resets all changes to the "payment_webhook" edge.

func (*PaymentOrderMutation) ResetPercentSettled

func (m *PaymentOrderMutation) ResetPercentSettled()

ResetPercentSettled resets all changes to the "percent_settled" field.

func (*PaymentOrderMutation) ResetRate

func (m *PaymentOrderMutation) ResetRate()

ResetRate resets all changes to the "rate" field.

func (*PaymentOrderMutation) ResetReceiveAddress

func (m *PaymentOrderMutation) ResetReceiveAddress()

ResetReceiveAddress resets all changes to the "receive_address" edge.

func (*PaymentOrderMutation) ResetReceiveAddressText

func (m *PaymentOrderMutation) ResetReceiveAddressText()

ResetReceiveAddressText resets all changes to the "receive_address_text" field.

func (*PaymentOrderMutation) ResetRecipient

func (m *PaymentOrderMutation) ResetRecipient()

ResetRecipient resets all changes to the "recipient" edge.

func (*PaymentOrderMutation) ResetReference

func (m *PaymentOrderMutation) ResetReference()

ResetReference resets all changes to the "reference" field.

func (*PaymentOrderMutation) ResetReturnAddress

func (m *PaymentOrderMutation) ResetReturnAddress()

ResetReturnAddress resets all changes to the "return_address" field.

func (*PaymentOrderMutation) ResetSenderFee

func (m *PaymentOrderMutation) ResetSenderFee()

ResetSenderFee resets all changes to the "sender_fee" field.

func (*PaymentOrderMutation) ResetSenderProfile

func (m *PaymentOrderMutation) ResetSenderProfile()

ResetSenderProfile resets all changes to the "sender_profile" edge.

func (*PaymentOrderMutation) ResetStatus

func (m *PaymentOrderMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*PaymentOrderMutation) ResetToken

func (m *PaymentOrderMutation) ResetToken()

ResetToken resets all changes to the "token" edge.

func (*PaymentOrderMutation) ResetTransactions

func (m *PaymentOrderMutation) ResetTransactions()

ResetTransactions resets all changes to the "transactions" edge.

func (*PaymentOrderMutation) ResetTxHash

func (m *PaymentOrderMutation) ResetTxHash()

ResetTxHash resets all changes to the "tx_hash" field.

func (*PaymentOrderMutation) ResetUpdatedAt

func (m *PaymentOrderMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*PaymentOrderMutation) ReturnAddress

func (m *PaymentOrderMutation) ReturnAddress() (r string, exists bool)

ReturnAddress returns the value of the "return_address" field in the mutation.

func (*PaymentOrderMutation) ReturnAddressCleared

func (m *PaymentOrderMutation) ReturnAddressCleared() bool

ReturnAddressCleared returns if the "return_address" field was cleared in this mutation.

func (*PaymentOrderMutation) SenderFee

func (m *PaymentOrderMutation) SenderFee() (r decimal.Decimal, exists bool)

SenderFee returns the value of the "sender_fee" field in the mutation.

func (*PaymentOrderMutation) SenderProfileCleared

func (m *PaymentOrderMutation) SenderProfileCleared() bool

SenderProfileCleared reports if the "sender_profile" edge to the SenderProfile entity was cleared.

func (*PaymentOrderMutation) SenderProfileID

func (m *PaymentOrderMutation) SenderProfileID() (id uuid.UUID, exists bool)

SenderProfileID returns the "sender_profile" edge ID in the mutation.

func (*PaymentOrderMutation) SenderProfileIDs

func (m *PaymentOrderMutation) SenderProfileIDs() (ids []uuid.UUID)

SenderProfileIDs returns the "sender_profile" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SenderProfileID instead. It exists only for internal usage by the builders.

func (*PaymentOrderMutation) SetAmount

func (m *PaymentOrderMutation) SetAmount(d decimal.Decimal)

SetAmount sets the "amount" field.

func (*PaymentOrderMutation) SetAmountPaid

func (m *PaymentOrderMutation) SetAmountPaid(d decimal.Decimal)

SetAmountPaid sets the "amount_paid" field.

func (*PaymentOrderMutation) SetAmountReturned

func (m *PaymentOrderMutation) SetAmountReturned(d decimal.Decimal)

SetAmountReturned sets the "amount_returned" field.

func (*PaymentOrderMutation) SetBlockNumber

func (m *PaymentOrderMutation) SetBlockNumber(i int64)

SetBlockNumber sets the "block_number" field.

func (*PaymentOrderMutation) SetCreatedAt

func (m *PaymentOrderMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*PaymentOrderMutation) SetFeeAddress

func (m *PaymentOrderMutation) SetFeeAddress(s string)

SetFeeAddress sets the "fee_address" field.

func (*PaymentOrderMutation) SetFeePercent

func (m *PaymentOrderMutation) SetFeePercent(d decimal.Decimal)

SetFeePercent sets the "fee_percent" field.

func (*PaymentOrderMutation) SetField

func (m *PaymentOrderMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*PaymentOrderMutation) SetFromAddress

func (m *PaymentOrderMutation) SetFromAddress(s string)

SetFromAddress sets the "from_address" field.

func (*PaymentOrderMutation) SetGatewayID

func (m *PaymentOrderMutation) SetGatewayID(s string)

SetGatewayID sets the "gateway_id" field.

func (*PaymentOrderMutation) SetID

func (m *PaymentOrderMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of PaymentOrder entities.

func (*PaymentOrderMutation) SetLinkedAddressID

func (m *PaymentOrderMutation) SetLinkedAddressID(id int)

SetLinkedAddressID sets the "linked_address" edge to the LinkedAddress entity by id.

func (*PaymentOrderMutation) SetMessageHash

func (m *PaymentOrderMutation) SetMessageHash(s string)

SetMessageHash sets the "message_hash" field.

func (*PaymentOrderMutation) SetNetworkFee

func (m *PaymentOrderMutation) SetNetworkFee(d decimal.Decimal)

SetNetworkFee sets the "network_fee" field.

func (*PaymentOrderMutation) SetOp

func (m *PaymentOrderMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*PaymentOrderMutation) SetPaymentWebhookID

func (m *PaymentOrderMutation) SetPaymentWebhookID(id uuid.UUID)

SetPaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by id.

func (*PaymentOrderMutation) SetPercentSettled

func (m *PaymentOrderMutation) SetPercentSettled(d decimal.Decimal)

SetPercentSettled sets the "percent_settled" field.

func (*PaymentOrderMutation) SetRate

func (m *PaymentOrderMutation) SetRate(d decimal.Decimal)

SetRate sets the "rate" field.

func (*PaymentOrderMutation) SetReceiveAddressID

func (m *PaymentOrderMutation) SetReceiveAddressID(id int)

SetReceiveAddressID sets the "receive_address" edge to the ReceiveAddress entity by id.

func (*PaymentOrderMutation) SetReceiveAddressText

func (m *PaymentOrderMutation) SetReceiveAddressText(s string)

SetReceiveAddressText sets the "receive_address_text" field.

func (*PaymentOrderMutation) SetRecipientID

func (m *PaymentOrderMutation) SetRecipientID(id int)

SetRecipientID sets the "recipient" edge to the PaymentOrderRecipient entity by id.

func (*PaymentOrderMutation) SetReference

func (m *PaymentOrderMutation) SetReference(s string)

SetReference sets the "reference" field.

func (*PaymentOrderMutation) SetReturnAddress

func (m *PaymentOrderMutation) SetReturnAddress(s string)

SetReturnAddress sets the "return_address" field.

func (*PaymentOrderMutation) SetSenderFee

func (m *PaymentOrderMutation) SetSenderFee(d decimal.Decimal)

SetSenderFee sets the "sender_fee" field.

func (*PaymentOrderMutation) SetSenderProfileID

func (m *PaymentOrderMutation) SetSenderProfileID(id uuid.UUID)

SetSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by id.

func (*PaymentOrderMutation) SetStatus

func (m *PaymentOrderMutation) SetStatus(pa paymentorder.Status)

SetStatus sets the "status" field.

func (*PaymentOrderMutation) SetTokenID

func (m *PaymentOrderMutation) SetTokenID(id int)

SetTokenID sets the "token" edge to the Token entity by id.

func (*PaymentOrderMutation) SetTxHash

func (m *PaymentOrderMutation) SetTxHash(s string)

SetTxHash sets the "tx_hash" field.

func (*PaymentOrderMutation) SetUpdatedAt

func (m *PaymentOrderMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*PaymentOrderMutation) Status

func (m *PaymentOrderMutation) Status() (r paymentorder.Status, exists bool)

Status returns the value of the "status" field in the mutation.

func (*PaymentOrderMutation) TokenCleared

func (m *PaymentOrderMutation) TokenCleared() bool

TokenCleared reports if the "token" edge to the Token entity was cleared.

func (*PaymentOrderMutation) TokenID

func (m *PaymentOrderMutation) TokenID() (id int, exists bool)

TokenID returns the "token" edge ID in the mutation.

func (*PaymentOrderMutation) TokenIDs

func (m *PaymentOrderMutation) TokenIDs() (ids []int)

TokenIDs returns the "token" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use TokenID instead. It exists only for internal usage by the builders.

func (*PaymentOrderMutation) TransactionsCleared

func (m *PaymentOrderMutation) TransactionsCleared() bool

TransactionsCleared reports if the "transactions" edge to the TransactionLog entity was cleared.

func (*PaymentOrderMutation) TransactionsIDs

func (m *PaymentOrderMutation) TransactionsIDs() (ids []uuid.UUID)

TransactionsIDs returns the "transactions" edge IDs in the mutation.

func (PaymentOrderMutation) Tx

func (m PaymentOrderMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*PaymentOrderMutation) TxHash

func (m *PaymentOrderMutation) TxHash() (r string, exists bool)

TxHash returns the value of the "tx_hash" field in the mutation.

func (*PaymentOrderMutation) TxHashCleared

func (m *PaymentOrderMutation) TxHashCleared() bool

TxHashCleared returns if the "tx_hash" field was cleared in this mutation.

func (*PaymentOrderMutation) Type

func (m *PaymentOrderMutation) Type() string

Type returns the node type of this mutation (PaymentOrder).

func (*PaymentOrderMutation) UpdatedAt

func (m *PaymentOrderMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*PaymentOrderMutation) Where

Where appends a list predicates to the PaymentOrderMutation builder.

func (*PaymentOrderMutation) WhereP

func (m *PaymentOrderMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the PaymentOrderMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type PaymentOrderQuery

type PaymentOrderQuery struct {
	// contains filtered or unexported fields
}

PaymentOrderQuery is the builder for querying PaymentOrder entities.

func (*PaymentOrderQuery) Aggregate

func (poq *PaymentOrderQuery) Aggregate(fns ...AggregateFunc) *PaymentOrderSelect

Aggregate returns a PaymentOrderSelect configured with the given aggregations.

func (*PaymentOrderQuery) All

func (poq *PaymentOrderQuery) All(ctx context.Context) ([]*PaymentOrder, error)

All executes the query and returns a list of PaymentOrders.

func (*PaymentOrderQuery) AllX

func (poq *PaymentOrderQuery) AllX(ctx context.Context) []*PaymentOrder

AllX is like All, but panics if an error occurs.

func (*PaymentOrderQuery) Clone

func (poq *PaymentOrderQuery) Clone() *PaymentOrderQuery

Clone returns a duplicate of the PaymentOrderQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*PaymentOrderQuery) Count

func (poq *PaymentOrderQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*PaymentOrderQuery) CountX

func (poq *PaymentOrderQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*PaymentOrderQuery) Exist

func (poq *PaymentOrderQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*PaymentOrderQuery) ExistX

func (poq *PaymentOrderQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*PaymentOrderQuery) First

func (poq *PaymentOrderQuery) First(ctx context.Context) (*PaymentOrder, error)

First returns the first PaymentOrder entity from the query. Returns a *NotFoundError when no PaymentOrder was found.

func (*PaymentOrderQuery) FirstID

func (poq *PaymentOrderQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first PaymentOrder ID from the query. Returns a *NotFoundError when no PaymentOrder ID was found.

func (*PaymentOrderQuery) FirstIDX

func (poq *PaymentOrderQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*PaymentOrderQuery) FirstX

func (poq *PaymentOrderQuery) FirstX(ctx context.Context) *PaymentOrder

FirstX is like First, but panics if an error occurs.

func (*PaymentOrderQuery) GroupBy

func (poq *PaymentOrderQuery) GroupBy(field string, fields ...string) *PaymentOrderGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.PaymentOrder.Query().
	GroupBy(paymentorder.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*PaymentOrderQuery) IDs

func (poq *PaymentOrderQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of PaymentOrder IDs.

func (*PaymentOrderQuery) IDsX

func (poq *PaymentOrderQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*PaymentOrderQuery) Limit

func (poq *PaymentOrderQuery) Limit(limit int) *PaymentOrderQuery

Limit the number of records to be returned by this query.

func (*PaymentOrderQuery) Offset

func (poq *PaymentOrderQuery) Offset(offset int) *PaymentOrderQuery

Offset to start from.

func (*PaymentOrderQuery) Only

func (poq *PaymentOrderQuery) Only(ctx context.Context) (*PaymentOrder, error)

Only returns a single PaymentOrder entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one PaymentOrder entity is found. Returns a *NotFoundError when no PaymentOrder entities are found.

func (*PaymentOrderQuery) OnlyID

func (poq *PaymentOrderQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only PaymentOrder ID in the query. Returns a *NotSingularError when more than one PaymentOrder ID is found. Returns a *NotFoundError when no entities are found.

func (*PaymentOrderQuery) OnlyIDX

func (poq *PaymentOrderQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*PaymentOrderQuery) OnlyX

func (poq *PaymentOrderQuery) OnlyX(ctx context.Context) *PaymentOrder

OnlyX is like Only, but panics if an error occurs.

func (*PaymentOrderQuery) Order

Order specifies how the records should be ordered.

func (*PaymentOrderQuery) QueryLinkedAddress

func (poq *PaymentOrderQuery) QueryLinkedAddress() *LinkedAddressQuery

QueryLinkedAddress chains the current query on the "linked_address" edge.

func (*PaymentOrderQuery) QueryPaymentWebhook

func (poq *PaymentOrderQuery) QueryPaymentWebhook() *PaymentWebhookQuery

QueryPaymentWebhook chains the current query on the "payment_webhook" edge.

func (*PaymentOrderQuery) QueryReceiveAddress

func (poq *PaymentOrderQuery) QueryReceiveAddress() *ReceiveAddressQuery

QueryReceiveAddress chains the current query on the "receive_address" edge.

func (*PaymentOrderQuery) QueryRecipient

func (poq *PaymentOrderQuery) QueryRecipient() *PaymentOrderRecipientQuery

QueryRecipient chains the current query on the "recipient" edge.

func (*PaymentOrderQuery) QuerySenderProfile

func (poq *PaymentOrderQuery) QuerySenderProfile() *SenderProfileQuery

QuerySenderProfile chains the current query on the "sender_profile" edge.

func (*PaymentOrderQuery) QueryToken

func (poq *PaymentOrderQuery) QueryToken() *TokenQuery

QueryToken chains the current query on the "token" edge.

func (*PaymentOrderQuery) QueryTransactions

func (poq *PaymentOrderQuery) QueryTransactions() *TransactionLogQuery

QueryTransactions chains the current query on the "transactions" edge.

func (*PaymentOrderQuery) Select

func (poq *PaymentOrderQuery) Select(fields ...string) *PaymentOrderSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.PaymentOrder.Query().
	Select(paymentorder.FieldCreatedAt).
	Scan(ctx, &v)

func (*PaymentOrderQuery) Unique

func (poq *PaymentOrderQuery) Unique(unique bool) *PaymentOrderQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*PaymentOrderQuery) Where

Where adds a new predicate for the PaymentOrderQuery builder.

func (*PaymentOrderQuery) WithLinkedAddress

func (poq *PaymentOrderQuery) WithLinkedAddress(opts ...func(*LinkedAddressQuery)) *PaymentOrderQuery

WithLinkedAddress tells the query-builder to eager-load the nodes that are connected to the "linked_address" edge. The optional arguments are used to configure the query builder of the edge.

func (*PaymentOrderQuery) WithPaymentWebhook

func (poq *PaymentOrderQuery) WithPaymentWebhook(opts ...func(*PaymentWebhookQuery)) *PaymentOrderQuery

WithPaymentWebhook tells the query-builder to eager-load the nodes that are connected to the "payment_webhook" edge. The optional arguments are used to configure the query builder of the edge.

func (*PaymentOrderQuery) WithReceiveAddress

func (poq *PaymentOrderQuery) WithReceiveAddress(opts ...func(*ReceiveAddressQuery)) *PaymentOrderQuery

WithReceiveAddress tells the query-builder to eager-load the nodes that are connected to the "receive_address" edge. The optional arguments are used to configure the query builder of the edge.

func (*PaymentOrderQuery) WithRecipient

func (poq *PaymentOrderQuery) WithRecipient(opts ...func(*PaymentOrderRecipientQuery)) *PaymentOrderQuery

WithRecipient tells the query-builder to eager-load the nodes that are connected to the "recipient" edge. The optional arguments are used to configure the query builder of the edge.

func (*PaymentOrderQuery) WithSenderProfile

func (poq *PaymentOrderQuery) WithSenderProfile(opts ...func(*SenderProfileQuery)) *PaymentOrderQuery

WithSenderProfile tells the query-builder to eager-load the nodes that are connected to the "sender_profile" edge. The optional arguments are used to configure the query builder of the edge.

func (*PaymentOrderQuery) WithToken

func (poq *PaymentOrderQuery) WithToken(opts ...func(*TokenQuery)) *PaymentOrderQuery

WithToken tells the query-builder to eager-load the nodes that are connected to the "token" edge. The optional arguments are used to configure the query builder of the edge.

func (*PaymentOrderQuery) WithTransactions

func (poq *PaymentOrderQuery) WithTransactions(opts ...func(*TransactionLogQuery)) *PaymentOrderQuery

WithTransactions tells the query-builder to eager-load the nodes that are connected to the "transactions" edge. The optional arguments are used to configure the query builder of the edge.

type PaymentOrderRecipient

type PaymentOrderRecipient struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Institution holds the value of the "institution" field.
	Institution string `json:"institution,omitempty"`
	// AccountIdentifier holds the value of the "account_identifier" field.
	AccountIdentifier string `json:"account_identifier,omitempty"`
	// AccountName holds the value of the "account_name" field.
	AccountName string `json:"account_name,omitempty"`
	// Memo holds the value of the "memo" field.
	Memo string `json:"memo,omitempty"`
	// ProviderID holds the value of the "provider_id" field.
	ProviderID string `json:"provider_id,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata map[string]interface{} `json:"metadata,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the PaymentOrderRecipientQuery when eager-loading is set.
	Edges PaymentOrderRecipientEdges `json:"edges"`
	// contains filtered or unexported fields
}

PaymentOrderRecipient is the model entity for the PaymentOrderRecipient schema.

func (*PaymentOrderRecipient) QueryPaymentOrder

func (por *PaymentOrderRecipient) QueryPaymentOrder() *PaymentOrderQuery

QueryPaymentOrder queries the "payment_order" edge of the PaymentOrderRecipient entity.

func (*PaymentOrderRecipient) String

func (por *PaymentOrderRecipient) String() string

String implements the fmt.Stringer.

func (*PaymentOrderRecipient) Unwrap

Unwrap unwraps the PaymentOrderRecipient entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*PaymentOrderRecipient) Update

Update returns a builder for updating this PaymentOrderRecipient. Note that you need to call PaymentOrderRecipient.Unwrap() before calling this method if this PaymentOrderRecipient was returned from a transaction, and the transaction was committed or rolled back.

func (*PaymentOrderRecipient) Value

func (por *PaymentOrderRecipient) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the PaymentOrderRecipient. This includes values selected through modifiers, order, etc.

type PaymentOrderRecipientClient

type PaymentOrderRecipientClient struct {
	// contains filtered or unexported fields
}

PaymentOrderRecipientClient is a client for the PaymentOrderRecipient schema.

func NewPaymentOrderRecipientClient

func NewPaymentOrderRecipientClient(c config) *PaymentOrderRecipientClient

NewPaymentOrderRecipientClient returns a client for the PaymentOrderRecipient from the given config.

func (*PaymentOrderRecipientClient) Create

Create returns a builder for creating a PaymentOrderRecipient entity.

func (*PaymentOrderRecipientClient) CreateBulk

CreateBulk returns a builder for creating a bulk of PaymentOrderRecipient entities.

func (*PaymentOrderRecipientClient) Delete

Delete returns a delete builder for PaymentOrderRecipient.

func (*PaymentOrderRecipientClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*PaymentOrderRecipientClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*PaymentOrderRecipientClient) Get

Get returns a PaymentOrderRecipient entity by its id.

func (*PaymentOrderRecipientClient) GetX

GetX is like Get, but panics if an error occurs.

func (*PaymentOrderRecipientClient) Hooks

func (c *PaymentOrderRecipientClient) Hooks() []Hook

Hooks returns the client hooks.

func (*PaymentOrderRecipientClient) Intercept

func (c *PaymentOrderRecipientClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `paymentorderrecipient.Intercept(f(g(h())))`.

func (*PaymentOrderRecipientClient) Interceptors

func (c *PaymentOrderRecipientClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*PaymentOrderRecipientClient) MapCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*PaymentOrderRecipientClient) Query

Query returns a query builder for PaymentOrderRecipient.

func (*PaymentOrderRecipientClient) QueryPaymentOrder

QueryPaymentOrder queries the payment_order edge of a PaymentOrderRecipient.

func (*PaymentOrderRecipientClient) Update

Update returns an update builder for PaymentOrderRecipient.

func (*PaymentOrderRecipientClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*PaymentOrderRecipientClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*PaymentOrderRecipientClient) Use

func (c *PaymentOrderRecipientClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `paymentorderrecipient.Hooks(f(g(h())))`.

type PaymentOrderRecipientCreate

type PaymentOrderRecipientCreate struct {
	// contains filtered or unexported fields
}

PaymentOrderRecipientCreate is the builder for creating a PaymentOrderRecipient entity.

func (*PaymentOrderRecipientCreate) Exec

Exec executes the query.

func (*PaymentOrderRecipientCreate) ExecX

func (porc *PaymentOrderRecipientCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderRecipientCreate) Mutation

Mutation returns the PaymentOrderRecipientMutation object of the builder.

func (*PaymentOrderRecipientCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.PaymentOrderRecipient.Create().
	SetInstitution(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.PaymentOrderRecipientUpsert) {
		SetInstitution(v+v).
	}).
	Exec(ctx)

func (*PaymentOrderRecipientCreate) OnConflictColumns

func (porc *PaymentOrderRecipientCreate) OnConflictColumns(columns ...string) *PaymentOrderRecipientUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.PaymentOrderRecipient.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*PaymentOrderRecipientCreate) Save

Save creates the PaymentOrderRecipient in the database.

func (*PaymentOrderRecipientCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*PaymentOrderRecipientCreate) SetAccountIdentifier

func (porc *PaymentOrderRecipientCreate) SetAccountIdentifier(s string) *PaymentOrderRecipientCreate

SetAccountIdentifier sets the "account_identifier" field.

func (*PaymentOrderRecipientCreate) SetAccountName

SetAccountName sets the "account_name" field.

func (*PaymentOrderRecipientCreate) SetInstitution

SetInstitution sets the "institution" field.

func (*PaymentOrderRecipientCreate) SetMemo

SetMemo sets the "memo" field.

func (*PaymentOrderRecipientCreate) SetMetadata

func (porc *PaymentOrderRecipientCreate) SetMetadata(m map[string]interface{}) *PaymentOrderRecipientCreate

SetMetadata sets the "metadata" field.

func (*PaymentOrderRecipientCreate) SetNillableMemo

SetNillableMemo sets the "memo" field if the given value is not nil.

func (*PaymentOrderRecipientCreate) SetNillableProviderID

func (porc *PaymentOrderRecipientCreate) SetNillableProviderID(s *string) *PaymentOrderRecipientCreate

SetNillableProviderID sets the "provider_id" field if the given value is not nil.

func (*PaymentOrderRecipientCreate) SetPaymentOrder

SetPaymentOrder sets the "payment_order" edge to the PaymentOrder entity.

func (*PaymentOrderRecipientCreate) SetPaymentOrderID

SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID.

func (*PaymentOrderRecipientCreate) SetProviderID

SetProviderID sets the "provider_id" field.

type PaymentOrderRecipientCreateBulk

type PaymentOrderRecipientCreateBulk struct {
	// contains filtered or unexported fields
}

PaymentOrderRecipientCreateBulk is the builder for creating many PaymentOrderRecipient entities in bulk.

func (*PaymentOrderRecipientCreateBulk) Exec

Exec executes the query.

func (*PaymentOrderRecipientCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderRecipientCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.PaymentOrderRecipient.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.PaymentOrderRecipientUpsert) {
		SetInstitution(v+v).
	}).
	Exec(ctx)

func (*PaymentOrderRecipientCreateBulk) OnConflictColumns

func (porcb *PaymentOrderRecipientCreateBulk) OnConflictColumns(columns ...string) *PaymentOrderRecipientUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.PaymentOrderRecipient.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*PaymentOrderRecipientCreateBulk) Save

Save creates the PaymentOrderRecipient entities in the database.

func (*PaymentOrderRecipientCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type PaymentOrderRecipientDelete

type PaymentOrderRecipientDelete struct {
	// contains filtered or unexported fields
}

PaymentOrderRecipientDelete is the builder for deleting a PaymentOrderRecipient entity.

func (*PaymentOrderRecipientDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*PaymentOrderRecipientDelete) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderRecipientDelete) Where

Where appends a list predicates to the PaymentOrderRecipientDelete builder.

type PaymentOrderRecipientDeleteOne

type PaymentOrderRecipientDeleteOne struct {
	// contains filtered or unexported fields
}

PaymentOrderRecipientDeleteOne is the builder for deleting a single PaymentOrderRecipient entity.

func (*PaymentOrderRecipientDeleteOne) Exec

Exec executes the deletion query.

func (*PaymentOrderRecipientDeleteOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderRecipientDeleteOne) Where

Where appends a list predicates to the PaymentOrderRecipientDelete builder.

type PaymentOrderRecipientEdges

type PaymentOrderRecipientEdges struct {
	// PaymentOrder holds the value of the payment_order edge.
	PaymentOrder *PaymentOrder `json:"payment_order,omitempty"`
	// contains filtered or unexported fields
}

PaymentOrderRecipientEdges holds the relations/edges for other nodes in the graph.

func (PaymentOrderRecipientEdges) PaymentOrderOrErr

func (e PaymentOrderRecipientEdges) PaymentOrderOrErr() (*PaymentOrder, error)

PaymentOrderOrErr returns the PaymentOrder value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type PaymentOrderRecipientGroupBy

type PaymentOrderRecipientGroupBy struct {
	// contains filtered or unexported fields
}

PaymentOrderRecipientGroupBy is the group-by builder for PaymentOrderRecipient entities.

func (*PaymentOrderRecipientGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*PaymentOrderRecipientGroupBy) Bool

func (s *PaymentOrderRecipientGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientGroupBy) BoolX

func (s *PaymentOrderRecipientGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*PaymentOrderRecipientGroupBy) Bools

func (s *PaymentOrderRecipientGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientGroupBy) BoolsX

func (s *PaymentOrderRecipientGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*PaymentOrderRecipientGroupBy) Float64

func (s *PaymentOrderRecipientGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientGroupBy) Float64X

func (s *PaymentOrderRecipientGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*PaymentOrderRecipientGroupBy) Float64s

func (s *PaymentOrderRecipientGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientGroupBy) Float64sX

func (s *PaymentOrderRecipientGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*PaymentOrderRecipientGroupBy) Int

func (s *PaymentOrderRecipientGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientGroupBy) IntX

func (s *PaymentOrderRecipientGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*PaymentOrderRecipientGroupBy) Ints

func (s *PaymentOrderRecipientGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientGroupBy) IntsX

func (s *PaymentOrderRecipientGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*PaymentOrderRecipientGroupBy) Scan

Scan applies the selector query and scans the result into the given value.

func (*PaymentOrderRecipientGroupBy) ScanX

func (s *PaymentOrderRecipientGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*PaymentOrderRecipientGroupBy) String

func (s *PaymentOrderRecipientGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientGroupBy) StringX

func (s *PaymentOrderRecipientGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*PaymentOrderRecipientGroupBy) Strings

func (s *PaymentOrderRecipientGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientGroupBy) StringsX

func (s *PaymentOrderRecipientGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type PaymentOrderRecipientMutation

type PaymentOrderRecipientMutation struct {
	// contains filtered or unexported fields
}

PaymentOrderRecipientMutation represents an operation that mutates the PaymentOrderRecipient nodes in the graph.

func (*PaymentOrderRecipientMutation) AccountIdentifier

func (m *PaymentOrderRecipientMutation) AccountIdentifier() (r string, exists bool)

AccountIdentifier returns the value of the "account_identifier" field in the mutation.

func (*PaymentOrderRecipientMutation) AccountName

func (m *PaymentOrderRecipientMutation) AccountName() (r string, exists bool)

AccountName returns the value of the "account_name" field in the mutation.

func (*PaymentOrderRecipientMutation) AddField

func (m *PaymentOrderRecipientMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*PaymentOrderRecipientMutation) AddedEdges

func (m *PaymentOrderRecipientMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*PaymentOrderRecipientMutation) AddedField

func (m *PaymentOrderRecipientMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*PaymentOrderRecipientMutation) AddedFields

func (m *PaymentOrderRecipientMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*PaymentOrderRecipientMutation) AddedIDs

func (m *PaymentOrderRecipientMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*PaymentOrderRecipientMutation) ClearEdge

func (m *PaymentOrderRecipientMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*PaymentOrderRecipientMutation) ClearField

func (m *PaymentOrderRecipientMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*PaymentOrderRecipientMutation) ClearMemo

func (m *PaymentOrderRecipientMutation) ClearMemo()

ClearMemo clears the value of the "memo" field.

func (*PaymentOrderRecipientMutation) ClearMetadata

func (m *PaymentOrderRecipientMutation) ClearMetadata()

ClearMetadata clears the value of the "metadata" field.

func (*PaymentOrderRecipientMutation) ClearPaymentOrder

func (m *PaymentOrderRecipientMutation) ClearPaymentOrder()

ClearPaymentOrder clears the "payment_order" edge to the PaymentOrder entity.

func (*PaymentOrderRecipientMutation) ClearProviderID

func (m *PaymentOrderRecipientMutation) ClearProviderID()

ClearProviderID clears the value of the "provider_id" field.

func (*PaymentOrderRecipientMutation) ClearedEdges

func (m *PaymentOrderRecipientMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*PaymentOrderRecipientMutation) ClearedFields

func (m *PaymentOrderRecipientMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (PaymentOrderRecipientMutation) Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*PaymentOrderRecipientMutation) EdgeCleared

func (m *PaymentOrderRecipientMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*PaymentOrderRecipientMutation) Field

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*PaymentOrderRecipientMutation) FieldCleared

func (m *PaymentOrderRecipientMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*PaymentOrderRecipientMutation) Fields

func (m *PaymentOrderRecipientMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*PaymentOrderRecipientMutation) ID

func (m *PaymentOrderRecipientMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*PaymentOrderRecipientMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*PaymentOrderRecipientMutation) Institution

func (m *PaymentOrderRecipientMutation) Institution() (r string, exists bool)

Institution returns the value of the "institution" field in the mutation.

func (*PaymentOrderRecipientMutation) Memo

func (m *PaymentOrderRecipientMutation) Memo() (r string, exists bool)

Memo returns the value of the "memo" field in the mutation.

func (*PaymentOrderRecipientMutation) MemoCleared

func (m *PaymentOrderRecipientMutation) MemoCleared() bool

MemoCleared returns if the "memo" field was cleared in this mutation.

func (*PaymentOrderRecipientMutation) Metadata

func (m *PaymentOrderRecipientMutation) Metadata() (r map[string]interface{}, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*PaymentOrderRecipientMutation) MetadataCleared

func (m *PaymentOrderRecipientMutation) MetadataCleared() bool

MetadataCleared returns if the "metadata" field was cleared in this mutation.

func (*PaymentOrderRecipientMutation) OldAccountIdentifier

func (m *PaymentOrderRecipientMutation) OldAccountIdentifier(ctx context.Context) (v string, err error)

OldAccountIdentifier returns the old "account_identifier" field's value of the PaymentOrderRecipient entity. If the PaymentOrderRecipient object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderRecipientMutation) OldAccountName

func (m *PaymentOrderRecipientMutation) OldAccountName(ctx context.Context) (v string, err error)

OldAccountName returns the old "account_name" field's value of the PaymentOrderRecipient entity. If the PaymentOrderRecipient object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderRecipientMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*PaymentOrderRecipientMutation) OldInstitution

func (m *PaymentOrderRecipientMutation) OldInstitution(ctx context.Context) (v string, err error)

OldInstitution returns the old "institution" field's value of the PaymentOrderRecipient entity. If the PaymentOrderRecipient object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderRecipientMutation) OldMemo

func (m *PaymentOrderRecipientMutation) OldMemo(ctx context.Context) (v string, err error)

OldMemo returns the old "memo" field's value of the PaymentOrderRecipient entity. If the PaymentOrderRecipient object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderRecipientMutation) OldMetadata

func (m *PaymentOrderRecipientMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error)

OldMetadata returns the old "metadata" field's value of the PaymentOrderRecipient entity. If the PaymentOrderRecipient object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderRecipientMutation) OldProviderID

func (m *PaymentOrderRecipientMutation) OldProviderID(ctx context.Context) (v string, err error)

OldProviderID returns the old "provider_id" field's value of the PaymentOrderRecipient entity. If the PaymentOrderRecipient object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentOrderRecipientMutation) Op

Op returns the operation name.

func (*PaymentOrderRecipientMutation) PaymentOrderCleared

func (m *PaymentOrderRecipientMutation) PaymentOrderCleared() bool

PaymentOrderCleared reports if the "payment_order" edge to the PaymentOrder entity was cleared.

func (*PaymentOrderRecipientMutation) PaymentOrderID

func (m *PaymentOrderRecipientMutation) PaymentOrderID() (id uuid.UUID, exists bool)

PaymentOrderID returns the "payment_order" edge ID in the mutation.

func (*PaymentOrderRecipientMutation) PaymentOrderIDs

func (m *PaymentOrderRecipientMutation) PaymentOrderIDs() (ids []uuid.UUID)

PaymentOrderIDs returns the "payment_order" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PaymentOrderID instead. It exists only for internal usage by the builders.

func (*PaymentOrderRecipientMutation) ProviderID

func (m *PaymentOrderRecipientMutation) ProviderID() (r string, exists bool)

ProviderID returns the value of the "provider_id" field in the mutation.

func (*PaymentOrderRecipientMutation) ProviderIDCleared

func (m *PaymentOrderRecipientMutation) ProviderIDCleared() bool

ProviderIDCleared returns if the "provider_id" field was cleared in this mutation.

func (*PaymentOrderRecipientMutation) RemovedEdges

func (m *PaymentOrderRecipientMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*PaymentOrderRecipientMutation) RemovedIDs

func (m *PaymentOrderRecipientMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*PaymentOrderRecipientMutation) ResetAccountIdentifier

func (m *PaymentOrderRecipientMutation) ResetAccountIdentifier()

ResetAccountIdentifier resets all changes to the "account_identifier" field.

func (*PaymentOrderRecipientMutation) ResetAccountName

func (m *PaymentOrderRecipientMutation) ResetAccountName()

ResetAccountName resets all changes to the "account_name" field.

func (*PaymentOrderRecipientMutation) ResetEdge

func (m *PaymentOrderRecipientMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*PaymentOrderRecipientMutation) ResetField

func (m *PaymentOrderRecipientMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*PaymentOrderRecipientMutation) ResetInstitution

func (m *PaymentOrderRecipientMutation) ResetInstitution()

ResetInstitution resets all changes to the "institution" field.

func (*PaymentOrderRecipientMutation) ResetMemo

func (m *PaymentOrderRecipientMutation) ResetMemo()

ResetMemo resets all changes to the "memo" field.

func (*PaymentOrderRecipientMutation) ResetMetadata

func (m *PaymentOrderRecipientMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*PaymentOrderRecipientMutation) ResetPaymentOrder

func (m *PaymentOrderRecipientMutation) ResetPaymentOrder()

ResetPaymentOrder resets all changes to the "payment_order" edge.

func (*PaymentOrderRecipientMutation) ResetProviderID

func (m *PaymentOrderRecipientMutation) ResetProviderID()

ResetProviderID resets all changes to the "provider_id" field.

func (*PaymentOrderRecipientMutation) SetAccountIdentifier

func (m *PaymentOrderRecipientMutation) SetAccountIdentifier(s string)

SetAccountIdentifier sets the "account_identifier" field.

func (*PaymentOrderRecipientMutation) SetAccountName

func (m *PaymentOrderRecipientMutation) SetAccountName(s string)

SetAccountName sets the "account_name" field.

func (*PaymentOrderRecipientMutation) SetField

func (m *PaymentOrderRecipientMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*PaymentOrderRecipientMutation) SetInstitution

func (m *PaymentOrderRecipientMutation) SetInstitution(s string)

SetInstitution sets the "institution" field.

func (*PaymentOrderRecipientMutation) SetMemo

func (m *PaymentOrderRecipientMutation) SetMemo(s string)

SetMemo sets the "memo" field.

func (*PaymentOrderRecipientMutation) SetMetadata

func (m *PaymentOrderRecipientMutation) SetMetadata(value map[string]interface{})

SetMetadata sets the "metadata" field.

func (*PaymentOrderRecipientMutation) SetOp

func (m *PaymentOrderRecipientMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*PaymentOrderRecipientMutation) SetPaymentOrderID

func (m *PaymentOrderRecipientMutation) SetPaymentOrderID(id uuid.UUID)

SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by id.

func (*PaymentOrderRecipientMutation) SetProviderID

func (m *PaymentOrderRecipientMutation) SetProviderID(s string)

SetProviderID sets the "provider_id" field.

func (PaymentOrderRecipientMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*PaymentOrderRecipientMutation) Type

Type returns the node type of this mutation (PaymentOrderRecipient).

func (*PaymentOrderRecipientMutation) Where

Where appends a list predicates to the PaymentOrderRecipientMutation builder.

func (*PaymentOrderRecipientMutation) WhereP

func (m *PaymentOrderRecipientMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the PaymentOrderRecipientMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type PaymentOrderRecipientQuery

type PaymentOrderRecipientQuery struct {
	// contains filtered or unexported fields
}

PaymentOrderRecipientQuery is the builder for querying PaymentOrderRecipient entities.

func (*PaymentOrderRecipientQuery) Aggregate

Aggregate returns a PaymentOrderRecipientSelect configured with the given aggregations.

func (*PaymentOrderRecipientQuery) All

All executes the query and returns a list of PaymentOrderRecipients.

func (*PaymentOrderRecipientQuery) AllX

AllX is like All, but panics if an error occurs.

func (*PaymentOrderRecipientQuery) Clone

Clone returns a duplicate of the PaymentOrderRecipientQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*PaymentOrderRecipientQuery) Count

func (porq *PaymentOrderRecipientQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*PaymentOrderRecipientQuery) CountX

func (porq *PaymentOrderRecipientQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*PaymentOrderRecipientQuery) Exist

func (porq *PaymentOrderRecipientQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*PaymentOrderRecipientQuery) ExistX

func (porq *PaymentOrderRecipientQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*PaymentOrderRecipientQuery) First

First returns the first PaymentOrderRecipient entity from the query. Returns a *NotFoundError when no PaymentOrderRecipient was found.

func (*PaymentOrderRecipientQuery) FirstID

func (porq *PaymentOrderRecipientQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first PaymentOrderRecipient ID from the query. Returns a *NotFoundError when no PaymentOrderRecipient ID was found.

func (*PaymentOrderRecipientQuery) FirstIDX

func (porq *PaymentOrderRecipientQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*PaymentOrderRecipientQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*PaymentOrderRecipientQuery) GroupBy

func (porq *PaymentOrderRecipientQuery) GroupBy(field string, fields ...string) *PaymentOrderRecipientGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Institution string `json:"institution,omitempty"`
	Count int `json:"count,omitempty"`
}

client.PaymentOrderRecipient.Query().
	GroupBy(paymentorderrecipient.FieldInstitution).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*PaymentOrderRecipientQuery) IDs

func (porq *PaymentOrderRecipientQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of PaymentOrderRecipient IDs.

func (*PaymentOrderRecipientQuery) IDsX

func (porq *PaymentOrderRecipientQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*PaymentOrderRecipientQuery) Limit

Limit the number of records to be returned by this query.

func (*PaymentOrderRecipientQuery) Offset

Offset to start from.

func (*PaymentOrderRecipientQuery) Only

Only returns a single PaymentOrderRecipient entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one PaymentOrderRecipient entity is found. Returns a *NotFoundError when no PaymentOrderRecipient entities are found.

func (*PaymentOrderRecipientQuery) OnlyID

func (porq *PaymentOrderRecipientQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only PaymentOrderRecipient ID in the query. Returns a *NotSingularError when more than one PaymentOrderRecipient ID is found. Returns a *NotFoundError when no entities are found.

func (*PaymentOrderRecipientQuery) OnlyIDX

func (porq *PaymentOrderRecipientQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*PaymentOrderRecipientQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*PaymentOrderRecipientQuery) Order

Order specifies how the records should be ordered.

func (*PaymentOrderRecipientQuery) QueryPaymentOrder

func (porq *PaymentOrderRecipientQuery) QueryPaymentOrder() *PaymentOrderQuery

QueryPaymentOrder chains the current query on the "payment_order" edge.

func (*PaymentOrderRecipientQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Institution string `json:"institution,omitempty"`
}

client.PaymentOrderRecipient.Query().
	Select(paymentorderrecipient.FieldInstitution).
	Scan(ctx, &v)

func (*PaymentOrderRecipientQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*PaymentOrderRecipientQuery) Where

Where adds a new predicate for the PaymentOrderRecipientQuery builder.

func (*PaymentOrderRecipientQuery) WithPaymentOrder

func (porq *PaymentOrderRecipientQuery) WithPaymentOrder(opts ...func(*PaymentOrderQuery)) *PaymentOrderRecipientQuery

WithPaymentOrder tells the query-builder to eager-load the nodes that are connected to the "payment_order" edge. The optional arguments are used to configure the query builder of the edge.

type PaymentOrderRecipientSelect

type PaymentOrderRecipientSelect struct {
	*PaymentOrderRecipientQuery
	// contains filtered or unexported fields
}

PaymentOrderRecipientSelect is the builder for selecting fields of PaymentOrderRecipient entities.

func (*PaymentOrderRecipientSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*PaymentOrderRecipientSelect) Bool

func (s *PaymentOrderRecipientSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientSelect) BoolX

func (s *PaymentOrderRecipientSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*PaymentOrderRecipientSelect) Bools

func (s *PaymentOrderRecipientSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientSelect) BoolsX

func (s *PaymentOrderRecipientSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*PaymentOrderRecipientSelect) Float64

func (s *PaymentOrderRecipientSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientSelect) Float64X

func (s *PaymentOrderRecipientSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*PaymentOrderRecipientSelect) Float64s

func (s *PaymentOrderRecipientSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientSelect) Float64sX

func (s *PaymentOrderRecipientSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*PaymentOrderRecipientSelect) Int

func (s *PaymentOrderRecipientSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientSelect) IntX

func (s *PaymentOrderRecipientSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*PaymentOrderRecipientSelect) Ints

func (s *PaymentOrderRecipientSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientSelect) IntsX

func (s *PaymentOrderRecipientSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*PaymentOrderRecipientSelect) Scan

Scan applies the selector query and scans the result into the given value.

func (*PaymentOrderRecipientSelect) ScanX

func (s *PaymentOrderRecipientSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*PaymentOrderRecipientSelect) String

func (s *PaymentOrderRecipientSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientSelect) StringX

func (s *PaymentOrderRecipientSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*PaymentOrderRecipientSelect) Strings

func (s *PaymentOrderRecipientSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*PaymentOrderRecipientSelect) StringsX

func (s *PaymentOrderRecipientSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type PaymentOrderRecipientUpdate

type PaymentOrderRecipientUpdate struct {
	// contains filtered or unexported fields
}

PaymentOrderRecipientUpdate is the builder for updating PaymentOrderRecipient entities.

func (*PaymentOrderRecipientUpdate) ClearMemo

ClearMemo clears the value of the "memo" field.

func (*PaymentOrderRecipientUpdate) ClearMetadata

ClearMetadata clears the value of the "metadata" field.

func (*PaymentOrderRecipientUpdate) ClearPaymentOrder

func (poru *PaymentOrderRecipientUpdate) ClearPaymentOrder() *PaymentOrderRecipientUpdate

ClearPaymentOrder clears the "payment_order" edge to the PaymentOrder entity.

func (*PaymentOrderRecipientUpdate) ClearProviderID

ClearProviderID clears the value of the "provider_id" field.

func (*PaymentOrderRecipientUpdate) Exec

Exec executes the query.

func (*PaymentOrderRecipientUpdate) ExecX

func (poru *PaymentOrderRecipientUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderRecipientUpdate) Mutation

Mutation returns the PaymentOrderRecipientMutation object of the builder.

func (*PaymentOrderRecipientUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*PaymentOrderRecipientUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*PaymentOrderRecipientUpdate) SetAccountIdentifier

func (poru *PaymentOrderRecipientUpdate) SetAccountIdentifier(s string) *PaymentOrderRecipientUpdate

SetAccountIdentifier sets the "account_identifier" field.

func (*PaymentOrderRecipientUpdate) SetAccountName

SetAccountName sets the "account_name" field.

func (*PaymentOrderRecipientUpdate) SetInstitution

SetInstitution sets the "institution" field.

func (*PaymentOrderRecipientUpdate) SetMemo

SetMemo sets the "memo" field.

func (*PaymentOrderRecipientUpdate) SetMetadata

func (poru *PaymentOrderRecipientUpdate) SetMetadata(m map[string]interface{}) *PaymentOrderRecipientUpdate

SetMetadata sets the "metadata" field.

func (*PaymentOrderRecipientUpdate) SetNillableAccountIdentifier

func (poru *PaymentOrderRecipientUpdate) SetNillableAccountIdentifier(s *string) *PaymentOrderRecipientUpdate

SetNillableAccountIdentifier sets the "account_identifier" field if the given value is not nil.

func (*PaymentOrderRecipientUpdate) SetNillableAccountName

func (poru *PaymentOrderRecipientUpdate) SetNillableAccountName(s *string) *PaymentOrderRecipientUpdate

SetNillableAccountName sets the "account_name" field if the given value is not nil.

func (*PaymentOrderRecipientUpdate) SetNillableInstitution

func (poru *PaymentOrderRecipientUpdate) SetNillableInstitution(s *string) *PaymentOrderRecipientUpdate

SetNillableInstitution sets the "institution" field if the given value is not nil.

func (*PaymentOrderRecipientUpdate) SetNillableMemo

SetNillableMemo sets the "memo" field if the given value is not nil.

func (*PaymentOrderRecipientUpdate) SetNillableProviderID

func (poru *PaymentOrderRecipientUpdate) SetNillableProviderID(s *string) *PaymentOrderRecipientUpdate

SetNillableProviderID sets the "provider_id" field if the given value is not nil.

func (*PaymentOrderRecipientUpdate) SetPaymentOrder

SetPaymentOrder sets the "payment_order" edge to the PaymentOrder entity.

func (*PaymentOrderRecipientUpdate) SetPaymentOrderID

SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID.

func (*PaymentOrderRecipientUpdate) SetProviderID

SetProviderID sets the "provider_id" field.

func (*PaymentOrderRecipientUpdate) Where

Where appends a list predicates to the PaymentOrderRecipientUpdate builder.

type PaymentOrderRecipientUpdateOne

type PaymentOrderRecipientUpdateOne struct {
	// contains filtered or unexported fields
}

PaymentOrderRecipientUpdateOne is the builder for updating a single PaymentOrderRecipient entity.

func (*PaymentOrderRecipientUpdateOne) ClearMemo

ClearMemo clears the value of the "memo" field.

func (*PaymentOrderRecipientUpdateOne) ClearMetadata

ClearMetadata clears the value of the "metadata" field.

func (*PaymentOrderRecipientUpdateOne) ClearPaymentOrder

ClearPaymentOrder clears the "payment_order" edge to the PaymentOrder entity.

func (*PaymentOrderRecipientUpdateOne) ClearProviderID

ClearProviderID clears the value of the "provider_id" field.

func (*PaymentOrderRecipientUpdateOne) Exec

Exec executes the query on the entity.

func (*PaymentOrderRecipientUpdateOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderRecipientUpdateOne) Mutation

Mutation returns the PaymentOrderRecipientMutation object of the builder.

func (*PaymentOrderRecipientUpdateOne) Save

Save executes the query and returns the updated PaymentOrderRecipient entity.

func (*PaymentOrderRecipientUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*PaymentOrderRecipientUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*PaymentOrderRecipientUpdateOne) SetAccountIdentifier

SetAccountIdentifier sets the "account_identifier" field.

func (*PaymentOrderRecipientUpdateOne) SetAccountName

SetAccountName sets the "account_name" field.

func (*PaymentOrderRecipientUpdateOne) SetInstitution

SetInstitution sets the "institution" field.

func (*PaymentOrderRecipientUpdateOne) SetMemo

SetMemo sets the "memo" field.

func (*PaymentOrderRecipientUpdateOne) SetMetadata

func (poruo *PaymentOrderRecipientUpdateOne) SetMetadata(m map[string]interface{}) *PaymentOrderRecipientUpdateOne

SetMetadata sets the "metadata" field.

func (*PaymentOrderRecipientUpdateOne) SetNillableAccountIdentifier

func (poruo *PaymentOrderRecipientUpdateOne) SetNillableAccountIdentifier(s *string) *PaymentOrderRecipientUpdateOne

SetNillableAccountIdentifier sets the "account_identifier" field if the given value is not nil.

func (*PaymentOrderRecipientUpdateOne) SetNillableAccountName

func (poruo *PaymentOrderRecipientUpdateOne) SetNillableAccountName(s *string) *PaymentOrderRecipientUpdateOne

SetNillableAccountName sets the "account_name" field if the given value is not nil.

func (*PaymentOrderRecipientUpdateOne) SetNillableInstitution

func (poruo *PaymentOrderRecipientUpdateOne) SetNillableInstitution(s *string) *PaymentOrderRecipientUpdateOne

SetNillableInstitution sets the "institution" field if the given value is not nil.

func (*PaymentOrderRecipientUpdateOne) SetNillableMemo

SetNillableMemo sets the "memo" field if the given value is not nil.

func (*PaymentOrderRecipientUpdateOne) SetNillableProviderID

func (poruo *PaymentOrderRecipientUpdateOne) SetNillableProviderID(s *string) *PaymentOrderRecipientUpdateOne

SetNillableProviderID sets the "provider_id" field if the given value is not nil.

func (*PaymentOrderRecipientUpdateOne) SetPaymentOrder

SetPaymentOrder sets the "payment_order" edge to the PaymentOrder entity.

func (*PaymentOrderRecipientUpdateOne) SetPaymentOrderID

SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID.

func (*PaymentOrderRecipientUpdateOne) SetProviderID

SetProviderID sets the "provider_id" field.

func (*PaymentOrderRecipientUpdateOne) Where

Where appends a list predicates to the PaymentOrderRecipientUpdate builder.

type PaymentOrderRecipientUpsert

type PaymentOrderRecipientUpsert struct {
	*sql.UpdateSet
}

PaymentOrderRecipientUpsert is the "OnConflict" setter.

func (*PaymentOrderRecipientUpsert) ClearMemo

ClearMemo clears the value of the "memo" field.

func (*PaymentOrderRecipientUpsert) ClearMetadata

ClearMetadata clears the value of the "metadata" field.

func (*PaymentOrderRecipientUpsert) ClearProviderID

ClearProviderID clears the value of the "provider_id" field.

func (*PaymentOrderRecipientUpsert) SetAccountIdentifier

SetAccountIdentifier sets the "account_identifier" field.

func (*PaymentOrderRecipientUpsert) SetAccountName

SetAccountName sets the "account_name" field.

func (*PaymentOrderRecipientUpsert) SetInstitution

SetInstitution sets the "institution" field.

func (*PaymentOrderRecipientUpsert) SetMemo

SetMemo sets the "memo" field.

func (*PaymentOrderRecipientUpsert) SetMetadata

func (u *PaymentOrderRecipientUpsert) SetMetadata(v map[string]interface{}) *PaymentOrderRecipientUpsert

SetMetadata sets the "metadata" field.

func (*PaymentOrderRecipientUpsert) SetProviderID

SetProviderID sets the "provider_id" field.

func (*PaymentOrderRecipientUpsert) UpdateAccountIdentifier

func (u *PaymentOrderRecipientUpsert) UpdateAccountIdentifier() *PaymentOrderRecipientUpsert

UpdateAccountIdentifier sets the "account_identifier" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsert) UpdateAccountName

UpdateAccountName sets the "account_name" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsert) UpdateInstitution

UpdateInstitution sets the "institution" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsert) UpdateMemo

UpdateMemo sets the "memo" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsert) UpdateMetadata

UpdateMetadata sets the "metadata" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsert) UpdateProviderID

UpdateProviderID sets the "provider_id" field to the value that was provided on create.

type PaymentOrderRecipientUpsertBulk

type PaymentOrderRecipientUpsertBulk struct {
	// contains filtered or unexported fields
}

PaymentOrderRecipientUpsertBulk is the builder for "upsert"-ing a bulk of PaymentOrderRecipient nodes.

func (*PaymentOrderRecipientUpsertBulk) ClearMemo

ClearMemo clears the value of the "memo" field.

func (*PaymentOrderRecipientUpsertBulk) ClearMetadata

ClearMetadata clears the value of the "metadata" field.

func (*PaymentOrderRecipientUpsertBulk) ClearProviderID

ClearProviderID clears the value of the "provider_id" field.

func (*PaymentOrderRecipientUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*PaymentOrderRecipientUpsertBulk) Exec

Exec executes the query.

func (*PaymentOrderRecipientUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderRecipientUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.PaymentOrderRecipient.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*PaymentOrderRecipientUpsertBulk) SetAccountIdentifier

SetAccountIdentifier sets the "account_identifier" field.

func (*PaymentOrderRecipientUpsertBulk) SetAccountName

SetAccountName sets the "account_name" field.

func (*PaymentOrderRecipientUpsertBulk) SetInstitution

SetInstitution sets the "institution" field.

func (*PaymentOrderRecipientUpsertBulk) SetMemo

SetMemo sets the "memo" field.

func (*PaymentOrderRecipientUpsertBulk) SetMetadata

func (u *PaymentOrderRecipientUpsertBulk) SetMetadata(v map[string]interface{}) *PaymentOrderRecipientUpsertBulk

SetMetadata sets the "metadata" field.

func (*PaymentOrderRecipientUpsertBulk) SetProviderID

SetProviderID sets the "provider_id" field.

func (*PaymentOrderRecipientUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the PaymentOrderRecipientCreateBulk.OnConflict documentation for more info.

func (*PaymentOrderRecipientUpsertBulk) UpdateAccountIdentifier

UpdateAccountIdentifier sets the "account_identifier" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsertBulk) UpdateAccountName

UpdateAccountName sets the "account_name" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsertBulk) UpdateInstitution

UpdateInstitution sets the "institution" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsertBulk) UpdateMemo

UpdateMemo sets the "memo" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsertBulk) UpdateMetadata

UpdateMetadata sets the "metadata" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.PaymentOrderRecipient.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*PaymentOrderRecipientUpsertBulk) UpdateProviderID

UpdateProviderID sets the "provider_id" field to the value that was provided on create.

type PaymentOrderRecipientUpsertOne

type PaymentOrderRecipientUpsertOne struct {
	// contains filtered or unexported fields
}

PaymentOrderRecipientUpsertOne is the builder for "upsert"-ing

one PaymentOrderRecipient node.

func (*PaymentOrderRecipientUpsertOne) ClearMemo

ClearMemo clears the value of the "memo" field.

func (*PaymentOrderRecipientUpsertOne) ClearMetadata

ClearMetadata clears the value of the "metadata" field.

func (*PaymentOrderRecipientUpsertOne) ClearProviderID

ClearProviderID clears the value of the "provider_id" field.

func (*PaymentOrderRecipientUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*PaymentOrderRecipientUpsertOne) Exec

Exec executes the query.

func (*PaymentOrderRecipientUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderRecipientUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*PaymentOrderRecipientUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*PaymentOrderRecipientUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.PaymentOrderRecipient.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*PaymentOrderRecipientUpsertOne) SetAccountIdentifier

SetAccountIdentifier sets the "account_identifier" field.

func (*PaymentOrderRecipientUpsertOne) SetAccountName

SetAccountName sets the "account_name" field.

func (*PaymentOrderRecipientUpsertOne) SetInstitution

SetInstitution sets the "institution" field.

func (*PaymentOrderRecipientUpsertOne) SetMemo

SetMemo sets the "memo" field.

func (*PaymentOrderRecipientUpsertOne) SetMetadata

func (u *PaymentOrderRecipientUpsertOne) SetMetadata(v map[string]interface{}) *PaymentOrderRecipientUpsertOne

SetMetadata sets the "metadata" field.

func (*PaymentOrderRecipientUpsertOne) SetProviderID

SetProviderID sets the "provider_id" field.

func (*PaymentOrderRecipientUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the PaymentOrderRecipientCreate.OnConflict documentation for more info.

func (*PaymentOrderRecipientUpsertOne) UpdateAccountIdentifier

func (u *PaymentOrderRecipientUpsertOne) UpdateAccountIdentifier() *PaymentOrderRecipientUpsertOne

UpdateAccountIdentifier sets the "account_identifier" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsertOne) UpdateAccountName

UpdateAccountName sets the "account_name" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsertOne) UpdateInstitution

UpdateInstitution sets the "institution" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsertOne) UpdateMemo

UpdateMemo sets the "memo" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsertOne) UpdateMetadata

UpdateMetadata sets the "metadata" field to the value that was provided on create.

func (*PaymentOrderRecipientUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.PaymentOrderRecipient.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*PaymentOrderRecipientUpsertOne) UpdateProviderID

UpdateProviderID sets the "provider_id" field to the value that was provided on create.

type PaymentOrderRecipients

type PaymentOrderRecipients []*PaymentOrderRecipient

PaymentOrderRecipients is a parsable slice of PaymentOrderRecipient.

type PaymentOrderSelect

type PaymentOrderSelect struct {
	*PaymentOrderQuery
	// contains filtered or unexported fields
}

PaymentOrderSelect is the builder for selecting fields of PaymentOrder entities.

func (*PaymentOrderSelect) Aggregate

func (pos *PaymentOrderSelect) Aggregate(fns ...AggregateFunc) *PaymentOrderSelect

Aggregate adds the given aggregation functions to the selector query.

func (*PaymentOrderSelect) Bool

func (s *PaymentOrderSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*PaymentOrderSelect) BoolX

func (s *PaymentOrderSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*PaymentOrderSelect) Bools

func (s *PaymentOrderSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*PaymentOrderSelect) BoolsX

func (s *PaymentOrderSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*PaymentOrderSelect) Float64

func (s *PaymentOrderSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*PaymentOrderSelect) Float64X

func (s *PaymentOrderSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*PaymentOrderSelect) Float64s

func (s *PaymentOrderSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*PaymentOrderSelect) Float64sX

func (s *PaymentOrderSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*PaymentOrderSelect) Int

func (s *PaymentOrderSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*PaymentOrderSelect) IntX

func (s *PaymentOrderSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*PaymentOrderSelect) Ints

func (s *PaymentOrderSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*PaymentOrderSelect) IntsX

func (s *PaymentOrderSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*PaymentOrderSelect) Scan

func (pos *PaymentOrderSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*PaymentOrderSelect) ScanX

func (s *PaymentOrderSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*PaymentOrderSelect) String

func (s *PaymentOrderSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*PaymentOrderSelect) StringX

func (s *PaymentOrderSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*PaymentOrderSelect) Strings

func (s *PaymentOrderSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*PaymentOrderSelect) StringsX

func (s *PaymentOrderSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type PaymentOrderUpdate

type PaymentOrderUpdate struct {
	// contains filtered or unexported fields
}

PaymentOrderUpdate is the builder for updating PaymentOrder entities.

func (*PaymentOrderUpdate) AddAmount

AddAmount adds d to the "amount" field.

func (*PaymentOrderUpdate) AddAmountPaid

func (pou *PaymentOrderUpdate) AddAmountPaid(d decimal.Decimal) *PaymentOrderUpdate

AddAmountPaid adds d to the "amount_paid" field.

func (*PaymentOrderUpdate) AddAmountReturned

func (pou *PaymentOrderUpdate) AddAmountReturned(d decimal.Decimal) *PaymentOrderUpdate

AddAmountReturned adds d to the "amount_returned" field.

func (*PaymentOrderUpdate) AddBlockNumber

func (pou *PaymentOrderUpdate) AddBlockNumber(i int64) *PaymentOrderUpdate

AddBlockNumber adds i to the "block_number" field.

func (*PaymentOrderUpdate) AddFeePercent

func (pou *PaymentOrderUpdate) AddFeePercent(d decimal.Decimal) *PaymentOrderUpdate

AddFeePercent adds d to the "fee_percent" field.

func (*PaymentOrderUpdate) AddNetworkFee

func (pou *PaymentOrderUpdate) AddNetworkFee(d decimal.Decimal) *PaymentOrderUpdate

AddNetworkFee adds d to the "network_fee" field.

func (*PaymentOrderUpdate) AddPercentSettled

func (pou *PaymentOrderUpdate) AddPercentSettled(d decimal.Decimal) *PaymentOrderUpdate

AddPercentSettled adds d to the "percent_settled" field.

func (*PaymentOrderUpdate) AddRate

AddRate adds d to the "rate" field.

func (*PaymentOrderUpdate) AddSenderFee

func (pou *PaymentOrderUpdate) AddSenderFee(d decimal.Decimal) *PaymentOrderUpdate

AddSenderFee adds d to the "sender_fee" field.

func (*PaymentOrderUpdate) AddTransactionIDs

func (pou *PaymentOrderUpdate) AddTransactionIDs(ids ...uuid.UUID) *PaymentOrderUpdate

AddTransactionIDs adds the "transactions" edge to the TransactionLog entity by IDs.

func (*PaymentOrderUpdate) AddTransactions

func (pou *PaymentOrderUpdate) AddTransactions(t ...*TransactionLog) *PaymentOrderUpdate

AddTransactions adds the "transactions" edges to the TransactionLog entity.

func (*PaymentOrderUpdate) ClearFeeAddress

func (pou *PaymentOrderUpdate) ClearFeeAddress() *PaymentOrderUpdate

ClearFeeAddress clears the value of the "fee_address" field.

func (*PaymentOrderUpdate) ClearFromAddress

func (pou *PaymentOrderUpdate) ClearFromAddress() *PaymentOrderUpdate

ClearFromAddress clears the value of the "from_address" field.

func (*PaymentOrderUpdate) ClearGatewayID

func (pou *PaymentOrderUpdate) ClearGatewayID() *PaymentOrderUpdate

ClearGatewayID clears the value of the "gateway_id" field.

func (*PaymentOrderUpdate) ClearLinkedAddress

func (pou *PaymentOrderUpdate) ClearLinkedAddress() *PaymentOrderUpdate

ClearLinkedAddress clears the "linked_address" edge to the LinkedAddress entity.

func (*PaymentOrderUpdate) ClearMessageHash

func (pou *PaymentOrderUpdate) ClearMessageHash() *PaymentOrderUpdate

ClearMessageHash clears the value of the "message_hash" field.

func (*PaymentOrderUpdate) ClearPaymentWebhook

func (pou *PaymentOrderUpdate) ClearPaymentWebhook() *PaymentOrderUpdate

ClearPaymentWebhook clears the "payment_webhook" edge to the PaymentWebhook entity.

func (*PaymentOrderUpdate) ClearReceiveAddress

func (pou *PaymentOrderUpdate) ClearReceiveAddress() *PaymentOrderUpdate

ClearReceiveAddress clears the "receive_address" edge to the ReceiveAddress entity.

func (*PaymentOrderUpdate) ClearRecipient

func (pou *PaymentOrderUpdate) ClearRecipient() *PaymentOrderUpdate

ClearRecipient clears the "recipient" edge to the PaymentOrderRecipient entity.

func (*PaymentOrderUpdate) ClearReference

func (pou *PaymentOrderUpdate) ClearReference() *PaymentOrderUpdate

ClearReference clears the value of the "reference" field.

func (*PaymentOrderUpdate) ClearReturnAddress

func (pou *PaymentOrderUpdate) ClearReturnAddress() *PaymentOrderUpdate

ClearReturnAddress clears the value of the "return_address" field.

func (*PaymentOrderUpdate) ClearSenderProfile

func (pou *PaymentOrderUpdate) ClearSenderProfile() *PaymentOrderUpdate

ClearSenderProfile clears the "sender_profile" edge to the SenderProfile entity.

func (*PaymentOrderUpdate) ClearToken

func (pou *PaymentOrderUpdate) ClearToken() *PaymentOrderUpdate

ClearToken clears the "token" edge to the Token entity.

func (*PaymentOrderUpdate) ClearTransactions

func (pou *PaymentOrderUpdate) ClearTransactions() *PaymentOrderUpdate

ClearTransactions clears all "transactions" edges to the TransactionLog entity.

func (*PaymentOrderUpdate) ClearTxHash

func (pou *PaymentOrderUpdate) ClearTxHash() *PaymentOrderUpdate

ClearTxHash clears the value of the "tx_hash" field.

func (*PaymentOrderUpdate) Exec

func (pou *PaymentOrderUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*PaymentOrderUpdate) ExecX

func (pou *PaymentOrderUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderUpdate) Mutation

func (pou *PaymentOrderUpdate) Mutation() *PaymentOrderMutation

Mutation returns the PaymentOrderMutation object of the builder.

func (*PaymentOrderUpdate) RemoveTransactionIDs

func (pou *PaymentOrderUpdate) RemoveTransactionIDs(ids ...uuid.UUID) *PaymentOrderUpdate

RemoveTransactionIDs removes the "transactions" edge to TransactionLog entities by IDs.

func (*PaymentOrderUpdate) RemoveTransactions

func (pou *PaymentOrderUpdate) RemoveTransactions(t ...*TransactionLog) *PaymentOrderUpdate

RemoveTransactions removes "transactions" edges to TransactionLog entities.

func (*PaymentOrderUpdate) Save

func (pou *PaymentOrderUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*PaymentOrderUpdate) SaveX

func (pou *PaymentOrderUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*PaymentOrderUpdate) SetAmount

SetAmount sets the "amount" field.

func (*PaymentOrderUpdate) SetAmountPaid

func (pou *PaymentOrderUpdate) SetAmountPaid(d decimal.Decimal) *PaymentOrderUpdate

SetAmountPaid sets the "amount_paid" field.

func (*PaymentOrderUpdate) SetAmountReturned

func (pou *PaymentOrderUpdate) SetAmountReturned(d decimal.Decimal) *PaymentOrderUpdate

SetAmountReturned sets the "amount_returned" field.

func (*PaymentOrderUpdate) SetBlockNumber

func (pou *PaymentOrderUpdate) SetBlockNumber(i int64) *PaymentOrderUpdate

SetBlockNumber sets the "block_number" field.

func (*PaymentOrderUpdate) SetFeeAddress

func (pou *PaymentOrderUpdate) SetFeeAddress(s string) *PaymentOrderUpdate

SetFeeAddress sets the "fee_address" field.

func (*PaymentOrderUpdate) SetFeePercent

func (pou *PaymentOrderUpdate) SetFeePercent(d decimal.Decimal) *PaymentOrderUpdate

SetFeePercent sets the "fee_percent" field.

func (*PaymentOrderUpdate) SetFromAddress

func (pou *PaymentOrderUpdate) SetFromAddress(s string) *PaymentOrderUpdate

SetFromAddress sets the "from_address" field.

func (*PaymentOrderUpdate) SetGatewayID

func (pou *PaymentOrderUpdate) SetGatewayID(s string) *PaymentOrderUpdate

SetGatewayID sets the "gateway_id" field.

func (*PaymentOrderUpdate) SetLinkedAddress

func (pou *PaymentOrderUpdate) SetLinkedAddress(l *LinkedAddress) *PaymentOrderUpdate

SetLinkedAddress sets the "linked_address" edge to the LinkedAddress entity.

func (*PaymentOrderUpdate) SetLinkedAddressID

func (pou *PaymentOrderUpdate) SetLinkedAddressID(id int) *PaymentOrderUpdate

SetLinkedAddressID sets the "linked_address" edge to the LinkedAddress entity by ID.

func (*PaymentOrderUpdate) SetMessageHash

func (pou *PaymentOrderUpdate) SetMessageHash(s string) *PaymentOrderUpdate

SetMessageHash sets the "message_hash" field.

func (*PaymentOrderUpdate) SetNetworkFee

func (pou *PaymentOrderUpdate) SetNetworkFee(d decimal.Decimal) *PaymentOrderUpdate

SetNetworkFee sets the "network_fee" field.

func (*PaymentOrderUpdate) SetNillableAmount

func (pou *PaymentOrderUpdate) SetNillableAmount(d *decimal.Decimal) *PaymentOrderUpdate

SetNillableAmount sets the "amount" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableAmountPaid

func (pou *PaymentOrderUpdate) SetNillableAmountPaid(d *decimal.Decimal) *PaymentOrderUpdate

SetNillableAmountPaid sets the "amount_paid" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableAmountReturned

func (pou *PaymentOrderUpdate) SetNillableAmountReturned(d *decimal.Decimal) *PaymentOrderUpdate

SetNillableAmountReturned sets the "amount_returned" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableBlockNumber

func (pou *PaymentOrderUpdate) SetNillableBlockNumber(i *int64) *PaymentOrderUpdate

SetNillableBlockNumber sets the "block_number" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableFeeAddress

func (pou *PaymentOrderUpdate) SetNillableFeeAddress(s *string) *PaymentOrderUpdate

SetNillableFeeAddress sets the "fee_address" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableFeePercent

func (pou *PaymentOrderUpdate) SetNillableFeePercent(d *decimal.Decimal) *PaymentOrderUpdate

SetNillableFeePercent sets the "fee_percent" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableFromAddress

func (pou *PaymentOrderUpdate) SetNillableFromAddress(s *string) *PaymentOrderUpdate

SetNillableFromAddress sets the "from_address" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableGatewayID

func (pou *PaymentOrderUpdate) SetNillableGatewayID(s *string) *PaymentOrderUpdate

SetNillableGatewayID sets the "gateway_id" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableLinkedAddressID

func (pou *PaymentOrderUpdate) SetNillableLinkedAddressID(id *int) *PaymentOrderUpdate

SetNillableLinkedAddressID sets the "linked_address" edge to the LinkedAddress entity by ID if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableMessageHash

func (pou *PaymentOrderUpdate) SetNillableMessageHash(s *string) *PaymentOrderUpdate

SetNillableMessageHash sets the "message_hash" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableNetworkFee

func (pou *PaymentOrderUpdate) SetNillableNetworkFee(d *decimal.Decimal) *PaymentOrderUpdate

SetNillableNetworkFee sets the "network_fee" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillablePaymentWebhookID

func (pou *PaymentOrderUpdate) SetNillablePaymentWebhookID(id *uuid.UUID) *PaymentOrderUpdate

SetNillablePaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by ID if the given value is not nil.

func (*PaymentOrderUpdate) SetNillablePercentSettled

func (pou *PaymentOrderUpdate) SetNillablePercentSettled(d *decimal.Decimal) *PaymentOrderUpdate

SetNillablePercentSettled sets the "percent_settled" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableRate

func (pou *PaymentOrderUpdate) SetNillableRate(d *decimal.Decimal) *PaymentOrderUpdate

SetNillableRate sets the "rate" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableReceiveAddressID

func (pou *PaymentOrderUpdate) SetNillableReceiveAddressID(id *int) *PaymentOrderUpdate

SetNillableReceiveAddressID sets the "receive_address" edge to the ReceiveAddress entity by ID if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableReceiveAddressText

func (pou *PaymentOrderUpdate) SetNillableReceiveAddressText(s *string) *PaymentOrderUpdate

SetNillableReceiveAddressText sets the "receive_address_text" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableRecipientID

func (pou *PaymentOrderUpdate) SetNillableRecipientID(id *int) *PaymentOrderUpdate

SetNillableRecipientID sets the "recipient" edge to the PaymentOrderRecipient entity by ID if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableReference

func (pou *PaymentOrderUpdate) SetNillableReference(s *string) *PaymentOrderUpdate

SetNillableReference sets the "reference" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableReturnAddress

func (pou *PaymentOrderUpdate) SetNillableReturnAddress(s *string) *PaymentOrderUpdate

SetNillableReturnAddress sets the "return_address" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableSenderFee

func (pou *PaymentOrderUpdate) SetNillableSenderFee(d *decimal.Decimal) *PaymentOrderUpdate

SetNillableSenderFee sets the "sender_fee" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableSenderProfileID

func (pou *PaymentOrderUpdate) SetNillableSenderProfileID(id *uuid.UUID) *PaymentOrderUpdate

SetNillableSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableStatus

func (pou *PaymentOrderUpdate) SetNillableStatus(pa *paymentorder.Status) *PaymentOrderUpdate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*PaymentOrderUpdate) SetNillableTxHash

func (pou *PaymentOrderUpdate) SetNillableTxHash(s *string) *PaymentOrderUpdate

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*PaymentOrderUpdate) SetPaymentWebhook

func (pou *PaymentOrderUpdate) SetPaymentWebhook(p *PaymentWebhook) *PaymentOrderUpdate

SetPaymentWebhook sets the "payment_webhook" edge to the PaymentWebhook entity.

func (*PaymentOrderUpdate) SetPaymentWebhookID

func (pou *PaymentOrderUpdate) SetPaymentWebhookID(id uuid.UUID) *PaymentOrderUpdate

SetPaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by ID.

func (*PaymentOrderUpdate) SetPercentSettled

func (pou *PaymentOrderUpdate) SetPercentSettled(d decimal.Decimal) *PaymentOrderUpdate

SetPercentSettled sets the "percent_settled" field.

func (*PaymentOrderUpdate) SetRate

SetRate sets the "rate" field.

func (*PaymentOrderUpdate) SetReceiveAddress

func (pou *PaymentOrderUpdate) SetReceiveAddress(r *ReceiveAddress) *PaymentOrderUpdate

SetReceiveAddress sets the "receive_address" edge to the ReceiveAddress entity.

func (*PaymentOrderUpdate) SetReceiveAddressID

func (pou *PaymentOrderUpdate) SetReceiveAddressID(id int) *PaymentOrderUpdate

SetReceiveAddressID sets the "receive_address" edge to the ReceiveAddress entity by ID.

func (*PaymentOrderUpdate) SetReceiveAddressText

func (pou *PaymentOrderUpdate) SetReceiveAddressText(s string) *PaymentOrderUpdate

SetReceiveAddressText sets the "receive_address_text" field.

func (*PaymentOrderUpdate) SetRecipient

SetRecipient sets the "recipient" edge to the PaymentOrderRecipient entity.

func (*PaymentOrderUpdate) SetRecipientID

func (pou *PaymentOrderUpdate) SetRecipientID(id int) *PaymentOrderUpdate

SetRecipientID sets the "recipient" edge to the PaymentOrderRecipient entity by ID.

func (*PaymentOrderUpdate) SetReference

func (pou *PaymentOrderUpdate) SetReference(s string) *PaymentOrderUpdate

SetReference sets the "reference" field.

func (*PaymentOrderUpdate) SetReturnAddress

func (pou *PaymentOrderUpdate) SetReturnAddress(s string) *PaymentOrderUpdate

SetReturnAddress sets the "return_address" field.

func (*PaymentOrderUpdate) SetSenderFee

func (pou *PaymentOrderUpdate) SetSenderFee(d decimal.Decimal) *PaymentOrderUpdate

SetSenderFee sets the "sender_fee" field.

func (*PaymentOrderUpdate) SetSenderProfile

func (pou *PaymentOrderUpdate) SetSenderProfile(s *SenderProfile) *PaymentOrderUpdate

SetSenderProfile sets the "sender_profile" edge to the SenderProfile entity.

func (*PaymentOrderUpdate) SetSenderProfileID

func (pou *PaymentOrderUpdate) SetSenderProfileID(id uuid.UUID) *PaymentOrderUpdate

SetSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID.

func (*PaymentOrderUpdate) SetStatus

SetStatus sets the "status" field.

func (*PaymentOrderUpdate) SetToken

func (pou *PaymentOrderUpdate) SetToken(t *Token) *PaymentOrderUpdate

SetToken sets the "token" edge to the Token entity.

func (*PaymentOrderUpdate) SetTokenID

func (pou *PaymentOrderUpdate) SetTokenID(id int) *PaymentOrderUpdate

SetTokenID sets the "token" edge to the Token entity by ID.

func (*PaymentOrderUpdate) SetTxHash

func (pou *PaymentOrderUpdate) SetTxHash(s string) *PaymentOrderUpdate

SetTxHash sets the "tx_hash" field.

func (*PaymentOrderUpdate) SetUpdatedAt

func (pou *PaymentOrderUpdate) SetUpdatedAt(t time.Time) *PaymentOrderUpdate

SetUpdatedAt sets the "updated_at" field.

func (*PaymentOrderUpdate) Where

Where appends a list predicates to the PaymentOrderUpdate builder.

type PaymentOrderUpdateOne

type PaymentOrderUpdateOne struct {
	// contains filtered or unexported fields
}

PaymentOrderUpdateOne is the builder for updating a single PaymentOrder entity.

func (*PaymentOrderUpdateOne) AddAmount

AddAmount adds d to the "amount" field.

func (*PaymentOrderUpdateOne) AddAmountPaid

AddAmountPaid adds d to the "amount_paid" field.

func (*PaymentOrderUpdateOne) AddAmountReturned

func (pouo *PaymentOrderUpdateOne) AddAmountReturned(d decimal.Decimal) *PaymentOrderUpdateOne

AddAmountReturned adds d to the "amount_returned" field.

func (*PaymentOrderUpdateOne) AddBlockNumber

func (pouo *PaymentOrderUpdateOne) AddBlockNumber(i int64) *PaymentOrderUpdateOne

AddBlockNumber adds i to the "block_number" field.

func (*PaymentOrderUpdateOne) AddFeePercent

AddFeePercent adds d to the "fee_percent" field.

func (*PaymentOrderUpdateOne) AddNetworkFee

AddNetworkFee adds d to the "network_fee" field.

func (*PaymentOrderUpdateOne) AddPercentSettled

func (pouo *PaymentOrderUpdateOne) AddPercentSettled(d decimal.Decimal) *PaymentOrderUpdateOne

AddPercentSettled adds d to the "percent_settled" field.

func (*PaymentOrderUpdateOne) AddRate

AddRate adds d to the "rate" field.

func (*PaymentOrderUpdateOne) AddSenderFee

AddSenderFee adds d to the "sender_fee" field.

func (*PaymentOrderUpdateOne) AddTransactionIDs

func (pouo *PaymentOrderUpdateOne) AddTransactionIDs(ids ...uuid.UUID) *PaymentOrderUpdateOne

AddTransactionIDs adds the "transactions" edge to the TransactionLog entity by IDs.

func (*PaymentOrderUpdateOne) AddTransactions

func (pouo *PaymentOrderUpdateOne) AddTransactions(t ...*TransactionLog) *PaymentOrderUpdateOne

AddTransactions adds the "transactions" edges to the TransactionLog entity.

func (*PaymentOrderUpdateOne) ClearFeeAddress

func (pouo *PaymentOrderUpdateOne) ClearFeeAddress() *PaymentOrderUpdateOne

ClearFeeAddress clears the value of the "fee_address" field.

func (*PaymentOrderUpdateOne) ClearFromAddress

func (pouo *PaymentOrderUpdateOne) ClearFromAddress() *PaymentOrderUpdateOne

ClearFromAddress clears the value of the "from_address" field.

func (*PaymentOrderUpdateOne) ClearGatewayID

func (pouo *PaymentOrderUpdateOne) ClearGatewayID() *PaymentOrderUpdateOne

ClearGatewayID clears the value of the "gateway_id" field.

func (*PaymentOrderUpdateOne) ClearLinkedAddress

func (pouo *PaymentOrderUpdateOne) ClearLinkedAddress() *PaymentOrderUpdateOne

ClearLinkedAddress clears the "linked_address" edge to the LinkedAddress entity.

func (*PaymentOrderUpdateOne) ClearMessageHash

func (pouo *PaymentOrderUpdateOne) ClearMessageHash() *PaymentOrderUpdateOne

ClearMessageHash clears the value of the "message_hash" field.

func (*PaymentOrderUpdateOne) ClearPaymentWebhook

func (pouo *PaymentOrderUpdateOne) ClearPaymentWebhook() *PaymentOrderUpdateOne

ClearPaymentWebhook clears the "payment_webhook" edge to the PaymentWebhook entity.

func (*PaymentOrderUpdateOne) ClearReceiveAddress

func (pouo *PaymentOrderUpdateOne) ClearReceiveAddress() *PaymentOrderUpdateOne

ClearReceiveAddress clears the "receive_address" edge to the ReceiveAddress entity.

func (*PaymentOrderUpdateOne) ClearRecipient

func (pouo *PaymentOrderUpdateOne) ClearRecipient() *PaymentOrderUpdateOne

ClearRecipient clears the "recipient" edge to the PaymentOrderRecipient entity.

func (*PaymentOrderUpdateOne) ClearReference

func (pouo *PaymentOrderUpdateOne) ClearReference() *PaymentOrderUpdateOne

ClearReference clears the value of the "reference" field.

func (*PaymentOrderUpdateOne) ClearReturnAddress

func (pouo *PaymentOrderUpdateOne) ClearReturnAddress() *PaymentOrderUpdateOne

ClearReturnAddress clears the value of the "return_address" field.

func (*PaymentOrderUpdateOne) ClearSenderProfile

func (pouo *PaymentOrderUpdateOne) ClearSenderProfile() *PaymentOrderUpdateOne

ClearSenderProfile clears the "sender_profile" edge to the SenderProfile entity.

func (*PaymentOrderUpdateOne) ClearToken

func (pouo *PaymentOrderUpdateOne) ClearToken() *PaymentOrderUpdateOne

ClearToken clears the "token" edge to the Token entity.

func (*PaymentOrderUpdateOne) ClearTransactions

func (pouo *PaymentOrderUpdateOne) ClearTransactions() *PaymentOrderUpdateOne

ClearTransactions clears all "transactions" edges to the TransactionLog entity.

func (*PaymentOrderUpdateOne) ClearTxHash

func (pouo *PaymentOrderUpdateOne) ClearTxHash() *PaymentOrderUpdateOne

ClearTxHash clears the value of the "tx_hash" field.

func (*PaymentOrderUpdateOne) Exec

func (pouo *PaymentOrderUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*PaymentOrderUpdateOne) ExecX

func (pouo *PaymentOrderUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderUpdateOne) Mutation

func (pouo *PaymentOrderUpdateOne) Mutation() *PaymentOrderMutation

Mutation returns the PaymentOrderMutation object of the builder.

func (*PaymentOrderUpdateOne) RemoveTransactionIDs

func (pouo *PaymentOrderUpdateOne) RemoveTransactionIDs(ids ...uuid.UUID) *PaymentOrderUpdateOne

RemoveTransactionIDs removes the "transactions" edge to TransactionLog entities by IDs.

func (*PaymentOrderUpdateOne) RemoveTransactions

func (pouo *PaymentOrderUpdateOne) RemoveTransactions(t ...*TransactionLog) *PaymentOrderUpdateOne

RemoveTransactions removes "transactions" edges to TransactionLog entities.

func (*PaymentOrderUpdateOne) Save

Save executes the query and returns the updated PaymentOrder entity.

func (*PaymentOrderUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*PaymentOrderUpdateOne) Select

func (pouo *PaymentOrderUpdateOne) Select(field string, fields ...string) *PaymentOrderUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*PaymentOrderUpdateOne) SetAmount

SetAmount sets the "amount" field.

func (*PaymentOrderUpdateOne) SetAmountPaid

SetAmountPaid sets the "amount_paid" field.

func (*PaymentOrderUpdateOne) SetAmountReturned

func (pouo *PaymentOrderUpdateOne) SetAmountReturned(d decimal.Decimal) *PaymentOrderUpdateOne

SetAmountReturned sets the "amount_returned" field.

func (*PaymentOrderUpdateOne) SetBlockNumber

func (pouo *PaymentOrderUpdateOne) SetBlockNumber(i int64) *PaymentOrderUpdateOne

SetBlockNumber sets the "block_number" field.

func (*PaymentOrderUpdateOne) SetFeeAddress

func (pouo *PaymentOrderUpdateOne) SetFeeAddress(s string) *PaymentOrderUpdateOne

SetFeeAddress sets the "fee_address" field.

func (*PaymentOrderUpdateOne) SetFeePercent

SetFeePercent sets the "fee_percent" field.

func (*PaymentOrderUpdateOne) SetFromAddress

func (pouo *PaymentOrderUpdateOne) SetFromAddress(s string) *PaymentOrderUpdateOne

SetFromAddress sets the "from_address" field.

func (*PaymentOrderUpdateOne) SetGatewayID

func (pouo *PaymentOrderUpdateOne) SetGatewayID(s string) *PaymentOrderUpdateOne

SetGatewayID sets the "gateway_id" field.

func (*PaymentOrderUpdateOne) SetLinkedAddress

func (pouo *PaymentOrderUpdateOne) SetLinkedAddress(l *LinkedAddress) *PaymentOrderUpdateOne

SetLinkedAddress sets the "linked_address" edge to the LinkedAddress entity.

func (*PaymentOrderUpdateOne) SetLinkedAddressID

func (pouo *PaymentOrderUpdateOne) SetLinkedAddressID(id int) *PaymentOrderUpdateOne

SetLinkedAddressID sets the "linked_address" edge to the LinkedAddress entity by ID.

func (*PaymentOrderUpdateOne) SetMessageHash

func (pouo *PaymentOrderUpdateOne) SetMessageHash(s string) *PaymentOrderUpdateOne

SetMessageHash sets the "message_hash" field.

func (*PaymentOrderUpdateOne) SetNetworkFee

SetNetworkFee sets the "network_fee" field.

func (*PaymentOrderUpdateOne) SetNillableAmount

func (pouo *PaymentOrderUpdateOne) SetNillableAmount(d *decimal.Decimal) *PaymentOrderUpdateOne

SetNillableAmount sets the "amount" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableAmountPaid

func (pouo *PaymentOrderUpdateOne) SetNillableAmountPaid(d *decimal.Decimal) *PaymentOrderUpdateOne

SetNillableAmountPaid sets the "amount_paid" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableAmountReturned

func (pouo *PaymentOrderUpdateOne) SetNillableAmountReturned(d *decimal.Decimal) *PaymentOrderUpdateOne

SetNillableAmountReturned sets the "amount_returned" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableBlockNumber

func (pouo *PaymentOrderUpdateOne) SetNillableBlockNumber(i *int64) *PaymentOrderUpdateOne

SetNillableBlockNumber sets the "block_number" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableFeeAddress

func (pouo *PaymentOrderUpdateOne) SetNillableFeeAddress(s *string) *PaymentOrderUpdateOne

SetNillableFeeAddress sets the "fee_address" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableFeePercent

func (pouo *PaymentOrderUpdateOne) SetNillableFeePercent(d *decimal.Decimal) *PaymentOrderUpdateOne

SetNillableFeePercent sets the "fee_percent" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableFromAddress

func (pouo *PaymentOrderUpdateOne) SetNillableFromAddress(s *string) *PaymentOrderUpdateOne

SetNillableFromAddress sets the "from_address" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableGatewayID

func (pouo *PaymentOrderUpdateOne) SetNillableGatewayID(s *string) *PaymentOrderUpdateOne

SetNillableGatewayID sets the "gateway_id" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableLinkedAddressID

func (pouo *PaymentOrderUpdateOne) SetNillableLinkedAddressID(id *int) *PaymentOrderUpdateOne

SetNillableLinkedAddressID sets the "linked_address" edge to the LinkedAddress entity by ID if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableMessageHash

func (pouo *PaymentOrderUpdateOne) SetNillableMessageHash(s *string) *PaymentOrderUpdateOne

SetNillableMessageHash sets the "message_hash" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableNetworkFee

func (pouo *PaymentOrderUpdateOne) SetNillableNetworkFee(d *decimal.Decimal) *PaymentOrderUpdateOne

SetNillableNetworkFee sets the "network_fee" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillablePaymentWebhookID

func (pouo *PaymentOrderUpdateOne) SetNillablePaymentWebhookID(id *uuid.UUID) *PaymentOrderUpdateOne

SetNillablePaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by ID if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillablePercentSettled

func (pouo *PaymentOrderUpdateOne) SetNillablePercentSettled(d *decimal.Decimal) *PaymentOrderUpdateOne

SetNillablePercentSettled sets the "percent_settled" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableRate

func (pouo *PaymentOrderUpdateOne) SetNillableRate(d *decimal.Decimal) *PaymentOrderUpdateOne

SetNillableRate sets the "rate" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableReceiveAddressID

func (pouo *PaymentOrderUpdateOne) SetNillableReceiveAddressID(id *int) *PaymentOrderUpdateOne

SetNillableReceiveAddressID sets the "receive_address" edge to the ReceiveAddress entity by ID if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableReceiveAddressText

func (pouo *PaymentOrderUpdateOne) SetNillableReceiveAddressText(s *string) *PaymentOrderUpdateOne

SetNillableReceiveAddressText sets the "receive_address_text" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableRecipientID

func (pouo *PaymentOrderUpdateOne) SetNillableRecipientID(id *int) *PaymentOrderUpdateOne

SetNillableRecipientID sets the "recipient" edge to the PaymentOrderRecipient entity by ID if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableReference

func (pouo *PaymentOrderUpdateOne) SetNillableReference(s *string) *PaymentOrderUpdateOne

SetNillableReference sets the "reference" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableReturnAddress

func (pouo *PaymentOrderUpdateOne) SetNillableReturnAddress(s *string) *PaymentOrderUpdateOne

SetNillableReturnAddress sets the "return_address" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableSenderFee

func (pouo *PaymentOrderUpdateOne) SetNillableSenderFee(d *decimal.Decimal) *PaymentOrderUpdateOne

SetNillableSenderFee sets the "sender_fee" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableSenderProfileID

func (pouo *PaymentOrderUpdateOne) SetNillableSenderProfileID(id *uuid.UUID) *PaymentOrderUpdateOne

SetNillableSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableStatus

func (pouo *PaymentOrderUpdateOne) SetNillableStatus(pa *paymentorder.Status) *PaymentOrderUpdateOne

SetNillableStatus sets the "status" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetNillableTxHash

func (pouo *PaymentOrderUpdateOne) SetNillableTxHash(s *string) *PaymentOrderUpdateOne

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*PaymentOrderUpdateOne) SetPaymentWebhook

func (pouo *PaymentOrderUpdateOne) SetPaymentWebhook(p *PaymentWebhook) *PaymentOrderUpdateOne

SetPaymentWebhook sets the "payment_webhook" edge to the PaymentWebhook entity.

func (*PaymentOrderUpdateOne) SetPaymentWebhookID

func (pouo *PaymentOrderUpdateOne) SetPaymentWebhookID(id uuid.UUID) *PaymentOrderUpdateOne

SetPaymentWebhookID sets the "payment_webhook" edge to the PaymentWebhook entity by ID.

func (*PaymentOrderUpdateOne) SetPercentSettled

func (pouo *PaymentOrderUpdateOne) SetPercentSettled(d decimal.Decimal) *PaymentOrderUpdateOne

SetPercentSettled sets the "percent_settled" field.

func (*PaymentOrderUpdateOne) SetRate

SetRate sets the "rate" field.

func (*PaymentOrderUpdateOne) SetReceiveAddress

func (pouo *PaymentOrderUpdateOne) SetReceiveAddress(r *ReceiveAddress) *PaymentOrderUpdateOne

SetReceiveAddress sets the "receive_address" edge to the ReceiveAddress entity.

func (*PaymentOrderUpdateOne) SetReceiveAddressID

func (pouo *PaymentOrderUpdateOne) SetReceiveAddressID(id int) *PaymentOrderUpdateOne

SetReceiveAddressID sets the "receive_address" edge to the ReceiveAddress entity by ID.

func (*PaymentOrderUpdateOne) SetReceiveAddressText

func (pouo *PaymentOrderUpdateOne) SetReceiveAddressText(s string) *PaymentOrderUpdateOne

SetReceiveAddressText sets the "receive_address_text" field.

func (*PaymentOrderUpdateOne) SetRecipient

SetRecipient sets the "recipient" edge to the PaymentOrderRecipient entity.

func (*PaymentOrderUpdateOne) SetRecipientID

func (pouo *PaymentOrderUpdateOne) SetRecipientID(id int) *PaymentOrderUpdateOne

SetRecipientID sets the "recipient" edge to the PaymentOrderRecipient entity by ID.

func (*PaymentOrderUpdateOne) SetReference

func (pouo *PaymentOrderUpdateOne) SetReference(s string) *PaymentOrderUpdateOne

SetReference sets the "reference" field.

func (*PaymentOrderUpdateOne) SetReturnAddress

func (pouo *PaymentOrderUpdateOne) SetReturnAddress(s string) *PaymentOrderUpdateOne

SetReturnAddress sets the "return_address" field.

func (*PaymentOrderUpdateOne) SetSenderFee

SetSenderFee sets the "sender_fee" field.

func (*PaymentOrderUpdateOne) SetSenderProfile

func (pouo *PaymentOrderUpdateOne) SetSenderProfile(s *SenderProfile) *PaymentOrderUpdateOne

SetSenderProfile sets the "sender_profile" edge to the SenderProfile entity.

func (*PaymentOrderUpdateOne) SetSenderProfileID

func (pouo *PaymentOrderUpdateOne) SetSenderProfileID(id uuid.UUID) *PaymentOrderUpdateOne

SetSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID.

func (*PaymentOrderUpdateOne) SetStatus

SetStatus sets the "status" field.

func (*PaymentOrderUpdateOne) SetToken

SetToken sets the "token" edge to the Token entity.

func (*PaymentOrderUpdateOne) SetTokenID

func (pouo *PaymentOrderUpdateOne) SetTokenID(id int) *PaymentOrderUpdateOne

SetTokenID sets the "token" edge to the Token entity by ID.

func (*PaymentOrderUpdateOne) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*PaymentOrderUpdateOne) SetUpdatedAt

func (pouo *PaymentOrderUpdateOne) SetUpdatedAt(t time.Time) *PaymentOrderUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*PaymentOrderUpdateOne) Where

Where appends a list predicates to the PaymentOrderUpdate builder.

type PaymentOrderUpsert

type PaymentOrderUpsert struct {
	*sql.UpdateSet
}

PaymentOrderUpsert is the "OnConflict" setter.

func (*PaymentOrderUpsert) AddAmount

AddAmount adds v to the "amount" field.

func (*PaymentOrderUpsert) AddAmountPaid

AddAmountPaid adds v to the "amount_paid" field.

func (*PaymentOrderUpsert) AddAmountReturned

func (u *PaymentOrderUpsert) AddAmountReturned(v decimal.Decimal) *PaymentOrderUpsert

AddAmountReturned adds v to the "amount_returned" field.

func (*PaymentOrderUpsert) AddBlockNumber

func (u *PaymentOrderUpsert) AddBlockNumber(v int64) *PaymentOrderUpsert

AddBlockNumber adds v to the "block_number" field.

func (*PaymentOrderUpsert) AddFeePercent

AddFeePercent adds v to the "fee_percent" field.

func (*PaymentOrderUpsert) AddNetworkFee

AddNetworkFee adds v to the "network_fee" field.

func (*PaymentOrderUpsert) AddPercentSettled

func (u *PaymentOrderUpsert) AddPercentSettled(v decimal.Decimal) *PaymentOrderUpsert

AddPercentSettled adds v to the "percent_settled" field.

func (*PaymentOrderUpsert) AddRate

AddRate adds v to the "rate" field.

func (*PaymentOrderUpsert) AddSenderFee

AddSenderFee adds v to the "sender_fee" field.

func (*PaymentOrderUpsert) ClearFeeAddress

func (u *PaymentOrderUpsert) ClearFeeAddress() *PaymentOrderUpsert

ClearFeeAddress clears the value of the "fee_address" field.

func (*PaymentOrderUpsert) ClearFromAddress

func (u *PaymentOrderUpsert) ClearFromAddress() *PaymentOrderUpsert

ClearFromAddress clears the value of the "from_address" field.

func (*PaymentOrderUpsert) ClearGatewayID

func (u *PaymentOrderUpsert) ClearGatewayID() *PaymentOrderUpsert

ClearGatewayID clears the value of the "gateway_id" field.

func (*PaymentOrderUpsert) ClearMessageHash

func (u *PaymentOrderUpsert) ClearMessageHash() *PaymentOrderUpsert

ClearMessageHash clears the value of the "message_hash" field.

func (*PaymentOrderUpsert) ClearReference

func (u *PaymentOrderUpsert) ClearReference() *PaymentOrderUpsert

ClearReference clears the value of the "reference" field.

func (*PaymentOrderUpsert) ClearReturnAddress

func (u *PaymentOrderUpsert) ClearReturnAddress() *PaymentOrderUpsert

ClearReturnAddress clears the value of the "return_address" field.

func (*PaymentOrderUpsert) ClearTxHash

func (u *PaymentOrderUpsert) ClearTxHash() *PaymentOrderUpsert

ClearTxHash clears the value of the "tx_hash" field.

func (*PaymentOrderUpsert) SetAmount

SetAmount sets the "amount" field.

func (*PaymentOrderUpsert) SetAmountPaid

SetAmountPaid sets the "amount_paid" field.

func (*PaymentOrderUpsert) SetAmountReturned

func (u *PaymentOrderUpsert) SetAmountReturned(v decimal.Decimal) *PaymentOrderUpsert

SetAmountReturned sets the "amount_returned" field.

func (*PaymentOrderUpsert) SetBlockNumber

func (u *PaymentOrderUpsert) SetBlockNumber(v int64) *PaymentOrderUpsert

SetBlockNumber sets the "block_number" field.

func (*PaymentOrderUpsert) SetFeeAddress

func (u *PaymentOrderUpsert) SetFeeAddress(v string) *PaymentOrderUpsert

SetFeeAddress sets the "fee_address" field.

func (*PaymentOrderUpsert) SetFeePercent

SetFeePercent sets the "fee_percent" field.

func (*PaymentOrderUpsert) SetFromAddress

func (u *PaymentOrderUpsert) SetFromAddress(v string) *PaymentOrderUpsert

SetFromAddress sets the "from_address" field.

func (*PaymentOrderUpsert) SetGatewayID

func (u *PaymentOrderUpsert) SetGatewayID(v string) *PaymentOrderUpsert

SetGatewayID sets the "gateway_id" field.

func (*PaymentOrderUpsert) SetMessageHash

func (u *PaymentOrderUpsert) SetMessageHash(v string) *PaymentOrderUpsert

SetMessageHash sets the "message_hash" field.

func (*PaymentOrderUpsert) SetNetworkFee

SetNetworkFee sets the "network_fee" field.

func (*PaymentOrderUpsert) SetPercentSettled

func (u *PaymentOrderUpsert) SetPercentSettled(v decimal.Decimal) *PaymentOrderUpsert

SetPercentSettled sets the "percent_settled" field.

func (*PaymentOrderUpsert) SetRate

SetRate sets the "rate" field.

func (*PaymentOrderUpsert) SetReceiveAddressText

func (u *PaymentOrderUpsert) SetReceiveAddressText(v string) *PaymentOrderUpsert

SetReceiveAddressText sets the "receive_address_text" field.

func (*PaymentOrderUpsert) SetReference

func (u *PaymentOrderUpsert) SetReference(v string) *PaymentOrderUpsert

SetReference sets the "reference" field.

func (*PaymentOrderUpsert) SetReturnAddress

func (u *PaymentOrderUpsert) SetReturnAddress(v string) *PaymentOrderUpsert

SetReturnAddress sets the "return_address" field.

func (*PaymentOrderUpsert) SetSenderFee

SetSenderFee sets the "sender_fee" field.

func (*PaymentOrderUpsert) SetStatus

SetStatus sets the "status" field.

func (*PaymentOrderUpsert) SetTxHash

func (u *PaymentOrderUpsert) SetTxHash(v string) *PaymentOrderUpsert

SetTxHash sets the "tx_hash" field.

func (*PaymentOrderUpsert) SetUpdatedAt

func (u *PaymentOrderUpsert) SetUpdatedAt(v time.Time) *PaymentOrderUpsert

SetUpdatedAt sets the "updated_at" field.

func (*PaymentOrderUpsert) UpdateAmount

func (u *PaymentOrderUpsert) UpdateAmount() *PaymentOrderUpsert

UpdateAmount sets the "amount" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateAmountPaid

func (u *PaymentOrderUpsert) UpdateAmountPaid() *PaymentOrderUpsert

UpdateAmountPaid sets the "amount_paid" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateAmountReturned

func (u *PaymentOrderUpsert) UpdateAmountReturned() *PaymentOrderUpsert

UpdateAmountReturned sets the "amount_returned" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateBlockNumber

func (u *PaymentOrderUpsert) UpdateBlockNumber() *PaymentOrderUpsert

UpdateBlockNumber sets the "block_number" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateFeeAddress

func (u *PaymentOrderUpsert) UpdateFeeAddress() *PaymentOrderUpsert

UpdateFeeAddress sets the "fee_address" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateFeePercent

func (u *PaymentOrderUpsert) UpdateFeePercent() *PaymentOrderUpsert

UpdateFeePercent sets the "fee_percent" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateFromAddress

func (u *PaymentOrderUpsert) UpdateFromAddress() *PaymentOrderUpsert

UpdateFromAddress sets the "from_address" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateGatewayID

func (u *PaymentOrderUpsert) UpdateGatewayID() *PaymentOrderUpsert

UpdateGatewayID sets the "gateway_id" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateMessageHash

func (u *PaymentOrderUpsert) UpdateMessageHash() *PaymentOrderUpsert

UpdateMessageHash sets the "message_hash" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateNetworkFee

func (u *PaymentOrderUpsert) UpdateNetworkFee() *PaymentOrderUpsert

UpdateNetworkFee sets the "network_fee" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdatePercentSettled

func (u *PaymentOrderUpsert) UpdatePercentSettled() *PaymentOrderUpsert

UpdatePercentSettled sets the "percent_settled" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateRate

func (u *PaymentOrderUpsert) UpdateRate() *PaymentOrderUpsert

UpdateRate sets the "rate" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateReceiveAddressText

func (u *PaymentOrderUpsert) UpdateReceiveAddressText() *PaymentOrderUpsert

UpdateReceiveAddressText sets the "receive_address_text" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateReference

func (u *PaymentOrderUpsert) UpdateReference() *PaymentOrderUpsert

UpdateReference sets the "reference" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateReturnAddress

func (u *PaymentOrderUpsert) UpdateReturnAddress() *PaymentOrderUpsert

UpdateReturnAddress sets the "return_address" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateSenderFee

func (u *PaymentOrderUpsert) UpdateSenderFee() *PaymentOrderUpsert

UpdateSenderFee sets the "sender_fee" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateStatus

func (u *PaymentOrderUpsert) UpdateStatus() *PaymentOrderUpsert

UpdateStatus sets the "status" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateTxHash

func (u *PaymentOrderUpsert) UpdateTxHash() *PaymentOrderUpsert

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

func (*PaymentOrderUpsert) UpdateUpdatedAt

func (u *PaymentOrderUpsert) UpdateUpdatedAt() *PaymentOrderUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type PaymentOrderUpsertBulk

type PaymentOrderUpsertBulk struct {
	// contains filtered or unexported fields
}

PaymentOrderUpsertBulk is the builder for "upsert"-ing a bulk of PaymentOrder nodes.

func (*PaymentOrderUpsertBulk) AddAmount

AddAmount adds v to the "amount" field.

func (*PaymentOrderUpsertBulk) AddAmountPaid

AddAmountPaid adds v to the "amount_paid" field.

func (*PaymentOrderUpsertBulk) AddAmountReturned

AddAmountReturned adds v to the "amount_returned" field.

func (*PaymentOrderUpsertBulk) AddBlockNumber

func (u *PaymentOrderUpsertBulk) AddBlockNumber(v int64) *PaymentOrderUpsertBulk

AddBlockNumber adds v to the "block_number" field.

func (*PaymentOrderUpsertBulk) AddFeePercent

AddFeePercent adds v to the "fee_percent" field.

func (*PaymentOrderUpsertBulk) AddNetworkFee

AddNetworkFee adds v to the "network_fee" field.

func (*PaymentOrderUpsertBulk) AddPercentSettled

AddPercentSettled adds v to the "percent_settled" field.

func (*PaymentOrderUpsertBulk) AddRate

AddRate adds v to the "rate" field.

func (*PaymentOrderUpsertBulk) AddSenderFee

AddSenderFee adds v to the "sender_fee" field.

func (*PaymentOrderUpsertBulk) ClearFeeAddress

func (u *PaymentOrderUpsertBulk) ClearFeeAddress() *PaymentOrderUpsertBulk

ClearFeeAddress clears the value of the "fee_address" field.

func (*PaymentOrderUpsertBulk) ClearFromAddress

func (u *PaymentOrderUpsertBulk) ClearFromAddress() *PaymentOrderUpsertBulk

ClearFromAddress clears the value of the "from_address" field.

func (*PaymentOrderUpsertBulk) ClearGatewayID

func (u *PaymentOrderUpsertBulk) ClearGatewayID() *PaymentOrderUpsertBulk

ClearGatewayID clears the value of the "gateway_id" field.

func (*PaymentOrderUpsertBulk) ClearMessageHash

func (u *PaymentOrderUpsertBulk) ClearMessageHash() *PaymentOrderUpsertBulk

ClearMessageHash clears the value of the "message_hash" field.

func (*PaymentOrderUpsertBulk) ClearReference

func (u *PaymentOrderUpsertBulk) ClearReference() *PaymentOrderUpsertBulk

ClearReference clears the value of the "reference" field.

func (*PaymentOrderUpsertBulk) ClearReturnAddress

func (u *PaymentOrderUpsertBulk) ClearReturnAddress() *PaymentOrderUpsertBulk

ClearReturnAddress clears the value of the "return_address" field.

func (*PaymentOrderUpsertBulk) ClearTxHash

ClearTxHash clears the value of the "tx_hash" field.

func (*PaymentOrderUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*PaymentOrderUpsertBulk) Exec

Exec executes the query.

func (*PaymentOrderUpsertBulk) ExecX

func (u *PaymentOrderUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.PaymentOrder.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*PaymentOrderUpsertBulk) SetAmount

SetAmount sets the "amount" field.

func (*PaymentOrderUpsertBulk) SetAmountPaid

SetAmountPaid sets the "amount_paid" field.

func (*PaymentOrderUpsertBulk) SetAmountReturned

SetAmountReturned sets the "amount_returned" field.

func (*PaymentOrderUpsertBulk) SetBlockNumber

func (u *PaymentOrderUpsertBulk) SetBlockNumber(v int64) *PaymentOrderUpsertBulk

SetBlockNumber sets the "block_number" field.

func (*PaymentOrderUpsertBulk) SetFeeAddress

SetFeeAddress sets the "fee_address" field.

func (*PaymentOrderUpsertBulk) SetFeePercent

SetFeePercent sets the "fee_percent" field.

func (*PaymentOrderUpsertBulk) SetFromAddress

SetFromAddress sets the "from_address" field.

func (*PaymentOrderUpsertBulk) SetGatewayID

SetGatewayID sets the "gateway_id" field.

func (*PaymentOrderUpsertBulk) SetMessageHash

SetMessageHash sets the "message_hash" field.

func (*PaymentOrderUpsertBulk) SetNetworkFee

SetNetworkFee sets the "network_fee" field.

func (*PaymentOrderUpsertBulk) SetPercentSettled

SetPercentSettled sets the "percent_settled" field.

func (*PaymentOrderUpsertBulk) SetRate

SetRate sets the "rate" field.

func (*PaymentOrderUpsertBulk) SetReceiveAddressText

func (u *PaymentOrderUpsertBulk) SetReceiveAddressText(v string) *PaymentOrderUpsertBulk

SetReceiveAddressText sets the "receive_address_text" field.

func (*PaymentOrderUpsertBulk) SetReference

SetReference sets the "reference" field.

func (*PaymentOrderUpsertBulk) SetReturnAddress

func (u *PaymentOrderUpsertBulk) SetReturnAddress(v string) *PaymentOrderUpsertBulk

SetReturnAddress sets the "return_address" field.

func (*PaymentOrderUpsertBulk) SetSenderFee

SetSenderFee sets the "sender_fee" field.

func (*PaymentOrderUpsertBulk) SetStatus

SetStatus sets the "status" field.

func (*PaymentOrderUpsertBulk) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*PaymentOrderUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*PaymentOrderUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the PaymentOrderCreateBulk.OnConflict documentation for more info.

func (*PaymentOrderUpsertBulk) UpdateAmount

UpdateAmount sets the "amount" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateAmountPaid

func (u *PaymentOrderUpsertBulk) UpdateAmountPaid() *PaymentOrderUpsertBulk

UpdateAmountPaid sets the "amount_paid" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateAmountReturned

func (u *PaymentOrderUpsertBulk) UpdateAmountReturned() *PaymentOrderUpsertBulk

UpdateAmountReturned sets the "amount_returned" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateBlockNumber

func (u *PaymentOrderUpsertBulk) UpdateBlockNumber() *PaymentOrderUpsertBulk

UpdateBlockNumber sets the "block_number" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateFeeAddress

func (u *PaymentOrderUpsertBulk) UpdateFeeAddress() *PaymentOrderUpsertBulk

UpdateFeeAddress sets the "fee_address" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateFeePercent

func (u *PaymentOrderUpsertBulk) UpdateFeePercent() *PaymentOrderUpsertBulk

UpdateFeePercent sets the "fee_percent" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateFromAddress

func (u *PaymentOrderUpsertBulk) UpdateFromAddress() *PaymentOrderUpsertBulk

UpdateFromAddress sets the "from_address" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateGatewayID

func (u *PaymentOrderUpsertBulk) UpdateGatewayID() *PaymentOrderUpsertBulk

UpdateGatewayID sets the "gateway_id" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateMessageHash

func (u *PaymentOrderUpsertBulk) UpdateMessageHash() *PaymentOrderUpsertBulk

UpdateMessageHash sets the "message_hash" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateNetworkFee

func (u *PaymentOrderUpsertBulk) UpdateNetworkFee() *PaymentOrderUpsertBulk

UpdateNetworkFee sets the "network_fee" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateNewValues

func (u *PaymentOrderUpsertBulk) UpdateNewValues() *PaymentOrderUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.PaymentOrder.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(paymentorder.FieldID)
		}),
	).
	Exec(ctx)

func (*PaymentOrderUpsertBulk) UpdatePercentSettled

func (u *PaymentOrderUpsertBulk) UpdatePercentSettled() *PaymentOrderUpsertBulk

UpdatePercentSettled sets the "percent_settled" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateRate

UpdateRate sets the "rate" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateReceiveAddressText

func (u *PaymentOrderUpsertBulk) UpdateReceiveAddressText() *PaymentOrderUpsertBulk

UpdateReceiveAddressText sets the "receive_address_text" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateReference

func (u *PaymentOrderUpsertBulk) UpdateReference() *PaymentOrderUpsertBulk

UpdateReference sets the "reference" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateReturnAddress

func (u *PaymentOrderUpsertBulk) UpdateReturnAddress() *PaymentOrderUpsertBulk

UpdateReturnAddress sets the "return_address" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateSenderFee

func (u *PaymentOrderUpsertBulk) UpdateSenderFee() *PaymentOrderUpsertBulk

UpdateSenderFee sets the "sender_fee" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateTxHash

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

func (*PaymentOrderUpsertBulk) UpdateUpdatedAt

func (u *PaymentOrderUpsertBulk) UpdateUpdatedAt() *PaymentOrderUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type PaymentOrderUpsertOne

type PaymentOrderUpsertOne struct {
	// contains filtered or unexported fields
}

PaymentOrderUpsertOne is the builder for "upsert"-ing

one PaymentOrder node.

func (*PaymentOrderUpsertOne) AddAmount

AddAmount adds v to the "amount" field.

func (*PaymentOrderUpsertOne) AddAmountPaid

AddAmountPaid adds v to the "amount_paid" field.

func (*PaymentOrderUpsertOne) AddAmountReturned

AddAmountReturned adds v to the "amount_returned" field.

func (*PaymentOrderUpsertOne) AddBlockNumber

func (u *PaymentOrderUpsertOne) AddBlockNumber(v int64) *PaymentOrderUpsertOne

AddBlockNumber adds v to the "block_number" field.

func (*PaymentOrderUpsertOne) AddFeePercent

AddFeePercent adds v to the "fee_percent" field.

func (*PaymentOrderUpsertOne) AddNetworkFee

AddNetworkFee adds v to the "network_fee" field.

func (*PaymentOrderUpsertOne) AddPercentSettled

AddPercentSettled adds v to the "percent_settled" field.

func (*PaymentOrderUpsertOne) AddRate

AddRate adds v to the "rate" field.

func (*PaymentOrderUpsertOne) AddSenderFee

AddSenderFee adds v to the "sender_fee" field.

func (*PaymentOrderUpsertOne) ClearFeeAddress

func (u *PaymentOrderUpsertOne) ClearFeeAddress() *PaymentOrderUpsertOne

ClearFeeAddress clears the value of the "fee_address" field.

func (*PaymentOrderUpsertOne) ClearFromAddress

func (u *PaymentOrderUpsertOne) ClearFromAddress() *PaymentOrderUpsertOne

ClearFromAddress clears the value of the "from_address" field.

func (*PaymentOrderUpsertOne) ClearGatewayID

func (u *PaymentOrderUpsertOne) ClearGatewayID() *PaymentOrderUpsertOne

ClearGatewayID clears the value of the "gateway_id" field.

func (*PaymentOrderUpsertOne) ClearMessageHash

func (u *PaymentOrderUpsertOne) ClearMessageHash() *PaymentOrderUpsertOne

ClearMessageHash clears the value of the "message_hash" field.

func (*PaymentOrderUpsertOne) ClearReference

func (u *PaymentOrderUpsertOne) ClearReference() *PaymentOrderUpsertOne

ClearReference clears the value of the "reference" field.

func (*PaymentOrderUpsertOne) ClearReturnAddress

func (u *PaymentOrderUpsertOne) ClearReturnAddress() *PaymentOrderUpsertOne

ClearReturnAddress clears the value of the "return_address" field.

func (*PaymentOrderUpsertOne) ClearTxHash

func (u *PaymentOrderUpsertOne) ClearTxHash() *PaymentOrderUpsertOne

ClearTxHash clears the value of the "tx_hash" field.

func (*PaymentOrderUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*PaymentOrderUpsertOne) Exec

Exec executes the query.

func (*PaymentOrderUpsertOne) ExecX

func (u *PaymentOrderUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentOrderUpsertOne) ID

func (u *PaymentOrderUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*PaymentOrderUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*PaymentOrderUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.PaymentOrder.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*PaymentOrderUpsertOne) SetAmount

SetAmount sets the "amount" field.

func (*PaymentOrderUpsertOne) SetAmountPaid

SetAmountPaid sets the "amount_paid" field.

func (*PaymentOrderUpsertOne) SetAmountReturned

SetAmountReturned sets the "amount_returned" field.

func (*PaymentOrderUpsertOne) SetBlockNumber

func (u *PaymentOrderUpsertOne) SetBlockNumber(v int64) *PaymentOrderUpsertOne

SetBlockNumber sets the "block_number" field.

func (*PaymentOrderUpsertOne) SetFeeAddress

func (u *PaymentOrderUpsertOne) SetFeeAddress(v string) *PaymentOrderUpsertOne

SetFeeAddress sets the "fee_address" field.

func (*PaymentOrderUpsertOne) SetFeePercent

SetFeePercent sets the "fee_percent" field.

func (*PaymentOrderUpsertOne) SetFromAddress

func (u *PaymentOrderUpsertOne) SetFromAddress(v string) *PaymentOrderUpsertOne

SetFromAddress sets the "from_address" field.

func (*PaymentOrderUpsertOne) SetGatewayID

SetGatewayID sets the "gateway_id" field.

func (*PaymentOrderUpsertOne) SetMessageHash

func (u *PaymentOrderUpsertOne) SetMessageHash(v string) *PaymentOrderUpsertOne

SetMessageHash sets the "message_hash" field.

func (*PaymentOrderUpsertOne) SetNetworkFee

SetNetworkFee sets the "network_fee" field.

func (*PaymentOrderUpsertOne) SetPercentSettled

SetPercentSettled sets the "percent_settled" field.

func (*PaymentOrderUpsertOne) SetRate

SetRate sets the "rate" field.

func (*PaymentOrderUpsertOne) SetReceiveAddressText

func (u *PaymentOrderUpsertOne) SetReceiveAddressText(v string) *PaymentOrderUpsertOne

SetReceiveAddressText sets the "receive_address_text" field.

func (*PaymentOrderUpsertOne) SetReference

SetReference sets the "reference" field.

func (*PaymentOrderUpsertOne) SetReturnAddress

func (u *PaymentOrderUpsertOne) SetReturnAddress(v string) *PaymentOrderUpsertOne

SetReturnAddress sets the "return_address" field.

func (*PaymentOrderUpsertOne) SetSenderFee

SetSenderFee sets the "sender_fee" field.

func (*PaymentOrderUpsertOne) SetStatus

SetStatus sets the "status" field.

func (*PaymentOrderUpsertOne) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*PaymentOrderUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*PaymentOrderUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the PaymentOrderCreate.OnConflict documentation for more info.

func (*PaymentOrderUpsertOne) UpdateAmount

func (u *PaymentOrderUpsertOne) UpdateAmount() *PaymentOrderUpsertOne

UpdateAmount sets the "amount" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateAmountPaid

func (u *PaymentOrderUpsertOne) UpdateAmountPaid() *PaymentOrderUpsertOne

UpdateAmountPaid sets the "amount_paid" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateAmountReturned

func (u *PaymentOrderUpsertOne) UpdateAmountReturned() *PaymentOrderUpsertOne

UpdateAmountReturned sets the "amount_returned" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateBlockNumber

func (u *PaymentOrderUpsertOne) UpdateBlockNumber() *PaymentOrderUpsertOne

UpdateBlockNumber sets the "block_number" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateFeeAddress

func (u *PaymentOrderUpsertOne) UpdateFeeAddress() *PaymentOrderUpsertOne

UpdateFeeAddress sets the "fee_address" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateFeePercent

func (u *PaymentOrderUpsertOne) UpdateFeePercent() *PaymentOrderUpsertOne

UpdateFeePercent sets the "fee_percent" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateFromAddress

func (u *PaymentOrderUpsertOne) UpdateFromAddress() *PaymentOrderUpsertOne

UpdateFromAddress sets the "from_address" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateGatewayID

func (u *PaymentOrderUpsertOne) UpdateGatewayID() *PaymentOrderUpsertOne

UpdateGatewayID sets the "gateway_id" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateMessageHash

func (u *PaymentOrderUpsertOne) UpdateMessageHash() *PaymentOrderUpsertOne

UpdateMessageHash sets the "message_hash" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateNetworkFee

func (u *PaymentOrderUpsertOne) UpdateNetworkFee() *PaymentOrderUpsertOne

UpdateNetworkFee sets the "network_fee" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateNewValues

func (u *PaymentOrderUpsertOne) UpdateNewValues() *PaymentOrderUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.PaymentOrder.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(paymentorder.FieldID)
		}),
	).
	Exec(ctx)

func (*PaymentOrderUpsertOne) UpdatePercentSettled

func (u *PaymentOrderUpsertOne) UpdatePercentSettled() *PaymentOrderUpsertOne

UpdatePercentSettled sets the "percent_settled" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateRate

UpdateRate sets the "rate" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateReceiveAddressText

func (u *PaymentOrderUpsertOne) UpdateReceiveAddressText() *PaymentOrderUpsertOne

UpdateReceiveAddressText sets the "receive_address_text" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateReference

func (u *PaymentOrderUpsertOne) UpdateReference() *PaymentOrderUpsertOne

UpdateReference sets the "reference" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateReturnAddress

func (u *PaymentOrderUpsertOne) UpdateReturnAddress() *PaymentOrderUpsertOne

UpdateReturnAddress sets the "return_address" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateSenderFee

func (u *PaymentOrderUpsertOne) UpdateSenderFee() *PaymentOrderUpsertOne

UpdateSenderFee sets the "sender_fee" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateStatus

func (u *PaymentOrderUpsertOne) UpdateStatus() *PaymentOrderUpsertOne

UpdateStatus sets the "status" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateTxHash

func (u *PaymentOrderUpsertOne) UpdateTxHash() *PaymentOrderUpsertOne

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

func (*PaymentOrderUpsertOne) UpdateUpdatedAt

func (u *PaymentOrderUpsertOne) UpdateUpdatedAt() *PaymentOrderUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type PaymentOrders

type PaymentOrders []*PaymentOrder

PaymentOrders is a parsable slice of PaymentOrder.

type PaymentWebhook

type PaymentWebhook struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// WebhookID holds the value of the "webhook_id" field.
	WebhookID string `json:"webhook_id,omitempty"`
	// WebhookSecret holds the value of the "webhook_secret" field.
	WebhookSecret string `json:"webhook_secret,omitempty"`
	// CallbackURL holds the value of the "callback_url" field.
	CallbackURL string `json:"callback_url,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the PaymentWebhookQuery when eager-loading is set.
	Edges PaymentWebhookEdges `json:"edges"`
	// contains filtered or unexported fields
}

PaymentWebhook is the model entity for the PaymentWebhook schema.

func (*PaymentWebhook) QueryNetwork

func (pw *PaymentWebhook) QueryNetwork() *NetworkQuery

QueryNetwork queries the "network" edge of the PaymentWebhook entity.

func (*PaymentWebhook) QueryPaymentOrder

func (pw *PaymentWebhook) QueryPaymentOrder() *PaymentOrderQuery

QueryPaymentOrder queries the "payment_order" edge of the PaymentWebhook entity.

func (*PaymentWebhook) String

func (pw *PaymentWebhook) String() string

String implements the fmt.Stringer.

func (*PaymentWebhook) Unwrap

func (pw *PaymentWebhook) Unwrap() *PaymentWebhook

Unwrap unwraps the PaymentWebhook entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*PaymentWebhook) Update

Update returns a builder for updating this PaymentWebhook. Note that you need to call PaymentWebhook.Unwrap() before calling this method if this PaymentWebhook was returned from a transaction, and the transaction was committed or rolled back.

func (*PaymentWebhook) Value

func (pw *PaymentWebhook) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the PaymentWebhook. This includes values selected through modifiers, order, etc.

type PaymentWebhookClient

type PaymentWebhookClient struct {
	// contains filtered or unexported fields
}

PaymentWebhookClient is a client for the PaymentWebhook schema.

func NewPaymentWebhookClient

func NewPaymentWebhookClient(c config) *PaymentWebhookClient

NewPaymentWebhookClient returns a client for the PaymentWebhook from the given config.

func (*PaymentWebhookClient) Create

Create returns a builder for creating a PaymentWebhook entity.

func (*PaymentWebhookClient) CreateBulk

CreateBulk returns a builder for creating a bulk of PaymentWebhook entities.

func (*PaymentWebhookClient) Delete

Delete returns a delete builder for PaymentWebhook.

func (*PaymentWebhookClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*PaymentWebhookClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*PaymentWebhookClient) Get

Get returns a PaymentWebhook entity by its id.

func (*PaymentWebhookClient) GetX

GetX is like Get, but panics if an error occurs.

func (*PaymentWebhookClient) Hooks

func (c *PaymentWebhookClient) Hooks() []Hook

Hooks returns the client hooks.

func (*PaymentWebhookClient) Intercept

func (c *PaymentWebhookClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `paymentwebhook.Intercept(f(g(h())))`.

func (*PaymentWebhookClient) Interceptors

func (c *PaymentWebhookClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*PaymentWebhookClient) MapCreateBulk

func (c *PaymentWebhookClient) MapCreateBulk(slice any, setFunc func(*PaymentWebhookCreate, int)) *PaymentWebhookCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*PaymentWebhookClient) Query

Query returns a query builder for PaymentWebhook.

func (*PaymentWebhookClient) QueryNetwork

func (c *PaymentWebhookClient) QueryNetwork(pw *PaymentWebhook) *NetworkQuery

QueryNetwork queries the network edge of a PaymentWebhook.

func (*PaymentWebhookClient) QueryPaymentOrder

func (c *PaymentWebhookClient) QueryPaymentOrder(pw *PaymentWebhook) *PaymentOrderQuery

QueryPaymentOrder queries the payment_order edge of a PaymentWebhook.

func (*PaymentWebhookClient) Update

Update returns an update builder for PaymentWebhook.

func (*PaymentWebhookClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*PaymentWebhookClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*PaymentWebhookClient) Use

func (c *PaymentWebhookClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `paymentwebhook.Hooks(f(g(h())))`.

type PaymentWebhookCreate

type PaymentWebhookCreate struct {
	// contains filtered or unexported fields
}

PaymentWebhookCreate is the builder for creating a PaymentWebhook entity.

func (*PaymentWebhookCreate) Exec

func (pwc *PaymentWebhookCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*PaymentWebhookCreate) ExecX

func (pwc *PaymentWebhookCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentWebhookCreate) Mutation

Mutation returns the PaymentWebhookMutation object of the builder.

func (*PaymentWebhookCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.PaymentWebhook.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.PaymentWebhookUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*PaymentWebhookCreate) OnConflictColumns

func (pwc *PaymentWebhookCreate) OnConflictColumns(columns ...string) *PaymentWebhookUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.PaymentWebhook.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*PaymentWebhookCreate) Save

Save creates the PaymentWebhook in the database.

func (*PaymentWebhookCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*PaymentWebhookCreate) SetCallbackURL

func (pwc *PaymentWebhookCreate) SetCallbackURL(s string) *PaymentWebhookCreate

SetCallbackURL sets the "callback_url" field.

func (*PaymentWebhookCreate) SetCreatedAt

func (pwc *PaymentWebhookCreate) SetCreatedAt(t time.Time) *PaymentWebhookCreate

SetCreatedAt sets the "created_at" field.

func (*PaymentWebhookCreate) SetID

SetID sets the "id" field.

func (*PaymentWebhookCreate) SetNetwork

func (pwc *PaymentWebhookCreate) SetNetwork(n *Network) *PaymentWebhookCreate

SetNetwork sets the "network" edge to the Network entity.

func (*PaymentWebhookCreate) SetNetworkID

func (pwc *PaymentWebhookCreate) SetNetworkID(id int) *PaymentWebhookCreate

SetNetworkID sets the "network" edge to the Network entity by ID.

func (*PaymentWebhookCreate) SetNillableCreatedAt

func (pwc *PaymentWebhookCreate) SetNillableCreatedAt(t *time.Time) *PaymentWebhookCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*PaymentWebhookCreate) SetNillableID

func (pwc *PaymentWebhookCreate) SetNillableID(u *uuid.UUID) *PaymentWebhookCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*PaymentWebhookCreate) SetNillableNetworkID

func (pwc *PaymentWebhookCreate) SetNillableNetworkID(id *int) *PaymentWebhookCreate

SetNillableNetworkID sets the "network" edge to the Network entity by ID if the given value is not nil.

func (*PaymentWebhookCreate) SetNillablePaymentOrderID

func (pwc *PaymentWebhookCreate) SetNillablePaymentOrderID(id *uuid.UUID) *PaymentWebhookCreate

SetNillablePaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID if the given value is not nil.

func (*PaymentWebhookCreate) SetNillableUpdatedAt

func (pwc *PaymentWebhookCreate) SetNillableUpdatedAt(t *time.Time) *PaymentWebhookCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*PaymentWebhookCreate) SetPaymentOrder

func (pwc *PaymentWebhookCreate) SetPaymentOrder(p *PaymentOrder) *PaymentWebhookCreate

SetPaymentOrder sets the "payment_order" edge to the PaymentOrder entity.

func (*PaymentWebhookCreate) SetPaymentOrderID

func (pwc *PaymentWebhookCreate) SetPaymentOrderID(id uuid.UUID) *PaymentWebhookCreate

SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID.

func (*PaymentWebhookCreate) SetUpdatedAt

func (pwc *PaymentWebhookCreate) SetUpdatedAt(t time.Time) *PaymentWebhookCreate

SetUpdatedAt sets the "updated_at" field.

func (*PaymentWebhookCreate) SetWebhookID

func (pwc *PaymentWebhookCreate) SetWebhookID(s string) *PaymentWebhookCreate

SetWebhookID sets the "webhook_id" field.

func (*PaymentWebhookCreate) SetWebhookSecret

func (pwc *PaymentWebhookCreate) SetWebhookSecret(s string) *PaymentWebhookCreate

SetWebhookSecret sets the "webhook_secret" field.

type PaymentWebhookCreateBulk

type PaymentWebhookCreateBulk struct {
	// contains filtered or unexported fields
}

PaymentWebhookCreateBulk is the builder for creating many PaymentWebhook entities in bulk.

func (*PaymentWebhookCreateBulk) Exec

Exec executes the query.

func (*PaymentWebhookCreateBulk) ExecX

func (pwcb *PaymentWebhookCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentWebhookCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.PaymentWebhook.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.PaymentWebhookUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*PaymentWebhookCreateBulk) OnConflictColumns

func (pwcb *PaymentWebhookCreateBulk) OnConflictColumns(columns ...string) *PaymentWebhookUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.PaymentWebhook.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*PaymentWebhookCreateBulk) Save

Save creates the PaymentWebhook entities in the database.

func (*PaymentWebhookCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type PaymentWebhookDelete

type PaymentWebhookDelete struct {
	// contains filtered or unexported fields
}

PaymentWebhookDelete is the builder for deleting a PaymentWebhook entity.

func (*PaymentWebhookDelete) Exec

func (pwd *PaymentWebhookDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*PaymentWebhookDelete) ExecX

func (pwd *PaymentWebhookDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*PaymentWebhookDelete) Where

Where appends a list predicates to the PaymentWebhookDelete builder.

type PaymentWebhookDeleteOne

type PaymentWebhookDeleteOne struct {
	// contains filtered or unexported fields
}

PaymentWebhookDeleteOne is the builder for deleting a single PaymentWebhook entity.

func (*PaymentWebhookDeleteOne) Exec

func (pwdo *PaymentWebhookDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*PaymentWebhookDeleteOne) ExecX

func (pwdo *PaymentWebhookDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentWebhookDeleteOne) Where

Where appends a list predicates to the PaymentWebhookDelete builder.

type PaymentWebhookEdges

type PaymentWebhookEdges struct {
	// PaymentOrder holds the value of the payment_order edge.
	PaymentOrder *PaymentOrder `json:"payment_order,omitempty"`
	// Network holds the value of the network edge.
	Network *Network `json:"network,omitempty"`
	// contains filtered or unexported fields
}

PaymentWebhookEdges holds the relations/edges for other nodes in the graph.

func (PaymentWebhookEdges) NetworkOrErr

func (e PaymentWebhookEdges) NetworkOrErr() (*Network, error)

NetworkOrErr returns the Network value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (PaymentWebhookEdges) PaymentOrderOrErr

func (e PaymentWebhookEdges) PaymentOrderOrErr() (*PaymentOrder, error)

PaymentOrderOrErr returns the PaymentOrder value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type PaymentWebhookGroupBy

type PaymentWebhookGroupBy struct {
	// contains filtered or unexported fields
}

PaymentWebhookGroupBy is the group-by builder for PaymentWebhook entities.

func (*PaymentWebhookGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*PaymentWebhookGroupBy) Bool

func (s *PaymentWebhookGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookGroupBy) BoolX

func (s *PaymentWebhookGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*PaymentWebhookGroupBy) Bools

func (s *PaymentWebhookGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookGroupBy) BoolsX

func (s *PaymentWebhookGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*PaymentWebhookGroupBy) Float64

func (s *PaymentWebhookGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookGroupBy) Float64X

func (s *PaymentWebhookGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*PaymentWebhookGroupBy) Float64s

func (s *PaymentWebhookGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookGroupBy) Float64sX

func (s *PaymentWebhookGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*PaymentWebhookGroupBy) Int

func (s *PaymentWebhookGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookGroupBy) IntX

func (s *PaymentWebhookGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*PaymentWebhookGroupBy) Ints

func (s *PaymentWebhookGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookGroupBy) IntsX

func (s *PaymentWebhookGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*PaymentWebhookGroupBy) Scan

func (pwgb *PaymentWebhookGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*PaymentWebhookGroupBy) ScanX

func (s *PaymentWebhookGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*PaymentWebhookGroupBy) String

func (s *PaymentWebhookGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookGroupBy) StringX

func (s *PaymentWebhookGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*PaymentWebhookGroupBy) Strings

func (s *PaymentWebhookGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookGroupBy) StringsX

func (s *PaymentWebhookGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type PaymentWebhookMutation

type PaymentWebhookMutation struct {
	// contains filtered or unexported fields
}

PaymentWebhookMutation represents an operation that mutates the PaymentWebhook nodes in the graph.

func (*PaymentWebhookMutation) AddField

func (m *PaymentWebhookMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*PaymentWebhookMutation) AddedEdges

func (m *PaymentWebhookMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*PaymentWebhookMutation) AddedField

func (m *PaymentWebhookMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*PaymentWebhookMutation) AddedFields

func (m *PaymentWebhookMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*PaymentWebhookMutation) AddedIDs

func (m *PaymentWebhookMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*PaymentWebhookMutation) CallbackURL

func (m *PaymentWebhookMutation) CallbackURL() (r string, exists bool)

CallbackURL returns the value of the "callback_url" field in the mutation.

func (*PaymentWebhookMutation) ClearEdge

func (m *PaymentWebhookMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*PaymentWebhookMutation) ClearField

func (m *PaymentWebhookMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*PaymentWebhookMutation) ClearNetwork

func (m *PaymentWebhookMutation) ClearNetwork()

ClearNetwork clears the "network" edge to the Network entity.

func (*PaymentWebhookMutation) ClearPaymentOrder

func (m *PaymentWebhookMutation) ClearPaymentOrder()

ClearPaymentOrder clears the "payment_order" edge to the PaymentOrder entity.

func (*PaymentWebhookMutation) ClearedEdges

func (m *PaymentWebhookMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*PaymentWebhookMutation) ClearedFields

func (m *PaymentWebhookMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (PaymentWebhookMutation) Client

func (m PaymentWebhookMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*PaymentWebhookMutation) CreatedAt

func (m *PaymentWebhookMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*PaymentWebhookMutation) EdgeCleared

func (m *PaymentWebhookMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*PaymentWebhookMutation) Field

func (m *PaymentWebhookMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*PaymentWebhookMutation) FieldCleared

func (m *PaymentWebhookMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*PaymentWebhookMutation) Fields

func (m *PaymentWebhookMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*PaymentWebhookMutation) ID

func (m *PaymentWebhookMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*PaymentWebhookMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*PaymentWebhookMutation) NetworkCleared

func (m *PaymentWebhookMutation) NetworkCleared() bool

NetworkCleared reports if the "network" edge to the Network entity was cleared.

func (*PaymentWebhookMutation) NetworkID

func (m *PaymentWebhookMutation) NetworkID() (id int, exists bool)

NetworkID returns the "network" edge ID in the mutation.

func (*PaymentWebhookMutation) NetworkIDs

func (m *PaymentWebhookMutation) NetworkIDs() (ids []int)

NetworkIDs returns the "network" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use NetworkID instead. It exists only for internal usage by the builders.

func (*PaymentWebhookMutation) OldCallbackURL

func (m *PaymentWebhookMutation) OldCallbackURL(ctx context.Context) (v string, err error)

OldCallbackURL returns the old "callback_url" field's value of the PaymentWebhook entity. If the PaymentWebhook object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentWebhookMutation) OldCreatedAt

func (m *PaymentWebhookMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the PaymentWebhook entity. If the PaymentWebhook object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentWebhookMutation) OldField

func (m *PaymentWebhookMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*PaymentWebhookMutation) OldUpdatedAt

func (m *PaymentWebhookMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the PaymentWebhook entity. If the PaymentWebhook object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentWebhookMutation) OldWebhookID

func (m *PaymentWebhookMutation) OldWebhookID(ctx context.Context) (v string, err error)

OldWebhookID returns the old "webhook_id" field's value of the PaymentWebhook entity. If the PaymentWebhook object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentWebhookMutation) OldWebhookSecret

func (m *PaymentWebhookMutation) OldWebhookSecret(ctx context.Context) (v string, err error)

OldWebhookSecret returns the old "webhook_secret" field's value of the PaymentWebhook entity. If the PaymentWebhook object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*PaymentWebhookMutation) Op

func (m *PaymentWebhookMutation) Op() Op

Op returns the operation name.

func (*PaymentWebhookMutation) PaymentOrderCleared

func (m *PaymentWebhookMutation) PaymentOrderCleared() bool

PaymentOrderCleared reports if the "payment_order" edge to the PaymentOrder entity was cleared.

func (*PaymentWebhookMutation) PaymentOrderID

func (m *PaymentWebhookMutation) PaymentOrderID() (id uuid.UUID, exists bool)

PaymentOrderID returns the "payment_order" edge ID in the mutation.

func (*PaymentWebhookMutation) PaymentOrderIDs

func (m *PaymentWebhookMutation) PaymentOrderIDs() (ids []uuid.UUID)

PaymentOrderIDs returns the "payment_order" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PaymentOrderID instead. It exists only for internal usage by the builders.

func (*PaymentWebhookMutation) RemovedEdges

func (m *PaymentWebhookMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*PaymentWebhookMutation) RemovedIDs

func (m *PaymentWebhookMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*PaymentWebhookMutation) ResetCallbackURL

func (m *PaymentWebhookMutation) ResetCallbackURL()

ResetCallbackURL resets all changes to the "callback_url" field.

func (*PaymentWebhookMutation) ResetCreatedAt

func (m *PaymentWebhookMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*PaymentWebhookMutation) ResetEdge

func (m *PaymentWebhookMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*PaymentWebhookMutation) ResetField

func (m *PaymentWebhookMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*PaymentWebhookMutation) ResetNetwork

func (m *PaymentWebhookMutation) ResetNetwork()

ResetNetwork resets all changes to the "network" edge.

func (*PaymentWebhookMutation) ResetPaymentOrder

func (m *PaymentWebhookMutation) ResetPaymentOrder()

ResetPaymentOrder resets all changes to the "payment_order" edge.

func (*PaymentWebhookMutation) ResetUpdatedAt

func (m *PaymentWebhookMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*PaymentWebhookMutation) ResetWebhookID

func (m *PaymentWebhookMutation) ResetWebhookID()

ResetWebhookID resets all changes to the "webhook_id" field.

func (*PaymentWebhookMutation) ResetWebhookSecret

func (m *PaymentWebhookMutation) ResetWebhookSecret()

ResetWebhookSecret resets all changes to the "webhook_secret" field.

func (*PaymentWebhookMutation) SetCallbackURL

func (m *PaymentWebhookMutation) SetCallbackURL(s string)

SetCallbackURL sets the "callback_url" field.

func (*PaymentWebhookMutation) SetCreatedAt

func (m *PaymentWebhookMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*PaymentWebhookMutation) SetField

func (m *PaymentWebhookMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*PaymentWebhookMutation) SetID

func (m *PaymentWebhookMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of PaymentWebhook entities.

func (*PaymentWebhookMutation) SetNetworkID

func (m *PaymentWebhookMutation) SetNetworkID(id int)

SetNetworkID sets the "network" edge to the Network entity by id.

func (*PaymentWebhookMutation) SetOp

func (m *PaymentWebhookMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*PaymentWebhookMutation) SetPaymentOrderID

func (m *PaymentWebhookMutation) SetPaymentOrderID(id uuid.UUID)

SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by id.

func (*PaymentWebhookMutation) SetUpdatedAt

func (m *PaymentWebhookMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*PaymentWebhookMutation) SetWebhookID

func (m *PaymentWebhookMutation) SetWebhookID(s string)

SetWebhookID sets the "webhook_id" field.

func (*PaymentWebhookMutation) SetWebhookSecret

func (m *PaymentWebhookMutation) SetWebhookSecret(s string)

SetWebhookSecret sets the "webhook_secret" field.

func (PaymentWebhookMutation) Tx

func (m PaymentWebhookMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*PaymentWebhookMutation) Type

func (m *PaymentWebhookMutation) Type() string

Type returns the node type of this mutation (PaymentWebhook).

func (*PaymentWebhookMutation) UpdatedAt

func (m *PaymentWebhookMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*PaymentWebhookMutation) WebhookID

func (m *PaymentWebhookMutation) WebhookID() (r string, exists bool)

WebhookID returns the value of the "webhook_id" field in the mutation.

func (*PaymentWebhookMutation) WebhookSecret

func (m *PaymentWebhookMutation) WebhookSecret() (r string, exists bool)

WebhookSecret returns the value of the "webhook_secret" field in the mutation.

func (*PaymentWebhookMutation) Where

Where appends a list predicates to the PaymentWebhookMutation builder.

func (*PaymentWebhookMutation) WhereP

func (m *PaymentWebhookMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the PaymentWebhookMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type PaymentWebhookQuery

type PaymentWebhookQuery struct {
	// contains filtered or unexported fields
}

PaymentWebhookQuery is the builder for querying PaymentWebhook entities.

func (*PaymentWebhookQuery) Aggregate

func (pwq *PaymentWebhookQuery) Aggregate(fns ...AggregateFunc) *PaymentWebhookSelect

Aggregate returns a PaymentWebhookSelect configured with the given aggregations.

func (*PaymentWebhookQuery) All

All executes the query and returns a list of PaymentWebhooks.

func (*PaymentWebhookQuery) AllX

AllX is like All, but panics if an error occurs.

func (*PaymentWebhookQuery) Clone

Clone returns a duplicate of the PaymentWebhookQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*PaymentWebhookQuery) Count

func (pwq *PaymentWebhookQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*PaymentWebhookQuery) CountX

func (pwq *PaymentWebhookQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*PaymentWebhookQuery) Exist

func (pwq *PaymentWebhookQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*PaymentWebhookQuery) ExistX

func (pwq *PaymentWebhookQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*PaymentWebhookQuery) First

First returns the first PaymentWebhook entity from the query. Returns a *NotFoundError when no PaymentWebhook was found.

func (*PaymentWebhookQuery) FirstID

func (pwq *PaymentWebhookQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first PaymentWebhook ID from the query. Returns a *NotFoundError when no PaymentWebhook ID was found.

func (*PaymentWebhookQuery) FirstIDX

func (pwq *PaymentWebhookQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*PaymentWebhookQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*PaymentWebhookQuery) GroupBy

func (pwq *PaymentWebhookQuery) GroupBy(field string, fields ...string) *PaymentWebhookGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.PaymentWebhook.Query().
	GroupBy(paymentwebhook.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*PaymentWebhookQuery) IDs

func (pwq *PaymentWebhookQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of PaymentWebhook IDs.

func (*PaymentWebhookQuery) IDsX

func (pwq *PaymentWebhookQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*PaymentWebhookQuery) Limit

func (pwq *PaymentWebhookQuery) Limit(limit int) *PaymentWebhookQuery

Limit the number of records to be returned by this query.

func (*PaymentWebhookQuery) Offset

func (pwq *PaymentWebhookQuery) Offset(offset int) *PaymentWebhookQuery

Offset to start from.

func (*PaymentWebhookQuery) Only

Only returns a single PaymentWebhook entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one PaymentWebhook entity is found. Returns a *NotFoundError when no PaymentWebhook entities are found.

func (*PaymentWebhookQuery) OnlyID

func (pwq *PaymentWebhookQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only PaymentWebhook ID in the query. Returns a *NotSingularError when more than one PaymentWebhook ID is found. Returns a *NotFoundError when no entities are found.

func (*PaymentWebhookQuery) OnlyIDX

func (pwq *PaymentWebhookQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*PaymentWebhookQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*PaymentWebhookQuery) Order

Order specifies how the records should be ordered.

func (*PaymentWebhookQuery) QueryNetwork

func (pwq *PaymentWebhookQuery) QueryNetwork() *NetworkQuery

QueryNetwork chains the current query on the "network" edge.

func (*PaymentWebhookQuery) QueryPaymentOrder

func (pwq *PaymentWebhookQuery) QueryPaymentOrder() *PaymentOrderQuery

QueryPaymentOrder chains the current query on the "payment_order" edge.

func (*PaymentWebhookQuery) Select

func (pwq *PaymentWebhookQuery) Select(fields ...string) *PaymentWebhookSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.PaymentWebhook.Query().
	Select(paymentwebhook.FieldCreatedAt).
	Scan(ctx, &v)

func (*PaymentWebhookQuery) Unique

func (pwq *PaymentWebhookQuery) Unique(unique bool) *PaymentWebhookQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*PaymentWebhookQuery) Where

Where adds a new predicate for the PaymentWebhookQuery builder.

func (*PaymentWebhookQuery) WithNetwork

func (pwq *PaymentWebhookQuery) WithNetwork(opts ...func(*NetworkQuery)) *PaymentWebhookQuery

WithNetwork tells the query-builder to eager-load the nodes that are connected to the "network" edge. The optional arguments are used to configure the query builder of the edge.

func (*PaymentWebhookQuery) WithPaymentOrder

func (pwq *PaymentWebhookQuery) WithPaymentOrder(opts ...func(*PaymentOrderQuery)) *PaymentWebhookQuery

WithPaymentOrder tells the query-builder to eager-load the nodes that are connected to the "payment_order" edge. The optional arguments are used to configure the query builder of the edge.

type PaymentWebhookSelect

type PaymentWebhookSelect struct {
	*PaymentWebhookQuery
	// contains filtered or unexported fields
}

PaymentWebhookSelect is the builder for selecting fields of PaymentWebhook entities.

func (*PaymentWebhookSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*PaymentWebhookSelect) Bool

func (s *PaymentWebhookSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookSelect) BoolX

func (s *PaymentWebhookSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*PaymentWebhookSelect) Bools

func (s *PaymentWebhookSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookSelect) BoolsX

func (s *PaymentWebhookSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*PaymentWebhookSelect) Float64

func (s *PaymentWebhookSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookSelect) Float64X

func (s *PaymentWebhookSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*PaymentWebhookSelect) Float64s

func (s *PaymentWebhookSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookSelect) Float64sX

func (s *PaymentWebhookSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*PaymentWebhookSelect) Int

func (s *PaymentWebhookSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookSelect) IntX

func (s *PaymentWebhookSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*PaymentWebhookSelect) Ints

func (s *PaymentWebhookSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookSelect) IntsX

func (s *PaymentWebhookSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*PaymentWebhookSelect) Scan

func (pws *PaymentWebhookSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*PaymentWebhookSelect) ScanX

func (s *PaymentWebhookSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*PaymentWebhookSelect) String

func (s *PaymentWebhookSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookSelect) StringX

func (s *PaymentWebhookSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*PaymentWebhookSelect) Strings

func (s *PaymentWebhookSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*PaymentWebhookSelect) StringsX

func (s *PaymentWebhookSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type PaymentWebhookUpdate

type PaymentWebhookUpdate struct {
	// contains filtered or unexported fields
}

PaymentWebhookUpdate is the builder for updating PaymentWebhook entities.

func (*PaymentWebhookUpdate) ClearNetwork

func (pwu *PaymentWebhookUpdate) ClearNetwork() *PaymentWebhookUpdate

ClearNetwork clears the "network" edge to the Network entity.

func (*PaymentWebhookUpdate) ClearPaymentOrder

func (pwu *PaymentWebhookUpdate) ClearPaymentOrder() *PaymentWebhookUpdate

ClearPaymentOrder clears the "payment_order" edge to the PaymentOrder entity.

func (*PaymentWebhookUpdate) Exec

func (pwu *PaymentWebhookUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*PaymentWebhookUpdate) ExecX

func (pwu *PaymentWebhookUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentWebhookUpdate) Mutation

Mutation returns the PaymentWebhookMutation object of the builder.

func (*PaymentWebhookUpdate) Save

func (pwu *PaymentWebhookUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*PaymentWebhookUpdate) SaveX

func (pwu *PaymentWebhookUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*PaymentWebhookUpdate) SetCallbackURL

func (pwu *PaymentWebhookUpdate) SetCallbackURL(s string) *PaymentWebhookUpdate

SetCallbackURL sets the "callback_url" field.

func (*PaymentWebhookUpdate) SetNetwork

func (pwu *PaymentWebhookUpdate) SetNetwork(n *Network) *PaymentWebhookUpdate

SetNetwork sets the "network" edge to the Network entity.

func (*PaymentWebhookUpdate) SetNetworkID

func (pwu *PaymentWebhookUpdate) SetNetworkID(id int) *PaymentWebhookUpdate

SetNetworkID sets the "network" edge to the Network entity by ID.

func (*PaymentWebhookUpdate) SetNillableCallbackURL

func (pwu *PaymentWebhookUpdate) SetNillableCallbackURL(s *string) *PaymentWebhookUpdate

SetNillableCallbackURL sets the "callback_url" field if the given value is not nil.

func (*PaymentWebhookUpdate) SetNillableNetworkID

func (pwu *PaymentWebhookUpdate) SetNillableNetworkID(id *int) *PaymentWebhookUpdate

SetNillableNetworkID sets the "network" edge to the Network entity by ID if the given value is not nil.

func (*PaymentWebhookUpdate) SetNillablePaymentOrderID

func (pwu *PaymentWebhookUpdate) SetNillablePaymentOrderID(id *uuid.UUID) *PaymentWebhookUpdate

SetNillablePaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID if the given value is not nil.

func (*PaymentWebhookUpdate) SetNillableWebhookID

func (pwu *PaymentWebhookUpdate) SetNillableWebhookID(s *string) *PaymentWebhookUpdate

SetNillableWebhookID sets the "webhook_id" field if the given value is not nil.

func (*PaymentWebhookUpdate) SetNillableWebhookSecret

func (pwu *PaymentWebhookUpdate) SetNillableWebhookSecret(s *string) *PaymentWebhookUpdate

SetNillableWebhookSecret sets the "webhook_secret" field if the given value is not nil.

func (*PaymentWebhookUpdate) SetPaymentOrder

func (pwu *PaymentWebhookUpdate) SetPaymentOrder(p *PaymentOrder) *PaymentWebhookUpdate

SetPaymentOrder sets the "payment_order" edge to the PaymentOrder entity.

func (*PaymentWebhookUpdate) SetPaymentOrderID

func (pwu *PaymentWebhookUpdate) SetPaymentOrderID(id uuid.UUID) *PaymentWebhookUpdate

SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID.

func (*PaymentWebhookUpdate) SetUpdatedAt

func (pwu *PaymentWebhookUpdate) SetUpdatedAt(t time.Time) *PaymentWebhookUpdate

SetUpdatedAt sets the "updated_at" field.

func (*PaymentWebhookUpdate) SetWebhookID

func (pwu *PaymentWebhookUpdate) SetWebhookID(s string) *PaymentWebhookUpdate

SetWebhookID sets the "webhook_id" field.

func (*PaymentWebhookUpdate) SetWebhookSecret

func (pwu *PaymentWebhookUpdate) SetWebhookSecret(s string) *PaymentWebhookUpdate

SetWebhookSecret sets the "webhook_secret" field.

func (*PaymentWebhookUpdate) Where

Where appends a list predicates to the PaymentWebhookUpdate builder.

type PaymentWebhookUpdateOne

type PaymentWebhookUpdateOne struct {
	// contains filtered or unexported fields
}

PaymentWebhookUpdateOne is the builder for updating a single PaymentWebhook entity.

func (*PaymentWebhookUpdateOne) ClearNetwork

func (pwuo *PaymentWebhookUpdateOne) ClearNetwork() *PaymentWebhookUpdateOne

ClearNetwork clears the "network" edge to the Network entity.

func (*PaymentWebhookUpdateOne) ClearPaymentOrder

func (pwuo *PaymentWebhookUpdateOne) ClearPaymentOrder() *PaymentWebhookUpdateOne

ClearPaymentOrder clears the "payment_order" edge to the PaymentOrder entity.

func (*PaymentWebhookUpdateOne) Exec

func (pwuo *PaymentWebhookUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*PaymentWebhookUpdateOne) ExecX

func (pwuo *PaymentWebhookUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentWebhookUpdateOne) Mutation

Mutation returns the PaymentWebhookMutation object of the builder.

func (*PaymentWebhookUpdateOne) Save

Save executes the query and returns the updated PaymentWebhook entity.

func (*PaymentWebhookUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*PaymentWebhookUpdateOne) Select

func (pwuo *PaymentWebhookUpdateOne) Select(field string, fields ...string) *PaymentWebhookUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*PaymentWebhookUpdateOne) SetCallbackURL

func (pwuo *PaymentWebhookUpdateOne) SetCallbackURL(s string) *PaymentWebhookUpdateOne

SetCallbackURL sets the "callback_url" field.

func (*PaymentWebhookUpdateOne) SetNetwork

SetNetwork sets the "network" edge to the Network entity.

func (*PaymentWebhookUpdateOne) SetNetworkID

func (pwuo *PaymentWebhookUpdateOne) SetNetworkID(id int) *PaymentWebhookUpdateOne

SetNetworkID sets the "network" edge to the Network entity by ID.

func (*PaymentWebhookUpdateOne) SetNillableCallbackURL

func (pwuo *PaymentWebhookUpdateOne) SetNillableCallbackURL(s *string) *PaymentWebhookUpdateOne

SetNillableCallbackURL sets the "callback_url" field if the given value is not nil.

func (*PaymentWebhookUpdateOne) SetNillableNetworkID

func (pwuo *PaymentWebhookUpdateOne) SetNillableNetworkID(id *int) *PaymentWebhookUpdateOne

SetNillableNetworkID sets the "network" edge to the Network entity by ID if the given value is not nil.

func (*PaymentWebhookUpdateOne) SetNillablePaymentOrderID

func (pwuo *PaymentWebhookUpdateOne) SetNillablePaymentOrderID(id *uuid.UUID) *PaymentWebhookUpdateOne

SetNillablePaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID if the given value is not nil.

func (*PaymentWebhookUpdateOne) SetNillableWebhookID

func (pwuo *PaymentWebhookUpdateOne) SetNillableWebhookID(s *string) *PaymentWebhookUpdateOne

SetNillableWebhookID sets the "webhook_id" field if the given value is not nil.

func (*PaymentWebhookUpdateOne) SetNillableWebhookSecret

func (pwuo *PaymentWebhookUpdateOne) SetNillableWebhookSecret(s *string) *PaymentWebhookUpdateOne

SetNillableWebhookSecret sets the "webhook_secret" field if the given value is not nil.

func (*PaymentWebhookUpdateOne) SetPaymentOrder

SetPaymentOrder sets the "payment_order" edge to the PaymentOrder entity.

func (*PaymentWebhookUpdateOne) SetPaymentOrderID

func (pwuo *PaymentWebhookUpdateOne) SetPaymentOrderID(id uuid.UUID) *PaymentWebhookUpdateOne

SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID.

func (*PaymentWebhookUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*PaymentWebhookUpdateOne) SetWebhookID

SetWebhookID sets the "webhook_id" field.

func (*PaymentWebhookUpdateOne) SetWebhookSecret

func (pwuo *PaymentWebhookUpdateOne) SetWebhookSecret(s string) *PaymentWebhookUpdateOne

SetWebhookSecret sets the "webhook_secret" field.

func (*PaymentWebhookUpdateOne) Where

Where appends a list predicates to the PaymentWebhookUpdate builder.

type PaymentWebhookUpsert

type PaymentWebhookUpsert struct {
	*sql.UpdateSet
}

PaymentWebhookUpsert is the "OnConflict" setter.

func (*PaymentWebhookUpsert) SetCallbackURL

func (u *PaymentWebhookUpsert) SetCallbackURL(v string) *PaymentWebhookUpsert

SetCallbackURL sets the "callback_url" field.

func (*PaymentWebhookUpsert) SetUpdatedAt

func (u *PaymentWebhookUpsert) SetUpdatedAt(v time.Time) *PaymentWebhookUpsert

SetUpdatedAt sets the "updated_at" field.

func (*PaymentWebhookUpsert) SetWebhookID

func (u *PaymentWebhookUpsert) SetWebhookID(v string) *PaymentWebhookUpsert

SetWebhookID sets the "webhook_id" field.

func (*PaymentWebhookUpsert) SetWebhookSecret

func (u *PaymentWebhookUpsert) SetWebhookSecret(v string) *PaymentWebhookUpsert

SetWebhookSecret sets the "webhook_secret" field.

func (*PaymentWebhookUpsert) UpdateCallbackURL

func (u *PaymentWebhookUpsert) UpdateCallbackURL() *PaymentWebhookUpsert

UpdateCallbackURL sets the "callback_url" field to the value that was provided on create.

func (*PaymentWebhookUpsert) UpdateUpdatedAt

func (u *PaymentWebhookUpsert) UpdateUpdatedAt() *PaymentWebhookUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*PaymentWebhookUpsert) UpdateWebhookID

func (u *PaymentWebhookUpsert) UpdateWebhookID() *PaymentWebhookUpsert

UpdateWebhookID sets the "webhook_id" field to the value that was provided on create.

func (*PaymentWebhookUpsert) UpdateWebhookSecret

func (u *PaymentWebhookUpsert) UpdateWebhookSecret() *PaymentWebhookUpsert

UpdateWebhookSecret sets the "webhook_secret" field to the value that was provided on create.

type PaymentWebhookUpsertBulk

type PaymentWebhookUpsertBulk struct {
	// contains filtered or unexported fields
}

PaymentWebhookUpsertBulk is the builder for "upsert"-ing a bulk of PaymentWebhook nodes.

func (*PaymentWebhookUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*PaymentWebhookUpsertBulk) Exec

Exec executes the query.

func (*PaymentWebhookUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*PaymentWebhookUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.PaymentWebhook.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*PaymentWebhookUpsertBulk) SetCallbackURL

SetCallbackURL sets the "callback_url" field.

func (*PaymentWebhookUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*PaymentWebhookUpsertBulk) SetWebhookID

SetWebhookID sets the "webhook_id" field.

func (*PaymentWebhookUpsertBulk) SetWebhookSecret

SetWebhookSecret sets the "webhook_secret" field.

func (*PaymentWebhookUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the PaymentWebhookCreateBulk.OnConflict documentation for more info.

func (*PaymentWebhookUpsertBulk) UpdateCallbackURL

func (u *PaymentWebhookUpsertBulk) UpdateCallbackURL() *PaymentWebhookUpsertBulk

UpdateCallbackURL sets the "callback_url" field to the value that was provided on create.

func (*PaymentWebhookUpsertBulk) UpdateNewValues

func (u *PaymentWebhookUpsertBulk) UpdateNewValues() *PaymentWebhookUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.PaymentWebhook.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(paymentwebhook.FieldID)
		}),
	).
	Exec(ctx)

func (*PaymentWebhookUpsertBulk) UpdateUpdatedAt

func (u *PaymentWebhookUpsertBulk) UpdateUpdatedAt() *PaymentWebhookUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*PaymentWebhookUpsertBulk) UpdateWebhookID

func (u *PaymentWebhookUpsertBulk) UpdateWebhookID() *PaymentWebhookUpsertBulk

UpdateWebhookID sets the "webhook_id" field to the value that was provided on create.

func (*PaymentWebhookUpsertBulk) UpdateWebhookSecret

func (u *PaymentWebhookUpsertBulk) UpdateWebhookSecret() *PaymentWebhookUpsertBulk

UpdateWebhookSecret sets the "webhook_secret" field to the value that was provided on create.

type PaymentWebhookUpsertOne

type PaymentWebhookUpsertOne struct {
	// contains filtered or unexported fields
}

PaymentWebhookUpsertOne is the builder for "upsert"-ing

one PaymentWebhook node.

func (*PaymentWebhookUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*PaymentWebhookUpsertOne) Exec

Exec executes the query.

func (*PaymentWebhookUpsertOne) ExecX

func (u *PaymentWebhookUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*PaymentWebhookUpsertOne) ID

func (u *PaymentWebhookUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*PaymentWebhookUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*PaymentWebhookUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.PaymentWebhook.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*PaymentWebhookUpsertOne) SetCallbackURL

SetCallbackURL sets the "callback_url" field.

func (*PaymentWebhookUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*PaymentWebhookUpsertOne) SetWebhookID

SetWebhookID sets the "webhook_id" field.

func (*PaymentWebhookUpsertOne) SetWebhookSecret

func (u *PaymentWebhookUpsertOne) SetWebhookSecret(v string) *PaymentWebhookUpsertOne

SetWebhookSecret sets the "webhook_secret" field.

func (*PaymentWebhookUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the PaymentWebhookCreate.OnConflict documentation for more info.

func (*PaymentWebhookUpsertOne) UpdateCallbackURL

func (u *PaymentWebhookUpsertOne) UpdateCallbackURL() *PaymentWebhookUpsertOne

UpdateCallbackURL sets the "callback_url" field to the value that was provided on create.

func (*PaymentWebhookUpsertOne) UpdateNewValues

func (u *PaymentWebhookUpsertOne) UpdateNewValues() *PaymentWebhookUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.PaymentWebhook.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(paymentwebhook.FieldID)
		}),
	).
	Exec(ctx)

func (*PaymentWebhookUpsertOne) UpdateUpdatedAt

func (u *PaymentWebhookUpsertOne) UpdateUpdatedAt() *PaymentWebhookUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*PaymentWebhookUpsertOne) UpdateWebhookID

func (u *PaymentWebhookUpsertOne) UpdateWebhookID() *PaymentWebhookUpsertOne

UpdateWebhookID sets the "webhook_id" field to the value that was provided on create.

func (*PaymentWebhookUpsertOne) UpdateWebhookSecret

func (u *PaymentWebhookUpsertOne) UpdateWebhookSecret() *PaymentWebhookUpsertOne

UpdateWebhookSecret sets the "webhook_secret" field to the value that was provided on create.

type PaymentWebhooks

type PaymentWebhooks []*PaymentWebhook

PaymentWebhooks is a parsable slice of PaymentWebhook.

type Policy

type Policy = ent.Policy

ent aliases to avoid import conflicts in user's code.

type ProviderCurrencies added in v0.0.2

type ProviderCurrencies struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// AvailableBalance holds the value of the "available_balance" field.
	AvailableBalance decimal.Decimal `json:"available_balance,omitempty"`
	// TotalBalance holds the value of the "total_balance" field.
	TotalBalance decimal.Decimal `json:"total_balance,omitempty"`
	// ReservedBalance holds the value of the "reserved_balance" field.
	ReservedBalance decimal.Decimal `json:"reserved_balance,omitempty"`
	// IsAvailable holds the value of the "is_available" field.
	IsAvailable bool `json:"is_available,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ProviderCurrenciesQuery when eager-loading is set.
	Edges ProviderCurrenciesEdges `json:"edges"`
	// contains filtered or unexported fields
}

ProviderCurrencies is the model entity for the ProviderCurrencies schema.

func (*ProviderCurrencies) QueryCurrency added in v0.0.2

func (pc *ProviderCurrencies) QueryCurrency() *FiatCurrencyQuery

QueryCurrency queries the "currency" edge of the ProviderCurrencies entity.

func (*ProviderCurrencies) QueryProvider added in v0.0.2

func (pc *ProviderCurrencies) QueryProvider() *ProviderProfileQuery

QueryProvider queries the "provider" edge of the ProviderCurrencies entity.

func (*ProviderCurrencies) String added in v0.0.2

func (pc *ProviderCurrencies) String() string

String implements the fmt.Stringer.

func (*ProviderCurrencies) Unwrap added in v0.0.2

func (pc *ProviderCurrencies) Unwrap() *ProviderCurrencies

Unwrap unwraps the ProviderCurrencies entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ProviderCurrencies) Update added in v0.0.2

Update returns a builder for updating this ProviderCurrencies. Note that you need to call ProviderCurrencies.Unwrap() before calling this method if this ProviderCurrencies was returned from a transaction, and the transaction was committed or rolled back.

func (*ProviderCurrencies) Value added in v0.0.2

func (pc *ProviderCurrencies) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ProviderCurrencies. This includes values selected through modifiers, order, etc.

type ProviderCurrenciesClient added in v0.0.2

type ProviderCurrenciesClient struct {
	// contains filtered or unexported fields
}

ProviderCurrenciesClient is a client for the ProviderCurrencies schema.

func NewProviderCurrenciesClient added in v0.0.2

func NewProviderCurrenciesClient(c config) *ProviderCurrenciesClient

NewProviderCurrenciesClient returns a client for the ProviderCurrencies from the given config.

func (*ProviderCurrenciesClient) Create added in v0.0.2

Create returns a builder for creating a ProviderCurrencies entity.

func (*ProviderCurrenciesClient) CreateBulk added in v0.0.2

CreateBulk returns a builder for creating a bulk of ProviderCurrencies entities.

func (*ProviderCurrenciesClient) Delete added in v0.0.2

Delete returns a delete builder for ProviderCurrencies.

func (*ProviderCurrenciesClient) DeleteOne added in v0.0.2

DeleteOne returns a builder for deleting the given entity.

func (*ProviderCurrenciesClient) DeleteOneID added in v0.0.2

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ProviderCurrenciesClient) Get added in v0.0.2

Get returns a ProviderCurrencies entity by its id.

func (*ProviderCurrenciesClient) GetX added in v0.0.2

GetX is like Get, but panics if an error occurs.

func (*ProviderCurrenciesClient) Hooks added in v0.0.2

func (c *ProviderCurrenciesClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ProviderCurrenciesClient) Intercept added in v0.0.2

func (c *ProviderCurrenciesClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `providercurrencies.Intercept(f(g(h())))`.

func (*ProviderCurrenciesClient) Interceptors added in v0.0.2

func (c *ProviderCurrenciesClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ProviderCurrenciesClient) MapCreateBulk added in v0.0.2

func (c *ProviderCurrenciesClient) MapCreateBulk(slice any, setFunc func(*ProviderCurrenciesCreate, int)) *ProviderCurrenciesCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ProviderCurrenciesClient) Query added in v0.0.2

Query returns a query builder for ProviderCurrencies.

func (*ProviderCurrenciesClient) QueryCurrency added in v0.0.2

QueryCurrency queries the currency edge of a ProviderCurrencies.

func (*ProviderCurrenciesClient) QueryProvider added in v0.0.2

QueryProvider queries the provider edge of a ProviderCurrencies.

func (*ProviderCurrenciesClient) Update added in v0.0.2

Update returns an update builder for ProviderCurrencies.

func (*ProviderCurrenciesClient) UpdateOne added in v0.0.2

UpdateOne returns an update builder for the given entity.

func (*ProviderCurrenciesClient) UpdateOneID added in v0.0.2

UpdateOneID returns an update builder for the given id.

func (*ProviderCurrenciesClient) Use added in v0.0.2

func (c *ProviderCurrenciesClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `providercurrencies.Hooks(f(g(h())))`.

type ProviderCurrenciesCreate added in v0.0.2

type ProviderCurrenciesCreate struct {
	// contains filtered or unexported fields
}

ProviderCurrenciesCreate is the builder for creating a ProviderCurrencies entity.

func (*ProviderCurrenciesCreate) Exec added in v0.0.2

Exec executes the query.

func (*ProviderCurrenciesCreate) ExecX added in v0.0.2

func (pcc *ProviderCurrenciesCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderCurrenciesCreate) Mutation added in v0.0.2

Mutation returns the ProviderCurrenciesMutation object of the builder.

func (*ProviderCurrenciesCreate) OnConflict added in v0.0.2

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.ProviderCurrencies.Create().
	SetAvailableBalance(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.ProviderCurrenciesUpsert) {
		SetAvailableBalance(v+v).
	}).
	Exec(ctx)

func (*ProviderCurrenciesCreate) OnConflictColumns added in v0.0.2

func (pcc *ProviderCurrenciesCreate) OnConflictColumns(columns ...string) *ProviderCurrenciesUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.ProviderCurrencies.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*ProviderCurrenciesCreate) Save added in v0.0.2

Save creates the ProviderCurrencies in the database.

func (*ProviderCurrenciesCreate) SaveX added in v0.0.2

SaveX calls Save and panics if Save returns an error.

func (*ProviderCurrenciesCreate) SetAvailableBalance added in v0.0.2

SetAvailableBalance sets the "available_balance" field.

func (*ProviderCurrenciesCreate) SetCurrency added in v0.0.2

SetCurrency sets the "currency" edge to the FiatCurrency entity.

func (*ProviderCurrenciesCreate) SetCurrencyID added in v0.0.2

SetCurrencyID sets the "currency" edge to the FiatCurrency entity by ID.

func (*ProviderCurrenciesCreate) SetID added in v0.0.2

SetID sets the "id" field.

func (*ProviderCurrenciesCreate) SetIsAvailable added in v0.0.2

func (pcc *ProviderCurrenciesCreate) SetIsAvailable(b bool) *ProviderCurrenciesCreate

SetIsAvailable sets the "is_available" field.

func (*ProviderCurrenciesCreate) SetNillableID added in v0.0.2

SetNillableID sets the "id" field if the given value is not nil.

func (*ProviderCurrenciesCreate) SetNillableIsAvailable added in v0.0.2

func (pcc *ProviderCurrenciesCreate) SetNillableIsAvailable(b *bool) *ProviderCurrenciesCreate

SetNillableIsAvailable sets the "is_available" field if the given value is not nil.

func (*ProviderCurrenciesCreate) SetNillableUpdatedAt added in v0.0.2

func (pcc *ProviderCurrenciesCreate) SetNillableUpdatedAt(t *time.Time) *ProviderCurrenciesCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ProviderCurrenciesCreate) SetProvider added in v0.0.2

SetProvider sets the "provider" edge to the ProviderProfile entity.

func (*ProviderCurrenciesCreate) SetProviderID added in v0.0.2

SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.

func (*ProviderCurrenciesCreate) SetReservedBalance added in v0.0.2

SetReservedBalance sets the "reserved_balance" field.

func (*ProviderCurrenciesCreate) SetTotalBalance added in v0.0.2

SetTotalBalance sets the "total_balance" field.

func (*ProviderCurrenciesCreate) SetUpdatedAt added in v0.0.2

SetUpdatedAt sets the "updated_at" field.

type ProviderCurrenciesCreateBulk added in v0.0.2

type ProviderCurrenciesCreateBulk struct {
	// contains filtered or unexported fields
}

ProviderCurrenciesCreateBulk is the builder for creating many ProviderCurrencies entities in bulk.

func (*ProviderCurrenciesCreateBulk) Exec added in v0.0.2

Exec executes the query.

func (*ProviderCurrenciesCreateBulk) ExecX added in v0.0.2

func (pccb *ProviderCurrenciesCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderCurrenciesCreateBulk) OnConflict added in v0.0.2

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.ProviderCurrencies.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.ProviderCurrenciesUpsert) {
		SetAvailableBalance(v+v).
	}).
	Exec(ctx)

func (*ProviderCurrenciesCreateBulk) OnConflictColumns added in v0.0.2

func (pccb *ProviderCurrenciesCreateBulk) OnConflictColumns(columns ...string) *ProviderCurrenciesUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.ProviderCurrencies.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*ProviderCurrenciesCreateBulk) Save added in v0.0.2

Save creates the ProviderCurrencies entities in the database.

func (*ProviderCurrenciesCreateBulk) SaveX added in v0.0.2

SaveX is like Save, but panics if an error occurs.

type ProviderCurrenciesDelete added in v0.0.2

type ProviderCurrenciesDelete struct {
	// contains filtered or unexported fields
}

ProviderCurrenciesDelete is the builder for deleting a ProviderCurrencies entity.

func (*ProviderCurrenciesDelete) Exec added in v0.0.2

func (pcd *ProviderCurrenciesDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ProviderCurrenciesDelete) ExecX added in v0.0.2

func (pcd *ProviderCurrenciesDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ProviderCurrenciesDelete) Where added in v0.0.2

Where appends a list predicates to the ProviderCurrenciesDelete builder.

type ProviderCurrenciesDeleteOne added in v0.0.2

type ProviderCurrenciesDeleteOne struct {
	// contains filtered or unexported fields
}

ProviderCurrenciesDeleteOne is the builder for deleting a single ProviderCurrencies entity.

func (*ProviderCurrenciesDeleteOne) Exec added in v0.0.2

Exec executes the deletion query.

func (*ProviderCurrenciesDeleteOne) ExecX added in v0.0.2

func (pcdo *ProviderCurrenciesDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderCurrenciesDeleteOne) Where added in v0.0.2

Where appends a list predicates to the ProviderCurrenciesDelete builder.

type ProviderCurrenciesEdges added in v0.0.2

type ProviderCurrenciesEdges struct {
	// Provider holds the value of the provider edge.
	Provider *ProviderProfile `json:"provider,omitempty"`
	// Currency holds the value of the currency edge.
	Currency *FiatCurrency `json:"currency,omitempty"`
	// contains filtered or unexported fields
}

ProviderCurrenciesEdges holds the relations/edges for other nodes in the graph.

func (ProviderCurrenciesEdges) CurrencyOrErr added in v0.0.2

func (e ProviderCurrenciesEdges) CurrencyOrErr() (*FiatCurrency, error)

CurrencyOrErr returns the Currency value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ProviderCurrenciesEdges) ProviderOrErr added in v0.0.2

func (e ProviderCurrenciesEdges) ProviderOrErr() (*ProviderProfile, error)

ProviderOrErr returns the Provider value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ProviderCurrenciesGroupBy added in v0.0.2

type ProviderCurrenciesGroupBy struct {
	// contains filtered or unexported fields
}

ProviderCurrenciesGroupBy is the group-by builder for ProviderCurrencies entities.

func (*ProviderCurrenciesGroupBy) Aggregate added in v0.0.2

Aggregate adds the given aggregation functions to the group-by query.

func (*ProviderCurrenciesGroupBy) Bool added in v0.0.2

func (s *ProviderCurrenciesGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesGroupBy) BoolX added in v0.0.2

func (s *ProviderCurrenciesGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ProviderCurrenciesGroupBy) Bools added in v0.0.2

func (s *ProviderCurrenciesGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesGroupBy) BoolsX added in v0.0.2

func (s *ProviderCurrenciesGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ProviderCurrenciesGroupBy) Float64 added in v0.0.2

func (s *ProviderCurrenciesGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesGroupBy) Float64X added in v0.0.2

func (s *ProviderCurrenciesGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ProviderCurrenciesGroupBy) Float64s added in v0.0.2

func (s *ProviderCurrenciesGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesGroupBy) Float64sX added in v0.0.2

func (s *ProviderCurrenciesGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ProviderCurrenciesGroupBy) Int added in v0.0.2

func (s *ProviderCurrenciesGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesGroupBy) IntX added in v0.0.2

func (s *ProviderCurrenciesGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ProviderCurrenciesGroupBy) Ints added in v0.0.2

func (s *ProviderCurrenciesGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesGroupBy) IntsX added in v0.0.2

func (s *ProviderCurrenciesGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ProviderCurrenciesGroupBy) Scan added in v0.0.2

func (pcgb *ProviderCurrenciesGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ProviderCurrenciesGroupBy) ScanX added in v0.0.2

func (s *ProviderCurrenciesGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ProviderCurrenciesGroupBy) String added in v0.0.2

func (s *ProviderCurrenciesGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesGroupBy) StringX added in v0.0.2

func (s *ProviderCurrenciesGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ProviderCurrenciesGroupBy) Strings added in v0.0.2

func (s *ProviderCurrenciesGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesGroupBy) StringsX added in v0.0.2

func (s *ProviderCurrenciesGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ProviderCurrenciesMutation added in v0.0.2

type ProviderCurrenciesMutation struct {
	// contains filtered or unexported fields
}

ProviderCurrenciesMutation represents an operation that mutates the ProviderCurrencies nodes in the graph.

func (*ProviderCurrenciesMutation) AddAvailableBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) AddAvailableBalance(d decimal.Decimal)

AddAvailableBalance adds d to the "available_balance" field.

func (*ProviderCurrenciesMutation) AddField added in v0.0.2

func (m *ProviderCurrenciesMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ProviderCurrenciesMutation) AddReservedBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) AddReservedBalance(d decimal.Decimal)

AddReservedBalance adds d to the "reserved_balance" field.

func (*ProviderCurrenciesMutation) AddTotalBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) AddTotalBalance(d decimal.Decimal)

AddTotalBalance adds d to the "total_balance" field.

func (*ProviderCurrenciesMutation) AddedAvailableBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) AddedAvailableBalance() (r decimal.Decimal, exists bool)

AddedAvailableBalance returns the value that was added to the "available_balance" field in this mutation.

func (*ProviderCurrenciesMutation) AddedEdges added in v0.0.2

func (m *ProviderCurrenciesMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ProviderCurrenciesMutation) AddedField added in v0.0.2

func (m *ProviderCurrenciesMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ProviderCurrenciesMutation) AddedFields added in v0.0.2

func (m *ProviderCurrenciesMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ProviderCurrenciesMutation) AddedIDs added in v0.0.2

func (m *ProviderCurrenciesMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ProviderCurrenciesMutation) AddedReservedBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) AddedReservedBalance() (r decimal.Decimal, exists bool)

AddedReservedBalance returns the value that was added to the "reserved_balance" field in this mutation.

func (*ProviderCurrenciesMutation) AddedTotalBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) AddedTotalBalance() (r decimal.Decimal, exists bool)

AddedTotalBalance returns the value that was added to the "total_balance" field in this mutation.

func (*ProviderCurrenciesMutation) AvailableBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) AvailableBalance() (r decimal.Decimal, exists bool)

AvailableBalance returns the value of the "available_balance" field in the mutation.

func (*ProviderCurrenciesMutation) ClearCurrency added in v0.0.2

func (m *ProviderCurrenciesMutation) ClearCurrency()

ClearCurrency clears the "currency" edge to the FiatCurrency entity.

func (*ProviderCurrenciesMutation) ClearEdge added in v0.0.2

func (m *ProviderCurrenciesMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ProviderCurrenciesMutation) ClearField added in v0.0.2

func (m *ProviderCurrenciesMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ProviderCurrenciesMutation) ClearProvider added in v0.0.2

func (m *ProviderCurrenciesMutation) ClearProvider()

ClearProvider clears the "provider" edge to the ProviderProfile entity.

func (*ProviderCurrenciesMutation) ClearedEdges added in v0.0.2

func (m *ProviderCurrenciesMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ProviderCurrenciesMutation) ClearedFields added in v0.0.2

func (m *ProviderCurrenciesMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ProviderCurrenciesMutation) Client added in v0.0.2

func (m ProviderCurrenciesMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ProviderCurrenciesMutation) CurrencyCleared added in v0.0.2

func (m *ProviderCurrenciesMutation) CurrencyCleared() bool

CurrencyCleared reports if the "currency" edge to the FiatCurrency entity was cleared.

func (*ProviderCurrenciesMutation) CurrencyID added in v0.0.2

func (m *ProviderCurrenciesMutation) CurrencyID() (id uuid.UUID, exists bool)

CurrencyID returns the "currency" edge ID in the mutation.

func (*ProviderCurrenciesMutation) CurrencyIDs added in v0.0.2

func (m *ProviderCurrenciesMutation) CurrencyIDs() (ids []uuid.UUID)

CurrencyIDs returns the "currency" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CurrencyID instead. It exists only for internal usage by the builders.

func (*ProviderCurrenciesMutation) EdgeCleared added in v0.0.2

func (m *ProviderCurrenciesMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ProviderCurrenciesMutation) Field added in v0.0.2

func (m *ProviderCurrenciesMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ProviderCurrenciesMutation) FieldCleared added in v0.0.2

func (m *ProviderCurrenciesMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ProviderCurrenciesMutation) Fields added in v0.0.2

func (m *ProviderCurrenciesMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ProviderCurrenciesMutation) ID added in v0.0.2

func (m *ProviderCurrenciesMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ProviderCurrenciesMutation) IDs added in v0.0.2

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*ProviderCurrenciesMutation) IsAvailable added in v0.0.2

func (m *ProviderCurrenciesMutation) IsAvailable() (r bool, exists bool)

IsAvailable returns the value of the "is_available" field in the mutation.

func (*ProviderCurrenciesMutation) OldAvailableBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) OldAvailableBalance(ctx context.Context) (v decimal.Decimal, err error)

OldAvailableBalance returns the old "available_balance" field's value of the ProviderCurrencies entity. If the ProviderCurrencies object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderCurrenciesMutation) OldField added in v0.0.2

func (m *ProviderCurrenciesMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ProviderCurrenciesMutation) OldIsAvailable added in v0.0.2

func (m *ProviderCurrenciesMutation) OldIsAvailable(ctx context.Context) (v bool, err error)

OldIsAvailable returns the old "is_available" field's value of the ProviderCurrencies entity. If the ProviderCurrencies object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderCurrenciesMutation) OldReservedBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) OldReservedBalance(ctx context.Context) (v decimal.Decimal, err error)

OldReservedBalance returns the old "reserved_balance" field's value of the ProviderCurrencies entity. If the ProviderCurrencies object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderCurrenciesMutation) OldTotalBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) OldTotalBalance(ctx context.Context) (v decimal.Decimal, err error)

OldTotalBalance returns the old "total_balance" field's value of the ProviderCurrencies entity. If the ProviderCurrencies object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderCurrenciesMutation) OldUpdatedAt added in v0.0.2

func (m *ProviderCurrenciesMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ProviderCurrencies entity. If the ProviderCurrencies object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderCurrenciesMutation) Op added in v0.0.2

Op returns the operation name.

func (*ProviderCurrenciesMutation) ProviderCleared added in v0.0.2

func (m *ProviderCurrenciesMutation) ProviderCleared() bool

ProviderCleared reports if the "provider" edge to the ProviderProfile entity was cleared.

func (*ProviderCurrenciesMutation) ProviderID added in v0.0.2

func (m *ProviderCurrenciesMutation) ProviderID() (id string, exists bool)

ProviderID returns the "provider" edge ID in the mutation.

func (*ProviderCurrenciesMutation) ProviderIDs added in v0.0.2

func (m *ProviderCurrenciesMutation) ProviderIDs() (ids []string)

ProviderIDs returns the "provider" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProviderID instead. It exists only for internal usage by the builders.

func (*ProviderCurrenciesMutation) RemovedEdges added in v0.0.2

func (m *ProviderCurrenciesMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ProviderCurrenciesMutation) RemovedIDs added in v0.0.2

func (m *ProviderCurrenciesMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ProviderCurrenciesMutation) ReservedBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) ReservedBalance() (r decimal.Decimal, exists bool)

ReservedBalance returns the value of the "reserved_balance" field in the mutation.

func (*ProviderCurrenciesMutation) ResetAvailableBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) ResetAvailableBalance()

ResetAvailableBalance resets all changes to the "available_balance" field.

func (*ProviderCurrenciesMutation) ResetCurrency added in v0.0.2

func (m *ProviderCurrenciesMutation) ResetCurrency()

ResetCurrency resets all changes to the "currency" edge.

func (*ProviderCurrenciesMutation) ResetEdge added in v0.0.2

func (m *ProviderCurrenciesMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ProviderCurrenciesMutation) ResetField added in v0.0.2

func (m *ProviderCurrenciesMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ProviderCurrenciesMutation) ResetIsAvailable added in v0.0.2

func (m *ProviderCurrenciesMutation) ResetIsAvailable()

ResetIsAvailable resets all changes to the "is_available" field.

func (*ProviderCurrenciesMutation) ResetProvider added in v0.0.2

func (m *ProviderCurrenciesMutation) ResetProvider()

ResetProvider resets all changes to the "provider" edge.

func (*ProviderCurrenciesMutation) ResetReservedBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) ResetReservedBalance()

ResetReservedBalance resets all changes to the "reserved_balance" field.

func (*ProviderCurrenciesMutation) ResetTotalBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) ResetTotalBalance()

ResetTotalBalance resets all changes to the "total_balance" field.

func (*ProviderCurrenciesMutation) ResetUpdatedAt added in v0.0.2

func (m *ProviderCurrenciesMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ProviderCurrenciesMutation) SetAvailableBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) SetAvailableBalance(d decimal.Decimal)

SetAvailableBalance sets the "available_balance" field.

func (*ProviderCurrenciesMutation) SetCurrencyID added in v0.0.2

func (m *ProviderCurrenciesMutation) SetCurrencyID(id uuid.UUID)

SetCurrencyID sets the "currency" edge to the FiatCurrency entity by id.

func (*ProviderCurrenciesMutation) SetField added in v0.0.2

func (m *ProviderCurrenciesMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ProviderCurrenciesMutation) SetID added in v0.0.2

func (m *ProviderCurrenciesMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of ProviderCurrencies entities.

func (*ProviderCurrenciesMutation) SetIsAvailable added in v0.0.2

func (m *ProviderCurrenciesMutation) SetIsAvailable(b bool)

SetIsAvailable sets the "is_available" field.

func (*ProviderCurrenciesMutation) SetOp added in v0.0.2

func (m *ProviderCurrenciesMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ProviderCurrenciesMutation) SetProviderID added in v0.0.2

func (m *ProviderCurrenciesMutation) SetProviderID(id string)

SetProviderID sets the "provider" edge to the ProviderProfile entity by id.

func (*ProviderCurrenciesMutation) SetReservedBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) SetReservedBalance(d decimal.Decimal)

SetReservedBalance sets the "reserved_balance" field.

func (*ProviderCurrenciesMutation) SetTotalBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) SetTotalBalance(d decimal.Decimal)

SetTotalBalance sets the "total_balance" field.

func (*ProviderCurrenciesMutation) SetUpdatedAt added in v0.0.2

func (m *ProviderCurrenciesMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*ProviderCurrenciesMutation) TotalBalance added in v0.0.2

func (m *ProviderCurrenciesMutation) TotalBalance() (r decimal.Decimal, exists bool)

TotalBalance returns the value of the "total_balance" field in the mutation.

func (ProviderCurrenciesMutation) Tx added in v0.0.2

func (m ProviderCurrenciesMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ProviderCurrenciesMutation) Type added in v0.0.2

Type returns the node type of this mutation (ProviderCurrencies).

func (*ProviderCurrenciesMutation) UpdatedAt added in v0.0.2

func (m *ProviderCurrenciesMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ProviderCurrenciesMutation) Where added in v0.0.2

Where appends a list predicates to the ProviderCurrenciesMutation builder.

func (*ProviderCurrenciesMutation) WhereP added in v0.0.2

func (m *ProviderCurrenciesMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ProviderCurrenciesMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ProviderCurrenciesQuery added in v0.0.2

type ProviderCurrenciesQuery struct {
	// contains filtered or unexported fields
}

ProviderCurrenciesQuery is the builder for querying ProviderCurrencies entities.

func (*ProviderCurrenciesQuery) Aggregate added in v0.0.2

Aggregate returns a ProviderCurrenciesSelect configured with the given aggregations.

func (*ProviderCurrenciesQuery) All added in v0.0.2

All executes the query and returns a list of ProviderCurrenciesSlice.

func (*ProviderCurrenciesQuery) AllX added in v0.0.2

AllX is like All, but panics if an error occurs.

func (*ProviderCurrenciesQuery) Clone added in v0.0.2

Clone returns a duplicate of the ProviderCurrenciesQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ProviderCurrenciesQuery) Count added in v0.0.2

func (pcq *ProviderCurrenciesQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ProviderCurrenciesQuery) CountX added in v0.0.2

func (pcq *ProviderCurrenciesQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ProviderCurrenciesQuery) Exist added in v0.0.2

func (pcq *ProviderCurrenciesQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ProviderCurrenciesQuery) ExistX added in v0.0.2

func (pcq *ProviderCurrenciesQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ProviderCurrenciesQuery) First added in v0.0.2

First returns the first ProviderCurrencies entity from the query. Returns a *NotFoundError when no ProviderCurrencies was found.

func (*ProviderCurrenciesQuery) FirstID added in v0.0.2

func (pcq *ProviderCurrenciesQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first ProviderCurrencies ID from the query. Returns a *NotFoundError when no ProviderCurrencies ID was found.

func (*ProviderCurrenciesQuery) FirstIDX added in v0.0.2

func (pcq *ProviderCurrenciesQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*ProviderCurrenciesQuery) FirstX added in v0.0.2

FirstX is like First, but panics if an error occurs.

func (*ProviderCurrenciesQuery) GroupBy added in v0.0.2

func (pcq *ProviderCurrenciesQuery) GroupBy(field string, fields ...string) *ProviderCurrenciesGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	AvailableBalance decimal.Decimal `json:"available_balance,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ProviderCurrencies.Query().
	GroupBy(providercurrencies.FieldAvailableBalance).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ProviderCurrenciesQuery) IDs added in v0.0.2

func (pcq *ProviderCurrenciesQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of ProviderCurrencies IDs.

func (*ProviderCurrenciesQuery) IDsX added in v0.0.2

func (pcq *ProviderCurrenciesQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*ProviderCurrenciesQuery) Limit added in v0.0.2

Limit the number of records to be returned by this query.

func (*ProviderCurrenciesQuery) Offset added in v0.0.2

Offset to start from.

func (*ProviderCurrenciesQuery) Only added in v0.0.2

Only returns a single ProviderCurrencies entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ProviderCurrencies entity is found. Returns a *NotFoundError when no ProviderCurrencies entities are found.

func (*ProviderCurrenciesQuery) OnlyID added in v0.0.2

func (pcq *ProviderCurrenciesQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only ProviderCurrencies ID in the query. Returns a *NotSingularError when more than one ProviderCurrencies ID is found. Returns a *NotFoundError when no entities are found.

func (*ProviderCurrenciesQuery) OnlyIDX added in v0.0.2

func (pcq *ProviderCurrenciesQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ProviderCurrenciesQuery) OnlyX added in v0.0.2

OnlyX is like Only, but panics if an error occurs.

func (*ProviderCurrenciesQuery) Order added in v0.0.2

Order specifies how the records should be ordered.

func (*ProviderCurrenciesQuery) QueryCurrency added in v0.0.2

func (pcq *ProviderCurrenciesQuery) QueryCurrency() *FiatCurrencyQuery

QueryCurrency chains the current query on the "currency" edge.

func (*ProviderCurrenciesQuery) QueryProvider added in v0.0.2

func (pcq *ProviderCurrenciesQuery) QueryProvider() *ProviderProfileQuery

QueryProvider chains the current query on the "provider" edge.

func (*ProviderCurrenciesQuery) Select added in v0.0.2

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	AvailableBalance decimal.Decimal `json:"available_balance,omitempty"`
}

client.ProviderCurrencies.Query().
	Select(providercurrencies.FieldAvailableBalance).
	Scan(ctx, &v)

func (*ProviderCurrenciesQuery) Unique added in v0.0.2

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ProviderCurrenciesQuery) Where added in v0.0.2

Where adds a new predicate for the ProviderCurrenciesQuery builder.

func (*ProviderCurrenciesQuery) WithCurrency added in v0.0.2

func (pcq *ProviderCurrenciesQuery) WithCurrency(opts ...func(*FiatCurrencyQuery)) *ProviderCurrenciesQuery

WithCurrency tells the query-builder to eager-load the nodes that are connected to the "currency" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProviderCurrenciesQuery) WithProvider added in v0.0.2

func (pcq *ProviderCurrenciesQuery) WithProvider(opts ...func(*ProviderProfileQuery)) *ProviderCurrenciesQuery

WithProvider tells the query-builder to eager-load the nodes that are connected to the "provider" edge. The optional arguments are used to configure the query builder of the edge.

type ProviderCurrenciesSelect added in v0.0.2

type ProviderCurrenciesSelect struct {
	*ProviderCurrenciesQuery
	// contains filtered or unexported fields
}

ProviderCurrenciesSelect is the builder for selecting fields of ProviderCurrencies entities.

func (*ProviderCurrenciesSelect) Aggregate added in v0.0.2

Aggregate adds the given aggregation functions to the selector query.

func (*ProviderCurrenciesSelect) Bool added in v0.0.2

func (s *ProviderCurrenciesSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesSelect) BoolX added in v0.0.2

func (s *ProviderCurrenciesSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ProviderCurrenciesSelect) Bools added in v0.0.2

func (s *ProviderCurrenciesSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesSelect) BoolsX added in v0.0.2

func (s *ProviderCurrenciesSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ProviderCurrenciesSelect) Float64 added in v0.0.2

func (s *ProviderCurrenciesSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesSelect) Float64X added in v0.0.2

func (s *ProviderCurrenciesSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ProviderCurrenciesSelect) Float64s added in v0.0.2

func (s *ProviderCurrenciesSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesSelect) Float64sX added in v0.0.2

func (s *ProviderCurrenciesSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ProviderCurrenciesSelect) Int added in v0.0.2

func (s *ProviderCurrenciesSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesSelect) IntX added in v0.0.2

func (s *ProviderCurrenciesSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ProviderCurrenciesSelect) Ints added in v0.0.2

func (s *ProviderCurrenciesSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesSelect) IntsX added in v0.0.2

func (s *ProviderCurrenciesSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ProviderCurrenciesSelect) Scan added in v0.0.2

func (pcs *ProviderCurrenciesSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ProviderCurrenciesSelect) ScanX added in v0.0.2

func (s *ProviderCurrenciesSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ProviderCurrenciesSelect) String added in v0.0.2

func (s *ProviderCurrenciesSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesSelect) StringX added in v0.0.2

func (s *ProviderCurrenciesSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ProviderCurrenciesSelect) Strings added in v0.0.2

func (s *ProviderCurrenciesSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ProviderCurrenciesSelect) StringsX added in v0.0.2

func (s *ProviderCurrenciesSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ProviderCurrenciesSlice added in v0.0.2

type ProviderCurrenciesSlice []*ProviderCurrencies

ProviderCurrenciesSlice is a parsable slice of ProviderCurrencies.

type ProviderCurrenciesUpdate added in v0.0.2

type ProviderCurrenciesUpdate struct {
	// contains filtered or unexported fields
}

ProviderCurrenciesUpdate is the builder for updating ProviderCurrencies entities.

func (*ProviderCurrenciesUpdate) AddAvailableBalance added in v0.0.2

AddAvailableBalance adds d to the "available_balance" field.

func (*ProviderCurrenciesUpdate) AddReservedBalance added in v0.0.2

AddReservedBalance adds d to the "reserved_balance" field.

func (*ProviderCurrenciesUpdate) AddTotalBalance added in v0.0.2

AddTotalBalance adds d to the "total_balance" field.

func (*ProviderCurrenciesUpdate) ClearCurrency added in v0.0.2

func (pcu *ProviderCurrenciesUpdate) ClearCurrency() *ProviderCurrenciesUpdate

ClearCurrency clears the "currency" edge to the FiatCurrency entity.

func (*ProviderCurrenciesUpdate) ClearProvider added in v0.0.2

func (pcu *ProviderCurrenciesUpdate) ClearProvider() *ProviderCurrenciesUpdate

ClearProvider clears the "provider" edge to the ProviderProfile entity.

func (*ProviderCurrenciesUpdate) Exec added in v0.0.2

Exec executes the query.

func (*ProviderCurrenciesUpdate) ExecX added in v0.0.2

func (pcu *ProviderCurrenciesUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderCurrenciesUpdate) Mutation added in v0.0.2

Mutation returns the ProviderCurrenciesMutation object of the builder.

func (*ProviderCurrenciesUpdate) Save added in v0.0.2

func (pcu *ProviderCurrenciesUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ProviderCurrenciesUpdate) SaveX added in v0.0.2

func (pcu *ProviderCurrenciesUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ProviderCurrenciesUpdate) SetAvailableBalance added in v0.0.2

SetAvailableBalance sets the "available_balance" field.

func (*ProviderCurrenciesUpdate) SetCurrency added in v0.0.2

SetCurrency sets the "currency" edge to the FiatCurrency entity.

func (*ProviderCurrenciesUpdate) SetCurrencyID added in v0.0.2

SetCurrencyID sets the "currency" edge to the FiatCurrency entity by ID.

func (*ProviderCurrenciesUpdate) SetIsAvailable added in v0.0.2

func (pcu *ProviderCurrenciesUpdate) SetIsAvailable(b bool) *ProviderCurrenciesUpdate

SetIsAvailable sets the "is_available" field.

func (*ProviderCurrenciesUpdate) SetNillableAvailableBalance added in v0.0.2

func (pcu *ProviderCurrenciesUpdate) SetNillableAvailableBalance(d *decimal.Decimal) *ProviderCurrenciesUpdate

SetNillableAvailableBalance sets the "available_balance" field if the given value is not nil.

func (*ProviderCurrenciesUpdate) SetNillableIsAvailable added in v0.0.2

func (pcu *ProviderCurrenciesUpdate) SetNillableIsAvailable(b *bool) *ProviderCurrenciesUpdate

SetNillableIsAvailable sets the "is_available" field if the given value is not nil.

func (*ProviderCurrenciesUpdate) SetNillableReservedBalance added in v0.0.2

func (pcu *ProviderCurrenciesUpdate) SetNillableReservedBalance(d *decimal.Decimal) *ProviderCurrenciesUpdate

SetNillableReservedBalance sets the "reserved_balance" field if the given value is not nil.

func (*ProviderCurrenciesUpdate) SetNillableTotalBalance added in v0.0.2

func (pcu *ProviderCurrenciesUpdate) SetNillableTotalBalance(d *decimal.Decimal) *ProviderCurrenciesUpdate

SetNillableTotalBalance sets the "total_balance" field if the given value is not nil.

func (*ProviderCurrenciesUpdate) SetProvider added in v0.0.2

SetProvider sets the "provider" edge to the ProviderProfile entity.

func (*ProviderCurrenciesUpdate) SetProviderID added in v0.0.2

SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.

func (*ProviderCurrenciesUpdate) SetReservedBalance added in v0.0.2

SetReservedBalance sets the "reserved_balance" field.

func (*ProviderCurrenciesUpdate) SetTotalBalance added in v0.0.2

SetTotalBalance sets the "total_balance" field.

func (*ProviderCurrenciesUpdate) SetUpdatedAt added in v0.0.2

SetUpdatedAt sets the "updated_at" field.

func (*ProviderCurrenciesUpdate) Where added in v0.0.2

Where appends a list predicates to the ProviderCurrenciesUpdate builder.

type ProviderCurrenciesUpdateOne added in v0.0.2

type ProviderCurrenciesUpdateOne struct {
	// contains filtered or unexported fields
}

ProviderCurrenciesUpdateOne is the builder for updating a single ProviderCurrencies entity.

func (*ProviderCurrenciesUpdateOne) AddAvailableBalance added in v0.0.2

AddAvailableBalance adds d to the "available_balance" field.

func (*ProviderCurrenciesUpdateOne) AddReservedBalance added in v0.0.2

AddReservedBalance adds d to the "reserved_balance" field.

func (*ProviderCurrenciesUpdateOne) AddTotalBalance added in v0.0.2

AddTotalBalance adds d to the "total_balance" field.

func (*ProviderCurrenciesUpdateOne) ClearCurrency added in v0.0.2

ClearCurrency clears the "currency" edge to the FiatCurrency entity.

func (*ProviderCurrenciesUpdateOne) ClearProvider added in v0.0.2

ClearProvider clears the "provider" edge to the ProviderProfile entity.

func (*ProviderCurrenciesUpdateOne) Exec added in v0.0.2

Exec executes the query on the entity.

func (*ProviderCurrenciesUpdateOne) ExecX added in v0.0.2

func (pcuo *ProviderCurrenciesUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderCurrenciesUpdateOne) Mutation added in v0.0.2

Mutation returns the ProviderCurrenciesMutation object of the builder.

func (*ProviderCurrenciesUpdateOne) Save added in v0.0.2

Save executes the query and returns the updated ProviderCurrencies entity.

func (*ProviderCurrenciesUpdateOne) SaveX added in v0.0.2

SaveX is like Save, but panics if an error occurs.

func (*ProviderCurrenciesUpdateOne) Select added in v0.0.2

func (pcuo *ProviderCurrenciesUpdateOne) Select(field string, fields ...string) *ProviderCurrenciesUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ProviderCurrenciesUpdateOne) SetAvailableBalance added in v0.0.2

SetAvailableBalance sets the "available_balance" field.

func (*ProviderCurrenciesUpdateOne) SetCurrency added in v0.0.2

SetCurrency sets the "currency" edge to the FiatCurrency entity.

func (*ProviderCurrenciesUpdateOne) SetCurrencyID added in v0.0.2

SetCurrencyID sets the "currency" edge to the FiatCurrency entity by ID.

func (*ProviderCurrenciesUpdateOne) SetIsAvailable added in v0.0.2

SetIsAvailable sets the "is_available" field.

func (*ProviderCurrenciesUpdateOne) SetNillableAvailableBalance added in v0.0.2

func (pcuo *ProviderCurrenciesUpdateOne) SetNillableAvailableBalance(d *decimal.Decimal) *ProviderCurrenciesUpdateOne

SetNillableAvailableBalance sets the "available_balance" field if the given value is not nil.

func (*ProviderCurrenciesUpdateOne) SetNillableIsAvailable added in v0.0.2

func (pcuo *ProviderCurrenciesUpdateOne) SetNillableIsAvailable(b *bool) *ProviderCurrenciesUpdateOne

SetNillableIsAvailable sets the "is_available" field if the given value is not nil.

func (*ProviderCurrenciesUpdateOne) SetNillableReservedBalance added in v0.0.2

func (pcuo *ProviderCurrenciesUpdateOne) SetNillableReservedBalance(d *decimal.Decimal) *ProviderCurrenciesUpdateOne

SetNillableReservedBalance sets the "reserved_balance" field if the given value is not nil.

func (*ProviderCurrenciesUpdateOne) SetNillableTotalBalance added in v0.0.2

func (pcuo *ProviderCurrenciesUpdateOne) SetNillableTotalBalance(d *decimal.Decimal) *ProviderCurrenciesUpdateOne

SetNillableTotalBalance sets the "total_balance" field if the given value is not nil.

func (*ProviderCurrenciesUpdateOne) SetProvider added in v0.0.2

SetProvider sets the "provider" edge to the ProviderProfile entity.

func (*ProviderCurrenciesUpdateOne) SetProviderID added in v0.0.2

SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.

func (*ProviderCurrenciesUpdateOne) SetReservedBalance added in v0.0.2

SetReservedBalance sets the "reserved_balance" field.

func (*ProviderCurrenciesUpdateOne) SetTotalBalance added in v0.0.2

SetTotalBalance sets the "total_balance" field.

func (*ProviderCurrenciesUpdateOne) SetUpdatedAt added in v0.0.2

SetUpdatedAt sets the "updated_at" field.

func (*ProviderCurrenciesUpdateOne) Where added in v0.0.2

Where appends a list predicates to the ProviderCurrenciesUpdate builder.

type ProviderCurrenciesUpsert added in v0.0.2

type ProviderCurrenciesUpsert struct {
	*sql.UpdateSet
}

ProviderCurrenciesUpsert is the "OnConflict" setter.

func (*ProviderCurrenciesUpsert) AddAvailableBalance added in v0.0.2

AddAvailableBalance adds v to the "available_balance" field.

func (*ProviderCurrenciesUpsert) AddReservedBalance added in v0.0.2

AddReservedBalance adds v to the "reserved_balance" field.

func (*ProviderCurrenciesUpsert) AddTotalBalance added in v0.0.2

AddTotalBalance adds v to the "total_balance" field.

func (*ProviderCurrenciesUpsert) SetAvailableBalance added in v0.0.2

SetAvailableBalance sets the "available_balance" field.

func (*ProviderCurrenciesUpsert) SetIsAvailable added in v0.0.2

SetIsAvailable sets the "is_available" field.

func (*ProviderCurrenciesUpsert) SetReservedBalance added in v0.0.2

SetReservedBalance sets the "reserved_balance" field.

func (*ProviderCurrenciesUpsert) SetTotalBalance added in v0.0.2

SetTotalBalance sets the "total_balance" field.

func (*ProviderCurrenciesUpsert) SetUpdatedAt added in v0.0.2

SetUpdatedAt sets the "updated_at" field.

func (*ProviderCurrenciesUpsert) UpdateAvailableBalance added in v0.0.2

func (u *ProviderCurrenciesUpsert) UpdateAvailableBalance() *ProviderCurrenciesUpsert

UpdateAvailableBalance sets the "available_balance" field to the value that was provided on create.

func (*ProviderCurrenciesUpsert) UpdateIsAvailable added in v0.0.2

func (u *ProviderCurrenciesUpsert) UpdateIsAvailable() *ProviderCurrenciesUpsert

UpdateIsAvailable sets the "is_available" field to the value that was provided on create.

func (*ProviderCurrenciesUpsert) UpdateReservedBalance added in v0.0.2

func (u *ProviderCurrenciesUpsert) UpdateReservedBalance() *ProviderCurrenciesUpsert

UpdateReservedBalance sets the "reserved_balance" field to the value that was provided on create.

func (*ProviderCurrenciesUpsert) UpdateTotalBalance added in v0.0.2

func (u *ProviderCurrenciesUpsert) UpdateTotalBalance() *ProviderCurrenciesUpsert

UpdateTotalBalance sets the "total_balance" field to the value that was provided on create.

func (*ProviderCurrenciesUpsert) UpdateUpdatedAt added in v0.0.2

func (u *ProviderCurrenciesUpsert) UpdateUpdatedAt() *ProviderCurrenciesUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type ProviderCurrenciesUpsertBulk added in v0.0.2

type ProviderCurrenciesUpsertBulk struct {
	// contains filtered or unexported fields
}

ProviderCurrenciesUpsertBulk is the builder for "upsert"-ing a bulk of ProviderCurrencies nodes.

func (*ProviderCurrenciesUpsertBulk) AddAvailableBalance added in v0.0.2

AddAvailableBalance adds v to the "available_balance" field.

func (*ProviderCurrenciesUpsertBulk) AddReservedBalance added in v0.0.2

AddReservedBalance adds v to the "reserved_balance" field.

func (*ProviderCurrenciesUpsertBulk) AddTotalBalance added in v0.0.2

AddTotalBalance adds v to the "total_balance" field.

func (*ProviderCurrenciesUpsertBulk) DoNothing added in v0.0.2

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*ProviderCurrenciesUpsertBulk) Exec added in v0.0.2

Exec executes the query.

func (*ProviderCurrenciesUpsertBulk) ExecX added in v0.0.2

ExecX is like Exec, but panics if an error occurs.

func (*ProviderCurrenciesUpsertBulk) Ignore added in v0.0.2

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.ProviderCurrencies.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*ProviderCurrenciesUpsertBulk) SetAvailableBalance added in v0.0.2

SetAvailableBalance sets the "available_balance" field.

func (*ProviderCurrenciesUpsertBulk) SetIsAvailable added in v0.0.2

SetIsAvailable sets the "is_available" field.

func (*ProviderCurrenciesUpsertBulk) SetReservedBalance added in v0.0.2

SetReservedBalance sets the "reserved_balance" field.

func (*ProviderCurrenciesUpsertBulk) SetTotalBalance added in v0.0.2

SetTotalBalance sets the "total_balance" field.

func (*ProviderCurrenciesUpsertBulk) SetUpdatedAt added in v0.0.2

SetUpdatedAt sets the "updated_at" field.

func (*ProviderCurrenciesUpsertBulk) Update added in v0.0.2

Update allows overriding fields `UPDATE` values. See the ProviderCurrenciesCreateBulk.OnConflict documentation for more info.

func (*ProviderCurrenciesUpsertBulk) UpdateAvailableBalance added in v0.0.2

func (u *ProviderCurrenciesUpsertBulk) UpdateAvailableBalance() *ProviderCurrenciesUpsertBulk

UpdateAvailableBalance sets the "available_balance" field to the value that was provided on create.

func (*ProviderCurrenciesUpsertBulk) UpdateIsAvailable added in v0.0.2

UpdateIsAvailable sets the "is_available" field to the value that was provided on create.

func (*ProviderCurrenciesUpsertBulk) UpdateNewValues added in v0.0.2

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.ProviderCurrencies.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(providercurrencies.FieldID)
		}),
	).
	Exec(ctx)

func (*ProviderCurrenciesUpsertBulk) UpdateReservedBalance added in v0.0.2

func (u *ProviderCurrenciesUpsertBulk) UpdateReservedBalance() *ProviderCurrenciesUpsertBulk

UpdateReservedBalance sets the "reserved_balance" field to the value that was provided on create.

func (*ProviderCurrenciesUpsertBulk) UpdateTotalBalance added in v0.0.2

UpdateTotalBalance sets the "total_balance" field to the value that was provided on create.

func (*ProviderCurrenciesUpsertBulk) UpdateUpdatedAt added in v0.0.2

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type ProviderCurrenciesUpsertOne added in v0.0.2

type ProviderCurrenciesUpsertOne struct {
	// contains filtered or unexported fields
}

ProviderCurrenciesUpsertOne is the builder for "upsert"-ing

one ProviderCurrencies node.

func (*ProviderCurrenciesUpsertOne) AddAvailableBalance added in v0.0.2

AddAvailableBalance adds v to the "available_balance" field.

func (*ProviderCurrenciesUpsertOne) AddReservedBalance added in v0.0.2

AddReservedBalance adds v to the "reserved_balance" field.

func (*ProviderCurrenciesUpsertOne) AddTotalBalance added in v0.0.2

AddTotalBalance adds v to the "total_balance" field.

func (*ProviderCurrenciesUpsertOne) DoNothing added in v0.0.2

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*ProviderCurrenciesUpsertOne) Exec added in v0.0.2

Exec executes the query.

func (*ProviderCurrenciesUpsertOne) ExecX added in v0.0.2

ExecX is like Exec, but panics if an error occurs.

func (*ProviderCurrenciesUpsertOne) ID added in v0.0.2

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*ProviderCurrenciesUpsertOne) IDX added in v0.0.2

IDX is like ID, but panics if an error occurs.

func (*ProviderCurrenciesUpsertOne) Ignore added in v0.0.2

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.ProviderCurrencies.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*ProviderCurrenciesUpsertOne) SetAvailableBalance added in v0.0.2

SetAvailableBalance sets the "available_balance" field.

func (*ProviderCurrenciesUpsertOne) SetIsAvailable added in v0.0.2

SetIsAvailable sets the "is_available" field.

func (*ProviderCurrenciesUpsertOne) SetReservedBalance added in v0.0.2

SetReservedBalance sets the "reserved_balance" field.

func (*ProviderCurrenciesUpsertOne) SetTotalBalance added in v0.0.2

SetTotalBalance sets the "total_balance" field.

func (*ProviderCurrenciesUpsertOne) SetUpdatedAt added in v0.0.2

SetUpdatedAt sets the "updated_at" field.

func (*ProviderCurrenciesUpsertOne) Update added in v0.0.2

Update allows overriding fields `UPDATE` values. See the ProviderCurrenciesCreate.OnConflict documentation for more info.

func (*ProviderCurrenciesUpsertOne) UpdateAvailableBalance added in v0.0.2

func (u *ProviderCurrenciesUpsertOne) UpdateAvailableBalance() *ProviderCurrenciesUpsertOne

UpdateAvailableBalance sets the "available_balance" field to the value that was provided on create.

func (*ProviderCurrenciesUpsertOne) UpdateIsAvailable added in v0.0.2

UpdateIsAvailable sets the "is_available" field to the value that was provided on create.

func (*ProviderCurrenciesUpsertOne) UpdateNewValues added in v0.0.2

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.ProviderCurrencies.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(providercurrencies.FieldID)
		}),
	).
	Exec(ctx)

func (*ProviderCurrenciesUpsertOne) UpdateReservedBalance added in v0.0.2

func (u *ProviderCurrenciesUpsertOne) UpdateReservedBalance() *ProviderCurrenciesUpsertOne

UpdateReservedBalance sets the "reserved_balance" field to the value that was provided on create.

func (*ProviderCurrenciesUpsertOne) UpdateTotalBalance added in v0.0.2

UpdateTotalBalance sets the "total_balance" field to the value that was provided on create.

func (*ProviderCurrenciesUpsertOne) UpdateUpdatedAt added in v0.0.2

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type ProviderOrderToken

type ProviderOrderToken struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// FixedConversionRate holds the value of the "fixed_conversion_rate" field.
	FixedConversionRate decimal.Decimal `json:"fixed_conversion_rate,omitempty"`
	// FloatingConversionRate holds the value of the "floating_conversion_rate" field.
	FloatingConversionRate decimal.Decimal `json:"floating_conversion_rate,omitempty"`
	// ConversionRateType holds the value of the "conversion_rate_type" field.
	ConversionRateType providerordertoken.ConversionRateType `json:"conversion_rate_type,omitempty"`
	// MaxOrderAmount holds the value of the "max_order_amount" field.
	MaxOrderAmount decimal.Decimal `json:"max_order_amount,omitempty"`
	// MinOrderAmount holds the value of the "min_order_amount" field.
	MinOrderAmount decimal.Decimal `json:"min_order_amount,omitempty"`
	// RateSlippage holds the value of the "rate_slippage" field.
	RateSlippage decimal.Decimal `json:"rate_slippage,omitempty"`
	// Address holds the value of the "address" field.
	Address string `json:"address,omitempty"`
	// Network holds the value of the "network" field.
	Network string `json:"network,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ProviderOrderTokenQuery when eager-loading is set.
	Edges ProviderOrderTokenEdges `json:"edges"`
	// contains filtered or unexported fields
}

ProviderOrderToken is the model entity for the ProviderOrderToken schema.

func (*ProviderOrderToken) QueryCurrency

func (pot *ProviderOrderToken) QueryCurrency() *FiatCurrencyQuery

QueryCurrency queries the "currency" edge of the ProviderOrderToken entity.

func (*ProviderOrderToken) QueryProvider

func (pot *ProviderOrderToken) QueryProvider() *ProviderProfileQuery

QueryProvider queries the "provider" edge of the ProviderOrderToken entity.

func (*ProviderOrderToken) QueryToken

func (pot *ProviderOrderToken) QueryToken() *TokenQuery

QueryToken queries the "token" edge of the ProviderOrderToken entity.

func (*ProviderOrderToken) String

func (pot *ProviderOrderToken) String() string

String implements the fmt.Stringer.

func (*ProviderOrderToken) Unwrap

func (pot *ProviderOrderToken) Unwrap() *ProviderOrderToken

Unwrap unwraps the ProviderOrderToken entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ProviderOrderToken) Update

Update returns a builder for updating this ProviderOrderToken. Note that you need to call ProviderOrderToken.Unwrap() before calling this method if this ProviderOrderToken was returned from a transaction, and the transaction was committed or rolled back.

func (*ProviderOrderToken) Value

func (pot *ProviderOrderToken) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ProviderOrderToken. This includes values selected through modifiers, order, etc.

type ProviderOrderTokenClient

type ProviderOrderTokenClient struct {
	// contains filtered or unexported fields
}

ProviderOrderTokenClient is a client for the ProviderOrderToken schema.

func NewProviderOrderTokenClient

func NewProviderOrderTokenClient(c config) *ProviderOrderTokenClient

NewProviderOrderTokenClient returns a client for the ProviderOrderToken from the given config.

func (*ProviderOrderTokenClient) Create

Create returns a builder for creating a ProviderOrderToken entity.

func (*ProviderOrderTokenClient) CreateBulk

CreateBulk returns a builder for creating a bulk of ProviderOrderToken entities.

func (*ProviderOrderTokenClient) Delete

Delete returns a delete builder for ProviderOrderToken.

func (*ProviderOrderTokenClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*ProviderOrderTokenClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ProviderOrderTokenClient) Get

Get returns a ProviderOrderToken entity by its id.

func (*ProviderOrderTokenClient) GetX

GetX is like Get, but panics if an error occurs.

func (*ProviderOrderTokenClient) Hooks

func (c *ProviderOrderTokenClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ProviderOrderTokenClient) Intercept

func (c *ProviderOrderTokenClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `providerordertoken.Intercept(f(g(h())))`.

func (*ProviderOrderTokenClient) Interceptors

func (c *ProviderOrderTokenClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ProviderOrderTokenClient) MapCreateBulk

func (c *ProviderOrderTokenClient) MapCreateBulk(slice any, setFunc func(*ProviderOrderTokenCreate, int)) *ProviderOrderTokenCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ProviderOrderTokenClient) Query

Query returns a query builder for ProviderOrderToken.

func (*ProviderOrderTokenClient) QueryCurrency

QueryCurrency queries the currency edge of a ProviderOrderToken.

func (*ProviderOrderTokenClient) QueryProvider

QueryProvider queries the provider edge of a ProviderOrderToken.

func (*ProviderOrderTokenClient) QueryToken

QueryToken queries the token edge of a ProviderOrderToken.

func (*ProviderOrderTokenClient) Update

Update returns an update builder for ProviderOrderToken.

func (*ProviderOrderTokenClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*ProviderOrderTokenClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*ProviderOrderTokenClient) Use

func (c *ProviderOrderTokenClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `providerordertoken.Hooks(f(g(h())))`.

type ProviderOrderTokenCreate

type ProviderOrderTokenCreate struct {
	// contains filtered or unexported fields
}

ProviderOrderTokenCreate is the builder for creating a ProviderOrderToken entity.

func (*ProviderOrderTokenCreate) Exec

Exec executes the query.

func (*ProviderOrderTokenCreate) ExecX

func (potc *ProviderOrderTokenCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderOrderTokenCreate) Mutation

Mutation returns the ProviderOrderTokenMutation object of the builder.

func (*ProviderOrderTokenCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.ProviderOrderToken.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.ProviderOrderTokenUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*ProviderOrderTokenCreate) OnConflictColumns

func (potc *ProviderOrderTokenCreate) OnConflictColumns(columns ...string) *ProviderOrderTokenUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.ProviderOrderToken.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*ProviderOrderTokenCreate) Save

Save creates the ProviderOrderToken in the database.

func (*ProviderOrderTokenCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*ProviderOrderTokenCreate) SetAddress

SetAddress sets the "address" field.

func (*ProviderOrderTokenCreate) SetConversionRateType

SetConversionRateType sets the "conversion_rate_type" field.

func (*ProviderOrderTokenCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*ProviderOrderTokenCreate) SetCurrency

SetCurrency sets the "currency" edge to the FiatCurrency entity.

func (*ProviderOrderTokenCreate) SetCurrencyID

SetCurrencyID sets the "currency" edge to the FiatCurrency entity by ID.

func (*ProviderOrderTokenCreate) SetFixedConversionRate

func (potc *ProviderOrderTokenCreate) SetFixedConversionRate(d decimal.Decimal) *ProviderOrderTokenCreate

SetFixedConversionRate sets the "fixed_conversion_rate" field.

func (*ProviderOrderTokenCreate) SetFloatingConversionRate

func (potc *ProviderOrderTokenCreate) SetFloatingConversionRate(d decimal.Decimal) *ProviderOrderTokenCreate

SetFloatingConversionRate sets the "floating_conversion_rate" field.

func (*ProviderOrderTokenCreate) SetMaxOrderAmount

SetMaxOrderAmount sets the "max_order_amount" field.

func (*ProviderOrderTokenCreate) SetMinOrderAmount

SetMinOrderAmount sets the "min_order_amount" field.

func (*ProviderOrderTokenCreate) SetNetwork

SetNetwork sets the "network" field.

func (*ProviderOrderTokenCreate) SetNillableAddress

func (potc *ProviderOrderTokenCreate) SetNillableAddress(s *string) *ProviderOrderTokenCreate

SetNillableAddress sets the "address" field if the given value is not nil.

func (*ProviderOrderTokenCreate) SetNillableCreatedAt

func (potc *ProviderOrderTokenCreate) SetNillableCreatedAt(t *time.Time) *ProviderOrderTokenCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ProviderOrderTokenCreate) SetNillableNetwork

func (potc *ProviderOrderTokenCreate) SetNillableNetwork(s *string) *ProviderOrderTokenCreate

SetNillableNetwork sets the "network" field if the given value is not nil.

func (*ProviderOrderTokenCreate) SetNillableUpdatedAt

func (potc *ProviderOrderTokenCreate) SetNillableUpdatedAt(t *time.Time) *ProviderOrderTokenCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ProviderOrderTokenCreate) SetProvider

SetProvider sets the "provider" edge to the ProviderProfile entity.

func (*ProviderOrderTokenCreate) SetProviderID

func (potc *ProviderOrderTokenCreate) SetProviderID(id string) *ProviderOrderTokenCreate

SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.

func (*ProviderOrderTokenCreate) SetRateSlippage

SetRateSlippage sets the "rate_slippage" field.

func (*ProviderOrderTokenCreate) SetToken

SetToken sets the "token" edge to the Token entity.

func (*ProviderOrderTokenCreate) SetTokenID

SetTokenID sets the "token" edge to the Token entity by ID.

func (*ProviderOrderTokenCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

type ProviderOrderTokenCreateBulk

type ProviderOrderTokenCreateBulk struct {
	// contains filtered or unexported fields
}

ProviderOrderTokenCreateBulk is the builder for creating many ProviderOrderToken entities in bulk.

func (*ProviderOrderTokenCreateBulk) Exec

Exec executes the query.

func (*ProviderOrderTokenCreateBulk) ExecX

func (potcb *ProviderOrderTokenCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderOrderTokenCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.ProviderOrderToken.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.ProviderOrderTokenUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*ProviderOrderTokenCreateBulk) OnConflictColumns

func (potcb *ProviderOrderTokenCreateBulk) OnConflictColumns(columns ...string) *ProviderOrderTokenUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.ProviderOrderToken.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*ProviderOrderTokenCreateBulk) Save

Save creates the ProviderOrderToken entities in the database.

func (*ProviderOrderTokenCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type ProviderOrderTokenDelete

type ProviderOrderTokenDelete struct {
	// contains filtered or unexported fields
}

ProviderOrderTokenDelete is the builder for deleting a ProviderOrderToken entity.

func (*ProviderOrderTokenDelete) Exec

func (potd *ProviderOrderTokenDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ProviderOrderTokenDelete) ExecX

func (potd *ProviderOrderTokenDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ProviderOrderTokenDelete) Where

Where appends a list predicates to the ProviderOrderTokenDelete builder.

type ProviderOrderTokenDeleteOne

type ProviderOrderTokenDeleteOne struct {
	// contains filtered or unexported fields
}

ProviderOrderTokenDeleteOne is the builder for deleting a single ProviderOrderToken entity.

func (*ProviderOrderTokenDeleteOne) Exec

Exec executes the deletion query.

func (*ProviderOrderTokenDeleteOne) ExecX

func (potdo *ProviderOrderTokenDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderOrderTokenDeleteOne) Where

Where appends a list predicates to the ProviderOrderTokenDelete builder.

type ProviderOrderTokenEdges

type ProviderOrderTokenEdges struct {
	// Provider holds the value of the provider edge.
	Provider *ProviderProfile `json:"provider,omitempty"`
	// Token holds the value of the token edge.
	Token *Token `json:"token,omitempty"`
	// Currency holds the value of the currency edge.
	Currency *FiatCurrency `json:"currency,omitempty"`
	// contains filtered or unexported fields
}

ProviderOrderTokenEdges holds the relations/edges for other nodes in the graph.

func (ProviderOrderTokenEdges) CurrencyOrErr

func (e ProviderOrderTokenEdges) CurrencyOrErr() (*FiatCurrency, error)

CurrencyOrErr returns the Currency value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ProviderOrderTokenEdges) ProviderOrErr

func (e ProviderOrderTokenEdges) ProviderOrErr() (*ProviderProfile, error)

ProviderOrErr returns the Provider value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ProviderOrderTokenEdges) TokenOrErr

func (e ProviderOrderTokenEdges) TokenOrErr() (*Token, error)

TokenOrErr returns the Token value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ProviderOrderTokenGroupBy

type ProviderOrderTokenGroupBy struct {
	// contains filtered or unexported fields
}

ProviderOrderTokenGroupBy is the group-by builder for ProviderOrderToken entities.

func (*ProviderOrderTokenGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*ProviderOrderTokenGroupBy) Bool

func (s *ProviderOrderTokenGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenGroupBy) BoolX

func (s *ProviderOrderTokenGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ProviderOrderTokenGroupBy) Bools

func (s *ProviderOrderTokenGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenGroupBy) BoolsX

func (s *ProviderOrderTokenGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ProviderOrderTokenGroupBy) Float64

func (s *ProviderOrderTokenGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenGroupBy) Float64X

func (s *ProviderOrderTokenGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ProviderOrderTokenGroupBy) Float64s

func (s *ProviderOrderTokenGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenGroupBy) Float64sX

func (s *ProviderOrderTokenGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ProviderOrderTokenGroupBy) Int

func (s *ProviderOrderTokenGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenGroupBy) IntX

func (s *ProviderOrderTokenGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ProviderOrderTokenGroupBy) Ints

func (s *ProviderOrderTokenGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenGroupBy) IntsX

func (s *ProviderOrderTokenGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ProviderOrderTokenGroupBy) Scan

func (potgb *ProviderOrderTokenGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ProviderOrderTokenGroupBy) ScanX

func (s *ProviderOrderTokenGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ProviderOrderTokenGroupBy) String

func (s *ProviderOrderTokenGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenGroupBy) StringX

func (s *ProviderOrderTokenGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ProviderOrderTokenGroupBy) Strings

func (s *ProviderOrderTokenGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenGroupBy) StringsX

func (s *ProviderOrderTokenGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ProviderOrderTokenMutation

type ProviderOrderTokenMutation struct {
	// contains filtered or unexported fields
}

ProviderOrderTokenMutation represents an operation that mutates the ProviderOrderToken nodes in the graph.

func (*ProviderOrderTokenMutation) AddField

func (m *ProviderOrderTokenMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ProviderOrderTokenMutation) AddFixedConversionRate

func (m *ProviderOrderTokenMutation) AddFixedConversionRate(d decimal.Decimal)

AddFixedConversionRate adds d to the "fixed_conversion_rate" field.

func (*ProviderOrderTokenMutation) AddFloatingConversionRate

func (m *ProviderOrderTokenMutation) AddFloatingConversionRate(d decimal.Decimal)

AddFloatingConversionRate adds d to the "floating_conversion_rate" field.

func (*ProviderOrderTokenMutation) AddMaxOrderAmount

func (m *ProviderOrderTokenMutation) AddMaxOrderAmount(d decimal.Decimal)

AddMaxOrderAmount adds d to the "max_order_amount" field.

func (*ProviderOrderTokenMutation) AddMinOrderAmount

func (m *ProviderOrderTokenMutation) AddMinOrderAmount(d decimal.Decimal)

AddMinOrderAmount adds d to the "min_order_amount" field.

func (*ProviderOrderTokenMutation) AddRateSlippage

func (m *ProviderOrderTokenMutation) AddRateSlippage(d decimal.Decimal)

AddRateSlippage adds d to the "rate_slippage" field.

func (*ProviderOrderTokenMutation) AddedEdges

func (m *ProviderOrderTokenMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ProviderOrderTokenMutation) AddedField

func (m *ProviderOrderTokenMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ProviderOrderTokenMutation) AddedFields

func (m *ProviderOrderTokenMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ProviderOrderTokenMutation) AddedFixedConversionRate

func (m *ProviderOrderTokenMutation) AddedFixedConversionRate() (r decimal.Decimal, exists bool)

AddedFixedConversionRate returns the value that was added to the "fixed_conversion_rate" field in this mutation.

func (*ProviderOrderTokenMutation) AddedFloatingConversionRate

func (m *ProviderOrderTokenMutation) AddedFloatingConversionRate() (r decimal.Decimal, exists bool)

AddedFloatingConversionRate returns the value that was added to the "floating_conversion_rate" field in this mutation.

func (*ProviderOrderTokenMutation) AddedIDs

func (m *ProviderOrderTokenMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ProviderOrderTokenMutation) AddedMaxOrderAmount

func (m *ProviderOrderTokenMutation) AddedMaxOrderAmount() (r decimal.Decimal, exists bool)

AddedMaxOrderAmount returns the value that was added to the "max_order_amount" field in this mutation.

func (*ProviderOrderTokenMutation) AddedMinOrderAmount

func (m *ProviderOrderTokenMutation) AddedMinOrderAmount() (r decimal.Decimal, exists bool)

AddedMinOrderAmount returns the value that was added to the "min_order_amount" field in this mutation.

func (*ProviderOrderTokenMutation) AddedRateSlippage

func (m *ProviderOrderTokenMutation) AddedRateSlippage() (r decimal.Decimal, exists bool)

AddedRateSlippage returns the value that was added to the "rate_slippage" field in this mutation.

func (*ProviderOrderTokenMutation) Address

func (m *ProviderOrderTokenMutation) Address() (r string, exists bool)

Address returns the value of the "address" field in the mutation.

func (*ProviderOrderTokenMutation) AddressCleared

func (m *ProviderOrderTokenMutation) AddressCleared() bool

AddressCleared returns if the "address" field was cleared in this mutation.

func (*ProviderOrderTokenMutation) ClearAddress

func (m *ProviderOrderTokenMutation) ClearAddress()

ClearAddress clears the value of the "address" field.

func (*ProviderOrderTokenMutation) ClearCurrency

func (m *ProviderOrderTokenMutation) ClearCurrency()

ClearCurrency clears the "currency" edge to the FiatCurrency entity.

func (*ProviderOrderTokenMutation) ClearEdge

func (m *ProviderOrderTokenMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ProviderOrderTokenMutation) ClearField

func (m *ProviderOrderTokenMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ProviderOrderTokenMutation) ClearNetwork

func (m *ProviderOrderTokenMutation) ClearNetwork()

ClearNetwork clears the value of the "network" field.

func (*ProviderOrderTokenMutation) ClearProvider

func (m *ProviderOrderTokenMutation) ClearProvider()

ClearProvider clears the "provider" edge to the ProviderProfile entity.

func (*ProviderOrderTokenMutation) ClearToken

func (m *ProviderOrderTokenMutation) ClearToken()

ClearToken clears the "token" edge to the Token entity.

func (*ProviderOrderTokenMutation) ClearedEdges

func (m *ProviderOrderTokenMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ProviderOrderTokenMutation) ClearedFields

func (m *ProviderOrderTokenMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ProviderOrderTokenMutation) Client

func (m ProviderOrderTokenMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ProviderOrderTokenMutation) ConversionRateType

func (m *ProviderOrderTokenMutation) ConversionRateType() (r providerordertoken.ConversionRateType, exists bool)

ConversionRateType returns the value of the "conversion_rate_type" field in the mutation.

func (*ProviderOrderTokenMutation) CreatedAt

func (m *ProviderOrderTokenMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ProviderOrderTokenMutation) CurrencyCleared

func (m *ProviderOrderTokenMutation) CurrencyCleared() bool

CurrencyCleared reports if the "currency" edge to the FiatCurrency entity was cleared.

func (*ProviderOrderTokenMutation) CurrencyID

func (m *ProviderOrderTokenMutation) CurrencyID() (id uuid.UUID, exists bool)

CurrencyID returns the "currency" edge ID in the mutation.

func (*ProviderOrderTokenMutation) CurrencyIDs

func (m *ProviderOrderTokenMutation) CurrencyIDs() (ids []uuid.UUID)

CurrencyIDs returns the "currency" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CurrencyID instead. It exists only for internal usage by the builders.

func (*ProviderOrderTokenMutation) EdgeCleared

func (m *ProviderOrderTokenMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ProviderOrderTokenMutation) Field

func (m *ProviderOrderTokenMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ProviderOrderTokenMutation) FieldCleared

func (m *ProviderOrderTokenMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ProviderOrderTokenMutation) Fields

func (m *ProviderOrderTokenMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ProviderOrderTokenMutation) FixedConversionRate

func (m *ProviderOrderTokenMutation) FixedConversionRate() (r decimal.Decimal, exists bool)

FixedConversionRate returns the value of the "fixed_conversion_rate" field in the mutation.

func (*ProviderOrderTokenMutation) FloatingConversionRate

func (m *ProviderOrderTokenMutation) FloatingConversionRate() (r decimal.Decimal, exists bool)

FloatingConversionRate returns the value of the "floating_conversion_rate" field in the mutation.

func (*ProviderOrderTokenMutation) ID

func (m *ProviderOrderTokenMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ProviderOrderTokenMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*ProviderOrderTokenMutation) MaxOrderAmount

func (m *ProviderOrderTokenMutation) MaxOrderAmount() (r decimal.Decimal, exists bool)

MaxOrderAmount returns the value of the "max_order_amount" field in the mutation.

func (*ProviderOrderTokenMutation) MinOrderAmount

func (m *ProviderOrderTokenMutation) MinOrderAmount() (r decimal.Decimal, exists bool)

MinOrderAmount returns the value of the "min_order_amount" field in the mutation.

func (*ProviderOrderTokenMutation) Network

func (m *ProviderOrderTokenMutation) Network() (r string, exists bool)

Network returns the value of the "network" field in the mutation.

func (*ProviderOrderTokenMutation) NetworkCleared

func (m *ProviderOrderTokenMutation) NetworkCleared() bool

NetworkCleared returns if the "network" field was cleared in this mutation.

func (*ProviderOrderTokenMutation) OldAddress

func (m *ProviderOrderTokenMutation) OldAddress(ctx context.Context) (v string, err error)

OldAddress returns the old "address" field's value of the ProviderOrderToken entity. If the ProviderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderOrderTokenMutation) OldConversionRateType

OldConversionRateType returns the old "conversion_rate_type" field's value of the ProviderOrderToken entity. If the ProviderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderOrderTokenMutation) OldCreatedAt

func (m *ProviderOrderTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the ProviderOrderToken entity. If the ProviderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderOrderTokenMutation) OldField

func (m *ProviderOrderTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ProviderOrderTokenMutation) OldFixedConversionRate

func (m *ProviderOrderTokenMutation) OldFixedConversionRate(ctx context.Context) (v decimal.Decimal, err error)

OldFixedConversionRate returns the old "fixed_conversion_rate" field's value of the ProviderOrderToken entity. If the ProviderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderOrderTokenMutation) OldFloatingConversionRate

func (m *ProviderOrderTokenMutation) OldFloatingConversionRate(ctx context.Context) (v decimal.Decimal, err error)

OldFloatingConversionRate returns the old "floating_conversion_rate" field's value of the ProviderOrderToken entity. If the ProviderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderOrderTokenMutation) OldMaxOrderAmount

func (m *ProviderOrderTokenMutation) OldMaxOrderAmount(ctx context.Context) (v decimal.Decimal, err error)

OldMaxOrderAmount returns the old "max_order_amount" field's value of the ProviderOrderToken entity. If the ProviderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderOrderTokenMutation) OldMinOrderAmount

func (m *ProviderOrderTokenMutation) OldMinOrderAmount(ctx context.Context) (v decimal.Decimal, err error)

OldMinOrderAmount returns the old "min_order_amount" field's value of the ProviderOrderToken entity. If the ProviderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderOrderTokenMutation) OldNetwork

func (m *ProviderOrderTokenMutation) OldNetwork(ctx context.Context) (v string, err error)

OldNetwork returns the old "network" field's value of the ProviderOrderToken entity. If the ProviderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderOrderTokenMutation) OldRateSlippage

func (m *ProviderOrderTokenMutation) OldRateSlippage(ctx context.Context) (v decimal.Decimal, err error)

OldRateSlippage returns the old "rate_slippage" field's value of the ProviderOrderToken entity. If the ProviderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderOrderTokenMutation) OldUpdatedAt

func (m *ProviderOrderTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ProviderOrderToken entity. If the ProviderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderOrderTokenMutation) Op

Op returns the operation name.

func (*ProviderOrderTokenMutation) ProviderCleared

func (m *ProviderOrderTokenMutation) ProviderCleared() bool

ProviderCleared reports if the "provider" edge to the ProviderProfile entity was cleared.

func (*ProviderOrderTokenMutation) ProviderID

func (m *ProviderOrderTokenMutation) ProviderID() (id string, exists bool)

ProviderID returns the "provider" edge ID in the mutation.

func (*ProviderOrderTokenMutation) ProviderIDs

func (m *ProviderOrderTokenMutation) ProviderIDs() (ids []string)

ProviderIDs returns the "provider" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProviderID instead. It exists only for internal usage by the builders.

func (*ProviderOrderTokenMutation) RateSlippage

func (m *ProviderOrderTokenMutation) RateSlippage() (r decimal.Decimal, exists bool)

RateSlippage returns the value of the "rate_slippage" field in the mutation.

func (*ProviderOrderTokenMutation) RemovedEdges

func (m *ProviderOrderTokenMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ProviderOrderTokenMutation) RemovedIDs

func (m *ProviderOrderTokenMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ProviderOrderTokenMutation) ResetAddress

func (m *ProviderOrderTokenMutation) ResetAddress()

ResetAddress resets all changes to the "address" field.

func (*ProviderOrderTokenMutation) ResetConversionRateType

func (m *ProviderOrderTokenMutation) ResetConversionRateType()

ResetConversionRateType resets all changes to the "conversion_rate_type" field.

func (*ProviderOrderTokenMutation) ResetCreatedAt

func (m *ProviderOrderTokenMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ProviderOrderTokenMutation) ResetCurrency

func (m *ProviderOrderTokenMutation) ResetCurrency()

ResetCurrency resets all changes to the "currency" edge.

func (*ProviderOrderTokenMutation) ResetEdge

func (m *ProviderOrderTokenMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ProviderOrderTokenMutation) ResetField

func (m *ProviderOrderTokenMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ProviderOrderTokenMutation) ResetFixedConversionRate

func (m *ProviderOrderTokenMutation) ResetFixedConversionRate()

ResetFixedConversionRate resets all changes to the "fixed_conversion_rate" field.

func (*ProviderOrderTokenMutation) ResetFloatingConversionRate

func (m *ProviderOrderTokenMutation) ResetFloatingConversionRate()

ResetFloatingConversionRate resets all changes to the "floating_conversion_rate" field.

func (*ProviderOrderTokenMutation) ResetMaxOrderAmount

func (m *ProviderOrderTokenMutation) ResetMaxOrderAmount()

ResetMaxOrderAmount resets all changes to the "max_order_amount" field.

func (*ProviderOrderTokenMutation) ResetMinOrderAmount

func (m *ProviderOrderTokenMutation) ResetMinOrderAmount()

ResetMinOrderAmount resets all changes to the "min_order_amount" field.

func (*ProviderOrderTokenMutation) ResetNetwork

func (m *ProviderOrderTokenMutation) ResetNetwork()

ResetNetwork resets all changes to the "network" field.

func (*ProviderOrderTokenMutation) ResetProvider

func (m *ProviderOrderTokenMutation) ResetProvider()

ResetProvider resets all changes to the "provider" edge.

func (*ProviderOrderTokenMutation) ResetRateSlippage

func (m *ProviderOrderTokenMutation) ResetRateSlippage()

ResetRateSlippage resets all changes to the "rate_slippage" field.

func (*ProviderOrderTokenMutation) ResetToken

func (m *ProviderOrderTokenMutation) ResetToken()

ResetToken resets all changes to the "token" edge.

func (*ProviderOrderTokenMutation) ResetUpdatedAt

func (m *ProviderOrderTokenMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ProviderOrderTokenMutation) SetAddress

func (m *ProviderOrderTokenMutation) SetAddress(s string)

SetAddress sets the "address" field.

func (*ProviderOrderTokenMutation) SetConversionRateType

SetConversionRateType sets the "conversion_rate_type" field.

func (*ProviderOrderTokenMutation) SetCreatedAt

func (m *ProviderOrderTokenMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*ProviderOrderTokenMutation) SetCurrencyID

func (m *ProviderOrderTokenMutation) SetCurrencyID(id uuid.UUID)

SetCurrencyID sets the "currency" edge to the FiatCurrency entity by id.

func (*ProviderOrderTokenMutation) SetField

func (m *ProviderOrderTokenMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ProviderOrderTokenMutation) SetFixedConversionRate

func (m *ProviderOrderTokenMutation) SetFixedConversionRate(d decimal.Decimal)

SetFixedConversionRate sets the "fixed_conversion_rate" field.

func (*ProviderOrderTokenMutation) SetFloatingConversionRate

func (m *ProviderOrderTokenMutation) SetFloatingConversionRate(d decimal.Decimal)

SetFloatingConversionRate sets the "floating_conversion_rate" field.

func (*ProviderOrderTokenMutation) SetMaxOrderAmount

func (m *ProviderOrderTokenMutation) SetMaxOrderAmount(d decimal.Decimal)

SetMaxOrderAmount sets the "max_order_amount" field.

func (*ProviderOrderTokenMutation) SetMinOrderAmount

func (m *ProviderOrderTokenMutation) SetMinOrderAmount(d decimal.Decimal)

SetMinOrderAmount sets the "min_order_amount" field.

func (*ProviderOrderTokenMutation) SetNetwork

func (m *ProviderOrderTokenMutation) SetNetwork(s string)

SetNetwork sets the "network" field.

func (*ProviderOrderTokenMutation) SetOp

func (m *ProviderOrderTokenMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ProviderOrderTokenMutation) SetProviderID

func (m *ProviderOrderTokenMutation) SetProviderID(id string)

SetProviderID sets the "provider" edge to the ProviderProfile entity by id.

func (*ProviderOrderTokenMutation) SetRateSlippage

func (m *ProviderOrderTokenMutation) SetRateSlippage(d decimal.Decimal)

SetRateSlippage sets the "rate_slippage" field.

func (*ProviderOrderTokenMutation) SetTokenID

func (m *ProviderOrderTokenMutation) SetTokenID(id int)

SetTokenID sets the "token" edge to the Token entity by id.

func (*ProviderOrderTokenMutation) SetUpdatedAt

func (m *ProviderOrderTokenMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*ProviderOrderTokenMutation) TokenCleared

func (m *ProviderOrderTokenMutation) TokenCleared() bool

TokenCleared reports if the "token" edge to the Token entity was cleared.

func (*ProviderOrderTokenMutation) TokenID

func (m *ProviderOrderTokenMutation) TokenID() (id int, exists bool)

TokenID returns the "token" edge ID in the mutation.

func (*ProviderOrderTokenMutation) TokenIDs

func (m *ProviderOrderTokenMutation) TokenIDs() (ids []int)

TokenIDs returns the "token" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use TokenID instead. It exists only for internal usage by the builders.

func (ProviderOrderTokenMutation) Tx

func (m ProviderOrderTokenMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ProviderOrderTokenMutation) Type

Type returns the node type of this mutation (ProviderOrderToken).

func (*ProviderOrderTokenMutation) UpdatedAt

func (m *ProviderOrderTokenMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ProviderOrderTokenMutation) Where

Where appends a list predicates to the ProviderOrderTokenMutation builder.

func (*ProviderOrderTokenMutation) WhereP

func (m *ProviderOrderTokenMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ProviderOrderTokenMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ProviderOrderTokenQuery

type ProviderOrderTokenQuery struct {
	// contains filtered or unexported fields
}

ProviderOrderTokenQuery is the builder for querying ProviderOrderToken entities.

func (*ProviderOrderTokenQuery) Aggregate

Aggregate returns a ProviderOrderTokenSelect configured with the given aggregations.

func (*ProviderOrderTokenQuery) All

All executes the query and returns a list of ProviderOrderTokens.

func (*ProviderOrderTokenQuery) AllX

AllX is like All, but panics if an error occurs.

func (*ProviderOrderTokenQuery) Clone

Clone returns a duplicate of the ProviderOrderTokenQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ProviderOrderTokenQuery) Count

func (potq *ProviderOrderTokenQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ProviderOrderTokenQuery) CountX

func (potq *ProviderOrderTokenQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ProviderOrderTokenQuery) Exist

func (potq *ProviderOrderTokenQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ProviderOrderTokenQuery) ExistX

func (potq *ProviderOrderTokenQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ProviderOrderTokenQuery) First

First returns the first ProviderOrderToken entity from the query. Returns a *NotFoundError when no ProviderOrderToken was found.

func (*ProviderOrderTokenQuery) FirstID

func (potq *ProviderOrderTokenQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ProviderOrderToken ID from the query. Returns a *NotFoundError when no ProviderOrderToken ID was found.

func (*ProviderOrderTokenQuery) FirstIDX

func (potq *ProviderOrderTokenQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ProviderOrderTokenQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*ProviderOrderTokenQuery) GroupBy

func (potq *ProviderOrderTokenQuery) GroupBy(field string, fields ...string) *ProviderOrderTokenGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ProviderOrderToken.Query().
	GroupBy(providerordertoken.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ProviderOrderTokenQuery) IDs

func (potq *ProviderOrderTokenQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of ProviderOrderToken IDs.

func (*ProviderOrderTokenQuery) IDsX

func (potq *ProviderOrderTokenQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ProviderOrderTokenQuery) Limit

Limit the number of records to be returned by this query.

func (*ProviderOrderTokenQuery) Offset

func (potq *ProviderOrderTokenQuery) Offset(offset int) *ProviderOrderTokenQuery

Offset to start from.

func (*ProviderOrderTokenQuery) Only

Only returns a single ProviderOrderToken entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ProviderOrderToken entity is found. Returns a *NotFoundError when no ProviderOrderToken entities are found.

func (*ProviderOrderTokenQuery) OnlyID

func (potq *ProviderOrderTokenQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ProviderOrderToken ID in the query. Returns a *NotSingularError when more than one ProviderOrderToken ID is found. Returns a *NotFoundError when no entities are found.

func (*ProviderOrderTokenQuery) OnlyIDX

func (potq *ProviderOrderTokenQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ProviderOrderTokenQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*ProviderOrderTokenQuery) Order

Order specifies how the records should be ordered.

func (*ProviderOrderTokenQuery) QueryCurrency

func (potq *ProviderOrderTokenQuery) QueryCurrency() *FiatCurrencyQuery

QueryCurrency chains the current query on the "currency" edge.

func (*ProviderOrderTokenQuery) QueryProvider

func (potq *ProviderOrderTokenQuery) QueryProvider() *ProviderProfileQuery

QueryProvider chains the current query on the "provider" edge.

func (*ProviderOrderTokenQuery) QueryToken

func (potq *ProviderOrderTokenQuery) QueryToken() *TokenQuery

QueryToken chains the current query on the "token" edge.

func (*ProviderOrderTokenQuery) Select

func (potq *ProviderOrderTokenQuery) Select(fields ...string) *ProviderOrderTokenSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.ProviderOrderToken.Query().
	Select(providerordertoken.FieldCreatedAt).
	Scan(ctx, &v)

func (*ProviderOrderTokenQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ProviderOrderTokenQuery) Where

Where adds a new predicate for the ProviderOrderTokenQuery builder.

func (*ProviderOrderTokenQuery) WithCurrency

func (potq *ProviderOrderTokenQuery) WithCurrency(opts ...func(*FiatCurrencyQuery)) *ProviderOrderTokenQuery

WithCurrency tells the query-builder to eager-load the nodes that are connected to the "currency" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProviderOrderTokenQuery) WithProvider

func (potq *ProviderOrderTokenQuery) WithProvider(opts ...func(*ProviderProfileQuery)) *ProviderOrderTokenQuery

WithProvider tells the query-builder to eager-load the nodes that are connected to the "provider" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProviderOrderTokenQuery) WithToken

func (potq *ProviderOrderTokenQuery) WithToken(opts ...func(*TokenQuery)) *ProviderOrderTokenQuery

WithToken tells the query-builder to eager-load the nodes that are connected to the "token" edge. The optional arguments are used to configure the query builder of the edge.

type ProviderOrderTokenSelect

type ProviderOrderTokenSelect struct {
	*ProviderOrderTokenQuery
	// contains filtered or unexported fields
}

ProviderOrderTokenSelect is the builder for selecting fields of ProviderOrderToken entities.

func (*ProviderOrderTokenSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*ProviderOrderTokenSelect) Bool

func (s *ProviderOrderTokenSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenSelect) BoolX

func (s *ProviderOrderTokenSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ProviderOrderTokenSelect) Bools

func (s *ProviderOrderTokenSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenSelect) BoolsX

func (s *ProviderOrderTokenSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ProviderOrderTokenSelect) Float64

func (s *ProviderOrderTokenSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenSelect) Float64X

func (s *ProviderOrderTokenSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ProviderOrderTokenSelect) Float64s

func (s *ProviderOrderTokenSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenSelect) Float64sX

func (s *ProviderOrderTokenSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ProviderOrderTokenSelect) Int

func (s *ProviderOrderTokenSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenSelect) IntX

func (s *ProviderOrderTokenSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ProviderOrderTokenSelect) Ints

func (s *ProviderOrderTokenSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenSelect) IntsX

func (s *ProviderOrderTokenSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ProviderOrderTokenSelect) Scan

func (pots *ProviderOrderTokenSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ProviderOrderTokenSelect) ScanX

func (s *ProviderOrderTokenSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ProviderOrderTokenSelect) String

func (s *ProviderOrderTokenSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenSelect) StringX

func (s *ProviderOrderTokenSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ProviderOrderTokenSelect) Strings

func (s *ProviderOrderTokenSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ProviderOrderTokenSelect) StringsX

func (s *ProviderOrderTokenSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ProviderOrderTokenUpdate

type ProviderOrderTokenUpdate struct {
	// contains filtered or unexported fields
}

ProviderOrderTokenUpdate is the builder for updating ProviderOrderToken entities.

func (*ProviderOrderTokenUpdate) AddFixedConversionRate

func (potu *ProviderOrderTokenUpdate) AddFixedConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdate

AddFixedConversionRate adds d to the "fixed_conversion_rate" field.

func (*ProviderOrderTokenUpdate) AddFloatingConversionRate

func (potu *ProviderOrderTokenUpdate) AddFloatingConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdate

AddFloatingConversionRate adds d to the "floating_conversion_rate" field.

func (*ProviderOrderTokenUpdate) AddMaxOrderAmount

AddMaxOrderAmount adds d to the "max_order_amount" field.

func (*ProviderOrderTokenUpdate) AddMinOrderAmount

AddMinOrderAmount adds d to the "min_order_amount" field.

func (*ProviderOrderTokenUpdate) AddRateSlippage

AddRateSlippage adds d to the "rate_slippage" field.

func (*ProviderOrderTokenUpdate) ClearAddress

func (potu *ProviderOrderTokenUpdate) ClearAddress() *ProviderOrderTokenUpdate

ClearAddress clears the value of the "address" field.

func (*ProviderOrderTokenUpdate) ClearCurrency

func (potu *ProviderOrderTokenUpdate) ClearCurrency() *ProviderOrderTokenUpdate

ClearCurrency clears the "currency" edge to the FiatCurrency entity.

func (*ProviderOrderTokenUpdate) ClearNetwork

func (potu *ProviderOrderTokenUpdate) ClearNetwork() *ProviderOrderTokenUpdate

ClearNetwork clears the value of the "network" field.

func (*ProviderOrderTokenUpdate) ClearProvider

func (potu *ProviderOrderTokenUpdate) ClearProvider() *ProviderOrderTokenUpdate

ClearProvider clears the "provider" edge to the ProviderProfile entity.

func (*ProviderOrderTokenUpdate) ClearToken

ClearToken clears the "token" edge to the Token entity.

func (*ProviderOrderTokenUpdate) Exec

Exec executes the query.

func (*ProviderOrderTokenUpdate) ExecX

func (potu *ProviderOrderTokenUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderOrderTokenUpdate) Mutation

Mutation returns the ProviderOrderTokenMutation object of the builder.

func (*ProviderOrderTokenUpdate) Save

func (potu *ProviderOrderTokenUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ProviderOrderTokenUpdate) SaveX

func (potu *ProviderOrderTokenUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ProviderOrderTokenUpdate) SetAddress

SetAddress sets the "address" field.

func (*ProviderOrderTokenUpdate) SetConversionRateType

SetConversionRateType sets the "conversion_rate_type" field.

func (*ProviderOrderTokenUpdate) SetCurrency

SetCurrency sets the "currency" edge to the FiatCurrency entity.

func (*ProviderOrderTokenUpdate) SetCurrencyID

SetCurrencyID sets the "currency" edge to the FiatCurrency entity by ID.

func (*ProviderOrderTokenUpdate) SetFixedConversionRate

func (potu *ProviderOrderTokenUpdate) SetFixedConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdate

SetFixedConversionRate sets the "fixed_conversion_rate" field.

func (*ProviderOrderTokenUpdate) SetFloatingConversionRate

func (potu *ProviderOrderTokenUpdate) SetFloatingConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdate

SetFloatingConversionRate sets the "floating_conversion_rate" field.

func (*ProviderOrderTokenUpdate) SetMaxOrderAmount

SetMaxOrderAmount sets the "max_order_amount" field.

func (*ProviderOrderTokenUpdate) SetMinOrderAmount

SetMinOrderAmount sets the "min_order_amount" field.

func (*ProviderOrderTokenUpdate) SetNetwork

SetNetwork sets the "network" field.

func (*ProviderOrderTokenUpdate) SetNillableAddress

func (potu *ProviderOrderTokenUpdate) SetNillableAddress(s *string) *ProviderOrderTokenUpdate

SetNillableAddress sets the "address" field if the given value is not nil.

func (*ProviderOrderTokenUpdate) SetNillableConversionRateType

SetNillableConversionRateType sets the "conversion_rate_type" field if the given value is not nil.

func (*ProviderOrderTokenUpdate) SetNillableFixedConversionRate

func (potu *ProviderOrderTokenUpdate) SetNillableFixedConversionRate(d *decimal.Decimal) *ProviderOrderTokenUpdate

SetNillableFixedConversionRate sets the "fixed_conversion_rate" field if the given value is not nil.

func (*ProviderOrderTokenUpdate) SetNillableFloatingConversionRate

func (potu *ProviderOrderTokenUpdate) SetNillableFloatingConversionRate(d *decimal.Decimal) *ProviderOrderTokenUpdate

SetNillableFloatingConversionRate sets the "floating_conversion_rate" field if the given value is not nil.

func (*ProviderOrderTokenUpdate) SetNillableMaxOrderAmount

func (potu *ProviderOrderTokenUpdate) SetNillableMaxOrderAmount(d *decimal.Decimal) *ProviderOrderTokenUpdate

SetNillableMaxOrderAmount sets the "max_order_amount" field if the given value is not nil.

func (*ProviderOrderTokenUpdate) SetNillableMinOrderAmount

func (potu *ProviderOrderTokenUpdate) SetNillableMinOrderAmount(d *decimal.Decimal) *ProviderOrderTokenUpdate

SetNillableMinOrderAmount sets the "min_order_amount" field if the given value is not nil.

func (*ProviderOrderTokenUpdate) SetNillableNetwork

func (potu *ProviderOrderTokenUpdate) SetNillableNetwork(s *string) *ProviderOrderTokenUpdate

SetNillableNetwork sets the "network" field if the given value is not nil.

func (*ProviderOrderTokenUpdate) SetNillableRateSlippage

func (potu *ProviderOrderTokenUpdate) SetNillableRateSlippage(d *decimal.Decimal) *ProviderOrderTokenUpdate

SetNillableRateSlippage sets the "rate_slippage" field if the given value is not nil.

func (*ProviderOrderTokenUpdate) SetProvider

SetProvider sets the "provider" edge to the ProviderProfile entity.

func (*ProviderOrderTokenUpdate) SetProviderID

func (potu *ProviderOrderTokenUpdate) SetProviderID(id string) *ProviderOrderTokenUpdate

SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.

func (*ProviderOrderTokenUpdate) SetRateSlippage

SetRateSlippage sets the "rate_slippage" field.

func (*ProviderOrderTokenUpdate) SetToken

SetToken sets the "token" edge to the Token entity.

func (*ProviderOrderTokenUpdate) SetTokenID

SetTokenID sets the "token" edge to the Token entity by ID.

func (*ProviderOrderTokenUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ProviderOrderTokenUpdate) Where

Where appends a list predicates to the ProviderOrderTokenUpdate builder.

type ProviderOrderTokenUpdateOne

type ProviderOrderTokenUpdateOne struct {
	// contains filtered or unexported fields
}

ProviderOrderTokenUpdateOne is the builder for updating a single ProviderOrderToken entity.

func (*ProviderOrderTokenUpdateOne) AddFixedConversionRate

func (potuo *ProviderOrderTokenUpdateOne) AddFixedConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdateOne

AddFixedConversionRate adds d to the "fixed_conversion_rate" field.

func (*ProviderOrderTokenUpdateOne) AddFloatingConversionRate

func (potuo *ProviderOrderTokenUpdateOne) AddFloatingConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdateOne

AddFloatingConversionRate adds d to the "floating_conversion_rate" field.

func (*ProviderOrderTokenUpdateOne) AddMaxOrderAmount

AddMaxOrderAmount adds d to the "max_order_amount" field.

func (*ProviderOrderTokenUpdateOne) AddMinOrderAmount

AddMinOrderAmount adds d to the "min_order_amount" field.

func (*ProviderOrderTokenUpdateOne) AddRateSlippage

AddRateSlippage adds d to the "rate_slippage" field.

func (*ProviderOrderTokenUpdateOne) ClearAddress

ClearAddress clears the value of the "address" field.

func (*ProviderOrderTokenUpdateOne) ClearCurrency

ClearCurrency clears the "currency" edge to the FiatCurrency entity.

func (*ProviderOrderTokenUpdateOne) ClearNetwork

ClearNetwork clears the value of the "network" field.

func (*ProviderOrderTokenUpdateOne) ClearProvider

ClearProvider clears the "provider" edge to the ProviderProfile entity.

func (*ProviderOrderTokenUpdateOne) ClearToken

ClearToken clears the "token" edge to the Token entity.

func (*ProviderOrderTokenUpdateOne) Exec

Exec executes the query on the entity.

func (*ProviderOrderTokenUpdateOne) ExecX

func (potuo *ProviderOrderTokenUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderOrderTokenUpdateOne) Mutation

Mutation returns the ProviderOrderTokenMutation object of the builder.

func (*ProviderOrderTokenUpdateOne) Save

Save executes the query and returns the updated ProviderOrderToken entity.

func (*ProviderOrderTokenUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ProviderOrderTokenUpdateOne) Select

func (potuo *ProviderOrderTokenUpdateOne) Select(field string, fields ...string) *ProviderOrderTokenUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ProviderOrderTokenUpdateOne) SetAddress

SetAddress sets the "address" field.

func (*ProviderOrderTokenUpdateOne) SetConversionRateType

SetConversionRateType sets the "conversion_rate_type" field.

func (*ProviderOrderTokenUpdateOne) SetCurrency

SetCurrency sets the "currency" edge to the FiatCurrency entity.

func (*ProviderOrderTokenUpdateOne) SetCurrencyID

SetCurrencyID sets the "currency" edge to the FiatCurrency entity by ID.

func (*ProviderOrderTokenUpdateOne) SetFixedConversionRate

func (potuo *ProviderOrderTokenUpdateOne) SetFixedConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdateOne

SetFixedConversionRate sets the "fixed_conversion_rate" field.

func (*ProviderOrderTokenUpdateOne) SetFloatingConversionRate

func (potuo *ProviderOrderTokenUpdateOne) SetFloatingConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdateOne

SetFloatingConversionRate sets the "floating_conversion_rate" field.

func (*ProviderOrderTokenUpdateOne) SetMaxOrderAmount

SetMaxOrderAmount sets the "max_order_amount" field.

func (*ProviderOrderTokenUpdateOne) SetMinOrderAmount

SetMinOrderAmount sets the "min_order_amount" field.

func (*ProviderOrderTokenUpdateOne) SetNetwork

SetNetwork sets the "network" field.

func (*ProviderOrderTokenUpdateOne) SetNillableAddress

func (potuo *ProviderOrderTokenUpdateOne) SetNillableAddress(s *string) *ProviderOrderTokenUpdateOne

SetNillableAddress sets the "address" field if the given value is not nil.

func (*ProviderOrderTokenUpdateOne) SetNillableConversionRateType

SetNillableConversionRateType sets the "conversion_rate_type" field if the given value is not nil.

func (*ProviderOrderTokenUpdateOne) SetNillableFixedConversionRate

func (potuo *ProviderOrderTokenUpdateOne) SetNillableFixedConversionRate(d *decimal.Decimal) *ProviderOrderTokenUpdateOne

SetNillableFixedConversionRate sets the "fixed_conversion_rate" field if the given value is not nil.

func (*ProviderOrderTokenUpdateOne) SetNillableFloatingConversionRate

func (potuo *ProviderOrderTokenUpdateOne) SetNillableFloatingConversionRate(d *decimal.Decimal) *ProviderOrderTokenUpdateOne

SetNillableFloatingConversionRate sets the "floating_conversion_rate" field if the given value is not nil.

func (*ProviderOrderTokenUpdateOne) SetNillableMaxOrderAmount

func (potuo *ProviderOrderTokenUpdateOne) SetNillableMaxOrderAmount(d *decimal.Decimal) *ProviderOrderTokenUpdateOne

SetNillableMaxOrderAmount sets the "max_order_amount" field if the given value is not nil.

func (*ProviderOrderTokenUpdateOne) SetNillableMinOrderAmount

func (potuo *ProviderOrderTokenUpdateOne) SetNillableMinOrderAmount(d *decimal.Decimal) *ProviderOrderTokenUpdateOne

SetNillableMinOrderAmount sets the "min_order_amount" field if the given value is not nil.

func (*ProviderOrderTokenUpdateOne) SetNillableNetwork

func (potuo *ProviderOrderTokenUpdateOne) SetNillableNetwork(s *string) *ProviderOrderTokenUpdateOne

SetNillableNetwork sets the "network" field if the given value is not nil.

func (*ProviderOrderTokenUpdateOne) SetNillableRateSlippage

func (potuo *ProviderOrderTokenUpdateOne) SetNillableRateSlippage(d *decimal.Decimal) *ProviderOrderTokenUpdateOne

SetNillableRateSlippage sets the "rate_slippage" field if the given value is not nil.

func (*ProviderOrderTokenUpdateOne) SetProvider

SetProvider sets the "provider" edge to the ProviderProfile entity.

func (*ProviderOrderTokenUpdateOne) SetProviderID

SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.

func (*ProviderOrderTokenUpdateOne) SetRateSlippage

SetRateSlippage sets the "rate_slippage" field.

func (*ProviderOrderTokenUpdateOne) SetToken

SetToken sets the "token" edge to the Token entity.

func (*ProviderOrderTokenUpdateOne) SetTokenID

SetTokenID sets the "token" edge to the Token entity by ID.

func (*ProviderOrderTokenUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ProviderOrderTokenUpdateOne) Where

Where appends a list predicates to the ProviderOrderTokenUpdate builder.

type ProviderOrderTokenUpsert

type ProviderOrderTokenUpsert struct {
	*sql.UpdateSet
}

ProviderOrderTokenUpsert is the "OnConflict" setter.

func (*ProviderOrderTokenUpsert) AddFixedConversionRate

func (u *ProviderOrderTokenUpsert) AddFixedConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsert

AddFixedConversionRate adds v to the "fixed_conversion_rate" field.

func (*ProviderOrderTokenUpsert) AddFloatingConversionRate

func (u *ProviderOrderTokenUpsert) AddFloatingConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsert

AddFloatingConversionRate adds v to the "floating_conversion_rate" field.

func (*ProviderOrderTokenUpsert) AddMaxOrderAmount

AddMaxOrderAmount adds v to the "max_order_amount" field.

func (*ProviderOrderTokenUpsert) AddMinOrderAmount

AddMinOrderAmount adds v to the "min_order_amount" field.

func (*ProviderOrderTokenUpsert) AddRateSlippage

AddRateSlippage adds v to the "rate_slippage" field.

func (*ProviderOrderTokenUpsert) ClearAddress

ClearAddress clears the value of the "address" field.

func (*ProviderOrderTokenUpsert) ClearNetwork

ClearNetwork clears the value of the "network" field.

func (*ProviderOrderTokenUpsert) SetAddress

SetAddress sets the "address" field.

func (*ProviderOrderTokenUpsert) SetConversionRateType

SetConversionRateType sets the "conversion_rate_type" field.

func (*ProviderOrderTokenUpsert) SetFixedConversionRate

func (u *ProviderOrderTokenUpsert) SetFixedConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsert

SetFixedConversionRate sets the "fixed_conversion_rate" field.

func (*ProviderOrderTokenUpsert) SetFloatingConversionRate

func (u *ProviderOrderTokenUpsert) SetFloatingConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsert

SetFloatingConversionRate sets the "floating_conversion_rate" field.

func (*ProviderOrderTokenUpsert) SetMaxOrderAmount

SetMaxOrderAmount sets the "max_order_amount" field.

func (*ProviderOrderTokenUpsert) SetMinOrderAmount

SetMinOrderAmount sets the "min_order_amount" field.

func (*ProviderOrderTokenUpsert) SetNetwork

SetNetwork sets the "network" field.

func (*ProviderOrderTokenUpsert) SetRateSlippage

SetRateSlippage sets the "rate_slippage" field.

func (*ProviderOrderTokenUpsert) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ProviderOrderTokenUpsert) UpdateAddress

UpdateAddress sets the "address" field to the value that was provided on create.

func (*ProviderOrderTokenUpsert) UpdateConversionRateType

func (u *ProviderOrderTokenUpsert) UpdateConversionRateType() *ProviderOrderTokenUpsert

UpdateConversionRateType sets the "conversion_rate_type" field to the value that was provided on create.

func (*ProviderOrderTokenUpsert) UpdateFixedConversionRate

func (u *ProviderOrderTokenUpsert) UpdateFixedConversionRate() *ProviderOrderTokenUpsert

UpdateFixedConversionRate sets the "fixed_conversion_rate" field to the value that was provided on create.

func (*ProviderOrderTokenUpsert) UpdateFloatingConversionRate

func (u *ProviderOrderTokenUpsert) UpdateFloatingConversionRate() *ProviderOrderTokenUpsert

UpdateFloatingConversionRate sets the "floating_conversion_rate" field to the value that was provided on create.

func (*ProviderOrderTokenUpsert) UpdateMaxOrderAmount

func (u *ProviderOrderTokenUpsert) UpdateMaxOrderAmount() *ProviderOrderTokenUpsert

UpdateMaxOrderAmount sets the "max_order_amount" field to the value that was provided on create.

func (*ProviderOrderTokenUpsert) UpdateMinOrderAmount

func (u *ProviderOrderTokenUpsert) UpdateMinOrderAmount() *ProviderOrderTokenUpsert

UpdateMinOrderAmount sets the "min_order_amount" field to the value that was provided on create.

func (*ProviderOrderTokenUpsert) UpdateNetwork

UpdateNetwork sets the "network" field to the value that was provided on create.

func (*ProviderOrderTokenUpsert) UpdateRateSlippage

func (u *ProviderOrderTokenUpsert) UpdateRateSlippage() *ProviderOrderTokenUpsert

UpdateRateSlippage sets the "rate_slippage" field to the value that was provided on create.

func (*ProviderOrderTokenUpsert) UpdateUpdatedAt

func (u *ProviderOrderTokenUpsert) UpdateUpdatedAt() *ProviderOrderTokenUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type ProviderOrderTokenUpsertBulk

type ProviderOrderTokenUpsertBulk struct {
	// contains filtered or unexported fields
}

ProviderOrderTokenUpsertBulk is the builder for "upsert"-ing a bulk of ProviderOrderToken nodes.

func (*ProviderOrderTokenUpsertBulk) AddFixedConversionRate

AddFixedConversionRate adds v to the "fixed_conversion_rate" field.

func (*ProviderOrderTokenUpsertBulk) AddFloatingConversionRate

AddFloatingConversionRate adds v to the "floating_conversion_rate" field.

func (*ProviderOrderTokenUpsertBulk) AddMaxOrderAmount

AddMaxOrderAmount adds v to the "max_order_amount" field.

func (*ProviderOrderTokenUpsertBulk) AddMinOrderAmount

AddMinOrderAmount adds v to the "min_order_amount" field.

func (*ProviderOrderTokenUpsertBulk) AddRateSlippage

AddRateSlippage adds v to the "rate_slippage" field.

func (*ProviderOrderTokenUpsertBulk) ClearAddress

ClearAddress clears the value of the "address" field.

func (*ProviderOrderTokenUpsertBulk) ClearNetwork

ClearNetwork clears the value of the "network" field.

func (*ProviderOrderTokenUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*ProviderOrderTokenUpsertBulk) Exec

Exec executes the query.

func (*ProviderOrderTokenUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ProviderOrderTokenUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.ProviderOrderToken.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*ProviderOrderTokenUpsertBulk) SetAddress

SetAddress sets the "address" field.

func (*ProviderOrderTokenUpsertBulk) SetConversionRateType

SetConversionRateType sets the "conversion_rate_type" field.

func (*ProviderOrderTokenUpsertBulk) SetFixedConversionRate

SetFixedConversionRate sets the "fixed_conversion_rate" field.

func (*ProviderOrderTokenUpsertBulk) SetFloatingConversionRate

SetFloatingConversionRate sets the "floating_conversion_rate" field.

func (*ProviderOrderTokenUpsertBulk) SetMaxOrderAmount

SetMaxOrderAmount sets the "max_order_amount" field.

func (*ProviderOrderTokenUpsertBulk) SetMinOrderAmount

SetMinOrderAmount sets the "min_order_amount" field.

func (*ProviderOrderTokenUpsertBulk) SetNetwork

SetNetwork sets the "network" field.

func (*ProviderOrderTokenUpsertBulk) SetRateSlippage

SetRateSlippage sets the "rate_slippage" field.

func (*ProviderOrderTokenUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ProviderOrderTokenUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the ProviderOrderTokenCreateBulk.OnConflict documentation for more info.

func (*ProviderOrderTokenUpsertBulk) UpdateAddress

UpdateAddress sets the "address" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertBulk) UpdateConversionRateType

func (u *ProviderOrderTokenUpsertBulk) UpdateConversionRateType() *ProviderOrderTokenUpsertBulk

UpdateConversionRateType sets the "conversion_rate_type" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertBulk) UpdateFixedConversionRate

func (u *ProviderOrderTokenUpsertBulk) UpdateFixedConversionRate() *ProviderOrderTokenUpsertBulk

UpdateFixedConversionRate sets the "fixed_conversion_rate" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertBulk) UpdateFloatingConversionRate

func (u *ProviderOrderTokenUpsertBulk) UpdateFloatingConversionRate() *ProviderOrderTokenUpsertBulk

UpdateFloatingConversionRate sets the "floating_conversion_rate" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertBulk) UpdateMaxOrderAmount

UpdateMaxOrderAmount sets the "max_order_amount" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertBulk) UpdateMinOrderAmount

UpdateMinOrderAmount sets the "min_order_amount" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertBulk) UpdateNetwork

UpdateNetwork sets the "network" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.ProviderOrderToken.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*ProviderOrderTokenUpsertBulk) UpdateRateSlippage

UpdateRateSlippage sets the "rate_slippage" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertBulk) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type ProviderOrderTokenUpsertOne

type ProviderOrderTokenUpsertOne struct {
	// contains filtered or unexported fields
}

ProviderOrderTokenUpsertOne is the builder for "upsert"-ing

one ProviderOrderToken node.

func (*ProviderOrderTokenUpsertOne) AddFixedConversionRate

AddFixedConversionRate adds v to the "fixed_conversion_rate" field.

func (*ProviderOrderTokenUpsertOne) AddFloatingConversionRate

AddFloatingConversionRate adds v to the "floating_conversion_rate" field.

func (*ProviderOrderTokenUpsertOne) AddMaxOrderAmount

AddMaxOrderAmount adds v to the "max_order_amount" field.

func (*ProviderOrderTokenUpsertOne) AddMinOrderAmount

AddMinOrderAmount adds v to the "min_order_amount" field.

func (*ProviderOrderTokenUpsertOne) AddRateSlippage

AddRateSlippage adds v to the "rate_slippage" field.

func (*ProviderOrderTokenUpsertOne) ClearAddress

ClearAddress clears the value of the "address" field.

func (*ProviderOrderTokenUpsertOne) ClearNetwork

ClearNetwork clears the value of the "network" field.

func (*ProviderOrderTokenUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*ProviderOrderTokenUpsertOne) Exec

Exec executes the query.

func (*ProviderOrderTokenUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ProviderOrderTokenUpsertOne) ID

func (u *ProviderOrderTokenUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*ProviderOrderTokenUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*ProviderOrderTokenUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.ProviderOrderToken.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*ProviderOrderTokenUpsertOne) SetAddress

SetAddress sets the "address" field.

func (*ProviderOrderTokenUpsertOne) SetConversionRateType

SetConversionRateType sets the "conversion_rate_type" field.

func (*ProviderOrderTokenUpsertOne) SetFixedConversionRate

SetFixedConversionRate sets the "fixed_conversion_rate" field.

func (*ProviderOrderTokenUpsertOne) SetFloatingConversionRate

SetFloatingConversionRate sets the "floating_conversion_rate" field.

func (*ProviderOrderTokenUpsertOne) SetMaxOrderAmount

SetMaxOrderAmount sets the "max_order_amount" field.

func (*ProviderOrderTokenUpsertOne) SetMinOrderAmount

SetMinOrderAmount sets the "min_order_amount" field.

func (*ProviderOrderTokenUpsertOne) SetNetwork

SetNetwork sets the "network" field.

func (*ProviderOrderTokenUpsertOne) SetRateSlippage

SetRateSlippage sets the "rate_slippage" field.

func (*ProviderOrderTokenUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ProviderOrderTokenUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the ProviderOrderTokenCreate.OnConflict documentation for more info.

func (*ProviderOrderTokenUpsertOne) UpdateAddress

UpdateAddress sets the "address" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertOne) UpdateConversionRateType

func (u *ProviderOrderTokenUpsertOne) UpdateConversionRateType() *ProviderOrderTokenUpsertOne

UpdateConversionRateType sets the "conversion_rate_type" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertOne) UpdateFixedConversionRate

func (u *ProviderOrderTokenUpsertOne) UpdateFixedConversionRate() *ProviderOrderTokenUpsertOne

UpdateFixedConversionRate sets the "fixed_conversion_rate" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertOne) UpdateFloatingConversionRate

func (u *ProviderOrderTokenUpsertOne) UpdateFloatingConversionRate() *ProviderOrderTokenUpsertOne

UpdateFloatingConversionRate sets the "floating_conversion_rate" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertOne) UpdateMaxOrderAmount

func (u *ProviderOrderTokenUpsertOne) UpdateMaxOrderAmount() *ProviderOrderTokenUpsertOne

UpdateMaxOrderAmount sets the "max_order_amount" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertOne) UpdateMinOrderAmount

func (u *ProviderOrderTokenUpsertOne) UpdateMinOrderAmount() *ProviderOrderTokenUpsertOne

UpdateMinOrderAmount sets the "min_order_amount" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertOne) UpdateNetwork

UpdateNetwork sets the "network" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.ProviderOrderToken.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*ProviderOrderTokenUpsertOne) UpdateRateSlippage

UpdateRateSlippage sets the "rate_slippage" field to the value that was provided on create.

func (*ProviderOrderTokenUpsertOne) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type ProviderOrderTokens

type ProviderOrderTokens []*ProviderOrderToken

ProviderOrderTokens is a parsable slice of ProviderOrderToken.

type ProviderProfile

type ProviderProfile struct {

	// ID of the ent.
	ID string `json:"id,omitempty"`
	// TradingName holds the value of the "trading_name" field.
	TradingName string `json:"trading_name,omitempty"`
	// HostIdentifier holds the value of the "host_identifier" field.
	HostIdentifier string `json:"host_identifier,omitempty"`
	// ProvisionMode holds the value of the "provision_mode" field.
	ProvisionMode providerprofile.ProvisionMode `json:"provision_mode,omitempty"`
	// IsActive holds the value of the "is_active" field.
	IsActive bool `json:"is_active,omitempty"`
	// IsKybVerified holds the value of the "is_kyb_verified" field.
	IsKybVerified bool `json:"is_kyb_verified,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// VisibilityMode holds the value of the "visibility_mode" field.
	VisibilityMode providerprofile.VisibilityMode `json:"visibility_mode,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ProviderProfileQuery when eager-loading is set.
	Edges ProviderProfileEdges `json:"edges"`
	// contains filtered or unexported fields
}

ProviderProfile is the model entity for the ProviderProfile schema.

func (*ProviderProfile) QueryAPIKey

func (pp *ProviderProfile) QueryAPIKey() *APIKeyQuery

QueryAPIKey queries the "api_key" edge of the ProviderProfile entity.

func (*ProviderProfile) QueryAssignedOrders

func (pp *ProviderProfile) QueryAssignedOrders() *LockPaymentOrderQuery

QueryAssignedOrders queries the "assigned_orders" edge of the ProviderProfile entity.

func (*ProviderProfile) QueryOrderTokens

func (pp *ProviderProfile) QueryOrderTokens() *ProviderOrderTokenQuery

QueryOrderTokens queries the "order_tokens" edge of the ProviderProfile entity.

func (*ProviderProfile) QueryProviderCurrencies added in v0.0.2

func (pp *ProviderProfile) QueryProviderCurrencies() *ProviderCurrenciesQuery

QueryProviderCurrencies queries the "provider_currencies" edge of the ProviderProfile entity.

func (*ProviderProfile) QueryProviderRating

func (pp *ProviderProfile) QueryProviderRating() *ProviderRatingQuery

QueryProviderRating queries the "provider_rating" edge of the ProviderProfile entity.

func (*ProviderProfile) QueryProvisionBuckets

func (pp *ProviderProfile) QueryProvisionBuckets() *ProvisionBucketQuery

QueryProvisionBuckets queries the "provision_buckets" edge of the ProviderProfile entity.

func (*ProviderProfile) QueryUser

func (pp *ProviderProfile) QueryUser() *UserQuery

QueryUser queries the "user" edge of the ProviderProfile entity.

func (*ProviderProfile) String

func (pp *ProviderProfile) String() string

String implements the fmt.Stringer.

func (*ProviderProfile) Unwrap

func (pp *ProviderProfile) Unwrap() *ProviderProfile

Unwrap unwraps the ProviderProfile entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ProviderProfile) Update

Update returns a builder for updating this ProviderProfile. Note that you need to call ProviderProfile.Unwrap() before calling this method if this ProviderProfile was returned from a transaction, and the transaction was committed or rolled back.

func (*ProviderProfile) Value

func (pp *ProviderProfile) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ProviderProfile. This includes values selected through modifiers, order, etc.

type ProviderProfileClient

type ProviderProfileClient struct {
	// contains filtered or unexported fields
}

ProviderProfileClient is a client for the ProviderProfile schema.

func NewProviderProfileClient

func NewProviderProfileClient(c config) *ProviderProfileClient

NewProviderProfileClient returns a client for the ProviderProfile from the given config.

func (*ProviderProfileClient) Create

Create returns a builder for creating a ProviderProfile entity.

func (*ProviderProfileClient) CreateBulk

CreateBulk returns a builder for creating a bulk of ProviderProfile entities.

func (*ProviderProfileClient) Delete

Delete returns a delete builder for ProviderProfile.

func (*ProviderProfileClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*ProviderProfileClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ProviderProfileClient) Get

Get returns a ProviderProfile entity by its id.

func (*ProviderProfileClient) GetX

GetX is like Get, but panics if an error occurs.

func (*ProviderProfileClient) Hooks

func (c *ProviderProfileClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ProviderProfileClient) Intercept

func (c *ProviderProfileClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `providerprofile.Intercept(f(g(h())))`.

func (*ProviderProfileClient) Interceptors

func (c *ProviderProfileClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ProviderProfileClient) MapCreateBulk

func (c *ProviderProfileClient) MapCreateBulk(slice any, setFunc func(*ProviderProfileCreate, int)) *ProviderProfileCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ProviderProfileClient) Query

Query returns a query builder for ProviderProfile.

func (*ProviderProfileClient) QueryAPIKey

func (c *ProviderProfileClient) QueryAPIKey(pp *ProviderProfile) *APIKeyQuery

QueryAPIKey queries the api_key edge of a ProviderProfile.

func (*ProviderProfileClient) QueryAssignedOrders

func (c *ProviderProfileClient) QueryAssignedOrders(pp *ProviderProfile) *LockPaymentOrderQuery

QueryAssignedOrders queries the assigned_orders edge of a ProviderProfile.

func (*ProviderProfileClient) QueryOrderTokens

QueryOrderTokens queries the order_tokens edge of a ProviderProfile.

func (*ProviderProfileClient) QueryProviderCurrencies added in v0.0.2

func (c *ProviderProfileClient) QueryProviderCurrencies(pp *ProviderProfile) *ProviderCurrenciesQuery

QueryProviderCurrencies queries the provider_currencies edge of a ProviderProfile.

func (*ProviderProfileClient) QueryProviderRating

func (c *ProviderProfileClient) QueryProviderRating(pp *ProviderProfile) *ProviderRatingQuery

QueryProviderRating queries the provider_rating edge of a ProviderProfile.

func (*ProviderProfileClient) QueryProvisionBuckets

func (c *ProviderProfileClient) QueryProvisionBuckets(pp *ProviderProfile) *ProvisionBucketQuery

QueryProvisionBuckets queries the provision_buckets edge of a ProviderProfile.

func (*ProviderProfileClient) QueryUser

func (c *ProviderProfileClient) QueryUser(pp *ProviderProfile) *UserQuery

QueryUser queries the user edge of a ProviderProfile.

func (*ProviderProfileClient) Update

Update returns an update builder for ProviderProfile.

func (*ProviderProfileClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*ProviderProfileClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*ProviderProfileClient) Use

func (c *ProviderProfileClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `providerprofile.Hooks(f(g(h())))`.

type ProviderProfileCreate

type ProviderProfileCreate struct {
	// contains filtered or unexported fields
}

ProviderProfileCreate is the builder for creating a ProviderProfile entity.

func (*ProviderProfileCreate) AddAssignedOrderIDs

func (ppc *ProviderProfileCreate) AddAssignedOrderIDs(ids ...uuid.UUID) *ProviderProfileCreate

AddAssignedOrderIDs adds the "assigned_orders" edge to the LockPaymentOrder entity by IDs.

func (*ProviderProfileCreate) AddAssignedOrders

func (ppc *ProviderProfileCreate) AddAssignedOrders(l ...*LockPaymentOrder) *ProviderProfileCreate

AddAssignedOrders adds the "assigned_orders" edges to the LockPaymentOrder entity.

func (*ProviderProfileCreate) AddOrderTokenIDs

func (ppc *ProviderProfileCreate) AddOrderTokenIDs(ids ...int) *ProviderProfileCreate

AddOrderTokenIDs adds the "order_tokens" edge to the ProviderOrderToken entity by IDs.

func (*ProviderProfileCreate) AddOrderTokens

AddOrderTokens adds the "order_tokens" edges to the ProviderOrderToken entity.

func (*ProviderProfileCreate) AddProviderCurrencies added in v0.0.2

func (ppc *ProviderProfileCreate) AddProviderCurrencies(p ...*ProviderCurrencies) *ProviderProfileCreate

AddProviderCurrencies adds the "provider_currencies" edges to the ProviderCurrencies entity.

func (*ProviderProfileCreate) AddProviderCurrencyIDs added in v0.0.2

func (ppc *ProviderProfileCreate) AddProviderCurrencyIDs(ids ...uuid.UUID) *ProviderProfileCreate

AddProviderCurrencyIDs adds the "provider_currencies" edge to the ProviderCurrencies entity by IDs.

func (*ProviderProfileCreate) AddProvisionBucketIDs

func (ppc *ProviderProfileCreate) AddProvisionBucketIDs(ids ...int) *ProviderProfileCreate

AddProvisionBucketIDs adds the "provision_buckets" edge to the ProvisionBucket entity by IDs.

func (*ProviderProfileCreate) AddProvisionBuckets

func (ppc *ProviderProfileCreate) AddProvisionBuckets(p ...*ProvisionBucket) *ProviderProfileCreate

AddProvisionBuckets adds the "provision_buckets" edges to the ProvisionBucket entity.

func (*ProviderProfileCreate) Exec

func (ppc *ProviderProfileCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ProviderProfileCreate) ExecX

func (ppc *ProviderProfileCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderProfileCreate) Mutation

Mutation returns the ProviderProfileMutation object of the builder.

func (*ProviderProfileCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.ProviderProfile.Create().
	SetTradingName(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.ProviderProfileUpsert) {
		SetTradingName(v+v).
	}).
	Exec(ctx)

func (*ProviderProfileCreate) OnConflictColumns

func (ppc *ProviderProfileCreate) OnConflictColumns(columns ...string) *ProviderProfileUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.ProviderProfile.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*ProviderProfileCreate) Save

Save creates the ProviderProfile in the database.

func (*ProviderProfileCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*ProviderProfileCreate) SetAPIKey

SetAPIKey sets the "api_key" edge to the APIKey entity.

func (*ProviderProfileCreate) SetAPIKeyID

func (ppc *ProviderProfileCreate) SetAPIKeyID(id uuid.UUID) *ProviderProfileCreate

SetAPIKeyID sets the "api_key" edge to the APIKey entity by ID.

func (*ProviderProfileCreate) SetHostIdentifier

func (ppc *ProviderProfileCreate) SetHostIdentifier(s string) *ProviderProfileCreate

SetHostIdentifier sets the "host_identifier" field.

func (*ProviderProfileCreate) SetID

SetID sets the "id" field.

func (*ProviderProfileCreate) SetIsActive

func (ppc *ProviderProfileCreate) SetIsActive(b bool) *ProviderProfileCreate

SetIsActive sets the "is_active" field.

func (*ProviderProfileCreate) SetIsKybVerified added in v0.0.2

func (ppc *ProviderProfileCreate) SetIsKybVerified(b bool) *ProviderProfileCreate

SetIsKybVerified sets the "is_kyb_verified" field.

func (*ProviderProfileCreate) SetNillableAPIKeyID

func (ppc *ProviderProfileCreate) SetNillableAPIKeyID(id *uuid.UUID) *ProviderProfileCreate

SetNillableAPIKeyID sets the "api_key" edge to the APIKey entity by ID if the given value is not nil.

func (*ProviderProfileCreate) SetNillableHostIdentifier

func (ppc *ProviderProfileCreate) SetNillableHostIdentifier(s *string) *ProviderProfileCreate

SetNillableHostIdentifier sets the "host_identifier" field if the given value is not nil.

func (*ProviderProfileCreate) SetNillableID

func (ppc *ProviderProfileCreate) SetNillableID(s *string) *ProviderProfileCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*ProviderProfileCreate) SetNillableIsActive

func (ppc *ProviderProfileCreate) SetNillableIsActive(b *bool) *ProviderProfileCreate

SetNillableIsActive sets the "is_active" field if the given value is not nil.

func (*ProviderProfileCreate) SetNillableIsKybVerified added in v0.0.2

func (ppc *ProviderProfileCreate) SetNillableIsKybVerified(b *bool) *ProviderProfileCreate

SetNillableIsKybVerified sets the "is_kyb_verified" field if the given value is not nil.

func (*ProviderProfileCreate) SetNillableProviderRatingID

func (ppc *ProviderProfileCreate) SetNillableProviderRatingID(id *int) *ProviderProfileCreate

SetNillableProviderRatingID sets the "provider_rating" edge to the ProviderRating entity by ID if the given value is not nil.

func (*ProviderProfileCreate) SetNillableProvisionMode

func (ppc *ProviderProfileCreate) SetNillableProvisionMode(pm *providerprofile.ProvisionMode) *ProviderProfileCreate

SetNillableProvisionMode sets the "provision_mode" field if the given value is not nil.

func (*ProviderProfileCreate) SetNillableTradingName

func (ppc *ProviderProfileCreate) SetNillableTradingName(s *string) *ProviderProfileCreate

SetNillableTradingName sets the "trading_name" field if the given value is not nil.

func (*ProviderProfileCreate) SetNillableUpdatedAt

func (ppc *ProviderProfileCreate) SetNillableUpdatedAt(t *time.Time) *ProviderProfileCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ProviderProfileCreate) SetNillableVisibilityMode

func (ppc *ProviderProfileCreate) SetNillableVisibilityMode(pm *providerprofile.VisibilityMode) *ProviderProfileCreate

SetNillableVisibilityMode sets the "visibility_mode" field if the given value is not nil.

func (*ProviderProfileCreate) SetProviderRating

func (ppc *ProviderProfileCreate) SetProviderRating(p *ProviderRating) *ProviderProfileCreate

SetProviderRating sets the "provider_rating" edge to the ProviderRating entity.

func (*ProviderProfileCreate) SetProviderRatingID

func (ppc *ProviderProfileCreate) SetProviderRatingID(id int) *ProviderProfileCreate

SetProviderRatingID sets the "provider_rating" edge to the ProviderRating entity by ID.

func (*ProviderProfileCreate) SetProvisionMode

SetProvisionMode sets the "provision_mode" field.

func (*ProviderProfileCreate) SetTradingName

func (ppc *ProviderProfileCreate) SetTradingName(s string) *ProviderProfileCreate

SetTradingName sets the "trading_name" field.

func (*ProviderProfileCreate) SetUpdatedAt

func (ppc *ProviderProfileCreate) SetUpdatedAt(t time.Time) *ProviderProfileCreate

SetUpdatedAt sets the "updated_at" field.

func (*ProviderProfileCreate) SetUser

SetUser sets the "user" edge to the User entity.

func (*ProviderProfileCreate) SetUserID

SetUserID sets the "user" edge to the User entity by ID.

func (*ProviderProfileCreate) SetVisibilityMode

SetVisibilityMode sets the "visibility_mode" field.

type ProviderProfileCreateBulk

type ProviderProfileCreateBulk struct {
	// contains filtered or unexported fields
}

ProviderProfileCreateBulk is the builder for creating many ProviderProfile entities in bulk.

func (*ProviderProfileCreateBulk) Exec

Exec executes the query.

func (*ProviderProfileCreateBulk) ExecX

func (ppcb *ProviderProfileCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderProfileCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.ProviderProfile.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.ProviderProfileUpsert) {
		SetTradingName(v+v).
	}).
	Exec(ctx)

func (*ProviderProfileCreateBulk) OnConflictColumns

func (ppcb *ProviderProfileCreateBulk) OnConflictColumns(columns ...string) *ProviderProfileUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.ProviderProfile.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*ProviderProfileCreateBulk) Save

Save creates the ProviderProfile entities in the database.

func (*ProviderProfileCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type ProviderProfileDelete

type ProviderProfileDelete struct {
	// contains filtered or unexported fields
}

ProviderProfileDelete is the builder for deleting a ProviderProfile entity.

func (*ProviderProfileDelete) Exec

func (ppd *ProviderProfileDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ProviderProfileDelete) ExecX

func (ppd *ProviderProfileDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ProviderProfileDelete) Where

Where appends a list predicates to the ProviderProfileDelete builder.

type ProviderProfileDeleteOne

type ProviderProfileDeleteOne struct {
	// contains filtered or unexported fields
}

ProviderProfileDeleteOne is the builder for deleting a single ProviderProfile entity.

func (*ProviderProfileDeleteOne) Exec

Exec executes the deletion query.

func (*ProviderProfileDeleteOne) ExecX

func (ppdo *ProviderProfileDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderProfileDeleteOne) Where

Where appends a list predicates to the ProviderProfileDelete builder.

type ProviderProfileEdges

type ProviderProfileEdges struct {
	// User holds the value of the user edge.
	User *User `json:"user,omitempty"`
	// APIKey holds the value of the api_key edge.
	APIKey *APIKey `json:"api_key,omitempty"`
	// ProviderCurrencies holds the value of the provider_currencies edge.
	ProviderCurrencies []*ProviderCurrencies `json:"provider_currencies,omitempty"`
	// ProvisionBuckets holds the value of the provision_buckets edge.
	ProvisionBuckets []*ProvisionBucket `json:"provision_buckets,omitempty"`
	// OrderTokens holds the value of the order_tokens edge.
	OrderTokens []*ProviderOrderToken `json:"order_tokens,omitempty"`
	// ProviderRating holds the value of the provider_rating edge.
	ProviderRating *ProviderRating `json:"provider_rating,omitempty"`
	// AssignedOrders holds the value of the assigned_orders edge.
	AssignedOrders []*LockPaymentOrder `json:"assigned_orders,omitempty"`
	// contains filtered or unexported fields
}

ProviderProfileEdges holds the relations/edges for other nodes in the graph.

func (ProviderProfileEdges) APIKeyOrErr

func (e ProviderProfileEdges) APIKeyOrErr() (*APIKey, error)

APIKeyOrErr returns the APIKey value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ProviderProfileEdges) AssignedOrdersOrErr

func (e ProviderProfileEdges) AssignedOrdersOrErr() ([]*LockPaymentOrder, error)

AssignedOrdersOrErr returns the AssignedOrders value or an error if the edge was not loaded in eager-loading.

func (ProviderProfileEdges) OrderTokensOrErr

func (e ProviderProfileEdges) OrderTokensOrErr() ([]*ProviderOrderToken, error)

OrderTokensOrErr returns the OrderTokens value or an error if the edge was not loaded in eager-loading.

func (ProviderProfileEdges) ProviderCurrenciesOrErr added in v0.0.2

func (e ProviderProfileEdges) ProviderCurrenciesOrErr() ([]*ProviderCurrencies, error)

ProviderCurrenciesOrErr returns the ProviderCurrencies value or an error if the edge was not loaded in eager-loading.

func (ProviderProfileEdges) ProviderRatingOrErr

func (e ProviderProfileEdges) ProviderRatingOrErr() (*ProviderRating, error)

ProviderRatingOrErr returns the ProviderRating value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ProviderProfileEdges) ProvisionBucketsOrErr

func (e ProviderProfileEdges) ProvisionBucketsOrErr() ([]*ProvisionBucket, error)

ProvisionBucketsOrErr returns the ProvisionBuckets value or an error if the edge was not loaded in eager-loading.

func (ProviderProfileEdges) UserOrErr

func (e ProviderProfileEdges) UserOrErr() (*User, error)

UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ProviderProfileGroupBy

type ProviderProfileGroupBy struct {
	// contains filtered or unexported fields
}

ProviderProfileGroupBy is the group-by builder for ProviderProfile entities.

func (*ProviderProfileGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*ProviderProfileGroupBy) Bool

func (s *ProviderProfileGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ProviderProfileGroupBy) BoolX

func (s *ProviderProfileGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ProviderProfileGroupBy) Bools

func (s *ProviderProfileGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ProviderProfileGroupBy) BoolsX

func (s *ProviderProfileGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ProviderProfileGroupBy) Float64

func (s *ProviderProfileGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ProviderProfileGroupBy) Float64X

func (s *ProviderProfileGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ProviderProfileGroupBy) Float64s

func (s *ProviderProfileGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ProviderProfileGroupBy) Float64sX

func (s *ProviderProfileGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ProviderProfileGroupBy) Int

func (s *ProviderProfileGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ProviderProfileGroupBy) IntX

func (s *ProviderProfileGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ProviderProfileGroupBy) Ints

func (s *ProviderProfileGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ProviderProfileGroupBy) IntsX

func (s *ProviderProfileGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ProviderProfileGroupBy) Scan

func (ppgb *ProviderProfileGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ProviderProfileGroupBy) ScanX

func (s *ProviderProfileGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ProviderProfileGroupBy) String

func (s *ProviderProfileGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ProviderProfileGroupBy) StringX

func (s *ProviderProfileGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ProviderProfileGroupBy) Strings

func (s *ProviderProfileGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ProviderProfileGroupBy) StringsX

func (s *ProviderProfileGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ProviderProfileMutation

type ProviderProfileMutation struct {
	// contains filtered or unexported fields
}

ProviderProfileMutation represents an operation that mutates the ProviderProfile nodes in the graph.

func (*ProviderProfileMutation) APIKeyCleared

func (m *ProviderProfileMutation) APIKeyCleared() bool

APIKeyCleared reports if the "api_key" edge to the APIKey entity was cleared.

func (*ProviderProfileMutation) APIKeyID

func (m *ProviderProfileMutation) APIKeyID() (id uuid.UUID, exists bool)

APIKeyID returns the "api_key" edge ID in the mutation.

func (*ProviderProfileMutation) APIKeyIDs

func (m *ProviderProfileMutation) APIKeyIDs() (ids []uuid.UUID)

APIKeyIDs returns the "api_key" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use APIKeyID instead. It exists only for internal usage by the builders.

func (*ProviderProfileMutation) AddAssignedOrderIDs

func (m *ProviderProfileMutation) AddAssignedOrderIDs(ids ...uuid.UUID)

AddAssignedOrderIDs adds the "assigned_orders" edge to the LockPaymentOrder entity by ids.

func (*ProviderProfileMutation) AddField

func (m *ProviderProfileMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ProviderProfileMutation) AddOrderTokenIDs

func (m *ProviderProfileMutation) AddOrderTokenIDs(ids ...int)

AddOrderTokenIDs adds the "order_tokens" edge to the ProviderOrderToken entity by ids.

func (*ProviderProfileMutation) AddProviderCurrencyIDs added in v0.0.2

func (m *ProviderProfileMutation) AddProviderCurrencyIDs(ids ...uuid.UUID)

AddProviderCurrencyIDs adds the "provider_currencies" edge to the ProviderCurrencies entity by ids.

func (*ProviderProfileMutation) AddProvisionBucketIDs

func (m *ProviderProfileMutation) AddProvisionBucketIDs(ids ...int)

AddProvisionBucketIDs adds the "provision_buckets" edge to the ProvisionBucket entity by ids.

func (*ProviderProfileMutation) AddedEdges

func (m *ProviderProfileMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ProviderProfileMutation) AddedField

func (m *ProviderProfileMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ProviderProfileMutation) AddedFields

func (m *ProviderProfileMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ProviderProfileMutation) AddedIDs

func (m *ProviderProfileMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ProviderProfileMutation) AssignedOrdersCleared

func (m *ProviderProfileMutation) AssignedOrdersCleared() bool

AssignedOrdersCleared reports if the "assigned_orders" edge to the LockPaymentOrder entity was cleared.

func (*ProviderProfileMutation) AssignedOrdersIDs

func (m *ProviderProfileMutation) AssignedOrdersIDs() (ids []uuid.UUID)

AssignedOrdersIDs returns the "assigned_orders" edge IDs in the mutation.

func (*ProviderProfileMutation) ClearAPIKey

func (m *ProviderProfileMutation) ClearAPIKey()

ClearAPIKey clears the "api_key" edge to the APIKey entity.

func (*ProviderProfileMutation) ClearAssignedOrders

func (m *ProviderProfileMutation) ClearAssignedOrders()

ClearAssignedOrders clears the "assigned_orders" edge to the LockPaymentOrder entity.

func (*ProviderProfileMutation) ClearEdge

func (m *ProviderProfileMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ProviderProfileMutation) ClearField

func (m *ProviderProfileMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ProviderProfileMutation) ClearHostIdentifier

func (m *ProviderProfileMutation) ClearHostIdentifier()

ClearHostIdentifier clears the value of the "host_identifier" field.

func (*ProviderProfileMutation) ClearOrderTokens

func (m *ProviderProfileMutation) ClearOrderTokens()

ClearOrderTokens clears the "order_tokens" edge to the ProviderOrderToken entity.

func (*ProviderProfileMutation) ClearProviderCurrencies added in v0.0.2

func (m *ProviderProfileMutation) ClearProviderCurrencies()

ClearProviderCurrencies clears the "provider_currencies" edge to the ProviderCurrencies entity.

func (*ProviderProfileMutation) ClearProviderRating

func (m *ProviderProfileMutation) ClearProviderRating()

ClearProviderRating clears the "provider_rating" edge to the ProviderRating entity.

func (*ProviderProfileMutation) ClearProvisionBuckets

func (m *ProviderProfileMutation) ClearProvisionBuckets()

ClearProvisionBuckets clears the "provision_buckets" edge to the ProvisionBucket entity.

func (*ProviderProfileMutation) ClearTradingName

func (m *ProviderProfileMutation) ClearTradingName()

ClearTradingName clears the value of the "trading_name" field.

func (*ProviderProfileMutation) ClearUser

func (m *ProviderProfileMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*ProviderProfileMutation) ClearedEdges

func (m *ProviderProfileMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ProviderProfileMutation) ClearedFields

func (m *ProviderProfileMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ProviderProfileMutation) Client

func (m ProviderProfileMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ProviderProfileMutation) EdgeCleared

func (m *ProviderProfileMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ProviderProfileMutation) Field

func (m *ProviderProfileMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ProviderProfileMutation) FieldCleared

func (m *ProviderProfileMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ProviderProfileMutation) Fields

func (m *ProviderProfileMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ProviderProfileMutation) HostIdentifier

func (m *ProviderProfileMutation) HostIdentifier() (r string, exists bool)

HostIdentifier returns the value of the "host_identifier" field in the mutation.

func (*ProviderProfileMutation) HostIdentifierCleared

func (m *ProviderProfileMutation) HostIdentifierCleared() bool

HostIdentifierCleared returns if the "host_identifier" field was cleared in this mutation.

func (*ProviderProfileMutation) ID

func (m *ProviderProfileMutation) ID() (id string, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ProviderProfileMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*ProviderProfileMutation) IsActive

func (m *ProviderProfileMutation) IsActive() (r bool, exists bool)

IsActive returns the value of the "is_active" field in the mutation.

func (*ProviderProfileMutation) IsKybVerified added in v0.0.2

func (m *ProviderProfileMutation) IsKybVerified() (r bool, exists bool)

IsKybVerified returns the value of the "is_kyb_verified" field in the mutation.

func (*ProviderProfileMutation) OldField

func (m *ProviderProfileMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ProviderProfileMutation) OldHostIdentifier

func (m *ProviderProfileMutation) OldHostIdentifier(ctx context.Context) (v string, err error)

OldHostIdentifier returns the old "host_identifier" field's value of the ProviderProfile entity. If the ProviderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderProfileMutation) OldIsActive

func (m *ProviderProfileMutation) OldIsActive(ctx context.Context) (v bool, err error)

OldIsActive returns the old "is_active" field's value of the ProviderProfile entity. If the ProviderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderProfileMutation) OldIsKybVerified added in v0.0.2

func (m *ProviderProfileMutation) OldIsKybVerified(ctx context.Context) (v bool, err error)

OldIsKybVerified returns the old "is_kyb_verified" field's value of the ProviderProfile entity. If the ProviderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderProfileMutation) OldProvisionMode

func (m *ProviderProfileMutation) OldProvisionMode(ctx context.Context) (v providerprofile.ProvisionMode, err error)

OldProvisionMode returns the old "provision_mode" field's value of the ProviderProfile entity. If the ProviderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderProfileMutation) OldTradingName

func (m *ProviderProfileMutation) OldTradingName(ctx context.Context) (v string, err error)

OldTradingName returns the old "trading_name" field's value of the ProviderProfile entity. If the ProviderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderProfileMutation) OldUpdatedAt

func (m *ProviderProfileMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ProviderProfile entity. If the ProviderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderProfileMutation) OldVisibilityMode

func (m *ProviderProfileMutation) OldVisibilityMode(ctx context.Context) (v providerprofile.VisibilityMode, err error)

OldVisibilityMode returns the old "visibility_mode" field's value of the ProviderProfile entity. If the ProviderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderProfileMutation) Op

func (m *ProviderProfileMutation) Op() Op

Op returns the operation name.

func (*ProviderProfileMutation) OrderTokensCleared

func (m *ProviderProfileMutation) OrderTokensCleared() bool

OrderTokensCleared reports if the "order_tokens" edge to the ProviderOrderToken entity was cleared.

func (*ProviderProfileMutation) OrderTokensIDs

func (m *ProviderProfileMutation) OrderTokensIDs() (ids []int)

OrderTokensIDs returns the "order_tokens" edge IDs in the mutation.

func (*ProviderProfileMutation) ProviderCurrenciesCleared added in v0.0.2

func (m *ProviderProfileMutation) ProviderCurrenciesCleared() bool

ProviderCurrenciesCleared reports if the "provider_currencies" edge to the ProviderCurrencies entity was cleared.

func (*ProviderProfileMutation) ProviderCurrenciesIDs added in v0.0.2

func (m *ProviderProfileMutation) ProviderCurrenciesIDs() (ids []uuid.UUID)

ProviderCurrenciesIDs returns the "provider_currencies" edge IDs in the mutation.

func (*ProviderProfileMutation) ProviderRatingCleared

func (m *ProviderProfileMutation) ProviderRatingCleared() bool

ProviderRatingCleared reports if the "provider_rating" edge to the ProviderRating entity was cleared.

func (*ProviderProfileMutation) ProviderRatingID

func (m *ProviderProfileMutation) ProviderRatingID() (id int, exists bool)

ProviderRatingID returns the "provider_rating" edge ID in the mutation.

func (*ProviderProfileMutation) ProviderRatingIDs

func (m *ProviderProfileMutation) ProviderRatingIDs() (ids []int)

ProviderRatingIDs returns the "provider_rating" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProviderRatingID instead. It exists only for internal usage by the builders.

func (*ProviderProfileMutation) ProvisionBucketsCleared

func (m *ProviderProfileMutation) ProvisionBucketsCleared() bool

ProvisionBucketsCleared reports if the "provision_buckets" edge to the ProvisionBucket entity was cleared.

func (*ProviderProfileMutation) ProvisionBucketsIDs

func (m *ProviderProfileMutation) ProvisionBucketsIDs() (ids []int)

ProvisionBucketsIDs returns the "provision_buckets" edge IDs in the mutation.

func (*ProviderProfileMutation) ProvisionMode

func (m *ProviderProfileMutation) ProvisionMode() (r providerprofile.ProvisionMode, exists bool)

ProvisionMode returns the value of the "provision_mode" field in the mutation.

func (*ProviderProfileMutation) RemoveAssignedOrderIDs

func (m *ProviderProfileMutation) RemoveAssignedOrderIDs(ids ...uuid.UUID)

RemoveAssignedOrderIDs removes the "assigned_orders" edge to the LockPaymentOrder entity by IDs.

func (*ProviderProfileMutation) RemoveOrderTokenIDs

func (m *ProviderProfileMutation) RemoveOrderTokenIDs(ids ...int)

RemoveOrderTokenIDs removes the "order_tokens" edge to the ProviderOrderToken entity by IDs.

func (*ProviderProfileMutation) RemoveProviderCurrencyIDs added in v0.0.2

func (m *ProviderProfileMutation) RemoveProviderCurrencyIDs(ids ...uuid.UUID)

RemoveProviderCurrencyIDs removes the "provider_currencies" edge to the ProviderCurrencies entity by IDs.

func (*ProviderProfileMutation) RemoveProvisionBucketIDs

func (m *ProviderProfileMutation) RemoveProvisionBucketIDs(ids ...int)

RemoveProvisionBucketIDs removes the "provision_buckets" edge to the ProvisionBucket entity by IDs.

func (*ProviderProfileMutation) RemovedAssignedOrdersIDs

func (m *ProviderProfileMutation) RemovedAssignedOrdersIDs() (ids []uuid.UUID)

RemovedAssignedOrders returns the removed IDs of the "assigned_orders" edge to the LockPaymentOrder entity.

func (*ProviderProfileMutation) RemovedEdges

func (m *ProviderProfileMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ProviderProfileMutation) RemovedIDs

func (m *ProviderProfileMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ProviderProfileMutation) RemovedOrderTokensIDs

func (m *ProviderProfileMutation) RemovedOrderTokensIDs() (ids []int)

RemovedOrderTokens returns the removed IDs of the "order_tokens" edge to the ProviderOrderToken entity.

func (*ProviderProfileMutation) RemovedProviderCurrenciesIDs added in v0.0.2

func (m *ProviderProfileMutation) RemovedProviderCurrenciesIDs() (ids []uuid.UUID)

RemovedProviderCurrencies returns the removed IDs of the "provider_currencies" edge to the ProviderCurrencies entity.

func (*ProviderProfileMutation) RemovedProvisionBucketsIDs

func (m *ProviderProfileMutation) RemovedProvisionBucketsIDs() (ids []int)

RemovedProvisionBuckets returns the removed IDs of the "provision_buckets" edge to the ProvisionBucket entity.

func (*ProviderProfileMutation) ResetAPIKey

func (m *ProviderProfileMutation) ResetAPIKey()

ResetAPIKey resets all changes to the "api_key" edge.

func (*ProviderProfileMutation) ResetAssignedOrders

func (m *ProviderProfileMutation) ResetAssignedOrders()

ResetAssignedOrders resets all changes to the "assigned_orders" edge.

func (*ProviderProfileMutation) ResetEdge

func (m *ProviderProfileMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ProviderProfileMutation) ResetField

func (m *ProviderProfileMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ProviderProfileMutation) ResetHostIdentifier

func (m *ProviderProfileMutation) ResetHostIdentifier()

ResetHostIdentifier resets all changes to the "host_identifier" field.

func (*ProviderProfileMutation) ResetIsActive

func (m *ProviderProfileMutation) ResetIsActive()

ResetIsActive resets all changes to the "is_active" field.

func (*ProviderProfileMutation) ResetIsKybVerified added in v0.0.2

func (m *ProviderProfileMutation) ResetIsKybVerified()

ResetIsKybVerified resets all changes to the "is_kyb_verified" field.

func (*ProviderProfileMutation) ResetOrderTokens

func (m *ProviderProfileMutation) ResetOrderTokens()

ResetOrderTokens resets all changes to the "order_tokens" edge.

func (*ProviderProfileMutation) ResetProviderCurrencies added in v0.0.2

func (m *ProviderProfileMutation) ResetProviderCurrencies()

ResetProviderCurrencies resets all changes to the "provider_currencies" edge.

func (*ProviderProfileMutation) ResetProviderRating

func (m *ProviderProfileMutation) ResetProviderRating()

ResetProviderRating resets all changes to the "provider_rating" edge.

func (*ProviderProfileMutation) ResetProvisionBuckets

func (m *ProviderProfileMutation) ResetProvisionBuckets()

ResetProvisionBuckets resets all changes to the "provision_buckets" edge.

func (*ProviderProfileMutation) ResetProvisionMode

func (m *ProviderProfileMutation) ResetProvisionMode()

ResetProvisionMode resets all changes to the "provision_mode" field.

func (*ProviderProfileMutation) ResetTradingName

func (m *ProviderProfileMutation) ResetTradingName()

ResetTradingName resets all changes to the "trading_name" field.

func (*ProviderProfileMutation) ResetUpdatedAt

func (m *ProviderProfileMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ProviderProfileMutation) ResetUser

func (m *ProviderProfileMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*ProviderProfileMutation) ResetVisibilityMode

func (m *ProviderProfileMutation) ResetVisibilityMode()

ResetVisibilityMode resets all changes to the "visibility_mode" field.

func (*ProviderProfileMutation) SetAPIKeyID

func (m *ProviderProfileMutation) SetAPIKeyID(id uuid.UUID)

SetAPIKeyID sets the "api_key" edge to the APIKey entity by id.

func (*ProviderProfileMutation) SetField

func (m *ProviderProfileMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ProviderProfileMutation) SetHostIdentifier

func (m *ProviderProfileMutation) SetHostIdentifier(s string)

SetHostIdentifier sets the "host_identifier" field.

func (*ProviderProfileMutation) SetID

func (m *ProviderProfileMutation) SetID(id string)

SetID sets the value of the id field. Note that this operation is only accepted on creation of ProviderProfile entities.

func (*ProviderProfileMutation) SetIsActive

func (m *ProviderProfileMutation) SetIsActive(b bool)

SetIsActive sets the "is_active" field.

func (*ProviderProfileMutation) SetIsKybVerified added in v0.0.2

func (m *ProviderProfileMutation) SetIsKybVerified(b bool)

SetIsKybVerified sets the "is_kyb_verified" field.

func (*ProviderProfileMutation) SetOp

func (m *ProviderProfileMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ProviderProfileMutation) SetProviderRatingID

func (m *ProviderProfileMutation) SetProviderRatingID(id int)

SetProviderRatingID sets the "provider_rating" edge to the ProviderRating entity by id.

func (*ProviderProfileMutation) SetProvisionMode

func (m *ProviderProfileMutation) SetProvisionMode(pm providerprofile.ProvisionMode)

SetProvisionMode sets the "provision_mode" field.

func (*ProviderProfileMutation) SetTradingName

func (m *ProviderProfileMutation) SetTradingName(s string)

SetTradingName sets the "trading_name" field.

func (*ProviderProfileMutation) SetUpdatedAt

func (m *ProviderProfileMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*ProviderProfileMutation) SetUserID

func (m *ProviderProfileMutation) SetUserID(id uuid.UUID)

SetUserID sets the "user" edge to the User entity by id.

func (*ProviderProfileMutation) SetVisibilityMode

func (m *ProviderProfileMutation) SetVisibilityMode(pm providerprofile.VisibilityMode)

SetVisibilityMode sets the "visibility_mode" field.

func (*ProviderProfileMutation) TradingName

func (m *ProviderProfileMutation) TradingName() (r string, exists bool)

TradingName returns the value of the "trading_name" field in the mutation.

func (*ProviderProfileMutation) TradingNameCleared

func (m *ProviderProfileMutation) TradingNameCleared() bool

TradingNameCleared returns if the "trading_name" field was cleared in this mutation.

func (ProviderProfileMutation) Tx

func (m ProviderProfileMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ProviderProfileMutation) Type

func (m *ProviderProfileMutation) Type() string

Type returns the node type of this mutation (ProviderProfile).

func (*ProviderProfileMutation) UpdatedAt

func (m *ProviderProfileMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ProviderProfileMutation) UserCleared

func (m *ProviderProfileMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*ProviderProfileMutation) UserID

func (m *ProviderProfileMutation) UserID() (id uuid.UUID, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*ProviderProfileMutation) UserIDs

func (m *ProviderProfileMutation) UserIDs() (ids []uuid.UUID)

UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.

func (*ProviderProfileMutation) VisibilityMode

func (m *ProviderProfileMutation) VisibilityMode() (r providerprofile.VisibilityMode, exists bool)

VisibilityMode returns the value of the "visibility_mode" field in the mutation.

func (*ProviderProfileMutation) Where

Where appends a list predicates to the ProviderProfileMutation builder.

func (*ProviderProfileMutation) WhereP

func (m *ProviderProfileMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ProviderProfileMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ProviderProfileQuery

type ProviderProfileQuery struct {
	// contains filtered or unexported fields
}

ProviderProfileQuery is the builder for querying ProviderProfile entities.

func (*ProviderProfileQuery) Aggregate

Aggregate returns a ProviderProfileSelect configured with the given aggregations.

func (*ProviderProfileQuery) All

All executes the query and returns a list of ProviderProfiles.

func (*ProviderProfileQuery) AllX

AllX is like All, but panics if an error occurs.

func (*ProviderProfileQuery) Clone

Clone returns a duplicate of the ProviderProfileQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ProviderProfileQuery) Count

func (ppq *ProviderProfileQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ProviderProfileQuery) CountX

func (ppq *ProviderProfileQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ProviderProfileQuery) Exist

func (ppq *ProviderProfileQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ProviderProfileQuery) ExistX

func (ppq *ProviderProfileQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ProviderProfileQuery) First

First returns the first ProviderProfile entity from the query. Returns a *NotFoundError when no ProviderProfile was found.

func (*ProviderProfileQuery) FirstID

func (ppq *ProviderProfileQuery) FirstID(ctx context.Context) (id string, err error)

FirstID returns the first ProviderProfile ID from the query. Returns a *NotFoundError when no ProviderProfile ID was found.

func (*ProviderProfileQuery) FirstIDX

func (ppq *ProviderProfileQuery) FirstIDX(ctx context.Context) string

FirstIDX is like FirstID, but panics if an error occurs.

func (*ProviderProfileQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*ProviderProfileQuery) GroupBy

func (ppq *ProviderProfileQuery) GroupBy(field string, fields ...string) *ProviderProfileGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	TradingName string `json:"trading_name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ProviderProfile.Query().
	GroupBy(providerprofile.FieldTradingName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ProviderProfileQuery) IDs

func (ppq *ProviderProfileQuery) IDs(ctx context.Context) (ids []string, err error)

IDs executes the query and returns a list of ProviderProfile IDs.

func (*ProviderProfileQuery) IDsX

func (ppq *ProviderProfileQuery) IDsX(ctx context.Context) []string

IDsX is like IDs, but panics if an error occurs.

func (*ProviderProfileQuery) Limit

func (ppq *ProviderProfileQuery) Limit(limit int) *ProviderProfileQuery

Limit the number of records to be returned by this query.

func (*ProviderProfileQuery) Offset

func (ppq *ProviderProfileQuery) Offset(offset int) *ProviderProfileQuery

Offset to start from.

func (*ProviderProfileQuery) Only

Only returns a single ProviderProfile entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ProviderProfile entity is found. Returns a *NotFoundError when no ProviderProfile entities are found.

func (*ProviderProfileQuery) OnlyID

func (ppq *ProviderProfileQuery) OnlyID(ctx context.Context) (id string, err error)

OnlyID is like Only, but returns the only ProviderProfile ID in the query. Returns a *NotSingularError when more than one ProviderProfile ID is found. Returns a *NotFoundError when no entities are found.

func (*ProviderProfileQuery) OnlyIDX

func (ppq *ProviderProfileQuery) OnlyIDX(ctx context.Context) string

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ProviderProfileQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*ProviderProfileQuery) Order

Order specifies how the records should be ordered.

func (*ProviderProfileQuery) QueryAPIKey

func (ppq *ProviderProfileQuery) QueryAPIKey() *APIKeyQuery

QueryAPIKey chains the current query on the "api_key" edge.

func (*ProviderProfileQuery) QueryAssignedOrders

func (ppq *ProviderProfileQuery) QueryAssignedOrders() *LockPaymentOrderQuery

QueryAssignedOrders chains the current query on the "assigned_orders" edge.

func (*ProviderProfileQuery) QueryOrderTokens

func (ppq *ProviderProfileQuery) QueryOrderTokens() *ProviderOrderTokenQuery

QueryOrderTokens chains the current query on the "order_tokens" edge.

func (*ProviderProfileQuery) QueryProviderCurrencies added in v0.0.2

func (ppq *ProviderProfileQuery) QueryProviderCurrencies() *ProviderCurrenciesQuery

QueryProviderCurrencies chains the current query on the "provider_currencies" edge.

func (*ProviderProfileQuery) QueryProviderRating

func (ppq *ProviderProfileQuery) QueryProviderRating() *ProviderRatingQuery

QueryProviderRating chains the current query on the "provider_rating" edge.

func (*ProviderProfileQuery) QueryProvisionBuckets

func (ppq *ProviderProfileQuery) QueryProvisionBuckets() *ProvisionBucketQuery

QueryProvisionBuckets chains the current query on the "provision_buckets" edge.

func (*ProviderProfileQuery) QueryUser

func (ppq *ProviderProfileQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*ProviderProfileQuery) Select

func (ppq *ProviderProfileQuery) Select(fields ...string) *ProviderProfileSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	TradingName string `json:"trading_name,omitempty"`
}

client.ProviderProfile.Query().
	Select(providerprofile.FieldTradingName).
	Scan(ctx, &v)

func (*ProviderProfileQuery) Unique

func (ppq *ProviderProfileQuery) Unique(unique bool) *ProviderProfileQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ProviderProfileQuery) Where

Where adds a new predicate for the ProviderProfileQuery builder.

func (*ProviderProfileQuery) WithAPIKey

func (ppq *ProviderProfileQuery) WithAPIKey(opts ...func(*APIKeyQuery)) *ProviderProfileQuery

WithAPIKey tells the query-builder to eager-load the nodes that are connected to the "api_key" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProviderProfileQuery) WithAssignedOrders

func (ppq *ProviderProfileQuery) WithAssignedOrders(opts ...func(*LockPaymentOrderQuery)) *ProviderProfileQuery

WithAssignedOrders tells the query-builder to eager-load the nodes that are connected to the "assigned_orders" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProviderProfileQuery) WithOrderTokens

func (ppq *ProviderProfileQuery) WithOrderTokens(opts ...func(*ProviderOrderTokenQuery)) *ProviderProfileQuery

WithOrderTokens tells the query-builder to eager-load the nodes that are connected to the "order_tokens" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProviderProfileQuery) WithProviderCurrencies added in v0.0.2

func (ppq *ProviderProfileQuery) WithProviderCurrencies(opts ...func(*ProviderCurrenciesQuery)) *ProviderProfileQuery

WithProviderCurrencies tells the query-builder to eager-load the nodes that are connected to the "provider_currencies" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProviderProfileQuery) WithProviderRating

func (ppq *ProviderProfileQuery) WithProviderRating(opts ...func(*ProviderRatingQuery)) *ProviderProfileQuery

WithProviderRating tells the query-builder to eager-load the nodes that are connected to the "provider_rating" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProviderProfileQuery) WithProvisionBuckets

func (ppq *ProviderProfileQuery) WithProvisionBuckets(opts ...func(*ProvisionBucketQuery)) *ProviderProfileQuery

WithProvisionBuckets tells the query-builder to eager-load the nodes that are connected to the "provision_buckets" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProviderProfileQuery) WithUser

func (ppq *ProviderProfileQuery) WithUser(opts ...func(*UserQuery)) *ProviderProfileQuery

WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.

type ProviderProfileSelect

type ProviderProfileSelect struct {
	*ProviderProfileQuery
	// contains filtered or unexported fields
}

ProviderProfileSelect is the builder for selecting fields of ProviderProfile entities.

func (*ProviderProfileSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*ProviderProfileSelect) Bool

func (s *ProviderProfileSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ProviderProfileSelect) BoolX

func (s *ProviderProfileSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ProviderProfileSelect) Bools

func (s *ProviderProfileSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ProviderProfileSelect) BoolsX

func (s *ProviderProfileSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ProviderProfileSelect) Float64

func (s *ProviderProfileSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ProviderProfileSelect) Float64X

func (s *ProviderProfileSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ProviderProfileSelect) Float64s

func (s *ProviderProfileSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ProviderProfileSelect) Float64sX

func (s *ProviderProfileSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ProviderProfileSelect) Int

func (s *ProviderProfileSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ProviderProfileSelect) IntX

func (s *ProviderProfileSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ProviderProfileSelect) Ints

func (s *ProviderProfileSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ProviderProfileSelect) IntsX

func (s *ProviderProfileSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ProviderProfileSelect) Scan

func (pps *ProviderProfileSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ProviderProfileSelect) ScanX

func (s *ProviderProfileSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ProviderProfileSelect) String

func (s *ProviderProfileSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ProviderProfileSelect) StringX

func (s *ProviderProfileSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ProviderProfileSelect) Strings

func (s *ProviderProfileSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ProviderProfileSelect) StringsX

func (s *ProviderProfileSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ProviderProfileUpdate

type ProviderProfileUpdate struct {
	// contains filtered or unexported fields
}

ProviderProfileUpdate is the builder for updating ProviderProfile entities.

func (*ProviderProfileUpdate) AddAssignedOrderIDs

func (ppu *ProviderProfileUpdate) AddAssignedOrderIDs(ids ...uuid.UUID) *ProviderProfileUpdate

AddAssignedOrderIDs adds the "assigned_orders" edge to the LockPaymentOrder entity by IDs.

func (*ProviderProfileUpdate) AddAssignedOrders

func (ppu *ProviderProfileUpdate) AddAssignedOrders(l ...*LockPaymentOrder) *ProviderProfileUpdate

AddAssignedOrders adds the "assigned_orders" edges to the LockPaymentOrder entity.

func (*ProviderProfileUpdate) AddOrderTokenIDs

func (ppu *ProviderProfileUpdate) AddOrderTokenIDs(ids ...int) *ProviderProfileUpdate

AddOrderTokenIDs adds the "order_tokens" edge to the ProviderOrderToken entity by IDs.

func (*ProviderProfileUpdate) AddOrderTokens

AddOrderTokens adds the "order_tokens" edges to the ProviderOrderToken entity.

func (*ProviderProfileUpdate) AddProviderCurrencies added in v0.0.2

func (ppu *ProviderProfileUpdate) AddProviderCurrencies(p ...*ProviderCurrencies) *ProviderProfileUpdate

AddProviderCurrencies adds the "provider_currencies" edges to the ProviderCurrencies entity.

func (*ProviderProfileUpdate) AddProviderCurrencyIDs added in v0.0.2

func (ppu *ProviderProfileUpdate) AddProviderCurrencyIDs(ids ...uuid.UUID) *ProviderProfileUpdate

AddProviderCurrencyIDs adds the "provider_currencies" edge to the ProviderCurrencies entity by IDs.

func (*ProviderProfileUpdate) AddProvisionBucketIDs

func (ppu *ProviderProfileUpdate) AddProvisionBucketIDs(ids ...int) *ProviderProfileUpdate

AddProvisionBucketIDs adds the "provision_buckets" edge to the ProvisionBucket entity by IDs.

func (*ProviderProfileUpdate) AddProvisionBuckets

func (ppu *ProviderProfileUpdate) AddProvisionBuckets(p ...*ProvisionBucket) *ProviderProfileUpdate

AddProvisionBuckets adds the "provision_buckets" edges to the ProvisionBucket entity.

func (*ProviderProfileUpdate) ClearAPIKey

func (ppu *ProviderProfileUpdate) ClearAPIKey() *ProviderProfileUpdate

ClearAPIKey clears the "api_key" edge to the APIKey entity.

func (*ProviderProfileUpdate) ClearAssignedOrders

func (ppu *ProviderProfileUpdate) ClearAssignedOrders() *ProviderProfileUpdate

ClearAssignedOrders clears all "assigned_orders" edges to the LockPaymentOrder entity.

func (*ProviderProfileUpdate) ClearHostIdentifier

func (ppu *ProviderProfileUpdate) ClearHostIdentifier() *ProviderProfileUpdate

ClearHostIdentifier clears the value of the "host_identifier" field.

func (*ProviderProfileUpdate) ClearOrderTokens

func (ppu *ProviderProfileUpdate) ClearOrderTokens() *ProviderProfileUpdate

ClearOrderTokens clears all "order_tokens" edges to the ProviderOrderToken entity.

func (*ProviderProfileUpdate) ClearProviderCurrencies added in v0.0.2

func (ppu *ProviderProfileUpdate) ClearProviderCurrencies() *ProviderProfileUpdate

ClearProviderCurrencies clears all "provider_currencies" edges to the ProviderCurrencies entity.

func (*ProviderProfileUpdate) ClearProviderRating

func (ppu *ProviderProfileUpdate) ClearProviderRating() *ProviderProfileUpdate

ClearProviderRating clears the "provider_rating" edge to the ProviderRating entity.

func (*ProviderProfileUpdate) ClearProvisionBuckets

func (ppu *ProviderProfileUpdate) ClearProvisionBuckets() *ProviderProfileUpdate

ClearProvisionBuckets clears all "provision_buckets" edges to the ProvisionBucket entity.

func (*ProviderProfileUpdate) ClearTradingName

func (ppu *ProviderProfileUpdate) ClearTradingName() *ProviderProfileUpdate

ClearTradingName clears the value of the "trading_name" field.

func (*ProviderProfileUpdate) Exec

func (ppu *ProviderProfileUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ProviderProfileUpdate) ExecX

func (ppu *ProviderProfileUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderProfileUpdate) Mutation

Mutation returns the ProviderProfileMutation object of the builder.

func (*ProviderProfileUpdate) RemoveAssignedOrderIDs

func (ppu *ProviderProfileUpdate) RemoveAssignedOrderIDs(ids ...uuid.UUID) *ProviderProfileUpdate

RemoveAssignedOrderIDs removes the "assigned_orders" edge to LockPaymentOrder entities by IDs.

func (*ProviderProfileUpdate) RemoveAssignedOrders

func (ppu *ProviderProfileUpdate) RemoveAssignedOrders(l ...*LockPaymentOrder) *ProviderProfileUpdate

RemoveAssignedOrders removes "assigned_orders" edges to LockPaymentOrder entities.

func (*ProviderProfileUpdate) RemoveOrderTokenIDs

func (ppu *ProviderProfileUpdate) RemoveOrderTokenIDs(ids ...int) *ProviderProfileUpdate

RemoveOrderTokenIDs removes the "order_tokens" edge to ProviderOrderToken entities by IDs.

func (*ProviderProfileUpdate) RemoveOrderTokens

func (ppu *ProviderProfileUpdate) RemoveOrderTokens(p ...*ProviderOrderToken) *ProviderProfileUpdate

RemoveOrderTokens removes "order_tokens" edges to ProviderOrderToken entities.

func (*ProviderProfileUpdate) RemoveProviderCurrencies added in v0.0.2

func (ppu *ProviderProfileUpdate) RemoveProviderCurrencies(p ...*ProviderCurrencies) *ProviderProfileUpdate

RemoveProviderCurrencies removes "provider_currencies" edges to ProviderCurrencies entities.

func (*ProviderProfileUpdate) RemoveProviderCurrencyIDs added in v0.0.2

func (ppu *ProviderProfileUpdate) RemoveProviderCurrencyIDs(ids ...uuid.UUID) *ProviderProfileUpdate

RemoveProviderCurrencyIDs removes the "provider_currencies" edge to ProviderCurrencies entities by IDs.

func (*ProviderProfileUpdate) RemoveProvisionBucketIDs

func (ppu *ProviderProfileUpdate) RemoveProvisionBucketIDs(ids ...int) *ProviderProfileUpdate

RemoveProvisionBucketIDs removes the "provision_buckets" edge to ProvisionBucket entities by IDs.

func (*ProviderProfileUpdate) RemoveProvisionBuckets

func (ppu *ProviderProfileUpdate) RemoveProvisionBuckets(p ...*ProvisionBucket) *ProviderProfileUpdate

RemoveProvisionBuckets removes "provision_buckets" edges to ProvisionBucket entities.

func (*ProviderProfileUpdate) Save

func (ppu *ProviderProfileUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ProviderProfileUpdate) SaveX

func (ppu *ProviderProfileUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ProviderProfileUpdate) SetAPIKey

SetAPIKey sets the "api_key" edge to the APIKey entity.

func (*ProviderProfileUpdate) SetAPIKeyID

func (ppu *ProviderProfileUpdate) SetAPIKeyID(id uuid.UUID) *ProviderProfileUpdate

SetAPIKeyID sets the "api_key" edge to the APIKey entity by ID.

func (*ProviderProfileUpdate) SetHostIdentifier

func (ppu *ProviderProfileUpdate) SetHostIdentifier(s string) *ProviderProfileUpdate

SetHostIdentifier sets the "host_identifier" field.

func (*ProviderProfileUpdate) SetIsActive

func (ppu *ProviderProfileUpdate) SetIsActive(b bool) *ProviderProfileUpdate

SetIsActive sets the "is_active" field.

func (*ProviderProfileUpdate) SetIsKybVerified added in v0.0.2

func (ppu *ProviderProfileUpdate) SetIsKybVerified(b bool) *ProviderProfileUpdate

SetIsKybVerified sets the "is_kyb_verified" field.

func (*ProviderProfileUpdate) SetNillableAPIKeyID

func (ppu *ProviderProfileUpdate) SetNillableAPIKeyID(id *uuid.UUID) *ProviderProfileUpdate

SetNillableAPIKeyID sets the "api_key" edge to the APIKey entity by ID if the given value is not nil.

func (*ProviderProfileUpdate) SetNillableHostIdentifier

func (ppu *ProviderProfileUpdate) SetNillableHostIdentifier(s *string) *ProviderProfileUpdate

SetNillableHostIdentifier sets the "host_identifier" field if the given value is not nil.

func (*ProviderProfileUpdate) SetNillableIsActive

func (ppu *ProviderProfileUpdate) SetNillableIsActive(b *bool) *ProviderProfileUpdate

SetNillableIsActive sets the "is_active" field if the given value is not nil.

func (*ProviderProfileUpdate) SetNillableIsKybVerified added in v0.0.2

func (ppu *ProviderProfileUpdate) SetNillableIsKybVerified(b *bool) *ProviderProfileUpdate

SetNillableIsKybVerified sets the "is_kyb_verified" field if the given value is not nil.

func (*ProviderProfileUpdate) SetNillableProviderRatingID

func (ppu *ProviderProfileUpdate) SetNillableProviderRatingID(id *int) *ProviderProfileUpdate

SetNillableProviderRatingID sets the "provider_rating" edge to the ProviderRating entity by ID if the given value is not nil.

func (*ProviderProfileUpdate) SetNillableProvisionMode

func (ppu *ProviderProfileUpdate) SetNillableProvisionMode(pm *providerprofile.ProvisionMode) *ProviderProfileUpdate

SetNillableProvisionMode sets the "provision_mode" field if the given value is not nil.

func (*ProviderProfileUpdate) SetNillableTradingName

func (ppu *ProviderProfileUpdate) SetNillableTradingName(s *string) *ProviderProfileUpdate

SetNillableTradingName sets the "trading_name" field if the given value is not nil.

func (*ProviderProfileUpdate) SetNillableVisibilityMode

func (ppu *ProviderProfileUpdate) SetNillableVisibilityMode(pm *providerprofile.VisibilityMode) *ProviderProfileUpdate

SetNillableVisibilityMode sets the "visibility_mode" field if the given value is not nil.

func (*ProviderProfileUpdate) SetProviderRating

func (ppu *ProviderProfileUpdate) SetProviderRating(p *ProviderRating) *ProviderProfileUpdate

SetProviderRating sets the "provider_rating" edge to the ProviderRating entity.

func (*ProviderProfileUpdate) SetProviderRatingID

func (ppu *ProviderProfileUpdate) SetProviderRatingID(id int) *ProviderProfileUpdate

SetProviderRatingID sets the "provider_rating" edge to the ProviderRating entity by ID.

func (*ProviderProfileUpdate) SetProvisionMode

SetProvisionMode sets the "provision_mode" field.

func (*ProviderProfileUpdate) SetTradingName

func (ppu *ProviderProfileUpdate) SetTradingName(s string) *ProviderProfileUpdate

SetTradingName sets the "trading_name" field.

func (*ProviderProfileUpdate) SetUpdatedAt

func (ppu *ProviderProfileUpdate) SetUpdatedAt(t time.Time) *ProviderProfileUpdate

SetUpdatedAt sets the "updated_at" field.

func (*ProviderProfileUpdate) SetVisibilityMode

SetVisibilityMode sets the "visibility_mode" field.

func (*ProviderProfileUpdate) Where

Where appends a list predicates to the ProviderProfileUpdate builder.

type ProviderProfileUpdateOne

type ProviderProfileUpdateOne struct {
	// contains filtered or unexported fields
}

ProviderProfileUpdateOne is the builder for updating a single ProviderProfile entity.

func (*ProviderProfileUpdateOne) AddAssignedOrderIDs

func (ppuo *ProviderProfileUpdateOne) AddAssignedOrderIDs(ids ...uuid.UUID) *ProviderProfileUpdateOne

AddAssignedOrderIDs adds the "assigned_orders" edge to the LockPaymentOrder entity by IDs.

func (*ProviderProfileUpdateOne) AddAssignedOrders

func (ppuo *ProviderProfileUpdateOne) AddAssignedOrders(l ...*LockPaymentOrder) *ProviderProfileUpdateOne

AddAssignedOrders adds the "assigned_orders" edges to the LockPaymentOrder entity.

func (*ProviderProfileUpdateOne) AddOrderTokenIDs

func (ppuo *ProviderProfileUpdateOne) AddOrderTokenIDs(ids ...int) *ProviderProfileUpdateOne

AddOrderTokenIDs adds the "order_tokens" edge to the ProviderOrderToken entity by IDs.

func (*ProviderProfileUpdateOne) AddOrderTokens

AddOrderTokens adds the "order_tokens" edges to the ProviderOrderToken entity.

func (*ProviderProfileUpdateOne) AddProviderCurrencies added in v0.0.2

func (ppuo *ProviderProfileUpdateOne) AddProviderCurrencies(p ...*ProviderCurrencies) *ProviderProfileUpdateOne

AddProviderCurrencies adds the "provider_currencies" edges to the ProviderCurrencies entity.

func (*ProviderProfileUpdateOne) AddProviderCurrencyIDs added in v0.0.2

func (ppuo *ProviderProfileUpdateOne) AddProviderCurrencyIDs(ids ...uuid.UUID) *ProviderProfileUpdateOne

AddProviderCurrencyIDs adds the "provider_currencies" edge to the ProviderCurrencies entity by IDs.

func (*ProviderProfileUpdateOne) AddProvisionBucketIDs

func (ppuo *ProviderProfileUpdateOne) AddProvisionBucketIDs(ids ...int) *ProviderProfileUpdateOne

AddProvisionBucketIDs adds the "provision_buckets" edge to the ProvisionBucket entity by IDs.

func (*ProviderProfileUpdateOne) AddProvisionBuckets

func (ppuo *ProviderProfileUpdateOne) AddProvisionBuckets(p ...*ProvisionBucket) *ProviderProfileUpdateOne

AddProvisionBuckets adds the "provision_buckets" edges to the ProvisionBucket entity.

func (*ProviderProfileUpdateOne) ClearAPIKey

ClearAPIKey clears the "api_key" edge to the APIKey entity.

func (*ProviderProfileUpdateOne) ClearAssignedOrders

func (ppuo *ProviderProfileUpdateOne) ClearAssignedOrders() *ProviderProfileUpdateOne

ClearAssignedOrders clears all "assigned_orders" edges to the LockPaymentOrder entity.

func (*ProviderProfileUpdateOne) ClearHostIdentifier

func (ppuo *ProviderProfileUpdateOne) ClearHostIdentifier() *ProviderProfileUpdateOne

ClearHostIdentifier clears the value of the "host_identifier" field.

func (*ProviderProfileUpdateOne) ClearOrderTokens

func (ppuo *ProviderProfileUpdateOne) ClearOrderTokens() *ProviderProfileUpdateOne

ClearOrderTokens clears all "order_tokens" edges to the ProviderOrderToken entity.

func (*ProviderProfileUpdateOne) ClearProviderCurrencies added in v0.0.2

func (ppuo *ProviderProfileUpdateOne) ClearProviderCurrencies() *ProviderProfileUpdateOne

ClearProviderCurrencies clears all "provider_currencies" edges to the ProviderCurrencies entity.

func (*ProviderProfileUpdateOne) ClearProviderRating

func (ppuo *ProviderProfileUpdateOne) ClearProviderRating() *ProviderProfileUpdateOne

ClearProviderRating clears the "provider_rating" edge to the ProviderRating entity.

func (*ProviderProfileUpdateOne) ClearProvisionBuckets

func (ppuo *ProviderProfileUpdateOne) ClearProvisionBuckets() *ProviderProfileUpdateOne

ClearProvisionBuckets clears all "provision_buckets" edges to the ProvisionBucket entity.

func (*ProviderProfileUpdateOne) ClearTradingName

func (ppuo *ProviderProfileUpdateOne) ClearTradingName() *ProviderProfileUpdateOne

ClearTradingName clears the value of the "trading_name" field.

func (*ProviderProfileUpdateOne) Exec

Exec executes the query on the entity.

func (*ProviderProfileUpdateOne) ExecX

func (ppuo *ProviderProfileUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderProfileUpdateOne) Mutation

Mutation returns the ProviderProfileMutation object of the builder.

func (*ProviderProfileUpdateOne) RemoveAssignedOrderIDs

func (ppuo *ProviderProfileUpdateOne) RemoveAssignedOrderIDs(ids ...uuid.UUID) *ProviderProfileUpdateOne

RemoveAssignedOrderIDs removes the "assigned_orders" edge to LockPaymentOrder entities by IDs.

func (*ProviderProfileUpdateOne) RemoveAssignedOrders

func (ppuo *ProviderProfileUpdateOne) RemoveAssignedOrders(l ...*LockPaymentOrder) *ProviderProfileUpdateOne

RemoveAssignedOrders removes "assigned_orders" edges to LockPaymentOrder entities.

func (*ProviderProfileUpdateOne) RemoveOrderTokenIDs

func (ppuo *ProviderProfileUpdateOne) RemoveOrderTokenIDs(ids ...int) *ProviderProfileUpdateOne

RemoveOrderTokenIDs removes the "order_tokens" edge to ProviderOrderToken entities by IDs.

func (*ProviderProfileUpdateOne) RemoveOrderTokens

RemoveOrderTokens removes "order_tokens" edges to ProviderOrderToken entities.

func (*ProviderProfileUpdateOne) RemoveProviderCurrencies added in v0.0.2

func (ppuo *ProviderProfileUpdateOne) RemoveProviderCurrencies(p ...*ProviderCurrencies) *ProviderProfileUpdateOne

RemoveProviderCurrencies removes "provider_currencies" edges to ProviderCurrencies entities.

func (*ProviderProfileUpdateOne) RemoveProviderCurrencyIDs added in v0.0.2

func (ppuo *ProviderProfileUpdateOne) RemoveProviderCurrencyIDs(ids ...uuid.UUID) *ProviderProfileUpdateOne

RemoveProviderCurrencyIDs removes the "provider_currencies" edge to ProviderCurrencies entities by IDs.

func (*ProviderProfileUpdateOne) RemoveProvisionBucketIDs

func (ppuo *ProviderProfileUpdateOne) RemoveProvisionBucketIDs(ids ...int) *ProviderProfileUpdateOne

RemoveProvisionBucketIDs removes the "provision_buckets" edge to ProvisionBucket entities by IDs.

func (*ProviderProfileUpdateOne) RemoveProvisionBuckets

func (ppuo *ProviderProfileUpdateOne) RemoveProvisionBuckets(p ...*ProvisionBucket) *ProviderProfileUpdateOne

RemoveProvisionBuckets removes "provision_buckets" edges to ProvisionBucket entities.

func (*ProviderProfileUpdateOne) Save

Save executes the query and returns the updated ProviderProfile entity.

func (*ProviderProfileUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ProviderProfileUpdateOne) Select

func (ppuo *ProviderProfileUpdateOne) Select(field string, fields ...string) *ProviderProfileUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ProviderProfileUpdateOne) SetAPIKey

SetAPIKey sets the "api_key" edge to the APIKey entity.

func (*ProviderProfileUpdateOne) SetAPIKeyID

SetAPIKeyID sets the "api_key" edge to the APIKey entity by ID.

func (*ProviderProfileUpdateOne) SetHostIdentifier

func (ppuo *ProviderProfileUpdateOne) SetHostIdentifier(s string) *ProviderProfileUpdateOne

SetHostIdentifier sets the "host_identifier" field.

func (*ProviderProfileUpdateOne) SetIsActive

SetIsActive sets the "is_active" field.

func (*ProviderProfileUpdateOne) SetIsKybVerified added in v0.0.2

func (ppuo *ProviderProfileUpdateOne) SetIsKybVerified(b bool) *ProviderProfileUpdateOne

SetIsKybVerified sets the "is_kyb_verified" field.

func (*ProviderProfileUpdateOne) SetNillableAPIKeyID

func (ppuo *ProviderProfileUpdateOne) SetNillableAPIKeyID(id *uuid.UUID) *ProviderProfileUpdateOne

SetNillableAPIKeyID sets the "api_key" edge to the APIKey entity by ID if the given value is not nil.

func (*ProviderProfileUpdateOne) SetNillableHostIdentifier

func (ppuo *ProviderProfileUpdateOne) SetNillableHostIdentifier(s *string) *ProviderProfileUpdateOne

SetNillableHostIdentifier sets the "host_identifier" field if the given value is not nil.

func (*ProviderProfileUpdateOne) SetNillableIsActive

func (ppuo *ProviderProfileUpdateOne) SetNillableIsActive(b *bool) *ProviderProfileUpdateOne

SetNillableIsActive sets the "is_active" field if the given value is not nil.

func (*ProviderProfileUpdateOne) SetNillableIsKybVerified added in v0.0.2

func (ppuo *ProviderProfileUpdateOne) SetNillableIsKybVerified(b *bool) *ProviderProfileUpdateOne

SetNillableIsKybVerified sets the "is_kyb_verified" field if the given value is not nil.

func (*ProviderProfileUpdateOne) SetNillableProviderRatingID

func (ppuo *ProviderProfileUpdateOne) SetNillableProviderRatingID(id *int) *ProviderProfileUpdateOne

SetNillableProviderRatingID sets the "provider_rating" edge to the ProviderRating entity by ID if the given value is not nil.

func (*ProviderProfileUpdateOne) SetNillableProvisionMode

SetNillableProvisionMode sets the "provision_mode" field if the given value is not nil.

func (*ProviderProfileUpdateOne) SetNillableTradingName

func (ppuo *ProviderProfileUpdateOne) SetNillableTradingName(s *string) *ProviderProfileUpdateOne

SetNillableTradingName sets the "trading_name" field if the given value is not nil.

func (*ProviderProfileUpdateOne) SetNillableVisibilityMode

SetNillableVisibilityMode sets the "visibility_mode" field if the given value is not nil.

func (*ProviderProfileUpdateOne) SetProviderRating

SetProviderRating sets the "provider_rating" edge to the ProviderRating entity.

func (*ProviderProfileUpdateOne) SetProviderRatingID

func (ppuo *ProviderProfileUpdateOne) SetProviderRatingID(id int) *ProviderProfileUpdateOne

SetProviderRatingID sets the "provider_rating" edge to the ProviderRating entity by ID.

func (*ProviderProfileUpdateOne) SetProvisionMode

SetProvisionMode sets the "provision_mode" field.

func (*ProviderProfileUpdateOne) SetTradingName

func (ppuo *ProviderProfileUpdateOne) SetTradingName(s string) *ProviderProfileUpdateOne

SetTradingName sets the "trading_name" field.

func (*ProviderProfileUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ProviderProfileUpdateOne) SetVisibilityMode

SetVisibilityMode sets the "visibility_mode" field.

func (*ProviderProfileUpdateOne) Where

Where appends a list predicates to the ProviderProfileUpdate builder.

type ProviderProfileUpsert

type ProviderProfileUpsert struct {
	*sql.UpdateSet
}

ProviderProfileUpsert is the "OnConflict" setter.

func (*ProviderProfileUpsert) ClearHostIdentifier

func (u *ProviderProfileUpsert) ClearHostIdentifier() *ProviderProfileUpsert

ClearHostIdentifier clears the value of the "host_identifier" field.

func (*ProviderProfileUpsert) ClearTradingName

func (u *ProviderProfileUpsert) ClearTradingName() *ProviderProfileUpsert

ClearTradingName clears the value of the "trading_name" field.

func (*ProviderProfileUpsert) SetHostIdentifier

func (u *ProviderProfileUpsert) SetHostIdentifier(v string) *ProviderProfileUpsert

SetHostIdentifier sets the "host_identifier" field.

func (*ProviderProfileUpsert) SetIsActive

SetIsActive sets the "is_active" field.

func (*ProviderProfileUpsert) SetIsKybVerified added in v0.0.2

func (u *ProviderProfileUpsert) SetIsKybVerified(v bool) *ProviderProfileUpsert

SetIsKybVerified sets the "is_kyb_verified" field.

func (*ProviderProfileUpsert) SetProvisionMode

SetProvisionMode sets the "provision_mode" field.

func (*ProviderProfileUpsert) SetTradingName

func (u *ProviderProfileUpsert) SetTradingName(v string) *ProviderProfileUpsert

SetTradingName sets the "trading_name" field.

func (*ProviderProfileUpsert) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ProviderProfileUpsert) SetVisibilityMode

SetVisibilityMode sets the "visibility_mode" field.

func (*ProviderProfileUpsert) UpdateHostIdentifier

func (u *ProviderProfileUpsert) UpdateHostIdentifier() *ProviderProfileUpsert

UpdateHostIdentifier sets the "host_identifier" field to the value that was provided on create.

func (*ProviderProfileUpsert) UpdateIsActive

func (u *ProviderProfileUpsert) UpdateIsActive() *ProviderProfileUpsert

UpdateIsActive sets the "is_active" field to the value that was provided on create.

func (*ProviderProfileUpsert) UpdateIsKybVerified added in v0.0.2

func (u *ProviderProfileUpsert) UpdateIsKybVerified() *ProviderProfileUpsert

UpdateIsKybVerified sets the "is_kyb_verified" field to the value that was provided on create.

func (*ProviderProfileUpsert) UpdateProvisionMode

func (u *ProviderProfileUpsert) UpdateProvisionMode() *ProviderProfileUpsert

UpdateProvisionMode sets the "provision_mode" field to the value that was provided on create.

func (*ProviderProfileUpsert) UpdateTradingName

func (u *ProviderProfileUpsert) UpdateTradingName() *ProviderProfileUpsert

UpdateTradingName sets the "trading_name" field to the value that was provided on create.

func (*ProviderProfileUpsert) UpdateUpdatedAt

func (u *ProviderProfileUpsert) UpdateUpdatedAt() *ProviderProfileUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*ProviderProfileUpsert) UpdateVisibilityMode

func (u *ProviderProfileUpsert) UpdateVisibilityMode() *ProviderProfileUpsert

UpdateVisibilityMode sets the "visibility_mode" field to the value that was provided on create.

type ProviderProfileUpsertBulk

type ProviderProfileUpsertBulk struct {
	// contains filtered or unexported fields
}

ProviderProfileUpsertBulk is the builder for "upsert"-ing a bulk of ProviderProfile nodes.

func (*ProviderProfileUpsertBulk) ClearHostIdentifier

func (u *ProviderProfileUpsertBulk) ClearHostIdentifier() *ProviderProfileUpsertBulk

ClearHostIdentifier clears the value of the "host_identifier" field.

func (*ProviderProfileUpsertBulk) ClearTradingName

ClearTradingName clears the value of the "trading_name" field.

func (*ProviderProfileUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*ProviderProfileUpsertBulk) Exec

Exec executes the query.

func (*ProviderProfileUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ProviderProfileUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.ProviderProfile.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*ProviderProfileUpsertBulk) SetHostIdentifier

SetHostIdentifier sets the "host_identifier" field.

func (*ProviderProfileUpsertBulk) SetIsActive

SetIsActive sets the "is_active" field.

func (*ProviderProfileUpsertBulk) SetIsKybVerified added in v0.0.2

SetIsKybVerified sets the "is_kyb_verified" field.

func (*ProviderProfileUpsertBulk) SetProvisionMode

SetProvisionMode sets the "provision_mode" field.

func (*ProviderProfileUpsertBulk) SetTradingName

SetTradingName sets the "trading_name" field.

func (*ProviderProfileUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ProviderProfileUpsertBulk) SetVisibilityMode

SetVisibilityMode sets the "visibility_mode" field.

func (*ProviderProfileUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the ProviderProfileCreateBulk.OnConflict documentation for more info.

func (*ProviderProfileUpsertBulk) UpdateHostIdentifier

func (u *ProviderProfileUpsertBulk) UpdateHostIdentifier() *ProviderProfileUpsertBulk

UpdateHostIdentifier sets the "host_identifier" field to the value that was provided on create.

func (*ProviderProfileUpsertBulk) UpdateIsActive

UpdateIsActive sets the "is_active" field to the value that was provided on create.

func (*ProviderProfileUpsertBulk) UpdateIsKybVerified added in v0.0.2

func (u *ProviderProfileUpsertBulk) UpdateIsKybVerified() *ProviderProfileUpsertBulk

UpdateIsKybVerified sets the "is_kyb_verified" field to the value that was provided on create.

func (*ProviderProfileUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.ProviderProfile.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(providerprofile.FieldID)
		}),
	).
	Exec(ctx)

func (*ProviderProfileUpsertBulk) UpdateProvisionMode

func (u *ProviderProfileUpsertBulk) UpdateProvisionMode() *ProviderProfileUpsertBulk

UpdateProvisionMode sets the "provision_mode" field to the value that was provided on create.

func (*ProviderProfileUpsertBulk) UpdateTradingName

func (u *ProviderProfileUpsertBulk) UpdateTradingName() *ProviderProfileUpsertBulk

UpdateTradingName sets the "trading_name" field to the value that was provided on create.

func (*ProviderProfileUpsertBulk) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*ProviderProfileUpsertBulk) UpdateVisibilityMode

func (u *ProviderProfileUpsertBulk) UpdateVisibilityMode() *ProviderProfileUpsertBulk

UpdateVisibilityMode sets the "visibility_mode" field to the value that was provided on create.

type ProviderProfileUpsertOne

type ProviderProfileUpsertOne struct {
	// contains filtered or unexported fields
}

ProviderProfileUpsertOne is the builder for "upsert"-ing

one ProviderProfile node.

func (*ProviderProfileUpsertOne) ClearHostIdentifier

func (u *ProviderProfileUpsertOne) ClearHostIdentifier() *ProviderProfileUpsertOne

ClearHostIdentifier clears the value of the "host_identifier" field.

func (*ProviderProfileUpsertOne) ClearTradingName

func (u *ProviderProfileUpsertOne) ClearTradingName() *ProviderProfileUpsertOne

ClearTradingName clears the value of the "trading_name" field.

func (*ProviderProfileUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*ProviderProfileUpsertOne) Exec

Exec executes the query.

func (*ProviderProfileUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ProviderProfileUpsertOne) ID

func (u *ProviderProfileUpsertOne) ID(ctx context.Context) (id string, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*ProviderProfileUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*ProviderProfileUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.ProviderProfile.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*ProviderProfileUpsertOne) SetHostIdentifier

func (u *ProviderProfileUpsertOne) SetHostIdentifier(v string) *ProviderProfileUpsertOne

SetHostIdentifier sets the "host_identifier" field.

func (*ProviderProfileUpsertOne) SetIsActive

SetIsActive sets the "is_active" field.

func (*ProviderProfileUpsertOne) SetIsKybVerified added in v0.0.2

func (u *ProviderProfileUpsertOne) SetIsKybVerified(v bool) *ProviderProfileUpsertOne

SetIsKybVerified sets the "is_kyb_verified" field.

func (*ProviderProfileUpsertOne) SetProvisionMode

SetProvisionMode sets the "provision_mode" field.

func (*ProviderProfileUpsertOne) SetTradingName

SetTradingName sets the "trading_name" field.

func (*ProviderProfileUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ProviderProfileUpsertOne) SetVisibilityMode

SetVisibilityMode sets the "visibility_mode" field.

func (*ProviderProfileUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the ProviderProfileCreate.OnConflict documentation for more info.

func (*ProviderProfileUpsertOne) UpdateHostIdentifier

func (u *ProviderProfileUpsertOne) UpdateHostIdentifier() *ProviderProfileUpsertOne

UpdateHostIdentifier sets the "host_identifier" field to the value that was provided on create.

func (*ProviderProfileUpsertOne) UpdateIsActive

UpdateIsActive sets the "is_active" field to the value that was provided on create.

func (*ProviderProfileUpsertOne) UpdateIsKybVerified added in v0.0.2

func (u *ProviderProfileUpsertOne) UpdateIsKybVerified() *ProviderProfileUpsertOne

UpdateIsKybVerified sets the "is_kyb_verified" field to the value that was provided on create.

func (*ProviderProfileUpsertOne) UpdateNewValues

func (u *ProviderProfileUpsertOne) UpdateNewValues() *ProviderProfileUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.ProviderProfile.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(providerprofile.FieldID)
		}),
	).
	Exec(ctx)

func (*ProviderProfileUpsertOne) UpdateProvisionMode

func (u *ProviderProfileUpsertOne) UpdateProvisionMode() *ProviderProfileUpsertOne

UpdateProvisionMode sets the "provision_mode" field to the value that was provided on create.

func (*ProviderProfileUpsertOne) UpdateTradingName

func (u *ProviderProfileUpsertOne) UpdateTradingName() *ProviderProfileUpsertOne

UpdateTradingName sets the "trading_name" field to the value that was provided on create.

func (*ProviderProfileUpsertOne) UpdateUpdatedAt

func (u *ProviderProfileUpsertOne) UpdateUpdatedAt() *ProviderProfileUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*ProviderProfileUpsertOne) UpdateVisibilityMode

func (u *ProviderProfileUpsertOne) UpdateVisibilityMode() *ProviderProfileUpsertOne

UpdateVisibilityMode sets the "visibility_mode" field to the value that was provided on create.

type ProviderProfiles

type ProviderProfiles []*ProviderProfile

ProviderProfiles is a parsable slice of ProviderProfile.

type ProviderRating

type ProviderRating struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// TrustScore holds the value of the "trust_score" field.
	TrustScore decimal.Decimal `json:"trust_score,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ProviderRatingQuery when eager-loading is set.
	Edges ProviderRatingEdges `json:"edges"`
	// contains filtered or unexported fields
}

ProviderRating is the model entity for the ProviderRating schema.

func (*ProviderRating) QueryProviderProfile

func (pr *ProviderRating) QueryProviderProfile() *ProviderProfileQuery

QueryProviderProfile queries the "provider_profile" edge of the ProviderRating entity.

func (*ProviderRating) String

func (pr *ProviderRating) String() string

String implements the fmt.Stringer.

func (*ProviderRating) Unwrap

func (pr *ProviderRating) Unwrap() *ProviderRating

Unwrap unwraps the ProviderRating entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ProviderRating) Update

Update returns a builder for updating this ProviderRating. Note that you need to call ProviderRating.Unwrap() before calling this method if this ProviderRating was returned from a transaction, and the transaction was committed or rolled back.

func (*ProviderRating) Value

func (pr *ProviderRating) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ProviderRating. This includes values selected through modifiers, order, etc.

type ProviderRatingClient

type ProviderRatingClient struct {
	// contains filtered or unexported fields
}

ProviderRatingClient is a client for the ProviderRating schema.

func NewProviderRatingClient

func NewProviderRatingClient(c config) *ProviderRatingClient

NewProviderRatingClient returns a client for the ProviderRating from the given config.

func (*ProviderRatingClient) Create

Create returns a builder for creating a ProviderRating entity.

func (*ProviderRatingClient) CreateBulk

CreateBulk returns a builder for creating a bulk of ProviderRating entities.

func (*ProviderRatingClient) Delete

Delete returns a delete builder for ProviderRating.

func (*ProviderRatingClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*ProviderRatingClient) DeleteOneID

func (c *ProviderRatingClient) DeleteOneID(id int) *ProviderRatingDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ProviderRatingClient) Get

Get returns a ProviderRating entity by its id.

func (*ProviderRatingClient) GetX

GetX is like Get, but panics if an error occurs.

func (*ProviderRatingClient) Hooks

func (c *ProviderRatingClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ProviderRatingClient) Intercept

func (c *ProviderRatingClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `providerrating.Intercept(f(g(h())))`.

func (*ProviderRatingClient) Interceptors

func (c *ProviderRatingClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ProviderRatingClient) MapCreateBulk

func (c *ProviderRatingClient) MapCreateBulk(slice any, setFunc func(*ProviderRatingCreate, int)) *ProviderRatingCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ProviderRatingClient) Query

Query returns a query builder for ProviderRating.

func (*ProviderRatingClient) QueryProviderProfile

func (c *ProviderRatingClient) QueryProviderProfile(pr *ProviderRating) *ProviderProfileQuery

QueryProviderProfile queries the provider_profile edge of a ProviderRating.

func (*ProviderRatingClient) Update

Update returns an update builder for ProviderRating.

func (*ProviderRatingClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*ProviderRatingClient) UpdateOneID

func (c *ProviderRatingClient) UpdateOneID(id int) *ProviderRatingUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ProviderRatingClient) Use

func (c *ProviderRatingClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `providerrating.Hooks(f(g(h())))`.

type ProviderRatingCreate

type ProviderRatingCreate struct {
	// contains filtered or unexported fields
}

ProviderRatingCreate is the builder for creating a ProviderRating entity.

func (*ProviderRatingCreate) Exec

func (prc *ProviderRatingCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ProviderRatingCreate) ExecX

func (prc *ProviderRatingCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderRatingCreate) Mutation

Mutation returns the ProviderRatingMutation object of the builder.

func (*ProviderRatingCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.ProviderRating.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.ProviderRatingUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*ProviderRatingCreate) OnConflictColumns

func (prc *ProviderRatingCreate) OnConflictColumns(columns ...string) *ProviderRatingUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.ProviderRating.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*ProviderRatingCreate) Save

Save creates the ProviderRating in the database.

func (*ProviderRatingCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*ProviderRatingCreate) SetCreatedAt

func (prc *ProviderRatingCreate) SetCreatedAt(t time.Time) *ProviderRatingCreate

SetCreatedAt sets the "created_at" field.

func (*ProviderRatingCreate) SetNillableCreatedAt

func (prc *ProviderRatingCreate) SetNillableCreatedAt(t *time.Time) *ProviderRatingCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ProviderRatingCreate) SetNillableUpdatedAt

func (prc *ProviderRatingCreate) SetNillableUpdatedAt(t *time.Time) *ProviderRatingCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ProviderRatingCreate) SetProviderProfile

func (prc *ProviderRatingCreate) SetProviderProfile(p *ProviderProfile) *ProviderRatingCreate

SetProviderProfile sets the "provider_profile" edge to the ProviderProfile entity.

func (*ProviderRatingCreate) SetProviderProfileID

func (prc *ProviderRatingCreate) SetProviderProfileID(id string) *ProviderRatingCreate

SetProviderProfileID sets the "provider_profile" edge to the ProviderProfile entity by ID.

func (*ProviderRatingCreate) SetTrustScore

SetTrustScore sets the "trust_score" field.

func (*ProviderRatingCreate) SetUpdatedAt

func (prc *ProviderRatingCreate) SetUpdatedAt(t time.Time) *ProviderRatingCreate

SetUpdatedAt sets the "updated_at" field.

type ProviderRatingCreateBulk

type ProviderRatingCreateBulk struct {
	// contains filtered or unexported fields
}

ProviderRatingCreateBulk is the builder for creating many ProviderRating entities in bulk.

func (*ProviderRatingCreateBulk) Exec

Exec executes the query.

func (*ProviderRatingCreateBulk) ExecX

func (prcb *ProviderRatingCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderRatingCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.ProviderRating.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.ProviderRatingUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*ProviderRatingCreateBulk) OnConflictColumns

func (prcb *ProviderRatingCreateBulk) OnConflictColumns(columns ...string) *ProviderRatingUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.ProviderRating.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*ProviderRatingCreateBulk) Save

Save creates the ProviderRating entities in the database.

func (*ProviderRatingCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type ProviderRatingDelete

type ProviderRatingDelete struct {
	// contains filtered or unexported fields
}

ProviderRatingDelete is the builder for deleting a ProviderRating entity.

func (*ProviderRatingDelete) Exec

func (prd *ProviderRatingDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ProviderRatingDelete) ExecX

func (prd *ProviderRatingDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ProviderRatingDelete) Where

Where appends a list predicates to the ProviderRatingDelete builder.

type ProviderRatingDeleteOne

type ProviderRatingDeleteOne struct {
	// contains filtered or unexported fields
}

ProviderRatingDeleteOne is the builder for deleting a single ProviderRating entity.

func (*ProviderRatingDeleteOne) Exec

func (prdo *ProviderRatingDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ProviderRatingDeleteOne) ExecX

func (prdo *ProviderRatingDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderRatingDeleteOne) Where

Where appends a list predicates to the ProviderRatingDelete builder.

type ProviderRatingEdges

type ProviderRatingEdges struct {
	// ProviderProfile holds the value of the provider_profile edge.
	ProviderProfile *ProviderProfile `json:"provider_profile,omitempty"`
	// contains filtered or unexported fields
}

ProviderRatingEdges holds the relations/edges for other nodes in the graph.

func (ProviderRatingEdges) ProviderProfileOrErr

func (e ProviderRatingEdges) ProviderProfileOrErr() (*ProviderProfile, error)

ProviderProfileOrErr returns the ProviderProfile value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ProviderRatingGroupBy

type ProviderRatingGroupBy struct {
	// contains filtered or unexported fields
}

ProviderRatingGroupBy is the group-by builder for ProviderRating entities.

func (*ProviderRatingGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*ProviderRatingGroupBy) Bool

func (s *ProviderRatingGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ProviderRatingGroupBy) BoolX

func (s *ProviderRatingGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ProviderRatingGroupBy) Bools

func (s *ProviderRatingGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ProviderRatingGroupBy) BoolsX

func (s *ProviderRatingGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ProviderRatingGroupBy) Float64

func (s *ProviderRatingGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ProviderRatingGroupBy) Float64X

func (s *ProviderRatingGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ProviderRatingGroupBy) Float64s

func (s *ProviderRatingGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ProviderRatingGroupBy) Float64sX

func (s *ProviderRatingGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ProviderRatingGroupBy) Int

func (s *ProviderRatingGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ProviderRatingGroupBy) IntX

func (s *ProviderRatingGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ProviderRatingGroupBy) Ints

func (s *ProviderRatingGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ProviderRatingGroupBy) IntsX

func (s *ProviderRatingGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ProviderRatingGroupBy) Scan

func (prgb *ProviderRatingGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ProviderRatingGroupBy) ScanX

func (s *ProviderRatingGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ProviderRatingGroupBy) String

func (s *ProviderRatingGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ProviderRatingGroupBy) StringX

func (s *ProviderRatingGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ProviderRatingGroupBy) Strings

func (s *ProviderRatingGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ProviderRatingGroupBy) StringsX

func (s *ProviderRatingGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ProviderRatingMutation

type ProviderRatingMutation struct {
	// contains filtered or unexported fields
}

ProviderRatingMutation represents an operation that mutates the ProviderRating nodes in the graph.

func (*ProviderRatingMutation) AddField

func (m *ProviderRatingMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ProviderRatingMutation) AddTrustScore

func (m *ProviderRatingMutation) AddTrustScore(d decimal.Decimal)

AddTrustScore adds d to the "trust_score" field.

func (*ProviderRatingMutation) AddedEdges

func (m *ProviderRatingMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ProviderRatingMutation) AddedField

func (m *ProviderRatingMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ProviderRatingMutation) AddedFields

func (m *ProviderRatingMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ProviderRatingMutation) AddedIDs

func (m *ProviderRatingMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ProviderRatingMutation) AddedTrustScore

func (m *ProviderRatingMutation) AddedTrustScore() (r decimal.Decimal, exists bool)

AddedTrustScore returns the value that was added to the "trust_score" field in this mutation.

func (*ProviderRatingMutation) ClearEdge

func (m *ProviderRatingMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ProviderRatingMutation) ClearField

func (m *ProviderRatingMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ProviderRatingMutation) ClearProviderProfile

func (m *ProviderRatingMutation) ClearProviderProfile()

ClearProviderProfile clears the "provider_profile" edge to the ProviderProfile entity.

func (*ProviderRatingMutation) ClearedEdges

func (m *ProviderRatingMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ProviderRatingMutation) ClearedFields

func (m *ProviderRatingMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ProviderRatingMutation) Client

func (m ProviderRatingMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ProviderRatingMutation) CreatedAt

func (m *ProviderRatingMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ProviderRatingMutation) EdgeCleared

func (m *ProviderRatingMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ProviderRatingMutation) Field

func (m *ProviderRatingMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ProviderRatingMutation) FieldCleared

func (m *ProviderRatingMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ProviderRatingMutation) Fields

func (m *ProviderRatingMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ProviderRatingMutation) ID

func (m *ProviderRatingMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ProviderRatingMutation) IDs

func (m *ProviderRatingMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*ProviderRatingMutation) OldCreatedAt

func (m *ProviderRatingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the ProviderRating entity. If the ProviderRating object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderRatingMutation) OldField

func (m *ProviderRatingMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ProviderRatingMutation) OldTrustScore

func (m *ProviderRatingMutation) OldTrustScore(ctx context.Context) (v decimal.Decimal, err error)

OldTrustScore returns the old "trust_score" field's value of the ProviderRating entity. If the ProviderRating object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderRatingMutation) OldUpdatedAt

func (m *ProviderRatingMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ProviderRating entity. If the ProviderRating object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProviderRatingMutation) Op

func (m *ProviderRatingMutation) Op() Op

Op returns the operation name.

func (*ProviderRatingMutation) ProviderProfileCleared

func (m *ProviderRatingMutation) ProviderProfileCleared() bool

ProviderProfileCleared reports if the "provider_profile" edge to the ProviderProfile entity was cleared.

func (*ProviderRatingMutation) ProviderProfileID

func (m *ProviderRatingMutation) ProviderProfileID() (id string, exists bool)

ProviderProfileID returns the "provider_profile" edge ID in the mutation.

func (*ProviderRatingMutation) ProviderProfileIDs

func (m *ProviderRatingMutation) ProviderProfileIDs() (ids []string)

ProviderProfileIDs returns the "provider_profile" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProviderProfileID instead. It exists only for internal usage by the builders.

func (*ProviderRatingMutation) RemovedEdges

func (m *ProviderRatingMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ProviderRatingMutation) RemovedIDs

func (m *ProviderRatingMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ProviderRatingMutation) ResetCreatedAt

func (m *ProviderRatingMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ProviderRatingMutation) ResetEdge

func (m *ProviderRatingMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ProviderRatingMutation) ResetField

func (m *ProviderRatingMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ProviderRatingMutation) ResetProviderProfile

func (m *ProviderRatingMutation) ResetProviderProfile()

ResetProviderProfile resets all changes to the "provider_profile" edge.

func (*ProviderRatingMutation) ResetTrustScore

func (m *ProviderRatingMutation) ResetTrustScore()

ResetTrustScore resets all changes to the "trust_score" field.

func (*ProviderRatingMutation) ResetUpdatedAt

func (m *ProviderRatingMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ProviderRatingMutation) SetCreatedAt

func (m *ProviderRatingMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*ProviderRatingMutation) SetField

func (m *ProviderRatingMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ProviderRatingMutation) SetOp

func (m *ProviderRatingMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ProviderRatingMutation) SetProviderProfileID

func (m *ProviderRatingMutation) SetProviderProfileID(id string)

SetProviderProfileID sets the "provider_profile" edge to the ProviderProfile entity by id.

func (*ProviderRatingMutation) SetTrustScore

func (m *ProviderRatingMutation) SetTrustScore(d decimal.Decimal)

SetTrustScore sets the "trust_score" field.

func (*ProviderRatingMutation) SetUpdatedAt

func (m *ProviderRatingMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*ProviderRatingMutation) TrustScore

func (m *ProviderRatingMutation) TrustScore() (r decimal.Decimal, exists bool)

TrustScore returns the value of the "trust_score" field in the mutation.

func (ProviderRatingMutation) Tx

func (m ProviderRatingMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ProviderRatingMutation) Type

func (m *ProviderRatingMutation) Type() string

Type returns the node type of this mutation (ProviderRating).

func (*ProviderRatingMutation) UpdatedAt

func (m *ProviderRatingMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ProviderRatingMutation) Where

Where appends a list predicates to the ProviderRatingMutation builder.

func (*ProviderRatingMutation) WhereP

func (m *ProviderRatingMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ProviderRatingMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ProviderRatingQuery

type ProviderRatingQuery struct {
	// contains filtered or unexported fields
}

ProviderRatingQuery is the builder for querying ProviderRating entities.

func (*ProviderRatingQuery) Aggregate

func (prq *ProviderRatingQuery) Aggregate(fns ...AggregateFunc) *ProviderRatingSelect

Aggregate returns a ProviderRatingSelect configured with the given aggregations.

func (*ProviderRatingQuery) All

All executes the query and returns a list of ProviderRatings.

func (*ProviderRatingQuery) AllX

AllX is like All, but panics if an error occurs.

func (*ProviderRatingQuery) Clone

Clone returns a duplicate of the ProviderRatingQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ProviderRatingQuery) Count

func (prq *ProviderRatingQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ProviderRatingQuery) CountX

func (prq *ProviderRatingQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ProviderRatingQuery) Exist

func (prq *ProviderRatingQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ProviderRatingQuery) ExistX

func (prq *ProviderRatingQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ProviderRatingQuery) First

First returns the first ProviderRating entity from the query. Returns a *NotFoundError when no ProviderRating was found.

func (*ProviderRatingQuery) FirstID

func (prq *ProviderRatingQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ProviderRating ID from the query. Returns a *NotFoundError when no ProviderRating ID was found.

func (*ProviderRatingQuery) FirstIDX

func (prq *ProviderRatingQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ProviderRatingQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*ProviderRatingQuery) GroupBy

func (prq *ProviderRatingQuery) GroupBy(field string, fields ...string) *ProviderRatingGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ProviderRating.Query().
	GroupBy(providerrating.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ProviderRatingQuery) IDs

func (prq *ProviderRatingQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of ProviderRating IDs.

func (*ProviderRatingQuery) IDsX

func (prq *ProviderRatingQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ProviderRatingQuery) Limit

func (prq *ProviderRatingQuery) Limit(limit int) *ProviderRatingQuery

Limit the number of records to be returned by this query.

func (*ProviderRatingQuery) Offset

func (prq *ProviderRatingQuery) Offset(offset int) *ProviderRatingQuery

Offset to start from.

func (*ProviderRatingQuery) Only

Only returns a single ProviderRating entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ProviderRating entity is found. Returns a *NotFoundError when no ProviderRating entities are found.

func (*ProviderRatingQuery) OnlyID

func (prq *ProviderRatingQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ProviderRating ID in the query. Returns a *NotSingularError when more than one ProviderRating ID is found. Returns a *NotFoundError when no entities are found.

func (*ProviderRatingQuery) OnlyIDX

func (prq *ProviderRatingQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ProviderRatingQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*ProviderRatingQuery) Order

Order specifies how the records should be ordered.

func (*ProviderRatingQuery) QueryProviderProfile

func (prq *ProviderRatingQuery) QueryProviderProfile() *ProviderProfileQuery

QueryProviderProfile chains the current query on the "provider_profile" edge.

func (*ProviderRatingQuery) Select

func (prq *ProviderRatingQuery) Select(fields ...string) *ProviderRatingSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.ProviderRating.Query().
	Select(providerrating.FieldCreatedAt).
	Scan(ctx, &v)

func (*ProviderRatingQuery) Unique

func (prq *ProviderRatingQuery) Unique(unique bool) *ProviderRatingQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ProviderRatingQuery) Where

Where adds a new predicate for the ProviderRatingQuery builder.

func (*ProviderRatingQuery) WithProviderProfile

func (prq *ProviderRatingQuery) WithProviderProfile(opts ...func(*ProviderProfileQuery)) *ProviderRatingQuery

WithProviderProfile tells the query-builder to eager-load the nodes that are connected to the "provider_profile" edge. The optional arguments are used to configure the query builder of the edge.

type ProviderRatingSelect

type ProviderRatingSelect struct {
	*ProviderRatingQuery
	// contains filtered or unexported fields
}

ProviderRatingSelect is the builder for selecting fields of ProviderRating entities.

func (*ProviderRatingSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*ProviderRatingSelect) Bool

func (s *ProviderRatingSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ProviderRatingSelect) BoolX

func (s *ProviderRatingSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ProviderRatingSelect) Bools

func (s *ProviderRatingSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ProviderRatingSelect) BoolsX

func (s *ProviderRatingSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ProviderRatingSelect) Float64

func (s *ProviderRatingSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ProviderRatingSelect) Float64X

func (s *ProviderRatingSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ProviderRatingSelect) Float64s

func (s *ProviderRatingSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ProviderRatingSelect) Float64sX

func (s *ProviderRatingSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ProviderRatingSelect) Int

func (s *ProviderRatingSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ProviderRatingSelect) IntX

func (s *ProviderRatingSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ProviderRatingSelect) Ints

func (s *ProviderRatingSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ProviderRatingSelect) IntsX

func (s *ProviderRatingSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ProviderRatingSelect) Scan

func (prs *ProviderRatingSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ProviderRatingSelect) ScanX

func (s *ProviderRatingSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ProviderRatingSelect) String

func (s *ProviderRatingSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ProviderRatingSelect) StringX

func (s *ProviderRatingSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ProviderRatingSelect) Strings

func (s *ProviderRatingSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ProviderRatingSelect) StringsX

func (s *ProviderRatingSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ProviderRatingUpdate

type ProviderRatingUpdate struct {
	// contains filtered or unexported fields
}

ProviderRatingUpdate is the builder for updating ProviderRating entities.

func (*ProviderRatingUpdate) AddTrustScore

AddTrustScore adds d to the "trust_score" field.

func (*ProviderRatingUpdate) Exec

func (pru *ProviderRatingUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ProviderRatingUpdate) ExecX

func (pru *ProviderRatingUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderRatingUpdate) Mutation

Mutation returns the ProviderRatingMutation object of the builder.

func (*ProviderRatingUpdate) Save

func (pru *ProviderRatingUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ProviderRatingUpdate) SaveX

func (pru *ProviderRatingUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ProviderRatingUpdate) SetNillableTrustScore

func (pru *ProviderRatingUpdate) SetNillableTrustScore(d *decimal.Decimal) *ProviderRatingUpdate

SetNillableTrustScore sets the "trust_score" field if the given value is not nil.

func (*ProviderRatingUpdate) SetTrustScore

SetTrustScore sets the "trust_score" field.

func (*ProviderRatingUpdate) SetUpdatedAt

func (pru *ProviderRatingUpdate) SetUpdatedAt(t time.Time) *ProviderRatingUpdate

SetUpdatedAt sets the "updated_at" field.

func (*ProviderRatingUpdate) Where

Where appends a list predicates to the ProviderRatingUpdate builder.

type ProviderRatingUpdateOne

type ProviderRatingUpdateOne struct {
	// contains filtered or unexported fields
}

ProviderRatingUpdateOne is the builder for updating a single ProviderRating entity.

func (*ProviderRatingUpdateOne) AddTrustScore

AddTrustScore adds d to the "trust_score" field.

func (*ProviderRatingUpdateOne) Exec

func (pruo *ProviderRatingUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ProviderRatingUpdateOne) ExecX

func (pruo *ProviderRatingUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderRatingUpdateOne) Mutation

Mutation returns the ProviderRatingMutation object of the builder.

func (*ProviderRatingUpdateOne) Save

Save executes the query and returns the updated ProviderRating entity.

func (*ProviderRatingUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ProviderRatingUpdateOne) Select

func (pruo *ProviderRatingUpdateOne) Select(field string, fields ...string) *ProviderRatingUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ProviderRatingUpdateOne) SetNillableTrustScore

func (pruo *ProviderRatingUpdateOne) SetNillableTrustScore(d *decimal.Decimal) *ProviderRatingUpdateOne

SetNillableTrustScore sets the "trust_score" field if the given value is not nil.

func (*ProviderRatingUpdateOne) SetTrustScore

SetTrustScore sets the "trust_score" field.

func (*ProviderRatingUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ProviderRatingUpdateOne) Where

Where appends a list predicates to the ProviderRatingUpdate builder.

type ProviderRatingUpsert

type ProviderRatingUpsert struct {
	*sql.UpdateSet
}

ProviderRatingUpsert is the "OnConflict" setter.

func (*ProviderRatingUpsert) AddTrustScore

AddTrustScore adds v to the "trust_score" field.

func (*ProviderRatingUpsert) SetTrustScore

SetTrustScore sets the "trust_score" field.

func (*ProviderRatingUpsert) SetUpdatedAt

func (u *ProviderRatingUpsert) SetUpdatedAt(v time.Time) *ProviderRatingUpsert

SetUpdatedAt sets the "updated_at" field.

func (*ProviderRatingUpsert) UpdateTrustScore

func (u *ProviderRatingUpsert) UpdateTrustScore() *ProviderRatingUpsert

UpdateTrustScore sets the "trust_score" field to the value that was provided on create.

func (*ProviderRatingUpsert) UpdateUpdatedAt

func (u *ProviderRatingUpsert) UpdateUpdatedAt() *ProviderRatingUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type ProviderRatingUpsertBulk

type ProviderRatingUpsertBulk struct {
	// contains filtered or unexported fields
}

ProviderRatingUpsertBulk is the builder for "upsert"-ing a bulk of ProviderRating nodes.

func (*ProviderRatingUpsertBulk) AddTrustScore

AddTrustScore adds v to the "trust_score" field.

func (*ProviderRatingUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*ProviderRatingUpsertBulk) Exec

Exec executes the query.

func (*ProviderRatingUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ProviderRatingUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.ProviderRating.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*ProviderRatingUpsertBulk) SetTrustScore

SetTrustScore sets the "trust_score" field.

func (*ProviderRatingUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ProviderRatingUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the ProviderRatingCreateBulk.OnConflict documentation for more info.

func (*ProviderRatingUpsertBulk) UpdateNewValues

func (u *ProviderRatingUpsertBulk) UpdateNewValues() *ProviderRatingUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.ProviderRating.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*ProviderRatingUpsertBulk) UpdateTrustScore

func (u *ProviderRatingUpsertBulk) UpdateTrustScore() *ProviderRatingUpsertBulk

UpdateTrustScore sets the "trust_score" field to the value that was provided on create.

func (*ProviderRatingUpsertBulk) UpdateUpdatedAt

func (u *ProviderRatingUpsertBulk) UpdateUpdatedAt() *ProviderRatingUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type ProviderRatingUpsertOne

type ProviderRatingUpsertOne struct {
	// contains filtered or unexported fields
}

ProviderRatingUpsertOne is the builder for "upsert"-ing

one ProviderRating node.

func (*ProviderRatingUpsertOne) AddTrustScore

AddTrustScore adds v to the "trust_score" field.

func (*ProviderRatingUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*ProviderRatingUpsertOne) Exec

Exec executes the query.

func (*ProviderRatingUpsertOne) ExecX

func (u *ProviderRatingUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProviderRatingUpsertOne) ID

func (u *ProviderRatingUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*ProviderRatingUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*ProviderRatingUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.ProviderRating.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*ProviderRatingUpsertOne) SetTrustScore

SetTrustScore sets the "trust_score" field.

func (*ProviderRatingUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ProviderRatingUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the ProviderRatingCreate.OnConflict documentation for more info.

func (*ProviderRatingUpsertOne) UpdateNewValues

func (u *ProviderRatingUpsertOne) UpdateNewValues() *ProviderRatingUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.ProviderRating.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*ProviderRatingUpsertOne) UpdateTrustScore

func (u *ProviderRatingUpsertOne) UpdateTrustScore() *ProviderRatingUpsertOne

UpdateTrustScore sets the "trust_score" field to the value that was provided on create.

func (*ProviderRatingUpsertOne) UpdateUpdatedAt

func (u *ProviderRatingUpsertOne) UpdateUpdatedAt() *ProviderRatingUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type ProviderRatings

type ProviderRatings []*ProviderRating

ProviderRatings is a parsable slice of ProviderRating.

type ProvisionBucket

type ProvisionBucket struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// MinAmount holds the value of the "min_amount" field.
	MinAmount decimal.Decimal `json:"min_amount,omitempty"`
	// MaxAmount holds the value of the "max_amount" field.
	MaxAmount decimal.Decimal `json:"max_amount,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ProvisionBucketQuery when eager-loading is set.
	Edges ProvisionBucketEdges `json:"edges"`
	// contains filtered or unexported fields
}

ProvisionBucket is the model entity for the ProvisionBucket schema.

func (*ProvisionBucket) QueryCurrency

func (pb *ProvisionBucket) QueryCurrency() *FiatCurrencyQuery

QueryCurrency queries the "currency" edge of the ProvisionBucket entity.

func (*ProvisionBucket) QueryLockPaymentOrders

func (pb *ProvisionBucket) QueryLockPaymentOrders() *LockPaymentOrderQuery

QueryLockPaymentOrders queries the "lock_payment_orders" edge of the ProvisionBucket entity.

func (*ProvisionBucket) QueryProviderProfiles

func (pb *ProvisionBucket) QueryProviderProfiles() *ProviderProfileQuery

QueryProviderProfiles queries the "provider_profiles" edge of the ProvisionBucket entity.

func (*ProvisionBucket) String

func (pb *ProvisionBucket) String() string

String implements the fmt.Stringer.

func (*ProvisionBucket) Unwrap

func (pb *ProvisionBucket) Unwrap() *ProvisionBucket

Unwrap unwraps the ProvisionBucket entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ProvisionBucket) Update

Update returns a builder for updating this ProvisionBucket. Note that you need to call ProvisionBucket.Unwrap() before calling this method if this ProvisionBucket was returned from a transaction, and the transaction was committed or rolled back.

func (*ProvisionBucket) Value

func (pb *ProvisionBucket) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ProvisionBucket. This includes values selected through modifiers, order, etc.

type ProvisionBucketClient

type ProvisionBucketClient struct {
	// contains filtered or unexported fields
}

ProvisionBucketClient is a client for the ProvisionBucket schema.

func NewProvisionBucketClient

func NewProvisionBucketClient(c config) *ProvisionBucketClient

NewProvisionBucketClient returns a client for the ProvisionBucket from the given config.

func (*ProvisionBucketClient) Create

Create returns a builder for creating a ProvisionBucket entity.

func (*ProvisionBucketClient) CreateBulk

CreateBulk returns a builder for creating a bulk of ProvisionBucket entities.

func (*ProvisionBucketClient) Delete

Delete returns a delete builder for ProvisionBucket.

func (*ProvisionBucketClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*ProvisionBucketClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ProvisionBucketClient) Get

Get returns a ProvisionBucket entity by its id.

func (*ProvisionBucketClient) GetX

GetX is like Get, but panics if an error occurs.

func (*ProvisionBucketClient) Hooks

func (c *ProvisionBucketClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ProvisionBucketClient) Intercept

func (c *ProvisionBucketClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `provisionbucket.Intercept(f(g(h())))`.

func (*ProvisionBucketClient) Interceptors

func (c *ProvisionBucketClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ProvisionBucketClient) MapCreateBulk

func (c *ProvisionBucketClient) MapCreateBulk(slice any, setFunc func(*ProvisionBucketCreate, int)) *ProvisionBucketCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ProvisionBucketClient) Query

Query returns a query builder for ProvisionBucket.

func (*ProvisionBucketClient) QueryCurrency

QueryCurrency queries the currency edge of a ProvisionBucket.

func (*ProvisionBucketClient) QueryLockPaymentOrders

func (c *ProvisionBucketClient) QueryLockPaymentOrders(pb *ProvisionBucket) *LockPaymentOrderQuery

QueryLockPaymentOrders queries the lock_payment_orders edge of a ProvisionBucket.

func (*ProvisionBucketClient) QueryProviderProfiles

func (c *ProvisionBucketClient) QueryProviderProfiles(pb *ProvisionBucket) *ProviderProfileQuery

QueryProviderProfiles queries the provider_profiles edge of a ProvisionBucket.

func (*ProvisionBucketClient) Update

Update returns an update builder for ProvisionBucket.

func (*ProvisionBucketClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*ProvisionBucketClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*ProvisionBucketClient) Use

func (c *ProvisionBucketClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `provisionbucket.Hooks(f(g(h())))`.

type ProvisionBucketCreate

type ProvisionBucketCreate struct {
	// contains filtered or unexported fields
}

ProvisionBucketCreate is the builder for creating a ProvisionBucket entity.

func (*ProvisionBucketCreate) AddLockPaymentOrderIDs

func (pbc *ProvisionBucketCreate) AddLockPaymentOrderIDs(ids ...uuid.UUID) *ProvisionBucketCreate

AddLockPaymentOrderIDs adds the "lock_payment_orders" edge to the LockPaymentOrder entity by IDs.

func (*ProvisionBucketCreate) AddLockPaymentOrders

func (pbc *ProvisionBucketCreate) AddLockPaymentOrders(l ...*LockPaymentOrder) *ProvisionBucketCreate

AddLockPaymentOrders adds the "lock_payment_orders" edges to the LockPaymentOrder entity.

func (*ProvisionBucketCreate) AddProviderProfileIDs

func (pbc *ProvisionBucketCreate) AddProviderProfileIDs(ids ...string) *ProvisionBucketCreate

AddProviderProfileIDs adds the "provider_profiles" edge to the ProviderProfile entity by IDs.

func (*ProvisionBucketCreate) AddProviderProfiles

func (pbc *ProvisionBucketCreate) AddProviderProfiles(p ...*ProviderProfile) *ProvisionBucketCreate

AddProviderProfiles adds the "provider_profiles" edges to the ProviderProfile entity.

func (*ProvisionBucketCreate) Exec

func (pbc *ProvisionBucketCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ProvisionBucketCreate) ExecX

func (pbc *ProvisionBucketCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProvisionBucketCreate) Mutation

Mutation returns the ProvisionBucketMutation object of the builder.

func (*ProvisionBucketCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.ProvisionBucket.Create().
	SetMinAmount(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.ProvisionBucketUpsert) {
		SetMinAmount(v+v).
	}).
	Exec(ctx)

func (*ProvisionBucketCreate) OnConflictColumns

func (pbc *ProvisionBucketCreate) OnConflictColumns(columns ...string) *ProvisionBucketUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.ProvisionBucket.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*ProvisionBucketCreate) Save

Save creates the ProvisionBucket in the database.

func (*ProvisionBucketCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*ProvisionBucketCreate) SetCreatedAt

func (pbc *ProvisionBucketCreate) SetCreatedAt(t time.Time) *ProvisionBucketCreate

SetCreatedAt sets the "created_at" field.

func (*ProvisionBucketCreate) SetCurrency

SetCurrency sets the "currency" edge to the FiatCurrency entity.

func (*ProvisionBucketCreate) SetCurrencyID

func (pbc *ProvisionBucketCreate) SetCurrencyID(id uuid.UUID) *ProvisionBucketCreate

SetCurrencyID sets the "currency" edge to the FiatCurrency entity by ID.

func (*ProvisionBucketCreate) SetMaxAmount

SetMaxAmount sets the "max_amount" field.

func (*ProvisionBucketCreate) SetMinAmount

SetMinAmount sets the "min_amount" field.

func (*ProvisionBucketCreate) SetNillableCreatedAt

func (pbc *ProvisionBucketCreate) SetNillableCreatedAt(t *time.Time) *ProvisionBucketCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

type ProvisionBucketCreateBulk

type ProvisionBucketCreateBulk struct {
	// contains filtered or unexported fields
}

ProvisionBucketCreateBulk is the builder for creating many ProvisionBucket entities in bulk.

func (*ProvisionBucketCreateBulk) Exec

Exec executes the query.

func (*ProvisionBucketCreateBulk) ExecX

func (pbcb *ProvisionBucketCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProvisionBucketCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.ProvisionBucket.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.ProvisionBucketUpsert) {
		SetMinAmount(v+v).
	}).
	Exec(ctx)

func (*ProvisionBucketCreateBulk) OnConflictColumns

func (pbcb *ProvisionBucketCreateBulk) OnConflictColumns(columns ...string) *ProvisionBucketUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.ProvisionBucket.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*ProvisionBucketCreateBulk) Save

Save creates the ProvisionBucket entities in the database.

func (*ProvisionBucketCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type ProvisionBucketDelete

type ProvisionBucketDelete struct {
	// contains filtered or unexported fields
}

ProvisionBucketDelete is the builder for deleting a ProvisionBucket entity.

func (*ProvisionBucketDelete) Exec

func (pbd *ProvisionBucketDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ProvisionBucketDelete) ExecX

func (pbd *ProvisionBucketDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ProvisionBucketDelete) Where

Where appends a list predicates to the ProvisionBucketDelete builder.

type ProvisionBucketDeleteOne

type ProvisionBucketDeleteOne struct {
	// contains filtered or unexported fields
}

ProvisionBucketDeleteOne is the builder for deleting a single ProvisionBucket entity.

func (*ProvisionBucketDeleteOne) Exec

Exec executes the deletion query.

func (*ProvisionBucketDeleteOne) ExecX

func (pbdo *ProvisionBucketDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProvisionBucketDeleteOne) Where

Where appends a list predicates to the ProvisionBucketDelete builder.

type ProvisionBucketEdges

type ProvisionBucketEdges struct {
	// Currency holds the value of the currency edge.
	Currency *FiatCurrency `json:"currency,omitempty"`
	// LockPaymentOrders holds the value of the lock_payment_orders edge.
	LockPaymentOrders []*LockPaymentOrder `json:"lock_payment_orders,omitempty"`
	// ProviderProfiles holds the value of the provider_profiles edge.
	ProviderProfiles []*ProviderProfile `json:"provider_profiles,omitempty"`
	// contains filtered or unexported fields
}

ProvisionBucketEdges holds the relations/edges for other nodes in the graph.

func (ProvisionBucketEdges) CurrencyOrErr

func (e ProvisionBucketEdges) CurrencyOrErr() (*FiatCurrency, error)

CurrencyOrErr returns the Currency value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ProvisionBucketEdges) LockPaymentOrdersOrErr

func (e ProvisionBucketEdges) LockPaymentOrdersOrErr() ([]*LockPaymentOrder, error)

LockPaymentOrdersOrErr returns the LockPaymentOrders value or an error if the edge was not loaded in eager-loading.

func (ProvisionBucketEdges) ProviderProfilesOrErr

func (e ProvisionBucketEdges) ProviderProfilesOrErr() ([]*ProviderProfile, error)

ProviderProfilesOrErr returns the ProviderProfiles value or an error if the edge was not loaded in eager-loading.

type ProvisionBucketGroupBy

type ProvisionBucketGroupBy struct {
	// contains filtered or unexported fields
}

ProvisionBucketGroupBy is the group-by builder for ProvisionBucket entities.

func (*ProvisionBucketGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*ProvisionBucketGroupBy) Bool

func (s *ProvisionBucketGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketGroupBy) BoolX

func (s *ProvisionBucketGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ProvisionBucketGroupBy) Bools

func (s *ProvisionBucketGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketGroupBy) BoolsX

func (s *ProvisionBucketGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ProvisionBucketGroupBy) Float64

func (s *ProvisionBucketGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketGroupBy) Float64X

func (s *ProvisionBucketGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ProvisionBucketGroupBy) Float64s

func (s *ProvisionBucketGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketGroupBy) Float64sX

func (s *ProvisionBucketGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ProvisionBucketGroupBy) Int

func (s *ProvisionBucketGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketGroupBy) IntX

func (s *ProvisionBucketGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ProvisionBucketGroupBy) Ints

func (s *ProvisionBucketGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketGroupBy) IntsX

func (s *ProvisionBucketGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ProvisionBucketGroupBy) Scan

func (pbgb *ProvisionBucketGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ProvisionBucketGroupBy) ScanX

func (s *ProvisionBucketGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ProvisionBucketGroupBy) String

func (s *ProvisionBucketGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketGroupBy) StringX

func (s *ProvisionBucketGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ProvisionBucketGroupBy) Strings

func (s *ProvisionBucketGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketGroupBy) StringsX

func (s *ProvisionBucketGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ProvisionBucketMutation

type ProvisionBucketMutation struct {
	// contains filtered or unexported fields
}

ProvisionBucketMutation represents an operation that mutates the ProvisionBucket nodes in the graph.

func (*ProvisionBucketMutation) AddField

func (m *ProvisionBucketMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ProvisionBucketMutation) AddLockPaymentOrderIDs

func (m *ProvisionBucketMutation) AddLockPaymentOrderIDs(ids ...uuid.UUID)

AddLockPaymentOrderIDs adds the "lock_payment_orders" edge to the LockPaymentOrder entity by ids.

func (*ProvisionBucketMutation) AddMaxAmount

func (m *ProvisionBucketMutation) AddMaxAmount(d decimal.Decimal)

AddMaxAmount adds d to the "max_amount" field.

func (*ProvisionBucketMutation) AddMinAmount

func (m *ProvisionBucketMutation) AddMinAmount(d decimal.Decimal)

AddMinAmount adds d to the "min_amount" field.

func (*ProvisionBucketMutation) AddProviderProfileIDs

func (m *ProvisionBucketMutation) AddProviderProfileIDs(ids ...string)

AddProviderProfileIDs adds the "provider_profiles" edge to the ProviderProfile entity by ids.

func (*ProvisionBucketMutation) AddedEdges

func (m *ProvisionBucketMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ProvisionBucketMutation) AddedField

func (m *ProvisionBucketMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ProvisionBucketMutation) AddedFields

func (m *ProvisionBucketMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ProvisionBucketMutation) AddedIDs

func (m *ProvisionBucketMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ProvisionBucketMutation) AddedMaxAmount

func (m *ProvisionBucketMutation) AddedMaxAmount() (r decimal.Decimal, exists bool)

AddedMaxAmount returns the value that was added to the "max_amount" field in this mutation.

func (*ProvisionBucketMutation) AddedMinAmount

func (m *ProvisionBucketMutation) AddedMinAmount() (r decimal.Decimal, exists bool)

AddedMinAmount returns the value that was added to the "min_amount" field in this mutation.

func (*ProvisionBucketMutation) ClearCurrency

func (m *ProvisionBucketMutation) ClearCurrency()

ClearCurrency clears the "currency" edge to the FiatCurrency entity.

func (*ProvisionBucketMutation) ClearEdge

func (m *ProvisionBucketMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ProvisionBucketMutation) ClearField

func (m *ProvisionBucketMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ProvisionBucketMutation) ClearLockPaymentOrders

func (m *ProvisionBucketMutation) ClearLockPaymentOrders()

ClearLockPaymentOrders clears the "lock_payment_orders" edge to the LockPaymentOrder entity.

func (*ProvisionBucketMutation) ClearProviderProfiles

func (m *ProvisionBucketMutation) ClearProviderProfiles()

ClearProviderProfiles clears the "provider_profiles" edge to the ProviderProfile entity.

func (*ProvisionBucketMutation) ClearedEdges

func (m *ProvisionBucketMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ProvisionBucketMutation) ClearedFields

func (m *ProvisionBucketMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ProvisionBucketMutation) Client

func (m ProvisionBucketMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ProvisionBucketMutation) CreatedAt

func (m *ProvisionBucketMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ProvisionBucketMutation) CurrencyCleared

func (m *ProvisionBucketMutation) CurrencyCleared() bool

CurrencyCleared reports if the "currency" edge to the FiatCurrency entity was cleared.

func (*ProvisionBucketMutation) CurrencyID

func (m *ProvisionBucketMutation) CurrencyID() (id uuid.UUID, exists bool)

CurrencyID returns the "currency" edge ID in the mutation.

func (*ProvisionBucketMutation) CurrencyIDs

func (m *ProvisionBucketMutation) CurrencyIDs() (ids []uuid.UUID)

CurrencyIDs returns the "currency" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CurrencyID instead. It exists only for internal usage by the builders.

func (*ProvisionBucketMutation) EdgeCleared

func (m *ProvisionBucketMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ProvisionBucketMutation) Field

func (m *ProvisionBucketMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ProvisionBucketMutation) FieldCleared

func (m *ProvisionBucketMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ProvisionBucketMutation) Fields

func (m *ProvisionBucketMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ProvisionBucketMutation) ID

func (m *ProvisionBucketMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ProvisionBucketMutation) IDs

func (m *ProvisionBucketMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*ProvisionBucketMutation) LockPaymentOrdersCleared

func (m *ProvisionBucketMutation) LockPaymentOrdersCleared() bool

LockPaymentOrdersCleared reports if the "lock_payment_orders" edge to the LockPaymentOrder entity was cleared.

func (*ProvisionBucketMutation) LockPaymentOrdersIDs

func (m *ProvisionBucketMutation) LockPaymentOrdersIDs() (ids []uuid.UUID)

LockPaymentOrdersIDs returns the "lock_payment_orders" edge IDs in the mutation.

func (*ProvisionBucketMutation) MaxAmount

func (m *ProvisionBucketMutation) MaxAmount() (r decimal.Decimal, exists bool)

MaxAmount returns the value of the "max_amount" field in the mutation.

func (*ProvisionBucketMutation) MinAmount

func (m *ProvisionBucketMutation) MinAmount() (r decimal.Decimal, exists bool)

MinAmount returns the value of the "min_amount" field in the mutation.

func (*ProvisionBucketMutation) OldCreatedAt

func (m *ProvisionBucketMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the ProvisionBucket entity. If the ProvisionBucket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProvisionBucketMutation) OldField

func (m *ProvisionBucketMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ProvisionBucketMutation) OldMaxAmount

func (m *ProvisionBucketMutation) OldMaxAmount(ctx context.Context) (v decimal.Decimal, err error)

OldMaxAmount returns the old "max_amount" field's value of the ProvisionBucket entity. If the ProvisionBucket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProvisionBucketMutation) OldMinAmount

func (m *ProvisionBucketMutation) OldMinAmount(ctx context.Context) (v decimal.Decimal, err error)

OldMinAmount returns the old "min_amount" field's value of the ProvisionBucket entity. If the ProvisionBucket object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProvisionBucketMutation) Op

func (m *ProvisionBucketMutation) Op() Op

Op returns the operation name.

func (*ProvisionBucketMutation) ProviderProfilesCleared

func (m *ProvisionBucketMutation) ProviderProfilesCleared() bool

ProviderProfilesCleared reports if the "provider_profiles" edge to the ProviderProfile entity was cleared.

func (*ProvisionBucketMutation) ProviderProfilesIDs

func (m *ProvisionBucketMutation) ProviderProfilesIDs() (ids []string)

ProviderProfilesIDs returns the "provider_profiles" edge IDs in the mutation.

func (*ProvisionBucketMutation) RemoveLockPaymentOrderIDs

func (m *ProvisionBucketMutation) RemoveLockPaymentOrderIDs(ids ...uuid.UUID)

RemoveLockPaymentOrderIDs removes the "lock_payment_orders" edge to the LockPaymentOrder entity by IDs.

func (*ProvisionBucketMutation) RemoveProviderProfileIDs

func (m *ProvisionBucketMutation) RemoveProviderProfileIDs(ids ...string)

RemoveProviderProfileIDs removes the "provider_profiles" edge to the ProviderProfile entity by IDs.

func (*ProvisionBucketMutation) RemovedEdges

func (m *ProvisionBucketMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ProvisionBucketMutation) RemovedIDs

func (m *ProvisionBucketMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ProvisionBucketMutation) RemovedLockPaymentOrdersIDs

func (m *ProvisionBucketMutation) RemovedLockPaymentOrdersIDs() (ids []uuid.UUID)

RemovedLockPaymentOrders returns the removed IDs of the "lock_payment_orders" edge to the LockPaymentOrder entity.

func (*ProvisionBucketMutation) RemovedProviderProfilesIDs

func (m *ProvisionBucketMutation) RemovedProviderProfilesIDs() (ids []string)

RemovedProviderProfiles returns the removed IDs of the "provider_profiles" edge to the ProviderProfile entity.

func (*ProvisionBucketMutation) ResetCreatedAt

func (m *ProvisionBucketMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ProvisionBucketMutation) ResetCurrency

func (m *ProvisionBucketMutation) ResetCurrency()

ResetCurrency resets all changes to the "currency" edge.

func (*ProvisionBucketMutation) ResetEdge

func (m *ProvisionBucketMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ProvisionBucketMutation) ResetField

func (m *ProvisionBucketMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ProvisionBucketMutation) ResetLockPaymentOrders

func (m *ProvisionBucketMutation) ResetLockPaymentOrders()

ResetLockPaymentOrders resets all changes to the "lock_payment_orders" edge.

func (*ProvisionBucketMutation) ResetMaxAmount

func (m *ProvisionBucketMutation) ResetMaxAmount()

ResetMaxAmount resets all changes to the "max_amount" field.

func (*ProvisionBucketMutation) ResetMinAmount

func (m *ProvisionBucketMutation) ResetMinAmount()

ResetMinAmount resets all changes to the "min_amount" field.

func (*ProvisionBucketMutation) ResetProviderProfiles

func (m *ProvisionBucketMutation) ResetProviderProfiles()

ResetProviderProfiles resets all changes to the "provider_profiles" edge.

func (*ProvisionBucketMutation) SetCreatedAt

func (m *ProvisionBucketMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*ProvisionBucketMutation) SetCurrencyID

func (m *ProvisionBucketMutation) SetCurrencyID(id uuid.UUID)

SetCurrencyID sets the "currency" edge to the FiatCurrency entity by id.

func (*ProvisionBucketMutation) SetField

func (m *ProvisionBucketMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ProvisionBucketMutation) SetMaxAmount

func (m *ProvisionBucketMutation) SetMaxAmount(d decimal.Decimal)

SetMaxAmount sets the "max_amount" field.

func (*ProvisionBucketMutation) SetMinAmount

func (m *ProvisionBucketMutation) SetMinAmount(d decimal.Decimal)

SetMinAmount sets the "min_amount" field.

func (*ProvisionBucketMutation) SetOp

func (m *ProvisionBucketMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (ProvisionBucketMutation) Tx

func (m ProvisionBucketMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ProvisionBucketMutation) Type

func (m *ProvisionBucketMutation) Type() string

Type returns the node type of this mutation (ProvisionBucket).

func (*ProvisionBucketMutation) Where

Where appends a list predicates to the ProvisionBucketMutation builder.

func (*ProvisionBucketMutation) WhereP

func (m *ProvisionBucketMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ProvisionBucketMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ProvisionBucketQuery

type ProvisionBucketQuery struct {
	// contains filtered or unexported fields
}

ProvisionBucketQuery is the builder for querying ProvisionBucket entities.

func (*ProvisionBucketQuery) Aggregate

Aggregate returns a ProvisionBucketSelect configured with the given aggregations.

func (*ProvisionBucketQuery) All

All executes the query and returns a list of ProvisionBuckets.

func (*ProvisionBucketQuery) AllX

AllX is like All, but panics if an error occurs.

func (*ProvisionBucketQuery) Clone

Clone returns a duplicate of the ProvisionBucketQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ProvisionBucketQuery) Count

func (pbq *ProvisionBucketQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ProvisionBucketQuery) CountX

func (pbq *ProvisionBucketQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ProvisionBucketQuery) Exist

func (pbq *ProvisionBucketQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ProvisionBucketQuery) ExistX

func (pbq *ProvisionBucketQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ProvisionBucketQuery) First

First returns the first ProvisionBucket entity from the query. Returns a *NotFoundError when no ProvisionBucket was found.

func (*ProvisionBucketQuery) FirstID

func (pbq *ProvisionBucketQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ProvisionBucket ID from the query. Returns a *NotFoundError when no ProvisionBucket ID was found.

func (*ProvisionBucketQuery) FirstIDX

func (pbq *ProvisionBucketQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ProvisionBucketQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*ProvisionBucketQuery) GroupBy

func (pbq *ProvisionBucketQuery) GroupBy(field string, fields ...string) *ProvisionBucketGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	MinAmount decimal.Decimal `json:"min_amount,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ProvisionBucket.Query().
	GroupBy(provisionbucket.FieldMinAmount).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ProvisionBucketQuery) IDs

func (pbq *ProvisionBucketQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of ProvisionBucket IDs.

func (*ProvisionBucketQuery) IDsX

func (pbq *ProvisionBucketQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ProvisionBucketQuery) Limit

func (pbq *ProvisionBucketQuery) Limit(limit int) *ProvisionBucketQuery

Limit the number of records to be returned by this query.

func (*ProvisionBucketQuery) Offset

func (pbq *ProvisionBucketQuery) Offset(offset int) *ProvisionBucketQuery

Offset to start from.

func (*ProvisionBucketQuery) Only

Only returns a single ProvisionBucket entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ProvisionBucket entity is found. Returns a *NotFoundError when no ProvisionBucket entities are found.

func (*ProvisionBucketQuery) OnlyID

func (pbq *ProvisionBucketQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ProvisionBucket ID in the query. Returns a *NotSingularError when more than one ProvisionBucket ID is found. Returns a *NotFoundError when no entities are found.

func (*ProvisionBucketQuery) OnlyIDX

func (pbq *ProvisionBucketQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ProvisionBucketQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*ProvisionBucketQuery) Order

Order specifies how the records should be ordered.

func (*ProvisionBucketQuery) QueryCurrency

func (pbq *ProvisionBucketQuery) QueryCurrency() *FiatCurrencyQuery

QueryCurrency chains the current query on the "currency" edge.

func (*ProvisionBucketQuery) QueryLockPaymentOrders

func (pbq *ProvisionBucketQuery) QueryLockPaymentOrders() *LockPaymentOrderQuery

QueryLockPaymentOrders chains the current query on the "lock_payment_orders" edge.

func (*ProvisionBucketQuery) QueryProviderProfiles

func (pbq *ProvisionBucketQuery) QueryProviderProfiles() *ProviderProfileQuery

QueryProviderProfiles chains the current query on the "provider_profiles" edge.

func (*ProvisionBucketQuery) Select

func (pbq *ProvisionBucketQuery) Select(fields ...string) *ProvisionBucketSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	MinAmount decimal.Decimal `json:"min_amount,omitempty"`
}

client.ProvisionBucket.Query().
	Select(provisionbucket.FieldMinAmount).
	Scan(ctx, &v)

func (*ProvisionBucketQuery) Unique

func (pbq *ProvisionBucketQuery) Unique(unique bool) *ProvisionBucketQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ProvisionBucketQuery) Where

Where adds a new predicate for the ProvisionBucketQuery builder.

func (*ProvisionBucketQuery) WithCurrency

func (pbq *ProvisionBucketQuery) WithCurrency(opts ...func(*FiatCurrencyQuery)) *ProvisionBucketQuery

WithCurrency tells the query-builder to eager-load the nodes that are connected to the "currency" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProvisionBucketQuery) WithLockPaymentOrders

func (pbq *ProvisionBucketQuery) WithLockPaymentOrders(opts ...func(*LockPaymentOrderQuery)) *ProvisionBucketQuery

WithLockPaymentOrders tells the query-builder to eager-load the nodes that are connected to the "lock_payment_orders" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProvisionBucketQuery) WithProviderProfiles

func (pbq *ProvisionBucketQuery) WithProviderProfiles(opts ...func(*ProviderProfileQuery)) *ProvisionBucketQuery

WithProviderProfiles tells the query-builder to eager-load the nodes that are connected to the "provider_profiles" edge. The optional arguments are used to configure the query builder of the edge.

type ProvisionBucketSelect

type ProvisionBucketSelect struct {
	*ProvisionBucketQuery
	// contains filtered or unexported fields
}

ProvisionBucketSelect is the builder for selecting fields of ProvisionBucket entities.

func (*ProvisionBucketSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*ProvisionBucketSelect) Bool

func (s *ProvisionBucketSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketSelect) BoolX

func (s *ProvisionBucketSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ProvisionBucketSelect) Bools

func (s *ProvisionBucketSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketSelect) BoolsX

func (s *ProvisionBucketSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ProvisionBucketSelect) Float64

func (s *ProvisionBucketSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketSelect) Float64X

func (s *ProvisionBucketSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ProvisionBucketSelect) Float64s

func (s *ProvisionBucketSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketSelect) Float64sX

func (s *ProvisionBucketSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ProvisionBucketSelect) Int

func (s *ProvisionBucketSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketSelect) IntX

func (s *ProvisionBucketSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ProvisionBucketSelect) Ints

func (s *ProvisionBucketSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketSelect) IntsX

func (s *ProvisionBucketSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ProvisionBucketSelect) Scan

func (pbs *ProvisionBucketSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ProvisionBucketSelect) ScanX

func (s *ProvisionBucketSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ProvisionBucketSelect) String

func (s *ProvisionBucketSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketSelect) StringX

func (s *ProvisionBucketSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ProvisionBucketSelect) Strings

func (s *ProvisionBucketSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ProvisionBucketSelect) StringsX

func (s *ProvisionBucketSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ProvisionBucketUpdate

type ProvisionBucketUpdate struct {
	// contains filtered or unexported fields
}

ProvisionBucketUpdate is the builder for updating ProvisionBucket entities.

func (*ProvisionBucketUpdate) AddLockPaymentOrderIDs

func (pbu *ProvisionBucketUpdate) AddLockPaymentOrderIDs(ids ...uuid.UUID) *ProvisionBucketUpdate

AddLockPaymentOrderIDs adds the "lock_payment_orders" edge to the LockPaymentOrder entity by IDs.

func (*ProvisionBucketUpdate) AddLockPaymentOrders

func (pbu *ProvisionBucketUpdate) AddLockPaymentOrders(l ...*LockPaymentOrder) *ProvisionBucketUpdate

AddLockPaymentOrders adds the "lock_payment_orders" edges to the LockPaymentOrder entity.

func (*ProvisionBucketUpdate) AddMaxAmount

AddMaxAmount adds d to the "max_amount" field.

func (*ProvisionBucketUpdate) AddMinAmount

AddMinAmount adds d to the "min_amount" field.

func (*ProvisionBucketUpdate) AddProviderProfileIDs

func (pbu *ProvisionBucketUpdate) AddProviderProfileIDs(ids ...string) *ProvisionBucketUpdate

AddProviderProfileIDs adds the "provider_profiles" edge to the ProviderProfile entity by IDs.

func (*ProvisionBucketUpdate) AddProviderProfiles

func (pbu *ProvisionBucketUpdate) AddProviderProfiles(p ...*ProviderProfile) *ProvisionBucketUpdate

AddProviderProfiles adds the "provider_profiles" edges to the ProviderProfile entity.

func (*ProvisionBucketUpdate) ClearCurrency

func (pbu *ProvisionBucketUpdate) ClearCurrency() *ProvisionBucketUpdate

ClearCurrency clears the "currency" edge to the FiatCurrency entity.

func (*ProvisionBucketUpdate) ClearLockPaymentOrders

func (pbu *ProvisionBucketUpdate) ClearLockPaymentOrders() *ProvisionBucketUpdate

ClearLockPaymentOrders clears all "lock_payment_orders" edges to the LockPaymentOrder entity.

func (*ProvisionBucketUpdate) ClearProviderProfiles

func (pbu *ProvisionBucketUpdate) ClearProviderProfiles() *ProvisionBucketUpdate

ClearProviderProfiles clears all "provider_profiles" edges to the ProviderProfile entity.

func (*ProvisionBucketUpdate) Exec

func (pbu *ProvisionBucketUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ProvisionBucketUpdate) ExecX

func (pbu *ProvisionBucketUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProvisionBucketUpdate) Mutation

Mutation returns the ProvisionBucketMutation object of the builder.

func (*ProvisionBucketUpdate) RemoveLockPaymentOrderIDs

func (pbu *ProvisionBucketUpdate) RemoveLockPaymentOrderIDs(ids ...uuid.UUID) *ProvisionBucketUpdate

RemoveLockPaymentOrderIDs removes the "lock_payment_orders" edge to LockPaymentOrder entities by IDs.

func (*ProvisionBucketUpdate) RemoveLockPaymentOrders

func (pbu *ProvisionBucketUpdate) RemoveLockPaymentOrders(l ...*LockPaymentOrder) *ProvisionBucketUpdate

RemoveLockPaymentOrders removes "lock_payment_orders" edges to LockPaymentOrder entities.

func (*ProvisionBucketUpdate) RemoveProviderProfileIDs

func (pbu *ProvisionBucketUpdate) RemoveProviderProfileIDs(ids ...string) *ProvisionBucketUpdate

RemoveProviderProfileIDs removes the "provider_profiles" edge to ProviderProfile entities by IDs.

func (*ProvisionBucketUpdate) RemoveProviderProfiles

func (pbu *ProvisionBucketUpdate) RemoveProviderProfiles(p ...*ProviderProfile) *ProvisionBucketUpdate

RemoveProviderProfiles removes "provider_profiles" edges to ProviderProfile entities.

func (*ProvisionBucketUpdate) Save

func (pbu *ProvisionBucketUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ProvisionBucketUpdate) SaveX

func (pbu *ProvisionBucketUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ProvisionBucketUpdate) SetCurrency

SetCurrency sets the "currency" edge to the FiatCurrency entity.

func (*ProvisionBucketUpdate) SetCurrencyID

func (pbu *ProvisionBucketUpdate) SetCurrencyID(id uuid.UUID) *ProvisionBucketUpdate

SetCurrencyID sets the "currency" edge to the FiatCurrency entity by ID.

func (*ProvisionBucketUpdate) SetMaxAmount

SetMaxAmount sets the "max_amount" field.

func (*ProvisionBucketUpdate) SetMinAmount

SetMinAmount sets the "min_amount" field.

func (*ProvisionBucketUpdate) SetNillableMaxAmount

func (pbu *ProvisionBucketUpdate) SetNillableMaxAmount(d *decimal.Decimal) *ProvisionBucketUpdate

SetNillableMaxAmount sets the "max_amount" field if the given value is not nil.

func (*ProvisionBucketUpdate) SetNillableMinAmount

func (pbu *ProvisionBucketUpdate) SetNillableMinAmount(d *decimal.Decimal) *ProvisionBucketUpdate

SetNillableMinAmount sets the "min_amount" field if the given value is not nil.

func (*ProvisionBucketUpdate) Where

Where appends a list predicates to the ProvisionBucketUpdate builder.

type ProvisionBucketUpdateOne

type ProvisionBucketUpdateOne struct {
	// contains filtered or unexported fields
}

ProvisionBucketUpdateOne is the builder for updating a single ProvisionBucket entity.

func (*ProvisionBucketUpdateOne) AddLockPaymentOrderIDs

func (pbuo *ProvisionBucketUpdateOne) AddLockPaymentOrderIDs(ids ...uuid.UUID) *ProvisionBucketUpdateOne

AddLockPaymentOrderIDs adds the "lock_payment_orders" edge to the LockPaymentOrder entity by IDs.

func (*ProvisionBucketUpdateOne) AddLockPaymentOrders

func (pbuo *ProvisionBucketUpdateOne) AddLockPaymentOrders(l ...*LockPaymentOrder) *ProvisionBucketUpdateOne

AddLockPaymentOrders adds the "lock_payment_orders" edges to the LockPaymentOrder entity.

func (*ProvisionBucketUpdateOne) AddMaxAmount

AddMaxAmount adds d to the "max_amount" field.

func (*ProvisionBucketUpdateOne) AddMinAmount

AddMinAmount adds d to the "min_amount" field.

func (*ProvisionBucketUpdateOne) AddProviderProfileIDs

func (pbuo *ProvisionBucketUpdateOne) AddProviderProfileIDs(ids ...string) *ProvisionBucketUpdateOne

AddProviderProfileIDs adds the "provider_profiles" edge to the ProviderProfile entity by IDs.

func (*ProvisionBucketUpdateOne) AddProviderProfiles

func (pbuo *ProvisionBucketUpdateOne) AddProviderProfiles(p ...*ProviderProfile) *ProvisionBucketUpdateOne

AddProviderProfiles adds the "provider_profiles" edges to the ProviderProfile entity.

func (*ProvisionBucketUpdateOne) ClearCurrency

func (pbuo *ProvisionBucketUpdateOne) ClearCurrency() *ProvisionBucketUpdateOne

ClearCurrency clears the "currency" edge to the FiatCurrency entity.

func (*ProvisionBucketUpdateOne) ClearLockPaymentOrders

func (pbuo *ProvisionBucketUpdateOne) ClearLockPaymentOrders() *ProvisionBucketUpdateOne

ClearLockPaymentOrders clears all "lock_payment_orders" edges to the LockPaymentOrder entity.

func (*ProvisionBucketUpdateOne) ClearProviderProfiles

func (pbuo *ProvisionBucketUpdateOne) ClearProviderProfiles() *ProvisionBucketUpdateOne

ClearProviderProfiles clears all "provider_profiles" edges to the ProviderProfile entity.

func (*ProvisionBucketUpdateOne) Exec

Exec executes the query on the entity.

func (*ProvisionBucketUpdateOne) ExecX

func (pbuo *ProvisionBucketUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProvisionBucketUpdateOne) Mutation

Mutation returns the ProvisionBucketMutation object of the builder.

func (*ProvisionBucketUpdateOne) RemoveLockPaymentOrderIDs

func (pbuo *ProvisionBucketUpdateOne) RemoveLockPaymentOrderIDs(ids ...uuid.UUID) *ProvisionBucketUpdateOne

RemoveLockPaymentOrderIDs removes the "lock_payment_orders" edge to LockPaymentOrder entities by IDs.

func (*ProvisionBucketUpdateOne) RemoveLockPaymentOrders

func (pbuo *ProvisionBucketUpdateOne) RemoveLockPaymentOrders(l ...*LockPaymentOrder) *ProvisionBucketUpdateOne

RemoveLockPaymentOrders removes "lock_payment_orders" edges to LockPaymentOrder entities.

func (*ProvisionBucketUpdateOne) RemoveProviderProfileIDs

func (pbuo *ProvisionBucketUpdateOne) RemoveProviderProfileIDs(ids ...string) *ProvisionBucketUpdateOne

RemoveProviderProfileIDs removes the "provider_profiles" edge to ProviderProfile entities by IDs.

func (*ProvisionBucketUpdateOne) RemoveProviderProfiles

func (pbuo *ProvisionBucketUpdateOne) RemoveProviderProfiles(p ...*ProviderProfile) *ProvisionBucketUpdateOne

RemoveProviderProfiles removes "provider_profiles" edges to ProviderProfile entities.

func (*ProvisionBucketUpdateOne) Save

Save executes the query and returns the updated ProvisionBucket entity.

func (*ProvisionBucketUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ProvisionBucketUpdateOne) Select

func (pbuo *ProvisionBucketUpdateOne) Select(field string, fields ...string) *ProvisionBucketUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ProvisionBucketUpdateOne) SetCurrency

SetCurrency sets the "currency" edge to the FiatCurrency entity.

func (*ProvisionBucketUpdateOne) SetCurrencyID

SetCurrencyID sets the "currency" edge to the FiatCurrency entity by ID.

func (*ProvisionBucketUpdateOne) SetMaxAmount

SetMaxAmount sets the "max_amount" field.

func (*ProvisionBucketUpdateOne) SetMinAmount

SetMinAmount sets the "min_amount" field.

func (*ProvisionBucketUpdateOne) SetNillableMaxAmount

func (pbuo *ProvisionBucketUpdateOne) SetNillableMaxAmount(d *decimal.Decimal) *ProvisionBucketUpdateOne

SetNillableMaxAmount sets the "max_amount" field if the given value is not nil.

func (*ProvisionBucketUpdateOne) SetNillableMinAmount

func (pbuo *ProvisionBucketUpdateOne) SetNillableMinAmount(d *decimal.Decimal) *ProvisionBucketUpdateOne

SetNillableMinAmount sets the "min_amount" field if the given value is not nil.

func (*ProvisionBucketUpdateOne) Where

Where appends a list predicates to the ProvisionBucketUpdate builder.

type ProvisionBucketUpsert

type ProvisionBucketUpsert struct {
	*sql.UpdateSet
}

ProvisionBucketUpsert is the "OnConflict" setter.

func (*ProvisionBucketUpsert) AddMaxAmount

AddMaxAmount adds v to the "max_amount" field.

func (*ProvisionBucketUpsert) AddMinAmount

AddMinAmount adds v to the "min_amount" field.

func (*ProvisionBucketUpsert) SetMaxAmount

SetMaxAmount sets the "max_amount" field.

func (*ProvisionBucketUpsert) SetMinAmount

SetMinAmount sets the "min_amount" field.

func (*ProvisionBucketUpsert) UpdateMaxAmount

func (u *ProvisionBucketUpsert) UpdateMaxAmount() *ProvisionBucketUpsert

UpdateMaxAmount sets the "max_amount" field to the value that was provided on create.

func (*ProvisionBucketUpsert) UpdateMinAmount

func (u *ProvisionBucketUpsert) UpdateMinAmount() *ProvisionBucketUpsert

UpdateMinAmount sets the "min_amount" field to the value that was provided on create.

type ProvisionBucketUpsertBulk

type ProvisionBucketUpsertBulk struct {
	// contains filtered or unexported fields
}

ProvisionBucketUpsertBulk is the builder for "upsert"-ing a bulk of ProvisionBucket nodes.

func (*ProvisionBucketUpsertBulk) AddMaxAmount

AddMaxAmount adds v to the "max_amount" field.

func (*ProvisionBucketUpsertBulk) AddMinAmount

AddMinAmount adds v to the "min_amount" field.

func (*ProvisionBucketUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*ProvisionBucketUpsertBulk) Exec

Exec executes the query.

func (*ProvisionBucketUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ProvisionBucketUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.ProvisionBucket.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*ProvisionBucketUpsertBulk) SetMaxAmount

SetMaxAmount sets the "max_amount" field.

func (*ProvisionBucketUpsertBulk) SetMinAmount

SetMinAmount sets the "min_amount" field.

func (*ProvisionBucketUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the ProvisionBucketCreateBulk.OnConflict documentation for more info.

func (*ProvisionBucketUpsertBulk) UpdateMaxAmount

UpdateMaxAmount sets the "max_amount" field to the value that was provided on create.

func (*ProvisionBucketUpsertBulk) UpdateMinAmount

UpdateMinAmount sets the "min_amount" field to the value that was provided on create.

func (*ProvisionBucketUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.ProvisionBucket.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

type ProvisionBucketUpsertOne

type ProvisionBucketUpsertOne struct {
	// contains filtered or unexported fields
}

ProvisionBucketUpsertOne is the builder for "upsert"-ing

one ProvisionBucket node.

func (*ProvisionBucketUpsertOne) AddMaxAmount

AddMaxAmount adds v to the "max_amount" field.

func (*ProvisionBucketUpsertOne) AddMinAmount

AddMinAmount adds v to the "min_amount" field.

func (*ProvisionBucketUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*ProvisionBucketUpsertOne) Exec

Exec executes the query.

func (*ProvisionBucketUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ProvisionBucketUpsertOne) ID

func (u *ProvisionBucketUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*ProvisionBucketUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*ProvisionBucketUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.ProvisionBucket.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*ProvisionBucketUpsertOne) SetMaxAmount

SetMaxAmount sets the "max_amount" field.

func (*ProvisionBucketUpsertOne) SetMinAmount

SetMinAmount sets the "min_amount" field.

func (*ProvisionBucketUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the ProvisionBucketCreate.OnConflict documentation for more info.

func (*ProvisionBucketUpsertOne) UpdateMaxAmount

func (u *ProvisionBucketUpsertOne) UpdateMaxAmount() *ProvisionBucketUpsertOne

UpdateMaxAmount sets the "max_amount" field to the value that was provided on create.

func (*ProvisionBucketUpsertOne) UpdateMinAmount

func (u *ProvisionBucketUpsertOne) UpdateMinAmount() *ProvisionBucketUpsertOne

UpdateMinAmount sets the "min_amount" field to the value that was provided on create.

func (*ProvisionBucketUpsertOne) UpdateNewValues

func (u *ProvisionBucketUpsertOne) UpdateNewValues() *ProvisionBucketUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.ProvisionBucket.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

type ProvisionBuckets

type ProvisionBuckets []*ProvisionBucket

ProvisionBuckets is a parsable slice of ProvisionBucket.

type Querier

type Querier = ent.Querier

ent aliases to avoid import conflicts in user's code.

type QuerierFunc

type QuerierFunc = ent.QuerierFunc

ent aliases to avoid import conflicts in user's code.

type Query

type Query = ent.Query

ent aliases to avoid import conflicts in user's code.

type QueryContext

type QueryContext = ent.QueryContext

ent aliases to avoid import conflicts in user's code.

type ReceiveAddress

type ReceiveAddress struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Address holds the value of the "address" field.
	Address string `json:"address,omitempty"`
	// Salt holds the value of the "salt" field.
	Salt []byte `json:"salt,omitempty"`
	// Status holds the value of the "status" field.
	Status receiveaddress.Status `json:"status,omitempty"`
	// LastIndexedBlock holds the value of the "last_indexed_block" field.
	LastIndexedBlock int64 `json:"last_indexed_block,omitempty"`
	// LastUsed holds the value of the "last_used" field.
	LastUsed time.Time `json:"last_used,omitempty"`
	// TxHash holds the value of the "tx_hash" field.
	TxHash string `json:"tx_hash,omitempty"`
	// ValidUntil holds the value of the "valid_until" field.
	ValidUntil time.Time `json:"valid_until,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ReceiveAddressQuery when eager-loading is set.
	Edges ReceiveAddressEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReceiveAddress is the model entity for the ReceiveAddress schema.

func (*ReceiveAddress) QueryPaymentOrder

func (ra *ReceiveAddress) QueryPaymentOrder() *PaymentOrderQuery

QueryPaymentOrder queries the "payment_order" edge of the ReceiveAddress entity.

func (*ReceiveAddress) String

func (ra *ReceiveAddress) String() string

String implements the fmt.Stringer.

func (*ReceiveAddress) Unwrap

func (ra *ReceiveAddress) Unwrap() *ReceiveAddress

Unwrap unwraps the ReceiveAddress entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ReceiveAddress) Update

Update returns a builder for updating this ReceiveAddress. Note that you need to call ReceiveAddress.Unwrap() before calling this method if this ReceiveAddress was returned from a transaction, and the transaction was committed or rolled back.

func (*ReceiveAddress) Value

func (ra *ReceiveAddress) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the ReceiveAddress. This includes values selected through modifiers, order, etc.

type ReceiveAddressClient

type ReceiveAddressClient struct {
	// contains filtered or unexported fields
}

ReceiveAddressClient is a client for the ReceiveAddress schema.

func NewReceiveAddressClient

func NewReceiveAddressClient(c config) *ReceiveAddressClient

NewReceiveAddressClient returns a client for the ReceiveAddress from the given config.

func (*ReceiveAddressClient) Create

Create returns a builder for creating a ReceiveAddress entity.

func (*ReceiveAddressClient) CreateBulk

CreateBulk returns a builder for creating a bulk of ReceiveAddress entities.

func (*ReceiveAddressClient) Delete

Delete returns a delete builder for ReceiveAddress.

func (*ReceiveAddressClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*ReceiveAddressClient) DeleteOneID

func (c *ReceiveAddressClient) DeleteOneID(id int) *ReceiveAddressDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*ReceiveAddressClient) Get

Get returns a ReceiveAddress entity by its id.

func (*ReceiveAddressClient) GetX

GetX is like Get, but panics if an error occurs.

func (*ReceiveAddressClient) Hooks

func (c *ReceiveAddressClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReceiveAddressClient) Intercept

func (c *ReceiveAddressClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `receiveaddress.Intercept(f(g(h())))`.

func (*ReceiveAddressClient) Interceptors

func (c *ReceiveAddressClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*ReceiveAddressClient) MapCreateBulk

func (c *ReceiveAddressClient) MapCreateBulk(slice any, setFunc func(*ReceiveAddressCreate, int)) *ReceiveAddressCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*ReceiveAddressClient) Query

Query returns a query builder for ReceiveAddress.

func (*ReceiveAddressClient) QueryPaymentOrder

func (c *ReceiveAddressClient) QueryPaymentOrder(ra *ReceiveAddress) *PaymentOrderQuery

QueryPaymentOrder queries the payment_order edge of a ReceiveAddress.

func (*ReceiveAddressClient) Update

Update returns an update builder for ReceiveAddress.

func (*ReceiveAddressClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*ReceiveAddressClient) UpdateOneID

func (c *ReceiveAddressClient) UpdateOneID(id int) *ReceiveAddressUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ReceiveAddressClient) Use

func (c *ReceiveAddressClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `receiveaddress.Hooks(f(g(h())))`.

type ReceiveAddressCreate

type ReceiveAddressCreate struct {
	// contains filtered or unexported fields
}

ReceiveAddressCreate is the builder for creating a ReceiveAddress entity.

func (*ReceiveAddressCreate) Exec

func (rac *ReceiveAddressCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReceiveAddressCreate) ExecX

func (rac *ReceiveAddressCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReceiveAddressCreate) Mutation

Mutation returns the ReceiveAddressMutation object of the builder.

func (*ReceiveAddressCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.ReceiveAddress.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.ReceiveAddressUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*ReceiveAddressCreate) OnConflictColumns

func (rac *ReceiveAddressCreate) OnConflictColumns(columns ...string) *ReceiveAddressUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.ReceiveAddress.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*ReceiveAddressCreate) Save

Save creates the ReceiveAddress in the database.

func (*ReceiveAddressCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*ReceiveAddressCreate) SetAddress

func (rac *ReceiveAddressCreate) SetAddress(s string) *ReceiveAddressCreate

SetAddress sets the "address" field.

func (*ReceiveAddressCreate) SetCreatedAt

func (rac *ReceiveAddressCreate) SetCreatedAt(t time.Time) *ReceiveAddressCreate

SetCreatedAt sets the "created_at" field.

func (*ReceiveAddressCreate) SetLastIndexedBlock

func (rac *ReceiveAddressCreate) SetLastIndexedBlock(i int64) *ReceiveAddressCreate

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*ReceiveAddressCreate) SetLastUsed

func (rac *ReceiveAddressCreate) SetLastUsed(t time.Time) *ReceiveAddressCreate

SetLastUsed sets the "last_used" field.

func (*ReceiveAddressCreate) SetNillableCreatedAt

func (rac *ReceiveAddressCreate) SetNillableCreatedAt(t *time.Time) *ReceiveAddressCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*ReceiveAddressCreate) SetNillableLastIndexedBlock

func (rac *ReceiveAddressCreate) SetNillableLastIndexedBlock(i *int64) *ReceiveAddressCreate

SetNillableLastIndexedBlock sets the "last_indexed_block" field if the given value is not nil.

func (*ReceiveAddressCreate) SetNillableLastUsed

func (rac *ReceiveAddressCreate) SetNillableLastUsed(t *time.Time) *ReceiveAddressCreate

SetNillableLastUsed sets the "last_used" field if the given value is not nil.

func (*ReceiveAddressCreate) SetNillablePaymentOrderID

func (rac *ReceiveAddressCreate) SetNillablePaymentOrderID(id *uuid.UUID) *ReceiveAddressCreate

SetNillablePaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID if the given value is not nil.

func (*ReceiveAddressCreate) SetNillableStatus

func (rac *ReceiveAddressCreate) SetNillableStatus(r *receiveaddress.Status) *ReceiveAddressCreate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*ReceiveAddressCreate) SetNillableTxHash

func (rac *ReceiveAddressCreate) SetNillableTxHash(s *string) *ReceiveAddressCreate

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*ReceiveAddressCreate) SetNillableUpdatedAt

func (rac *ReceiveAddressCreate) SetNillableUpdatedAt(t *time.Time) *ReceiveAddressCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*ReceiveAddressCreate) SetNillableValidUntil

func (rac *ReceiveAddressCreate) SetNillableValidUntil(t *time.Time) *ReceiveAddressCreate

SetNillableValidUntil sets the "valid_until" field if the given value is not nil.

func (*ReceiveAddressCreate) SetPaymentOrder

func (rac *ReceiveAddressCreate) SetPaymentOrder(p *PaymentOrder) *ReceiveAddressCreate

SetPaymentOrder sets the "payment_order" edge to the PaymentOrder entity.

func (*ReceiveAddressCreate) SetPaymentOrderID

func (rac *ReceiveAddressCreate) SetPaymentOrderID(id uuid.UUID) *ReceiveAddressCreate

SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID.

func (*ReceiveAddressCreate) SetSalt

func (rac *ReceiveAddressCreate) SetSalt(b []byte) *ReceiveAddressCreate

SetSalt sets the "salt" field.

func (*ReceiveAddressCreate) SetStatus

SetStatus sets the "status" field.

func (*ReceiveAddressCreate) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*ReceiveAddressCreate) SetUpdatedAt

func (rac *ReceiveAddressCreate) SetUpdatedAt(t time.Time) *ReceiveAddressCreate

SetUpdatedAt sets the "updated_at" field.

func (*ReceiveAddressCreate) SetValidUntil

func (rac *ReceiveAddressCreate) SetValidUntil(t time.Time) *ReceiveAddressCreate

SetValidUntil sets the "valid_until" field.

type ReceiveAddressCreateBulk

type ReceiveAddressCreateBulk struct {
	// contains filtered or unexported fields
}

ReceiveAddressCreateBulk is the builder for creating many ReceiveAddress entities in bulk.

func (*ReceiveAddressCreateBulk) Exec

Exec executes the query.

func (*ReceiveAddressCreateBulk) ExecX

func (racb *ReceiveAddressCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReceiveAddressCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.ReceiveAddress.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.ReceiveAddressUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*ReceiveAddressCreateBulk) OnConflictColumns

func (racb *ReceiveAddressCreateBulk) OnConflictColumns(columns ...string) *ReceiveAddressUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.ReceiveAddress.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*ReceiveAddressCreateBulk) Save

Save creates the ReceiveAddress entities in the database.

func (*ReceiveAddressCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type ReceiveAddressDelete

type ReceiveAddressDelete struct {
	// contains filtered or unexported fields
}

ReceiveAddressDelete is the builder for deleting a ReceiveAddress entity.

func (*ReceiveAddressDelete) Exec

func (rad *ReceiveAddressDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReceiveAddressDelete) ExecX

func (rad *ReceiveAddressDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReceiveAddressDelete) Where

Where appends a list predicates to the ReceiveAddressDelete builder.

type ReceiveAddressDeleteOne

type ReceiveAddressDeleteOne struct {
	// contains filtered or unexported fields
}

ReceiveAddressDeleteOne is the builder for deleting a single ReceiveAddress entity.

func (*ReceiveAddressDeleteOne) Exec

func (rado *ReceiveAddressDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ReceiveAddressDeleteOne) ExecX

func (rado *ReceiveAddressDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReceiveAddressDeleteOne) Where

Where appends a list predicates to the ReceiveAddressDelete builder.

type ReceiveAddressEdges

type ReceiveAddressEdges struct {
	// PaymentOrder holds the value of the payment_order edge.
	PaymentOrder *PaymentOrder `json:"payment_order,omitempty"`
	// contains filtered or unexported fields
}

ReceiveAddressEdges holds the relations/edges for other nodes in the graph.

func (ReceiveAddressEdges) PaymentOrderOrErr

func (e ReceiveAddressEdges) PaymentOrderOrErr() (*PaymentOrder, error)

PaymentOrderOrErr returns the PaymentOrder value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ReceiveAddressGroupBy

type ReceiveAddressGroupBy struct {
	// contains filtered or unexported fields
}

ReceiveAddressGroupBy is the group-by builder for ReceiveAddress entities.

func (*ReceiveAddressGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*ReceiveAddressGroupBy) Bool

func (s *ReceiveAddressGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressGroupBy) BoolX

func (s *ReceiveAddressGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReceiveAddressGroupBy) Bools

func (s *ReceiveAddressGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressGroupBy) BoolsX

func (s *ReceiveAddressGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReceiveAddressGroupBy) Float64

func (s *ReceiveAddressGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressGroupBy) Float64X

func (s *ReceiveAddressGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReceiveAddressGroupBy) Float64s

func (s *ReceiveAddressGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressGroupBy) Float64sX

func (s *ReceiveAddressGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReceiveAddressGroupBy) Int

func (s *ReceiveAddressGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressGroupBy) IntX

func (s *ReceiveAddressGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReceiveAddressGroupBy) Ints

func (s *ReceiveAddressGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressGroupBy) IntsX

func (s *ReceiveAddressGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReceiveAddressGroupBy) Scan

func (ragb *ReceiveAddressGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReceiveAddressGroupBy) ScanX

func (s *ReceiveAddressGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReceiveAddressGroupBy) String

func (s *ReceiveAddressGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressGroupBy) StringX

func (s *ReceiveAddressGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReceiveAddressGroupBy) Strings

func (s *ReceiveAddressGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressGroupBy) StringsX

func (s *ReceiveAddressGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReceiveAddressMutation

type ReceiveAddressMutation struct {
	// contains filtered or unexported fields
}

ReceiveAddressMutation represents an operation that mutates the ReceiveAddress nodes in the graph.

func (*ReceiveAddressMutation) AddField

func (m *ReceiveAddressMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReceiveAddressMutation) AddLastIndexedBlock

func (m *ReceiveAddressMutation) AddLastIndexedBlock(i int64)

AddLastIndexedBlock adds i to the "last_indexed_block" field.

func (*ReceiveAddressMutation) AddedEdges

func (m *ReceiveAddressMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReceiveAddressMutation) AddedField

func (m *ReceiveAddressMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReceiveAddressMutation) AddedFields

func (m *ReceiveAddressMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReceiveAddressMutation) AddedIDs

func (m *ReceiveAddressMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReceiveAddressMutation) AddedLastIndexedBlock

func (m *ReceiveAddressMutation) AddedLastIndexedBlock() (r int64, exists bool)

AddedLastIndexedBlock returns the value that was added to the "last_indexed_block" field in this mutation.

func (*ReceiveAddressMutation) Address

func (m *ReceiveAddressMutation) Address() (r string, exists bool)

Address returns the value of the "address" field in the mutation.

func (*ReceiveAddressMutation) ClearEdge

func (m *ReceiveAddressMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ReceiveAddressMutation) ClearField

func (m *ReceiveAddressMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReceiveAddressMutation) ClearLastIndexedBlock

func (m *ReceiveAddressMutation) ClearLastIndexedBlock()

ClearLastIndexedBlock clears the value of the "last_indexed_block" field.

func (*ReceiveAddressMutation) ClearLastUsed

func (m *ReceiveAddressMutation) ClearLastUsed()

ClearLastUsed clears the value of the "last_used" field.

func (*ReceiveAddressMutation) ClearPaymentOrder

func (m *ReceiveAddressMutation) ClearPaymentOrder()

ClearPaymentOrder clears the "payment_order" edge to the PaymentOrder entity.

func (*ReceiveAddressMutation) ClearSalt

func (m *ReceiveAddressMutation) ClearSalt()

ClearSalt clears the value of the "salt" field.

func (*ReceiveAddressMutation) ClearTxHash

func (m *ReceiveAddressMutation) ClearTxHash()

ClearTxHash clears the value of the "tx_hash" field.

func (*ReceiveAddressMutation) ClearValidUntil

func (m *ReceiveAddressMutation) ClearValidUntil()

ClearValidUntil clears the value of the "valid_until" field.

func (*ReceiveAddressMutation) ClearedEdges

func (m *ReceiveAddressMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReceiveAddressMutation) ClearedFields

func (m *ReceiveAddressMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReceiveAddressMutation) Client

func (m ReceiveAddressMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ReceiveAddressMutation) CreatedAt

func (m *ReceiveAddressMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*ReceiveAddressMutation) EdgeCleared

func (m *ReceiveAddressMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReceiveAddressMutation) Field

func (m *ReceiveAddressMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReceiveAddressMutation) FieldCleared

func (m *ReceiveAddressMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReceiveAddressMutation) Fields

func (m *ReceiveAddressMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ReceiveAddressMutation) ID

func (m *ReceiveAddressMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReceiveAddressMutation) IDs

func (m *ReceiveAddressMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*ReceiveAddressMutation) LastIndexedBlock

func (m *ReceiveAddressMutation) LastIndexedBlock() (r int64, exists bool)

LastIndexedBlock returns the value of the "last_indexed_block" field in the mutation.

func (*ReceiveAddressMutation) LastIndexedBlockCleared

func (m *ReceiveAddressMutation) LastIndexedBlockCleared() bool

LastIndexedBlockCleared returns if the "last_indexed_block" field was cleared in this mutation.

func (*ReceiveAddressMutation) LastUsed

func (m *ReceiveAddressMutation) LastUsed() (r time.Time, exists bool)

LastUsed returns the value of the "last_used" field in the mutation.

func (*ReceiveAddressMutation) LastUsedCleared

func (m *ReceiveAddressMutation) LastUsedCleared() bool

LastUsedCleared returns if the "last_used" field was cleared in this mutation.

func (*ReceiveAddressMutation) OldAddress

func (m *ReceiveAddressMutation) OldAddress(ctx context.Context) (v string, err error)

OldAddress returns the old "address" field's value of the ReceiveAddress entity. If the ReceiveAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReceiveAddressMutation) OldCreatedAt

func (m *ReceiveAddressMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the ReceiveAddress entity. If the ReceiveAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReceiveAddressMutation) OldField

func (m *ReceiveAddressMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ReceiveAddressMutation) OldLastIndexedBlock

func (m *ReceiveAddressMutation) OldLastIndexedBlock(ctx context.Context) (v int64, err error)

OldLastIndexedBlock returns the old "last_indexed_block" field's value of the ReceiveAddress entity. If the ReceiveAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReceiveAddressMutation) OldLastUsed

func (m *ReceiveAddressMutation) OldLastUsed(ctx context.Context) (v time.Time, err error)

OldLastUsed returns the old "last_used" field's value of the ReceiveAddress entity. If the ReceiveAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReceiveAddressMutation) OldSalt

func (m *ReceiveAddressMutation) OldSalt(ctx context.Context) (v []byte, err error)

OldSalt returns the old "salt" field's value of the ReceiveAddress entity. If the ReceiveAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReceiveAddressMutation) OldStatus

func (m *ReceiveAddressMutation) OldStatus(ctx context.Context) (v receiveaddress.Status, err error)

OldStatus returns the old "status" field's value of the ReceiveAddress entity. If the ReceiveAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReceiveAddressMutation) OldTxHash

func (m *ReceiveAddressMutation) OldTxHash(ctx context.Context) (v string, err error)

OldTxHash returns the old "tx_hash" field's value of the ReceiveAddress entity. If the ReceiveAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReceiveAddressMutation) OldUpdatedAt

func (m *ReceiveAddressMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the ReceiveAddress entity. If the ReceiveAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReceiveAddressMutation) OldValidUntil

func (m *ReceiveAddressMutation) OldValidUntil(ctx context.Context) (v time.Time, err error)

OldValidUntil returns the old "valid_until" field's value of the ReceiveAddress entity. If the ReceiveAddress object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReceiveAddressMutation) Op

func (m *ReceiveAddressMutation) Op() Op

Op returns the operation name.

func (*ReceiveAddressMutation) PaymentOrderCleared

func (m *ReceiveAddressMutation) PaymentOrderCleared() bool

PaymentOrderCleared reports if the "payment_order" edge to the PaymentOrder entity was cleared.

func (*ReceiveAddressMutation) PaymentOrderID

func (m *ReceiveAddressMutation) PaymentOrderID() (id uuid.UUID, exists bool)

PaymentOrderID returns the "payment_order" edge ID in the mutation.

func (*ReceiveAddressMutation) PaymentOrderIDs

func (m *ReceiveAddressMutation) PaymentOrderIDs() (ids []uuid.UUID)

PaymentOrderIDs returns the "payment_order" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PaymentOrderID instead. It exists only for internal usage by the builders.

func (*ReceiveAddressMutation) RemovedEdges

func (m *ReceiveAddressMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReceiveAddressMutation) RemovedIDs

func (m *ReceiveAddressMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ReceiveAddressMutation) ResetAddress

func (m *ReceiveAddressMutation) ResetAddress()

ResetAddress resets all changes to the "address" field.

func (*ReceiveAddressMutation) ResetCreatedAt

func (m *ReceiveAddressMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*ReceiveAddressMutation) ResetEdge

func (m *ReceiveAddressMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ReceiveAddressMutation) ResetField

func (m *ReceiveAddressMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReceiveAddressMutation) ResetLastIndexedBlock

func (m *ReceiveAddressMutation) ResetLastIndexedBlock()

ResetLastIndexedBlock resets all changes to the "last_indexed_block" field.

func (*ReceiveAddressMutation) ResetLastUsed

func (m *ReceiveAddressMutation) ResetLastUsed()

ResetLastUsed resets all changes to the "last_used" field.

func (*ReceiveAddressMutation) ResetPaymentOrder

func (m *ReceiveAddressMutation) ResetPaymentOrder()

ResetPaymentOrder resets all changes to the "payment_order" edge.

func (*ReceiveAddressMutation) ResetSalt

func (m *ReceiveAddressMutation) ResetSalt()

ResetSalt resets all changes to the "salt" field.

func (*ReceiveAddressMutation) ResetStatus

func (m *ReceiveAddressMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*ReceiveAddressMutation) ResetTxHash

func (m *ReceiveAddressMutation) ResetTxHash()

ResetTxHash resets all changes to the "tx_hash" field.

func (*ReceiveAddressMutation) ResetUpdatedAt

func (m *ReceiveAddressMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*ReceiveAddressMutation) ResetValidUntil

func (m *ReceiveAddressMutation) ResetValidUntil()

ResetValidUntil resets all changes to the "valid_until" field.

func (*ReceiveAddressMutation) Salt

func (m *ReceiveAddressMutation) Salt() (r []byte, exists bool)

Salt returns the value of the "salt" field in the mutation.

func (*ReceiveAddressMutation) SaltCleared

func (m *ReceiveAddressMutation) SaltCleared() bool

SaltCleared returns if the "salt" field was cleared in this mutation.

func (*ReceiveAddressMutation) SetAddress

func (m *ReceiveAddressMutation) SetAddress(s string)

SetAddress sets the "address" field.

func (*ReceiveAddressMutation) SetCreatedAt

func (m *ReceiveAddressMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*ReceiveAddressMutation) SetField

func (m *ReceiveAddressMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReceiveAddressMutation) SetLastIndexedBlock

func (m *ReceiveAddressMutation) SetLastIndexedBlock(i int64)

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*ReceiveAddressMutation) SetLastUsed

func (m *ReceiveAddressMutation) SetLastUsed(t time.Time)

SetLastUsed sets the "last_used" field.

func (*ReceiveAddressMutation) SetOp

func (m *ReceiveAddressMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*ReceiveAddressMutation) SetPaymentOrderID

func (m *ReceiveAddressMutation) SetPaymentOrderID(id uuid.UUID)

SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by id.

func (*ReceiveAddressMutation) SetSalt

func (m *ReceiveAddressMutation) SetSalt(b []byte)

SetSalt sets the "salt" field.

func (*ReceiveAddressMutation) SetStatus

SetStatus sets the "status" field.

func (*ReceiveAddressMutation) SetTxHash

func (m *ReceiveAddressMutation) SetTxHash(s string)

SetTxHash sets the "tx_hash" field.

func (*ReceiveAddressMutation) SetUpdatedAt

func (m *ReceiveAddressMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*ReceiveAddressMutation) SetValidUntil

func (m *ReceiveAddressMutation) SetValidUntil(t time.Time)

SetValidUntil sets the "valid_until" field.

func (*ReceiveAddressMutation) Status

func (m *ReceiveAddressMutation) Status() (r receiveaddress.Status, exists bool)

Status returns the value of the "status" field in the mutation.

func (ReceiveAddressMutation) Tx

func (m ReceiveAddressMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReceiveAddressMutation) TxHash

func (m *ReceiveAddressMutation) TxHash() (r string, exists bool)

TxHash returns the value of the "tx_hash" field in the mutation.

func (*ReceiveAddressMutation) TxHashCleared

func (m *ReceiveAddressMutation) TxHashCleared() bool

TxHashCleared returns if the "tx_hash" field was cleared in this mutation.

func (*ReceiveAddressMutation) Type

func (m *ReceiveAddressMutation) Type() string

Type returns the node type of this mutation (ReceiveAddress).

func (*ReceiveAddressMutation) UpdatedAt

func (m *ReceiveAddressMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*ReceiveAddressMutation) ValidUntil

func (m *ReceiveAddressMutation) ValidUntil() (r time.Time, exists bool)

ValidUntil returns the value of the "valid_until" field in the mutation.

func (*ReceiveAddressMutation) ValidUntilCleared

func (m *ReceiveAddressMutation) ValidUntilCleared() bool

ValidUntilCleared returns if the "valid_until" field was cleared in this mutation.

func (*ReceiveAddressMutation) Where

Where appends a list predicates to the ReceiveAddressMutation builder.

func (*ReceiveAddressMutation) WhereP

func (m *ReceiveAddressMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the ReceiveAddressMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type ReceiveAddressQuery

type ReceiveAddressQuery struct {
	// contains filtered or unexported fields
}

ReceiveAddressQuery is the builder for querying ReceiveAddress entities.

func (*ReceiveAddressQuery) Aggregate

func (raq *ReceiveAddressQuery) Aggregate(fns ...AggregateFunc) *ReceiveAddressSelect

Aggregate returns a ReceiveAddressSelect configured with the given aggregations.

func (*ReceiveAddressQuery) All

All executes the query and returns a list of ReceiveAddresses.

func (*ReceiveAddressQuery) AllX

AllX is like All, but panics if an error occurs.

func (*ReceiveAddressQuery) Clone

Clone returns a duplicate of the ReceiveAddressQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReceiveAddressQuery) Count

func (raq *ReceiveAddressQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReceiveAddressQuery) CountX

func (raq *ReceiveAddressQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReceiveAddressQuery) Exist

func (raq *ReceiveAddressQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReceiveAddressQuery) ExistX

func (raq *ReceiveAddressQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReceiveAddressQuery) First

First returns the first ReceiveAddress entity from the query. Returns a *NotFoundError when no ReceiveAddress was found.

func (*ReceiveAddressQuery) FirstID

func (raq *ReceiveAddressQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReceiveAddress ID from the query. Returns a *NotFoundError when no ReceiveAddress ID was found.

func (*ReceiveAddressQuery) FirstIDX

func (raq *ReceiveAddressQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReceiveAddressQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*ReceiveAddressQuery) GroupBy

func (raq *ReceiveAddressQuery) GroupBy(field string, fields ...string) *ReceiveAddressGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ReceiveAddress.Query().
	GroupBy(receiveaddress.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReceiveAddressQuery) IDs

func (raq *ReceiveAddressQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of ReceiveAddress IDs.

func (*ReceiveAddressQuery) IDsX

func (raq *ReceiveAddressQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReceiveAddressQuery) Limit

func (raq *ReceiveAddressQuery) Limit(limit int) *ReceiveAddressQuery

Limit the number of records to be returned by this query.

func (*ReceiveAddressQuery) Offset

func (raq *ReceiveAddressQuery) Offset(offset int) *ReceiveAddressQuery

Offset to start from.

func (*ReceiveAddressQuery) Only

Only returns a single ReceiveAddress entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ReceiveAddress entity is found. Returns a *NotFoundError when no ReceiveAddress entities are found.

func (*ReceiveAddressQuery) OnlyID

func (raq *ReceiveAddressQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReceiveAddress ID in the query. Returns a *NotSingularError when more than one ReceiveAddress ID is found. Returns a *NotFoundError when no entities are found.

func (*ReceiveAddressQuery) OnlyIDX

func (raq *ReceiveAddressQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReceiveAddressQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*ReceiveAddressQuery) Order

Order specifies how the records should be ordered.

func (*ReceiveAddressQuery) QueryPaymentOrder

func (raq *ReceiveAddressQuery) QueryPaymentOrder() *PaymentOrderQuery

QueryPaymentOrder chains the current query on the "payment_order" edge.

func (*ReceiveAddressQuery) Select

func (raq *ReceiveAddressQuery) Select(fields ...string) *ReceiveAddressSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.ReceiveAddress.Query().
	Select(receiveaddress.FieldCreatedAt).
	Scan(ctx, &v)

func (*ReceiveAddressQuery) Unique

func (raq *ReceiveAddressQuery) Unique(unique bool) *ReceiveAddressQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ReceiveAddressQuery) Where

Where adds a new predicate for the ReceiveAddressQuery builder.

func (*ReceiveAddressQuery) WithPaymentOrder

func (raq *ReceiveAddressQuery) WithPaymentOrder(opts ...func(*PaymentOrderQuery)) *ReceiveAddressQuery

WithPaymentOrder tells the query-builder to eager-load the nodes that are connected to the "payment_order" edge. The optional arguments are used to configure the query builder of the edge.

type ReceiveAddressSelect

type ReceiveAddressSelect struct {
	*ReceiveAddressQuery
	// contains filtered or unexported fields
}

ReceiveAddressSelect is the builder for selecting fields of ReceiveAddress entities.

func (*ReceiveAddressSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*ReceiveAddressSelect) Bool

func (s *ReceiveAddressSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressSelect) BoolX

func (s *ReceiveAddressSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReceiveAddressSelect) Bools

func (s *ReceiveAddressSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressSelect) BoolsX

func (s *ReceiveAddressSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReceiveAddressSelect) Float64

func (s *ReceiveAddressSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressSelect) Float64X

func (s *ReceiveAddressSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReceiveAddressSelect) Float64s

func (s *ReceiveAddressSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressSelect) Float64sX

func (s *ReceiveAddressSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReceiveAddressSelect) Int

func (s *ReceiveAddressSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressSelect) IntX

func (s *ReceiveAddressSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReceiveAddressSelect) Ints

func (s *ReceiveAddressSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressSelect) IntsX

func (s *ReceiveAddressSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReceiveAddressSelect) Scan

func (ras *ReceiveAddressSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*ReceiveAddressSelect) ScanX

func (s *ReceiveAddressSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*ReceiveAddressSelect) String

func (s *ReceiveAddressSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressSelect) StringX

func (s *ReceiveAddressSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReceiveAddressSelect) Strings

func (s *ReceiveAddressSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReceiveAddressSelect) StringsX

func (s *ReceiveAddressSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReceiveAddressUpdate

type ReceiveAddressUpdate struct {
	// contains filtered or unexported fields
}

ReceiveAddressUpdate is the builder for updating ReceiveAddress entities.

func (*ReceiveAddressUpdate) AddLastIndexedBlock

func (rau *ReceiveAddressUpdate) AddLastIndexedBlock(i int64) *ReceiveAddressUpdate

AddLastIndexedBlock adds i to the "last_indexed_block" field.

func (*ReceiveAddressUpdate) ClearLastIndexedBlock

func (rau *ReceiveAddressUpdate) ClearLastIndexedBlock() *ReceiveAddressUpdate

ClearLastIndexedBlock clears the value of the "last_indexed_block" field.

func (*ReceiveAddressUpdate) ClearLastUsed

func (rau *ReceiveAddressUpdate) ClearLastUsed() *ReceiveAddressUpdate

ClearLastUsed clears the value of the "last_used" field.

func (*ReceiveAddressUpdate) ClearPaymentOrder

func (rau *ReceiveAddressUpdate) ClearPaymentOrder() *ReceiveAddressUpdate

ClearPaymentOrder clears the "payment_order" edge to the PaymentOrder entity.

func (*ReceiveAddressUpdate) ClearSalt

func (rau *ReceiveAddressUpdate) ClearSalt() *ReceiveAddressUpdate

ClearSalt clears the value of the "salt" field.

func (*ReceiveAddressUpdate) ClearTxHash

func (rau *ReceiveAddressUpdate) ClearTxHash() *ReceiveAddressUpdate

ClearTxHash clears the value of the "tx_hash" field.

func (*ReceiveAddressUpdate) ClearValidUntil

func (rau *ReceiveAddressUpdate) ClearValidUntil() *ReceiveAddressUpdate

ClearValidUntil clears the value of the "valid_until" field.

func (*ReceiveAddressUpdate) Exec

func (rau *ReceiveAddressUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReceiveAddressUpdate) ExecX

func (rau *ReceiveAddressUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReceiveAddressUpdate) Mutation

Mutation returns the ReceiveAddressMutation object of the builder.

func (*ReceiveAddressUpdate) Save

func (rau *ReceiveAddressUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReceiveAddressUpdate) SaveX

func (rau *ReceiveAddressUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReceiveAddressUpdate) SetAddress

func (rau *ReceiveAddressUpdate) SetAddress(s string) *ReceiveAddressUpdate

SetAddress sets the "address" field.

func (*ReceiveAddressUpdate) SetLastIndexedBlock

func (rau *ReceiveAddressUpdate) SetLastIndexedBlock(i int64) *ReceiveAddressUpdate

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*ReceiveAddressUpdate) SetLastUsed

func (rau *ReceiveAddressUpdate) SetLastUsed(t time.Time) *ReceiveAddressUpdate

SetLastUsed sets the "last_used" field.

func (*ReceiveAddressUpdate) SetNillableAddress

func (rau *ReceiveAddressUpdate) SetNillableAddress(s *string) *ReceiveAddressUpdate

SetNillableAddress sets the "address" field if the given value is not nil.

func (*ReceiveAddressUpdate) SetNillableLastIndexedBlock

func (rau *ReceiveAddressUpdate) SetNillableLastIndexedBlock(i *int64) *ReceiveAddressUpdate

SetNillableLastIndexedBlock sets the "last_indexed_block" field if the given value is not nil.

func (*ReceiveAddressUpdate) SetNillableLastUsed

func (rau *ReceiveAddressUpdate) SetNillableLastUsed(t *time.Time) *ReceiveAddressUpdate

SetNillableLastUsed sets the "last_used" field if the given value is not nil.

func (*ReceiveAddressUpdate) SetNillablePaymentOrderID

func (rau *ReceiveAddressUpdate) SetNillablePaymentOrderID(id *uuid.UUID) *ReceiveAddressUpdate

SetNillablePaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID if the given value is not nil.

func (*ReceiveAddressUpdate) SetNillableStatus

func (rau *ReceiveAddressUpdate) SetNillableStatus(r *receiveaddress.Status) *ReceiveAddressUpdate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*ReceiveAddressUpdate) SetNillableTxHash

func (rau *ReceiveAddressUpdate) SetNillableTxHash(s *string) *ReceiveAddressUpdate

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*ReceiveAddressUpdate) SetNillableValidUntil

func (rau *ReceiveAddressUpdate) SetNillableValidUntil(t *time.Time) *ReceiveAddressUpdate

SetNillableValidUntil sets the "valid_until" field if the given value is not nil.

func (*ReceiveAddressUpdate) SetPaymentOrder

func (rau *ReceiveAddressUpdate) SetPaymentOrder(p *PaymentOrder) *ReceiveAddressUpdate

SetPaymentOrder sets the "payment_order" edge to the PaymentOrder entity.

func (*ReceiveAddressUpdate) SetPaymentOrderID

func (rau *ReceiveAddressUpdate) SetPaymentOrderID(id uuid.UUID) *ReceiveAddressUpdate

SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID.

func (*ReceiveAddressUpdate) SetSalt

func (rau *ReceiveAddressUpdate) SetSalt(b []byte) *ReceiveAddressUpdate

SetSalt sets the "salt" field.

func (*ReceiveAddressUpdate) SetStatus

SetStatus sets the "status" field.

func (*ReceiveAddressUpdate) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*ReceiveAddressUpdate) SetUpdatedAt

func (rau *ReceiveAddressUpdate) SetUpdatedAt(t time.Time) *ReceiveAddressUpdate

SetUpdatedAt sets the "updated_at" field.

func (*ReceiveAddressUpdate) SetValidUntil

func (rau *ReceiveAddressUpdate) SetValidUntil(t time.Time) *ReceiveAddressUpdate

SetValidUntil sets the "valid_until" field.

func (*ReceiveAddressUpdate) Where

Where appends a list predicates to the ReceiveAddressUpdate builder.

type ReceiveAddressUpdateOne

type ReceiveAddressUpdateOne struct {
	// contains filtered or unexported fields
}

ReceiveAddressUpdateOne is the builder for updating a single ReceiveAddress entity.

func (*ReceiveAddressUpdateOne) AddLastIndexedBlock

func (rauo *ReceiveAddressUpdateOne) AddLastIndexedBlock(i int64) *ReceiveAddressUpdateOne

AddLastIndexedBlock adds i to the "last_indexed_block" field.

func (*ReceiveAddressUpdateOne) ClearLastIndexedBlock

func (rauo *ReceiveAddressUpdateOne) ClearLastIndexedBlock() *ReceiveAddressUpdateOne

ClearLastIndexedBlock clears the value of the "last_indexed_block" field.

func (*ReceiveAddressUpdateOne) ClearLastUsed

func (rauo *ReceiveAddressUpdateOne) ClearLastUsed() *ReceiveAddressUpdateOne

ClearLastUsed clears the value of the "last_used" field.

func (*ReceiveAddressUpdateOne) ClearPaymentOrder

func (rauo *ReceiveAddressUpdateOne) ClearPaymentOrder() *ReceiveAddressUpdateOne

ClearPaymentOrder clears the "payment_order" edge to the PaymentOrder entity.

func (*ReceiveAddressUpdateOne) ClearSalt

ClearSalt clears the value of the "salt" field.

func (*ReceiveAddressUpdateOne) ClearTxHash

func (rauo *ReceiveAddressUpdateOne) ClearTxHash() *ReceiveAddressUpdateOne

ClearTxHash clears the value of the "tx_hash" field.

func (*ReceiveAddressUpdateOne) ClearValidUntil

func (rauo *ReceiveAddressUpdateOne) ClearValidUntil() *ReceiveAddressUpdateOne

ClearValidUntil clears the value of the "valid_until" field.

func (*ReceiveAddressUpdateOne) Exec

func (rauo *ReceiveAddressUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ReceiveAddressUpdateOne) ExecX

func (rauo *ReceiveAddressUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReceiveAddressUpdateOne) Mutation

Mutation returns the ReceiveAddressMutation object of the builder.

func (*ReceiveAddressUpdateOne) Save

Save executes the query and returns the updated ReceiveAddress entity.

func (*ReceiveAddressUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ReceiveAddressUpdateOne) Select

func (rauo *ReceiveAddressUpdateOne) Select(field string, fields ...string) *ReceiveAddressUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReceiveAddressUpdateOne) SetAddress

SetAddress sets the "address" field.

func (*ReceiveAddressUpdateOne) SetLastIndexedBlock

func (rauo *ReceiveAddressUpdateOne) SetLastIndexedBlock(i int64) *ReceiveAddressUpdateOne

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*ReceiveAddressUpdateOne) SetLastUsed

SetLastUsed sets the "last_used" field.

func (*ReceiveAddressUpdateOne) SetNillableAddress

func (rauo *ReceiveAddressUpdateOne) SetNillableAddress(s *string) *ReceiveAddressUpdateOne

SetNillableAddress sets the "address" field if the given value is not nil.

func (*ReceiveAddressUpdateOne) SetNillableLastIndexedBlock

func (rauo *ReceiveAddressUpdateOne) SetNillableLastIndexedBlock(i *int64) *ReceiveAddressUpdateOne

SetNillableLastIndexedBlock sets the "last_indexed_block" field if the given value is not nil.

func (*ReceiveAddressUpdateOne) SetNillableLastUsed

func (rauo *ReceiveAddressUpdateOne) SetNillableLastUsed(t *time.Time) *ReceiveAddressUpdateOne

SetNillableLastUsed sets the "last_used" field if the given value is not nil.

func (*ReceiveAddressUpdateOne) SetNillablePaymentOrderID

func (rauo *ReceiveAddressUpdateOne) SetNillablePaymentOrderID(id *uuid.UUID) *ReceiveAddressUpdateOne

SetNillablePaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID if the given value is not nil.

func (*ReceiveAddressUpdateOne) SetNillableStatus

SetNillableStatus sets the "status" field if the given value is not nil.

func (*ReceiveAddressUpdateOne) SetNillableTxHash

func (rauo *ReceiveAddressUpdateOne) SetNillableTxHash(s *string) *ReceiveAddressUpdateOne

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*ReceiveAddressUpdateOne) SetNillableValidUntil

func (rauo *ReceiveAddressUpdateOne) SetNillableValidUntil(t *time.Time) *ReceiveAddressUpdateOne

SetNillableValidUntil sets the "valid_until" field if the given value is not nil.

func (*ReceiveAddressUpdateOne) SetPaymentOrder

SetPaymentOrder sets the "payment_order" edge to the PaymentOrder entity.

func (*ReceiveAddressUpdateOne) SetPaymentOrderID

func (rauo *ReceiveAddressUpdateOne) SetPaymentOrderID(id uuid.UUID) *ReceiveAddressUpdateOne

SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID.

func (*ReceiveAddressUpdateOne) SetSalt

SetSalt sets the "salt" field.

func (*ReceiveAddressUpdateOne) SetStatus

SetStatus sets the "status" field.

func (*ReceiveAddressUpdateOne) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*ReceiveAddressUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ReceiveAddressUpdateOne) SetValidUntil

func (rauo *ReceiveAddressUpdateOne) SetValidUntil(t time.Time) *ReceiveAddressUpdateOne

SetValidUntil sets the "valid_until" field.

func (*ReceiveAddressUpdateOne) Where

Where appends a list predicates to the ReceiveAddressUpdate builder.

type ReceiveAddressUpsert

type ReceiveAddressUpsert struct {
	*sql.UpdateSet
}

ReceiveAddressUpsert is the "OnConflict" setter.

func (*ReceiveAddressUpsert) AddLastIndexedBlock

func (u *ReceiveAddressUpsert) AddLastIndexedBlock(v int64) *ReceiveAddressUpsert

AddLastIndexedBlock adds v to the "last_indexed_block" field.

func (*ReceiveAddressUpsert) ClearLastIndexedBlock

func (u *ReceiveAddressUpsert) ClearLastIndexedBlock() *ReceiveAddressUpsert

ClearLastIndexedBlock clears the value of the "last_indexed_block" field.

func (*ReceiveAddressUpsert) ClearLastUsed

func (u *ReceiveAddressUpsert) ClearLastUsed() *ReceiveAddressUpsert

ClearLastUsed clears the value of the "last_used" field.

func (*ReceiveAddressUpsert) ClearSalt

ClearSalt clears the value of the "salt" field.

func (*ReceiveAddressUpsert) ClearTxHash

func (u *ReceiveAddressUpsert) ClearTxHash() *ReceiveAddressUpsert

ClearTxHash clears the value of the "tx_hash" field.

func (*ReceiveAddressUpsert) ClearValidUntil

func (u *ReceiveAddressUpsert) ClearValidUntil() *ReceiveAddressUpsert

ClearValidUntil clears the value of the "valid_until" field.

func (*ReceiveAddressUpsert) SetAddress

SetAddress sets the "address" field.

func (*ReceiveAddressUpsert) SetLastIndexedBlock

func (u *ReceiveAddressUpsert) SetLastIndexedBlock(v int64) *ReceiveAddressUpsert

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*ReceiveAddressUpsert) SetLastUsed

SetLastUsed sets the "last_used" field.

func (*ReceiveAddressUpsert) SetSalt

SetSalt sets the "salt" field.

func (*ReceiveAddressUpsert) SetStatus

SetStatus sets the "status" field.

func (*ReceiveAddressUpsert) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*ReceiveAddressUpsert) SetUpdatedAt

func (u *ReceiveAddressUpsert) SetUpdatedAt(v time.Time) *ReceiveAddressUpsert

SetUpdatedAt sets the "updated_at" field.

func (*ReceiveAddressUpsert) SetValidUntil

func (u *ReceiveAddressUpsert) SetValidUntil(v time.Time) *ReceiveAddressUpsert

SetValidUntil sets the "valid_until" field.

func (*ReceiveAddressUpsert) UpdateAddress

func (u *ReceiveAddressUpsert) UpdateAddress() *ReceiveAddressUpsert

UpdateAddress sets the "address" field to the value that was provided on create.

func (*ReceiveAddressUpsert) UpdateLastIndexedBlock

func (u *ReceiveAddressUpsert) UpdateLastIndexedBlock() *ReceiveAddressUpsert

UpdateLastIndexedBlock sets the "last_indexed_block" field to the value that was provided on create.

func (*ReceiveAddressUpsert) UpdateLastUsed

func (u *ReceiveAddressUpsert) UpdateLastUsed() *ReceiveAddressUpsert

UpdateLastUsed sets the "last_used" field to the value that was provided on create.

func (*ReceiveAddressUpsert) UpdateSalt

func (u *ReceiveAddressUpsert) UpdateSalt() *ReceiveAddressUpsert

UpdateSalt sets the "salt" field to the value that was provided on create.

func (*ReceiveAddressUpsert) UpdateStatus

func (u *ReceiveAddressUpsert) UpdateStatus() *ReceiveAddressUpsert

UpdateStatus sets the "status" field to the value that was provided on create.

func (*ReceiveAddressUpsert) UpdateTxHash

func (u *ReceiveAddressUpsert) UpdateTxHash() *ReceiveAddressUpsert

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

func (*ReceiveAddressUpsert) UpdateUpdatedAt

func (u *ReceiveAddressUpsert) UpdateUpdatedAt() *ReceiveAddressUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*ReceiveAddressUpsert) UpdateValidUntil

func (u *ReceiveAddressUpsert) UpdateValidUntil() *ReceiveAddressUpsert

UpdateValidUntil sets the "valid_until" field to the value that was provided on create.

type ReceiveAddressUpsertBulk

type ReceiveAddressUpsertBulk struct {
	// contains filtered or unexported fields
}

ReceiveAddressUpsertBulk is the builder for "upsert"-ing a bulk of ReceiveAddress nodes.

func (*ReceiveAddressUpsertBulk) AddLastIndexedBlock

func (u *ReceiveAddressUpsertBulk) AddLastIndexedBlock(v int64) *ReceiveAddressUpsertBulk

AddLastIndexedBlock adds v to the "last_indexed_block" field.

func (*ReceiveAddressUpsertBulk) ClearLastIndexedBlock

func (u *ReceiveAddressUpsertBulk) ClearLastIndexedBlock() *ReceiveAddressUpsertBulk

ClearLastIndexedBlock clears the value of the "last_indexed_block" field.

func (*ReceiveAddressUpsertBulk) ClearLastUsed

ClearLastUsed clears the value of the "last_used" field.

func (*ReceiveAddressUpsertBulk) ClearSalt

ClearSalt clears the value of the "salt" field.

func (*ReceiveAddressUpsertBulk) ClearTxHash

ClearTxHash clears the value of the "tx_hash" field.

func (*ReceiveAddressUpsertBulk) ClearValidUntil

func (u *ReceiveAddressUpsertBulk) ClearValidUntil() *ReceiveAddressUpsertBulk

ClearValidUntil clears the value of the "valid_until" field.

func (*ReceiveAddressUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*ReceiveAddressUpsertBulk) Exec

Exec executes the query.

func (*ReceiveAddressUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ReceiveAddressUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.ReceiveAddress.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*ReceiveAddressUpsertBulk) SetAddress

SetAddress sets the "address" field.

func (*ReceiveAddressUpsertBulk) SetLastIndexedBlock

func (u *ReceiveAddressUpsertBulk) SetLastIndexedBlock(v int64) *ReceiveAddressUpsertBulk

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*ReceiveAddressUpsertBulk) SetLastUsed

SetLastUsed sets the "last_used" field.

func (*ReceiveAddressUpsertBulk) SetSalt

SetSalt sets the "salt" field.

func (*ReceiveAddressUpsertBulk) SetStatus

SetStatus sets the "status" field.

func (*ReceiveAddressUpsertBulk) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*ReceiveAddressUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ReceiveAddressUpsertBulk) SetValidUntil

SetValidUntil sets the "valid_until" field.

func (*ReceiveAddressUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the ReceiveAddressCreateBulk.OnConflict documentation for more info.

func (*ReceiveAddressUpsertBulk) UpdateAddress

UpdateAddress sets the "address" field to the value that was provided on create.

func (*ReceiveAddressUpsertBulk) UpdateLastIndexedBlock

func (u *ReceiveAddressUpsertBulk) UpdateLastIndexedBlock() *ReceiveAddressUpsertBulk

UpdateLastIndexedBlock sets the "last_indexed_block" field to the value that was provided on create.

func (*ReceiveAddressUpsertBulk) UpdateLastUsed

UpdateLastUsed sets the "last_used" field to the value that was provided on create.

func (*ReceiveAddressUpsertBulk) UpdateNewValues

func (u *ReceiveAddressUpsertBulk) UpdateNewValues() *ReceiveAddressUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.ReceiveAddress.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*ReceiveAddressUpsertBulk) UpdateSalt

UpdateSalt sets the "salt" field to the value that was provided on create.

func (*ReceiveAddressUpsertBulk) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*ReceiveAddressUpsertBulk) UpdateTxHash

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

func (*ReceiveAddressUpsertBulk) UpdateUpdatedAt

func (u *ReceiveAddressUpsertBulk) UpdateUpdatedAt() *ReceiveAddressUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*ReceiveAddressUpsertBulk) UpdateValidUntil

func (u *ReceiveAddressUpsertBulk) UpdateValidUntil() *ReceiveAddressUpsertBulk

UpdateValidUntil sets the "valid_until" field to the value that was provided on create.

type ReceiveAddressUpsertOne

type ReceiveAddressUpsertOne struct {
	// contains filtered or unexported fields
}

ReceiveAddressUpsertOne is the builder for "upsert"-ing

one ReceiveAddress node.

func (*ReceiveAddressUpsertOne) AddLastIndexedBlock

func (u *ReceiveAddressUpsertOne) AddLastIndexedBlock(v int64) *ReceiveAddressUpsertOne

AddLastIndexedBlock adds v to the "last_indexed_block" field.

func (*ReceiveAddressUpsertOne) ClearLastIndexedBlock

func (u *ReceiveAddressUpsertOne) ClearLastIndexedBlock() *ReceiveAddressUpsertOne

ClearLastIndexedBlock clears the value of the "last_indexed_block" field.

func (*ReceiveAddressUpsertOne) ClearLastUsed

ClearLastUsed clears the value of the "last_used" field.

func (*ReceiveAddressUpsertOne) ClearSalt

ClearSalt clears the value of the "salt" field.

func (*ReceiveAddressUpsertOne) ClearTxHash

ClearTxHash clears the value of the "tx_hash" field.

func (*ReceiveAddressUpsertOne) ClearValidUntil

func (u *ReceiveAddressUpsertOne) ClearValidUntil() *ReceiveAddressUpsertOne

ClearValidUntil clears the value of the "valid_until" field.

func (*ReceiveAddressUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*ReceiveAddressUpsertOne) Exec

Exec executes the query.

func (*ReceiveAddressUpsertOne) ExecX

func (u *ReceiveAddressUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReceiveAddressUpsertOne) ID

func (u *ReceiveAddressUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*ReceiveAddressUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*ReceiveAddressUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.ReceiveAddress.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*ReceiveAddressUpsertOne) SetAddress

SetAddress sets the "address" field.

func (*ReceiveAddressUpsertOne) SetLastIndexedBlock

func (u *ReceiveAddressUpsertOne) SetLastIndexedBlock(v int64) *ReceiveAddressUpsertOne

SetLastIndexedBlock sets the "last_indexed_block" field.

func (*ReceiveAddressUpsertOne) SetLastUsed

SetLastUsed sets the "last_used" field.

func (*ReceiveAddressUpsertOne) SetSalt

SetSalt sets the "salt" field.

func (*ReceiveAddressUpsertOne) SetStatus

SetStatus sets the "status" field.

func (*ReceiveAddressUpsertOne) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*ReceiveAddressUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*ReceiveAddressUpsertOne) SetValidUntil

SetValidUntil sets the "valid_until" field.

func (*ReceiveAddressUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the ReceiveAddressCreate.OnConflict documentation for more info.

func (*ReceiveAddressUpsertOne) UpdateAddress

UpdateAddress sets the "address" field to the value that was provided on create.

func (*ReceiveAddressUpsertOne) UpdateLastIndexedBlock

func (u *ReceiveAddressUpsertOne) UpdateLastIndexedBlock() *ReceiveAddressUpsertOne

UpdateLastIndexedBlock sets the "last_indexed_block" field to the value that was provided on create.

func (*ReceiveAddressUpsertOne) UpdateLastUsed

func (u *ReceiveAddressUpsertOne) UpdateLastUsed() *ReceiveAddressUpsertOne

UpdateLastUsed sets the "last_used" field to the value that was provided on create.

func (*ReceiveAddressUpsertOne) UpdateNewValues

func (u *ReceiveAddressUpsertOne) UpdateNewValues() *ReceiveAddressUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.ReceiveAddress.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*ReceiveAddressUpsertOne) UpdateSalt

UpdateSalt sets the "salt" field to the value that was provided on create.

func (*ReceiveAddressUpsertOne) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*ReceiveAddressUpsertOne) UpdateTxHash

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

func (*ReceiveAddressUpsertOne) UpdateUpdatedAt

func (u *ReceiveAddressUpsertOne) UpdateUpdatedAt() *ReceiveAddressUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*ReceiveAddressUpsertOne) UpdateValidUntil

func (u *ReceiveAddressUpsertOne) UpdateValidUntil() *ReceiveAddressUpsertOne

UpdateValidUntil sets the "valid_until" field to the value that was provided on create.

type ReceiveAddresses

type ReceiveAddresses []*ReceiveAddress

ReceiveAddresses is a parsable slice of ReceiveAddress.

type RollbackFunc

type RollbackFunc func(context.Context, *Tx) error

The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.

func (RollbackFunc) Rollback

func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error

Rollback calls f(ctx, m).

type RollbackHook

type RollbackHook func(Rollbacker) Rollbacker

RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:

hook := func(next ent.Rollbacker) ent.Rollbacker {
	return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Rollback(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Rollbacker

type Rollbacker interface {
	Rollback(context.Context, *Tx) error
}

Rollbacker is the interface that wraps the Rollback method.

type SenderOrderToken

type SenderOrderToken struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// FeePercent holds the value of the "fee_percent" field.
	FeePercent decimal.Decimal `json:"fee_percent,omitempty"`
	// FeeAddress holds the value of the "fee_address" field.
	FeeAddress string `json:"fee_address,omitempty"`
	// RefundAddress holds the value of the "refund_address" field.
	RefundAddress string `json:"refund_address,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the SenderOrderTokenQuery when eager-loading is set.
	Edges SenderOrderTokenEdges `json:"edges"`
	// contains filtered or unexported fields
}

SenderOrderToken is the model entity for the SenderOrderToken schema.

func (*SenderOrderToken) QuerySender

func (sot *SenderOrderToken) QuerySender() *SenderProfileQuery

QuerySender queries the "sender" edge of the SenderOrderToken entity.

func (*SenderOrderToken) QueryToken

func (sot *SenderOrderToken) QueryToken() *TokenQuery

QueryToken queries the "token" edge of the SenderOrderToken entity.

func (*SenderOrderToken) String

func (sot *SenderOrderToken) String() string

String implements the fmt.Stringer.

func (*SenderOrderToken) Unwrap

func (sot *SenderOrderToken) Unwrap() *SenderOrderToken

Unwrap unwraps the SenderOrderToken entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*SenderOrderToken) Update

Update returns a builder for updating this SenderOrderToken. Note that you need to call SenderOrderToken.Unwrap() before calling this method if this SenderOrderToken was returned from a transaction, and the transaction was committed or rolled back.

func (*SenderOrderToken) Value

func (sot *SenderOrderToken) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the SenderOrderToken. This includes values selected through modifiers, order, etc.

type SenderOrderTokenClient

type SenderOrderTokenClient struct {
	// contains filtered or unexported fields
}

SenderOrderTokenClient is a client for the SenderOrderToken schema.

func NewSenderOrderTokenClient

func NewSenderOrderTokenClient(c config) *SenderOrderTokenClient

NewSenderOrderTokenClient returns a client for the SenderOrderToken from the given config.

func (*SenderOrderTokenClient) Create

Create returns a builder for creating a SenderOrderToken entity.

func (*SenderOrderTokenClient) CreateBulk

CreateBulk returns a builder for creating a bulk of SenderOrderToken entities.

func (*SenderOrderTokenClient) Delete

Delete returns a delete builder for SenderOrderToken.

func (*SenderOrderTokenClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*SenderOrderTokenClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*SenderOrderTokenClient) Get

Get returns a SenderOrderToken entity by its id.

func (*SenderOrderTokenClient) GetX

GetX is like Get, but panics if an error occurs.

func (*SenderOrderTokenClient) Hooks

func (c *SenderOrderTokenClient) Hooks() []Hook

Hooks returns the client hooks.

func (*SenderOrderTokenClient) Intercept

func (c *SenderOrderTokenClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `senderordertoken.Intercept(f(g(h())))`.

func (*SenderOrderTokenClient) Interceptors

func (c *SenderOrderTokenClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*SenderOrderTokenClient) MapCreateBulk

func (c *SenderOrderTokenClient) MapCreateBulk(slice any, setFunc func(*SenderOrderTokenCreate, int)) *SenderOrderTokenCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*SenderOrderTokenClient) Query

Query returns a query builder for SenderOrderToken.

func (*SenderOrderTokenClient) QuerySender

QuerySender queries the sender edge of a SenderOrderToken.

func (*SenderOrderTokenClient) QueryToken

func (c *SenderOrderTokenClient) QueryToken(sot *SenderOrderToken) *TokenQuery

QueryToken queries the token edge of a SenderOrderToken.

func (*SenderOrderTokenClient) Update

Update returns an update builder for SenderOrderToken.

func (*SenderOrderTokenClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*SenderOrderTokenClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*SenderOrderTokenClient) Use

func (c *SenderOrderTokenClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `senderordertoken.Hooks(f(g(h())))`.

type SenderOrderTokenCreate

type SenderOrderTokenCreate struct {
	// contains filtered or unexported fields
}

SenderOrderTokenCreate is the builder for creating a SenderOrderToken entity.

func (*SenderOrderTokenCreate) Exec

func (sotc *SenderOrderTokenCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*SenderOrderTokenCreate) ExecX

func (sotc *SenderOrderTokenCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SenderOrderTokenCreate) Mutation

Mutation returns the SenderOrderTokenMutation object of the builder.

func (*SenderOrderTokenCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.SenderOrderToken.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.SenderOrderTokenUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*SenderOrderTokenCreate) OnConflictColumns

func (sotc *SenderOrderTokenCreate) OnConflictColumns(columns ...string) *SenderOrderTokenUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.SenderOrderToken.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*SenderOrderTokenCreate) Save

Save creates the SenderOrderToken in the database.

func (*SenderOrderTokenCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*SenderOrderTokenCreate) SetCreatedAt

func (sotc *SenderOrderTokenCreate) SetCreatedAt(t time.Time) *SenderOrderTokenCreate

SetCreatedAt sets the "created_at" field.

func (*SenderOrderTokenCreate) SetFeeAddress

func (sotc *SenderOrderTokenCreate) SetFeeAddress(s string) *SenderOrderTokenCreate

SetFeeAddress sets the "fee_address" field.

func (*SenderOrderTokenCreate) SetFeePercent

SetFeePercent sets the "fee_percent" field.

func (*SenderOrderTokenCreate) SetNillableCreatedAt

func (sotc *SenderOrderTokenCreate) SetNillableCreatedAt(t *time.Time) *SenderOrderTokenCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*SenderOrderTokenCreate) SetNillableUpdatedAt

func (sotc *SenderOrderTokenCreate) SetNillableUpdatedAt(t *time.Time) *SenderOrderTokenCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*SenderOrderTokenCreate) SetRefundAddress

func (sotc *SenderOrderTokenCreate) SetRefundAddress(s string) *SenderOrderTokenCreate

SetRefundAddress sets the "refund_address" field.

func (*SenderOrderTokenCreate) SetSender

SetSender sets the "sender" edge to the SenderProfile entity.

func (*SenderOrderTokenCreate) SetSenderID

func (sotc *SenderOrderTokenCreate) SetSenderID(id uuid.UUID) *SenderOrderTokenCreate

SetSenderID sets the "sender" edge to the SenderProfile entity by ID.

func (*SenderOrderTokenCreate) SetToken

SetToken sets the "token" edge to the Token entity.

func (*SenderOrderTokenCreate) SetTokenID

func (sotc *SenderOrderTokenCreate) SetTokenID(id int) *SenderOrderTokenCreate

SetTokenID sets the "token" edge to the Token entity by ID.

func (*SenderOrderTokenCreate) SetUpdatedAt

func (sotc *SenderOrderTokenCreate) SetUpdatedAt(t time.Time) *SenderOrderTokenCreate

SetUpdatedAt sets the "updated_at" field.

type SenderOrderTokenCreateBulk

type SenderOrderTokenCreateBulk struct {
	// contains filtered or unexported fields
}

SenderOrderTokenCreateBulk is the builder for creating many SenderOrderToken entities in bulk.

func (*SenderOrderTokenCreateBulk) Exec

Exec executes the query.

func (*SenderOrderTokenCreateBulk) ExecX

func (sotcb *SenderOrderTokenCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SenderOrderTokenCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.SenderOrderToken.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.SenderOrderTokenUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*SenderOrderTokenCreateBulk) OnConflictColumns

func (sotcb *SenderOrderTokenCreateBulk) OnConflictColumns(columns ...string) *SenderOrderTokenUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.SenderOrderToken.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*SenderOrderTokenCreateBulk) Save

Save creates the SenderOrderToken entities in the database.

func (*SenderOrderTokenCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type SenderOrderTokenDelete

type SenderOrderTokenDelete struct {
	// contains filtered or unexported fields
}

SenderOrderTokenDelete is the builder for deleting a SenderOrderToken entity.

func (*SenderOrderTokenDelete) Exec

func (sotd *SenderOrderTokenDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*SenderOrderTokenDelete) ExecX

func (sotd *SenderOrderTokenDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*SenderOrderTokenDelete) Where

Where appends a list predicates to the SenderOrderTokenDelete builder.

type SenderOrderTokenDeleteOne

type SenderOrderTokenDeleteOne struct {
	// contains filtered or unexported fields
}

SenderOrderTokenDeleteOne is the builder for deleting a single SenderOrderToken entity.

func (*SenderOrderTokenDeleteOne) Exec

Exec executes the deletion query.

func (*SenderOrderTokenDeleteOne) ExecX

func (sotdo *SenderOrderTokenDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SenderOrderTokenDeleteOne) Where

Where appends a list predicates to the SenderOrderTokenDelete builder.

type SenderOrderTokenEdges

type SenderOrderTokenEdges struct {
	// Sender holds the value of the sender edge.
	Sender *SenderProfile `json:"sender,omitempty"`
	// Token holds the value of the token edge.
	Token *Token `json:"token,omitempty"`
	// contains filtered or unexported fields
}

SenderOrderTokenEdges holds the relations/edges for other nodes in the graph.

func (SenderOrderTokenEdges) SenderOrErr

func (e SenderOrderTokenEdges) SenderOrErr() (*SenderProfile, error)

SenderOrErr returns the Sender value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (SenderOrderTokenEdges) TokenOrErr

func (e SenderOrderTokenEdges) TokenOrErr() (*Token, error)

TokenOrErr returns the Token value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type SenderOrderTokenGroupBy

type SenderOrderTokenGroupBy struct {
	// contains filtered or unexported fields
}

SenderOrderTokenGroupBy is the group-by builder for SenderOrderToken entities.

func (*SenderOrderTokenGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*SenderOrderTokenGroupBy) Bool

func (s *SenderOrderTokenGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenGroupBy) BoolX

func (s *SenderOrderTokenGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*SenderOrderTokenGroupBy) Bools

func (s *SenderOrderTokenGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenGroupBy) BoolsX

func (s *SenderOrderTokenGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*SenderOrderTokenGroupBy) Float64

func (s *SenderOrderTokenGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenGroupBy) Float64X

func (s *SenderOrderTokenGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*SenderOrderTokenGroupBy) Float64s

func (s *SenderOrderTokenGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenGroupBy) Float64sX

func (s *SenderOrderTokenGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*SenderOrderTokenGroupBy) Int

func (s *SenderOrderTokenGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenGroupBy) IntX

func (s *SenderOrderTokenGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*SenderOrderTokenGroupBy) Ints

func (s *SenderOrderTokenGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenGroupBy) IntsX

func (s *SenderOrderTokenGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*SenderOrderTokenGroupBy) Scan

func (sotgb *SenderOrderTokenGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*SenderOrderTokenGroupBy) ScanX

func (s *SenderOrderTokenGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*SenderOrderTokenGroupBy) String

func (s *SenderOrderTokenGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenGroupBy) StringX

func (s *SenderOrderTokenGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*SenderOrderTokenGroupBy) Strings

func (s *SenderOrderTokenGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenGroupBy) StringsX

func (s *SenderOrderTokenGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type SenderOrderTokenMutation

type SenderOrderTokenMutation struct {
	// contains filtered or unexported fields
}

SenderOrderTokenMutation represents an operation that mutates the SenderOrderToken nodes in the graph.

func (*SenderOrderTokenMutation) AddFeePercent

func (m *SenderOrderTokenMutation) AddFeePercent(d decimal.Decimal)

AddFeePercent adds d to the "fee_percent" field.

func (*SenderOrderTokenMutation) AddField

func (m *SenderOrderTokenMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*SenderOrderTokenMutation) AddedEdges

func (m *SenderOrderTokenMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*SenderOrderTokenMutation) AddedFeePercent

func (m *SenderOrderTokenMutation) AddedFeePercent() (r decimal.Decimal, exists bool)

AddedFeePercent returns the value that was added to the "fee_percent" field in this mutation.

func (*SenderOrderTokenMutation) AddedField

func (m *SenderOrderTokenMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*SenderOrderTokenMutation) AddedFields

func (m *SenderOrderTokenMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*SenderOrderTokenMutation) AddedIDs

func (m *SenderOrderTokenMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*SenderOrderTokenMutation) ClearEdge

func (m *SenderOrderTokenMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*SenderOrderTokenMutation) ClearField

func (m *SenderOrderTokenMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*SenderOrderTokenMutation) ClearSender

func (m *SenderOrderTokenMutation) ClearSender()

ClearSender clears the "sender" edge to the SenderProfile entity.

func (*SenderOrderTokenMutation) ClearToken

func (m *SenderOrderTokenMutation) ClearToken()

ClearToken clears the "token" edge to the Token entity.

func (*SenderOrderTokenMutation) ClearedEdges

func (m *SenderOrderTokenMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*SenderOrderTokenMutation) ClearedFields

func (m *SenderOrderTokenMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (SenderOrderTokenMutation) Client

func (m SenderOrderTokenMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*SenderOrderTokenMutation) CreatedAt

func (m *SenderOrderTokenMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*SenderOrderTokenMutation) EdgeCleared

func (m *SenderOrderTokenMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*SenderOrderTokenMutation) FeeAddress

func (m *SenderOrderTokenMutation) FeeAddress() (r string, exists bool)

FeeAddress returns the value of the "fee_address" field in the mutation.

func (*SenderOrderTokenMutation) FeePercent

func (m *SenderOrderTokenMutation) FeePercent() (r decimal.Decimal, exists bool)

FeePercent returns the value of the "fee_percent" field in the mutation.

func (*SenderOrderTokenMutation) Field

func (m *SenderOrderTokenMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*SenderOrderTokenMutation) FieldCleared

func (m *SenderOrderTokenMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*SenderOrderTokenMutation) Fields

func (m *SenderOrderTokenMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*SenderOrderTokenMutation) ID

func (m *SenderOrderTokenMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*SenderOrderTokenMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*SenderOrderTokenMutation) OldCreatedAt

func (m *SenderOrderTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the SenderOrderToken entity. If the SenderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SenderOrderTokenMutation) OldFeeAddress

func (m *SenderOrderTokenMutation) OldFeeAddress(ctx context.Context) (v string, err error)

OldFeeAddress returns the old "fee_address" field's value of the SenderOrderToken entity. If the SenderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SenderOrderTokenMutation) OldFeePercent

func (m *SenderOrderTokenMutation) OldFeePercent(ctx context.Context) (v decimal.Decimal, err error)

OldFeePercent returns the old "fee_percent" field's value of the SenderOrderToken entity. If the SenderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SenderOrderTokenMutation) OldField

func (m *SenderOrderTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*SenderOrderTokenMutation) OldRefundAddress

func (m *SenderOrderTokenMutation) OldRefundAddress(ctx context.Context) (v string, err error)

OldRefundAddress returns the old "refund_address" field's value of the SenderOrderToken entity. If the SenderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SenderOrderTokenMutation) OldUpdatedAt

func (m *SenderOrderTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the SenderOrderToken entity. If the SenderOrderToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SenderOrderTokenMutation) Op

func (m *SenderOrderTokenMutation) Op() Op

Op returns the operation name.

func (*SenderOrderTokenMutation) RefundAddress

func (m *SenderOrderTokenMutation) RefundAddress() (r string, exists bool)

RefundAddress returns the value of the "refund_address" field in the mutation.

func (*SenderOrderTokenMutation) RemovedEdges

func (m *SenderOrderTokenMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*SenderOrderTokenMutation) RemovedIDs

func (m *SenderOrderTokenMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*SenderOrderTokenMutation) ResetCreatedAt

func (m *SenderOrderTokenMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*SenderOrderTokenMutation) ResetEdge

func (m *SenderOrderTokenMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*SenderOrderTokenMutation) ResetFeeAddress

func (m *SenderOrderTokenMutation) ResetFeeAddress()

ResetFeeAddress resets all changes to the "fee_address" field.

func (*SenderOrderTokenMutation) ResetFeePercent

func (m *SenderOrderTokenMutation) ResetFeePercent()

ResetFeePercent resets all changes to the "fee_percent" field.

func (*SenderOrderTokenMutation) ResetField

func (m *SenderOrderTokenMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*SenderOrderTokenMutation) ResetRefundAddress

func (m *SenderOrderTokenMutation) ResetRefundAddress()

ResetRefundAddress resets all changes to the "refund_address" field.

func (*SenderOrderTokenMutation) ResetSender

func (m *SenderOrderTokenMutation) ResetSender()

ResetSender resets all changes to the "sender" edge.

func (*SenderOrderTokenMutation) ResetToken

func (m *SenderOrderTokenMutation) ResetToken()

ResetToken resets all changes to the "token" edge.

func (*SenderOrderTokenMutation) ResetUpdatedAt

func (m *SenderOrderTokenMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*SenderOrderTokenMutation) SenderCleared

func (m *SenderOrderTokenMutation) SenderCleared() bool

SenderCleared reports if the "sender" edge to the SenderProfile entity was cleared.

func (*SenderOrderTokenMutation) SenderID

func (m *SenderOrderTokenMutation) SenderID() (id uuid.UUID, exists bool)

SenderID returns the "sender" edge ID in the mutation.

func (*SenderOrderTokenMutation) SenderIDs

func (m *SenderOrderTokenMutation) SenderIDs() (ids []uuid.UUID)

SenderIDs returns the "sender" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SenderID instead. It exists only for internal usage by the builders.

func (*SenderOrderTokenMutation) SetCreatedAt

func (m *SenderOrderTokenMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*SenderOrderTokenMutation) SetFeeAddress

func (m *SenderOrderTokenMutation) SetFeeAddress(s string)

SetFeeAddress sets the "fee_address" field.

func (*SenderOrderTokenMutation) SetFeePercent

func (m *SenderOrderTokenMutation) SetFeePercent(d decimal.Decimal)

SetFeePercent sets the "fee_percent" field.

func (*SenderOrderTokenMutation) SetField

func (m *SenderOrderTokenMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*SenderOrderTokenMutation) SetOp

func (m *SenderOrderTokenMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*SenderOrderTokenMutation) SetRefundAddress

func (m *SenderOrderTokenMutation) SetRefundAddress(s string)

SetRefundAddress sets the "refund_address" field.

func (*SenderOrderTokenMutation) SetSenderID

func (m *SenderOrderTokenMutation) SetSenderID(id uuid.UUID)

SetSenderID sets the "sender" edge to the SenderProfile entity by id.

func (*SenderOrderTokenMutation) SetTokenID

func (m *SenderOrderTokenMutation) SetTokenID(id int)

SetTokenID sets the "token" edge to the Token entity by id.

func (*SenderOrderTokenMutation) SetUpdatedAt

func (m *SenderOrderTokenMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*SenderOrderTokenMutation) TokenCleared

func (m *SenderOrderTokenMutation) TokenCleared() bool

TokenCleared reports if the "token" edge to the Token entity was cleared.

func (*SenderOrderTokenMutation) TokenID

func (m *SenderOrderTokenMutation) TokenID() (id int, exists bool)

TokenID returns the "token" edge ID in the mutation.

func (*SenderOrderTokenMutation) TokenIDs

func (m *SenderOrderTokenMutation) TokenIDs() (ids []int)

TokenIDs returns the "token" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use TokenID instead. It exists only for internal usage by the builders.

func (SenderOrderTokenMutation) Tx

func (m SenderOrderTokenMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*SenderOrderTokenMutation) Type

func (m *SenderOrderTokenMutation) Type() string

Type returns the node type of this mutation (SenderOrderToken).

func (*SenderOrderTokenMutation) UpdatedAt

func (m *SenderOrderTokenMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*SenderOrderTokenMutation) Where

Where appends a list predicates to the SenderOrderTokenMutation builder.

func (*SenderOrderTokenMutation) WhereP

func (m *SenderOrderTokenMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the SenderOrderTokenMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type SenderOrderTokenQuery

type SenderOrderTokenQuery struct {
	// contains filtered or unexported fields
}

SenderOrderTokenQuery is the builder for querying SenderOrderToken entities.

func (*SenderOrderTokenQuery) Aggregate

Aggregate returns a SenderOrderTokenSelect configured with the given aggregations.

func (*SenderOrderTokenQuery) All

All executes the query and returns a list of SenderOrderTokens.

func (*SenderOrderTokenQuery) AllX

AllX is like All, but panics if an error occurs.

func (*SenderOrderTokenQuery) Clone

Clone returns a duplicate of the SenderOrderTokenQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*SenderOrderTokenQuery) Count

func (sotq *SenderOrderTokenQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*SenderOrderTokenQuery) CountX

func (sotq *SenderOrderTokenQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*SenderOrderTokenQuery) Exist

func (sotq *SenderOrderTokenQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*SenderOrderTokenQuery) ExistX

func (sotq *SenderOrderTokenQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*SenderOrderTokenQuery) First

First returns the first SenderOrderToken entity from the query. Returns a *NotFoundError when no SenderOrderToken was found.

func (*SenderOrderTokenQuery) FirstID

func (sotq *SenderOrderTokenQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first SenderOrderToken ID from the query. Returns a *NotFoundError when no SenderOrderToken ID was found.

func (*SenderOrderTokenQuery) FirstIDX

func (sotq *SenderOrderTokenQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*SenderOrderTokenQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*SenderOrderTokenQuery) GroupBy

func (sotq *SenderOrderTokenQuery) GroupBy(field string, fields ...string) *SenderOrderTokenGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.SenderOrderToken.Query().
	GroupBy(senderordertoken.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*SenderOrderTokenQuery) IDs

func (sotq *SenderOrderTokenQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of SenderOrderToken IDs.

func (*SenderOrderTokenQuery) IDsX

func (sotq *SenderOrderTokenQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*SenderOrderTokenQuery) Limit

func (sotq *SenderOrderTokenQuery) Limit(limit int) *SenderOrderTokenQuery

Limit the number of records to be returned by this query.

func (*SenderOrderTokenQuery) Offset

func (sotq *SenderOrderTokenQuery) Offset(offset int) *SenderOrderTokenQuery

Offset to start from.

func (*SenderOrderTokenQuery) Only

Only returns a single SenderOrderToken entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one SenderOrderToken entity is found. Returns a *NotFoundError when no SenderOrderToken entities are found.

func (*SenderOrderTokenQuery) OnlyID

func (sotq *SenderOrderTokenQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only SenderOrderToken ID in the query. Returns a *NotSingularError when more than one SenderOrderToken ID is found. Returns a *NotFoundError when no entities are found.

func (*SenderOrderTokenQuery) OnlyIDX

func (sotq *SenderOrderTokenQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*SenderOrderTokenQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*SenderOrderTokenQuery) Order

Order specifies how the records should be ordered.

func (*SenderOrderTokenQuery) QuerySender

func (sotq *SenderOrderTokenQuery) QuerySender() *SenderProfileQuery

QuerySender chains the current query on the "sender" edge.

func (*SenderOrderTokenQuery) QueryToken

func (sotq *SenderOrderTokenQuery) QueryToken() *TokenQuery

QueryToken chains the current query on the "token" edge.

func (*SenderOrderTokenQuery) Select

func (sotq *SenderOrderTokenQuery) Select(fields ...string) *SenderOrderTokenSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.SenderOrderToken.Query().
	Select(senderordertoken.FieldCreatedAt).
	Scan(ctx, &v)

func (*SenderOrderTokenQuery) Unique

func (sotq *SenderOrderTokenQuery) Unique(unique bool) *SenderOrderTokenQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*SenderOrderTokenQuery) Where

Where adds a new predicate for the SenderOrderTokenQuery builder.

func (*SenderOrderTokenQuery) WithSender

func (sotq *SenderOrderTokenQuery) WithSender(opts ...func(*SenderProfileQuery)) *SenderOrderTokenQuery

WithSender tells the query-builder to eager-load the nodes that are connected to the "sender" edge. The optional arguments are used to configure the query builder of the edge.

func (*SenderOrderTokenQuery) WithToken

func (sotq *SenderOrderTokenQuery) WithToken(opts ...func(*TokenQuery)) *SenderOrderTokenQuery

WithToken tells the query-builder to eager-load the nodes that are connected to the "token" edge. The optional arguments are used to configure the query builder of the edge.

type SenderOrderTokenSelect

type SenderOrderTokenSelect struct {
	*SenderOrderTokenQuery
	// contains filtered or unexported fields
}

SenderOrderTokenSelect is the builder for selecting fields of SenderOrderToken entities.

func (*SenderOrderTokenSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*SenderOrderTokenSelect) Bool

func (s *SenderOrderTokenSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenSelect) BoolX

func (s *SenderOrderTokenSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*SenderOrderTokenSelect) Bools

func (s *SenderOrderTokenSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenSelect) BoolsX

func (s *SenderOrderTokenSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*SenderOrderTokenSelect) Float64

func (s *SenderOrderTokenSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenSelect) Float64X

func (s *SenderOrderTokenSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*SenderOrderTokenSelect) Float64s

func (s *SenderOrderTokenSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenSelect) Float64sX

func (s *SenderOrderTokenSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*SenderOrderTokenSelect) Int

func (s *SenderOrderTokenSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenSelect) IntX

func (s *SenderOrderTokenSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*SenderOrderTokenSelect) Ints

func (s *SenderOrderTokenSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenSelect) IntsX

func (s *SenderOrderTokenSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*SenderOrderTokenSelect) Scan

func (sots *SenderOrderTokenSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*SenderOrderTokenSelect) ScanX

func (s *SenderOrderTokenSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*SenderOrderTokenSelect) String

func (s *SenderOrderTokenSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenSelect) StringX

func (s *SenderOrderTokenSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*SenderOrderTokenSelect) Strings

func (s *SenderOrderTokenSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*SenderOrderTokenSelect) StringsX

func (s *SenderOrderTokenSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type SenderOrderTokenUpdate

type SenderOrderTokenUpdate struct {
	// contains filtered or unexported fields
}

SenderOrderTokenUpdate is the builder for updating SenderOrderToken entities.

func (*SenderOrderTokenUpdate) AddFeePercent

AddFeePercent adds d to the "fee_percent" field.

func (*SenderOrderTokenUpdate) ClearSender

func (sotu *SenderOrderTokenUpdate) ClearSender() *SenderOrderTokenUpdate

ClearSender clears the "sender" edge to the SenderProfile entity.

func (*SenderOrderTokenUpdate) ClearToken

func (sotu *SenderOrderTokenUpdate) ClearToken() *SenderOrderTokenUpdate

ClearToken clears the "token" edge to the Token entity.

func (*SenderOrderTokenUpdate) Exec

func (sotu *SenderOrderTokenUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*SenderOrderTokenUpdate) ExecX

func (sotu *SenderOrderTokenUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SenderOrderTokenUpdate) Mutation

Mutation returns the SenderOrderTokenMutation object of the builder.

func (*SenderOrderTokenUpdate) Save

func (sotu *SenderOrderTokenUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*SenderOrderTokenUpdate) SaveX

func (sotu *SenderOrderTokenUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*SenderOrderTokenUpdate) SetFeeAddress

func (sotu *SenderOrderTokenUpdate) SetFeeAddress(s string) *SenderOrderTokenUpdate

SetFeeAddress sets the "fee_address" field.

func (*SenderOrderTokenUpdate) SetFeePercent

SetFeePercent sets the "fee_percent" field.

func (*SenderOrderTokenUpdate) SetNillableFeeAddress

func (sotu *SenderOrderTokenUpdate) SetNillableFeeAddress(s *string) *SenderOrderTokenUpdate

SetNillableFeeAddress sets the "fee_address" field if the given value is not nil.

func (*SenderOrderTokenUpdate) SetNillableFeePercent

func (sotu *SenderOrderTokenUpdate) SetNillableFeePercent(d *decimal.Decimal) *SenderOrderTokenUpdate

SetNillableFeePercent sets the "fee_percent" field if the given value is not nil.

func (*SenderOrderTokenUpdate) SetNillableRefundAddress

func (sotu *SenderOrderTokenUpdate) SetNillableRefundAddress(s *string) *SenderOrderTokenUpdate

SetNillableRefundAddress sets the "refund_address" field if the given value is not nil.

func (*SenderOrderTokenUpdate) SetRefundAddress

func (sotu *SenderOrderTokenUpdate) SetRefundAddress(s string) *SenderOrderTokenUpdate

SetRefundAddress sets the "refund_address" field.

func (*SenderOrderTokenUpdate) SetSender

SetSender sets the "sender" edge to the SenderProfile entity.

func (*SenderOrderTokenUpdate) SetSenderID

func (sotu *SenderOrderTokenUpdate) SetSenderID(id uuid.UUID) *SenderOrderTokenUpdate

SetSenderID sets the "sender" edge to the SenderProfile entity by ID.

func (*SenderOrderTokenUpdate) SetToken

SetToken sets the "token" edge to the Token entity.

func (*SenderOrderTokenUpdate) SetTokenID

func (sotu *SenderOrderTokenUpdate) SetTokenID(id int) *SenderOrderTokenUpdate

SetTokenID sets the "token" edge to the Token entity by ID.

func (*SenderOrderTokenUpdate) SetUpdatedAt

func (sotu *SenderOrderTokenUpdate) SetUpdatedAt(t time.Time) *SenderOrderTokenUpdate

SetUpdatedAt sets the "updated_at" field.

func (*SenderOrderTokenUpdate) Where

Where appends a list predicates to the SenderOrderTokenUpdate builder.

type SenderOrderTokenUpdateOne

type SenderOrderTokenUpdateOne struct {
	// contains filtered or unexported fields
}

SenderOrderTokenUpdateOne is the builder for updating a single SenderOrderToken entity.

func (*SenderOrderTokenUpdateOne) AddFeePercent

AddFeePercent adds d to the "fee_percent" field.

func (*SenderOrderTokenUpdateOne) ClearSender

ClearSender clears the "sender" edge to the SenderProfile entity.

func (*SenderOrderTokenUpdateOne) ClearToken

ClearToken clears the "token" edge to the Token entity.

func (*SenderOrderTokenUpdateOne) Exec

Exec executes the query on the entity.

func (*SenderOrderTokenUpdateOne) ExecX

func (sotuo *SenderOrderTokenUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SenderOrderTokenUpdateOne) Mutation

Mutation returns the SenderOrderTokenMutation object of the builder.

func (*SenderOrderTokenUpdateOne) Save

Save executes the query and returns the updated SenderOrderToken entity.

func (*SenderOrderTokenUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*SenderOrderTokenUpdateOne) Select

func (sotuo *SenderOrderTokenUpdateOne) Select(field string, fields ...string) *SenderOrderTokenUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*SenderOrderTokenUpdateOne) SetFeeAddress

SetFeeAddress sets the "fee_address" field.

func (*SenderOrderTokenUpdateOne) SetFeePercent

SetFeePercent sets the "fee_percent" field.

func (*SenderOrderTokenUpdateOne) SetNillableFeeAddress

func (sotuo *SenderOrderTokenUpdateOne) SetNillableFeeAddress(s *string) *SenderOrderTokenUpdateOne

SetNillableFeeAddress sets the "fee_address" field if the given value is not nil.

func (*SenderOrderTokenUpdateOne) SetNillableFeePercent

func (sotuo *SenderOrderTokenUpdateOne) SetNillableFeePercent(d *decimal.Decimal) *SenderOrderTokenUpdateOne

SetNillableFeePercent sets the "fee_percent" field if the given value is not nil.

func (*SenderOrderTokenUpdateOne) SetNillableRefundAddress

func (sotuo *SenderOrderTokenUpdateOne) SetNillableRefundAddress(s *string) *SenderOrderTokenUpdateOne

SetNillableRefundAddress sets the "refund_address" field if the given value is not nil.

func (*SenderOrderTokenUpdateOne) SetRefundAddress

func (sotuo *SenderOrderTokenUpdateOne) SetRefundAddress(s string) *SenderOrderTokenUpdateOne

SetRefundAddress sets the "refund_address" field.

func (*SenderOrderTokenUpdateOne) SetSender

SetSender sets the "sender" edge to the SenderProfile entity.

func (*SenderOrderTokenUpdateOne) SetSenderID

SetSenderID sets the "sender" edge to the SenderProfile entity by ID.

func (*SenderOrderTokenUpdateOne) SetToken

SetToken sets the "token" edge to the Token entity.

func (*SenderOrderTokenUpdateOne) SetTokenID

SetTokenID sets the "token" edge to the Token entity by ID.

func (*SenderOrderTokenUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*SenderOrderTokenUpdateOne) Where

Where appends a list predicates to the SenderOrderTokenUpdate builder.

type SenderOrderTokenUpsert

type SenderOrderTokenUpsert struct {
	*sql.UpdateSet
}

SenderOrderTokenUpsert is the "OnConflict" setter.

func (*SenderOrderTokenUpsert) AddFeePercent

AddFeePercent adds v to the "fee_percent" field.

func (*SenderOrderTokenUpsert) SetFeeAddress

SetFeeAddress sets the "fee_address" field.

func (*SenderOrderTokenUpsert) SetFeePercent

SetFeePercent sets the "fee_percent" field.

func (*SenderOrderTokenUpsert) SetRefundAddress

func (u *SenderOrderTokenUpsert) SetRefundAddress(v string) *SenderOrderTokenUpsert

SetRefundAddress sets the "refund_address" field.

func (*SenderOrderTokenUpsert) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*SenderOrderTokenUpsert) UpdateFeeAddress

func (u *SenderOrderTokenUpsert) UpdateFeeAddress() *SenderOrderTokenUpsert

UpdateFeeAddress sets the "fee_address" field to the value that was provided on create.

func (*SenderOrderTokenUpsert) UpdateFeePercent

func (u *SenderOrderTokenUpsert) UpdateFeePercent() *SenderOrderTokenUpsert

UpdateFeePercent sets the "fee_percent" field to the value that was provided on create.

func (*SenderOrderTokenUpsert) UpdateRefundAddress

func (u *SenderOrderTokenUpsert) UpdateRefundAddress() *SenderOrderTokenUpsert

UpdateRefundAddress sets the "refund_address" field to the value that was provided on create.

func (*SenderOrderTokenUpsert) UpdateUpdatedAt

func (u *SenderOrderTokenUpsert) UpdateUpdatedAt() *SenderOrderTokenUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type SenderOrderTokenUpsertBulk

type SenderOrderTokenUpsertBulk struct {
	// contains filtered or unexported fields
}

SenderOrderTokenUpsertBulk is the builder for "upsert"-ing a bulk of SenderOrderToken nodes.

func (*SenderOrderTokenUpsertBulk) AddFeePercent

AddFeePercent adds v to the "fee_percent" field.

func (*SenderOrderTokenUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*SenderOrderTokenUpsertBulk) Exec

Exec executes the query.

func (*SenderOrderTokenUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*SenderOrderTokenUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.SenderOrderToken.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*SenderOrderTokenUpsertBulk) SetFeeAddress

SetFeeAddress sets the "fee_address" field.

func (*SenderOrderTokenUpsertBulk) SetFeePercent

SetFeePercent sets the "fee_percent" field.

func (*SenderOrderTokenUpsertBulk) SetRefundAddress

SetRefundAddress sets the "refund_address" field.

func (*SenderOrderTokenUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*SenderOrderTokenUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the SenderOrderTokenCreateBulk.OnConflict documentation for more info.

func (*SenderOrderTokenUpsertBulk) UpdateFeeAddress

UpdateFeeAddress sets the "fee_address" field to the value that was provided on create.

func (*SenderOrderTokenUpsertBulk) UpdateFeePercent

UpdateFeePercent sets the "fee_percent" field to the value that was provided on create.

func (*SenderOrderTokenUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.SenderOrderToken.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*SenderOrderTokenUpsertBulk) UpdateRefundAddress

func (u *SenderOrderTokenUpsertBulk) UpdateRefundAddress() *SenderOrderTokenUpsertBulk

UpdateRefundAddress sets the "refund_address" field to the value that was provided on create.

func (*SenderOrderTokenUpsertBulk) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type SenderOrderTokenUpsertOne

type SenderOrderTokenUpsertOne struct {
	// contains filtered or unexported fields
}

SenderOrderTokenUpsertOne is the builder for "upsert"-ing

one SenderOrderToken node.

func (*SenderOrderTokenUpsertOne) AddFeePercent

AddFeePercent adds v to the "fee_percent" field.

func (*SenderOrderTokenUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*SenderOrderTokenUpsertOne) Exec

Exec executes the query.

func (*SenderOrderTokenUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*SenderOrderTokenUpsertOne) ID

func (u *SenderOrderTokenUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*SenderOrderTokenUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*SenderOrderTokenUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.SenderOrderToken.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*SenderOrderTokenUpsertOne) SetFeeAddress

SetFeeAddress sets the "fee_address" field.

func (*SenderOrderTokenUpsertOne) SetFeePercent

SetFeePercent sets the "fee_percent" field.

func (*SenderOrderTokenUpsertOne) SetRefundAddress

SetRefundAddress sets the "refund_address" field.

func (*SenderOrderTokenUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*SenderOrderTokenUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the SenderOrderTokenCreate.OnConflict documentation for more info.

func (*SenderOrderTokenUpsertOne) UpdateFeeAddress

UpdateFeeAddress sets the "fee_address" field to the value that was provided on create.

func (*SenderOrderTokenUpsertOne) UpdateFeePercent

UpdateFeePercent sets the "fee_percent" field to the value that was provided on create.

func (*SenderOrderTokenUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.SenderOrderToken.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*SenderOrderTokenUpsertOne) UpdateRefundAddress

func (u *SenderOrderTokenUpsertOne) UpdateRefundAddress() *SenderOrderTokenUpsertOne

UpdateRefundAddress sets the "refund_address" field to the value that was provided on create.

func (*SenderOrderTokenUpsertOne) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type SenderOrderTokens

type SenderOrderTokens []*SenderOrderToken

SenderOrderTokens is a parsable slice of SenderOrderToken.

type SenderProfile

type SenderProfile struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// WebhookURL holds the value of the "webhook_url" field.
	WebhookURL string `json:"webhook_url,omitempty"`
	// DomainWhitelist holds the value of the "domain_whitelist" field.
	DomainWhitelist []string `json:"domain_whitelist,omitempty"`
	// ProviderID holds the value of the "provider_id" field.
	ProviderID string `json:"provider_id,omitempty"`
	// IsPartner holds the value of the "is_partner" field.
	IsPartner bool `json:"is_partner,omitempty"`
	// IsActive holds the value of the "is_active" field.
	IsActive bool `json:"is_active,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the SenderProfileQuery when eager-loading is set.
	Edges SenderProfileEdges `json:"edges"`
	// contains filtered or unexported fields
}

SenderProfile is the model entity for the SenderProfile schema.

func (*SenderProfile) QueryAPIKey

func (sp *SenderProfile) QueryAPIKey() *APIKeyQuery

QueryAPIKey queries the "api_key" edge of the SenderProfile entity.

func (*SenderProfile) QueryLinkedAddress

func (sp *SenderProfile) QueryLinkedAddress() *LinkedAddressQuery

QueryLinkedAddress queries the "linked_address" edge of the SenderProfile entity.

func (*SenderProfile) QueryOrderTokens

func (sp *SenderProfile) QueryOrderTokens() *SenderOrderTokenQuery

QueryOrderTokens queries the "order_tokens" edge of the SenderProfile entity.

func (*SenderProfile) QueryPaymentOrders

func (sp *SenderProfile) QueryPaymentOrders() *PaymentOrderQuery

QueryPaymentOrders queries the "payment_orders" edge of the SenderProfile entity.

func (*SenderProfile) QueryUser

func (sp *SenderProfile) QueryUser() *UserQuery

QueryUser queries the "user" edge of the SenderProfile entity.

func (*SenderProfile) String

func (sp *SenderProfile) String() string

String implements the fmt.Stringer.

func (*SenderProfile) Unwrap

func (sp *SenderProfile) Unwrap() *SenderProfile

Unwrap unwraps the SenderProfile entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*SenderProfile) Update

func (sp *SenderProfile) Update() *SenderProfileUpdateOne

Update returns a builder for updating this SenderProfile. Note that you need to call SenderProfile.Unwrap() before calling this method if this SenderProfile was returned from a transaction, and the transaction was committed or rolled back.

func (*SenderProfile) Value

func (sp *SenderProfile) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the SenderProfile. This includes values selected through modifiers, order, etc.

type SenderProfileClient

type SenderProfileClient struct {
	// contains filtered or unexported fields
}

SenderProfileClient is a client for the SenderProfile schema.

func NewSenderProfileClient

func NewSenderProfileClient(c config) *SenderProfileClient

NewSenderProfileClient returns a client for the SenderProfile from the given config.

func (*SenderProfileClient) Create

Create returns a builder for creating a SenderProfile entity.

func (*SenderProfileClient) CreateBulk

CreateBulk returns a builder for creating a bulk of SenderProfile entities.

func (*SenderProfileClient) Delete

Delete returns a delete builder for SenderProfile.

func (*SenderProfileClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*SenderProfileClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*SenderProfileClient) Get

Get returns a SenderProfile entity by its id.

func (*SenderProfileClient) GetX

GetX is like Get, but panics if an error occurs.

func (*SenderProfileClient) Hooks

func (c *SenderProfileClient) Hooks() []Hook

Hooks returns the client hooks.

func (*SenderProfileClient) Intercept

func (c *SenderProfileClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `senderprofile.Intercept(f(g(h())))`.

func (*SenderProfileClient) Interceptors

func (c *SenderProfileClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*SenderProfileClient) MapCreateBulk

func (c *SenderProfileClient) MapCreateBulk(slice any, setFunc func(*SenderProfileCreate, int)) *SenderProfileCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*SenderProfileClient) Query

Query returns a query builder for SenderProfile.

func (*SenderProfileClient) QueryAPIKey

func (c *SenderProfileClient) QueryAPIKey(sp *SenderProfile) *APIKeyQuery

QueryAPIKey queries the api_key edge of a SenderProfile.

func (*SenderProfileClient) QueryLinkedAddress

func (c *SenderProfileClient) QueryLinkedAddress(sp *SenderProfile) *LinkedAddressQuery

QueryLinkedAddress queries the linked_address edge of a SenderProfile.

func (*SenderProfileClient) QueryOrderTokens

func (c *SenderProfileClient) QueryOrderTokens(sp *SenderProfile) *SenderOrderTokenQuery

QueryOrderTokens queries the order_tokens edge of a SenderProfile.

func (*SenderProfileClient) QueryPaymentOrders

func (c *SenderProfileClient) QueryPaymentOrders(sp *SenderProfile) *PaymentOrderQuery

QueryPaymentOrders queries the payment_orders edge of a SenderProfile.

func (*SenderProfileClient) QueryUser

func (c *SenderProfileClient) QueryUser(sp *SenderProfile) *UserQuery

QueryUser queries the user edge of a SenderProfile.

func (*SenderProfileClient) Update

Update returns an update builder for SenderProfile.

func (*SenderProfileClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*SenderProfileClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*SenderProfileClient) Use

func (c *SenderProfileClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `senderprofile.Hooks(f(g(h())))`.

type SenderProfileCreate

type SenderProfileCreate struct {
	// contains filtered or unexported fields
}

SenderProfileCreate is the builder for creating a SenderProfile entity.

func (*SenderProfileCreate) AddLinkedAddresIDs

func (spc *SenderProfileCreate) AddLinkedAddresIDs(ids ...int) *SenderProfileCreate

AddLinkedAddresIDs adds the "linked_address" edge to the LinkedAddress entity by IDs.

func (*SenderProfileCreate) AddLinkedAddress

func (spc *SenderProfileCreate) AddLinkedAddress(l ...*LinkedAddress) *SenderProfileCreate

AddLinkedAddress adds the "linked_address" edges to the LinkedAddress entity.

func (*SenderProfileCreate) AddOrderTokenIDs

func (spc *SenderProfileCreate) AddOrderTokenIDs(ids ...int) *SenderProfileCreate

AddOrderTokenIDs adds the "order_tokens" edge to the SenderOrderToken entity by IDs.

func (*SenderProfileCreate) AddOrderTokens

func (spc *SenderProfileCreate) AddOrderTokens(s ...*SenderOrderToken) *SenderProfileCreate

AddOrderTokens adds the "order_tokens" edges to the SenderOrderToken entity.

func (*SenderProfileCreate) AddPaymentOrderIDs

func (spc *SenderProfileCreate) AddPaymentOrderIDs(ids ...uuid.UUID) *SenderProfileCreate

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*SenderProfileCreate) AddPaymentOrders

func (spc *SenderProfileCreate) AddPaymentOrders(p ...*PaymentOrder) *SenderProfileCreate

AddPaymentOrders adds the "payment_orders" edges to the PaymentOrder entity.

func (*SenderProfileCreate) Exec

func (spc *SenderProfileCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*SenderProfileCreate) ExecX

func (spc *SenderProfileCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SenderProfileCreate) Mutation

func (spc *SenderProfileCreate) Mutation() *SenderProfileMutation

Mutation returns the SenderProfileMutation object of the builder.

func (*SenderProfileCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.SenderProfile.Create().
	SetWebhookURL(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.SenderProfileUpsert) {
		SetWebhookURL(v+v).
	}).
	Exec(ctx)

func (*SenderProfileCreate) OnConflictColumns

func (spc *SenderProfileCreate) OnConflictColumns(columns ...string) *SenderProfileUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.SenderProfile.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*SenderProfileCreate) Save

Save creates the SenderProfile in the database.

func (*SenderProfileCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*SenderProfileCreate) SetAPIKey

func (spc *SenderProfileCreate) SetAPIKey(a *APIKey) *SenderProfileCreate

SetAPIKey sets the "api_key" edge to the APIKey entity.

func (*SenderProfileCreate) SetAPIKeyID

func (spc *SenderProfileCreate) SetAPIKeyID(id uuid.UUID) *SenderProfileCreate

SetAPIKeyID sets the "api_key" edge to the APIKey entity by ID.

func (*SenderProfileCreate) SetDomainWhitelist

func (spc *SenderProfileCreate) SetDomainWhitelist(s []string) *SenderProfileCreate

SetDomainWhitelist sets the "domain_whitelist" field.

func (*SenderProfileCreate) SetID

SetID sets the "id" field.

func (*SenderProfileCreate) SetIsActive

func (spc *SenderProfileCreate) SetIsActive(b bool) *SenderProfileCreate

SetIsActive sets the "is_active" field.

func (*SenderProfileCreate) SetIsPartner

func (spc *SenderProfileCreate) SetIsPartner(b bool) *SenderProfileCreate

SetIsPartner sets the "is_partner" field.

func (*SenderProfileCreate) SetNillableAPIKeyID

func (spc *SenderProfileCreate) SetNillableAPIKeyID(id *uuid.UUID) *SenderProfileCreate

SetNillableAPIKeyID sets the "api_key" edge to the APIKey entity by ID if the given value is not nil.

func (*SenderProfileCreate) SetNillableID

func (spc *SenderProfileCreate) SetNillableID(u *uuid.UUID) *SenderProfileCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*SenderProfileCreate) SetNillableIsActive

func (spc *SenderProfileCreate) SetNillableIsActive(b *bool) *SenderProfileCreate

SetNillableIsActive sets the "is_active" field if the given value is not nil.

func (*SenderProfileCreate) SetNillableIsPartner

func (spc *SenderProfileCreate) SetNillableIsPartner(b *bool) *SenderProfileCreate

SetNillableIsPartner sets the "is_partner" field if the given value is not nil.

func (*SenderProfileCreate) SetNillableProviderID

func (spc *SenderProfileCreate) SetNillableProviderID(s *string) *SenderProfileCreate

SetNillableProviderID sets the "provider_id" field if the given value is not nil.

func (*SenderProfileCreate) SetNillableUpdatedAt

func (spc *SenderProfileCreate) SetNillableUpdatedAt(t *time.Time) *SenderProfileCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*SenderProfileCreate) SetNillableWebhookURL

func (spc *SenderProfileCreate) SetNillableWebhookURL(s *string) *SenderProfileCreate

SetNillableWebhookURL sets the "webhook_url" field if the given value is not nil.

func (*SenderProfileCreate) SetProviderID

func (spc *SenderProfileCreate) SetProviderID(s string) *SenderProfileCreate

SetProviderID sets the "provider_id" field.

func (*SenderProfileCreate) SetUpdatedAt

func (spc *SenderProfileCreate) SetUpdatedAt(t time.Time) *SenderProfileCreate

SetUpdatedAt sets the "updated_at" field.

func (*SenderProfileCreate) SetUser

func (spc *SenderProfileCreate) SetUser(u *User) *SenderProfileCreate

SetUser sets the "user" edge to the User entity.

func (*SenderProfileCreate) SetUserID

func (spc *SenderProfileCreate) SetUserID(id uuid.UUID) *SenderProfileCreate

SetUserID sets the "user" edge to the User entity by ID.

func (*SenderProfileCreate) SetWebhookURL

func (spc *SenderProfileCreate) SetWebhookURL(s string) *SenderProfileCreate

SetWebhookURL sets the "webhook_url" field.

type SenderProfileCreateBulk

type SenderProfileCreateBulk struct {
	// contains filtered or unexported fields
}

SenderProfileCreateBulk is the builder for creating many SenderProfile entities in bulk.

func (*SenderProfileCreateBulk) Exec

func (spcb *SenderProfileCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*SenderProfileCreateBulk) ExecX

func (spcb *SenderProfileCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SenderProfileCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.SenderProfile.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.SenderProfileUpsert) {
		SetWebhookURL(v+v).
	}).
	Exec(ctx)

func (*SenderProfileCreateBulk) OnConflictColumns

func (spcb *SenderProfileCreateBulk) OnConflictColumns(columns ...string) *SenderProfileUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.SenderProfile.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*SenderProfileCreateBulk) Save

Save creates the SenderProfile entities in the database.

func (*SenderProfileCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type SenderProfileDelete

type SenderProfileDelete struct {
	// contains filtered or unexported fields
}

SenderProfileDelete is the builder for deleting a SenderProfile entity.

func (*SenderProfileDelete) Exec

func (spd *SenderProfileDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*SenderProfileDelete) ExecX

func (spd *SenderProfileDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*SenderProfileDelete) Where

Where appends a list predicates to the SenderProfileDelete builder.

type SenderProfileDeleteOne

type SenderProfileDeleteOne struct {
	// contains filtered or unexported fields
}

SenderProfileDeleteOne is the builder for deleting a single SenderProfile entity.

func (*SenderProfileDeleteOne) Exec

func (spdo *SenderProfileDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*SenderProfileDeleteOne) ExecX

func (spdo *SenderProfileDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SenderProfileDeleteOne) Where

Where appends a list predicates to the SenderProfileDelete builder.

type SenderProfileEdges

type SenderProfileEdges struct {
	// User holds the value of the user edge.
	User *User `json:"user,omitempty"`
	// APIKey holds the value of the api_key edge.
	APIKey *APIKey `json:"api_key,omitempty"`
	// PaymentOrders holds the value of the payment_orders edge.
	PaymentOrders []*PaymentOrder `json:"payment_orders,omitempty"`
	// OrderTokens holds the value of the order_tokens edge.
	OrderTokens []*SenderOrderToken `json:"order_tokens,omitempty"`
	// LinkedAddress holds the value of the linked_address edge.
	LinkedAddress []*LinkedAddress `json:"linked_address,omitempty"`
	// contains filtered or unexported fields
}

SenderProfileEdges holds the relations/edges for other nodes in the graph.

func (SenderProfileEdges) APIKeyOrErr

func (e SenderProfileEdges) APIKeyOrErr() (*APIKey, error)

APIKeyOrErr returns the APIKey value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (SenderProfileEdges) LinkedAddressOrErr

func (e SenderProfileEdges) LinkedAddressOrErr() ([]*LinkedAddress, error)

LinkedAddressOrErr returns the LinkedAddress value or an error if the edge was not loaded in eager-loading.

func (SenderProfileEdges) OrderTokensOrErr

func (e SenderProfileEdges) OrderTokensOrErr() ([]*SenderOrderToken, error)

OrderTokensOrErr returns the OrderTokens value or an error if the edge was not loaded in eager-loading.

func (SenderProfileEdges) PaymentOrdersOrErr

func (e SenderProfileEdges) PaymentOrdersOrErr() ([]*PaymentOrder, error)

PaymentOrdersOrErr returns the PaymentOrders value or an error if the edge was not loaded in eager-loading.

func (SenderProfileEdges) UserOrErr

func (e SenderProfileEdges) UserOrErr() (*User, error)

UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type SenderProfileGroupBy

type SenderProfileGroupBy struct {
	// contains filtered or unexported fields
}

SenderProfileGroupBy is the group-by builder for SenderProfile entities.

func (*SenderProfileGroupBy) Aggregate

func (spgb *SenderProfileGroupBy) Aggregate(fns ...AggregateFunc) *SenderProfileGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*SenderProfileGroupBy) Bool

func (s *SenderProfileGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*SenderProfileGroupBy) BoolX

func (s *SenderProfileGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*SenderProfileGroupBy) Bools

func (s *SenderProfileGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*SenderProfileGroupBy) BoolsX

func (s *SenderProfileGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*SenderProfileGroupBy) Float64

func (s *SenderProfileGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*SenderProfileGroupBy) Float64X

func (s *SenderProfileGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*SenderProfileGroupBy) Float64s

func (s *SenderProfileGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*SenderProfileGroupBy) Float64sX

func (s *SenderProfileGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*SenderProfileGroupBy) Int

func (s *SenderProfileGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*SenderProfileGroupBy) IntX

func (s *SenderProfileGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*SenderProfileGroupBy) Ints

func (s *SenderProfileGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*SenderProfileGroupBy) IntsX

func (s *SenderProfileGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*SenderProfileGroupBy) Scan

func (spgb *SenderProfileGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*SenderProfileGroupBy) ScanX

func (s *SenderProfileGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*SenderProfileGroupBy) String

func (s *SenderProfileGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*SenderProfileGroupBy) StringX

func (s *SenderProfileGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*SenderProfileGroupBy) Strings

func (s *SenderProfileGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*SenderProfileGroupBy) StringsX

func (s *SenderProfileGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type SenderProfileMutation

type SenderProfileMutation struct {
	// contains filtered or unexported fields
}

SenderProfileMutation represents an operation that mutates the SenderProfile nodes in the graph.

func (*SenderProfileMutation) APIKeyCleared

func (m *SenderProfileMutation) APIKeyCleared() bool

APIKeyCleared reports if the "api_key" edge to the APIKey entity was cleared.

func (*SenderProfileMutation) APIKeyID

func (m *SenderProfileMutation) APIKeyID() (id uuid.UUID, exists bool)

APIKeyID returns the "api_key" edge ID in the mutation.

func (*SenderProfileMutation) APIKeyIDs

func (m *SenderProfileMutation) APIKeyIDs() (ids []uuid.UUID)

APIKeyIDs returns the "api_key" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use APIKeyID instead. It exists only for internal usage by the builders.

func (*SenderProfileMutation) AddField

func (m *SenderProfileMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*SenderProfileMutation) AddLinkedAddresIDs

func (m *SenderProfileMutation) AddLinkedAddresIDs(ids ...int)

AddLinkedAddresIDs adds the "linked_address" edge to the LinkedAddress entity by ids.

func (*SenderProfileMutation) AddOrderTokenIDs

func (m *SenderProfileMutation) AddOrderTokenIDs(ids ...int)

AddOrderTokenIDs adds the "order_tokens" edge to the SenderOrderToken entity by ids.

func (*SenderProfileMutation) AddPaymentOrderIDs

func (m *SenderProfileMutation) AddPaymentOrderIDs(ids ...uuid.UUID)

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by ids.

func (*SenderProfileMutation) AddedEdges

func (m *SenderProfileMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*SenderProfileMutation) AddedField

func (m *SenderProfileMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*SenderProfileMutation) AddedFields

func (m *SenderProfileMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*SenderProfileMutation) AddedIDs

func (m *SenderProfileMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*SenderProfileMutation) AppendDomainWhitelist

func (m *SenderProfileMutation) AppendDomainWhitelist(s []string)

AppendDomainWhitelist adds s to the "domain_whitelist" field.

func (*SenderProfileMutation) AppendedDomainWhitelist

func (m *SenderProfileMutation) AppendedDomainWhitelist() ([]string, bool)

AppendedDomainWhitelist returns the list of values that were appended to the "domain_whitelist" field in this mutation.

func (*SenderProfileMutation) ClearAPIKey

func (m *SenderProfileMutation) ClearAPIKey()

ClearAPIKey clears the "api_key" edge to the APIKey entity.

func (*SenderProfileMutation) ClearEdge

func (m *SenderProfileMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*SenderProfileMutation) ClearField

func (m *SenderProfileMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*SenderProfileMutation) ClearLinkedAddress

func (m *SenderProfileMutation) ClearLinkedAddress()

ClearLinkedAddress clears the "linked_address" edge to the LinkedAddress entity.

func (*SenderProfileMutation) ClearOrderTokens

func (m *SenderProfileMutation) ClearOrderTokens()

ClearOrderTokens clears the "order_tokens" edge to the SenderOrderToken entity.

func (*SenderProfileMutation) ClearPaymentOrders

func (m *SenderProfileMutation) ClearPaymentOrders()

ClearPaymentOrders clears the "payment_orders" edge to the PaymentOrder entity.

func (*SenderProfileMutation) ClearProviderID

func (m *SenderProfileMutation) ClearProviderID()

ClearProviderID clears the value of the "provider_id" field.

func (*SenderProfileMutation) ClearUser

func (m *SenderProfileMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*SenderProfileMutation) ClearWebhookURL

func (m *SenderProfileMutation) ClearWebhookURL()

ClearWebhookURL clears the value of the "webhook_url" field.

func (*SenderProfileMutation) ClearedEdges

func (m *SenderProfileMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*SenderProfileMutation) ClearedFields

func (m *SenderProfileMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (SenderProfileMutation) Client

func (m SenderProfileMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*SenderProfileMutation) DomainWhitelist

func (m *SenderProfileMutation) DomainWhitelist() (r []string, exists bool)

DomainWhitelist returns the value of the "domain_whitelist" field in the mutation.

func (*SenderProfileMutation) EdgeCleared

func (m *SenderProfileMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*SenderProfileMutation) Field

func (m *SenderProfileMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*SenderProfileMutation) FieldCleared

func (m *SenderProfileMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*SenderProfileMutation) Fields

func (m *SenderProfileMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*SenderProfileMutation) ID

func (m *SenderProfileMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*SenderProfileMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*SenderProfileMutation) IsActive

func (m *SenderProfileMutation) IsActive() (r bool, exists bool)

IsActive returns the value of the "is_active" field in the mutation.

func (*SenderProfileMutation) IsPartner

func (m *SenderProfileMutation) IsPartner() (r bool, exists bool)

IsPartner returns the value of the "is_partner" field in the mutation.

func (*SenderProfileMutation) LinkedAddressCleared

func (m *SenderProfileMutation) LinkedAddressCleared() bool

LinkedAddressCleared reports if the "linked_address" edge to the LinkedAddress entity was cleared.

func (*SenderProfileMutation) LinkedAddressIDs

func (m *SenderProfileMutation) LinkedAddressIDs() (ids []int)

LinkedAddressIDs returns the "linked_address" edge IDs in the mutation.

func (*SenderProfileMutation) OldDomainWhitelist

func (m *SenderProfileMutation) OldDomainWhitelist(ctx context.Context) (v []string, err error)

OldDomainWhitelist returns the old "domain_whitelist" field's value of the SenderProfile entity. If the SenderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SenderProfileMutation) OldField

func (m *SenderProfileMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*SenderProfileMutation) OldIsActive

func (m *SenderProfileMutation) OldIsActive(ctx context.Context) (v bool, err error)

OldIsActive returns the old "is_active" field's value of the SenderProfile entity. If the SenderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SenderProfileMutation) OldIsPartner

func (m *SenderProfileMutation) OldIsPartner(ctx context.Context) (v bool, err error)

OldIsPartner returns the old "is_partner" field's value of the SenderProfile entity. If the SenderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SenderProfileMutation) OldProviderID

func (m *SenderProfileMutation) OldProviderID(ctx context.Context) (v string, err error)

OldProviderID returns the old "provider_id" field's value of the SenderProfile entity. If the SenderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SenderProfileMutation) OldUpdatedAt

func (m *SenderProfileMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the SenderProfile entity. If the SenderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SenderProfileMutation) OldWebhookURL

func (m *SenderProfileMutation) OldWebhookURL(ctx context.Context) (v string, err error)

OldWebhookURL returns the old "webhook_url" field's value of the SenderProfile entity. If the SenderProfile object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SenderProfileMutation) Op

func (m *SenderProfileMutation) Op() Op

Op returns the operation name.

func (*SenderProfileMutation) OrderTokensCleared

func (m *SenderProfileMutation) OrderTokensCleared() bool

OrderTokensCleared reports if the "order_tokens" edge to the SenderOrderToken entity was cleared.

func (*SenderProfileMutation) OrderTokensIDs

func (m *SenderProfileMutation) OrderTokensIDs() (ids []int)

OrderTokensIDs returns the "order_tokens" edge IDs in the mutation.

func (*SenderProfileMutation) PaymentOrdersCleared

func (m *SenderProfileMutation) PaymentOrdersCleared() bool

PaymentOrdersCleared reports if the "payment_orders" edge to the PaymentOrder entity was cleared.

func (*SenderProfileMutation) PaymentOrdersIDs

func (m *SenderProfileMutation) PaymentOrdersIDs() (ids []uuid.UUID)

PaymentOrdersIDs returns the "payment_orders" edge IDs in the mutation.

func (*SenderProfileMutation) ProviderID

func (m *SenderProfileMutation) ProviderID() (r string, exists bool)

ProviderID returns the value of the "provider_id" field in the mutation.

func (*SenderProfileMutation) ProviderIDCleared

func (m *SenderProfileMutation) ProviderIDCleared() bool

ProviderIDCleared returns if the "provider_id" field was cleared in this mutation.

func (*SenderProfileMutation) RemoveLinkedAddresIDs

func (m *SenderProfileMutation) RemoveLinkedAddresIDs(ids ...int)

RemoveLinkedAddresIDs removes the "linked_address" edge to the LinkedAddress entity by IDs.

func (*SenderProfileMutation) RemoveOrderTokenIDs

func (m *SenderProfileMutation) RemoveOrderTokenIDs(ids ...int)

RemoveOrderTokenIDs removes the "order_tokens" edge to the SenderOrderToken entity by IDs.

func (*SenderProfileMutation) RemovePaymentOrderIDs

func (m *SenderProfileMutation) RemovePaymentOrderIDs(ids ...uuid.UUID)

RemovePaymentOrderIDs removes the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*SenderProfileMutation) RemovedEdges

func (m *SenderProfileMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*SenderProfileMutation) RemovedIDs

func (m *SenderProfileMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*SenderProfileMutation) RemovedLinkedAddressIDs

func (m *SenderProfileMutation) RemovedLinkedAddressIDs() (ids []int)

RemovedLinkedAddress returns the removed IDs of the "linked_address" edge to the LinkedAddress entity.

func (*SenderProfileMutation) RemovedOrderTokensIDs

func (m *SenderProfileMutation) RemovedOrderTokensIDs() (ids []int)

RemovedOrderTokens returns the removed IDs of the "order_tokens" edge to the SenderOrderToken entity.

func (*SenderProfileMutation) RemovedPaymentOrdersIDs

func (m *SenderProfileMutation) RemovedPaymentOrdersIDs() (ids []uuid.UUID)

RemovedPaymentOrders returns the removed IDs of the "payment_orders" edge to the PaymentOrder entity.

func (*SenderProfileMutation) ResetAPIKey

func (m *SenderProfileMutation) ResetAPIKey()

ResetAPIKey resets all changes to the "api_key" edge.

func (*SenderProfileMutation) ResetDomainWhitelist

func (m *SenderProfileMutation) ResetDomainWhitelist()

ResetDomainWhitelist resets all changes to the "domain_whitelist" field.

func (*SenderProfileMutation) ResetEdge

func (m *SenderProfileMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*SenderProfileMutation) ResetField

func (m *SenderProfileMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*SenderProfileMutation) ResetIsActive

func (m *SenderProfileMutation) ResetIsActive()

ResetIsActive resets all changes to the "is_active" field.

func (*SenderProfileMutation) ResetIsPartner

func (m *SenderProfileMutation) ResetIsPartner()

ResetIsPartner resets all changes to the "is_partner" field.

func (*SenderProfileMutation) ResetLinkedAddress

func (m *SenderProfileMutation) ResetLinkedAddress()

ResetLinkedAddress resets all changes to the "linked_address" edge.

func (*SenderProfileMutation) ResetOrderTokens

func (m *SenderProfileMutation) ResetOrderTokens()

ResetOrderTokens resets all changes to the "order_tokens" edge.

func (*SenderProfileMutation) ResetPaymentOrders

func (m *SenderProfileMutation) ResetPaymentOrders()

ResetPaymentOrders resets all changes to the "payment_orders" edge.

func (*SenderProfileMutation) ResetProviderID

func (m *SenderProfileMutation) ResetProviderID()

ResetProviderID resets all changes to the "provider_id" field.

func (*SenderProfileMutation) ResetUpdatedAt

func (m *SenderProfileMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*SenderProfileMutation) ResetUser

func (m *SenderProfileMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*SenderProfileMutation) ResetWebhookURL

func (m *SenderProfileMutation) ResetWebhookURL()

ResetWebhookURL resets all changes to the "webhook_url" field.

func (*SenderProfileMutation) SetAPIKeyID

func (m *SenderProfileMutation) SetAPIKeyID(id uuid.UUID)

SetAPIKeyID sets the "api_key" edge to the APIKey entity by id.

func (*SenderProfileMutation) SetDomainWhitelist

func (m *SenderProfileMutation) SetDomainWhitelist(s []string)

SetDomainWhitelist sets the "domain_whitelist" field.

func (*SenderProfileMutation) SetField

func (m *SenderProfileMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*SenderProfileMutation) SetID

func (m *SenderProfileMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of SenderProfile entities.

func (*SenderProfileMutation) SetIsActive

func (m *SenderProfileMutation) SetIsActive(b bool)

SetIsActive sets the "is_active" field.

func (*SenderProfileMutation) SetIsPartner

func (m *SenderProfileMutation) SetIsPartner(b bool)

SetIsPartner sets the "is_partner" field.

func (*SenderProfileMutation) SetOp

func (m *SenderProfileMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*SenderProfileMutation) SetProviderID

func (m *SenderProfileMutation) SetProviderID(s string)

SetProviderID sets the "provider_id" field.

func (*SenderProfileMutation) SetUpdatedAt

func (m *SenderProfileMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*SenderProfileMutation) SetUserID

func (m *SenderProfileMutation) SetUserID(id uuid.UUID)

SetUserID sets the "user" edge to the User entity by id.

func (*SenderProfileMutation) SetWebhookURL

func (m *SenderProfileMutation) SetWebhookURL(s string)

SetWebhookURL sets the "webhook_url" field.

func (SenderProfileMutation) Tx

func (m SenderProfileMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*SenderProfileMutation) Type

func (m *SenderProfileMutation) Type() string

Type returns the node type of this mutation (SenderProfile).

func (*SenderProfileMutation) UpdatedAt

func (m *SenderProfileMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*SenderProfileMutation) UserCleared

func (m *SenderProfileMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*SenderProfileMutation) UserID

func (m *SenderProfileMutation) UserID() (id uuid.UUID, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*SenderProfileMutation) UserIDs

func (m *SenderProfileMutation) UserIDs() (ids []uuid.UUID)

UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.

func (*SenderProfileMutation) WebhookURL

func (m *SenderProfileMutation) WebhookURL() (r string, exists bool)

WebhookURL returns the value of the "webhook_url" field in the mutation.

func (*SenderProfileMutation) WebhookURLCleared

func (m *SenderProfileMutation) WebhookURLCleared() bool

WebhookURLCleared returns if the "webhook_url" field was cleared in this mutation.

func (*SenderProfileMutation) Where

Where appends a list predicates to the SenderProfileMutation builder.

func (*SenderProfileMutation) WhereP

func (m *SenderProfileMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the SenderProfileMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type SenderProfileQuery

type SenderProfileQuery struct {
	// contains filtered or unexported fields
}

SenderProfileQuery is the builder for querying SenderProfile entities.

func (*SenderProfileQuery) Aggregate

func (spq *SenderProfileQuery) Aggregate(fns ...AggregateFunc) *SenderProfileSelect

Aggregate returns a SenderProfileSelect configured with the given aggregations.

func (*SenderProfileQuery) All

All executes the query and returns a list of SenderProfiles.

func (*SenderProfileQuery) AllX

func (spq *SenderProfileQuery) AllX(ctx context.Context) []*SenderProfile

AllX is like All, but panics if an error occurs.

func (*SenderProfileQuery) Clone

func (spq *SenderProfileQuery) Clone() *SenderProfileQuery

Clone returns a duplicate of the SenderProfileQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*SenderProfileQuery) Count

func (spq *SenderProfileQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*SenderProfileQuery) CountX

func (spq *SenderProfileQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*SenderProfileQuery) Exist

func (spq *SenderProfileQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*SenderProfileQuery) ExistX

func (spq *SenderProfileQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*SenderProfileQuery) First

First returns the first SenderProfile entity from the query. Returns a *NotFoundError when no SenderProfile was found.

func (*SenderProfileQuery) FirstID

func (spq *SenderProfileQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first SenderProfile ID from the query. Returns a *NotFoundError when no SenderProfile ID was found.

func (*SenderProfileQuery) FirstIDX

func (spq *SenderProfileQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*SenderProfileQuery) FirstX

func (spq *SenderProfileQuery) FirstX(ctx context.Context) *SenderProfile

FirstX is like First, but panics if an error occurs.

func (*SenderProfileQuery) GroupBy

func (spq *SenderProfileQuery) GroupBy(field string, fields ...string) *SenderProfileGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	WebhookURL string `json:"webhook_url,omitempty"`
	Count int `json:"count,omitempty"`
}

client.SenderProfile.Query().
	GroupBy(senderprofile.FieldWebhookURL).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*SenderProfileQuery) IDs

func (spq *SenderProfileQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of SenderProfile IDs.

func (*SenderProfileQuery) IDsX

func (spq *SenderProfileQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*SenderProfileQuery) Limit

func (spq *SenderProfileQuery) Limit(limit int) *SenderProfileQuery

Limit the number of records to be returned by this query.

func (*SenderProfileQuery) Offset

func (spq *SenderProfileQuery) Offset(offset int) *SenderProfileQuery

Offset to start from.

func (*SenderProfileQuery) Only

Only returns a single SenderProfile entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one SenderProfile entity is found. Returns a *NotFoundError when no SenderProfile entities are found.

func (*SenderProfileQuery) OnlyID

func (spq *SenderProfileQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only SenderProfile ID in the query. Returns a *NotSingularError when more than one SenderProfile ID is found. Returns a *NotFoundError when no entities are found.

func (*SenderProfileQuery) OnlyIDX

func (spq *SenderProfileQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*SenderProfileQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*SenderProfileQuery) Order

Order specifies how the records should be ordered.

func (*SenderProfileQuery) QueryAPIKey

func (spq *SenderProfileQuery) QueryAPIKey() *APIKeyQuery

QueryAPIKey chains the current query on the "api_key" edge.

func (*SenderProfileQuery) QueryLinkedAddress

func (spq *SenderProfileQuery) QueryLinkedAddress() *LinkedAddressQuery

QueryLinkedAddress chains the current query on the "linked_address" edge.

func (*SenderProfileQuery) QueryOrderTokens

func (spq *SenderProfileQuery) QueryOrderTokens() *SenderOrderTokenQuery

QueryOrderTokens chains the current query on the "order_tokens" edge.

func (*SenderProfileQuery) QueryPaymentOrders

func (spq *SenderProfileQuery) QueryPaymentOrders() *PaymentOrderQuery

QueryPaymentOrders chains the current query on the "payment_orders" edge.

func (*SenderProfileQuery) QueryUser

func (spq *SenderProfileQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*SenderProfileQuery) Select

func (spq *SenderProfileQuery) Select(fields ...string) *SenderProfileSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	WebhookURL string `json:"webhook_url,omitempty"`
}

client.SenderProfile.Query().
	Select(senderprofile.FieldWebhookURL).
	Scan(ctx, &v)

func (*SenderProfileQuery) Unique

func (spq *SenderProfileQuery) Unique(unique bool) *SenderProfileQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*SenderProfileQuery) Where

Where adds a new predicate for the SenderProfileQuery builder.

func (*SenderProfileQuery) WithAPIKey

func (spq *SenderProfileQuery) WithAPIKey(opts ...func(*APIKeyQuery)) *SenderProfileQuery

WithAPIKey tells the query-builder to eager-load the nodes that are connected to the "api_key" edge. The optional arguments are used to configure the query builder of the edge.

func (*SenderProfileQuery) WithLinkedAddress

func (spq *SenderProfileQuery) WithLinkedAddress(opts ...func(*LinkedAddressQuery)) *SenderProfileQuery

WithLinkedAddress tells the query-builder to eager-load the nodes that are connected to the "linked_address" edge. The optional arguments are used to configure the query builder of the edge.

func (*SenderProfileQuery) WithOrderTokens

func (spq *SenderProfileQuery) WithOrderTokens(opts ...func(*SenderOrderTokenQuery)) *SenderProfileQuery

WithOrderTokens tells the query-builder to eager-load the nodes that are connected to the "order_tokens" edge. The optional arguments are used to configure the query builder of the edge.

func (*SenderProfileQuery) WithPaymentOrders

func (spq *SenderProfileQuery) WithPaymentOrders(opts ...func(*PaymentOrderQuery)) *SenderProfileQuery

WithPaymentOrders tells the query-builder to eager-load the nodes that are connected to the "payment_orders" edge. The optional arguments are used to configure the query builder of the edge.

func (*SenderProfileQuery) WithUser

func (spq *SenderProfileQuery) WithUser(opts ...func(*UserQuery)) *SenderProfileQuery

WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.

type SenderProfileSelect

type SenderProfileSelect struct {
	*SenderProfileQuery
	// contains filtered or unexported fields
}

SenderProfileSelect is the builder for selecting fields of SenderProfile entities.

func (*SenderProfileSelect) Aggregate

func (sps *SenderProfileSelect) Aggregate(fns ...AggregateFunc) *SenderProfileSelect

Aggregate adds the given aggregation functions to the selector query.

func (*SenderProfileSelect) Bool

func (s *SenderProfileSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*SenderProfileSelect) BoolX

func (s *SenderProfileSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*SenderProfileSelect) Bools

func (s *SenderProfileSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*SenderProfileSelect) BoolsX

func (s *SenderProfileSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*SenderProfileSelect) Float64

func (s *SenderProfileSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*SenderProfileSelect) Float64X

func (s *SenderProfileSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*SenderProfileSelect) Float64s

func (s *SenderProfileSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*SenderProfileSelect) Float64sX

func (s *SenderProfileSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*SenderProfileSelect) Int

func (s *SenderProfileSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*SenderProfileSelect) IntX

func (s *SenderProfileSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*SenderProfileSelect) Ints

func (s *SenderProfileSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*SenderProfileSelect) IntsX

func (s *SenderProfileSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*SenderProfileSelect) Scan

func (sps *SenderProfileSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*SenderProfileSelect) ScanX

func (s *SenderProfileSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*SenderProfileSelect) String

func (s *SenderProfileSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*SenderProfileSelect) StringX

func (s *SenderProfileSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*SenderProfileSelect) Strings

func (s *SenderProfileSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*SenderProfileSelect) StringsX

func (s *SenderProfileSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type SenderProfileUpdate

type SenderProfileUpdate struct {
	// contains filtered or unexported fields
}

SenderProfileUpdate is the builder for updating SenderProfile entities.

func (*SenderProfileUpdate) AddLinkedAddresIDs

func (spu *SenderProfileUpdate) AddLinkedAddresIDs(ids ...int) *SenderProfileUpdate

AddLinkedAddresIDs adds the "linked_address" edge to the LinkedAddress entity by IDs.

func (*SenderProfileUpdate) AddLinkedAddress

func (spu *SenderProfileUpdate) AddLinkedAddress(l ...*LinkedAddress) *SenderProfileUpdate

AddLinkedAddress adds the "linked_address" edges to the LinkedAddress entity.

func (*SenderProfileUpdate) AddOrderTokenIDs

func (spu *SenderProfileUpdate) AddOrderTokenIDs(ids ...int) *SenderProfileUpdate

AddOrderTokenIDs adds the "order_tokens" edge to the SenderOrderToken entity by IDs.

func (*SenderProfileUpdate) AddOrderTokens

func (spu *SenderProfileUpdate) AddOrderTokens(s ...*SenderOrderToken) *SenderProfileUpdate

AddOrderTokens adds the "order_tokens" edges to the SenderOrderToken entity.

func (*SenderProfileUpdate) AddPaymentOrderIDs

func (spu *SenderProfileUpdate) AddPaymentOrderIDs(ids ...uuid.UUID) *SenderProfileUpdate

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*SenderProfileUpdate) AddPaymentOrders

func (spu *SenderProfileUpdate) AddPaymentOrders(p ...*PaymentOrder) *SenderProfileUpdate

AddPaymentOrders adds the "payment_orders" edges to the PaymentOrder entity.

func (*SenderProfileUpdate) AppendDomainWhitelist

func (spu *SenderProfileUpdate) AppendDomainWhitelist(s []string) *SenderProfileUpdate

AppendDomainWhitelist appends s to the "domain_whitelist" field.

func (*SenderProfileUpdate) ClearAPIKey

func (spu *SenderProfileUpdate) ClearAPIKey() *SenderProfileUpdate

ClearAPIKey clears the "api_key" edge to the APIKey entity.

func (*SenderProfileUpdate) ClearLinkedAddress

func (spu *SenderProfileUpdate) ClearLinkedAddress() *SenderProfileUpdate

ClearLinkedAddress clears all "linked_address" edges to the LinkedAddress entity.

func (*SenderProfileUpdate) ClearOrderTokens

func (spu *SenderProfileUpdate) ClearOrderTokens() *SenderProfileUpdate

ClearOrderTokens clears all "order_tokens" edges to the SenderOrderToken entity.

func (*SenderProfileUpdate) ClearPaymentOrders

func (spu *SenderProfileUpdate) ClearPaymentOrders() *SenderProfileUpdate

ClearPaymentOrders clears all "payment_orders" edges to the PaymentOrder entity.

func (*SenderProfileUpdate) ClearProviderID

func (spu *SenderProfileUpdate) ClearProviderID() *SenderProfileUpdate

ClearProviderID clears the value of the "provider_id" field.

func (*SenderProfileUpdate) ClearWebhookURL

func (spu *SenderProfileUpdate) ClearWebhookURL() *SenderProfileUpdate

ClearWebhookURL clears the value of the "webhook_url" field.

func (*SenderProfileUpdate) Exec

func (spu *SenderProfileUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*SenderProfileUpdate) ExecX

func (spu *SenderProfileUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SenderProfileUpdate) Mutation

func (spu *SenderProfileUpdate) Mutation() *SenderProfileMutation

Mutation returns the SenderProfileMutation object of the builder.

func (*SenderProfileUpdate) RemoveLinkedAddresIDs

func (spu *SenderProfileUpdate) RemoveLinkedAddresIDs(ids ...int) *SenderProfileUpdate

RemoveLinkedAddresIDs removes the "linked_address" edge to LinkedAddress entities by IDs.

func (*SenderProfileUpdate) RemoveLinkedAddress

func (spu *SenderProfileUpdate) RemoveLinkedAddress(l ...*LinkedAddress) *SenderProfileUpdate

RemoveLinkedAddress removes "linked_address" edges to LinkedAddress entities.

func (*SenderProfileUpdate) RemoveOrderTokenIDs

func (spu *SenderProfileUpdate) RemoveOrderTokenIDs(ids ...int) *SenderProfileUpdate

RemoveOrderTokenIDs removes the "order_tokens" edge to SenderOrderToken entities by IDs.

func (*SenderProfileUpdate) RemoveOrderTokens

func (spu *SenderProfileUpdate) RemoveOrderTokens(s ...*SenderOrderToken) *SenderProfileUpdate

RemoveOrderTokens removes "order_tokens" edges to SenderOrderToken entities.

func (*SenderProfileUpdate) RemovePaymentOrderIDs

func (spu *SenderProfileUpdate) RemovePaymentOrderIDs(ids ...uuid.UUID) *SenderProfileUpdate

RemovePaymentOrderIDs removes the "payment_orders" edge to PaymentOrder entities by IDs.

func (*SenderProfileUpdate) RemovePaymentOrders

func (spu *SenderProfileUpdate) RemovePaymentOrders(p ...*PaymentOrder) *SenderProfileUpdate

RemovePaymentOrders removes "payment_orders" edges to PaymentOrder entities.

func (*SenderProfileUpdate) Save

func (spu *SenderProfileUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*SenderProfileUpdate) SaveX

func (spu *SenderProfileUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*SenderProfileUpdate) SetAPIKey

func (spu *SenderProfileUpdate) SetAPIKey(a *APIKey) *SenderProfileUpdate

SetAPIKey sets the "api_key" edge to the APIKey entity.

func (*SenderProfileUpdate) SetAPIKeyID

func (spu *SenderProfileUpdate) SetAPIKeyID(id uuid.UUID) *SenderProfileUpdate

SetAPIKeyID sets the "api_key" edge to the APIKey entity by ID.

func (*SenderProfileUpdate) SetDomainWhitelist

func (spu *SenderProfileUpdate) SetDomainWhitelist(s []string) *SenderProfileUpdate

SetDomainWhitelist sets the "domain_whitelist" field.

func (*SenderProfileUpdate) SetIsActive

func (spu *SenderProfileUpdate) SetIsActive(b bool) *SenderProfileUpdate

SetIsActive sets the "is_active" field.

func (*SenderProfileUpdate) SetIsPartner

func (spu *SenderProfileUpdate) SetIsPartner(b bool) *SenderProfileUpdate

SetIsPartner sets the "is_partner" field.

func (*SenderProfileUpdate) SetNillableAPIKeyID

func (spu *SenderProfileUpdate) SetNillableAPIKeyID(id *uuid.UUID) *SenderProfileUpdate

SetNillableAPIKeyID sets the "api_key" edge to the APIKey entity by ID if the given value is not nil.

func (*SenderProfileUpdate) SetNillableIsActive

func (spu *SenderProfileUpdate) SetNillableIsActive(b *bool) *SenderProfileUpdate

SetNillableIsActive sets the "is_active" field if the given value is not nil.

func (*SenderProfileUpdate) SetNillableIsPartner

func (spu *SenderProfileUpdate) SetNillableIsPartner(b *bool) *SenderProfileUpdate

SetNillableIsPartner sets the "is_partner" field if the given value is not nil.

func (*SenderProfileUpdate) SetNillableProviderID

func (spu *SenderProfileUpdate) SetNillableProviderID(s *string) *SenderProfileUpdate

SetNillableProviderID sets the "provider_id" field if the given value is not nil.

func (*SenderProfileUpdate) SetNillableWebhookURL

func (spu *SenderProfileUpdate) SetNillableWebhookURL(s *string) *SenderProfileUpdate

SetNillableWebhookURL sets the "webhook_url" field if the given value is not nil.

func (*SenderProfileUpdate) SetProviderID

func (spu *SenderProfileUpdate) SetProviderID(s string) *SenderProfileUpdate

SetProviderID sets the "provider_id" field.

func (*SenderProfileUpdate) SetUpdatedAt

func (spu *SenderProfileUpdate) SetUpdatedAt(t time.Time) *SenderProfileUpdate

SetUpdatedAt sets the "updated_at" field.

func (*SenderProfileUpdate) SetWebhookURL

func (spu *SenderProfileUpdate) SetWebhookURL(s string) *SenderProfileUpdate

SetWebhookURL sets the "webhook_url" field.

func (*SenderProfileUpdate) Where

Where appends a list predicates to the SenderProfileUpdate builder.

type SenderProfileUpdateOne

type SenderProfileUpdateOne struct {
	// contains filtered or unexported fields
}

SenderProfileUpdateOne is the builder for updating a single SenderProfile entity.

func (*SenderProfileUpdateOne) AddLinkedAddresIDs

func (spuo *SenderProfileUpdateOne) AddLinkedAddresIDs(ids ...int) *SenderProfileUpdateOne

AddLinkedAddresIDs adds the "linked_address" edge to the LinkedAddress entity by IDs.

func (*SenderProfileUpdateOne) AddLinkedAddress

func (spuo *SenderProfileUpdateOne) AddLinkedAddress(l ...*LinkedAddress) *SenderProfileUpdateOne

AddLinkedAddress adds the "linked_address" edges to the LinkedAddress entity.

func (*SenderProfileUpdateOne) AddOrderTokenIDs

func (spuo *SenderProfileUpdateOne) AddOrderTokenIDs(ids ...int) *SenderProfileUpdateOne

AddOrderTokenIDs adds the "order_tokens" edge to the SenderOrderToken entity by IDs.

func (*SenderProfileUpdateOne) AddOrderTokens

func (spuo *SenderProfileUpdateOne) AddOrderTokens(s ...*SenderOrderToken) *SenderProfileUpdateOne

AddOrderTokens adds the "order_tokens" edges to the SenderOrderToken entity.

func (*SenderProfileUpdateOne) AddPaymentOrderIDs

func (spuo *SenderProfileUpdateOne) AddPaymentOrderIDs(ids ...uuid.UUID) *SenderProfileUpdateOne

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*SenderProfileUpdateOne) AddPaymentOrders

func (spuo *SenderProfileUpdateOne) AddPaymentOrders(p ...*PaymentOrder) *SenderProfileUpdateOne

AddPaymentOrders adds the "payment_orders" edges to the PaymentOrder entity.

func (*SenderProfileUpdateOne) AppendDomainWhitelist

func (spuo *SenderProfileUpdateOne) AppendDomainWhitelist(s []string) *SenderProfileUpdateOne

AppendDomainWhitelist appends s to the "domain_whitelist" field.

func (*SenderProfileUpdateOne) ClearAPIKey

func (spuo *SenderProfileUpdateOne) ClearAPIKey() *SenderProfileUpdateOne

ClearAPIKey clears the "api_key" edge to the APIKey entity.

func (*SenderProfileUpdateOne) ClearLinkedAddress

func (spuo *SenderProfileUpdateOne) ClearLinkedAddress() *SenderProfileUpdateOne

ClearLinkedAddress clears all "linked_address" edges to the LinkedAddress entity.

func (*SenderProfileUpdateOne) ClearOrderTokens

func (spuo *SenderProfileUpdateOne) ClearOrderTokens() *SenderProfileUpdateOne

ClearOrderTokens clears all "order_tokens" edges to the SenderOrderToken entity.

func (*SenderProfileUpdateOne) ClearPaymentOrders

func (spuo *SenderProfileUpdateOne) ClearPaymentOrders() *SenderProfileUpdateOne

ClearPaymentOrders clears all "payment_orders" edges to the PaymentOrder entity.

func (*SenderProfileUpdateOne) ClearProviderID

func (spuo *SenderProfileUpdateOne) ClearProviderID() *SenderProfileUpdateOne

ClearProviderID clears the value of the "provider_id" field.

func (*SenderProfileUpdateOne) ClearWebhookURL

func (spuo *SenderProfileUpdateOne) ClearWebhookURL() *SenderProfileUpdateOne

ClearWebhookURL clears the value of the "webhook_url" field.

func (*SenderProfileUpdateOne) Exec

func (spuo *SenderProfileUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*SenderProfileUpdateOne) ExecX

func (spuo *SenderProfileUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SenderProfileUpdateOne) Mutation

Mutation returns the SenderProfileMutation object of the builder.

func (*SenderProfileUpdateOne) RemoveLinkedAddresIDs

func (spuo *SenderProfileUpdateOne) RemoveLinkedAddresIDs(ids ...int) *SenderProfileUpdateOne

RemoveLinkedAddresIDs removes the "linked_address" edge to LinkedAddress entities by IDs.

func (*SenderProfileUpdateOne) RemoveLinkedAddress

func (spuo *SenderProfileUpdateOne) RemoveLinkedAddress(l ...*LinkedAddress) *SenderProfileUpdateOne

RemoveLinkedAddress removes "linked_address" edges to LinkedAddress entities.

func (*SenderProfileUpdateOne) RemoveOrderTokenIDs

func (spuo *SenderProfileUpdateOne) RemoveOrderTokenIDs(ids ...int) *SenderProfileUpdateOne

RemoveOrderTokenIDs removes the "order_tokens" edge to SenderOrderToken entities by IDs.

func (*SenderProfileUpdateOne) RemoveOrderTokens

func (spuo *SenderProfileUpdateOne) RemoveOrderTokens(s ...*SenderOrderToken) *SenderProfileUpdateOne

RemoveOrderTokens removes "order_tokens" edges to SenderOrderToken entities.

func (*SenderProfileUpdateOne) RemovePaymentOrderIDs

func (spuo *SenderProfileUpdateOne) RemovePaymentOrderIDs(ids ...uuid.UUID) *SenderProfileUpdateOne

RemovePaymentOrderIDs removes the "payment_orders" edge to PaymentOrder entities by IDs.

func (*SenderProfileUpdateOne) RemovePaymentOrders

func (spuo *SenderProfileUpdateOne) RemovePaymentOrders(p ...*PaymentOrder) *SenderProfileUpdateOne

RemovePaymentOrders removes "payment_orders" edges to PaymentOrder entities.

func (*SenderProfileUpdateOne) Save

Save executes the query and returns the updated SenderProfile entity.

func (*SenderProfileUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*SenderProfileUpdateOne) Select

func (spuo *SenderProfileUpdateOne) Select(field string, fields ...string) *SenderProfileUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*SenderProfileUpdateOne) SetAPIKey

SetAPIKey sets the "api_key" edge to the APIKey entity.

func (*SenderProfileUpdateOne) SetAPIKeyID

func (spuo *SenderProfileUpdateOne) SetAPIKeyID(id uuid.UUID) *SenderProfileUpdateOne

SetAPIKeyID sets the "api_key" edge to the APIKey entity by ID.

func (*SenderProfileUpdateOne) SetDomainWhitelist

func (spuo *SenderProfileUpdateOne) SetDomainWhitelist(s []string) *SenderProfileUpdateOne

SetDomainWhitelist sets the "domain_whitelist" field.

func (*SenderProfileUpdateOne) SetIsActive

func (spuo *SenderProfileUpdateOne) SetIsActive(b bool) *SenderProfileUpdateOne

SetIsActive sets the "is_active" field.

func (*SenderProfileUpdateOne) SetIsPartner

func (spuo *SenderProfileUpdateOne) SetIsPartner(b bool) *SenderProfileUpdateOne

SetIsPartner sets the "is_partner" field.

func (*SenderProfileUpdateOne) SetNillableAPIKeyID

func (spuo *SenderProfileUpdateOne) SetNillableAPIKeyID(id *uuid.UUID) *SenderProfileUpdateOne

SetNillableAPIKeyID sets the "api_key" edge to the APIKey entity by ID if the given value is not nil.

func (*SenderProfileUpdateOne) SetNillableIsActive

func (spuo *SenderProfileUpdateOne) SetNillableIsActive(b *bool) *SenderProfileUpdateOne

SetNillableIsActive sets the "is_active" field if the given value is not nil.

func (*SenderProfileUpdateOne) SetNillableIsPartner

func (spuo *SenderProfileUpdateOne) SetNillableIsPartner(b *bool) *SenderProfileUpdateOne

SetNillableIsPartner sets the "is_partner" field if the given value is not nil.

func (*SenderProfileUpdateOne) SetNillableProviderID

func (spuo *SenderProfileUpdateOne) SetNillableProviderID(s *string) *SenderProfileUpdateOne

SetNillableProviderID sets the "provider_id" field if the given value is not nil.

func (*SenderProfileUpdateOne) SetNillableWebhookURL

func (spuo *SenderProfileUpdateOne) SetNillableWebhookURL(s *string) *SenderProfileUpdateOne

SetNillableWebhookURL sets the "webhook_url" field if the given value is not nil.

func (*SenderProfileUpdateOne) SetProviderID

func (spuo *SenderProfileUpdateOne) SetProviderID(s string) *SenderProfileUpdateOne

SetProviderID sets the "provider_id" field.

func (*SenderProfileUpdateOne) SetUpdatedAt

func (spuo *SenderProfileUpdateOne) SetUpdatedAt(t time.Time) *SenderProfileUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*SenderProfileUpdateOne) SetWebhookURL

func (spuo *SenderProfileUpdateOne) SetWebhookURL(s string) *SenderProfileUpdateOne

SetWebhookURL sets the "webhook_url" field.

func (*SenderProfileUpdateOne) Where

Where appends a list predicates to the SenderProfileUpdate builder.

type SenderProfileUpsert

type SenderProfileUpsert struct {
	*sql.UpdateSet
}

SenderProfileUpsert is the "OnConflict" setter.

func (*SenderProfileUpsert) ClearProviderID

func (u *SenderProfileUpsert) ClearProviderID() *SenderProfileUpsert

ClearProviderID clears the value of the "provider_id" field.

func (*SenderProfileUpsert) ClearWebhookURL

func (u *SenderProfileUpsert) ClearWebhookURL() *SenderProfileUpsert

ClearWebhookURL clears the value of the "webhook_url" field.

func (*SenderProfileUpsert) SetDomainWhitelist

func (u *SenderProfileUpsert) SetDomainWhitelist(v []string) *SenderProfileUpsert

SetDomainWhitelist sets the "domain_whitelist" field.

func (*SenderProfileUpsert) SetIsActive

func (u *SenderProfileUpsert) SetIsActive(v bool) *SenderProfileUpsert

SetIsActive sets the "is_active" field.

func (*SenderProfileUpsert) SetIsPartner

func (u *SenderProfileUpsert) SetIsPartner(v bool) *SenderProfileUpsert

SetIsPartner sets the "is_partner" field.

func (*SenderProfileUpsert) SetProviderID

func (u *SenderProfileUpsert) SetProviderID(v string) *SenderProfileUpsert

SetProviderID sets the "provider_id" field.

func (*SenderProfileUpsert) SetUpdatedAt

func (u *SenderProfileUpsert) SetUpdatedAt(v time.Time) *SenderProfileUpsert

SetUpdatedAt sets the "updated_at" field.

func (*SenderProfileUpsert) SetWebhookURL

func (u *SenderProfileUpsert) SetWebhookURL(v string) *SenderProfileUpsert

SetWebhookURL sets the "webhook_url" field.

func (*SenderProfileUpsert) UpdateDomainWhitelist

func (u *SenderProfileUpsert) UpdateDomainWhitelist() *SenderProfileUpsert

UpdateDomainWhitelist sets the "domain_whitelist" field to the value that was provided on create.

func (*SenderProfileUpsert) UpdateIsActive

func (u *SenderProfileUpsert) UpdateIsActive() *SenderProfileUpsert

UpdateIsActive sets the "is_active" field to the value that was provided on create.

func (*SenderProfileUpsert) UpdateIsPartner

func (u *SenderProfileUpsert) UpdateIsPartner() *SenderProfileUpsert

UpdateIsPartner sets the "is_partner" field to the value that was provided on create.

func (*SenderProfileUpsert) UpdateProviderID

func (u *SenderProfileUpsert) UpdateProviderID() *SenderProfileUpsert

UpdateProviderID sets the "provider_id" field to the value that was provided on create.

func (*SenderProfileUpsert) UpdateUpdatedAt

func (u *SenderProfileUpsert) UpdateUpdatedAt() *SenderProfileUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*SenderProfileUpsert) UpdateWebhookURL

func (u *SenderProfileUpsert) UpdateWebhookURL() *SenderProfileUpsert

UpdateWebhookURL sets the "webhook_url" field to the value that was provided on create.

type SenderProfileUpsertBulk

type SenderProfileUpsertBulk struct {
	// contains filtered or unexported fields
}

SenderProfileUpsertBulk is the builder for "upsert"-ing a bulk of SenderProfile nodes.

func (*SenderProfileUpsertBulk) ClearProviderID

func (u *SenderProfileUpsertBulk) ClearProviderID() *SenderProfileUpsertBulk

ClearProviderID clears the value of the "provider_id" field.

func (*SenderProfileUpsertBulk) ClearWebhookURL

func (u *SenderProfileUpsertBulk) ClearWebhookURL() *SenderProfileUpsertBulk

ClearWebhookURL clears the value of the "webhook_url" field.

func (*SenderProfileUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*SenderProfileUpsertBulk) Exec

Exec executes the query.

func (*SenderProfileUpsertBulk) ExecX

func (u *SenderProfileUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SenderProfileUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.SenderProfile.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*SenderProfileUpsertBulk) SetDomainWhitelist

func (u *SenderProfileUpsertBulk) SetDomainWhitelist(v []string) *SenderProfileUpsertBulk

SetDomainWhitelist sets the "domain_whitelist" field.

func (*SenderProfileUpsertBulk) SetIsActive

SetIsActive sets the "is_active" field.

func (*SenderProfileUpsertBulk) SetIsPartner

SetIsPartner sets the "is_partner" field.

func (*SenderProfileUpsertBulk) SetProviderID

SetProviderID sets the "provider_id" field.

func (*SenderProfileUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*SenderProfileUpsertBulk) SetWebhookURL

SetWebhookURL sets the "webhook_url" field.

func (*SenderProfileUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the SenderProfileCreateBulk.OnConflict documentation for more info.

func (*SenderProfileUpsertBulk) UpdateDomainWhitelist

func (u *SenderProfileUpsertBulk) UpdateDomainWhitelist() *SenderProfileUpsertBulk

UpdateDomainWhitelist sets the "domain_whitelist" field to the value that was provided on create.

func (*SenderProfileUpsertBulk) UpdateIsActive

func (u *SenderProfileUpsertBulk) UpdateIsActive() *SenderProfileUpsertBulk

UpdateIsActive sets the "is_active" field to the value that was provided on create.

func (*SenderProfileUpsertBulk) UpdateIsPartner

func (u *SenderProfileUpsertBulk) UpdateIsPartner() *SenderProfileUpsertBulk

UpdateIsPartner sets the "is_partner" field to the value that was provided on create.

func (*SenderProfileUpsertBulk) UpdateNewValues

func (u *SenderProfileUpsertBulk) UpdateNewValues() *SenderProfileUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.SenderProfile.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(senderprofile.FieldID)
		}),
	).
	Exec(ctx)

func (*SenderProfileUpsertBulk) UpdateProviderID

func (u *SenderProfileUpsertBulk) UpdateProviderID() *SenderProfileUpsertBulk

UpdateProviderID sets the "provider_id" field to the value that was provided on create.

func (*SenderProfileUpsertBulk) UpdateUpdatedAt

func (u *SenderProfileUpsertBulk) UpdateUpdatedAt() *SenderProfileUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*SenderProfileUpsertBulk) UpdateWebhookURL

func (u *SenderProfileUpsertBulk) UpdateWebhookURL() *SenderProfileUpsertBulk

UpdateWebhookURL sets the "webhook_url" field to the value that was provided on create.

type SenderProfileUpsertOne

type SenderProfileUpsertOne struct {
	// contains filtered or unexported fields
}

SenderProfileUpsertOne is the builder for "upsert"-ing

one SenderProfile node.

func (*SenderProfileUpsertOne) ClearProviderID

func (u *SenderProfileUpsertOne) ClearProviderID() *SenderProfileUpsertOne

ClearProviderID clears the value of the "provider_id" field.

func (*SenderProfileUpsertOne) ClearWebhookURL

func (u *SenderProfileUpsertOne) ClearWebhookURL() *SenderProfileUpsertOne

ClearWebhookURL clears the value of the "webhook_url" field.

func (*SenderProfileUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*SenderProfileUpsertOne) Exec

Exec executes the query.

func (*SenderProfileUpsertOne) ExecX

func (u *SenderProfileUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SenderProfileUpsertOne) ID

func (u *SenderProfileUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*SenderProfileUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*SenderProfileUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.SenderProfile.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*SenderProfileUpsertOne) SetDomainWhitelist

func (u *SenderProfileUpsertOne) SetDomainWhitelist(v []string) *SenderProfileUpsertOne

SetDomainWhitelist sets the "domain_whitelist" field.

func (*SenderProfileUpsertOne) SetIsActive

SetIsActive sets the "is_active" field.

func (*SenderProfileUpsertOne) SetIsPartner

SetIsPartner sets the "is_partner" field.

func (*SenderProfileUpsertOne) SetProviderID

SetProviderID sets the "provider_id" field.

func (*SenderProfileUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*SenderProfileUpsertOne) SetWebhookURL

SetWebhookURL sets the "webhook_url" field.

func (*SenderProfileUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the SenderProfileCreate.OnConflict documentation for more info.

func (*SenderProfileUpsertOne) UpdateDomainWhitelist

func (u *SenderProfileUpsertOne) UpdateDomainWhitelist() *SenderProfileUpsertOne

UpdateDomainWhitelist sets the "domain_whitelist" field to the value that was provided on create.

func (*SenderProfileUpsertOne) UpdateIsActive

func (u *SenderProfileUpsertOne) UpdateIsActive() *SenderProfileUpsertOne

UpdateIsActive sets the "is_active" field to the value that was provided on create.

func (*SenderProfileUpsertOne) UpdateIsPartner

func (u *SenderProfileUpsertOne) UpdateIsPartner() *SenderProfileUpsertOne

UpdateIsPartner sets the "is_partner" field to the value that was provided on create.

func (*SenderProfileUpsertOne) UpdateNewValues

func (u *SenderProfileUpsertOne) UpdateNewValues() *SenderProfileUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.SenderProfile.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(senderprofile.FieldID)
		}),
	).
	Exec(ctx)

func (*SenderProfileUpsertOne) UpdateProviderID

func (u *SenderProfileUpsertOne) UpdateProviderID() *SenderProfileUpsertOne

UpdateProviderID sets the "provider_id" field to the value that was provided on create.

func (*SenderProfileUpsertOne) UpdateUpdatedAt

func (u *SenderProfileUpsertOne) UpdateUpdatedAt() *SenderProfileUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*SenderProfileUpsertOne) UpdateWebhookURL

func (u *SenderProfileUpsertOne) UpdateWebhookURL() *SenderProfileUpsertOne

UpdateWebhookURL sets the "webhook_url" field to the value that was provided on create.

type SenderProfiles

type SenderProfiles []*SenderProfile

SenderProfiles is a parsable slice of SenderProfile.

type Token

type Token struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Symbol holds the value of the "symbol" field.
	Symbol string `json:"symbol,omitempty"`
	// ContractAddress holds the value of the "contract_address" field.
	ContractAddress string `json:"contract_address,omitempty"`
	// Decimals holds the value of the "decimals" field.
	Decimals int8 `json:"decimals,omitempty"`
	// IsEnabled holds the value of the "is_enabled" field.
	IsEnabled bool `json:"is_enabled,omitempty"`
	// BaseCurrency holds the value of the "base_currency" field.
	BaseCurrency string `json:"base_currency,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the TokenQuery when eager-loading is set.
	Edges TokenEdges `json:"edges"`
	// contains filtered or unexported fields
}

Token is the model entity for the Token schema.

func (*Token) QueryLockPaymentOrders

func (t *Token) QueryLockPaymentOrders() *LockPaymentOrderQuery

QueryLockPaymentOrders queries the "lock_payment_orders" edge of the Token entity.

func (*Token) QueryNetwork

func (t *Token) QueryNetwork() *NetworkQuery

QueryNetwork queries the "network" edge of the Token entity.

func (*Token) QueryPaymentOrders

func (t *Token) QueryPaymentOrders() *PaymentOrderQuery

QueryPaymentOrders queries the "payment_orders" edge of the Token entity.

func (*Token) QueryProviderOrderTokens

func (t *Token) QueryProviderOrderTokens() *ProviderOrderTokenQuery

QueryProviderOrderTokens queries the "provider_order_tokens" edge of the Token entity.

func (*Token) QuerySenderOrderTokens

func (t *Token) QuerySenderOrderTokens() *SenderOrderTokenQuery

QuerySenderOrderTokens queries the "sender_order_tokens" edge of the Token entity.

func (*Token) String

func (t *Token) String() string

String implements the fmt.Stringer.

func (*Token) Unwrap

func (t *Token) Unwrap() *Token

Unwrap unwraps the Token entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Token) Update

func (t *Token) Update() *TokenUpdateOne

Update returns a builder for updating this Token. Note that you need to call Token.Unwrap() before calling this method if this Token was returned from a transaction, and the transaction was committed or rolled back.

func (*Token) Value

func (t *Token) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Token. This includes values selected through modifiers, order, etc.

type TokenClient

type TokenClient struct {
	// contains filtered or unexported fields
}

TokenClient is a client for the Token schema.

func NewTokenClient

func NewTokenClient(c config) *TokenClient

NewTokenClient returns a client for the Token from the given config.

func (*TokenClient) Create

func (c *TokenClient) Create() *TokenCreate

Create returns a builder for creating a Token entity.

func (*TokenClient) CreateBulk

func (c *TokenClient) CreateBulk(builders ...*TokenCreate) *TokenCreateBulk

CreateBulk returns a builder for creating a bulk of Token entities.

func (*TokenClient) Delete

func (c *TokenClient) Delete() *TokenDelete

Delete returns a delete builder for Token.

func (*TokenClient) DeleteOne

func (c *TokenClient) DeleteOne(t *Token) *TokenDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*TokenClient) DeleteOneID

func (c *TokenClient) DeleteOneID(id int) *TokenDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*TokenClient) Get

func (c *TokenClient) Get(ctx context.Context, id int) (*Token, error)

Get returns a Token entity by its id.

func (*TokenClient) GetX

func (c *TokenClient) GetX(ctx context.Context, id int) *Token

GetX is like Get, but panics if an error occurs.

func (*TokenClient) Hooks

func (c *TokenClient) Hooks() []Hook

Hooks returns the client hooks.

func (*TokenClient) Intercept

func (c *TokenClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `token.Intercept(f(g(h())))`.

func (*TokenClient) Interceptors

func (c *TokenClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*TokenClient) MapCreateBulk

func (c *TokenClient) MapCreateBulk(slice any, setFunc func(*TokenCreate, int)) *TokenCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*TokenClient) Query

func (c *TokenClient) Query() *TokenQuery

Query returns a query builder for Token.

func (*TokenClient) QueryLockPaymentOrders

func (c *TokenClient) QueryLockPaymentOrders(t *Token) *LockPaymentOrderQuery

QueryLockPaymentOrders queries the lock_payment_orders edge of a Token.

func (*TokenClient) QueryNetwork

func (c *TokenClient) QueryNetwork(t *Token) *NetworkQuery

QueryNetwork queries the network edge of a Token.

func (*TokenClient) QueryPaymentOrders

func (c *TokenClient) QueryPaymentOrders(t *Token) *PaymentOrderQuery

QueryPaymentOrders queries the payment_orders edge of a Token.

func (*TokenClient) QueryProviderOrderTokens

func (c *TokenClient) QueryProviderOrderTokens(t *Token) *ProviderOrderTokenQuery

QueryProviderOrderTokens queries the provider_order_tokens edge of a Token.

func (*TokenClient) QuerySenderOrderTokens

func (c *TokenClient) QuerySenderOrderTokens(t *Token) *SenderOrderTokenQuery

QuerySenderOrderTokens queries the sender_order_tokens edge of a Token.

func (*TokenClient) Update

func (c *TokenClient) Update() *TokenUpdate

Update returns an update builder for Token.

func (*TokenClient) UpdateOne

func (c *TokenClient) UpdateOne(t *Token) *TokenUpdateOne

UpdateOne returns an update builder for the given entity.

func (*TokenClient) UpdateOneID

func (c *TokenClient) UpdateOneID(id int) *TokenUpdateOne

UpdateOneID returns an update builder for the given id.

func (*TokenClient) Use

func (c *TokenClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `token.Hooks(f(g(h())))`.

type TokenCreate

type TokenCreate struct {
	// contains filtered or unexported fields
}

TokenCreate is the builder for creating a Token entity.

func (*TokenCreate) AddLockPaymentOrderIDs

func (tc *TokenCreate) AddLockPaymentOrderIDs(ids ...uuid.UUID) *TokenCreate

AddLockPaymentOrderIDs adds the "lock_payment_orders" edge to the LockPaymentOrder entity by IDs.

func (*TokenCreate) AddLockPaymentOrders

func (tc *TokenCreate) AddLockPaymentOrders(l ...*LockPaymentOrder) *TokenCreate

AddLockPaymentOrders adds the "lock_payment_orders" edges to the LockPaymentOrder entity.

func (*TokenCreate) AddPaymentOrderIDs

func (tc *TokenCreate) AddPaymentOrderIDs(ids ...uuid.UUID) *TokenCreate

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*TokenCreate) AddPaymentOrders

func (tc *TokenCreate) AddPaymentOrders(p ...*PaymentOrder) *TokenCreate

AddPaymentOrders adds the "payment_orders" edges to the PaymentOrder entity.

func (*TokenCreate) AddProviderOrderTokenIDs

func (tc *TokenCreate) AddProviderOrderTokenIDs(ids ...int) *TokenCreate

AddProviderOrderTokenIDs adds the "provider_order_tokens" edge to the ProviderOrderToken entity by IDs.

func (*TokenCreate) AddProviderOrderTokens

func (tc *TokenCreate) AddProviderOrderTokens(p ...*ProviderOrderToken) *TokenCreate

AddProviderOrderTokens adds the "provider_order_tokens" edges to the ProviderOrderToken entity.

func (*TokenCreate) AddSenderOrderTokenIDs

func (tc *TokenCreate) AddSenderOrderTokenIDs(ids ...int) *TokenCreate

AddSenderOrderTokenIDs adds the "sender_order_tokens" edge to the SenderOrderToken entity by IDs.

func (*TokenCreate) AddSenderOrderTokens

func (tc *TokenCreate) AddSenderOrderTokens(s ...*SenderOrderToken) *TokenCreate

AddSenderOrderTokens adds the "sender_order_tokens" edges to the SenderOrderToken entity.

func (*TokenCreate) Exec

func (tc *TokenCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*TokenCreate) ExecX

func (tc *TokenCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TokenCreate) Mutation

func (tc *TokenCreate) Mutation() *TokenMutation

Mutation returns the TokenMutation object of the builder.

func (*TokenCreate) OnConflict

func (tc *TokenCreate) OnConflict(opts ...sql.ConflictOption) *TokenUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Token.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.TokenUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*TokenCreate) OnConflictColumns

func (tc *TokenCreate) OnConflictColumns(columns ...string) *TokenUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Token.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*TokenCreate) Save

func (tc *TokenCreate) Save(ctx context.Context) (*Token, error)

Save creates the Token in the database.

func (*TokenCreate) SaveX

func (tc *TokenCreate) SaveX(ctx context.Context) *Token

SaveX calls Save and panics if Save returns an error.

func (*TokenCreate) SetBaseCurrency

func (tc *TokenCreate) SetBaseCurrency(s string) *TokenCreate

SetBaseCurrency sets the "base_currency" field.

func (*TokenCreate) SetContractAddress

func (tc *TokenCreate) SetContractAddress(s string) *TokenCreate

SetContractAddress sets the "contract_address" field.

func (*TokenCreate) SetCreatedAt

func (tc *TokenCreate) SetCreatedAt(t time.Time) *TokenCreate

SetCreatedAt sets the "created_at" field.

func (*TokenCreate) SetDecimals

func (tc *TokenCreate) SetDecimals(i int8) *TokenCreate

SetDecimals sets the "decimals" field.

func (*TokenCreate) SetIsEnabled

func (tc *TokenCreate) SetIsEnabled(b bool) *TokenCreate

SetIsEnabled sets the "is_enabled" field.

func (*TokenCreate) SetNetwork

func (tc *TokenCreate) SetNetwork(n *Network) *TokenCreate

SetNetwork sets the "network" edge to the Network entity.

func (*TokenCreate) SetNetworkID

func (tc *TokenCreate) SetNetworkID(id int) *TokenCreate

SetNetworkID sets the "network" edge to the Network entity by ID.

func (*TokenCreate) SetNillableBaseCurrency

func (tc *TokenCreate) SetNillableBaseCurrency(s *string) *TokenCreate

SetNillableBaseCurrency sets the "base_currency" field if the given value is not nil.

func (*TokenCreate) SetNillableCreatedAt

func (tc *TokenCreate) SetNillableCreatedAt(t *time.Time) *TokenCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*TokenCreate) SetNillableIsEnabled

func (tc *TokenCreate) SetNillableIsEnabled(b *bool) *TokenCreate

SetNillableIsEnabled sets the "is_enabled" field if the given value is not nil.

func (*TokenCreate) SetNillableUpdatedAt

func (tc *TokenCreate) SetNillableUpdatedAt(t *time.Time) *TokenCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*TokenCreate) SetSymbol

func (tc *TokenCreate) SetSymbol(s string) *TokenCreate

SetSymbol sets the "symbol" field.

func (*TokenCreate) SetUpdatedAt

func (tc *TokenCreate) SetUpdatedAt(t time.Time) *TokenCreate

SetUpdatedAt sets the "updated_at" field.

type TokenCreateBulk

type TokenCreateBulk struct {
	// contains filtered or unexported fields
}

TokenCreateBulk is the builder for creating many Token entities in bulk.

func (*TokenCreateBulk) Exec

func (tcb *TokenCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*TokenCreateBulk) ExecX

func (tcb *TokenCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TokenCreateBulk) OnConflict

func (tcb *TokenCreateBulk) OnConflict(opts ...sql.ConflictOption) *TokenUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Token.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.TokenUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*TokenCreateBulk) OnConflictColumns

func (tcb *TokenCreateBulk) OnConflictColumns(columns ...string) *TokenUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Token.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*TokenCreateBulk) Save

func (tcb *TokenCreateBulk) Save(ctx context.Context) ([]*Token, error)

Save creates the Token entities in the database.

func (*TokenCreateBulk) SaveX

func (tcb *TokenCreateBulk) SaveX(ctx context.Context) []*Token

SaveX is like Save, but panics if an error occurs.

type TokenDelete

type TokenDelete struct {
	// contains filtered or unexported fields
}

TokenDelete is the builder for deleting a Token entity.

func (*TokenDelete) Exec

func (td *TokenDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*TokenDelete) ExecX

func (td *TokenDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*TokenDelete) Where

func (td *TokenDelete) Where(ps ...predicate.Token) *TokenDelete

Where appends a list predicates to the TokenDelete builder.

type TokenDeleteOne

type TokenDeleteOne struct {
	// contains filtered or unexported fields
}

TokenDeleteOne is the builder for deleting a single Token entity.

func (*TokenDeleteOne) Exec

func (tdo *TokenDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*TokenDeleteOne) ExecX

func (tdo *TokenDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TokenDeleteOne) Where

func (tdo *TokenDeleteOne) Where(ps ...predicate.Token) *TokenDeleteOne

Where appends a list predicates to the TokenDelete builder.

type TokenEdges

type TokenEdges struct {
	// Network holds the value of the network edge.
	Network *Network `json:"network,omitempty"`
	// PaymentOrders holds the value of the payment_orders edge.
	PaymentOrders []*PaymentOrder `json:"payment_orders,omitempty"`
	// LockPaymentOrders holds the value of the lock_payment_orders edge.
	LockPaymentOrders []*LockPaymentOrder `json:"lock_payment_orders,omitempty"`
	// SenderOrderTokens holds the value of the sender_order_tokens edge.
	SenderOrderTokens []*SenderOrderToken `json:"sender_order_tokens,omitempty"`
	// ProviderOrderTokens holds the value of the provider_order_tokens edge.
	ProviderOrderTokens []*ProviderOrderToken `json:"provider_order_tokens,omitempty"`
	// contains filtered or unexported fields
}

TokenEdges holds the relations/edges for other nodes in the graph.

func (TokenEdges) LockPaymentOrdersOrErr

func (e TokenEdges) LockPaymentOrdersOrErr() ([]*LockPaymentOrder, error)

LockPaymentOrdersOrErr returns the LockPaymentOrders value or an error if the edge was not loaded in eager-loading.

func (TokenEdges) NetworkOrErr

func (e TokenEdges) NetworkOrErr() (*Network, error)

NetworkOrErr returns the Network value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (TokenEdges) PaymentOrdersOrErr

func (e TokenEdges) PaymentOrdersOrErr() ([]*PaymentOrder, error)

PaymentOrdersOrErr returns the PaymentOrders value or an error if the edge was not loaded in eager-loading.

func (TokenEdges) ProviderOrderTokensOrErr

func (e TokenEdges) ProviderOrderTokensOrErr() ([]*ProviderOrderToken, error)

ProviderOrderTokensOrErr returns the ProviderOrderTokens value or an error if the edge was not loaded in eager-loading.

func (TokenEdges) SenderOrderTokensOrErr

func (e TokenEdges) SenderOrderTokensOrErr() ([]*SenderOrderToken, error)

SenderOrderTokensOrErr returns the SenderOrderTokens value or an error if the edge was not loaded in eager-loading.

type TokenGroupBy

type TokenGroupBy struct {
	// contains filtered or unexported fields
}

TokenGroupBy is the group-by builder for Token entities.

func (*TokenGroupBy) Aggregate

func (tgb *TokenGroupBy) Aggregate(fns ...AggregateFunc) *TokenGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*TokenGroupBy) Bool

func (s *TokenGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TokenGroupBy) BoolX

func (s *TokenGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TokenGroupBy) Bools

func (s *TokenGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TokenGroupBy) BoolsX

func (s *TokenGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TokenGroupBy) Float64

func (s *TokenGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TokenGroupBy) Float64X

func (s *TokenGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TokenGroupBy) Float64s

func (s *TokenGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TokenGroupBy) Float64sX

func (s *TokenGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TokenGroupBy) Int

func (s *TokenGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TokenGroupBy) IntX

func (s *TokenGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TokenGroupBy) Ints

func (s *TokenGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TokenGroupBy) IntsX

func (s *TokenGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TokenGroupBy) Scan

func (tgb *TokenGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*TokenGroupBy) ScanX

func (s *TokenGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*TokenGroupBy) String

func (s *TokenGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TokenGroupBy) StringX

func (s *TokenGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TokenGroupBy) Strings

func (s *TokenGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TokenGroupBy) StringsX

func (s *TokenGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TokenMutation

type TokenMutation struct {
	// contains filtered or unexported fields
}

TokenMutation represents an operation that mutates the Token nodes in the graph.

func (*TokenMutation) AddDecimals

func (m *TokenMutation) AddDecimals(i int8)

AddDecimals adds i to the "decimals" field.

func (*TokenMutation) AddField

func (m *TokenMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TokenMutation) AddLockPaymentOrderIDs

func (m *TokenMutation) AddLockPaymentOrderIDs(ids ...uuid.UUID)

AddLockPaymentOrderIDs adds the "lock_payment_orders" edge to the LockPaymentOrder entity by ids.

func (*TokenMutation) AddPaymentOrderIDs

func (m *TokenMutation) AddPaymentOrderIDs(ids ...uuid.UUID)

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by ids.

func (*TokenMutation) AddProviderOrderTokenIDs

func (m *TokenMutation) AddProviderOrderTokenIDs(ids ...int)

AddProviderOrderTokenIDs adds the "provider_order_tokens" edge to the ProviderOrderToken entity by ids.

func (*TokenMutation) AddSenderOrderTokenIDs

func (m *TokenMutation) AddSenderOrderTokenIDs(ids ...int)

AddSenderOrderTokenIDs adds the "sender_order_tokens" edge to the SenderOrderToken entity by ids.

func (*TokenMutation) AddedDecimals

func (m *TokenMutation) AddedDecimals() (r int8, exists bool)

AddedDecimals returns the value that was added to the "decimals" field in this mutation.

func (*TokenMutation) AddedEdges

func (m *TokenMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*TokenMutation) AddedField

func (m *TokenMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TokenMutation) AddedFields

func (m *TokenMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*TokenMutation) AddedIDs

func (m *TokenMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*TokenMutation) BaseCurrency

func (m *TokenMutation) BaseCurrency() (r string, exists bool)

BaseCurrency returns the value of the "base_currency" field in the mutation.

func (*TokenMutation) ClearEdge

func (m *TokenMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*TokenMutation) ClearField

func (m *TokenMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*TokenMutation) ClearLockPaymentOrders

func (m *TokenMutation) ClearLockPaymentOrders()

ClearLockPaymentOrders clears the "lock_payment_orders" edge to the LockPaymentOrder entity.

func (*TokenMutation) ClearNetwork

func (m *TokenMutation) ClearNetwork()

ClearNetwork clears the "network" edge to the Network entity.

func (*TokenMutation) ClearPaymentOrders

func (m *TokenMutation) ClearPaymentOrders()

ClearPaymentOrders clears the "payment_orders" edge to the PaymentOrder entity.

func (*TokenMutation) ClearProviderOrderTokens

func (m *TokenMutation) ClearProviderOrderTokens()

ClearProviderOrderTokens clears the "provider_order_tokens" edge to the ProviderOrderToken entity.

func (*TokenMutation) ClearSenderOrderTokens

func (m *TokenMutation) ClearSenderOrderTokens()

ClearSenderOrderTokens clears the "sender_order_tokens" edge to the SenderOrderToken entity.

func (*TokenMutation) ClearedEdges

func (m *TokenMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*TokenMutation) ClearedFields

func (m *TokenMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (TokenMutation) Client

func (m TokenMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*TokenMutation) ContractAddress

func (m *TokenMutation) ContractAddress() (r string, exists bool)

ContractAddress returns the value of the "contract_address" field in the mutation.

func (*TokenMutation) CreatedAt

func (m *TokenMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*TokenMutation) Decimals

func (m *TokenMutation) Decimals() (r int8, exists bool)

Decimals returns the value of the "decimals" field in the mutation.

func (*TokenMutation) EdgeCleared

func (m *TokenMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*TokenMutation) Field

func (m *TokenMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TokenMutation) FieldCleared

func (m *TokenMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*TokenMutation) Fields

func (m *TokenMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*TokenMutation) ID

func (m *TokenMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*TokenMutation) IDs

func (m *TokenMutation) IDs(ctx context.Context) ([]int, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*TokenMutation) IsEnabled

func (m *TokenMutation) IsEnabled() (r bool, exists bool)

IsEnabled returns the value of the "is_enabled" field in the mutation.

func (*TokenMutation) LockPaymentOrdersCleared

func (m *TokenMutation) LockPaymentOrdersCleared() bool

LockPaymentOrdersCleared reports if the "lock_payment_orders" edge to the LockPaymentOrder entity was cleared.

func (*TokenMutation) LockPaymentOrdersIDs

func (m *TokenMutation) LockPaymentOrdersIDs() (ids []uuid.UUID)

LockPaymentOrdersIDs returns the "lock_payment_orders" edge IDs in the mutation.

func (*TokenMutation) NetworkCleared

func (m *TokenMutation) NetworkCleared() bool

NetworkCleared reports if the "network" edge to the Network entity was cleared.

func (*TokenMutation) NetworkID

func (m *TokenMutation) NetworkID() (id int, exists bool)

NetworkID returns the "network" edge ID in the mutation.

func (*TokenMutation) NetworkIDs

func (m *TokenMutation) NetworkIDs() (ids []int)

NetworkIDs returns the "network" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use NetworkID instead. It exists only for internal usage by the builders.

func (*TokenMutation) OldBaseCurrency

func (m *TokenMutation) OldBaseCurrency(ctx context.Context) (v string, err error)

OldBaseCurrency returns the old "base_currency" field's value of the Token entity. If the Token object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TokenMutation) OldContractAddress

func (m *TokenMutation) OldContractAddress(ctx context.Context) (v string, err error)

OldContractAddress returns the old "contract_address" field's value of the Token entity. If the Token object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TokenMutation) OldCreatedAt

func (m *TokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Token entity. If the Token object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TokenMutation) OldDecimals

func (m *TokenMutation) OldDecimals(ctx context.Context) (v int8, err error)

OldDecimals returns the old "decimals" field's value of the Token entity. If the Token object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TokenMutation) OldField

func (m *TokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*TokenMutation) OldIsEnabled

func (m *TokenMutation) OldIsEnabled(ctx context.Context) (v bool, err error)

OldIsEnabled returns the old "is_enabled" field's value of the Token entity. If the Token object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TokenMutation) OldSymbol

func (m *TokenMutation) OldSymbol(ctx context.Context) (v string, err error)

OldSymbol returns the old "symbol" field's value of the Token entity. If the Token object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TokenMutation) OldUpdatedAt

func (m *TokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Token entity. If the Token object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TokenMutation) Op

func (m *TokenMutation) Op() Op

Op returns the operation name.

func (*TokenMutation) PaymentOrdersCleared

func (m *TokenMutation) PaymentOrdersCleared() bool

PaymentOrdersCleared reports if the "payment_orders" edge to the PaymentOrder entity was cleared.

func (*TokenMutation) PaymentOrdersIDs

func (m *TokenMutation) PaymentOrdersIDs() (ids []uuid.UUID)

PaymentOrdersIDs returns the "payment_orders" edge IDs in the mutation.

func (*TokenMutation) ProviderOrderTokensCleared

func (m *TokenMutation) ProviderOrderTokensCleared() bool

ProviderOrderTokensCleared reports if the "provider_order_tokens" edge to the ProviderOrderToken entity was cleared.

func (*TokenMutation) ProviderOrderTokensIDs

func (m *TokenMutation) ProviderOrderTokensIDs() (ids []int)

ProviderOrderTokensIDs returns the "provider_order_tokens" edge IDs in the mutation.

func (*TokenMutation) RemoveLockPaymentOrderIDs

func (m *TokenMutation) RemoveLockPaymentOrderIDs(ids ...uuid.UUID)

RemoveLockPaymentOrderIDs removes the "lock_payment_orders" edge to the LockPaymentOrder entity by IDs.

func (*TokenMutation) RemovePaymentOrderIDs

func (m *TokenMutation) RemovePaymentOrderIDs(ids ...uuid.UUID)

RemovePaymentOrderIDs removes the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*TokenMutation) RemoveProviderOrderTokenIDs

func (m *TokenMutation) RemoveProviderOrderTokenIDs(ids ...int)

RemoveProviderOrderTokenIDs removes the "provider_order_tokens" edge to the ProviderOrderToken entity by IDs.

func (*TokenMutation) RemoveSenderOrderTokenIDs

func (m *TokenMutation) RemoveSenderOrderTokenIDs(ids ...int)

RemoveSenderOrderTokenIDs removes the "sender_order_tokens" edge to the SenderOrderToken entity by IDs.

func (*TokenMutation) RemovedEdges

func (m *TokenMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*TokenMutation) RemovedIDs

func (m *TokenMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*TokenMutation) RemovedLockPaymentOrdersIDs

func (m *TokenMutation) RemovedLockPaymentOrdersIDs() (ids []uuid.UUID)

RemovedLockPaymentOrders returns the removed IDs of the "lock_payment_orders" edge to the LockPaymentOrder entity.

func (*TokenMutation) RemovedPaymentOrdersIDs

func (m *TokenMutation) RemovedPaymentOrdersIDs() (ids []uuid.UUID)

RemovedPaymentOrders returns the removed IDs of the "payment_orders" edge to the PaymentOrder entity.

func (*TokenMutation) RemovedProviderOrderTokensIDs

func (m *TokenMutation) RemovedProviderOrderTokensIDs() (ids []int)

RemovedProviderOrderTokens returns the removed IDs of the "provider_order_tokens" edge to the ProviderOrderToken entity.

func (*TokenMutation) RemovedSenderOrderTokensIDs

func (m *TokenMutation) RemovedSenderOrderTokensIDs() (ids []int)

RemovedSenderOrderTokens returns the removed IDs of the "sender_order_tokens" edge to the SenderOrderToken entity.

func (*TokenMutation) ResetBaseCurrency

func (m *TokenMutation) ResetBaseCurrency()

ResetBaseCurrency resets all changes to the "base_currency" field.

func (*TokenMutation) ResetContractAddress

func (m *TokenMutation) ResetContractAddress()

ResetContractAddress resets all changes to the "contract_address" field.

func (*TokenMutation) ResetCreatedAt

func (m *TokenMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*TokenMutation) ResetDecimals

func (m *TokenMutation) ResetDecimals()

ResetDecimals resets all changes to the "decimals" field.

func (*TokenMutation) ResetEdge

func (m *TokenMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*TokenMutation) ResetField

func (m *TokenMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*TokenMutation) ResetIsEnabled

func (m *TokenMutation) ResetIsEnabled()

ResetIsEnabled resets all changes to the "is_enabled" field.

func (*TokenMutation) ResetLockPaymentOrders

func (m *TokenMutation) ResetLockPaymentOrders()

ResetLockPaymentOrders resets all changes to the "lock_payment_orders" edge.

func (*TokenMutation) ResetNetwork

func (m *TokenMutation) ResetNetwork()

ResetNetwork resets all changes to the "network" edge.

func (*TokenMutation) ResetPaymentOrders

func (m *TokenMutation) ResetPaymentOrders()

ResetPaymentOrders resets all changes to the "payment_orders" edge.

func (*TokenMutation) ResetProviderOrderTokens

func (m *TokenMutation) ResetProviderOrderTokens()

ResetProviderOrderTokens resets all changes to the "provider_order_tokens" edge.

func (*TokenMutation) ResetSenderOrderTokens

func (m *TokenMutation) ResetSenderOrderTokens()

ResetSenderOrderTokens resets all changes to the "sender_order_tokens" edge.

func (*TokenMutation) ResetSymbol

func (m *TokenMutation) ResetSymbol()

ResetSymbol resets all changes to the "symbol" field.

func (*TokenMutation) ResetUpdatedAt

func (m *TokenMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*TokenMutation) SenderOrderTokensCleared

func (m *TokenMutation) SenderOrderTokensCleared() bool

SenderOrderTokensCleared reports if the "sender_order_tokens" edge to the SenderOrderToken entity was cleared.

func (*TokenMutation) SenderOrderTokensIDs

func (m *TokenMutation) SenderOrderTokensIDs() (ids []int)

SenderOrderTokensIDs returns the "sender_order_tokens" edge IDs in the mutation.

func (*TokenMutation) SetBaseCurrency

func (m *TokenMutation) SetBaseCurrency(s string)

SetBaseCurrency sets the "base_currency" field.

func (*TokenMutation) SetContractAddress

func (m *TokenMutation) SetContractAddress(s string)

SetContractAddress sets the "contract_address" field.

func (*TokenMutation) SetCreatedAt

func (m *TokenMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*TokenMutation) SetDecimals

func (m *TokenMutation) SetDecimals(i int8)

SetDecimals sets the "decimals" field.

func (*TokenMutation) SetField

func (m *TokenMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TokenMutation) SetIsEnabled

func (m *TokenMutation) SetIsEnabled(b bool)

SetIsEnabled sets the "is_enabled" field.

func (*TokenMutation) SetNetworkID

func (m *TokenMutation) SetNetworkID(id int)

SetNetworkID sets the "network" edge to the Network entity by id.

func (*TokenMutation) SetOp

func (m *TokenMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*TokenMutation) SetSymbol

func (m *TokenMutation) SetSymbol(s string)

SetSymbol sets the "symbol" field.

func (*TokenMutation) SetUpdatedAt

func (m *TokenMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*TokenMutation) Symbol

func (m *TokenMutation) Symbol() (r string, exists bool)

Symbol returns the value of the "symbol" field in the mutation.

func (TokenMutation) Tx

func (m TokenMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*TokenMutation) Type

func (m *TokenMutation) Type() string

Type returns the node type of this mutation (Token).

func (*TokenMutation) UpdatedAt

func (m *TokenMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*TokenMutation) Where

func (m *TokenMutation) Where(ps ...predicate.Token)

Where appends a list predicates to the TokenMutation builder.

func (*TokenMutation) WhereP

func (m *TokenMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the TokenMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type TokenQuery

type TokenQuery struct {
	// contains filtered or unexported fields
}

TokenQuery is the builder for querying Token entities.

func (*TokenQuery) Aggregate

func (tq *TokenQuery) Aggregate(fns ...AggregateFunc) *TokenSelect

Aggregate returns a TokenSelect configured with the given aggregations.

func (*TokenQuery) All

func (tq *TokenQuery) All(ctx context.Context) ([]*Token, error)

All executes the query and returns a list of Tokens.

func (*TokenQuery) AllX

func (tq *TokenQuery) AllX(ctx context.Context) []*Token

AllX is like All, but panics if an error occurs.

func (*TokenQuery) Clone

func (tq *TokenQuery) Clone() *TokenQuery

Clone returns a duplicate of the TokenQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*TokenQuery) Count

func (tq *TokenQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*TokenQuery) CountX

func (tq *TokenQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*TokenQuery) Exist

func (tq *TokenQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*TokenQuery) ExistX

func (tq *TokenQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*TokenQuery) First

func (tq *TokenQuery) First(ctx context.Context) (*Token, error)

First returns the first Token entity from the query. Returns a *NotFoundError when no Token was found.

func (*TokenQuery) FirstID

func (tq *TokenQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Token ID from the query. Returns a *NotFoundError when no Token ID was found.

func (*TokenQuery) FirstIDX

func (tq *TokenQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*TokenQuery) FirstX

func (tq *TokenQuery) FirstX(ctx context.Context) *Token

FirstX is like First, but panics if an error occurs.

func (*TokenQuery) GroupBy

func (tq *TokenQuery) GroupBy(field string, fields ...string) *TokenGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Token.Query().
	GroupBy(token.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*TokenQuery) IDs

func (tq *TokenQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Token IDs.

func (*TokenQuery) IDsX

func (tq *TokenQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*TokenQuery) Limit

func (tq *TokenQuery) Limit(limit int) *TokenQuery

Limit the number of records to be returned by this query.

func (*TokenQuery) Offset

func (tq *TokenQuery) Offset(offset int) *TokenQuery

Offset to start from.

func (*TokenQuery) Only

func (tq *TokenQuery) Only(ctx context.Context) (*Token, error)

Only returns a single Token entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Token entity is found. Returns a *NotFoundError when no Token entities are found.

func (*TokenQuery) OnlyID

func (tq *TokenQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Token ID in the query. Returns a *NotSingularError when more than one Token ID is found. Returns a *NotFoundError when no entities are found.

func (*TokenQuery) OnlyIDX

func (tq *TokenQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*TokenQuery) OnlyX

func (tq *TokenQuery) OnlyX(ctx context.Context) *Token

OnlyX is like Only, but panics if an error occurs.

func (*TokenQuery) Order

func (tq *TokenQuery) Order(o ...token.OrderOption) *TokenQuery

Order specifies how the records should be ordered.

func (*TokenQuery) QueryLockPaymentOrders

func (tq *TokenQuery) QueryLockPaymentOrders() *LockPaymentOrderQuery

QueryLockPaymentOrders chains the current query on the "lock_payment_orders" edge.

func (*TokenQuery) QueryNetwork

func (tq *TokenQuery) QueryNetwork() *NetworkQuery

QueryNetwork chains the current query on the "network" edge.

func (*TokenQuery) QueryPaymentOrders

func (tq *TokenQuery) QueryPaymentOrders() *PaymentOrderQuery

QueryPaymentOrders chains the current query on the "payment_orders" edge.

func (*TokenQuery) QueryProviderOrderTokens

func (tq *TokenQuery) QueryProviderOrderTokens() *ProviderOrderTokenQuery

QueryProviderOrderTokens chains the current query on the "provider_order_tokens" edge.

func (*TokenQuery) QuerySenderOrderTokens

func (tq *TokenQuery) QuerySenderOrderTokens() *SenderOrderTokenQuery

QuerySenderOrderTokens chains the current query on the "sender_order_tokens" edge.

func (*TokenQuery) Select

func (tq *TokenQuery) Select(fields ...string) *TokenSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.Token.Query().
	Select(token.FieldCreatedAt).
	Scan(ctx, &v)

func (*TokenQuery) Unique

func (tq *TokenQuery) Unique(unique bool) *TokenQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*TokenQuery) Where

func (tq *TokenQuery) Where(ps ...predicate.Token) *TokenQuery

Where adds a new predicate for the TokenQuery builder.

func (*TokenQuery) WithLockPaymentOrders

func (tq *TokenQuery) WithLockPaymentOrders(opts ...func(*LockPaymentOrderQuery)) *TokenQuery

WithLockPaymentOrders tells the query-builder to eager-load the nodes that are connected to the "lock_payment_orders" edge. The optional arguments are used to configure the query builder of the edge.

func (*TokenQuery) WithNetwork

func (tq *TokenQuery) WithNetwork(opts ...func(*NetworkQuery)) *TokenQuery

WithNetwork tells the query-builder to eager-load the nodes that are connected to the "network" edge. The optional arguments are used to configure the query builder of the edge.

func (*TokenQuery) WithPaymentOrders

func (tq *TokenQuery) WithPaymentOrders(opts ...func(*PaymentOrderQuery)) *TokenQuery

WithPaymentOrders tells the query-builder to eager-load the nodes that are connected to the "payment_orders" edge. The optional arguments are used to configure the query builder of the edge.

func (*TokenQuery) WithProviderOrderTokens

func (tq *TokenQuery) WithProviderOrderTokens(opts ...func(*ProviderOrderTokenQuery)) *TokenQuery

WithProviderOrderTokens tells the query-builder to eager-load the nodes that are connected to the "provider_order_tokens" edge. The optional arguments are used to configure the query builder of the edge.

func (*TokenQuery) WithSenderOrderTokens

func (tq *TokenQuery) WithSenderOrderTokens(opts ...func(*SenderOrderTokenQuery)) *TokenQuery

WithSenderOrderTokens tells the query-builder to eager-load the nodes that are connected to the "sender_order_tokens" edge. The optional arguments are used to configure the query builder of the edge.

type TokenSelect

type TokenSelect struct {
	*TokenQuery
	// contains filtered or unexported fields
}

TokenSelect is the builder for selecting fields of Token entities.

func (*TokenSelect) Aggregate

func (ts *TokenSelect) Aggregate(fns ...AggregateFunc) *TokenSelect

Aggregate adds the given aggregation functions to the selector query.

func (*TokenSelect) Bool

func (s *TokenSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TokenSelect) BoolX

func (s *TokenSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TokenSelect) Bools

func (s *TokenSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TokenSelect) BoolsX

func (s *TokenSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TokenSelect) Float64

func (s *TokenSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TokenSelect) Float64X

func (s *TokenSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TokenSelect) Float64s

func (s *TokenSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TokenSelect) Float64sX

func (s *TokenSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TokenSelect) Int

func (s *TokenSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TokenSelect) IntX

func (s *TokenSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TokenSelect) Ints

func (s *TokenSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TokenSelect) IntsX

func (s *TokenSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TokenSelect) Scan

func (ts *TokenSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*TokenSelect) ScanX

func (s *TokenSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*TokenSelect) String

func (s *TokenSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TokenSelect) StringX

func (s *TokenSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TokenSelect) Strings

func (s *TokenSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TokenSelect) StringsX

func (s *TokenSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TokenUpdate

type TokenUpdate struct {
	// contains filtered or unexported fields
}

TokenUpdate is the builder for updating Token entities.

func (*TokenUpdate) AddDecimals

func (tu *TokenUpdate) AddDecimals(i int8) *TokenUpdate

AddDecimals adds i to the "decimals" field.

func (*TokenUpdate) AddLockPaymentOrderIDs

func (tu *TokenUpdate) AddLockPaymentOrderIDs(ids ...uuid.UUID) *TokenUpdate

AddLockPaymentOrderIDs adds the "lock_payment_orders" edge to the LockPaymentOrder entity by IDs.

func (*TokenUpdate) AddLockPaymentOrders

func (tu *TokenUpdate) AddLockPaymentOrders(l ...*LockPaymentOrder) *TokenUpdate

AddLockPaymentOrders adds the "lock_payment_orders" edges to the LockPaymentOrder entity.

func (*TokenUpdate) AddPaymentOrderIDs

func (tu *TokenUpdate) AddPaymentOrderIDs(ids ...uuid.UUID) *TokenUpdate

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*TokenUpdate) AddPaymentOrders

func (tu *TokenUpdate) AddPaymentOrders(p ...*PaymentOrder) *TokenUpdate

AddPaymentOrders adds the "payment_orders" edges to the PaymentOrder entity.

func (*TokenUpdate) AddProviderOrderTokenIDs

func (tu *TokenUpdate) AddProviderOrderTokenIDs(ids ...int) *TokenUpdate

AddProviderOrderTokenIDs adds the "provider_order_tokens" edge to the ProviderOrderToken entity by IDs.

func (*TokenUpdate) AddProviderOrderTokens

func (tu *TokenUpdate) AddProviderOrderTokens(p ...*ProviderOrderToken) *TokenUpdate

AddProviderOrderTokens adds the "provider_order_tokens" edges to the ProviderOrderToken entity.

func (*TokenUpdate) AddSenderOrderTokenIDs

func (tu *TokenUpdate) AddSenderOrderTokenIDs(ids ...int) *TokenUpdate

AddSenderOrderTokenIDs adds the "sender_order_tokens" edge to the SenderOrderToken entity by IDs.

func (*TokenUpdate) AddSenderOrderTokens

func (tu *TokenUpdate) AddSenderOrderTokens(s ...*SenderOrderToken) *TokenUpdate

AddSenderOrderTokens adds the "sender_order_tokens" edges to the SenderOrderToken entity.

func (*TokenUpdate) ClearLockPaymentOrders

func (tu *TokenUpdate) ClearLockPaymentOrders() *TokenUpdate

ClearLockPaymentOrders clears all "lock_payment_orders" edges to the LockPaymentOrder entity.

func (*TokenUpdate) ClearNetwork

func (tu *TokenUpdate) ClearNetwork() *TokenUpdate

ClearNetwork clears the "network" edge to the Network entity.

func (*TokenUpdate) ClearPaymentOrders

func (tu *TokenUpdate) ClearPaymentOrders() *TokenUpdate

ClearPaymentOrders clears all "payment_orders" edges to the PaymentOrder entity.

func (*TokenUpdate) ClearProviderOrderTokens

func (tu *TokenUpdate) ClearProviderOrderTokens() *TokenUpdate

ClearProviderOrderTokens clears all "provider_order_tokens" edges to the ProviderOrderToken entity.

func (*TokenUpdate) ClearSenderOrderTokens

func (tu *TokenUpdate) ClearSenderOrderTokens() *TokenUpdate

ClearSenderOrderTokens clears all "sender_order_tokens" edges to the SenderOrderToken entity.

func (*TokenUpdate) Exec

func (tu *TokenUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*TokenUpdate) ExecX

func (tu *TokenUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TokenUpdate) Mutation

func (tu *TokenUpdate) Mutation() *TokenMutation

Mutation returns the TokenMutation object of the builder.

func (*TokenUpdate) RemoveLockPaymentOrderIDs

func (tu *TokenUpdate) RemoveLockPaymentOrderIDs(ids ...uuid.UUID) *TokenUpdate

RemoveLockPaymentOrderIDs removes the "lock_payment_orders" edge to LockPaymentOrder entities by IDs.

func (*TokenUpdate) RemoveLockPaymentOrders

func (tu *TokenUpdate) RemoveLockPaymentOrders(l ...*LockPaymentOrder) *TokenUpdate

RemoveLockPaymentOrders removes "lock_payment_orders" edges to LockPaymentOrder entities.

func (*TokenUpdate) RemovePaymentOrderIDs

func (tu *TokenUpdate) RemovePaymentOrderIDs(ids ...uuid.UUID) *TokenUpdate

RemovePaymentOrderIDs removes the "payment_orders" edge to PaymentOrder entities by IDs.

func (*TokenUpdate) RemovePaymentOrders

func (tu *TokenUpdate) RemovePaymentOrders(p ...*PaymentOrder) *TokenUpdate

RemovePaymentOrders removes "payment_orders" edges to PaymentOrder entities.

func (*TokenUpdate) RemoveProviderOrderTokenIDs

func (tu *TokenUpdate) RemoveProviderOrderTokenIDs(ids ...int) *TokenUpdate

RemoveProviderOrderTokenIDs removes the "provider_order_tokens" edge to ProviderOrderToken entities by IDs.

func (*TokenUpdate) RemoveProviderOrderTokens

func (tu *TokenUpdate) RemoveProviderOrderTokens(p ...*ProviderOrderToken) *TokenUpdate

RemoveProviderOrderTokens removes "provider_order_tokens" edges to ProviderOrderToken entities.

func (*TokenUpdate) RemoveSenderOrderTokenIDs

func (tu *TokenUpdate) RemoveSenderOrderTokenIDs(ids ...int) *TokenUpdate

RemoveSenderOrderTokenIDs removes the "sender_order_tokens" edge to SenderOrderToken entities by IDs.

func (*TokenUpdate) RemoveSenderOrderTokens

func (tu *TokenUpdate) RemoveSenderOrderTokens(s ...*SenderOrderToken) *TokenUpdate

RemoveSenderOrderTokens removes "sender_order_tokens" edges to SenderOrderToken entities.

func (*TokenUpdate) Save

func (tu *TokenUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*TokenUpdate) SaveX

func (tu *TokenUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*TokenUpdate) SetBaseCurrency

func (tu *TokenUpdate) SetBaseCurrency(s string) *TokenUpdate

SetBaseCurrency sets the "base_currency" field.

func (*TokenUpdate) SetContractAddress

func (tu *TokenUpdate) SetContractAddress(s string) *TokenUpdate

SetContractAddress sets the "contract_address" field.

func (*TokenUpdate) SetDecimals

func (tu *TokenUpdate) SetDecimals(i int8) *TokenUpdate

SetDecimals sets the "decimals" field.

func (*TokenUpdate) SetIsEnabled

func (tu *TokenUpdate) SetIsEnabled(b bool) *TokenUpdate

SetIsEnabled sets the "is_enabled" field.

func (*TokenUpdate) SetNetwork

func (tu *TokenUpdate) SetNetwork(n *Network) *TokenUpdate

SetNetwork sets the "network" edge to the Network entity.

func (*TokenUpdate) SetNetworkID

func (tu *TokenUpdate) SetNetworkID(id int) *TokenUpdate

SetNetworkID sets the "network" edge to the Network entity by ID.

func (*TokenUpdate) SetNillableBaseCurrency

func (tu *TokenUpdate) SetNillableBaseCurrency(s *string) *TokenUpdate

SetNillableBaseCurrency sets the "base_currency" field if the given value is not nil.

func (*TokenUpdate) SetNillableContractAddress

func (tu *TokenUpdate) SetNillableContractAddress(s *string) *TokenUpdate

SetNillableContractAddress sets the "contract_address" field if the given value is not nil.

func (*TokenUpdate) SetNillableDecimals

func (tu *TokenUpdate) SetNillableDecimals(i *int8) *TokenUpdate

SetNillableDecimals sets the "decimals" field if the given value is not nil.

func (*TokenUpdate) SetNillableIsEnabled

func (tu *TokenUpdate) SetNillableIsEnabled(b *bool) *TokenUpdate

SetNillableIsEnabled sets the "is_enabled" field if the given value is not nil.

func (*TokenUpdate) SetNillableSymbol

func (tu *TokenUpdate) SetNillableSymbol(s *string) *TokenUpdate

SetNillableSymbol sets the "symbol" field if the given value is not nil.

func (*TokenUpdate) SetSymbol

func (tu *TokenUpdate) SetSymbol(s string) *TokenUpdate

SetSymbol sets the "symbol" field.

func (*TokenUpdate) SetUpdatedAt

func (tu *TokenUpdate) SetUpdatedAt(t time.Time) *TokenUpdate

SetUpdatedAt sets the "updated_at" field.

func (*TokenUpdate) Where

func (tu *TokenUpdate) Where(ps ...predicate.Token) *TokenUpdate

Where appends a list predicates to the TokenUpdate builder.

type TokenUpdateOne

type TokenUpdateOne struct {
	// contains filtered or unexported fields
}

TokenUpdateOne is the builder for updating a single Token entity.

func (*TokenUpdateOne) AddDecimals

func (tuo *TokenUpdateOne) AddDecimals(i int8) *TokenUpdateOne

AddDecimals adds i to the "decimals" field.

func (*TokenUpdateOne) AddLockPaymentOrderIDs

func (tuo *TokenUpdateOne) AddLockPaymentOrderIDs(ids ...uuid.UUID) *TokenUpdateOne

AddLockPaymentOrderIDs adds the "lock_payment_orders" edge to the LockPaymentOrder entity by IDs.

func (*TokenUpdateOne) AddLockPaymentOrders

func (tuo *TokenUpdateOne) AddLockPaymentOrders(l ...*LockPaymentOrder) *TokenUpdateOne

AddLockPaymentOrders adds the "lock_payment_orders" edges to the LockPaymentOrder entity.

func (*TokenUpdateOne) AddPaymentOrderIDs

func (tuo *TokenUpdateOne) AddPaymentOrderIDs(ids ...uuid.UUID) *TokenUpdateOne

AddPaymentOrderIDs adds the "payment_orders" edge to the PaymentOrder entity by IDs.

func (*TokenUpdateOne) AddPaymentOrders

func (tuo *TokenUpdateOne) AddPaymentOrders(p ...*PaymentOrder) *TokenUpdateOne

AddPaymentOrders adds the "payment_orders" edges to the PaymentOrder entity.

func (*TokenUpdateOne) AddProviderOrderTokenIDs

func (tuo *TokenUpdateOne) AddProviderOrderTokenIDs(ids ...int) *TokenUpdateOne

AddProviderOrderTokenIDs adds the "provider_order_tokens" edge to the ProviderOrderToken entity by IDs.

func (*TokenUpdateOne) AddProviderOrderTokens

func (tuo *TokenUpdateOne) AddProviderOrderTokens(p ...*ProviderOrderToken) *TokenUpdateOne

AddProviderOrderTokens adds the "provider_order_tokens" edges to the ProviderOrderToken entity.

func (*TokenUpdateOne) AddSenderOrderTokenIDs

func (tuo *TokenUpdateOne) AddSenderOrderTokenIDs(ids ...int) *TokenUpdateOne

AddSenderOrderTokenIDs adds the "sender_order_tokens" edge to the SenderOrderToken entity by IDs.

func (*TokenUpdateOne) AddSenderOrderTokens

func (tuo *TokenUpdateOne) AddSenderOrderTokens(s ...*SenderOrderToken) *TokenUpdateOne

AddSenderOrderTokens adds the "sender_order_tokens" edges to the SenderOrderToken entity.

func (*TokenUpdateOne) ClearLockPaymentOrders

func (tuo *TokenUpdateOne) ClearLockPaymentOrders() *TokenUpdateOne

ClearLockPaymentOrders clears all "lock_payment_orders" edges to the LockPaymentOrder entity.

func (*TokenUpdateOne) ClearNetwork

func (tuo *TokenUpdateOne) ClearNetwork() *TokenUpdateOne

ClearNetwork clears the "network" edge to the Network entity.

func (*TokenUpdateOne) ClearPaymentOrders

func (tuo *TokenUpdateOne) ClearPaymentOrders() *TokenUpdateOne

ClearPaymentOrders clears all "payment_orders" edges to the PaymentOrder entity.

func (*TokenUpdateOne) ClearProviderOrderTokens

func (tuo *TokenUpdateOne) ClearProviderOrderTokens() *TokenUpdateOne

ClearProviderOrderTokens clears all "provider_order_tokens" edges to the ProviderOrderToken entity.

func (*TokenUpdateOne) ClearSenderOrderTokens

func (tuo *TokenUpdateOne) ClearSenderOrderTokens() *TokenUpdateOne

ClearSenderOrderTokens clears all "sender_order_tokens" edges to the SenderOrderToken entity.

func (*TokenUpdateOne) Exec

func (tuo *TokenUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*TokenUpdateOne) ExecX

func (tuo *TokenUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TokenUpdateOne) Mutation

func (tuo *TokenUpdateOne) Mutation() *TokenMutation

Mutation returns the TokenMutation object of the builder.

func (*TokenUpdateOne) RemoveLockPaymentOrderIDs

func (tuo *TokenUpdateOne) RemoveLockPaymentOrderIDs(ids ...uuid.UUID) *TokenUpdateOne

RemoveLockPaymentOrderIDs removes the "lock_payment_orders" edge to LockPaymentOrder entities by IDs.

func (*TokenUpdateOne) RemoveLockPaymentOrders

func (tuo *TokenUpdateOne) RemoveLockPaymentOrders(l ...*LockPaymentOrder) *TokenUpdateOne

RemoveLockPaymentOrders removes "lock_payment_orders" edges to LockPaymentOrder entities.

func (*TokenUpdateOne) RemovePaymentOrderIDs

func (tuo *TokenUpdateOne) RemovePaymentOrderIDs(ids ...uuid.UUID) *TokenUpdateOne

RemovePaymentOrderIDs removes the "payment_orders" edge to PaymentOrder entities by IDs.

func (*TokenUpdateOne) RemovePaymentOrders

func (tuo *TokenUpdateOne) RemovePaymentOrders(p ...*PaymentOrder) *TokenUpdateOne

RemovePaymentOrders removes "payment_orders" edges to PaymentOrder entities.

func (*TokenUpdateOne) RemoveProviderOrderTokenIDs

func (tuo *TokenUpdateOne) RemoveProviderOrderTokenIDs(ids ...int) *TokenUpdateOne

RemoveProviderOrderTokenIDs removes the "provider_order_tokens" edge to ProviderOrderToken entities by IDs.

func (*TokenUpdateOne) RemoveProviderOrderTokens

func (tuo *TokenUpdateOne) RemoveProviderOrderTokens(p ...*ProviderOrderToken) *TokenUpdateOne

RemoveProviderOrderTokens removes "provider_order_tokens" edges to ProviderOrderToken entities.

func (*TokenUpdateOne) RemoveSenderOrderTokenIDs

func (tuo *TokenUpdateOne) RemoveSenderOrderTokenIDs(ids ...int) *TokenUpdateOne

RemoveSenderOrderTokenIDs removes the "sender_order_tokens" edge to SenderOrderToken entities by IDs.

func (*TokenUpdateOne) RemoveSenderOrderTokens

func (tuo *TokenUpdateOne) RemoveSenderOrderTokens(s ...*SenderOrderToken) *TokenUpdateOne

RemoveSenderOrderTokens removes "sender_order_tokens" edges to SenderOrderToken entities.

func (*TokenUpdateOne) Save

func (tuo *TokenUpdateOne) Save(ctx context.Context) (*Token, error)

Save executes the query and returns the updated Token entity.

func (*TokenUpdateOne) SaveX

func (tuo *TokenUpdateOne) SaveX(ctx context.Context) *Token

SaveX is like Save, but panics if an error occurs.

func (*TokenUpdateOne) Select

func (tuo *TokenUpdateOne) Select(field string, fields ...string) *TokenUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*TokenUpdateOne) SetBaseCurrency

func (tuo *TokenUpdateOne) SetBaseCurrency(s string) *TokenUpdateOne

SetBaseCurrency sets the "base_currency" field.

func (*TokenUpdateOne) SetContractAddress

func (tuo *TokenUpdateOne) SetContractAddress(s string) *TokenUpdateOne

SetContractAddress sets the "contract_address" field.

func (*TokenUpdateOne) SetDecimals

func (tuo *TokenUpdateOne) SetDecimals(i int8) *TokenUpdateOne

SetDecimals sets the "decimals" field.

func (*TokenUpdateOne) SetIsEnabled

func (tuo *TokenUpdateOne) SetIsEnabled(b bool) *TokenUpdateOne

SetIsEnabled sets the "is_enabled" field.

func (*TokenUpdateOne) SetNetwork

func (tuo *TokenUpdateOne) SetNetwork(n *Network) *TokenUpdateOne

SetNetwork sets the "network" edge to the Network entity.

func (*TokenUpdateOne) SetNetworkID

func (tuo *TokenUpdateOne) SetNetworkID(id int) *TokenUpdateOne

SetNetworkID sets the "network" edge to the Network entity by ID.

func (*TokenUpdateOne) SetNillableBaseCurrency

func (tuo *TokenUpdateOne) SetNillableBaseCurrency(s *string) *TokenUpdateOne

SetNillableBaseCurrency sets the "base_currency" field if the given value is not nil.

func (*TokenUpdateOne) SetNillableContractAddress

func (tuo *TokenUpdateOne) SetNillableContractAddress(s *string) *TokenUpdateOne

SetNillableContractAddress sets the "contract_address" field if the given value is not nil.

func (*TokenUpdateOne) SetNillableDecimals

func (tuo *TokenUpdateOne) SetNillableDecimals(i *int8) *TokenUpdateOne

SetNillableDecimals sets the "decimals" field if the given value is not nil.

func (*TokenUpdateOne) SetNillableIsEnabled

func (tuo *TokenUpdateOne) SetNillableIsEnabled(b *bool) *TokenUpdateOne

SetNillableIsEnabled sets the "is_enabled" field if the given value is not nil.

func (*TokenUpdateOne) SetNillableSymbol

func (tuo *TokenUpdateOne) SetNillableSymbol(s *string) *TokenUpdateOne

SetNillableSymbol sets the "symbol" field if the given value is not nil.

func (*TokenUpdateOne) SetSymbol

func (tuo *TokenUpdateOne) SetSymbol(s string) *TokenUpdateOne

SetSymbol sets the "symbol" field.

func (*TokenUpdateOne) SetUpdatedAt

func (tuo *TokenUpdateOne) SetUpdatedAt(t time.Time) *TokenUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*TokenUpdateOne) Where

func (tuo *TokenUpdateOne) Where(ps ...predicate.Token) *TokenUpdateOne

Where appends a list predicates to the TokenUpdate builder.

type TokenUpsert

type TokenUpsert struct {
	*sql.UpdateSet
}

TokenUpsert is the "OnConflict" setter.

func (*TokenUpsert) AddDecimals

func (u *TokenUpsert) AddDecimals(v int8) *TokenUpsert

AddDecimals adds v to the "decimals" field.

func (*TokenUpsert) SetBaseCurrency

func (u *TokenUpsert) SetBaseCurrency(v string) *TokenUpsert

SetBaseCurrency sets the "base_currency" field.

func (*TokenUpsert) SetContractAddress

func (u *TokenUpsert) SetContractAddress(v string) *TokenUpsert

SetContractAddress sets the "contract_address" field.

func (*TokenUpsert) SetDecimals

func (u *TokenUpsert) SetDecimals(v int8) *TokenUpsert

SetDecimals sets the "decimals" field.

func (*TokenUpsert) SetIsEnabled

func (u *TokenUpsert) SetIsEnabled(v bool) *TokenUpsert

SetIsEnabled sets the "is_enabled" field.

func (*TokenUpsert) SetSymbol

func (u *TokenUpsert) SetSymbol(v string) *TokenUpsert

SetSymbol sets the "symbol" field.

func (*TokenUpsert) SetUpdatedAt

func (u *TokenUpsert) SetUpdatedAt(v time.Time) *TokenUpsert

SetUpdatedAt sets the "updated_at" field.

func (*TokenUpsert) UpdateBaseCurrency

func (u *TokenUpsert) UpdateBaseCurrency() *TokenUpsert

UpdateBaseCurrency sets the "base_currency" field to the value that was provided on create.

func (*TokenUpsert) UpdateContractAddress

func (u *TokenUpsert) UpdateContractAddress() *TokenUpsert

UpdateContractAddress sets the "contract_address" field to the value that was provided on create.

func (*TokenUpsert) UpdateDecimals

func (u *TokenUpsert) UpdateDecimals() *TokenUpsert

UpdateDecimals sets the "decimals" field to the value that was provided on create.

func (*TokenUpsert) UpdateIsEnabled

func (u *TokenUpsert) UpdateIsEnabled() *TokenUpsert

UpdateIsEnabled sets the "is_enabled" field to the value that was provided on create.

func (*TokenUpsert) UpdateSymbol

func (u *TokenUpsert) UpdateSymbol() *TokenUpsert

UpdateSymbol sets the "symbol" field to the value that was provided on create.

func (*TokenUpsert) UpdateUpdatedAt

func (u *TokenUpsert) UpdateUpdatedAt() *TokenUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type TokenUpsertBulk

type TokenUpsertBulk struct {
	// contains filtered or unexported fields
}

TokenUpsertBulk is the builder for "upsert"-ing a bulk of Token nodes.

func (*TokenUpsertBulk) AddDecimals

func (u *TokenUpsertBulk) AddDecimals(v int8) *TokenUpsertBulk

AddDecimals adds v to the "decimals" field.

func (*TokenUpsertBulk) DoNothing

func (u *TokenUpsertBulk) DoNothing() *TokenUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*TokenUpsertBulk) Exec

func (u *TokenUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*TokenUpsertBulk) ExecX

func (u *TokenUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TokenUpsertBulk) Ignore

func (u *TokenUpsertBulk) Ignore() *TokenUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Token.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*TokenUpsertBulk) SetBaseCurrency

func (u *TokenUpsertBulk) SetBaseCurrency(v string) *TokenUpsertBulk

SetBaseCurrency sets the "base_currency" field.

func (*TokenUpsertBulk) SetContractAddress

func (u *TokenUpsertBulk) SetContractAddress(v string) *TokenUpsertBulk

SetContractAddress sets the "contract_address" field.

func (*TokenUpsertBulk) SetDecimals

func (u *TokenUpsertBulk) SetDecimals(v int8) *TokenUpsertBulk

SetDecimals sets the "decimals" field.

func (*TokenUpsertBulk) SetIsEnabled

func (u *TokenUpsertBulk) SetIsEnabled(v bool) *TokenUpsertBulk

SetIsEnabled sets the "is_enabled" field.

func (*TokenUpsertBulk) SetSymbol

func (u *TokenUpsertBulk) SetSymbol(v string) *TokenUpsertBulk

SetSymbol sets the "symbol" field.

func (*TokenUpsertBulk) SetUpdatedAt

func (u *TokenUpsertBulk) SetUpdatedAt(v time.Time) *TokenUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*TokenUpsertBulk) Update

func (u *TokenUpsertBulk) Update(set func(*TokenUpsert)) *TokenUpsertBulk

Update allows overriding fields `UPDATE` values. See the TokenCreateBulk.OnConflict documentation for more info.

func (*TokenUpsertBulk) UpdateBaseCurrency

func (u *TokenUpsertBulk) UpdateBaseCurrency() *TokenUpsertBulk

UpdateBaseCurrency sets the "base_currency" field to the value that was provided on create.

func (*TokenUpsertBulk) UpdateContractAddress

func (u *TokenUpsertBulk) UpdateContractAddress() *TokenUpsertBulk

UpdateContractAddress sets the "contract_address" field to the value that was provided on create.

func (*TokenUpsertBulk) UpdateDecimals

func (u *TokenUpsertBulk) UpdateDecimals() *TokenUpsertBulk

UpdateDecimals sets the "decimals" field to the value that was provided on create.

func (*TokenUpsertBulk) UpdateIsEnabled

func (u *TokenUpsertBulk) UpdateIsEnabled() *TokenUpsertBulk

UpdateIsEnabled sets the "is_enabled" field to the value that was provided on create.

func (*TokenUpsertBulk) UpdateNewValues

func (u *TokenUpsertBulk) UpdateNewValues() *TokenUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Token.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*TokenUpsertBulk) UpdateSymbol

func (u *TokenUpsertBulk) UpdateSymbol() *TokenUpsertBulk

UpdateSymbol sets the "symbol" field to the value that was provided on create.

func (*TokenUpsertBulk) UpdateUpdatedAt

func (u *TokenUpsertBulk) UpdateUpdatedAt() *TokenUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type TokenUpsertOne

type TokenUpsertOne struct {
	// contains filtered or unexported fields
}

TokenUpsertOne is the builder for "upsert"-ing

one Token node.

func (*TokenUpsertOne) AddDecimals

func (u *TokenUpsertOne) AddDecimals(v int8) *TokenUpsertOne

AddDecimals adds v to the "decimals" field.

func (*TokenUpsertOne) DoNothing

func (u *TokenUpsertOne) DoNothing() *TokenUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*TokenUpsertOne) Exec

func (u *TokenUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*TokenUpsertOne) ExecX

func (u *TokenUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TokenUpsertOne) ID

func (u *TokenUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*TokenUpsertOne) IDX

func (u *TokenUpsertOne) IDX(ctx context.Context) int

IDX is like ID, but panics if an error occurs.

func (*TokenUpsertOne) Ignore

func (u *TokenUpsertOne) Ignore() *TokenUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Token.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*TokenUpsertOne) SetBaseCurrency

func (u *TokenUpsertOne) SetBaseCurrency(v string) *TokenUpsertOne

SetBaseCurrency sets the "base_currency" field.

func (*TokenUpsertOne) SetContractAddress

func (u *TokenUpsertOne) SetContractAddress(v string) *TokenUpsertOne

SetContractAddress sets the "contract_address" field.

func (*TokenUpsertOne) SetDecimals

func (u *TokenUpsertOne) SetDecimals(v int8) *TokenUpsertOne

SetDecimals sets the "decimals" field.

func (*TokenUpsertOne) SetIsEnabled

func (u *TokenUpsertOne) SetIsEnabled(v bool) *TokenUpsertOne

SetIsEnabled sets the "is_enabled" field.

func (*TokenUpsertOne) SetSymbol

func (u *TokenUpsertOne) SetSymbol(v string) *TokenUpsertOne

SetSymbol sets the "symbol" field.

func (*TokenUpsertOne) SetUpdatedAt

func (u *TokenUpsertOne) SetUpdatedAt(v time.Time) *TokenUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*TokenUpsertOne) Update

func (u *TokenUpsertOne) Update(set func(*TokenUpsert)) *TokenUpsertOne

Update allows overriding fields `UPDATE` values. See the TokenCreate.OnConflict documentation for more info.

func (*TokenUpsertOne) UpdateBaseCurrency

func (u *TokenUpsertOne) UpdateBaseCurrency() *TokenUpsertOne

UpdateBaseCurrency sets the "base_currency" field to the value that was provided on create.

func (*TokenUpsertOne) UpdateContractAddress

func (u *TokenUpsertOne) UpdateContractAddress() *TokenUpsertOne

UpdateContractAddress sets the "contract_address" field to the value that was provided on create.

func (*TokenUpsertOne) UpdateDecimals

func (u *TokenUpsertOne) UpdateDecimals() *TokenUpsertOne

UpdateDecimals sets the "decimals" field to the value that was provided on create.

func (*TokenUpsertOne) UpdateIsEnabled

func (u *TokenUpsertOne) UpdateIsEnabled() *TokenUpsertOne

UpdateIsEnabled sets the "is_enabled" field to the value that was provided on create.

func (*TokenUpsertOne) UpdateNewValues

func (u *TokenUpsertOne) UpdateNewValues() *TokenUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Token.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*TokenUpsertOne) UpdateSymbol

func (u *TokenUpsertOne) UpdateSymbol() *TokenUpsertOne

UpdateSymbol sets the "symbol" field to the value that was provided on create.

func (*TokenUpsertOne) UpdateUpdatedAt

func (u *TokenUpsertOne) UpdateUpdatedAt() *TokenUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type Tokens

type Tokens []*Token

Tokens is a parsable slice of Token.

type TransactionLog

type TransactionLog struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// GatewayID holds the value of the "gateway_id" field.
	GatewayID string `json:"gateway_id,omitempty"`
	// Status holds the value of the "status" field.
	Status transactionlog.Status `json:"status,omitempty"`
	// Network holds the value of the "network" field.
	Network string `json:"network,omitempty"`
	// TxHash holds the value of the "tx_hash" field.
	TxHash string `json:"tx_hash,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata map[string]interface{} `json:"metadata,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

TransactionLog is the model entity for the TransactionLog schema.

func (*TransactionLog) String

func (tl *TransactionLog) String() string

String implements the fmt.Stringer.

func (*TransactionLog) Unwrap

func (tl *TransactionLog) Unwrap() *TransactionLog

Unwrap unwraps the TransactionLog entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*TransactionLog) Update

Update returns a builder for updating this TransactionLog. Note that you need to call TransactionLog.Unwrap() before calling this method if this TransactionLog was returned from a transaction, and the transaction was committed or rolled back.

func (*TransactionLog) Value

func (tl *TransactionLog) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the TransactionLog. This includes values selected through modifiers, order, etc.

type TransactionLogClient

type TransactionLogClient struct {
	// contains filtered or unexported fields
}

TransactionLogClient is a client for the TransactionLog schema.

func NewTransactionLogClient

func NewTransactionLogClient(c config) *TransactionLogClient

NewTransactionLogClient returns a client for the TransactionLog from the given config.

func (*TransactionLogClient) Create

Create returns a builder for creating a TransactionLog entity.

func (*TransactionLogClient) CreateBulk

CreateBulk returns a builder for creating a bulk of TransactionLog entities.

func (*TransactionLogClient) Delete

Delete returns a delete builder for TransactionLog.

func (*TransactionLogClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*TransactionLogClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*TransactionLogClient) Get

Get returns a TransactionLog entity by its id.

func (*TransactionLogClient) GetX

GetX is like Get, but panics if an error occurs.

func (*TransactionLogClient) Hooks

func (c *TransactionLogClient) Hooks() []Hook

Hooks returns the client hooks.

func (*TransactionLogClient) Intercept

func (c *TransactionLogClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `transactionlog.Intercept(f(g(h())))`.

func (*TransactionLogClient) Interceptors

func (c *TransactionLogClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*TransactionLogClient) MapCreateBulk

func (c *TransactionLogClient) MapCreateBulk(slice any, setFunc func(*TransactionLogCreate, int)) *TransactionLogCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*TransactionLogClient) Query

Query returns a query builder for TransactionLog.

func (*TransactionLogClient) Update

Update returns an update builder for TransactionLog.

func (*TransactionLogClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*TransactionLogClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*TransactionLogClient) Use

func (c *TransactionLogClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `transactionlog.Hooks(f(g(h())))`.

type TransactionLogCreate

type TransactionLogCreate struct {
	// contains filtered or unexported fields
}

TransactionLogCreate is the builder for creating a TransactionLog entity.

func (*TransactionLogCreate) Exec

func (tlc *TransactionLogCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*TransactionLogCreate) ExecX

func (tlc *TransactionLogCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TransactionLogCreate) Mutation

Mutation returns the TransactionLogMutation object of the builder.

func (*TransactionLogCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.TransactionLog.Create().
	SetGatewayID(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.TransactionLogUpsert) {
		SetGatewayID(v+v).
	}).
	Exec(ctx)

func (*TransactionLogCreate) OnConflictColumns

func (tlc *TransactionLogCreate) OnConflictColumns(columns ...string) *TransactionLogUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.TransactionLog.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*TransactionLogCreate) Save

Save creates the TransactionLog in the database.

func (*TransactionLogCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*TransactionLogCreate) SetCreatedAt

func (tlc *TransactionLogCreate) SetCreatedAt(t time.Time) *TransactionLogCreate

SetCreatedAt sets the "created_at" field.

func (*TransactionLogCreate) SetGatewayID

func (tlc *TransactionLogCreate) SetGatewayID(s string) *TransactionLogCreate

SetGatewayID sets the "gateway_id" field.

func (*TransactionLogCreate) SetID

SetID sets the "id" field.

func (*TransactionLogCreate) SetMetadata

func (tlc *TransactionLogCreate) SetMetadata(m map[string]interface{}) *TransactionLogCreate

SetMetadata sets the "metadata" field.

func (*TransactionLogCreate) SetNetwork

func (tlc *TransactionLogCreate) SetNetwork(s string) *TransactionLogCreate

SetNetwork sets the "network" field.

func (*TransactionLogCreate) SetNillableCreatedAt

func (tlc *TransactionLogCreate) SetNillableCreatedAt(t *time.Time) *TransactionLogCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*TransactionLogCreate) SetNillableGatewayID

func (tlc *TransactionLogCreate) SetNillableGatewayID(s *string) *TransactionLogCreate

SetNillableGatewayID sets the "gateway_id" field if the given value is not nil.

func (*TransactionLogCreate) SetNillableID

func (tlc *TransactionLogCreate) SetNillableID(u *uuid.UUID) *TransactionLogCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*TransactionLogCreate) SetNillableNetwork

func (tlc *TransactionLogCreate) SetNillableNetwork(s *string) *TransactionLogCreate

SetNillableNetwork sets the "network" field if the given value is not nil.

func (*TransactionLogCreate) SetNillableStatus

func (tlc *TransactionLogCreate) SetNillableStatus(t *transactionlog.Status) *TransactionLogCreate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*TransactionLogCreate) SetNillableTxHash

func (tlc *TransactionLogCreate) SetNillableTxHash(s *string) *TransactionLogCreate

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*TransactionLogCreate) SetStatus

SetStatus sets the "status" field.

func (*TransactionLogCreate) SetTxHash

SetTxHash sets the "tx_hash" field.

type TransactionLogCreateBulk

type TransactionLogCreateBulk struct {
	// contains filtered or unexported fields
}

TransactionLogCreateBulk is the builder for creating many TransactionLog entities in bulk.

func (*TransactionLogCreateBulk) Exec

Exec executes the query.

func (*TransactionLogCreateBulk) ExecX

func (tlcb *TransactionLogCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TransactionLogCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.TransactionLog.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.TransactionLogUpsert) {
		SetGatewayID(v+v).
	}).
	Exec(ctx)

func (*TransactionLogCreateBulk) OnConflictColumns

func (tlcb *TransactionLogCreateBulk) OnConflictColumns(columns ...string) *TransactionLogUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.TransactionLog.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*TransactionLogCreateBulk) Save

Save creates the TransactionLog entities in the database.

func (*TransactionLogCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type TransactionLogDelete

type TransactionLogDelete struct {
	// contains filtered or unexported fields
}

TransactionLogDelete is the builder for deleting a TransactionLog entity.

func (*TransactionLogDelete) Exec

func (tld *TransactionLogDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*TransactionLogDelete) ExecX

func (tld *TransactionLogDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*TransactionLogDelete) Where

Where appends a list predicates to the TransactionLogDelete builder.

type TransactionLogDeleteOne

type TransactionLogDeleteOne struct {
	// contains filtered or unexported fields
}

TransactionLogDeleteOne is the builder for deleting a single TransactionLog entity.

func (*TransactionLogDeleteOne) Exec

func (tldo *TransactionLogDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*TransactionLogDeleteOne) ExecX

func (tldo *TransactionLogDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TransactionLogDeleteOne) Where

Where appends a list predicates to the TransactionLogDelete builder.

type TransactionLogGroupBy

type TransactionLogGroupBy struct {
	// contains filtered or unexported fields
}

TransactionLogGroupBy is the group-by builder for TransactionLog entities.

func (*TransactionLogGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*TransactionLogGroupBy) Bool

func (s *TransactionLogGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TransactionLogGroupBy) BoolX

func (s *TransactionLogGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TransactionLogGroupBy) Bools

func (s *TransactionLogGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TransactionLogGroupBy) BoolsX

func (s *TransactionLogGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TransactionLogGroupBy) Float64

func (s *TransactionLogGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TransactionLogGroupBy) Float64X

func (s *TransactionLogGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TransactionLogGroupBy) Float64s

func (s *TransactionLogGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TransactionLogGroupBy) Float64sX

func (s *TransactionLogGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TransactionLogGroupBy) Int

func (s *TransactionLogGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TransactionLogGroupBy) IntX

func (s *TransactionLogGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TransactionLogGroupBy) Ints

func (s *TransactionLogGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TransactionLogGroupBy) IntsX

func (s *TransactionLogGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TransactionLogGroupBy) Scan

func (tlgb *TransactionLogGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*TransactionLogGroupBy) ScanX

func (s *TransactionLogGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*TransactionLogGroupBy) String

func (s *TransactionLogGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TransactionLogGroupBy) StringX

func (s *TransactionLogGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TransactionLogGroupBy) Strings

func (s *TransactionLogGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TransactionLogGroupBy) StringsX

func (s *TransactionLogGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TransactionLogMutation

type TransactionLogMutation struct {
	// contains filtered or unexported fields
}

TransactionLogMutation represents an operation that mutates the TransactionLog nodes in the graph.

func (*TransactionLogMutation) AddField

func (m *TransactionLogMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TransactionLogMutation) AddedEdges

func (m *TransactionLogMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*TransactionLogMutation) AddedField

func (m *TransactionLogMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TransactionLogMutation) AddedFields

func (m *TransactionLogMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*TransactionLogMutation) AddedIDs

func (m *TransactionLogMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*TransactionLogMutation) ClearEdge

func (m *TransactionLogMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*TransactionLogMutation) ClearField

func (m *TransactionLogMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*TransactionLogMutation) ClearGatewayID

func (m *TransactionLogMutation) ClearGatewayID()

ClearGatewayID clears the value of the "gateway_id" field.

func (*TransactionLogMutation) ClearNetwork

func (m *TransactionLogMutation) ClearNetwork()

ClearNetwork clears the value of the "network" field.

func (*TransactionLogMutation) ClearTxHash

func (m *TransactionLogMutation) ClearTxHash()

ClearTxHash clears the value of the "tx_hash" field.

func (*TransactionLogMutation) ClearedEdges

func (m *TransactionLogMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*TransactionLogMutation) ClearedFields

func (m *TransactionLogMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (TransactionLogMutation) Client

func (m TransactionLogMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*TransactionLogMutation) CreatedAt

func (m *TransactionLogMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*TransactionLogMutation) EdgeCleared

func (m *TransactionLogMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*TransactionLogMutation) Field

func (m *TransactionLogMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TransactionLogMutation) FieldCleared

func (m *TransactionLogMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*TransactionLogMutation) Fields

func (m *TransactionLogMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*TransactionLogMutation) GatewayID

func (m *TransactionLogMutation) GatewayID() (r string, exists bool)

GatewayID returns the value of the "gateway_id" field in the mutation.

func (*TransactionLogMutation) GatewayIDCleared

func (m *TransactionLogMutation) GatewayIDCleared() bool

GatewayIDCleared returns if the "gateway_id" field was cleared in this mutation.

func (*TransactionLogMutation) ID

func (m *TransactionLogMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*TransactionLogMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*TransactionLogMutation) Metadata

func (m *TransactionLogMutation) Metadata() (r map[string]interface{}, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*TransactionLogMutation) Network

func (m *TransactionLogMutation) Network() (r string, exists bool)

Network returns the value of the "network" field in the mutation.

func (*TransactionLogMutation) NetworkCleared

func (m *TransactionLogMutation) NetworkCleared() bool

NetworkCleared returns if the "network" field was cleared in this mutation.

func (*TransactionLogMutation) OldCreatedAt

func (m *TransactionLogMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the TransactionLog entity. If the TransactionLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TransactionLogMutation) OldField

func (m *TransactionLogMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*TransactionLogMutation) OldGatewayID

func (m *TransactionLogMutation) OldGatewayID(ctx context.Context) (v string, err error)

OldGatewayID returns the old "gateway_id" field's value of the TransactionLog entity. If the TransactionLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TransactionLogMutation) OldMetadata

func (m *TransactionLogMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error)

OldMetadata returns the old "metadata" field's value of the TransactionLog entity. If the TransactionLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TransactionLogMutation) OldNetwork

func (m *TransactionLogMutation) OldNetwork(ctx context.Context) (v string, err error)

OldNetwork returns the old "network" field's value of the TransactionLog entity. If the TransactionLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TransactionLogMutation) OldStatus

func (m *TransactionLogMutation) OldStatus(ctx context.Context) (v transactionlog.Status, err error)

OldStatus returns the old "status" field's value of the TransactionLog entity. If the TransactionLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TransactionLogMutation) OldTxHash

func (m *TransactionLogMutation) OldTxHash(ctx context.Context) (v string, err error)

OldTxHash returns the old "tx_hash" field's value of the TransactionLog entity. If the TransactionLog object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TransactionLogMutation) Op

func (m *TransactionLogMutation) Op() Op

Op returns the operation name.

func (*TransactionLogMutation) RemovedEdges

func (m *TransactionLogMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*TransactionLogMutation) RemovedIDs

func (m *TransactionLogMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*TransactionLogMutation) ResetCreatedAt

func (m *TransactionLogMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*TransactionLogMutation) ResetEdge

func (m *TransactionLogMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*TransactionLogMutation) ResetField

func (m *TransactionLogMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*TransactionLogMutation) ResetGatewayID

func (m *TransactionLogMutation) ResetGatewayID()

ResetGatewayID resets all changes to the "gateway_id" field.

func (*TransactionLogMutation) ResetMetadata

func (m *TransactionLogMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*TransactionLogMutation) ResetNetwork

func (m *TransactionLogMutation) ResetNetwork()

ResetNetwork resets all changes to the "network" field.

func (*TransactionLogMutation) ResetStatus

func (m *TransactionLogMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*TransactionLogMutation) ResetTxHash

func (m *TransactionLogMutation) ResetTxHash()

ResetTxHash resets all changes to the "tx_hash" field.

func (*TransactionLogMutation) SetCreatedAt

func (m *TransactionLogMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*TransactionLogMutation) SetField

func (m *TransactionLogMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TransactionLogMutation) SetGatewayID

func (m *TransactionLogMutation) SetGatewayID(s string)

SetGatewayID sets the "gateway_id" field.

func (*TransactionLogMutation) SetID

func (m *TransactionLogMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of TransactionLog entities.

func (*TransactionLogMutation) SetMetadata

func (m *TransactionLogMutation) SetMetadata(value map[string]interface{})

SetMetadata sets the "metadata" field.

func (*TransactionLogMutation) SetNetwork

func (m *TransactionLogMutation) SetNetwork(s string)

SetNetwork sets the "network" field.

func (*TransactionLogMutation) SetOp

func (m *TransactionLogMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*TransactionLogMutation) SetStatus

SetStatus sets the "status" field.

func (*TransactionLogMutation) SetTxHash

func (m *TransactionLogMutation) SetTxHash(s string)

SetTxHash sets the "tx_hash" field.

func (*TransactionLogMutation) Status

func (m *TransactionLogMutation) Status() (r transactionlog.Status, exists bool)

Status returns the value of the "status" field in the mutation.

func (TransactionLogMutation) Tx

func (m TransactionLogMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*TransactionLogMutation) TxHash

func (m *TransactionLogMutation) TxHash() (r string, exists bool)

TxHash returns the value of the "tx_hash" field in the mutation.

func (*TransactionLogMutation) TxHashCleared

func (m *TransactionLogMutation) TxHashCleared() bool

TxHashCleared returns if the "tx_hash" field was cleared in this mutation.

func (*TransactionLogMutation) Type

func (m *TransactionLogMutation) Type() string

Type returns the node type of this mutation (TransactionLog).

func (*TransactionLogMutation) Where

Where appends a list predicates to the TransactionLogMutation builder.

func (*TransactionLogMutation) WhereP

func (m *TransactionLogMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the TransactionLogMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type TransactionLogQuery

type TransactionLogQuery struct {
	// contains filtered or unexported fields
}

TransactionLogQuery is the builder for querying TransactionLog entities.

func (*TransactionLogQuery) Aggregate

func (tlq *TransactionLogQuery) Aggregate(fns ...AggregateFunc) *TransactionLogSelect

Aggregate returns a TransactionLogSelect configured with the given aggregations.

func (*TransactionLogQuery) All

All executes the query and returns a list of TransactionLogs.

func (*TransactionLogQuery) AllX

AllX is like All, but panics if an error occurs.

func (*TransactionLogQuery) Clone

Clone returns a duplicate of the TransactionLogQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*TransactionLogQuery) Count

func (tlq *TransactionLogQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*TransactionLogQuery) CountX

func (tlq *TransactionLogQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*TransactionLogQuery) Exist

func (tlq *TransactionLogQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*TransactionLogQuery) ExistX

func (tlq *TransactionLogQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*TransactionLogQuery) First

First returns the first TransactionLog entity from the query. Returns a *NotFoundError when no TransactionLog was found.

func (*TransactionLogQuery) FirstID

func (tlq *TransactionLogQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first TransactionLog ID from the query. Returns a *NotFoundError when no TransactionLog ID was found.

func (*TransactionLogQuery) FirstIDX

func (tlq *TransactionLogQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*TransactionLogQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*TransactionLogQuery) GroupBy

func (tlq *TransactionLogQuery) GroupBy(field string, fields ...string) *TransactionLogGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	GatewayID string `json:"gateway_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.TransactionLog.Query().
	GroupBy(transactionlog.FieldGatewayID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*TransactionLogQuery) IDs

func (tlq *TransactionLogQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of TransactionLog IDs.

func (*TransactionLogQuery) IDsX

func (tlq *TransactionLogQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*TransactionLogQuery) Limit

func (tlq *TransactionLogQuery) Limit(limit int) *TransactionLogQuery

Limit the number of records to be returned by this query.

func (*TransactionLogQuery) Offset

func (tlq *TransactionLogQuery) Offset(offset int) *TransactionLogQuery

Offset to start from.

func (*TransactionLogQuery) Only

Only returns a single TransactionLog entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one TransactionLog entity is found. Returns a *NotFoundError when no TransactionLog entities are found.

func (*TransactionLogQuery) OnlyID

func (tlq *TransactionLogQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only TransactionLog ID in the query. Returns a *NotSingularError when more than one TransactionLog ID is found. Returns a *NotFoundError when no entities are found.

func (*TransactionLogQuery) OnlyIDX

func (tlq *TransactionLogQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*TransactionLogQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*TransactionLogQuery) Order

Order specifies how the records should be ordered.

func (*TransactionLogQuery) Select

func (tlq *TransactionLogQuery) Select(fields ...string) *TransactionLogSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	GatewayID string `json:"gateway_id,omitempty"`
}

client.TransactionLog.Query().
	Select(transactionlog.FieldGatewayID).
	Scan(ctx, &v)

func (*TransactionLogQuery) Unique

func (tlq *TransactionLogQuery) Unique(unique bool) *TransactionLogQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*TransactionLogQuery) Where

Where adds a new predicate for the TransactionLogQuery builder.

type TransactionLogSelect

type TransactionLogSelect struct {
	*TransactionLogQuery
	// contains filtered or unexported fields
}

TransactionLogSelect is the builder for selecting fields of TransactionLog entities.

func (*TransactionLogSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*TransactionLogSelect) Bool

func (s *TransactionLogSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TransactionLogSelect) BoolX

func (s *TransactionLogSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TransactionLogSelect) Bools

func (s *TransactionLogSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TransactionLogSelect) BoolsX

func (s *TransactionLogSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TransactionLogSelect) Float64

func (s *TransactionLogSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TransactionLogSelect) Float64X

func (s *TransactionLogSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TransactionLogSelect) Float64s

func (s *TransactionLogSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TransactionLogSelect) Float64sX

func (s *TransactionLogSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TransactionLogSelect) Int

func (s *TransactionLogSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TransactionLogSelect) IntX

func (s *TransactionLogSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TransactionLogSelect) Ints

func (s *TransactionLogSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TransactionLogSelect) IntsX

func (s *TransactionLogSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TransactionLogSelect) Scan

func (tls *TransactionLogSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*TransactionLogSelect) ScanX

func (s *TransactionLogSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*TransactionLogSelect) String

func (s *TransactionLogSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TransactionLogSelect) StringX

func (s *TransactionLogSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TransactionLogSelect) Strings

func (s *TransactionLogSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TransactionLogSelect) StringsX

func (s *TransactionLogSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TransactionLogUpdate

type TransactionLogUpdate struct {
	// contains filtered or unexported fields
}

TransactionLogUpdate is the builder for updating TransactionLog entities.

func (*TransactionLogUpdate) ClearGatewayID

func (tlu *TransactionLogUpdate) ClearGatewayID() *TransactionLogUpdate

ClearGatewayID clears the value of the "gateway_id" field.

func (*TransactionLogUpdate) ClearNetwork

func (tlu *TransactionLogUpdate) ClearNetwork() *TransactionLogUpdate

ClearNetwork clears the value of the "network" field.

func (*TransactionLogUpdate) ClearTxHash

func (tlu *TransactionLogUpdate) ClearTxHash() *TransactionLogUpdate

ClearTxHash clears the value of the "tx_hash" field.

func (*TransactionLogUpdate) Exec

func (tlu *TransactionLogUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*TransactionLogUpdate) ExecX

func (tlu *TransactionLogUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TransactionLogUpdate) Mutation

Mutation returns the TransactionLogMutation object of the builder.

func (*TransactionLogUpdate) Save

func (tlu *TransactionLogUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*TransactionLogUpdate) SaveX

func (tlu *TransactionLogUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*TransactionLogUpdate) SetGatewayID

func (tlu *TransactionLogUpdate) SetGatewayID(s string) *TransactionLogUpdate

SetGatewayID sets the "gateway_id" field.

func (*TransactionLogUpdate) SetMetadata

func (tlu *TransactionLogUpdate) SetMetadata(m map[string]interface{}) *TransactionLogUpdate

SetMetadata sets the "metadata" field.

func (*TransactionLogUpdate) SetNetwork

func (tlu *TransactionLogUpdate) SetNetwork(s string) *TransactionLogUpdate

SetNetwork sets the "network" field.

func (*TransactionLogUpdate) SetNillableGatewayID

func (tlu *TransactionLogUpdate) SetNillableGatewayID(s *string) *TransactionLogUpdate

SetNillableGatewayID sets the "gateway_id" field if the given value is not nil.

func (*TransactionLogUpdate) SetNillableNetwork

func (tlu *TransactionLogUpdate) SetNillableNetwork(s *string) *TransactionLogUpdate

SetNillableNetwork sets the "network" field if the given value is not nil.

func (*TransactionLogUpdate) SetNillableTxHash

func (tlu *TransactionLogUpdate) SetNillableTxHash(s *string) *TransactionLogUpdate

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*TransactionLogUpdate) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*TransactionLogUpdate) Where

Where appends a list predicates to the TransactionLogUpdate builder.

type TransactionLogUpdateOne

type TransactionLogUpdateOne struct {
	// contains filtered or unexported fields
}

TransactionLogUpdateOne is the builder for updating a single TransactionLog entity.

func (*TransactionLogUpdateOne) ClearGatewayID

func (tluo *TransactionLogUpdateOne) ClearGatewayID() *TransactionLogUpdateOne

ClearGatewayID clears the value of the "gateway_id" field.

func (*TransactionLogUpdateOne) ClearNetwork

func (tluo *TransactionLogUpdateOne) ClearNetwork() *TransactionLogUpdateOne

ClearNetwork clears the value of the "network" field.

func (*TransactionLogUpdateOne) ClearTxHash

func (tluo *TransactionLogUpdateOne) ClearTxHash() *TransactionLogUpdateOne

ClearTxHash clears the value of the "tx_hash" field.

func (*TransactionLogUpdateOne) Exec

func (tluo *TransactionLogUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*TransactionLogUpdateOne) ExecX

func (tluo *TransactionLogUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TransactionLogUpdateOne) Mutation

Mutation returns the TransactionLogMutation object of the builder.

func (*TransactionLogUpdateOne) Save

Save executes the query and returns the updated TransactionLog entity.

func (*TransactionLogUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*TransactionLogUpdateOne) Select

func (tluo *TransactionLogUpdateOne) Select(field string, fields ...string) *TransactionLogUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*TransactionLogUpdateOne) SetGatewayID

SetGatewayID sets the "gateway_id" field.

func (*TransactionLogUpdateOne) SetMetadata

func (tluo *TransactionLogUpdateOne) SetMetadata(m map[string]interface{}) *TransactionLogUpdateOne

SetMetadata sets the "metadata" field.

func (*TransactionLogUpdateOne) SetNetwork

SetNetwork sets the "network" field.

func (*TransactionLogUpdateOne) SetNillableGatewayID

func (tluo *TransactionLogUpdateOne) SetNillableGatewayID(s *string) *TransactionLogUpdateOne

SetNillableGatewayID sets the "gateway_id" field if the given value is not nil.

func (*TransactionLogUpdateOne) SetNillableNetwork

func (tluo *TransactionLogUpdateOne) SetNillableNetwork(s *string) *TransactionLogUpdateOne

SetNillableNetwork sets the "network" field if the given value is not nil.

func (*TransactionLogUpdateOne) SetNillableTxHash

func (tluo *TransactionLogUpdateOne) SetNillableTxHash(s *string) *TransactionLogUpdateOne

SetNillableTxHash sets the "tx_hash" field if the given value is not nil.

func (*TransactionLogUpdateOne) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*TransactionLogUpdateOne) Where

Where appends a list predicates to the TransactionLogUpdate builder.

type TransactionLogUpsert

type TransactionLogUpsert struct {
	*sql.UpdateSet
}

TransactionLogUpsert is the "OnConflict" setter.

func (*TransactionLogUpsert) ClearGatewayID

func (u *TransactionLogUpsert) ClearGatewayID() *TransactionLogUpsert

ClearGatewayID clears the value of the "gateway_id" field.

func (*TransactionLogUpsert) ClearNetwork

func (u *TransactionLogUpsert) ClearNetwork() *TransactionLogUpsert

ClearNetwork clears the value of the "network" field.

func (*TransactionLogUpsert) ClearTxHash

func (u *TransactionLogUpsert) ClearTxHash() *TransactionLogUpsert

ClearTxHash clears the value of the "tx_hash" field.

func (*TransactionLogUpsert) SetGatewayID

func (u *TransactionLogUpsert) SetGatewayID(v string) *TransactionLogUpsert

SetGatewayID sets the "gateway_id" field.

func (*TransactionLogUpsert) SetMetadata

func (u *TransactionLogUpsert) SetMetadata(v map[string]interface{}) *TransactionLogUpsert

SetMetadata sets the "metadata" field.

func (*TransactionLogUpsert) SetNetwork

SetNetwork sets the "network" field.

func (*TransactionLogUpsert) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*TransactionLogUpsert) UpdateGatewayID

func (u *TransactionLogUpsert) UpdateGatewayID() *TransactionLogUpsert

UpdateGatewayID sets the "gateway_id" field to the value that was provided on create.

func (*TransactionLogUpsert) UpdateMetadata

func (u *TransactionLogUpsert) UpdateMetadata() *TransactionLogUpsert

UpdateMetadata sets the "metadata" field to the value that was provided on create.

func (*TransactionLogUpsert) UpdateNetwork

func (u *TransactionLogUpsert) UpdateNetwork() *TransactionLogUpsert

UpdateNetwork sets the "network" field to the value that was provided on create.

func (*TransactionLogUpsert) UpdateTxHash

func (u *TransactionLogUpsert) UpdateTxHash() *TransactionLogUpsert

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

type TransactionLogUpsertBulk

type TransactionLogUpsertBulk struct {
	// contains filtered or unexported fields
}

TransactionLogUpsertBulk is the builder for "upsert"-ing a bulk of TransactionLog nodes.

func (*TransactionLogUpsertBulk) ClearGatewayID

ClearGatewayID clears the value of the "gateway_id" field.

func (*TransactionLogUpsertBulk) ClearNetwork

ClearNetwork clears the value of the "network" field.

func (*TransactionLogUpsertBulk) ClearTxHash

ClearTxHash clears the value of the "tx_hash" field.

func (*TransactionLogUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*TransactionLogUpsertBulk) Exec

Exec executes the query.

func (*TransactionLogUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*TransactionLogUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.TransactionLog.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*TransactionLogUpsertBulk) SetGatewayID

SetGatewayID sets the "gateway_id" field.

func (*TransactionLogUpsertBulk) SetMetadata

func (u *TransactionLogUpsertBulk) SetMetadata(v map[string]interface{}) *TransactionLogUpsertBulk

SetMetadata sets the "metadata" field.

func (*TransactionLogUpsertBulk) SetNetwork

SetNetwork sets the "network" field.

func (*TransactionLogUpsertBulk) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*TransactionLogUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the TransactionLogCreateBulk.OnConflict documentation for more info.

func (*TransactionLogUpsertBulk) UpdateGatewayID

func (u *TransactionLogUpsertBulk) UpdateGatewayID() *TransactionLogUpsertBulk

UpdateGatewayID sets the "gateway_id" field to the value that was provided on create.

func (*TransactionLogUpsertBulk) UpdateMetadata

UpdateMetadata sets the "metadata" field to the value that was provided on create.

func (*TransactionLogUpsertBulk) UpdateNetwork

UpdateNetwork sets the "network" field to the value that was provided on create.

func (*TransactionLogUpsertBulk) UpdateNewValues

func (u *TransactionLogUpsertBulk) UpdateNewValues() *TransactionLogUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.TransactionLog.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(transactionlog.FieldID)
		}),
	).
	Exec(ctx)

func (*TransactionLogUpsertBulk) UpdateTxHash

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

type TransactionLogUpsertOne

type TransactionLogUpsertOne struct {
	// contains filtered or unexported fields
}

TransactionLogUpsertOne is the builder for "upsert"-ing

one TransactionLog node.

func (*TransactionLogUpsertOne) ClearGatewayID

func (u *TransactionLogUpsertOne) ClearGatewayID() *TransactionLogUpsertOne

ClearGatewayID clears the value of the "gateway_id" field.

func (*TransactionLogUpsertOne) ClearNetwork

ClearNetwork clears the value of the "network" field.

func (*TransactionLogUpsertOne) ClearTxHash

ClearTxHash clears the value of the "tx_hash" field.

func (*TransactionLogUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*TransactionLogUpsertOne) Exec

Exec executes the query.

func (*TransactionLogUpsertOne) ExecX

func (u *TransactionLogUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TransactionLogUpsertOne) ID

func (u *TransactionLogUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*TransactionLogUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*TransactionLogUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.TransactionLog.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*TransactionLogUpsertOne) SetGatewayID

SetGatewayID sets the "gateway_id" field.

func (*TransactionLogUpsertOne) SetMetadata

func (u *TransactionLogUpsertOne) SetMetadata(v map[string]interface{}) *TransactionLogUpsertOne

SetMetadata sets the "metadata" field.

func (*TransactionLogUpsertOne) SetNetwork

SetNetwork sets the "network" field.

func (*TransactionLogUpsertOne) SetTxHash

SetTxHash sets the "tx_hash" field.

func (*TransactionLogUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the TransactionLogCreate.OnConflict documentation for more info.

func (*TransactionLogUpsertOne) UpdateGatewayID

func (u *TransactionLogUpsertOne) UpdateGatewayID() *TransactionLogUpsertOne

UpdateGatewayID sets the "gateway_id" field to the value that was provided on create.

func (*TransactionLogUpsertOne) UpdateMetadata

func (u *TransactionLogUpsertOne) UpdateMetadata() *TransactionLogUpsertOne

UpdateMetadata sets the "metadata" field to the value that was provided on create.

func (*TransactionLogUpsertOne) UpdateNetwork

UpdateNetwork sets the "network" field to the value that was provided on create.

func (*TransactionLogUpsertOne) UpdateNewValues

func (u *TransactionLogUpsertOne) UpdateNewValues() *TransactionLogUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.TransactionLog.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(transactionlog.FieldID)
		}),
	).
	Exec(ctx)

func (*TransactionLogUpsertOne) UpdateTxHash

UpdateTxHash sets the "tx_hash" field to the value that was provided on create.

type TransactionLogs

type TransactionLogs []*TransactionLog

TransactionLogs is a parsable slice of TransactionLog.

type TraverseFunc

type TraverseFunc = ent.TraverseFunc

ent aliases to avoid import conflicts in user's code.

type Traverser

type Traverser = ent.Traverser

ent aliases to avoid import conflicts in user's code.

type Tx

type Tx struct {

	// APIKey is the client for interacting with the APIKey builders.
	APIKey *APIKeyClient
	// BeneficialOwner is the client for interacting with the BeneficialOwner builders.
	BeneficialOwner *BeneficialOwnerClient
	// FiatCurrency is the client for interacting with the FiatCurrency builders.
	FiatCurrency *FiatCurrencyClient
	// IdentityVerificationRequest is the client for interacting with the IdentityVerificationRequest builders.
	IdentityVerificationRequest *IdentityVerificationRequestClient
	// Institution is the client for interacting with the Institution builders.
	Institution *InstitutionClient
	// KYBProfile is the client for interacting with the KYBProfile builders.
	KYBProfile *KYBProfileClient
	// LinkedAddress is the client for interacting with the LinkedAddress builders.
	LinkedAddress *LinkedAddressClient
	// LockOrderFulfillment is the client for interacting with the LockOrderFulfillment builders.
	LockOrderFulfillment *LockOrderFulfillmentClient
	// LockPaymentOrder is the client for interacting with the LockPaymentOrder builders.
	LockPaymentOrder *LockPaymentOrderClient
	// Network is the client for interacting with the Network builders.
	Network *NetworkClient
	// PaymentOrder is the client for interacting with the PaymentOrder builders.
	PaymentOrder *PaymentOrderClient
	// PaymentOrderRecipient is the client for interacting with the PaymentOrderRecipient builders.
	PaymentOrderRecipient *PaymentOrderRecipientClient
	// PaymentWebhook is the client for interacting with the PaymentWebhook builders.
	PaymentWebhook *PaymentWebhookClient
	// ProviderCurrencies is the client for interacting with the ProviderCurrencies builders.
	ProviderCurrencies *ProviderCurrenciesClient
	// ProviderOrderToken is the client for interacting with the ProviderOrderToken builders.
	ProviderOrderToken *ProviderOrderTokenClient
	// ProviderProfile is the client for interacting with the ProviderProfile builders.
	ProviderProfile *ProviderProfileClient
	// ProviderRating is the client for interacting with the ProviderRating builders.
	ProviderRating *ProviderRatingClient
	// ProvisionBucket is the client for interacting with the ProvisionBucket builders.
	ProvisionBucket *ProvisionBucketClient
	// ReceiveAddress is the client for interacting with the ReceiveAddress builders.
	ReceiveAddress *ReceiveAddressClient
	// SenderOrderToken is the client for interacting with the SenderOrderToken builders.
	SenderOrderToken *SenderOrderTokenClient
	// SenderProfile is the client for interacting with the SenderProfile builders.
	SenderProfile *SenderProfileClient
	// Token is the client for interacting with the Token builders.
	Token *TokenClient
	// TransactionLog is the client for interacting with the TransactionLog builders.
	TransactionLog *TransactionLogClient
	// User is the client for interacting with the User builders.
	User *UserClient
	// VerificationToken is the client for interacting with the VerificationToken builders.
	VerificationToken *VerificationTokenClient
	// WebhookRetryAttempt is the client for interacting with the WebhookRetryAttempt builders.
	WebhookRetryAttempt *WebhookRetryAttemptClient
	// contains filtered or unexported fields
}

Tx is a transactional client that is created by calling Client.Tx().

func TxFromContext

func TxFromContext(ctx context.Context) *Tx

TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

func (*Tx) Client

func (tx *Tx) Client() *Client

Client returns a Client that binds to current transaction.

func (*Tx) Commit

func (tx *Tx) Commit() error

Commit commits the transaction.

func (*Tx) OnCommit

func (tx *Tx) OnCommit(f CommitHook)

OnCommit adds a hook to call on commit.

func (*Tx) OnRollback

func (tx *Tx) OnRollback(f RollbackHook)

OnRollback adds a hook to call on rollback.

func (*Tx) Rollback

func (tx *Tx) Rollback() error

Rollback rollbacks the transaction.

type User

type User struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// FirstName holds the value of the "first_name" field.
	FirstName string `json:"first_name,omitempty"`
	// LastName holds the value of the "last_name" field.
	LastName string `json:"last_name,omitempty"`
	// Email holds the value of the "email" field.
	Email string `json:"email,omitempty"`
	// Password holds the value of the "password" field.
	Password string `json:"-"`
	// Scope holds the value of the "scope" field.
	Scope string `json:"scope,omitempty"`
	// IsEmailVerified holds the value of the "is_email_verified" field.
	IsEmailVerified bool `json:"is_email_verified,omitempty"`
	// HasEarlyAccess holds the value of the "has_early_access" field.
	HasEarlyAccess bool `json:"has_early_access,omitempty"`
	// KybVerificationStatus holds the value of the "kyb_verification_status" field.
	KybVerificationStatus user.KybVerificationStatus `json:"kyb_verification_status,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the UserQuery when eager-loading is set.
	Edges UserEdges `json:"edges"`
	// contains filtered or unexported fields
}

User is the model entity for the User schema.

func (*User) QueryKybProfile

func (u *User) QueryKybProfile() *KYBProfileQuery

QueryKybProfile queries the "kyb_profile" edge of the User entity.

func (*User) QueryProviderProfile

func (u *User) QueryProviderProfile() *ProviderProfileQuery

QueryProviderProfile queries the "provider_profile" edge of the User entity.

func (*User) QuerySenderProfile

func (u *User) QuerySenderProfile() *SenderProfileQuery

QuerySenderProfile queries the "sender_profile" edge of the User entity.

func (*User) QueryVerificationToken

func (u *User) QueryVerificationToken() *VerificationTokenQuery

QueryVerificationToken queries the "verification_token" edge of the User entity.

func (*User) String

func (u *User) String() string

String implements the fmt.Stringer.

func (*User) Unwrap

func (u *User) Unwrap() *User

Unwrap unwraps the User entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*User) Update

func (u *User) Update() *UserUpdateOne

Update returns a builder for updating this User. Note that you need to call User.Unwrap() before calling this method if this User was returned from a transaction, and the transaction was committed or rolled back.

func (*User) Value

func (u *User) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the User. This includes values selected through modifiers, order, etc.

type UserClient

type UserClient struct {
	// contains filtered or unexported fields
}

UserClient is a client for the User schema.

func NewUserClient

func NewUserClient(c config) *UserClient

NewUserClient returns a client for the User from the given config.

func (*UserClient) Create

func (c *UserClient) Create() *UserCreate

Create returns a builder for creating a User entity.

func (*UserClient) CreateBulk

func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk

CreateBulk returns a builder for creating a bulk of User entities.

func (*UserClient) Delete

func (c *UserClient) Delete() *UserDelete

Delete returns a delete builder for User.

func (*UserClient) DeleteOne

func (c *UserClient) DeleteOne(u *User) *UserDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*UserClient) DeleteOneID

func (c *UserClient) DeleteOneID(id uuid.UUID) *UserDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*UserClient) Get

func (c *UserClient) Get(ctx context.Context, id uuid.UUID) (*User, error)

Get returns a User entity by its id.

func (*UserClient) GetX

func (c *UserClient) GetX(ctx context.Context, id uuid.UUID) *User

GetX is like Get, but panics if an error occurs.

func (*UserClient) Hooks

func (c *UserClient) Hooks() []Hook

Hooks returns the client hooks.

func (*UserClient) Intercept

func (c *UserClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`.

func (*UserClient) Interceptors

func (c *UserClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*UserClient) MapCreateBulk

func (c *UserClient) MapCreateBulk(slice any, setFunc func(*UserCreate, int)) *UserCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*UserClient) Query

func (c *UserClient) Query() *UserQuery

Query returns a query builder for User.

func (*UserClient) QueryKybProfile

func (c *UserClient) QueryKybProfile(u *User) *KYBProfileQuery

QueryKybProfile queries the kyb_profile edge of a User.

func (*UserClient) QueryProviderProfile

func (c *UserClient) QueryProviderProfile(u *User) *ProviderProfileQuery

QueryProviderProfile queries the provider_profile edge of a User.

func (*UserClient) QuerySenderProfile

func (c *UserClient) QuerySenderProfile(u *User) *SenderProfileQuery

QuerySenderProfile queries the sender_profile edge of a User.

func (*UserClient) QueryVerificationToken

func (c *UserClient) QueryVerificationToken(u *User) *VerificationTokenQuery

QueryVerificationToken queries the verification_token edge of a User.

func (*UserClient) Update

func (c *UserClient) Update() *UserUpdate

Update returns an update builder for User.

func (*UserClient) UpdateOne

func (c *UserClient) UpdateOne(u *User) *UserUpdateOne

UpdateOne returns an update builder for the given entity.

func (*UserClient) UpdateOneID

func (c *UserClient) UpdateOneID(id uuid.UUID) *UserUpdateOne

UpdateOneID returns an update builder for the given id.

func (*UserClient) Use

func (c *UserClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `user.Hooks(f(g(h())))`.

type UserCreate

type UserCreate struct {
	// contains filtered or unexported fields
}

UserCreate is the builder for creating a User entity.

func (*UserCreate) AddVerificationToken

func (uc *UserCreate) AddVerificationToken(v ...*VerificationToken) *UserCreate

AddVerificationToken adds the "verification_token" edges to the VerificationToken entity.

func (*UserCreate) AddVerificationTokenIDs

func (uc *UserCreate) AddVerificationTokenIDs(ids ...uuid.UUID) *UserCreate

AddVerificationTokenIDs adds the "verification_token" edge to the VerificationToken entity by IDs.

func (*UserCreate) Exec

func (uc *UserCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserCreate) ExecX

func (uc *UserCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserCreate) Mutation

func (uc *UserCreate) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserCreate) OnConflict

func (uc *UserCreate) OnConflict(opts ...sql.ConflictOption) *UserUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.User.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.UserUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*UserCreate) OnConflictColumns

func (uc *UserCreate) OnConflictColumns(columns ...string) *UserUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.User.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*UserCreate) Save

func (uc *UserCreate) Save(ctx context.Context) (*User, error)

Save creates the User in the database.

func (*UserCreate) SaveX

func (uc *UserCreate) SaveX(ctx context.Context) *User

SaveX calls Save and panics if Save returns an error.

func (*UserCreate) SetCreatedAt

func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate

SetCreatedAt sets the "created_at" field.

func (*UserCreate) SetEmail

func (uc *UserCreate) SetEmail(s string) *UserCreate

SetEmail sets the "email" field.

func (*UserCreate) SetFirstName

func (uc *UserCreate) SetFirstName(s string) *UserCreate

SetFirstName sets the "first_name" field.

func (*UserCreate) SetHasEarlyAccess

func (uc *UserCreate) SetHasEarlyAccess(b bool) *UserCreate

SetHasEarlyAccess sets the "has_early_access" field.

func (*UserCreate) SetID

func (uc *UserCreate) SetID(u uuid.UUID) *UserCreate

SetID sets the "id" field.

func (*UserCreate) SetIsEmailVerified

func (uc *UserCreate) SetIsEmailVerified(b bool) *UserCreate

SetIsEmailVerified sets the "is_email_verified" field.

func (*UserCreate) SetKybProfile

func (uc *UserCreate) SetKybProfile(k *KYBProfile) *UserCreate

SetKybProfile sets the "kyb_profile" edge to the KYBProfile entity.

func (*UserCreate) SetKybProfileID

func (uc *UserCreate) SetKybProfileID(id uuid.UUID) *UserCreate

SetKybProfileID sets the "kyb_profile" edge to the KYBProfile entity by ID.

func (*UserCreate) SetKybVerificationStatus

func (uc *UserCreate) SetKybVerificationStatus(uvs user.KybVerificationStatus) *UserCreate

SetKybVerificationStatus sets the "kyb_verification_status" field.

func (*UserCreate) SetLastName

func (uc *UserCreate) SetLastName(s string) *UserCreate

SetLastName sets the "last_name" field.

func (*UserCreate) SetNillableCreatedAt

func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*UserCreate) SetNillableHasEarlyAccess

func (uc *UserCreate) SetNillableHasEarlyAccess(b *bool) *UserCreate

SetNillableHasEarlyAccess sets the "has_early_access" field if the given value is not nil.

func (*UserCreate) SetNillableID

func (uc *UserCreate) SetNillableID(u *uuid.UUID) *UserCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*UserCreate) SetNillableIsEmailVerified

func (uc *UserCreate) SetNillableIsEmailVerified(b *bool) *UserCreate

SetNillableIsEmailVerified sets the "is_email_verified" field if the given value is not nil.

func (*UserCreate) SetNillableKybProfileID

func (uc *UserCreate) SetNillableKybProfileID(id *uuid.UUID) *UserCreate

SetNillableKybProfileID sets the "kyb_profile" edge to the KYBProfile entity by ID if the given value is not nil.

func (*UserCreate) SetNillableKybVerificationStatus

func (uc *UserCreate) SetNillableKybVerificationStatus(uvs *user.KybVerificationStatus) *UserCreate

SetNillableKybVerificationStatus sets the "kyb_verification_status" field if the given value is not nil.

func (*UserCreate) SetNillableProviderProfileID

func (uc *UserCreate) SetNillableProviderProfileID(id *string) *UserCreate

SetNillableProviderProfileID sets the "provider_profile" edge to the ProviderProfile entity by ID if the given value is not nil.

func (*UserCreate) SetNillableSenderProfileID

func (uc *UserCreate) SetNillableSenderProfileID(id *uuid.UUID) *UserCreate

SetNillableSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID if the given value is not nil.

func (*UserCreate) SetNillableUpdatedAt

func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*UserCreate) SetPassword

func (uc *UserCreate) SetPassword(s string) *UserCreate

SetPassword sets the "password" field.

func (*UserCreate) SetProviderProfile

func (uc *UserCreate) SetProviderProfile(p *ProviderProfile) *UserCreate

SetProviderProfile sets the "provider_profile" edge to the ProviderProfile entity.

func (*UserCreate) SetProviderProfileID

func (uc *UserCreate) SetProviderProfileID(id string) *UserCreate

SetProviderProfileID sets the "provider_profile" edge to the ProviderProfile entity by ID.

func (*UserCreate) SetScope

func (uc *UserCreate) SetScope(s string) *UserCreate

SetScope sets the "scope" field.

func (*UserCreate) SetSenderProfile

func (uc *UserCreate) SetSenderProfile(s *SenderProfile) *UserCreate

SetSenderProfile sets the "sender_profile" edge to the SenderProfile entity.

func (*UserCreate) SetSenderProfileID

func (uc *UserCreate) SetSenderProfileID(id uuid.UUID) *UserCreate

SetSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID.

func (*UserCreate) SetUpdatedAt

func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate

SetUpdatedAt sets the "updated_at" field.

type UserCreateBulk

type UserCreateBulk struct {
	// contains filtered or unexported fields
}

UserCreateBulk is the builder for creating many User entities in bulk.

func (*UserCreateBulk) Exec

func (ucb *UserCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserCreateBulk) ExecX

func (ucb *UserCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserCreateBulk) OnConflict

func (ucb *UserCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserUpsertBulk

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.User.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.UserUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*UserCreateBulk) OnConflictColumns

func (ucb *UserCreateBulk) OnConflictColumns(columns ...string) *UserUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.User.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*UserCreateBulk) Save

func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error)

Save creates the User entities in the database.

func (*UserCreateBulk) SaveX

func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User

SaveX is like Save, but panics if an error occurs.

type UserDelete

type UserDelete struct {
	// contains filtered or unexported fields
}

UserDelete is the builder for deleting a User entity.

func (*UserDelete) Exec

func (ud *UserDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*UserDelete) ExecX

func (ud *UserDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*UserDelete) Where

func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete

Where appends a list predicates to the UserDelete builder.

type UserDeleteOne

type UserDeleteOne struct {
	// contains filtered or unexported fields
}

UserDeleteOne is the builder for deleting a single User entity.

func (*UserDeleteOne) Exec

func (udo *UserDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*UserDeleteOne) ExecX

func (udo *UserDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserDeleteOne) Where

func (udo *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne

Where appends a list predicates to the UserDelete builder.

type UserEdges

type UserEdges struct {
	// SenderProfile holds the value of the sender_profile edge.
	SenderProfile *SenderProfile `json:"sender_profile,omitempty"`
	// ProviderProfile holds the value of the provider_profile edge.
	ProviderProfile *ProviderProfile `json:"provider_profile,omitempty"`
	// VerificationToken holds the value of the verification_token edge.
	VerificationToken []*VerificationToken `json:"verification_token,omitempty"`
	// KybProfile holds the value of the kyb_profile edge.
	KybProfile *KYBProfile `json:"kyb_profile,omitempty"`
	// contains filtered or unexported fields
}

UserEdges holds the relations/edges for other nodes in the graph.

func (UserEdges) KybProfileOrErr

func (e UserEdges) KybProfileOrErr() (*KYBProfile, error)

KybProfileOrErr returns the KybProfile value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (UserEdges) ProviderProfileOrErr

func (e UserEdges) ProviderProfileOrErr() (*ProviderProfile, error)

ProviderProfileOrErr returns the ProviderProfile value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (UserEdges) SenderProfileOrErr

func (e UserEdges) SenderProfileOrErr() (*SenderProfile, error)

SenderProfileOrErr returns the SenderProfile value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (UserEdges) VerificationTokenOrErr

func (e UserEdges) VerificationTokenOrErr() ([]*VerificationToken, error)

VerificationTokenOrErr returns the VerificationToken value or an error if the edge was not loaded in eager-loading.

type UserGroupBy

type UserGroupBy struct {
	// contains filtered or unexported fields
}

UserGroupBy is the group-by builder for User entities.

func (*UserGroupBy) Aggregate

func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*UserGroupBy) Bool

func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) BoolX

func (s *UserGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserGroupBy) Bools

func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) BoolsX

func (s *UserGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserGroupBy) Float64

func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) Float64X

func (s *UserGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserGroupBy) Float64s

func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) Float64sX

func (s *UserGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserGroupBy) Int

func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) IntX

func (s *UserGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserGroupBy) Ints

func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) IntsX

func (s *UserGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserGroupBy) Scan

func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserGroupBy) ScanX

func (s *UserGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserGroupBy) String

func (s *UserGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) StringX

func (s *UserGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserGroupBy) Strings

func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserGroupBy) StringsX

func (s *UserGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserMutation

type UserMutation struct {
	// contains filtered or unexported fields
}

UserMutation represents an operation that mutates the User nodes in the graph.

func (*UserMutation) AddField

func (m *UserMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*UserMutation) AddVerificationTokenIDs

func (m *UserMutation) AddVerificationTokenIDs(ids ...uuid.UUID)

AddVerificationTokenIDs adds the "verification_token" edge to the VerificationToken entity by ids.

func (*UserMutation) AddedEdges

func (m *UserMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*UserMutation) AddedField

func (m *UserMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*UserMutation) AddedFields

func (m *UserMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*UserMutation) AddedIDs

func (m *UserMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*UserMutation) ClearEdge

func (m *UserMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*UserMutation) ClearField

func (m *UserMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*UserMutation) ClearKybProfile

func (m *UserMutation) ClearKybProfile()

ClearKybProfile clears the "kyb_profile" edge to the KYBProfile entity.

func (*UserMutation) ClearProviderProfile

func (m *UserMutation) ClearProviderProfile()

ClearProviderProfile clears the "provider_profile" edge to the ProviderProfile entity.

func (*UserMutation) ClearSenderProfile

func (m *UserMutation) ClearSenderProfile()

ClearSenderProfile clears the "sender_profile" edge to the SenderProfile entity.

func (*UserMutation) ClearVerificationToken

func (m *UserMutation) ClearVerificationToken()

ClearVerificationToken clears the "verification_token" edge to the VerificationToken entity.

func (*UserMutation) ClearedEdges

func (m *UserMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*UserMutation) ClearedFields

func (m *UserMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (UserMutation) Client

func (m UserMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*UserMutation) CreatedAt

func (m *UserMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*UserMutation) EdgeCleared

func (m *UserMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*UserMutation) Email

func (m *UserMutation) Email() (r string, exists bool)

Email returns the value of the "email" field in the mutation.

func (*UserMutation) Field

func (m *UserMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*UserMutation) FieldCleared

func (m *UserMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*UserMutation) Fields

func (m *UserMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*UserMutation) FirstName

func (m *UserMutation) FirstName() (r string, exists bool)

FirstName returns the value of the "first_name" field in the mutation.

func (*UserMutation) HasEarlyAccess

func (m *UserMutation) HasEarlyAccess() (r bool, exists bool)

HasEarlyAccess returns the value of the "has_early_access" field in the mutation.

func (*UserMutation) ID

func (m *UserMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*UserMutation) IDs

func (m *UserMutation) IDs(ctx context.Context) ([]uuid.UUID, error)

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*UserMutation) IsEmailVerified

func (m *UserMutation) IsEmailVerified() (r bool, exists bool)

IsEmailVerified returns the value of the "is_email_verified" field in the mutation.

func (*UserMutation) KybProfileCleared

func (m *UserMutation) KybProfileCleared() bool

KybProfileCleared reports if the "kyb_profile" edge to the KYBProfile entity was cleared.

func (*UserMutation) KybProfileID

func (m *UserMutation) KybProfileID() (id uuid.UUID, exists bool)

KybProfileID returns the "kyb_profile" edge ID in the mutation.

func (*UserMutation) KybProfileIDs

func (m *UserMutation) KybProfileIDs() (ids []uuid.UUID)

KybProfileIDs returns the "kyb_profile" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use KybProfileID instead. It exists only for internal usage by the builders.

func (*UserMutation) KybVerificationStatus

func (m *UserMutation) KybVerificationStatus() (r user.KybVerificationStatus, exists bool)

KybVerificationStatus returns the value of the "kyb_verification_status" field in the mutation.

func (*UserMutation) LastName

func (m *UserMutation) LastName() (r string, exists bool)

LastName returns the value of the "last_name" field in the mutation.

func (*UserMutation) OldCreatedAt

func (m *UserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldEmail

func (m *UserMutation) OldEmail(ctx context.Context) (v string, err error)

OldEmail returns the old "email" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldField

func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*UserMutation) OldFirstName

func (m *UserMutation) OldFirstName(ctx context.Context) (v string, err error)

OldFirstName returns the old "first_name" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldHasEarlyAccess

func (m *UserMutation) OldHasEarlyAccess(ctx context.Context) (v bool, err error)

OldHasEarlyAccess returns the old "has_early_access" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldIsEmailVerified

func (m *UserMutation) OldIsEmailVerified(ctx context.Context) (v bool, err error)

OldIsEmailVerified returns the old "is_email_verified" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldKybVerificationStatus

func (m *UserMutation) OldKybVerificationStatus(ctx context.Context) (v user.KybVerificationStatus, err error)

OldKybVerificationStatus returns the old "kyb_verification_status" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldLastName

func (m *UserMutation) OldLastName(ctx context.Context) (v string, err error)

OldLastName returns the old "last_name" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldPassword

func (m *UserMutation) OldPassword(ctx context.Context) (v string, err error)

OldPassword returns the old "password" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldScope

func (m *UserMutation) OldScope(ctx context.Context) (v string, err error)

OldScope returns the old "scope" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) OldUpdatedAt

func (m *UserMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*UserMutation) Op

func (m *UserMutation) Op() Op

Op returns the operation name.

func (*UserMutation) Password

func (m *UserMutation) Password() (r string, exists bool)

Password returns the value of the "password" field in the mutation.

func (*UserMutation) ProviderProfileCleared

func (m *UserMutation) ProviderProfileCleared() bool

ProviderProfileCleared reports if the "provider_profile" edge to the ProviderProfile entity was cleared.

func (*UserMutation) ProviderProfileID

func (m *UserMutation) ProviderProfileID() (id string, exists bool)

ProviderProfileID returns the "provider_profile" edge ID in the mutation.

func (*UserMutation) ProviderProfileIDs

func (m *UserMutation) ProviderProfileIDs() (ids []string)

ProviderProfileIDs returns the "provider_profile" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProviderProfileID instead. It exists only for internal usage by the builders.

func (*UserMutation) RemoveVerificationTokenIDs

func (m *UserMutation) RemoveVerificationTokenIDs(ids ...uuid.UUID)

RemoveVerificationTokenIDs removes the "verification_token" edge to the VerificationToken entity by IDs.

func (*UserMutation) RemovedEdges

func (m *UserMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*UserMutation) RemovedIDs

func (m *UserMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*UserMutation) RemovedVerificationTokenIDs

func (m *UserMutation) RemovedVerificationTokenIDs() (ids []uuid.UUID)

RemovedVerificationToken returns the removed IDs of the "verification_token" edge to the VerificationToken entity.

func (*UserMutation) ResetCreatedAt

func (m *UserMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*UserMutation) ResetEdge

func (m *UserMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*UserMutation) ResetEmail

func (m *UserMutation) ResetEmail()

ResetEmail resets all changes to the "email" field.

func (*UserMutation) ResetField

func (m *UserMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*UserMutation) ResetFirstName

func (m *UserMutation) ResetFirstName()

ResetFirstName resets all changes to the "first_name" field.

func (*UserMutation) ResetHasEarlyAccess

func (m *UserMutation) ResetHasEarlyAccess()

ResetHasEarlyAccess resets all changes to the "has_early_access" field.

func (*UserMutation) ResetIsEmailVerified

func (m *UserMutation) ResetIsEmailVerified()

ResetIsEmailVerified resets all changes to the "is_email_verified" field.

func (*UserMutation) ResetKybProfile

func (m *UserMutation) ResetKybProfile()

ResetKybProfile resets all changes to the "kyb_profile" edge.

func (*UserMutation) ResetKybVerificationStatus

func (m *UserMutation) ResetKybVerificationStatus()

ResetKybVerificationStatus resets all changes to the "kyb_verification_status" field.

func (*UserMutation) ResetLastName

func (m *UserMutation) ResetLastName()

ResetLastName resets all changes to the "last_name" field.

func (*UserMutation) ResetPassword

func (m *UserMutation) ResetPassword()

ResetPassword resets all changes to the "password" field.

func (*UserMutation) ResetProviderProfile

func (m *UserMutation) ResetProviderProfile()

ResetProviderProfile resets all changes to the "provider_profile" edge.

func (*UserMutation) ResetScope

func (m *UserMutation) ResetScope()

ResetScope resets all changes to the "scope" field.

func (*UserMutation) ResetSenderProfile

func (m *UserMutation) ResetSenderProfile()

ResetSenderProfile resets all changes to the "sender_profile" edge.

func (*UserMutation) ResetUpdatedAt

func (m *UserMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*UserMutation) ResetVerificationToken

func (m *UserMutation) ResetVerificationToken()

ResetVerificationToken resets all changes to the "verification_token" edge.

func (*UserMutation) Scope

func (m *UserMutation) Scope() (r string, exists bool)

Scope returns the value of the "scope" field in the mutation.

func (*UserMutation) SenderProfileCleared

func (m *UserMutation) SenderProfileCleared() bool

SenderProfileCleared reports if the "sender_profile" edge to the SenderProfile entity was cleared.

func (*UserMutation) SenderProfileID

func (m *UserMutation) SenderProfileID() (id uuid.UUID, exists bool)

SenderProfileID returns the "sender_profile" edge ID in the mutation.

func (*UserMutation) SenderProfileIDs

func (m *UserMutation) SenderProfileIDs() (ids []uuid.UUID)

SenderProfileIDs returns the "sender_profile" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SenderProfileID instead. It exists only for internal usage by the builders.

func (*UserMutation) SetCreatedAt

func (m *UserMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*UserMutation) SetEmail

func (m *UserMutation) SetEmail(s string)

SetEmail sets the "email" field.

func (*UserMutation) SetField

func (m *UserMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*UserMutation) SetFirstName

func (m *UserMutation) SetFirstName(s string)

SetFirstName sets the "first_name" field.

func (*UserMutation) SetHasEarlyAccess

func (m *UserMutation) SetHasEarlyAccess(b bool)

SetHasEarlyAccess sets the "has_early_access" field.

func (*UserMutation) SetID

func (m *UserMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of User entities.

func (*UserMutation) SetIsEmailVerified

func (m *UserMutation) SetIsEmailVerified(b bool)

SetIsEmailVerified sets the "is_email_verified" field.

func (*UserMutation) SetKybProfileID

func (m *UserMutation) SetKybProfileID(id uuid.UUID)

SetKybProfileID sets the "kyb_profile" edge to the KYBProfile entity by id.

func (*UserMutation) SetKybVerificationStatus

func (m *UserMutation) SetKybVerificationStatus(uvs user.KybVerificationStatus)

SetKybVerificationStatus sets the "kyb_verification_status" field.

func (*UserMutation) SetLastName

func (m *UserMutation) SetLastName(s string)

SetLastName sets the "last_name" field.

func (*UserMutation) SetOp

func (m *UserMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*UserMutation) SetPassword

func (m *UserMutation) SetPassword(s string)

SetPassword sets the "password" field.

func (*UserMutation) SetProviderProfileID

func (m *UserMutation) SetProviderProfileID(id string)

SetProviderProfileID sets the "provider_profile" edge to the ProviderProfile entity by id.

func (*UserMutation) SetScope

func (m *UserMutation) SetScope(s string)

SetScope sets the "scope" field.

func (*UserMutation) SetSenderProfileID

func (m *UserMutation) SetSenderProfileID(id uuid.UUID)

SetSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by id.

func (*UserMutation) SetUpdatedAt

func (m *UserMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (UserMutation) Tx

func (m UserMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*UserMutation) Type

func (m *UserMutation) Type() string

Type returns the node type of this mutation (User).

func (*UserMutation) UpdatedAt

func (m *UserMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*UserMutation) VerificationTokenCleared

func (m *UserMutation) VerificationTokenCleared() bool

VerificationTokenCleared reports if the "verification_token" edge to the VerificationToken entity was cleared.

func (*UserMutation) VerificationTokenIDs

func (m *UserMutation) VerificationTokenIDs() (ids []uuid.UUID)

VerificationTokenIDs returns the "verification_token" edge IDs in the mutation.

func (*UserMutation) Where

func (m *UserMutation) Where(ps ...predicate.User)

Where appends a list predicates to the UserMutation builder.

func (*UserMutation) WhereP

func (m *UserMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the UserMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type UserQuery

type UserQuery struct {
	// contains filtered or unexported fields
}

UserQuery is the builder for querying User entities.

func (*UserQuery) Aggregate

func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect

Aggregate returns a UserSelect configured with the given aggregations.

func (*UserQuery) All

func (uq *UserQuery) All(ctx context.Context) ([]*User, error)

All executes the query and returns a list of Users.

func (*UserQuery) AllX

func (uq *UserQuery) AllX(ctx context.Context) []*User

AllX is like All, but panics if an error occurs.

func (*UserQuery) Clone

func (uq *UserQuery) Clone() *UserQuery

Clone returns a duplicate of the UserQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*UserQuery) Count

func (uq *UserQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*UserQuery) CountX

func (uq *UserQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*UserQuery) Exist

func (uq *UserQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*UserQuery) ExistX

func (uq *UserQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*UserQuery) First

func (uq *UserQuery) First(ctx context.Context) (*User, error)

First returns the first User entity from the query. Returns a *NotFoundError when no User was found.

func (*UserQuery) FirstID

func (uq *UserQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first User ID from the query. Returns a *NotFoundError when no User ID was found.

func (*UserQuery) FirstIDX

func (uq *UserQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*UserQuery) FirstX

func (uq *UserQuery) FirstX(ctx context.Context) *User

FirstX is like First, but panics if an error occurs.

func (*UserQuery) GroupBy

func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.User.Query().
	GroupBy(user.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*UserQuery) IDs

func (uq *UserQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of User IDs.

func (*UserQuery) IDsX

func (uq *UserQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*UserQuery) Limit

func (uq *UserQuery) Limit(limit int) *UserQuery

Limit the number of records to be returned by this query.

func (*UserQuery) Offset

func (uq *UserQuery) Offset(offset int) *UserQuery

Offset to start from.

func (*UserQuery) Only

func (uq *UserQuery) Only(ctx context.Context) (*User, error)

Only returns a single User entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one User entity is found. Returns a *NotFoundError when no User entities are found.

func (*UserQuery) OnlyID

func (uq *UserQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only User ID in the query. Returns a *NotSingularError when more than one User ID is found. Returns a *NotFoundError when no entities are found.

func (*UserQuery) OnlyIDX

func (uq *UserQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*UserQuery) OnlyX

func (uq *UserQuery) OnlyX(ctx context.Context) *User

OnlyX is like Only, but panics if an error occurs.

func (*UserQuery) Order

func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery

Order specifies how the records should be ordered.

func (*UserQuery) QueryKybProfile

func (uq *UserQuery) QueryKybProfile() *KYBProfileQuery

QueryKybProfile chains the current query on the "kyb_profile" edge.

func (*UserQuery) QueryProviderProfile

func (uq *UserQuery) QueryProviderProfile() *ProviderProfileQuery

QueryProviderProfile chains the current query on the "provider_profile" edge.

func (*UserQuery) QuerySenderProfile

func (uq *UserQuery) QuerySenderProfile() *SenderProfileQuery

QuerySenderProfile chains the current query on the "sender_profile" edge.

func (*UserQuery) QueryVerificationToken

func (uq *UserQuery) QueryVerificationToken() *VerificationTokenQuery

QueryVerificationToken chains the current query on the "verification_token" edge.

func (*UserQuery) Select

func (uq *UserQuery) Select(fields ...string) *UserSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.User.Query().
	Select(user.FieldCreatedAt).
	Scan(ctx, &v)

func (*UserQuery) Unique

func (uq *UserQuery) Unique(unique bool) *UserQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*UserQuery) Where

func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery

Where adds a new predicate for the UserQuery builder.

func (*UserQuery) WithKybProfile

func (uq *UserQuery) WithKybProfile(opts ...func(*KYBProfileQuery)) *UserQuery

WithKybProfile tells the query-builder to eager-load the nodes that are connected to the "kyb_profile" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithProviderProfile

func (uq *UserQuery) WithProviderProfile(opts ...func(*ProviderProfileQuery)) *UserQuery

WithProviderProfile tells the query-builder to eager-load the nodes that are connected to the "provider_profile" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithSenderProfile

func (uq *UserQuery) WithSenderProfile(opts ...func(*SenderProfileQuery)) *UserQuery

WithSenderProfile tells the query-builder to eager-load the nodes that are connected to the "sender_profile" edge. The optional arguments are used to configure the query builder of the edge.

func (*UserQuery) WithVerificationToken

func (uq *UserQuery) WithVerificationToken(opts ...func(*VerificationTokenQuery)) *UserQuery

WithVerificationToken tells the query-builder to eager-load the nodes that are connected to the "verification_token" edge. The optional arguments are used to configure the query builder of the edge.

type UserSelect

type UserSelect struct {
	*UserQuery
	// contains filtered or unexported fields
}

UserSelect is the builder for selecting fields of User entities.

func (*UserSelect) Aggregate

func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect

Aggregate adds the given aggregation functions to the selector query.

func (*UserSelect) Bool

func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*UserSelect) BoolX

func (s *UserSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*UserSelect) Bools

func (s *UserSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*UserSelect) BoolsX

func (s *UserSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*UserSelect) Float64

func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*UserSelect) Float64X

func (s *UserSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*UserSelect) Float64s

func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*UserSelect) Float64sX

func (s *UserSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*UserSelect) Int

func (s *UserSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*UserSelect) IntX

func (s *UserSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*UserSelect) Ints

func (s *UserSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*UserSelect) IntsX

func (s *UserSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*UserSelect) Scan

func (us *UserSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*UserSelect) ScanX

func (s *UserSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*UserSelect) String

func (s *UserSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*UserSelect) StringX

func (s *UserSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*UserSelect) Strings

func (s *UserSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*UserSelect) StringsX

func (s *UserSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type UserUpdate

type UserUpdate struct {
	// contains filtered or unexported fields
}

UserUpdate is the builder for updating User entities.

func (*UserUpdate) AddVerificationToken

func (uu *UserUpdate) AddVerificationToken(v ...*VerificationToken) *UserUpdate

AddVerificationToken adds the "verification_token" edges to the VerificationToken entity.

func (*UserUpdate) AddVerificationTokenIDs

func (uu *UserUpdate) AddVerificationTokenIDs(ids ...uuid.UUID) *UserUpdate

AddVerificationTokenIDs adds the "verification_token" edge to the VerificationToken entity by IDs.

func (*UserUpdate) ClearKybProfile

func (uu *UserUpdate) ClearKybProfile() *UserUpdate

ClearKybProfile clears the "kyb_profile" edge to the KYBProfile entity.

func (*UserUpdate) ClearProviderProfile

func (uu *UserUpdate) ClearProviderProfile() *UserUpdate

ClearProviderProfile clears the "provider_profile" edge to the ProviderProfile entity.

func (*UserUpdate) ClearSenderProfile

func (uu *UserUpdate) ClearSenderProfile() *UserUpdate

ClearSenderProfile clears the "sender_profile" edge to the SenderProfile entity.

func (*UserUpdate) ClearVerificationToken

func (uu *UserUpdate) ClearVerificationToken() *UserUpdate

ClearVerificationToken clears all "verification_token" edges to the VerificationToken entity.

func (*UserUpdate) Exec

func (uu *UserUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserUpdate) ExecX

func (uu *UserUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserUpdate) Mutation

func (uu *UserUpdate) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserUpdate) RemoveVerificationToken

func (uu *UserUpdate) RemoveVerificationToken(v ...*VerificationToken) *UserUpdate

RemoveVerificationToken removes "verification_token" edges to VerificationToken entities.

func (*UserUpdate) RemoveVerificationTokenIDs

func (uu *UserUpdate) RemoveVerificationTokenIDs(ids ...uuid.UUID) *UserUpdate

RemoveVerificationTokenIDs removes the "verification_token" edge to VerificationToken entities by IDs.

func (*UserUpdate) Save

func (uu *UserUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*UserUpdate) SaveX

func (uu *UserUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*UserUpdate) SetEmail

func (uu *UserUpdate) SetEmail(s string) *UserUpdate

SetEmail sets the "email" field.

func (*UserUpdate) SetFirstName

func (uu *UserUpdate) SetFirstName(s string) *UserUpdate

SetFirstName sets the "first_name" field.

func (*UserUpdate) SetHasEarlyAccess

func (uu *UserUpdate) SetHasEarlyAccess(b bool) *UserUpdate

SetHasEarlyAccess sets the "has_early_access" field.

func (*UserUpdate) SetIsEmailVerified

func (uu *UserUpdate) SetIsEmailVerified(b bool) *UserUpdate

SetIsEmailVerified sets the "is_email_verified" field.

func (*UserUpdate) SetKybProfile

func (uu *UserUpdate) SetKybProfile(k *KYBProfile) *UserUpdate

SetKybProfile sets the "kyb_profile" edge to the KYBProfile entity.

func (*UserUpdate) SetKybProfileID

func (uu *UserUpdate) SetKybProfileID(id uuid.UUID) *UserUpdate

SetKybProfileID sets the "kyb_profile" edge to the KYBProfile entity by ID.

func (*UserUpdate) SetKybVerificationStatus

func (uu *UserUpdate) SetKybVerificationStatus(uvs user.KybVerificationStatus) *UserUpdate

SetKybVerificationStatus sets the "kyb_verification_status" field.

func (*UserUpdate) SetLastName

func (uu *UserUpdate) SetLastName(s string) *UserUpdate

SetLastName sets the "last_name" field.

func (*UserUpdate) SetNillableEmail

func (uu *UserUpdate) SetNillableEmail(s *string) *UserUpdate

SetNillableEmail sets the "email" field if the given value is not nil.

func (*UserUpdate) SetNillableFirstName

func (uu *UserUpdate) SetNillableFirstName(s *string) *UserUpdate

SetNillableFirstName sets the "first_name" field if the given value is not nil.

func (*UserUpdate) SetNillableHasEarlyAccess

func (uu *UserUpdate) SetNillableHasEarlyAccess(b *bool) *UserUpdate

SetNillableHasEarlyAccess sets the "has_early_access" field if the given value is not nil.

func (*UserUpdate) SetNillableIsEmailVerified

func (uu *UserUpdate) SetNillableIsEmailVerified(b *bool) *UserUpdate

SetNillableIsEmailVerified sets the "is_email_verified" field if the given value is not nil.

func (*UserUpdate) SetNillableKybProfileID

func (uu *UserUpdate) SetNillableKybProfileID(id *uuid.UUID) *UserUpdate

SetNillableKybProfileID sets the "kyb_profile" edge to the KYBProfile entity by ID if the given value is not nil.

func (*UserUpdate) SetNillableKybVerificationStatus

func (uu *UserUpdate) SetNillableKybVerificationStatus(uvs *user.KybVerificationStatus) *UserUpdate

SetNillableKybVerificationStatus sets the "kyb_verification_status" field if the given value is not nil.

func (*UserUpdate) SetNillableLastName

func (uu *UserUpdate) SetNillableLastName(s *string) *UserUpdate

SetNillableLastName sets the "last_name" field if the given value is not nil.

func (*UserUpdate) SetNillablePassword

func (uu *UserUpdate) SetNillablePassword(s *string) *UserUpdate

SetNillablePassword sets the "password" field if the given value is not nil.

func (*UserUpdate) SetNillableProviderProfileID

func (uu *UserUpdate) SetNillableProviderProfileID(id *string) *UserUpdate

SetNillableProviderProfileID sets the "provider_profile" edge to the ProviderProfile entity by ID if the given value is not nil.

func (*UserUpdate) SetNillableScope

func (uu *UserUpdate) SetNillableScope(s *string) *UserUpdate

SetNillableScope sets the "scope" field if the given value is not nil.

func (*UserUpdate) SetNillableSenderProfileID

func (uu *UserUpdate) SetNillableSenderProfileID(id *uuid.UUID) *UserUpdate

SetNillableSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID if the given value is not nil.

func (*UserUpdate) SetPassword

func (uu *UserUpdate) SetPassword(s string) *UserUpdate

SetPassword sets the "password" field.

func (*UserUpdate) SetProviderProfile

func (uu *UserUpdate) SetProviderProfile(p *ProviderProfile) *UserUpdate

SetProviderProfile sets the "provider_profile" edge to the ProviderProfile entity.

func (*UserUpdate) SetProviderProfileID

func (uu *UserUpdate) SetProviderProfileID(id string) *UserUpdate

SetProviderProfileID sets the "provider_profile" edge to the ProviderProfile entity by ID.

func (*UserUpdate) SetScope

func (uu *UserUpdate) SetScope(s string) *UserUpdate

SetScope sets the "scope" field.

func (*UserUpdate) SetSenderProfile

func (uu *UserUpdate) SetSenderProfile(s *SenderProfile) *UserUpdate

SetSenderProfile sets the "sender_profile" edge to the SenderProfile entity.

func (*UserUpdate) SetSenderProfileID

func (uu *UserUpdate) SetSenderProfileID(id uuid.UUID) *UserUpdate

SetSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID.

func (*UserUpdate) SetUpdatedAt

func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate

SetUpdatedAt sets the "updated_at" field.

func (*UserUpdate) Where

func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate

Where appends a list predicates to the UserUpdate builder.

type UserUpdateOne

type UserUpdateOne struct {
	// contains filtered or unexported fields
}

UserUpdateOne is the builder for updating a single User entity.

func (*UserUpdateOne) AddVerificationToken

func (uuo *UserUpdateOne) AddVerificationToken(v ...*VerificationToken) *UserUpdateOne

AddVerificationToken adds the "verification_token" edges to the VerificationToken entity.

func (*UserUpdateOne) AddVerificationTokenIDs

func (uuo *UserUpdateOne) AddVerificationTokenIDs(ids ...uuid.UUID) *UserUpdateOne

AddVerificationTokenIDs adds the "verification_token" edge to the VerificationToken entity by IDs.

func (*UserUpdateOne) ClearKybProfile

func (uuo *UserUpdateOne) ClearKybProfile() *UserUpdateOne

ClearKybProfile clears the "kyb_profile" edge to the KYBProfile entity.

func (*UserUpdateOne) ClearProviderProfile

func (uuo *UserUpdateOne) ClearProviderProfile() *UserUpdateOne

ClearProviderProfile clears the "provider_profile" edge to the ProviderProfile entity.

func (*UserUpdateOne) ClearSenderProfile

func (uuo *UserUpdateOne) ClearSenderProfile() *UserUpdateOne

ClearSenderProfile clears the "sender_profile" edge to the SenderProfile entity.

func (*UserUpdateOne) ClearVerificationToken

func (uuo *UserUpdateOne) ClearVerificationToken() *UserUpdateOne

ClearVerificationToken clears all "verification_token" edges to the VerificationToken entity.

func (*UserUpdateOne) Exec

func (uuo *UserUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*UserUpdateOne) ExecX

func (uuo *UserUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserUpdateOne) Mutation

func (uuo *UserUpdateOne) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserUpdateOne) RemoveVerificationToken

func (uuo *UserUpdateOne) RemoveVerificationToken(v ...*VerificationToken) *UserUpdateOne

RemoveVerificationToken removes "verification_token" edges to VerificationToken entities.

func (*UserUpdateOne) RemoveVerificationTokenIDs

func (uuo *UserUpdateOne) RemoveVerificationTokenIDs(ids ...uuid.UUID) *UserUpdateOne

RemoveVerificationTokenIDs removes the "verification_token" edge to VerificationToken entities by IDs.

func (*UserUpdateOne) Save

func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)

Save executes the query and returns the updated User entity.

func (*UserUpdateOne) SaveX

func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User

SaveX is like Save, but panics if an error occurs.

func (*UserUpdateOne) Select

func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*UserUpdateOne) SetEmail

func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne

SetEmail sets the "email" field.

func (*UserUpdateOne) SetFirstName

func (uuo *UserUpdateOne) SetFirstName(s string) *UserUpdateOne

SetFirstName sets the "first_name" field.

func (*UserUpdateOne) SetHasEarlyAccess

func (uuo *UserUpdateOne) SetHasEarlyAccess(b bool) *UserUpdateOne

SetHasEarlyAccess sets the "has_early_access" field.

func (*UserUpdateOne) SetIsEmailVerified

func (uuo *UserUpdateOne) SetIsEmailVerified(b bool) *UserUpdateOne

SetIsEmailVerified sets the "is_email_verified" field.

func (*UserUpdateOne) SetKybProfile

func (uuo *UserUpdateOne) SetKybProfile(k *KYBProfile) *UserUpdateOne

SetKybProfile sets the "kyb_profile" edge to the KYBProfile entity.

func (*UserUpdateOne) SetKybProfileID

func (uuo *UserUpdateOne) SetKybProfileID(id uuid.UUID) *UserUpdateOne

SetKybProfileID sets the "kyb_profile" edge to the KYBProfile entity by ID.

func (*UserUpdateOne) SetKybVerificationStatus

func (uuo *UserUpdateOne) SetKybVerificationStatus(uvs user.KybVerificationStatus) *UserUpdateOne

SetKybVerificationStatus sets the "kyb_verification_status" field.

func (*UserUpdateOne) SetLastName

func (uuo *UserUpdateOne) SetLastName(s string) *UserUpdateOne

SetLastName sets the "last_name" field.

func (*UserUpdateOne) SetNillableEmail

func (uuo *UserUpdateOne) SetNillableEmail(s *string) *UserUpdateOne

SetNillableEmail sets the "email" field if the given value is not nil.

func (*UserUpdateOne) SetNillableFirstName

func (uuo *UserUpdateOne) SetNillableFirstName(s *string) *UserUpdateOne

SetNillableFirstName sets the "first_name" field if the given value is not nil.

func (*UserUpdateOne) SetNillableHasEarlyAccess

func (uuo *UserUpdateOne) SetNillableHasEarlyAccess(b *bool) *UserUpdateOne

SetNillableHasEarlyAccess sets the "has_early_access" field if the given value is not nil.

func (*UserUpdateOne) SetNillableIsEmailVerified

func (uuo *UserUpdateOne) SetNillableIsEmailVerified(b *bool) *UserUpdateOne

SetNillableIsEmailVerified sets the "is_email_verified" field if the given value is not nil.

func (*UserUpdateOne) SetNillableKybProfileID

func (uuo *UserUpdateOne) SetNillableKybProfileID(id *uuid.UUID) *UserUpdateOne

SetNillableKybProfileID sets the "kyb_profile" edge to the KYBProfile entity by ID if the given value is not nil.

func (*UserUpdateOne) SetNillableKybVerificationStatus

func (uuo *UserUpdateOne) SetNillableKybVerificationStatus(uvs *user.KybVerificationStatus) *UserUpdateOne

SetNillableKybVerificationStatus sets the "kyb_verification_status" field if the given value is not nil.

func (*UserUpdateOne) SetNillableLastName

func (uuo *UserUpdateOne) SetNillableLastName(s *string) *UserUpdateOne

SetNillableLastName sets the "last_name" field if the given value is not nil.

func (*UserUpdateOne) SetNillablePassword

func (uuo *UserUpdateOne) SetNillablePassword(s *string) *UserUpdateOne

SetNillablePassword sets the "password" field if the given value is not nil.

func (*UserUpdateOne) SetNillableProviderProfileID

func (uuo *UserUpdateOne) SetNillableProviderProfileID(id *string) *UserUpdateOne

SetNillableProviderProfileID sets the "provider_profile" edge to the ProviderProfile entity by ID if the given value is not nil.

func (*UserUpdateOne) SetNillableScope

func (uuo *UserUpdateOne) SetNillableScope(s *string) *UserUpdateOne

SetNillableScope sets the "scope" field if the given value is not nil.

func (*UserUpdateOne) SetNillableSenderProfileID

func (uuo *UserUpdateOne) SetNillableSenderProfileID(id *uuid.UUID) *UserUpdateOne

SetNillableSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID if the given value is not nil.

func (*UserUpdateOne) SetPassword

func (uuo *UserUpdateOne) SetPassword(s string) *UserUpdateOne

SetPassword sets the "password" field.

func (*UserUpdateOne) SetProviderProfile

func (uuo *UserUpdateOne) SetProviderProfile(p *ProviderProfile) *UserUpdateOne

SetProviderProfile sets the "provider_profile" edge to the ProviderProfile entity.

func (*UserUpdateOne) SetProviderProfileID

func (uuo *UserUpdateOne) SetProviderProfileID(id string) *UserUpdateOne

SetProviderProfileID sets the "provider_profile" edge to the ProviderProfile entity by ID.

func (*UserUpdateOne) SetScope

func (uuo *UserUpdateOne) SetScope(s string) *UserUpdateOne

SetScope sets the "scope" field.

func (*UserUpdateOne) SetSenderProfile

func (uuo *UserUpdateOne) SetSenderProfile(s *SenderProfile) *UserUpdateOne

SetSenderProfile sets the "sender_profile" edge to the SenderProfile entity.

func (*UserUpdateOne) SetSenderProfileID

func (uuo *UserUpdateOne) SetSenderProfileID(id uuid.UUID) *UserUpdateOne

SetSenderProfileID sets the "sender_profile" edge to the SenderProfile entity by ID.

func (*UserUpdateOne) SetUpdatedAt

func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*UserUpdateOne) Where

func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne

Where appends a list predicates to the UserUpdate builder.

type UserUpsert

type UserUpsert struct {
	*sql.UpdateSet
}

UserUpsert is the "OnConflict" setter.

func (*UserUpsert) SetEmail

func (u *UserUpsert) SetEmail(v string) *UserUpsert

SetEmail sets the "email" field.

func (*UserUpsert) SetFirstName

func (u *UserUpsert) SetFirstName(v string) *UserUpsert

SetFirstName sets the "first_name" field.

func (*UserUpsert) SetHasEarlyAccess

func (u *UserUpsert) SetHasEarlyAccess(v bool) *UserUpsert

SetHasEarlyAccess sets the "has_early_access" field.

func (*UserUpsert) SetIsEmailVerified

func (u *UserUpsert) SetIsEmailVerified(v bool) *UserUpsert

SetIsEmailVerified sets the "is_email_verified" field.

func (*UserUpsert) SetKybVerificationStatus

func (u *UserUpsert) SetKybVerificationStatus(v user.KybVerificationStatus) *UserUpsert

SetKybVerificationStatus sets the "kyb_verification_status" field.

func (*UserUpsert) SetLastName

func (u *UserUpsert) SetLastName(v string) *UserUpsert

SetLastName sets the "last_name" field.

func (*UserUpsert) SetPassword

func (u *UserUpsert) SetPassword(v string) *UserUpsert

SetPassword sets the "password" field.

func (*UserUpsert) SetScope

func (u *UserUpsert) SetScope(v string) *UserUpsert

SetScope sets the "scope" field.

func (*UserUpsert) SetUpdatedAt

func (u *UserUpsert) SetUpdatedAt(v time.Time) *UserUpsert

SetUpdatedAt sets the "updated_at" field.

func (*UserUpsert) UpdateEmail

func (u *UserUpsert) UpdateEmail() *UserUpsert

UpdateEmail sets the "email" field to the value that was provided on create.

func (*UserUpsert) UpdateFirstName

func (u *UserUpsert) UpdateFirstName() *UserUpsert

UpdateFirstName sets the "first_name" field to the value that was provided on create.

func (*UserUpsert) UpdateHasEarlyAccess

func (u *UserUpsert) UpdateHasEarlyAccess() *UserUpsert

UpdateHasEarlyAccess sets the "has_early_access" field to the value that was provided on create.

func (*UserUpsert) UpdateIsEmailVerified

func (u *UserUpsert) UpdateIsEmailVerified() *UserUpsert

UpdateIsEmailVerified sets the "is_email_verified" field to the value that was provided on create.

func (*UserUpsert) UpdateKybVerificationStatus

func (u *UserUpsert) UpdateKybVerificationStatus() *UserUpsert

UpdateKybVerificationStatus sets the "kyb_verification_status" field to the value that was provided on create.

func (*UserUpsert) UpdateLastName

func (u *UserUpsert) UpdateLastName() *UserUpsert

UpdateLastName sets the "last_name" field to the value that was provided on create.

func (*UserUpsert) UpdatePassword

func (u *UserUpsert) UpdatePassword() *UserUpsert

UpdatePassword sets the "password" field to the value that was provided on create.

func (*UserUpsert) UpdateScope

func (u *UserUpsert) UpdateScope() *UserUpsert

UpdateScope sets the "scope" field to the value that was provided on create.

func (*UserUpsert) UpdateUpdatedAt

func (u *UserUpsert) UpdateUpdatedAt() *UserUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type UserUpsertBulk

type UserUpsertBulk struct {
	// contains filtered or unexported fields
}

UserUpsertBulk is the builder for "upsert"-ing a bulk of User nodes.

func (*UserUpsertBulk) DoNothing

func (u *UserUpsertBulk) DoNothing() *UserUpsertBulk

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*UserUpsertBulk) Exec

func (u *UserUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserUpsertBulk) ExecX

func (u *UserUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserUpsertBulk) Ignore

func (u *UserUpsertBulk) Ignore() *UserUpsertBulk

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.User.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*UserUpsertBulk) SetEmail

func (u *UserUpsertBulk) SetEmail(v string) *UserUpsertBulk

SetEmail sets the "email" field.

func (*UserUpsertBulk) SetFirstName

func (u *UserUpsertBulk) SetFirstName(v string) *UserUpsertBulk

SetFirstName sets the "first_name" field.

func (*UserUpsertBulk) SetHasEarlyAccess

func (u *UserUpsertBulk) SetHasEarlyAccess(v bool) *UserUpsertBulk

SetHasEarlyAccess sets the "has_early_access" field.

func (*UserUpsertBulk) SetIsEmailVerified

func (u *UserUpsertBulk) SetIsEmailVerified(v bool) *UserUpsertBulk

SetIsEmailVerified sets the "is_email_verified" field.

func (*UserUpsertBulk) SetKybVerificationStatus

func (u *UserUpsertBulk) SetKybVerificationStatus(v user.KybVerificationStatus) *UserUpsertBulk

SetKybVerificationStatus sets the "kyb_verification_status" field.

func (*UserUpsertBulk) SetLastName

func (u *UserUpsertBulk) SetLastName(v string) *UserUpsertBulk

SetLastName sets the "last_name" field.

func (*UserUpsertBulk) SetPassword

func (u *UserUpsertBulk) SetPassword(v string) *UserUpsertBulk

SetPassword sets the "password" field.

func (*UserUpsertBulk) SetScope

func (u *UserUpsertBulk) SetScope(v string) *UserUpsertBulk

SetScope sets the "scope" field.

func (*UserUpsertBulk) SetUpdatedAt

func (u *UserUpsertBulk) SetUpdatedAt(v time.Time) *UserUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*UserUpsertBulk) Update

func (u *UserUpsertBulk) Update(set func(*UserUpsert)) *UserUpsertBulk

Update allows overriding fields `UPDATE` values. See the UserCreateBulk.OnConflict documentation for more info.

func (*UserUpsertBulk) UpdateEmail

func (u *UserUpsertBulk) UpdateEmail() *UserUpsertBulk

UpdateEmail sets the "email" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateFirstName

func (u *UserUpsertBulk) UpdateFirstName() *UserUpsertBulk

UpdateFirstName sets the "first_name" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateHasEarlyAccess

func (u *UserUpsertBulk) UpdateHasEarlyAccess() *UserUpsertBulk

UpdateHasEarlyAccess sets the "has_early_access" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateIsEmailVerified

func (u *UserUpsertBulk) UpdateIsEmailVerified() *UserUpsertBulk

UpdateIsEmailVerified sets the "is_email_verified" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateKybVerificationStatus

func (u *UserUpsertBulk) UpdateKybVerificationStatus() *UserUpsertBulk

UpdateKybVerificationStatus sets the "kyb_verification_status" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateLastName

func (u *UserUpsertBulk) UpdateLastName() *UserUpsertBulk

UpdateLastName sets the "last_name" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateNewValues

func (u *UserUpsertBulk) UpdateNewValues() *UserUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.User.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(user.FieldID)
		}),
	).
	Exec(ctx)

func (*UserUpsertBulk) UpdatePassword

func (u *UserUpsertBulk) UpdatePassword() *UserUpsertBulk

UpdatePassword sets the "password" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateScope

func (u *UserUpsertBulk) UpdateScope() *UserUpsertBulk

UpdateScope sets the "scope" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateUpdatedAt

func (u *UserUpsertBulk) UpdateUpdatedAt() *UserUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type UserUpsertOne

type UserUpsertOne struct {
	// contains filtered or unexported fields
}

UserUpsertOne is the builder for "upsert"-ing

one User node.

func (*UserUpsertOne) DoNothing

func (u *UserUpsertOne) DoNothing() *UserUpsertOne

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*UserUpsertOne) Exec

func (u *UserUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*UserUpsertOne) ExecX

func (u *UserUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*UserUpsertOne) ID

func (u *UserUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*UserUpsertOne) IDX

func (u *UserUpsertOne) IDX(ctx context.Context) uuid.UUID

IDX is like ID, but panics if an error occurs.

func (*UserUpsertOne) Ignore

func (u *UserUpsertOne) Ignore() *UserUpsertOne

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.User.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*UserUpsertOne) SetEmail

func (u *UserUpsertOne) SetEmail(v string) *UserUpsertOne

SetEmail sets the "email" field.

func (*UserUpsertOne) SetFirstName

func (u *UserUpsertOne) SetFirstName(v string) *UserUpsertOne

SetFirstName sets the "first_name" field.

func (*UserUpsertOne) SetHasEarlyAccess

func (u *UserUpsertOne) SetHasEarlyAccess(v bool) *UserUpsertOne

SetHasEarlyAccess sets the "has_early_access" field.

func (*UserUpsertOne) SetIsEmailVerified

func (u *UserUpsertOne) SetIsEmailVerified(v bool) *UserUpsertOne

SetIsEmailVerified sets the "is_email_verified" field.

func (*UserUpsertOne) SetKybVerificationStatus

func (u *UserUpsertOne) SetKybVerificationStatus(v user.KybVerificationStatus) *UserUpsertOne

SetKybVerificationStatus sets the "kyb_verification_status" field.

func (*UserUpsertOne) SetLastName

func (u *UserUpsertOne) SetLastName(v string) *UserUpsertOne

SetLastName sets the "last_name" field.

func (*UserUpsertOne) SetPassword

func (u *UserUpsertOne) SetPassword(v string) *UserUpsertOne

SetPassword sets the "password" field.

func (*UserUpsertOne) SetScope

func (u *UserUpsertOne) SetScope(v string) *UserUpsertOne

SetScope sets the "scope" field.

func (*UserUpsertOne) SetUpdatedAt

func (u *UserUpsertOne) SetUpdatedAt(v time.Time) *UserUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*UserUpsertOne) Update

func (u *UserUpsertOne) Update(set func(*UserUpsert)) *UserUpsertOne

Update allows overriding fields `UPDATE` values. See the UserCreate.OnConflict documentation for more info.

func (*UserUpsertOne) UpdateEmail

func (u *UserUpsertOne) UpdateEmail() *UserUpsertOne

UpdateEmail sets the "email" field to the value that was provided on create.

func (*UserUpsertOne) UpdateFirstName

func (u *UserUpsertOne) UpdateFirstName() *UserUpsertOne

UpdateFirstName sets the "first_name" field to the value that was provided on create.

func (*UserUpsertOne) UpdateHasEarlyAccess

func (u *UserUpsertOne) UpdateHasEarlyAccess() *UserUpsertOne

UpdateHasEarlyAccess sets the "has_early_access" field to the value that was provided on create.

func (*UserUpsertOne) UpdateIsEmailVerified

func (u *UserUpsertOne) UpdateIsEmailVerified() *UserUpsertOne

UpdateIsEmailVerified sets the "is_email_verified" field to the value that was provided on create.

func (*UserUpsertOne) UpdateKybVerificationStatus

func (u *UserUpsertOne) UpdateKybVerificationStatus() *UserUpsertOne

UpdateKybVerificationStatus sets the "kyb_verification_status" field to the value that was provided on create.

func (*UserUpsertOne) UpdateLastName

func (u *UserUpsertOne) UpdateLastName() *UserUpsertOne

UpdateLastName sets the "last_name" field to the value that was provided on create.

func (*UserUpsertOne) UpdateNewValues

func (u *UserUpsertOne) UpdateNewValues() *UserUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.User.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(user.FieldID)
		}),
	).
	Exec(ctx)

func (*UserUpsertOne) UpdatePassword

func (u *UserUpsertOne) UpdatePassword() *UserUpsertOne

UpdatePassword sets the "password" field to the value that was provided on create.

func (*UserUpsertOne) UpdateScope

func (u *UserUpsertOne) UpdateScope() *UserUpsertOne

UpdateScope sets the "scope" field to the value that was provided on create.

func (*UserUpsertOne) UpdateUpdatedAt

func (u *UserUpsertOne) UpdateUpdatedAt() *UserUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type Users

type Users []*User

Users is a parsable slice of User.

type ValidationError

type ValidationError struct {
	Name string // Field or edge name.
	// contains filtered or unexported fields
}

ValidationError returns when validating a field or edge fails.

func (*ValidationError) Error

func (e *ValidationError) Error() string

Error implements the error interface.

func (*ValidationError) Unwrap

func (e *ValidationError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Value

type Value = ent.Value

ent aliases to avoid import conflicts in user's code.

type VerificationToken

type VerificationToken struct {

	// ID of the ent.
	ID uuid.UUID `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Token holds the value of the "token" field.
	Token string `json:"token,omitempty"`
	// Scope holds the value of the "scope" field.
	Scope verificationtoken.Scope `json:"scope,omitempty"`
	// ExpiryAt holds the value of the "expiry_at" field.
	ExpiryAt time.Time `json:"expiry_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the VerificationTokenQuery when eager-loading is set.
	Edges VerificationTokenEdges `json:"edges"`
	// contains filtered or unexported fields
}

VerificationToken is the model entity for the VerificationToken schema.

func (*VerificationToken) QueryOwner

func (vt *VerificationToken) QueryOwner() *UserQuery

QueryOwner queries the "owner" edge of the VerificationToken entity.

func (*VerificationToken) String

func (vt *VerificationToken) String() string

String implements the fmt.Stringer.

func (*VerificationToken) Unwrap

func (vt *VerificationToken) Unwrap() *VerificationToken

Unwrap unwraps the VerificationToken entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*VerificationToken) Update

Update returns a builder for updating this VerificationToken. Note that you need to call VerificationToken.Unwrap() before calling this method if this VerificationToken was returned from a transaction, and the transaction was committed or rolled back.

func (*VerificationToken) Value

func (vt *VerificationToken) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the VerificationToken. This includes values selected through modifiers, order, etc.

type VerificationTokenClient

type VerificationTokenClient struct {
	// contains filtered or unexported fields
}

VerificationTokenClient is a client for the VerificationToken schema.

func NewVerificationTokenClient

func NewVerificationTokenClient(c config) *VerificationTokenClient

NewVerificationTokenClient returns a client for the VerificationToken from the given config.

func (*VerificationTokenClient) Create

Create returns a builder for creating a VerificationToken entity.

func (*VerificationTokenClient) CreateBulk

CreateBulk returns a builder for creating a bulk of VerificationToken entities.

func (*VerificationTokenClient) Delete

Delete returns a delete builder for VerificationToken.

func (*VerificationTokenClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*VerificationTokenClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*VerificationTokenClient) Get

Get returns a VerificationToken entity by its id.

func (*VerificationTokenClient) GetX

GetX is like Get, but panics if an error occurs.

func (*VerificationTokenClient) Hooks

func (c *VerificationTokenClient) Hooks() []Hook

Hooks returns the client hooks.

func (*VerificationTokenClient) Intercept

func (c *VerificationTokenClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `verificationtoken.Intercept(f(g(h())))`.

func (*VerificationTokenClient) Interceptors

func (c *VerificationTokenClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*VerificationTokenClient) MapCreateBulk

func (c *VerificationTokenClient) MapCreateBulk(slice any, setFunc func(*VerificationTokenCreate, int)) *VerificationTokenCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*VerificationTokenClient) Query

Query returns a query builder for VerificationToken.

func (*VerificationTokenClient) QueryOwner

QueryOwner queries the owner edge of a VerificationToken.

func (*VerificationTokenClient) Update

Update returns an update builder for VerificationToken.

func (*VerificationTokenClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*VerificationTokenClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*VerificationTokenClient) Use

func (c *VerificationTokenClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `verificationtoken.Hooks(f(g(h())))`.

type VerificationTokenCreate

type VerificationTokenCreate struct {
	// contains filtered or unexported fields
}

VerificationTokenCreate is the builder for creating a VerificationToken entity.

func (*VerificationTokenCreate) Exec

Exec executes the query.

func (*VerificationTokenCreate) ExecX

func (vtc *VerificationTokenCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VerificationTokenCreate) Mutation

Mutation returns the VerificationTokenMutation object of the builder.

func (*VerificationTokenCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.VerificationToken.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.VerificationTokenUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*VerificationTokenCreate) OnConflictColumns

func (vtc *VerificationTokenCreate) OnConflictColumns(columns ...string) *VerificationTokenUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.VerificationToken.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*VerificationTokenCreate) Save

Save creates the VerificationToken in the database.

func (*VerificationTokenCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*VerificationTokenCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*VerificationTokenCreate) SetExpiryAt

SetExpiryAt sets the "expiry_at" field.

func (*VerificationTokenCreate) SetID

SetID sets the "id" field.

func (*VerificationTokenCreate) SetNillableCreatedAt

func (vtc *VerificationTokenCreate) SetNillableCreatedAt(t *time.Time) *VerificationTokenCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*VerificationTokenCreate) SetNillableExpiryAt

func (vtc *VerificationTokenCreate) SetNillableExpiryAt(t *time.Time) *VerificationTokenCreate

SetNillableExpiryAt sets the "expiry_at" field if the given value is not nil.

func (*VerificationTokenCreate) SetNillableID

func (vtc *VerificationTokenCreate) SetNillableID(u *uuid.UUID) *VerificationTokenCreate

SetNillableID sets the "id" field if the given value is not nil.

func (*VerificationTokenCreate) SetNillableUpdatedAt

func (vtc *VerificationTokenCreate) SetNillableUpdatedAt(t *time.Time) *VerificationTokenCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*VerificationTokenCreate) SetOwner

SetOwner sets the "owner" edge to the User entity.

func (*VerificationTokenCreate) SetOwnerID

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*VerificationTokenCreate) SetScope

SetScope sets the "scope" field.

func (*VerificationTokenCreate) SetToken

SetToken sets the "token" field.

func (*VerificationTokenCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

type VerificationTokenCreateBulk

type VerificationTokenCreateBulk struct {
	// contains filtered or unexported fields
}

VerificationTokenCreateBulk is the builder for creating many VerificationToken entities in bulk.

func (*VerificationTokenCreateBulk) Exec

Exec executes the query.

func (*VerificationTokenCreateBulk) ExecX

func (vtcb *VerificationTokenCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VerificationTokenCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.VerificationToken.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.VerificationTokenUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*VerificationTokenCreateBulk) OnConflictColumns

func (vtcb *VerificationTokenCreateBulk) OnConflictColumns(columns ...string) *VerificationTokenUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.VerificationToken.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*VerificationTokenCreateBulk) Save

Save creates the VerificationToken entities in the database.

func (*VerificationTokenCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type VerificationTokenDelete

type VerificationTokenDelete struct {
	// contains filtered or unexported fields
}

VerificationTokenDelete is the builder for deleting a VerificationToken entity.

func (*VerificationTokenDelete) Exec

func (vtd *VerificationTokenDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*VerificationTokenDelete) ExecX

func (vtd *VerificationTokenDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*VerificationTokenDelete) Where

Where appends a list predicates to the VerificationTokenDelete builder.

type VerificationTokenDeleteOne

type VerificationTokenDeleteOne struct {
	// contains filtered or unexported fields
}

VerificationTokenDeleteOne is the builder for deleting a single VerificationToken entity.

func (*VerificationTokenDeleteOne) Exec

Exec executes the deletion query.

func (*VerificationTokenDeleteOne) ExecX

func (vtdo *VerificationTokenDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VerificationTokenDeleteOne) Where

Where appends a list predicates to the VerificationTokenDelete builder.

type VerificationTokenEdges

type VerificationTokenEdges struct {
	// Owner holds the value of the owner edge.
	Owner *User `json:"owner,omitempty"`
	// contains filtered or unexported fields
}

VerificationTokenEdges holds the relations/edges for other nodes in the graph.

func (VerificationTokenEdges) OwnerOrErr

func (e VerificationTokenEdges) OwnerOrErr() (*User, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type VerificationTokenGroupBy

type VerificationTokenGroupBy struct {
	// contains filtered or unexported fields
}

VerificationTokenGroupBy is the group-by builder for VerificationToken entities.

func (*VerificationTokenGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*VerificationTokenGroupBy) Bool

func (s *VerificationTokenGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*VerificationTokenGroupBy) BoolX

func (s *VerificationTokenGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*VerificationTokenGroupBy) Bools

func (s *VerificationTokenGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*VerificationTokenGroupBy) BoolsX

func (s *VerificationTokenGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*VerificationTokenGroupBy) Float64

func (s *VerificationTokenGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*VerificationTokenGroupBy) Float64X

func (s *VerificationTokenGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*VerificationTokenGroupBy) Float64s

func (s *VerificationTokenGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*VerificationTokenGroupBy) Float64sX

func (s *VerificationTokenGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*VerificationTokenGroupBy) Int

func (s *VerificationTokenGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*VerificationTokenGroupBy) IntX

func (s *VerificationTokenGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*VerificationTokenGroupBy) Ints

func (s *VerificationTokenGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*VerificationTokenGroupBy) IntsX

func (s *VerificationTokenGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*VerificationTokenGroupBy) Scan

func (vtgb *VerificationTokenGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*VerificationTokenGroupBy) ScanX

func (s *VerificationTokenGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*VerificationTokenGroupBy) String

func (s *VerificationTokenGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*VerificationTokenGroupBy) StringX

func (s *VerificationTokenGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*VerificationTokenGroupBy) Strings

func (s *VerificationTokenGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*VerificationTokenGroupBy) StringsX

func (s *VerificationTokenGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type VerificationTokenMutation

type VerificationTokenMutation struct {
	// contains filtered or unexported fields
}

VerificationTokenMutation represents an operation that mutates the VerificationToken nodes in the graph.

func (*VerificationTokenMutation) AddField

func (m *VerificationTokenMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*VerificationTokenMutation) AddedEdges

func (m *VerificationTokenMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*VerificationTokenMutation) AddedField

func (m *VerificationTokenMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*VerificationTokenMutation) AddedFields

func (m *VerificationTokenMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*VerificationTokenMutation) AddedIDs

func (m *VerificationTokenMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*VerificationTokenMutation) ClearEdge

func (m *VerificationTokenMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*VerificationTokenMutation) ClearField

func (m *VerificationTokenMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*VerificationTokenMutation) ClearOwner

func (m *VerificationTokenMutation) ClearOwner()

ClearOwner clears the "owner" edge to the User entity.

func (*VerificationTokenMutation) ClearedEdges

func (m *VerificationTokenMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*VerificationTokenMutation) ClearedFields

func (m *VerificationTokenMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (VerificationTokenMutation) Client

func (m VerificationTokenMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*VerificationTokenMutation) CreatedAt

func (m *VerificationTokenMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*VerificationTokenMutation) EdgeCleared

func (m *VerificationTokenMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*VerificationTokenMutation) ExpiryAt

func (m *VerificationTokenMutation) ExpiryAt() (r time.Time, exists bool)

ExpiryAt returns the value of the "expiry_at" field in the mutation.

func (*VerificationTokenMutation) Field

func (m *VerificationTokenMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*VerificationTokenMutation) FieldCleared

func (m *VerificationTokenMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*VerificationTokenMutation) Fields

func (m *VerificationTokenMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*VerificationTokenMutation) ID

func (m *VerificationTokenMutation) ID() (id uuid.UUID, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*VerificationTokenMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*VerificationTokenMutation) OldCreatedAt

func (m *VerificationTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the VerificationToken entity. If the VerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VerificationTokenMutation) OldExpiryAt

func (m *VerificationTokenMutation) OldExpiryAt(ctx context.Context) (v time.Time, err error)

OldExpiryAt returns the old "expiry_at" field's value of the VerificationToken entity. If the VerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VerificationTokenMutation) OldField

func (m *VerificationTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*VerificationTokenMutation) OldScope

OldScope returns the old "scope" field's value of the VerificationToken entity. If the VerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VerificationTokenMutation) OldToken

func (m *VerificationTokenMutation) OldToken(ctx context.Context) (v string, err error)

OldToken returns the old "token" field's value of the VerificationToken entity. If the VerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VerificationTokenMutation) OldUpdatedAt

func (m *VerificationTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the VerificationToken entity. If the VerificationToken object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VerificationTokenMutation) Op

func (m *VerificationTokenMutation) Op() Op

Op returns the operation name.

func (*VerificationTokenMutation) OwnerCleared

func (m *VerificationTokenMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the User entity was cleared.

func (*VerificationTokenMutation) OwnerID

func (m *VerificationTokenMutation) OwnerID() (id uuid.UUID, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*VerificationTokenMutation) OwnerIDs

func (m *VerificationTokenMutation) OwnerIDs() (ids []uuid.UUID)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*VerificationTokenMutation) RemovedEdges

func (m *VerificationTokenMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*VerificationTokenMutation) RemovedIDs

func (m *VerificationTokenMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*VerificationTokenMutation) ResetCreatedAt

func (m *VerificationTokenMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*VerificationTokenMutation) ResetEdge

func (m *VerificationTokenMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*VerificationTokenMutation) ResetExpiryAt

func (m *VerificationTokenMutation) ResetExpiryAt()

ResetExpiryAt resets all changes to the "expiry_at" field.

func (*VerificationTokenMutation) ResetField

func (m *VerificationTokenMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*VerificationTokenMutation) ResetOwner

func (m *VerificationTokenMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*VerificationTokenMutation) ResetScope

func (m *VerificationTokenMutation) ResetScope()

ResetScope resets all changes to the "scope" field.

func (*VerificationTokenMutation) ResetToken

func (m *VerificationTokenMutation) ResetToken()

ResetToken resets all changes to the "token" field.

func (*VerificationTokenMutation) ResetUpdatedAt

func (m *VerificationTokenMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*VerificationTokenMutation) Scope

func (m *VerificationTokenMutation) Scope() (r verificationtoken.Scope, exists bool)

Scope returns the value of the "scope" field in the mutation.

func (*VerificationTokenMutation) SetCreatedAt

func (m *VerificationTokenMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*VerificationTokenMutation) SetExpiryAt

func (m *VerificationTokenMutation) SetExpiryAt(t time.Time)

SetExpiryAt sets the "expiry_at" field.

func (*VerificationTokenMutation) SetField

func (m *VerificationTokenMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*VerificationTokenMutation) SetID

func (m *VerificationTokenMutation) SetID(id uuid.UUID)

SetID sets the value of the id field. Note that this operation is only accepted on creation of VerificationToken entities.

func (*VerificationTokenMutation) SetOp

func (m *VerificationTokenMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*VerificationTokenMutation) SetOwnerID

func (m *VerificationTokenMutation) SetOwnerID(id uuid.UUID)

SetOwnerID sets the "owner" edge to the User entity by id.

func (*VerificationTokenMutation) SetScope

SetScope sets the "scope" field.

func (*VerificationTokenMutation) SetToken

func (m *VerificationTokenMutation) SetToken(s string)

SetToken sets the "token" field.

func (*VerificationTokenMutation) SetUpdatedAt

func (m *VerificationTokenMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*VerificationTokenMutation) Token

func (m *VerificationTokenMutation) Token() (r string, exists bool)

Token returns the value of the "token" field in the mutation.

func (VerificationTokenMutation) Tx

func (m VerificationTokenMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*VerificationTokenMutation) Type

Type returns the node type of this mutation (VerificationToken).

func (*VerificationTokenMutation) UpdatedAt

func (m *VerificationTokenMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*VerificationTokenMutation) Where

Where appends a list predicates to the VerificationTokenMutation builder.

func (*VerificationTokenMutation) WhereP

func (m *VerificationTokenMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the VerificationTokenMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type VerificationTokenQuery

type VerificationTokenQuery struct {
	// contains filtered or unexported fields
}

VerificationTokenQuery is the builder for querying VerificationToken entities.

func (*VerificationTokenQuery) Aggregate

Aggregate returns a VerificationTokenSelect configured with the given aggregations.

func (*VerificationTokenQuery) All

All executes the query and returns a list of VerificationTokens.

func (*VerificationTokenQuery) AllX

AllX is like All, but panics if an error occurs.

func (*VerificationTokenQuery) Clone

Clone returns a duplicate of the VerificationTokenQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*VerificationTokenQuery) Count

func (vtq *VerificationTokenQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*VerificationTokenQuery) CountX

func (vtq *VerificationTokenQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*VerificationTokenQuery) Exist

func (vtq *VerificationTokenQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*VerificationTokenQuery) ExistX

func (vtq *VerificationTokenQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*VerificationTokenQuery) First

First returns the first VerificationToken entity from the query. Returns a *NotFoundError when no VerificationToken was found.

func (*VerificationTokenQuery) FirstID

func (vtq *VerificationTokenQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)

FirstID returns the first VerificationToken ID from the query. Returns a *NotFoundError when no VerificationToken ID was found.

func (*VerificationTokenQuery) FirstIDX

func (vtq *VerificationTokenQuery) FirstIDX(ctx context.Context) uuid.UUID

FirstIDX is like FirstID, but panics if an error occurs.

func (*VerificationTokenQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*VerificationTokenQuery) GroupBy

func (vtq *VerificationTokenQuery) GroupBy(field string, fields ...string) *VerificationTokenGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.VerificationToken.Query().
	GroupBy(verificationtoken.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*VerificationTokenQuery) IDs

func (vtq *VerificationTokenQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)

IDs executes the query and returns a list of VerificationToken IDs.

func (*VerificationTokenQuery) IDsX

func (vtq *VerificationTokenQuery) IDsX(ctx context.Context) []uuid.UUID

IDsX is like IDs, but panics if an error occurs.

func (*VerificationTokenQuery) Limit

Limit the number of records to be returned by this query.

func (*VerificationTokenQuery) Offset

func (vtq *VerificationTokenQuery) Offset(offset int) *VerificationTokenQuery

Offset to start from.

func (*VerificationTokenQuery) Only

Only returns a single VerificationToken entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one VerificationToken entity is found. Returns a *NotFoundError when no VerificationToken entities are found.

func (*VerificationTokenQuery) OnlyID

func (vtq *VerificationTokenQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)

OnlyID is like Only, but returns the only VerificationToken ID in the query. Returns a *NotSingularError when more than one VerificationToken ID is found. Returns a *NotFoundError when no entities are found.

func (*VerificationTokenQuery) OnlyIDX

func (vtq *VerificationTokenQuery) OnlyIDX(ctx context.Context) uuid.UUID

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*VerificationTokenQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*VerificationTokenQuery) Order

Order specifies how the records should be ordered.

func (*VerificationTokenQuery) QueryOwner

func (vtq *VerificationTokenQuery) QueryOwner() *UserQuery

QueryOwner chains the current query on the "owner" edge.

func (*VerificationTokenQuery) Select

func (vtq *VerificationTokenQuery) Select(fields ...string) *VerificationTokenSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.VerificationToken.Query().
	Select(verificationtoken.FieldCreatedAt).
	Scan(ctx, &v)

func (*VerificationTokenQuery) Unique

func (vtq *VerificationTokenQuery) Unique(unique bool) *VerificationTokenQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*VerificationTokenQuery) Where

Where adds a new predicate for the VerificationTokenQuery builder.

func (*VerificationTokenQuery) WithOwner

func (vtq *VerificationTokenQuery) WithOwner(opts ...func(*UserQuery)) *VerificationTokenQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

type VerificationTokenSelect

type VerificationTokenSelect struct {
	*VerificationTokenQuery
	// contains filtered or unexported fields
}

VerificationTokenSelect is the builder for selecting fields of VerificationToken entities.

func (*VerificationTokenSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*VerificationTokenSelect) Bool

func (s *VerificationTokenSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*VerificationTokenSelect) BoolX

func (s *VerificationTokenSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*VerificationTokenSelect) Bools

func (s *VerificationTokenSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*VerificationTokenSelect) BoolsX

func (s *VerificationTokenSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*VerificationTokenSelect) Float64

func (s *VerificationTokenSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*VerificationTokenSelect) Float64X

func (s *VerificationTokenSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*VerificationTokenSelect) Float64s

func (s *VerificationTokenSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*VerificationTokenSelect) Float64sX

func (s *VerificationTokenSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*VerificationTokenSelect) Int

func (s *VerificationTokenSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*VerificationTokenSelect) IntX

func (s *VerificationTokenSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*VerificationTokenSelect) Ints

func (s *VerificationTokenSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*VerificationTokenSelect) IntsX

func (s *VerificationTokenSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*VerificationTokenSelect) Scan

func (vts *VerificationTokenSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*VerificationTokenSelect) ScanX

func (s *VerificationTokenSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*VerificationTokenSelect) String

func (s *VerificationTokenSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*VerificationTokenSelect) StringX

func (s *VerificationTokenSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*VerificationTokenSelect) Strings

func (s *VerificationTokenSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*VerificationTokenSelect) StringsX

func (s *VerificationTokenSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type VerificationTokenUpdate

type VerificationTokenUpdate struct {
	// contains filtered or unexported fields
}

VerificationTokenUpdate is the builder for updating VerificationToken entities.

func (*VerificationTokenUpdate) Exec

Exec executes the query.

func (*VerificationTokenUpdate) ExecX

func (vtu *VerificationTokenUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VerificationTokenUpdate) Mutation

Mutation returns the VerificationTokenMutation object of the builder.

func (*VerificationTokenUpdate) Save

func (vtu *VerificationTokenUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*VerificationTokenUpdate) SaveX

func (vtu *VerificationTokenUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*VerificationTokenUpdate) SetNillableScope

SetNillableScope sets the "scope" field if the given value is not nil.

func (*VerificationTokenUpdate) SetScope

SetScope sets the "scope" field.

func (*VerificationTokenUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*VerificationTokenUpdate) Where

Where appends a list predicates to the VerificationTokenUpdate builder.

type VerificationTokenUpdateOne

type VerificationTokenUpdateOne struct {
	// contains filtered or unexported fields
}

VerificationTokenUpdateOne is the builder for updating a single VerificationToken entity.

func (*VerificationTokenUpdateOne) Exec

Exec executes the query on the entity.

func (*VerificationTokenUpdateOne) ExecX

func (vtuo *VerificationTokenUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VerificationTokenUpdateOne) Mutation

Mutation returns the VerificationTokenMutation object of the builder.

func (*VerificationTokenUpdateOne) Save

Save executes the query and returns the updated VerificationToken entity.

func (*VerificationTokenUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*VerificationTokenUpdateOne) Select

func (vtuo *VerificationTokenUpdateOne) Select(field string, fields ...string) *VerificationTokenUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*VerificationTokenUpdateOne) SetNillableScope

SetNillableScope sets the "scope" field if the given value is not nil.

func (*VerificationTokenUpdateOne) SetScope

SetScope sets the "scope" field.

func (*VerificationTokenUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*VerificationTokenUpdateOne) Where

Where appends a list predicates to the VerificationTokenUpdate builder.

type VerificationTokenUpsert

type VerificationTokenUpsert struct {
	*sql.UpdateSet
}

VerificationTokenUpsert is the "OnConflict" setter.

func (*VerificationTokenUpsert) SetScope

SetScope sets the "scope" field.

func (*VerificationTokenUpsert) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*VerificationTokenUpsert) UpdateScope

UpdateScope sets the "scope" field to the value that was provided on create.

func (*VerificationTokenUpsert) UpdateUpdatedAt

func (u *VerificationTokenUpsert) UpdateUpdatedAt() *VerificationTokenUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type VerificationTokenUpsertBulk

type VerificationTokenUpsertBulk struct {
	// contains filtered or unexported fields
}

VerificationTokenUpsertBulk is the builder for "upsert"-ing a bulk of VerificationToken nodes.

func (*VerificationTokenUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*VerificationTokenUpsertBulk) Exec

Exec executes the query.

func (*VerificationTokenUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*VerificationTokenUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.VerificationToken.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*VerificationTokenUpsertBulk) SetScope

SetScope sets the "scope" field.

func (*VerificationTokenUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*VerificationTokenUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the VerificationTokenCreateBulk.OnConflict documentation for more info.

func (*VerificationTokenUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.VerificationToken.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(verificationtoken.FieldID)
		}),
	).
	Exec(ctx)

func (*VerificationTokenUpsertBulk) UpdateScope

UpdateScope sets the "scope" field to the value that was provided on create.

func (*VerificationTokenUpsertBulk) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type VerificationTokenUpsertOne

type VerificationTokenUpsertOne struct {
	// contains filtered or unexported fields
}

VerificationTokenUpsertOne is the builder for "upsert"-ing

one VerificationToken node.

func (*VerificationTokenUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*VerificationTokenUpsertOne) Exec

Exec executes the query.

func (*VerificationTokenUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*VerificationTokenUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*VerificationTokenUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*VerificationTokenUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.VerificationToken.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*VerificationTokenUpsertOne) SetScope

SetScope sets the "scope" field.

func (*VerificationTokenUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*VerificationTokenUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the VerificationTokenCreate.OnConflict documentation for more info.

func (*VerificationTokenUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create except the ID field. Using this option is equivalent to using:

client.VerificationToken.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(verificationtoken.FieldID)
		}),
	).
	Exec(ctx)

func (*VerificationTokenUpsertOne) UpdateScope

UpdateScope sets the "scope" field to the value that was provided on create.

func (*VerificationTokenUpsertOne) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type VerificationTokens

type VerificationTokens []*VerificationToken

VerificationTokens is a parsable slice of VerificationToken.

type WebhookRetryAttempt

type WebhookRetryAttempt struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// AttemptNumber holds the value of the "attempt_number" field.
	AttemptNumber int `json:"attempt_number,omitempty"`
	// NextRetryTime holds the value of the "next_retry_time" field.
	NextRetryTime time.Time `json:"next_retry_time,omitempty"`
	// Payload holds the value of the "payload" field.
	Payload map[string]interface{} `json:"payload,omitempty"`
	// Signature holds the value of the "signature" field.
	Signature string `json:"signature,omitempty"`
	// WebhookURL holds the value of the "webhook_url" field.
	WebhookURL string `json:"webhook_url,omitempty"`
	// Status holds the value of the "status" field.
	Status webhookretryattempt.Status `json:"status,omitempty"`
	// contains filtered or unexported fields
}

WebhookRetryAttempt is the model entity for the WebhookRetryAttempt schema.

func (*WebhookRetryAttempt) String

func (wra *WebhookRetryAttempt) String() string

String implements the fmt.Stringer.

func (*WebhookRetryAttempt) Unwrap

Unwrap unwraps the WebhookRetryAttempt entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*WebhookRetryAttempt) Update

Update returns a builder for updating this WebhookRetryAttempt. Note that you need to call WebhookRetryAttempt.Unwrap() before calling this method if this WebhookRetryAttempt was returned from a transaction, and the transaction was committed or rolled back.

func (*WebhookRetryAttempt) Value

func (wra *WebhookRetryAttempt) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the WebhookRetryAttempt. This includes values selected through modifiers, order, etc.

type WebhookRetryAttemptClient

type WebhookRetryAttemptClient struct {
	// contains filtered or unexported fields
}

WebhookRetryAttemptClient is a client for the WebhookRetryAttempt schema.

func NewWebhookRetryAttemptClient

func NewWebhookRetryAttemptClient(c config) *WebhookRetryAttemptClient

NewWebhookRetryAttemptClient returns a client for the WebhookRetryAttempt from the given config.

func (*WebhookRetryAttemptClient) Create

Create returns a builder for creating a WebhookRetryAttempt entity.

func (*WebhookRetryAttemptClient) CreateBulk

CreateBulk returns a builder for creating a bulk of WebhookRetryAttempt entities.

func (*WebhookRetryAttemptClient) Delete

Delete returns a delete builder for WebhookRetryAttempt.

func (*WebhookRetryAttemptClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*WebhookRetryAttemptClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*WebhookRetryAttemptClient) Get

Get returns a WebhookRetryAttempt entity by its id.

func (*WebhookRetryAttemptClient) GetX

GetX is like Get, but panics if an error occurs.

func (*WebhookRetryAttemptClient) Hooks

func (c *WebhookRetryAttemptClient) Hooks() []Hook

Hooks returns the client hooks.

func (*WebhookRetryAttemptClient) Intercept

func (c *WebhookRetryAttemptClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `webhookretryattempt.Intercept(f(g(h())))`.

func (*WebhookRetryAttemptClient) Interceptors

func (c *WebhookRetryAttemptClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*WebhookRetryAttemptClient) MapCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*WebhookRetryAttemptClient) Query

Query returns a query builder for WebhookRetryAttempt.

func (*WebhookRetryAttemptClient) Update

Update returns an update builder for WebhookRetryAttempt.

func (*WebhookRetryAttemptClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*WebhookRetryAttemptClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*WebhookRetryAttemptClient) Use

func (c *WebhookRetryAttemptClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `webhookretryattempt.Hooks(f(g(h())))`.

type WebhookRetryAttemptCreate

type WebhookRetryAttemptCreate struct {
	// contains filtered or unexported fields
}

WebhookRetryAttemptCreate is the builder for creating a WebhookRetryAttempt entity.

func (*WebhookRetryAttemptCreate) Exec

Exec executes the query.

func (*WebhookRetryAttemptCreate) ExecX

func (wrac *WebhookRetryAttemptCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WebhookRetryAttemptCreate) Mutation

Mutation returns the WebhookRetryAttemptMutation object of the builder.

func (*WebhookRetryAttemptCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.WebhookRetryAttempt.Create().
	SetCreatedAt(v).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.WebhookRetryAttemptUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*WebhookRetryAttemptCreate) OnConflictColumns

func (wrac *WebhookRetryAttemptCreate) OnConflictColumns(columns ...string) *WebhookRetryAttemptUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.WebhookRetryAttempt.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*WebhookRetryAttemptCreate) Save

Save creates the WebhookRetryAttempt in the database.

func (*WebhookRetryAttemptCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*WebhookRetryAttemptCreate) SetAttemptNumber

func (wrac *WebhookRetryAttemptCreate) SetAttemptNumber(i int) *WebhookRetryAttemptCreate

SetAttemptNumber sets the "attempt_number" field.

func (*WebhookRetryAttemptCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*WebhookRetryAttemptCreate) SetNextRetryTime

func (wrac *WebhookRetryAttemptCreate) SetNextRetryTime(t time.Time) *WebhookRetryAttemptCreate

SetNextRetryTime sets the "next_retry_time" field.

func (*WebhookRetryAttemptCreate) SetNillableCreatedAt

func (wrac *WebhookRetryAttemptCreate) SetNillableCreatedAt(t *time.Time) *WebhookRetryAttemptCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*WebhookRetryAttemptCreate) SetNillableNextRetryTime

func (wrac *WebhookRetryAttemptCreate) SetNillableNextRetryTime(t *time.Time) *WebhookRetryAttemptCreate

SetNillableNextRetryTime sets the "next_retry_time" field if the given value is not nil.

func (*WebhookRetryAttemptCreate) SetNillableSignature

func (wrac *WebhookRetryAttemptCreate) SetNillableSignature(s *string) *WebhookRetryAttemptCreate

SetNillableSignature sets the "signature" field if the given value is not nil.

func (*WebhookRetryAttemptCreate) SetNillableStatus

SetNillableStatus sets the "status" field if the given value is not nil.

func (*WebhookRetryAttemptCreate) SetNillableUpdatedAt

func (wrac *WebhookRetryAttemptCreate) SetNillableUpdatedAt(t *time.Time) *WebhookRetryAttemptCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*WebhookRetryAttemptCreate) SetPayload

func (wrac *WebhookRetryAttemptCreate) SetPayload(m map[string]interface{}) *WebhookRetryAttemptCreate

SetPayload sets the "payload" field.

func (*WebhookRetryAttemptCreate) SetSignature

SetSignature sets the "signature" field.

func (*WebhookRetryAttemptCreate) SetStatus

SetStatus sets the "status" field.

func (*WebhookRetryAttemptCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*WebhookRetryAttemptCreate) SetWebhookURL

SetWebhookURL sets the "webhook_url" field.

type WebhookRetryAttemptCreateBulk

type WebhookRetryAttemptCreateBulk struct {
	// contains filtered or unexported fields
}

WebhookRetryAttemptCreateBulk is the builder for creating many WebhookRetryAttempt entities in bulk.

func (*WebhookRetryAttemptCreateBulk) Exec

Exec executes the query.

func (*WebhookRetryAttemptCreateBulk) ExecX

func (wracb *WebhookRetryAttemptCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WebhookRetryAttemptCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.WebhookRetryAttempt.CreateBulk(builders...).
	OnConflict(
		// Update the row with the new values
		// the was proposed for insertion.
		sql.ResolveWithNewValues(),
	).
	// Override some of the fields with custom
	// update values.
	Update(func(u *ent.WebhookRetryAttemptUpsert) {
		SetCreatedAt(v+v).
	}).
	Exec(ctx)

func (*WebhookRetryAttemptCreateBulk) OnConflictColumns

func (wracb *WebhookRetryAttemptCreateBulk) OnConflictColumns(columns ...string) *WebhookRetryAttemptUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.WebhookRetryAttempt.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*WebhookRetryAttemptCreateBulk) Save

Save creates the WebhookRetryAttempt entities in the database.

func (*WebhookRetryAttemptCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type WebhookRetryAttemptDelete

type WebhookRetryAttemptDelete struct {
	// contains filtered or unexported fields
}

WebhookRetryAttemptDelete is the builder for deleting a WebhookRetryAttempt entity.

func (*WebhookRetryAttemptDelete) Exec

func (wrad *WebhookRetryAttemptDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*WebhookRetryAttemptDelete) ExecX

func (wrad *WebhookRetryAttemptDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*WebhookRetryAttemptDelete) Where

Where appends a list predicates to the WebhookRetryAttemptDelete builder.

type WebhookRetryAttemptDeleteOne

type WebhookRetryAttemptDeleteOne struct {
	// contains filtered or unexported fields
}

WebhookRetryAttemptDeleteOne is the builder for deleting a single WebhookRetryAttempt entity.

func (*WebhookRetryAttemptDeleteOne) Exec

Exec executes the deletion query.

func (*WebhookRetryAttemptDeleteOne) ExecX

func (wrado *WebhookRetryAttemptDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WebhookRetryAttemptDeleteOne) Where

Where appends a list predicates to the WebhookRetryAttemptDelete builder.

type WebhookRetryAttemptGroupBy

type WebhookRetryAttemptGroupBy struct {
	// contains filtered or unexported fields
}

WebhookRetryAttemptGroupBy is the group-by builder for WebhookRetryAttempt entities.

func (*WebhookRetryAttemptGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*WebhookRetryAttemptGroupBy) Bool

func (s *WebhookRetryAttemptGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptGroupBy) BoolX

func (s *WebhookRetryAttemptGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WebhookRetryAttemptGroupBy) Bools

func (s *WebhookRetryAttemptGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptGroupBy) BoolsX

func (s *WebhookRetryAttemptGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WebhookRetryAttemptGroupBy) Float64

func (s *WebhookRetryAttemptGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptGroupBy) Float64X

func (s *WebhookRetryAttemptGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WebhookRetryAttemptGroupBy) Float64s

func (s *WebhookRetryAttemptGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptGroupBy) Float64sX

func (s *WebhookRetryAttemptGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WebhookRetryAttemptGroupBy) Int

func (s *WebhookRetryAttemptGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptGroupBy) IntX

func (s *WebhookRetryAttemptGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WebhookRetryAttemptGroupBy) Ints

func (s *WebhookRetryAttemptGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptGroupBy) IntsX

func (s *WebhookRetryAttemptGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WebhookRetryAttemptGroupBy) Scan

func (wragb *WebhookRetryAttemptGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*WebhookRetryAttemptGroupBy) ScanX

func (s *WebhookRetryAttemptGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*WebhookRetryAttemptGroupBy) String

func (s *WebhookRetryAttemptGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptGroupBy) StringX

func (s *WebhookRetryAttemptGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WebhookRetryAttemptGroupBy) Strings

func (s *WebhookRetryAttemptGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptGroupBy) StringsX

func (s *WebhookRetryAttemptGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WebhookRetryAttemptMutation

type WebhookRetryAttemptMutation struct {
	// contains filtered or unexported fields
}

WebhookRetryAttemptMutation represents an operation that mutates the WebhookRetryAttempt nodes in the graph.

func (*WebhookRetryAttemptMutation) AddAttemptNumber

func (m *WebhookRetryAttemptMutation) AddAttemptNumber(i int)

AddAttemptNumber adds i to the "attempt_number" field.

func (*WebhookRetryAttemptMutation) AddField

func (m *WebhookRetryAttemptMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*WebhookRetryAttemptMutation) AddedAttemptNumber

func (m *WebhookRetryAttemptMutation) AddedAttemptNumber() (r int, exists bool)

AddedAttemptNumber returns the value that was added to the "attempt_number" field in this mutation.

func (*WebhookRetryAttemptMutation) AddedEdges

func (m *WebhookRetryAttemptMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*WebhookRetryAttemptMutation) AddedField

func (m *WebhookRetryAttemptMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*WebhookRetryAttemptMutation) AddedFields

func (m *WebhookRetryAttemptMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*WebhookRetryAttemptMutation) AddedIDs

func (m *WebhookRetryAttemptMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*WebhookRetryAttemptMutation) AttemptNumber

func (m *WebhookRetryAttemptMutation) AttemptNumber() (r int, exists bool)

AttemptNumber returns the value of the "attempt_number" field in the mutation.

func (*WebhookRetryAttemptMutation) ClearEdge

func (m *WebhookRetryAttemptMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*WebhookRetryAttemptMutation) ClearField

func (m *WebhookRetryAttemptMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*WebhookRetryAttemptMutation) ClearSignature

func (m *WebhookRetryAttemptMutation) ClearSignature()

ClearSignature clears the value of the "signature" field.

func (*WebhookRetryAttemptMutation) ClearedEdges

func (m *WebhookRetryAttemptMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*WebhookRetryAttemptMutation) ClearedFields

func (m *WebhookRetryAttemptMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (WebhookRetryAttemptMutation) Client

func (m WebhookRetryAttemptMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*WebhookRetryAttemptMutation) CreatedAt

func (m *WebhookRetryAttemptMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*WebhookRetryAttemptMutation) EdgeCleared

func (m *WebhookRetryAttemptMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*WebhookRetryAttemptMutation) Field

func (m *WebhookRetryAttemptMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*WebhookRetryAttemptMutation) FieldCleared

func (m *WebhookRetryAttemptMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*WebhookRetryAttemptMutation) Fields

func (m *WebhookRetryAttemptMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*WebhookRetryAttemptMutation) ID

func (m *WebhookRetryAttemptMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*WebhookRetryAttemptMutation) IDs

IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.

func (*WebhookRetryAttemptMutation) NextRetryTime

func (m *WebhookRetryAttemptMutation) NextRetryTime() (r time.Time, exists bool)

NextRetryTime returns the value of the "next_retry_time" field in the mutation.

func (*WebhookRetryAttemptMutation) OldAttemptNumber

func (m *WebhookRetryAttemptMutation) OldAttemptNumber(ctx context.Context) (v int, err error)

OldAttemptNumber returns the old "attempt_number" field's value of the WebhookRetryAttempt entity. If the WebhookRetryAttempt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WebhookRetryAttemptMutation) OldCreatedAt

func (m *WebhookRetryAttemptMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the WebhookRetryAttempt entity. If the WebhookRetryAttempt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WebhookRetryAttemptMutation) OldField

func (m *WebhookRetryAttemptMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*WebhookRetryAttemptMutation) OldNextRetryTime

func (m *WebhookRetryAttemptMutation) OldNextRetryTime(ctx context.Context) (v time.Time, err error)

OldNextRetryTime returns the old "next_retry_time" field's value of the WebhookRetryAttempt entity. If the WebhookRetryAttempt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WebhookRetryAttemptMutation) OldPayload

func (m *WebhookRetryAttemptMutation) OldPayload(ctx context.Context) (v map[string]interface{}, err error)

OldPayload returns the old "payload" field's value of the WebhookRetryAttempt entity. If the WebhookRetryAttempt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WebhookRetryAttemptMutation) OldSignature

func (m *WebhookRetryAttemptMutation) OldSignature(ctx context.Context) (v string, err error)

OldSignature returns the old "signature" field's value of the WebhookRetryAttempt entity. If the WebhookRetryAttempt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WebhookRetryAttemptMutation) OldStatus

OldStatus returns the old "status" field's value of the WebhookRetryAttempt entity. If the WebhookRetryAttempt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WebhookRetryAttemptMutation) OldUpdatedAt

func (m *WebhookRetryAttemptMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the WebhookRetryAttempt entity. If the WebhookRetryAttempt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WebhookRetryAttemptMutation) OldWebhookURL

func (m *WebhookRetryAttemptMutation) OldWebhookURL(ctx context.Context) (v string, err error)

OldWebhookURL returns the old "webhook_url" field's value of the WebhookRetryAttempt entity. If the WebhookRetryAttempt object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*WebhookRetryAttemptMutation) Op

Op returns the operation name.

func (*WebhookRetryAttemptMutation) Payload

func (m *WebhookRetryAttemptMutation) Payload() (r map[string]interface{}, exists bool)

Payload returns the value of the "payload" field in the mutation.

func (*WebhookRetryAttemptMutation) RemovedEdges

func (m *WebhookRetryAttemptMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*WebhookRetryAttemptMutation) RemovedIDs

func (m *WebhookRetryAttemptMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*WebhookRetryAttemptMutation) ResetAttemptNumber

func (m *WebhookRetryAttemptMutation) ResetAttemptNumber()

ResetAttemptNumber resets all changes to the "attempt_number" field.

func (*WebhookRetryAttemptMutation) ResetCreatedAt

func (m *WebhookRetryAttemptMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*WebhookRetryAttemptMutation) ResetEdge

func (m *WebhookRetryAttemptMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*WebhookRetryAttemptMutation) ResetField

func (m *WebhookRetryAttemptMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*WebhookRetryAttemptMutation) ResetNextRetryTime

func (m *WebhookRetryAttemptMutation) ResetNextRetryTime()

ResetNextRetryTime resets all changes to the "next_retry_time" field.

func (*WebhookRetryAttemptMutation) ResetPayload

func (m *WebhookRetryAttemptMutation) ResetPayload()

ResetPayload resets all changes to the "payload" field.

func (*WebhookRetryAttemptMutation) ResetSignature

func (m *WebhookRetryAttemptMutation) ResetSignature()

ResetSignature resets all changes to the "signature" field.

func (*WebhookRetryAttemptMutation) ResetStatus

func (m *WebhookRetryAttemptMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*WebhookRetryAttemptMutation) ResetUpdatedAt

func (m *WebhookRetryAttemptMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*WebhookRetryAttemptMutation) ResetWebhookURL

func (m *WebhookRetryAttemptMutation) ResetWebhookURL()

ResetWebhookURL resets all changes to the "webhook_url" field.

func (*WebhookRetryAttemptMutation) SetAttemptNumber

func (m *WebhookRetryAttemptMutation) SetAttemptNumber(i int)

SetAttemptNumber sets the "attempt_number" field.

func (*WebhookRetryAttemptMutation) SetCreatedAt

func (m *WebhookRetryAttemptMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*WebhookRetryAttemptMutation) SetField

func (m *WebhookRetryAttemptMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*WebhookRetryAttemptMutation) SetNextRetryTime

func (m *WebhookRetryAttemptMutation) SetNextRetryTime(t time.Time)

SetNextRetryTime sets the "next_retry_time" field.

func (*WebhookRetryAttemptMutation) SetOp

func (m *WebhookRetryAttemptMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*WebhookRetryAttemptMutation) SetPayload

func (m *WebhookRetryAttemptMutation) SetPayload(value map[string]interface{})

SetPayload sets the "payload" field.

func (*WebhookRetryAttemptMutation) SetSignature

func (m *WebhookRetryAttemptMutation) SetSignature(s string)

SetSignature sets the "signature" field.

func (*WebhookRetryAttemptMutation) SetStatus

SetStatus sets the "status" field.

func (*WebhookRetryAttemptMutation) SetUpdatedAt

func (m *WebhookRetryAttemptMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*WebhookRetryAttemptMutation) SetWebhookURL

func (m *WebhookRetryAttemptMutation) SetWebhookURL(s string)

SetWebhookURL sets the "webhook_url" field.

func (*WebhookRetryAttemptMutation) Signature

func (m *WebhookRetryAttemptMutation) Signature() (r string, exists bool)

Signature returns the value of the "signature" field in the mutation.

func (*WebhookRetryAttemptMutation) SignatureCleared

func (m *WebhookRetryAttemptMutation) SignatureCleared() bool

SignatureCleared returns if the "signature" field was cleared in this mutation.

func (*WebhookRetryAttemptMutation) Status

Status returns the value of the "status" field in the mutation.

func (WebhookRetryAttemptMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*WebhookRetryAttemptMutation) Type

Type returns the node type of this mutation (WebhookRetryAttempt).

func (*WebhookRetryAttemptMutation) UpdatedAt

func (m *WebhookRetryAttemptMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*WebhookRetryAttemptMutation) WebhookURL

func (m *WebhookRetryAttemptMutation) WebhookURL() (r string, exists bool)

WebhookURL returns the value of the "webhook_url" field in the mutation.

func (*WebhookRetryAttemptMutation) Where

Where appends a list predicates to the WebhookRetryAttemptMutation builder.

func (*WebhookRetryAttemptMutation) WhereP

func (m *WebhookRetryAttemptMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the WebhookRetryAttemptMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type WebhookRetryAttemptQuery

type WebhookRetryAttemptQuery struct {
	// contains filtered or unexported fields
}

WebhookRetryAttemptQuery is the builder for querying WebhookRetryAttempt entities.

func (*WebhookRetryAttemptQuery) Aggregate

Aggregate returns a WebhookRetryAttemptSelect configured with the given aggregations.

func (*WebhookRetryAttemptQuery) All

All executes the query and returns a list of WebhookRetryAttempts.

func (*WebhookRetryAttemptQuery) AllX

AllX is like All, but panics if an error occurs.

func (*WebhookRetryAttemptQuery) Clone

Clone returns a duplicate of the WebhookRetryAttemptQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*WebhookRetryAttemptQuery) Count

func (wraq *WebhookRetryAttemptQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*WebhookRetryAttemptQuery) CountX

func (wraq *WebhookRetryAttemptQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*WebhookRetryAttemptQuery) Exist

func (wraq *WebhookRetryAttemptQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*WebhookRetryAttemptQuery) ExistX

func (wraq *WebhookRetryAttemptQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*WebhookRetryAttemptQuery) First

First returns the first WebhookRetryAttempt entity from the query. Returns a *NotFoundError when no WebhookRetryAttempt was found.

func (*WebhookRetryAttemptQuery) FirstID

func (wraq *WebhookRetryAttemptQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first WebhookRetryAttempt ID from the query. Returns a *NotFoundError when no WebhookRetryAttempt ID was found.

func (*WebhookRetryAttemptQuery) FirstIDX

func (wraq *WebhookRetryAttemptQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*WebhookRetryAttemptQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*WebhookRetryAttemptQuery) GroupBy

func (wraq *WebhookRetryAttemptQuery) GroupBy(field string, fields ...string) *WebhookRetryAttemptGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
	Count int `json:"count,omitempty"`
}

client.WebhookRetryAttempt.Query().
	GroupBy(webhookretryattempt.FieldCreatedAt).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*WebhookRetryAttemptQuery) IDs

func (wraq *WebhookRetryAttemptQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of WebhookRetryAttempt IDs.

func (*WebhookRetryAttemptQuery) IDsX

func (wraq *WebhookRetryAttemptQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*WebhookRetryAttemptQuery) Limit

Limit the number of records to be returned by this query.

func (*WebhookRetryAttemptQuery) Offset

Offset to start from.

func (*WebhookRetryAttemptQuery) Only

Only returns a single WebhookRetryAttempt entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one WebhookRetryAttempt entity is found. Returns a *NotFoundError when no WebhookRetryAttempt entities are found.

func (*WebhookRetryAttemptQuery) OnlyID

func (wraq *WebhookRetryAttemptQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only WebhookRetryAttempt ID in the query. Returns a *NotSingularError when more than one WebhookRetryAttempt ID is found. Returns a *NotFoundError when no entities are found.

func (*WebhookRetryAttemptQuery) OnlyIDX

func (wraq *WebhookRetryAttemptQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*WebhookRetryAttemptQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*WebhookRetryAttemptQuery) Order

Order specifies how the records should be ordered.

func (*WebhookRetryAttemptQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	CreatedAt time.Time `json:"created_at,omitempty"`
}

client.WebhookRetryAttempt.Query().
	Select(webhookretryattempt.FieldCreatedAt).
	Scan(ctx, &v)

func (*WebhookRetryAttemptQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*WebhookRetryAttemptQuery) Where

Where adds a new predicate for the WebhookRetryAttemptQuery builder.

type WebhookRetryAttemptSelect

type WebhookRetryAttemptSelect struct {
	*WebhookRetryAttemptQuery
	// contains filtered or unexported fields
}

WebhookRetryAttemptSelect is the builder for selecting fields of WebhookRetryAttempt entities.

func (*WebhookRetryAttemptSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*WebhookRetryAttemptSelect) Bool

func (s *WebhookRetryAttemptSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptSelect) BoolX

func (s *WebhookRetryAttemptSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*WebhookRetryAttemptSelect) Bools

func (s *WebhookRetryAttemptSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptSelect) BoolsX

func (s *WebhookRetryAttemptSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*WebhookRetryAttemptSelect) Float64

func (s *WebhookRetryAttemptSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptSelect) Float64X

func (s *WebhookRetryAttemptSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*WebhookRetryAttemptSelect) Float64s

func (s *WebhookRetryAttemptSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptSelect) Float64sX

func (s *WebhookRetryAttemptSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*WebhookRetryAttemptSelect) Int

func (s *WebhookRetryAttemptSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptSelect) IntX

func (s *WebhookRetryAttemptSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*WebhookRetryAttemptSelect) Ints

func (s *WebhookRetryAttemptSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptSelect) IntsX

func (s *WebhookRetryAttemptSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*WebhookRetryAttemptSelect) Scan

func (wras *WebhookRetryAttemptSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*WebhookRetryAttemptSelect) ScanX

func (s *WebhookRetryAttemptSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*WebhookRetryAttemptSelect) String

func (s *WebhookRetryAttemptSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptSelect) StringX

func (s *WebhookRetryAttemptSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*WebhookRetryAttemptSelect) Strings

func (s *WebhookRetryAttemptSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*WebhookRetryAttemptSelect) StringsX

func (s *WebhookRetryAttemptSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type WebhookRetryAttemptUpdate

type WebhookRetryAttemptUpdate struct {
	// contains filtered or unexported fields
}

WebhookRetryAttemptUpdate is the builder for updating WebhookRetryAttempt entities.

func (*WebhookRetryAttemptUpdate) AddAttemptNumber

func (wrau *WebhookRetryAttemptUpdate) AddAttemptNumber(i int) *WebhookRetryAttemptUpdate

AddAttemptNumber adds i to the "attempt_number" field.

func (*WebhookRetryAttemptUpdate) ClearSignature

func (wrau *WebhookRetryAttemptUpdate) ClearSignature() *WebhookRetryAttemptUpdate

ClearSignature clears the value of the "signature" field.

func (*WebhookRetryAttemptUpdate) Exec

Exec executes the query.

func (*WebhookRetryAttemptUpdate) ExecX

func (wrau *WebhookRetryAttemptUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WebhookRetryAttemptUpdate) Mutation

Mutation returns the WebhookRetryAttemptMutation object of the builder.

func (*WebhookRetryAttemptUpdate) Save

func (wrau *WebhookRetryAttemptUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*WebhookRetryAttemptUpdate) SaveX

func (wrau *WebhookRetryAttemptUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*WebhookRetryAttemptUpdate) SetAttemptNumber

func (wrau *WebhookRetryAttemptUpdate) SetAttemptNumber(i int) *WebhookRetryAttemptUpdate

SetAttemptNumber sets the "attempt_number" field.

func (*WebhookRetryAttemptUpdate) SetNextRetryTime

func (wrau *WebhookRetryAttemptUpdate) SetNextRetryTime(t time.Time) *WebhookRetryAttemptUpdate

SetNextRetryTime sets the "next_retry_time" field.

func (*WebhookRetryAttemptUpdate) SetNillableAttemptNumber

func (wrau *WebhookRetryAttemptUpdate) SetNillableAttemptNumber(i *int) *WebhookRetryAttemptUpdate

SetNillableAttemptNumber sets the "attempt_number" field if the given value is not nil.

func (*WebhookRetryAttemptUpdate) SetNillableNextRetryTime

func (wrau *WebhookRetryAttemptUpdate) SetNillableNextRetryTime(t *time.Time) *WebhookRetryAttemptUpdate

SetNillableNextRetryTime sets the "next_retry_time" field if the given value is not nil.

func (*WebhookRetryAttemptUpdate) SetNillableSignature

func (wrau *WebhookRetryAttemptUpdate) SetNillableSignature(s *string) *WebhookRetryAttemptUpdate

SetNillableSignature sets the "signature" field if the given value is not nil.

func (*WebhookRetryAttemptUpdate) SetNillableStatus

SetNillableStatus sets the "status" field if the given value is not nil.

func (*WebhookRetryAttemptUpdate) SetNillableWebhookURL

func (wrau *WebhookRetryAttemptUpdate) SetNillableWebhookURL(s *string) *WebhookRetryAttemptUpdate

SetNillableWebhookURL sets the "webhook_url" field if the given value is not nil.

func (*WebhookRetryAttemptUpdate) SetPayload

func (wrau *WebhookRetryAttemptUpdate) SetPayload(m map[string]interface{}) *WebhookRetryAttemptUpdate

SetPayload sets the "payload" field.

func (*WebhookRetryAttemptUpdate) SetSignature

SetSignature sets the "signature" field.

func (*WebhookRetryAttemptUpdate) SetStatus

SetStatus sets the "status" field.

func (*WebhookRetryAttemptUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*WebhookRetryAttemptUpdate) SetWebhookURL

SetWebhookURL sets the "webhook_url" field.

func (*WebhookRetryAttemptUpdate) Where

Where appends a list predicates to the WebhookRetryAttemptUpdate builder.

type WebhookRetryAttemptUpdateOne

type WebhookRetryAttemptUpdateOne struct {
	// contains filtered or unexported fields
}

WebhookRetryAttemptUpdateOne is the builder for updating a single WebhookRetryAttempt entity.

func (*WebhookRetryAttemptUpdateOne) AddAttemptNumber

AddAttemptNumber adds i to the "attempt_number" field.

func (*WebhookRetryAttemptUpdateOne) ClearSignature

ClearSignature clears the value of the "signature" field.

func (*WebhookRetryAttemptUpdateOne) Exec

Exec executes the query on the entity.

func (*WebhookRetryAttemptUpdateOne) ExecX

func (wrauo *WebhookRetryAttemptUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*WebhookRetryAttemptUpdateOne) Mutation

Mutation returns the WebhookRetryAttemptMutation object of the builder.

func (*WebhookRetryAttemptUpdateOne) Save

Save executes the query and returns the updated WebhookRetryAttempt entity.

func (*WebhookRetryAttemptUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*WebhookRetryAttemptUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*WebhookRetryAttemptUpdateOne) SetAttemptNumber

SetAttemptNumber sets the "attempt_number" field.

func (*WebhookRetryAttemptUpdateOne) SetNextRetryTime

SetNextRetryTime sets the "next_retry_time" field.

func (*WebhookRetryAttemptUpdateOne) SetNillableAttemptNumber

func (wrauo *WebhookRetryAttemptUpdateOne) SetNillableAttemptNumber(i *int) *WebhookRetryAttemptUpdateOne

SetNillableAttemptNumber sets the "attempt_number" field if the given value is not nil.

func (*WebhookRetryAttemptUpdateOne) SetNillableNextRetryTime

func (wrauo *WebhookRetryAttemptUpdateOne) SetNillableNextRetryTime(t *time.Time) *WebhookRetryAttemptUpdateOne

SetNillableNextRetryTime sets the "next_retry_time" field if the given value is not nil.

func (*WebhookRetryAttemptUpdateOne) SetNillableSignature

func (wrauo *WebhookRetryAttemptUpdateOne) SetNillableSignature(s *string) *WebhookRetryAttemptUpdateOne

SetNillableSignature sets the "signature" field if the given value is not nil.

func (*WebhookRetryAttemptUpdateOne) SetNillableStatus

SetNillableStatus sets the "status" field if the given value is not nil.

func (*WebhookRetryAttemptUpdateOne) SetNillableWebhookURL

func (wrauo *WebhookRetryAttemptUpdateOne) SetNillableWebhookURL(s *string) *WebhookRetryAttemptUpdateOne

SetNillableWebhookURL sets the "webhook_url" field if the given value is not nil.

func (*WebhookRetryAttemptUpdateOne) SetPayload

func (wrauo *WebhookRetryAttemptUpdateOne) SetPayload(m map[string]interface{}) *WebhookRetryAttemptUpdateOne

SetPayload sets the "payload" field.

func (*WebhookRetryAttemptUpdateOne) SetSignature

SetSignature sets the "signature" field.

func (*WebhookRetryAttemptUpdateOne) SetStatus

SetStatus sets the "status" field.

func (*WebhookRetryAttemptUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*WebhookRetryAttemptUpdateOne) SetWebhookURL

SetWebhookURL sets the "webhook_url" field.

func (*WebhookRetryAttemptUpdateOne) Where

Where appends a list predicates to the WebhookRetryAttemptUpdate builder.

type WebhookRetryAttemptUpsert

type WebhookRetryAttemptUpsert struct {
	*sql.UpdateSet
}

WebhookRetryAttemptUpsert is the "OnConflict" setter.

func (*WebhookRetryAttemptUpsert) AddAttemptNumber

AddAttemptNumber adds v to the "attempt_number" field.

func (*WebhookRetryAttemptUpsert) ClearSignature

ClearSignature clears the value of the "signature" field.

func (*WebhookRetryAttemptUpsert) SetAttemptNumber

SetAttemptNumber sets the "attempt_number" field.

func (*WebhookRetryAttemptUpsert) SetNextRetryTime

SetNextRetryTime sets the "next_retry_time" field.

func (*WebhookRetryAttemptUpsert) SetPayload

func (u *WebhookRetryAttemptUpsert) SetPayload(v map[string]interface{}) *WebhookRetryAttemptUpsert

SetPayload sets the "payload" field.

func (*WebhookRetryAttemptUpsert) SetSignature

SetSignature sets the "signature" field.

func (*WebhookRetryAttemptUpsert) SetStatus

SetStatus sets the "status" field.

func (*WebhookRetryAttemptUpsert) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*WebhookRetryAttemptUpsert) SetWebhookURL

SetWebhookURL sets the "webhook_url" field.

func (*WebhookRetryAttemptUpsert) UpdateAttemptNumber

func (u *WebhookRetryAttemptUpsert) UpdateAttemptNumber() *WebhookRetryAttemptUpsert

UpdateAttemptNumber sets the "attempt_number" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsert) UpdateNextRetryTime

func (u *WebhookRetryAttemptUpsert) UpdateNextRetryTime() *WebhookRetryAttemptUpsert

UpdateNextRetryTime sets the "next_retry_time" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsert) UpdatePayload

UpdatePayload sets the "payload" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsert) UpdateSignature

UpdateSignature sets the "signature" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsert) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsert) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsert) UpdateWebhookURL

UpdateWebhookURL sets the "webhook_url" field to the value that was provided on create.

type WebhookRetryAttemptUpsertBulk

type WebhookRetryAttemptUpsertBulk struct {
	// contains filtered or unexported fields
}

WebhookRetryAttemptUpsertBulk is the builder for "upsert"-ing a bulk of WebhookRetryAttempt nodes.

func (*WebhookRetryAttemptUpsertBulk) AddAttemptNumber

AddAttemptNumber adds v to the "attempt_number" field.

func (*WebhookRetryAttemptUpsertBulk) ClearSignature

ClearSignature clears the value of the "signature" field.

func (*WebhookRetryAttemptUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*WebhookRetryAttemptUpsertBulk) Exec

Exec executes the query.

func (*WebhookRetryAttemptUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*WebhookRetryAttemptUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.WebhookRetryAttempt.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*WebhookRetryAttemptUpsertBulk) SetAttemptNumber

SetAttemptNumber sets the "attempt_number" field.

func (*WebhookRetryAttemptUpsertBulk) SetNextRetryTime

SetNextRetryTime sets the "next_retry_time" field.

func (*WebhookRetryAttemptUpsertBulk) SetPayload

func (u *WebhookRetryAttemptUpsertBulk) SetPayload(v map[string]interface{}) *WebhookRetryAttemptUpsertBulk

SetPayload sets the "payload" field.

func (*WebhookRetryAttemptUpsertBulk) SetSignature

SetSignature sets the "signature" field.

func (*WebhookRetryAttemptUpsertBulk) SetStatus

SetStatus sets the "status" field.

func (*WebhookRetryAttemptUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*WebhookRetryAttemptUpsertBulk) SetWebhookURL

SetWebhookURL sets the "webhook_url" field.

func (*WebhookRetryAttemptUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the WebhookRetryAttemptCreateBulk.OnConflict documentation for more info.

func (*WebhookRetryAttemptUpsertBulk) UpdateAttemptNumber

UpdateAttemptNumber sets the "attempt_number" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.WebhookRetryAttempt.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*WebhookRetryAttemptUpsertBulk) UpdateNextRetryTime

UpdateNextRetryTime sets the "next_retry_time" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsertBulk) UpdatePayload

UpdatePayload sets the "payload" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsertBulk) UpdateSignature

UpdateSignature sets the "signature" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsertBulk) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsertBulk) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsertBulk) UpdateWebhookURL

UpdateWebhookURL sets the "webhook_url" field to the value that was provided on create.

type WebhookRetryAttemptUpsertOne

type WebhookRetryAttemptUpsertOne struct {
	// contains filtered or unexported fields
}

WebhookRetryAttemptUpsertOne is the builder for "upsert"-ing

one WebhookRetryAttempt node.

func (*WebhookRetryAttemptUpsertOne) AddAttemptNumber

AddAttemptNumber adds v to the "attempt_number" field.

func (*WebhookRetryAttemptUpsertOne) ClearSignature

ClearSignature clears the value of the "signature" field.

func (*WebhookRetryAttemptUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*WebhookRetryAttemptUpsertOne) Exec

Exec executes the query.

func (*WebhookRetryAttemptUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*WebhookRetryAttemptUpsertOne) ID

func (u *WebhookRetryAttemptUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*WebhookRetryAttemptUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*WebhookRetryAttemptUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.WebhookRetryAttempt.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*WebhookRetryAttemptUpsertOne) SetAttemptNumber

SetAttemptNumber sets the "attempt_number" field.

func (*WebhookRetryAttemptUpsertOne) SetNextRetryTime

SetNextRetryTime sets the "next_retry_time" field.

func (*WebhookRetryAttemptUpsertOne) SetPayload

func (u *WebhookRetryAttemptUpsertOne) SetPayload(v map[string]interface{}) *WebhookRetryAttemptUpsertOne

SetPayload sets the "payload" field.

func (*WebhookRetryAttemptUpsertOne) SetSignature

SetSignature sets the "signature" field.

func (*WebhookRetryAttemptUpsertOne) SetStatus

SetStatus sets the "status" field.

func (*WebhookRetryAttemptUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*WebhookRetryAttemptUpsertOne) SetWebhookURL

SetWebhookURL sets the "webhook_url" field.

func (*WebhookRetryAttemptUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the WebhookRetryAttemptCreate.OnConflict documentation for more info.

func (*WebhookRetryAttemptUpsertOne) UpdateAttemptNumber

UpdateAttemptNumber sets the "attempt_number" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.WebhookRetryAttempt.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*WebhookRetryAttemptUpsertOne) UpdateNextRetryTime

UpdateNextRetryTime sets the "next_retry_time" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsertOne) UpdatePayload

UpdatePayload sets the "payload" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsertOne) UpdateSignature

UpdateSignature sets the "signature" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsertOne) UpdateStatus

UpdateStatus sets the "status" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsertOne) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*WebhookRetryAttemptUpsertOne) UpdateWebhookURL

UpdateWebhookURL sets the "webhook_url" field to the value that was provided on create.

type WebhookRetryAttempts

type WebhookRetryAttempts []*WebhookRetryAttempt

WebhookRetryAttempts is a parsable slice of WebhookRetryAttempt.

Source Files

Jump to

Keyboard shortcuts

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