Documentation
¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type APIKey
- func (ak *APIKey) QueryPaymentOrders() *PaymentOrderQuery
- func (ak *APIKey) QueryProviderProfile() *ProviderProfileQuery
- func (ak *APIKey) QuerySenderProfile() *SenderProfileQuery
- func (ak *APIKey) String() string
- func (ak *APIKey) Unwrap() *APIKey
- func (ak *APIKey) Update() *APIKeyUpdateOne
- func (ak *APIKey) Value(name string) (ent.Value, error)
- type APIKeyClient
- func (c *APIKeyClient) Create() *APIKeyCreate
- func (c *APIKeyClient) CreateBulk(builders ...*APIKeyCreate) *APIKeyCreateBulk
- func (c *APIKeyClient) Delete() *APIKeyDelete
- func (c *APIKeyClient) DeleteOne(ak *APIKey) *APIKeyDeleteOne
- func (c *APIKeyClient) DeleteOneID(id uuid.UUID) *APIKeyDeleteOne
- func (c *APIKeyClient) Get(ctx context.Context, id uuid.UUID) (*APIKey, error)
- func (c *APIKeyClient) GetX(ctx context.Context, id uuid.UUID) *APIKey
- func (c *APIKeyClient) Hooks() []Hook
- func (c *APIKeyClient) Intercept(interceptors ...Interceptor)
- func (c *APIKeyClient) Interceptors() []Interceptor
- func (c *APIKeyClient) MapCreateBulk(slice any, setFunc func(*APIKeyCreate, int)) *APIKeyCreateBulk
- func (c *APIKeyClient) Query() *APIKeyQuery
- func (c *APIKeyClient) QueryPaymentOrders(ak *APIKey) *PaymentOrderQuery
- func (c *APIKeyClient) QueryProviderProfile(ak *APIKey) *ProviderProfileQuery
- func (c *APIKeyClient) QuerySenderProfile(ak *APIKey) *SenderProfileQuery
- func (c *APIKeyClient) Update() *APIKeyUpdate
- func (c *APIKeyClient) UpdateOne(ak *APIKey) *APIKeyUpdateOne
- func (c *APIKeyClient) UpdateOneID(id uuid.UUID) *APIKeyUpdateOne
- func (c *APIKeyClient) Use(hooks ...Hook)
- type APIKeyCreate
- func (akc *APIKeyCreate) AddPaymentOrderIDs(ids ...uuid.UUID) *APIKeyCreate
- func (akc *APIKeyCreate) AddPaymentOrders(p ...*PaymentOrder) *APIKeyCreate
- func (akc *APIKeyCreate) Exec(ctx context.Context) error
- func (akc *APIKeyCreate) ExecX(ctx context.Context)
- func (akc *APIKeyCreate) Mutation() *APIKeyMutation
- func (akc *APIKeyCreate) OnConflict(opts ...sql.ConflictOption) *APIKeyUpsertOne
- func (akc *APIKeyCreate) OnConflictColumns(columns ...string) *APIKeyUpsertOne
- func (akc *APIKeyCreate) Save(ctx context.Context) (*APIKey, error)
- func (akc *APIKeyCreate) SaveX(ctx context.Context) *APIKey
- func (akc *APIKeyCreate) SetID(u uuid.UUID) *APIKeyCreate
- func (akc *APIKeyCreate) SetNillableID(u *uuid.UUID) *APIKeyCreate
- func (akc *APIKeyCreate) SetNillableProviderProfileID(id *string) *APIKeyCreate
- func (akc *APIKeyCreate) SetNillableSenderProfileID(id *uuid.UUID) *APIKeyCreate
- func (akc *APIKeyCreate) SetProviderProfile(p *ProviderProfile) *APIKeyCreate
- func (akc *APIKeyCreate) SetProviderProfileID(id string) *APIKeyCreate
- func (akc *APIKeyCreate) SetSecret(s string) *APIKeyCreate
- func (akc *APIKeyCreate) SetSenderProfile(s *SenderProfile) *APIKeyCreate
- func (akc *APIKeyCreate) SetSenderProfileID(id uuid.UUID) *APIKeyCreate
- type APIKeyCreateBulk
- func (akcb *APIKeyCreateBulk) Exec(ctx context.Context) error
- func (akcb *APIKeyCreateBulk) ExecX(ctx context.Context)
- func (akcb *APIKeyCreateBulk) OnConflict(opts ...sql.ConflictOption) *APIKeyUpsertBulk
- func (akcb *APIKeyCreateBulk) OnConflictColumns(columns ...string) *APIKeyUpsertBulk
- func (akcb *APIKeyCreateBulk) Save(ctx context.Context) ([]*APIKey, error)
- func (akcb *APIKeyCreateBulk) SaveX(ctx context.Context) []*APIKey
- type APIKeyDelete
- type APIKeyDeleteOne
- type APIKeyEdges
- type APIKeyGroupBy
- func (akgb *APIKeyGroupBy) Aggregate(fns ...AggregateFunc) *APIKeyGroupBy
- func (s *APIKeyGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *APIKeyGroupBy) BoolX(ctx context.Context) bool
- func (s *APIKeyGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *APIKeyGroupBy) BoolsX(ctx context.Context) []bool
- func (s *APIKeyGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *APIKeyGroupBy) Float64X(ctx context.Context) float64
- func (s *APIKeyGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *APIKeyGroupBy) Float64sX(ctx context.Context) []float64
- func (s *APIKeyGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *APIKeyGroupBy) IntX(ctx context.Context) int
- func (s *APIKeyGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *APIKeyGroupBy) IntsX(ctx context.Context) []int
- func (akgb *APIKeyGroupBy) Scan(ctx context.Context, v any) error
- func (s *APIKeyGroupBy) ScanX(ctx context.Context, v any)
- func (s *APIKeyGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *APIKeyGroupBy) StringX(ctx context.Context) string
- func (s *APIKeyGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *APIKeyGroupBy) StringsX(ctx context.Context) []string
- type APIKeyMutation
- func (m *APIKeyMutation) AddField(name string, value ent.Value) error
- func (m *APIKeyMutation) AddPaymentOrderIDs(ids ...uuid.UUID)
- func (m *APIKeyMutation) AddedEdges() []string
- func (m *APIKeyMutation) AddedField(name string) (ent.Value, bool)
- func (m *APIKeyMutation) AddedFields() []string
- func (m *APIKeyMutation) AddedIDs(name string) []ent.Value
- func (m *APIKeyMutation) ClearEdge(name string) error
- func (m *APIKeyMutation) ClearField(name string) error
- func (m *APIKeyMutation) ClearPaymentOrders()
- func (m *APIKeyMutation) ClearProviderProfile()
- func (m *APIKeyMutation) ClearSenderProfile()
- func (m *APIKeyMutation) ClearedEdges() []string
- func (m *APIKeyMutation) ClearedFields() []string
- func (m APIKeyMutation) Client() *Client
- func (m *APIKeyMutation) EdgeCleared(name string) bool
- func (m *APIKeyMutation) Field(name string) (ent.Value, bool)
- func (m *APIKeyMutation) FieldCleared(name string) bool
- func (m *APIKeyMutation) Fields() []string
- func (m *APIKeyMutation) ID() (id uuid.UUID, exists bool)
- func (m *APIKeyMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *APIKeyMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *APIKeyMutation) OldSecret(ctx context.Context) (v string, err error)
- func (m *APIKeyMutation) Op() Op
- func (m *APIKeyMutation) PaymentOrdersCleared() bool
- func (m *APIKeyMutation) PaymentOrdersIDs() (ids []uuid.UUID)
- func (m *APIKeyMutation) ProviderProfileCleared() bool
- func (m *APIKeyMutation) ProviderProfileID() (id string, exists bool)
- func (m *APIKeyMutation) ProviderProfileIDs() (ids []string)
- func (m *APIKeyMutation) RemovePaymentOrderIDs(ids ...uuid.UUID)
- func (m *APIKeyMutation) RemovedEdges() []string
- func (m *APIKeyMutation) RemovedIDs(name string) []ent.Value
- func (m *APIKeyMutation) RemovedPaymentOrdersIDs() (ids []uuid.UUID)
- func (m *APIKeyMutation) ResetEdge(name string) error
- func (m *APIKeyMutation) ResetField(name string) error
- func (m *APIKeyMutation) ResetPaymentOrders()
- func (m *APIKeyMutation) ResetProviderProfile()
- func (m *APIKeyMutation) ResetSecret()
- func (m *APIKeyMutation) ResetSenderProfile()
- func (m *APIKeyMutation) Secret() (r string, exists bool)
- func (m *APIKeyMutation) SenderProfileCleared() bool
- func (m *APIKeyMutation) SenderProfileID() (id uuid.UUID, exists bool)
- func (m *APIKeyMutation) SenderProfileIDs() (ids []uuid.UUID)
- func (m *APIKeyMutation) SetField(name string, value ent.Value) error
- func (m *APIKeyMutation) SetID(id uuid.UUID)
- func (m *APIKeyMutation) SetOp(op Op)
- func (m *APIKeyMutation) SetProviderProfileID(id string)
- func (m *APIKeyMutation) SetSecret(s string)
- func (m *APIKeyMutation) SetSenderProfileID(id uuid.UUID)
- func (m APIKeyMutation) Tx() (*Tx, error)
- func (m *APIKeyMutation) Type() string
- func (m *APIKeyMutation) Where(ps ...predicate.APIKey)
- func (m *APIKeyMutation) WhereP(ps ...func(*sql.Selector))
- type APIKeyQuery
- func (akq *APIKeyQuery) Aggregate(fns ...AggregateFunc) *APIKeySelect
- func (akq *APIKeyQuery) All(ctx context.Context) ([]*APIKey, error)
- func (akq *APIKeyQuery) AllX(ctx context.Context) []*APIKey
- func (akq *APIKeyQuery) Clone() *APIKeyQuery
- func (akq *APIKeyQuery) Count(ctx context.Context) (int, error)
- func (akq *APIKeyQuery) CountX(ctx context.Context) int
- func (akq *APIKeyQuery) Exist(ctx context.Context) (bool, error)
- func (akq *APIKeyQuery) ExistX(ctx context.Context) bool
- func (akq *APIKeyQuery) First(ctx context.Context) (*APIKey, error)
- func (akq *APIKeyQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (akq *APIKeyQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (akq *APIKeyQuery) FirstX(ctx context.Context) *APIKey
- func (akq *APIKeyQuery) GroupBy(field string, fields ...string) *APIKeyGroupBy
- func (akq *APIKeyQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (akq *APIKeyQuery) IDsX(ctx context.Context) []uuid.UUID
- func (akq *APIKeyQuery) Limit(limit int) *APIKeyQuery
- func (akq *APIKeyQuery) Offset(offset int) *APIKeyQuery
- func (akq *APIKeyQuery) Only(ctx context.Context) (*APIKey, error)
- func (akq *APIKeyQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (akq *APIKeyQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (akq *APIKeyQuery) OnlyX(ctx context.Context) *APIKey
- func (akq *APIKeyQuery) Order(o ...apikey.OrderOption) *APIKeyQuery
- func (akq *APIKeyQuery) QueryPaymentOrders() *PaymentOrderQuery
- func (akq *APIKeyQuery) QueryProviderProfile() *ProviderProfileQuery
- func (akq *APIKeyQuery) QuerySenderProfile() *SenderProfileQuery
- func (akq *APIKeyQuery) Select(fields ...string) *APIKeySelect
- func (akq *APIKeyQuery) Unique(unique bool) *APIKeyQuery
- func (akq *APIKeyQuery) Where(ps ...predicate.APIKey) *APIKeyQuery
- func (akq *APIKeyQuery) WithPaymentOrders(opts ...func(*PaymentOrderQuery)) *APIKeyQuery
- func (akq *APIKeyQuery) WithProviderProfile(opts ...func(*ProviderProfileQuery)) *APIKeyQuery
- func (akq *APIKeyQuery) WithSenderProfile(opts ...func(*SenderProfileQuery)) *APIKeyQuery
- type APIKeySelect
- func (aks *APIKeySelect) Aggregate(fns ...AggregateFunc) *APIKeySelect
- func (s *APIKeySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *APIKeySelect) BoolX(ctx context.Context) bool
- func (s *APIKeySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *APIKeySelect) BoolsX(ctx context.Context) []bool
- func (s *APIKeySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *APIKeySelect) Float64X(ctx context.Context) float64
- func (s *APIKeySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *APIKeySelect) Float64sX(ctx context.Context) []float64
- func (s *APIKeySelect) Int(ctx context.Context) (_ int, err error)
- func (s *APIKeySelect) IntX(ctx context.Context) int
- func (s *APIKeySelect) Ints(ctx context.Context) ([]int, error)
- func (s *APIKeySelect) IntsX(ctx context.Context) []int
- func (aks *APIKeySelect) Scan(ctx context.Context, v any) error
- func (s *APIKeySelect) ScanX(ctx context.Context, v any)
- func (s *APIKeySelect) String(ctx context.Context) (_ string, err error)
- func (s *APIKeySelect) StringX(ctx context.Context) string
- func (s *APIKeySelect) Strings(ctx context.Context) ([]string, error)
- func (s *APIKeySelect) StringsX(ctx context.Context) []string
- type APIKeyUpdate
- func (aku *APIKeyUpdate) AddPaymentOrderIDs(ids ...uuid.UUID) *APIKeyUpdate
- func (aku *APIKeyUpdate) AddPaymentOrders(p ...*PaymentOrder) *APIKeyUpdate
- func (aku *APIKeyUpdate) ClearPaymentOrders() *APIKeyUpdate
- func (aku *APIKeyUpdate) Exec(ctx context.Context) error
- func (aku *APIKeyUpdate) ExecX(ctx context.Context)
- func (aku *APIKeyUpdate) Mutation() *APIKeyMutation
- func (aku *APIKeyUpdate) RemovePaymentOrderIDs(ids ...uuid.UUID) *APIKeyUpdate
- func (aku *APIKeyUpdate) RemovePaymentOrders(p ...*PaymentOrder) *APIKeyUpdate
- func (aku *APIKeyUpdate) Save(ctx context.Context) (int, error)
- func (aku *APIKeyUpdate) SaveX(ctx context.Context) int
- func (aku *APIKeyUpdate) SetNillableSecret(s *string) *APIKeyUpdate
- func (aku *APIKeyUpdate) SetSecret(s string) *APIKeyUpdate
- func (aku *APIKeyUpdate) Where(ps ...predicate.APIKey) *APIKeyUpdate
- type APIKeyUpdateOne
- func (akuo *APIKeyUpdateOne) AddPaymentOrderIDs(ids ...uuid.UUID) *APIKeyUpdateOne
- func (akuo *APIKeyUpdateOne) AddPaymentOrders(p ...*PaymentOrder) *APIKeyUpdateOne
- func (akuo *APIKeyUpdateOne) ClearPaymentOrders() *APIKeyUpdateOne
- func (akuo *APIKeyUpdateOne) Exec(ctx context.Context) error
- func (akuo *APIKeyUpdateOne) ExecX(ctx context.Context)
- func (akuo *APIKeyUpdateOne) Mutation() *APIKeyMutation
- func (akuo *APIKeyUpdateOne) RemovePaymentOrderIDs(ids ...uuid.UUID) *APIKeyUpdateOne
- func (akuo *APIKeyUpdateOne) RemovePaymentOrders(p ...*PaymentOrder) *APIKeyUpdateOne
- func (akuo *APIKeyUpdateOne) Save(ctx context.Context) (*APIKey, error)
- func (akuo *APIKeyUpdateOne) SaveX(ctx context.Context) *APIKey
- func (akuo *APIKeyUpdateOne) Select(field string, fields ...string) *APIKeyUpdateOne
- func (akuo *APIKeyUpdateOne) SetNillableSecret(s *string) *APIKeyUpdateOne
- func (akuo *APIKeyUpdateOne) SetSecret(s string) *APIKeyUpdateOne
- func (akuo *APIKeyUpdateOne) Where(ps ...predicate.APIKey) *APIKeyUpdateOne
- type APIKeyUpsert
- type APIKeyUpsertBulk
- func (u *APIKeyUpsertBulk) DoNothing() *APIKeyUpsertBulk
- func (u *APIKeyUpsertBulk) Exec(ctx context.Context) error
- func (u *APIKeyUpsertBulk) ExecX(ctx context.Context)
- func (u *APIKeyUpsertBulk) Ignore() *APIKeyUpsertBulk
- func (u *APIKeyUpsertBulk) SetSecret(v string) *APIKeyUpsertBulk
- func (u *APIKeyUpsertBulk) Update(set func(*APIKeyUpsert)) *APIKeyUpsertBulk
- func (u *APIKeyUpsertBulk) UpdateNewValues() *APIKeyUpsertBulk
- func (u *APIKeyUpsertBulk) UpdateSecret() *APIKeyUpsertBulk
- type APIKeyUpsertOne
- func (u *APIKeyUpsertOne) DoNothing() *APIKeyUpsertOne
- func (u *APIKeyUpsertOne) Exec(ctx context.Context) error
- func (u *APIKeyUpsertOne) ExecX(ctx context.Context)
- func (u *APIKeyUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *APIKeyUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *APIKeyUpsertOne) Ignore() *APIKeyUpsertOne
- func (u *APIKeyUpsertOne) SetSecret(v string) *APIKeyUpsertOne
- func (u *APIKeyUpsertOne) Update(set func(*APIKeyUpsert)) *APIKeyUpsertOne
- func (u *APIKeyUpsertOne) UpdateNewValues() *APIKeyUpsertOne
- func (u *APIKeyUpsertOne) UpdateSecret() *APIKeyUpsertOne
- type APIKeys
- type AggregateFunc
- type BeneficialOwner
- type BeneficialOwnerClient
- func (c *BeneficialOwnerClient) Create() *BeneficialOwnerCreate
- func (c *BeneficialOwnerClient) CreateBulk(builders ...*BeneficialOwnerCreate) *BeneficialOwnerCreateBulk
- func (c *BeneficialOwnerClient) Delete() *BeneficialOwnerDelete
- func (c *BeneficialOwnerClient) DeleteOne(bo *BeneficialOwner) *BeneficialOwnerDeleteOne
- func (c *BeneficialOwnerClient) DeleteOneID(id uuid.UUID) *BeneficialOwnerDeleteOne
- func (c *BeneficialOwnerClient) Get(ctx context.Context, id uuid.UUID) (*BeneficialOwner, error)
- func (c *BeneficialOwnerClient) GetX(ctx context.Context, id uuid.UUID) *BeneficialOwner
- func (c *BeneficialOwnerClient) Hooks() []Hook
- func (c *BeneficialOwnerClient) Intercept(interceptors ...Interceptor)
- func (c *BeneficialOwnerClient) Interceptors() []Interceptor
- func (c *BeneficialOwnerClient) MapCreateBulk(slice any, setFunc func(*BeneficialOwnerCreate, int)) *BeneficialOwnerCreateBulk
- func (c *BeneficialOwnerClient) Query() *BeneficialOwnerQuery
- func (c *BeneficialOwnerClient) QueryKybProfile(bo *BeneficialOwner) *KYBProfileQuery
- func (c *BeneficialOwnerClient) Update() *BeneficialOwnerUpdate
- func (c *BeneficialOwnerClient) UpdateOne(bo *BeneficialOwner) *BeneficialOwnerUpdateOne
- func (c *BeneficialOwnerClient) UpdateOneID(id uuid.UUID) *BeneficialOwnerUpdateOne
- func (c *BeneficialOwnerClient) Use(hooks ...Hook)
- type BeneficialOwnerCreate
- func (boc *BeneficialOwnerCreate) Exec(ctx context.Context) error
- func (boc *BeneficialOwnerCreate) ExecX(ctx context.Context)
- func (boc *BeneficialOwnerCreate) Mutation() *BeneficialOwnerMutation
- func (boc *BeneficialOwnerCreate) OnConflict(opts ...sql.ConflictOption) *BeneficialOwnerUpsertOne
- func (boc *BeneficialOwnerCreate) OnConflictColumns(columns ...string) *BeneficialOwnerUpsertOne
- func (boc *BeneficialOwnerCreate) Save(ctx context.Context) (*BeneficialOwner, error)
- func (boc *BeneficialOwnerCreate) SaveX(ctx context.Context) *BeneficialOwner
- func (boc *BeneficialOwnerCreate) SetDateOfBirth(s string) *BeneficialOwnerCreate
- func (boc *BeneficialOwnerCreate) SetFullName(s string) *BeneficialOwnerCreate
- func (boc *BeneficialOwnerCreate) SetGovernmentIssuedIDType(biit beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerCreate
- func (boc *BeneficialOwnerCreate) SetGovernmentIssuedIDURL(s string) *BeneficialOwnerCreate
- func (boc *BeneficialOwnerCreate) SetID(u uuid.UUID) *BeneficialOwnerCreate
- func (boc *BeneficialOwnerCreate) SetKybProfile(k *KYBProfile) *BeneficialOwnerCreate
- func (boc *BeneficialOwnerCreate) SetKybProfileID(id uuid.UUID) *BeneficialOwnerCreate
- func (boc *BeneficialOwnerCreate) SetNillableGovernmentIssuedIDType(biit *beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerCreate
- func (boc *BeneficialOwnerCreate) SetNillableID(u *uuid.UUID) *BeneficialOwnerCreate
- func (boc *BeneficialOwnerCreate) SetOwnershipPercentage(f float64) *BeneficialOwnerCreate
- func (boc *BeneficialOwnerCreate) SetProofOfResidentialAddressURL(s string) *BeneficialOwnerCreate
- func (boc *BeneficialOwnerCreate) SetResidentialAddress(s string) *BeneficialOwnerCreate
- type BeneficialOwnerCreateBulk
- func (bocb *BeneficialOwnerCreateBulk) Exec(ctx context.Context) error
- func (bocb *BeneficialOwnerCreateBulk) ExecX(ctx context.Context)
- func (bocb *BeneficialOwnerCreateBulk) OnConflict(opts ...sql.ConflictOption) *BeneficialOwnerUpsertBulk
- func (bocb *BeneficialOwnerCreateBulk) OnConflictColumns(columns ...string) *BeneficialOwnerUpsertBulk
- func (bocb *BeneficialOwnerCreateBulk) Save(ctx context.Context) ([]*BeneficialOwner, error)
- func (bocb *BeneficialOwnerCreateBulk) SaveX(ctx context.Context) []*BeneficialOwner
- type BeneficialOwnerDelete
- type BeneficialOwnerDeleteOne
- type BeneficialOwnerEdges
- type BeneficialOwnerGroupBy
- func (bogb *BeneficialOwnerGroupBy) Aggregate(fns ...AggregateFunc) *BeneficialOwnerGroupBy
- func (s *BeneficialOwnerGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *BeneficialOwnerGroupBy) BoolX(ctx context.Context) bool
- func (s *BeneficialOwnerGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *BeneficialOwnerGroupBy) BoolsX(ctx context.Context) []bool
- func (s *BeneficialOwnerGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *BeneficialOwnerGroupBy) Float64X(ctx context.Context) float64
- func (s *BeneficialOwnerGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *BeneficialOwnerGroupBy) Float64sX(ctx context.Context) []float64
- func (s *BeneficialOwnerGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *BeneficialOwnerGroupBy) IntX(ctx context.Context) int
- func (s *BeneficialOwnerGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *BeneficialOwnerGroupBy) IntsX(ctx context.Context) []int
- func (bogb *BeneficialOwnerGroupBy) Scan(ctx context.Context, v any) error
- func (s *BeneficialOwnerGroupBy) ScanX(ctx context.Context, v any)
- func (s *BeneficialOwnerGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *BeneficialOwnerGroupBy) StringX(ctx context.Context) string
- func (s *BeneficialOwnerGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *BeneficialOwnerGroupBy) StringsX(ctx context.Context) []string
- type BeneficialOwnerMutation
- func (m *BeneficialOwnerMutation) AddField(name string, value ent.Value) error
- func (m *BeneficialOwnerMutation) AddOwnershipPercentage(f float64)
- func (m *BeneficialOwnerMutation) AddedEdges() []string
- func (m *BeneficialOwnerMutation) AddedField(name string) (ent.Value, bool)
- func (m *BeneficialOwnerMutation) AddedFields() []string
- func (m *BeneficialOwnerMutation) AddedIDs(name string) []ent.Value
- func (m *BeneficialOwnerMutation) AddedOwnershipPercentage() (r float64, exists bool)
- func (m *BeneficialOwnerMutation) ClearEdge(name string) error
- func (m *BeneficialOwnerMutation) ClearField(name string) error
- func (m *BeneficialOwnerMutation) ClearGovernmentIssuedIDType()
- func (m *BeneficialOwnerMutation) ClearKybProfile()
- func (m *BeneficialOwnerMutation) ClearedEdges() []string
- func (m *BeneficialOwnerMutation) ClearedFields() []string
- func (m BeneficialOwnerMutation) Client() *Client
- func (m *BeneficialOwnerMutation) DateOfBirth() (r string, exists bool)
- func (m *BeneficialOwnerMutation) EdgeCleared(name string) bool
- func (m *BeneficialOwnerMutation) Field(name string) (ent.Value, bool)
- func (m *BeneficialOwnerMutation) FieldCleared(name string) bool
- func (m *BeneficialOwnerMutation) Fields() []string
- func (m *BeneficialOwnerMutation) FullName() (r string, exists bool)
- func (m *BeneficialOwnerMutation) GovernmentIssuedIDType() (r beneficialowner.GovernmentIssuedIDType, exists bool)
- func (m *BeneficialOwnerMutation) GovernmentIssuedIDTypeCleared() bool
- func (m *BeneficialOwnerMutation) GovernmentIssuedIDURL() (r string, exists bool)
- func (m *BeneficialOwnerMutation) ID() (id uuid.UUID, exists bool)
- func (m *BeneficialOwnerMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *BeneficialOwnerMutation) KybProfileCleared() bool
- func (m *BeneficialOwnerMutation) KybProfileID() (id uuid.UUID, exists bool)
- func (m *BeneficialOwnerMutation) KybProfileIDs() (ids []uuid.UUID)
- func (m *BeneficialOwnerMutation) OldDateOfBirth(ctx context.Context) (v string, err error)
- func (m *BeneficialOwnerMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *BeneficialOwnerMutation) OldFullName(ctx context.Context) (v string, err error)
- func (m *BeneficialOwnerMutation) OldGovernmentIssuedIDType(ctx context.Context) (v beneficialowner.GovernmentIssuedIDType, err error)
- func (m *BeneficialOwnerMutation) OldGovernmentIssuedIDURL(ctx context.Context) (v string, err error)
- func (m *BeneficialOwnerMutation) OldOwnershipPercentage(ctx context.Context) (v float64, err error)
- func (m *BeneficialOwnerMutation) OldProofOfResidentialAddressURL(ctx context.Context) (v string, err error)
- func (m *BeneficialOwnerMutation) OldResidentialAddress(ctx context.Context) (v string, err error)
- func (m *BeneficialOwnerMutation) Op() Op
- func (m *BeneficialOwnerMutation) OwnershipPercentage() (r float64, exists bool)
- func (m *BeneficialOwnerMutation) ProofOfResidentialAddressURL() (r string, exists bool)
- func (m *BeneficialOwnerMutation) RemovedEdges() []string
- func (m *BeneficialOwnerMutation) RemovedIDs(name string) []ent.Value
- func (m *BeneficialOwnerMutation) ResetDateOfBirth()
- func (m *BeneficialOwnerMutation) ResetEdge(name string) error
- func (m *BeneficialOwnerMutation) ResetField(name string) error
- func (m *BeneficialOwnerMutation) ResetFullName()
- func (m *BeneficialOwnerMutation) ResetGovernmentIssuedIDType()
- func (m *BeneficialOwnerMutation) ResetGovernmentIssuedIDURL()
- func (m *BeneficialOwnerMutation) ResetKybProfile()
- func (m *BeneficialOwnerMutation) ResetOwnershipPercentage()
- func (m *BeneficialOwnerMutation) ResetProofOfResidentialAddressURL()
- func (m *BeneficialOwnerMutation) ResetResidentialAddress()
- func (m *BeneficialOwnerMutation) ResidentialAddress() (r string, exists bool)
- func (m *BeneficialOwnerMutation) SetDateOfBirth(s string)
- func (m *BeneficialOwnerMutation) SetField(name string, value ent.Value) error
- func (m *BeneficialOwnerMutation) SetFullName(s string)
- func (m *BeneficialOwnerMutation) SetGovernmentIssuedIDType(biit beneficialowner.GovernmentIssuedIDType)
- func (m *BeneficialOwnerMutation) SetGovernmentIssuedIDURL(s string)
- func (m *BeneficialOwnerMutation) SetID(id uuid.UUID)
- func (m *BeneficialOwnerMutation) SetKybProfileID(id uuid.UUID)
- func (m *BeneficialOwnerMutation) SetOp(op Op)
- func (m *BeneficialOwnerMutation) SetOwnershipPercentage(f float64)
- func (m *BeneficialOwnerMutation) SetProofOfResidentialAddressURL(s string)
- func (m *BeneficialOwnerMutation) SetResidentialAddress(s string)
- func (m BeneficialOwnerMutation) Tx() (*Tx, error)
- func (m *BeneficialOwnerMutation) Type() string
- func (m *BeneficialOwnerMutation) Where(ps ...predicate.BeneficialOwner)
- func (m *BeneficialOwnerMutation) WhereP(ps ...func(*sql.Selector))
- type BeneficialOwnerQuery
- func (boq *BeneficialOwnerQuery) Aggregate(fns ...AggregateFunc) *BeneficialOwnerSelect
- func (boq *BeneficialOwnerQuery) All(ctx context.Context) ([]*BeneficialOwner, error)
- func (boq *BeneficialOwnerQuery) AllX(ctx context.Context) []*BeneficialOwner
- func (boq *BeneficialOwnerQuery) Clone() *BeneficialOwnerQuery
- func (boq *BeneficialOwnerQuery) Count(ctx context.Context) (int, error)
- func (boq *BeneficialOwnerQuery) CountX(ctx context.Context) int
- func (boq *BeneficialOwnerQuery) Exist(ctx context.Context) (bool, error)
- func (boq *BeneficialOwnerQuery) ExistX(ctx context.Context) bool
- func (boq *BeneficialOwnerQuery) First(ctx context.Context) (*BeneficialOwner, error)
- func (boq *BeneficialOwnerQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (boq *BeneficialOwnerQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (boq *BeneficialOwnerQuery) FirstX(ctx context.Context) *BeneficialOwner
- func (boq *BeneficialOwnerQuery) GroupBy(field string, fields ...string) *BeneficialOwnerGroupBy
- func (boq *BeneficialOwnerQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (boq *BeneficialOwnerQuery) IDsX(ctx context.Context) []uuid.UUID
- func (boq *BeneficialOwnerQuery) Limit(limit int) *BeneficialOwnerQuery
- func (boq *BeneficialOwnerQuery) Offset(offset int) *BeneficialOwnerQuery
- func (boq *BeneficialOwnerQuery) Only(ctx context.Context) (*BeneficialOwner, error)
- func (boq *BeneficialOwnerQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (boq *BeneficialOwnerQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (boq *BeneficialOwnerQuery) OnlyX(ctx context.Context) *BeneficialOwner
- func (boq *BeneficialOwnerQuery) Order(o ...beneficialowner.OrderOption) *BeneficialOwnerQuery
- func (boq *BeneficialOwnerQuery) QueryKybProfile() *KYBProfileQuery
- func (boq *BeneficialOwnerQuery) Select(fields ...string) *BeneficialOwnerSelect
- func (boq *BeneficialOwnerQuery) Unique(unique bool) *BeneficialOwnerQuery
- func (boq *BeneficialOwnerQuery) Where(ps ...predicate.BeneficialOwner) *BeneficialOwnerQuery
- func (boq *BeneficialOwnerQuery) WithKybProfile(opts ...func(*KYBProfileQuery)) *BeneficialOwnerQuery
- type BeneficialOwnerSelect
- func (bos *BeneficialOwnerSelect) Aggregate(fns ...AggregateFunc) *BeneficialOwnerSelect
- func (s *BeneficialOwnerSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *BeneficialOwnerSelect) BoolX(ctx context.Context) bool
- func (s *BeneficialOwnerSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *BeneficialOwnerSelect) BoolsX(ctx context.Context) []bool
- func (s *BeneficialOwnerSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *BeneficialOwnerSelect) Float64X(ctx context.Context) float64
- func (s *BeneficialOwnerSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *BeneficialOwnerSelect) Float64sX(ctx context.Context) []float64
- func (s *BeneficialOwnerSelect) Int(ctx context.Context) (_ int, err error)
- func (s *BeneficialOwnerSelect) IntX(ctx context.Context) int
- func (s *BeneficialOwnerSelect) Ints(ctx context.Context) ([]int, error)
- func (s *BeneficialOwnerSelect) IntsX(ctx context.Context) []int
- func (bos *BeneficialOwnerSelect) Scan(ctx context.Context, v any) error
- func (s *BeneficialOwnerSelect) ScanX(ctx context.Context, v any)
- func (s *BeneficialOwnerSelect) String(ctx context.Context) (_ string, err error)
- func (s *BeneficialOwnerSelect) StringX(ctx context.Context) string
- func (s *BeneficialOwnerSelect) Strings(ctx context.Context) ([]string, error)
- func (s *BeneficialOwnerSelect) StringsX(ctx context.Context) []string
- type BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) AddOwnershipPercentage(f float64) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) ClearGovernmentIssuedIDType() *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) ClearKybProfile() *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) Exec(ctx context.Context) error
- func (bou *BeneficialOwnerUpdate) ExecX(ctx context.Context)
- func (bou *BeneficialOwnerUpdate) Mutation() *BeneficialOwnerMutation
- func (bou *BeneficialOwnerUpdate) Save(ctx context.Context) (int, error)
- func (bou *BeneficialOwnerUpdate) SaveX(ctx context.Context) int
- func (bou *BeneficialOwnerUpdate) SetDateOfBirth(s string) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetFullName(s string) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetGovernmentIssuedIDType(biit beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetGovernmentIssuedIDURL(s string) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetKybProfile(k *KYBProfile) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetKybProfileID(id uuid.UUID) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetNillableDateOfBirth(s *string) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetNillableFullName(s *string) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetNillableGovernmentIssuedIDType(biit *beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetNillableGovernmentIssuedIDURL(s *string) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetNillableOwnershipPercentage(f *float64) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetNillableProofOfResidentialAddressURL(s *string) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetNillableResidentialAddress(s *string) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetOwnershipPercentage(f float64) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetProofOfResidentialAddressURL(s string) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) SetResidentialAddress(s string) *BeneficialOwnerUpdate
- func (bou *BeneficialOwnerUpdate) Where(ps ...predicate.BeneficialOwner) *BeneficialOwnerUpdate
- type BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) AddOwnershipPercentage(f float64) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) ClearGovernmentIssuedIDType() *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) ClearKybProfile() *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) Exec(ctx context.Context) error
- func (bouo *BeneficialOwnerUpdateOne) ExecX(ctx context.Context)
- func (bouo *BeneficialOwnerUpdateOne) Mutation() *BeneficialOwnerMutation
- func (bouo *BeneficialOwnerUpdateOne) Save(ctx context.Context) (*BeneficialOwner, error)
- func (bouo *BeneficialOwnerUpdateOne) SaveX(ctx context.Context) *BeneficialOwner
- func (bouo *BeneficialOwnerUpdateOne) Select(field string, fields ...string) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetDateOfBirth(s string) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetFullName(s string) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetGovernmentIssuedIDType(biit beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetGovernmentIssuedIDURL(s string) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetKybProfile(k *KYBProfile) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetKybProfileID(id uuid.UUID) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetNillableDateOfBirth(s *string) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetNillableFullName(s *string) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetNillableGovernmentIssuedIDType(biit *beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetNillableGovernmentIssuedIDURL(s *string) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetNillableOwnershipPercentage(f *float64) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetNillableProofOfResidentialAddressURL(s *string) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetNillableResidentialAddress(s *string) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetOwnershipPercentage(f float64) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetProofOfResidentialAddressURL(s string) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) SetResidentialAddress(s string) *BeneficialOwnerUpdateOne
- func (bouo *BeneficialOwnerUpdateOne) Where(ps ...predicate.BeneficialOwner) *BeneficialOwnerUpdateOne
- type BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) AddOwnershipPercentage(v float64) *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) ClearGovernmentIssuedIDType() *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) SetDateOfBirth(v string) *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) SetFullName(v string) *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) SetGovernmentIssuedIDType(v beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) SetGovernmentIssuedIDURL(v string) *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) SetOwnershipPercentage(v float64) *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) SetProofOfResidentialAddressURL(v string) *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) SetResidentialAddress(v string) *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) UpdateDateOfBirth() *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) UpdateFullName() *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) UpdateGovernmentIssuedIDType() *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) UpdateGovernmentIssuedIDURL() *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) UpdateOwnershipPercentage() *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) UpdateProofOfResidentialAddressURL() *BeneficialOwnerUpsert
- func (u *BeneficialOwnerUpsert) UpdateResidentialAddress() *BeneficialOwnerUpsert
- type BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) AddOwnershipPercentage(v float64) *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) ClearGovernmentIssuedIDType() *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) DoNothing() *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) Exec(ctx context.Context) error
- func (u *BeneficialOwnerUpsertBulk) ExecX(ctx context.Context)
- func (u *BeneficialOwnerUpsertBulk) Ignore() *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) SetDateOfBirth(v string) *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) SetFullName(v string) *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) SetGovernmentIssuedIDType(v beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) SetGovernmentIssuedIDURL(v string) *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) SetOwnershipPercentage(v float64) *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) SetProofOfResidentialAddressURL(v string) *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) SetResidentialAddress(v string) *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) Update(set func(*BeneficialOwnerUpsert)) *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) UpdateDateOfBirth() *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) UpdateFullName() *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) UpdateGovernmentIssuedIDType() *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) UpdateGovernmentIssuedIDURL() *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) UpdateNewValues() *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) UpdateOwnershipPercentage() *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) UpdateProofOfResidentialAddressURL() *BeneficialOwnerUpsertBulk
- func (u *BeneficialOwnerUpsertBulk) UpdateResidentialAddress() *BeneficialOwnerUpsertBulk
- type BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) AddOwnershipPercentage(v float64) *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) ClearGovernmentIssuedIDType() *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) DoNothing() *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) Exec(ctx context.Context) error
- func (u *BeneficialOwnerUpsertOne) ExecX(ctx context.Context)
- func (u *BeneficialOwnerUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *BeneficialOwnerUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *BeneficialOwnerUpsertOne) Ignore() *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) SetDateOfBirth(v string) *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) SetFullName(v string) *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) SetGovernmentIssuedIDType(v beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) SetGovernmentIssuedIDURL(v string) *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) SetOwnershipPercentage(v float64) *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) SetProofOfResidentialAddressURL(v string) *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) SetResidentialAddress(v string) *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) Update(set func(*BeneficialOwnerUpsert)) *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) UpdateDateOfBirth() *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) UpdateFullName() *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) UpdateGovernmentIssuedIDType() *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) UpdateGovernmentIssuedIDURL() *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) UpdateNewValues() *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) UpdateOwnershipPercentage() *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) UpdateProofOfResidentialAddressURL() *BeneficialOwnerUpsertOne
- func (u *BeneficialOwnerUpsertOne) UpdateResidentialAddress() *BeneficialOwnerUpsertOne
- type BeneficialOwners
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type FiatCurrencies
- type FiatCurrency
- func (fc *FiatCurrency) QueryInstitutions() *InstitutionQuery
- func (fc *FiatCurrency) QueryProviderCurrencies() *ProviderCurrenciesQuery
- func (fc *FiatCurrency) QueryProviderOrderTokens() *ProviderOrderTokenQuery
- func (fc *FiatCurrency) QueryProvisionBuckets() *ProvisionBucketQuery
- func (fc *FiatCurrency) String() string
- func (fc *FiatCurrency) Unwrap() *FiatCurrency
- func (fc *FiatCurrency) Update() *FiatCurrencyUpdateOne
- func (fc *FiatCurrency) Value(name string) (ent.Value, error)
- type FiatCurrencyClient
- func (c *FiatCurrencyClient) Create() *FiatCurrencyCreate
- func (c *FiatCurrencyClient) CreateBulk(builders ...*FiatCurrencyCreate) *FiatCurrencyCreateBulk
- func (c *FiatCurrencyClient) Delete() *FiatCurrencyDelete
- func (c *FiatCurrencyClient) DeleteOne(fc *FiatCurrency) *FiatCurrencyDeleteOne
- func (c *FiatCurrencyClient) DeleteOneID(id uuid.UUID) *FiatCurrencyDeleteOne
- func (c *FiatCurrencyClient) Get(ctx context.Context, id uuid.UUID) (*FiatCurrency, error)
- func (c *FiatCurrencyClient) GetX(ctx context.Context, id uuid.UUID) *FiatCurrency
- func (c *FiatCurrencyClient) Hooks() []Hook
- func (c *FiatCurrencyClient) Intercept(interceptors ...Interceptor)
- func (c *FiatCurrencyClient) Interceptors() []Interceptor
- func (c *FiatCurrencyClient) MapCreateBulk(slice any, setFunc func(*FiatCurrencyCreate, int)) *FiatCurrencyCreateBulk
- func (c *FiatCurrencyClient) Query() *FiatCurrencyQuery
- func (c *FiatCurrencyClient) QueryInstitutions(fc *FiatCurrency) *InstitutionQuery
- func (c *FiatCurrencyClient) QueryProviderCurrencies(fc *FiatCurrency) *ProviderCurrenciesQuery
- func (c *FiatCurrencyClient) QueryProviderOrderTokens(fc *FiatCurrency) *ProviderOrderTokenQuery
- func (c *FiatCurrencyClient) QueryProvisionBuckets(fc *FiatCurrency) *ProvisionBucketQuery
- func (c *FiatCurrencyClient) Update() *FiatCurrencyUpdate
- func (c *FiatCurrencyClient) UpdateOne(fc *FiatCurrency) *FiatCurrencyUpdateOne
- func (c *FiatCurrencyClient) UpdateOneID(id uuid.UUID) *FiatCurrencyUpdateOne
- func (c *FiatCurrencyClient) Use(hooks ...Hook)
- type FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) AddInstitutionIDs(ids ...int) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) AddInstitutions(i ...*Institution) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) AddProviderCurrencies(p ...*ProviderCurrencies) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) AddProviderCurrencyIDs(ids ...uuid.UUID) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) AddProviderOrderTokenIDs(ids ...int) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) AddProviderOrderTokens(p ...*ProviderOrderToken) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) AddProvisionBucketIDs(ids ...int) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) AddProvisionBuckets(p ...*ProvisionBucket) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) Exec(ctx context.Context) error
- func (fcc *FiatCurrencyCreate) ExecX(ctx context.Context)
- func (fcc *FiatCurrencyCreate) Mutation() *FiatCurrencyMutation
- func (fcc *FiatCurrencyCreate) OnConflict(opts ...sql.ConflictOption) *FiatCurrencyUpsertOne
- func (fcc *FiatCurrencyCreate) OnConflictColumns(columns ...string) *FiatCurrencyUpsertOne
- func (fcc *FiatCurrencyCreate) Save(ctx context.Context) (*FiatCurrency, error)
- func (fcc *FiatCurrencyCreate) SaveX(ctx context.Context) *FiatCurrency
- func (fcc *FiatCurrencyCreate) SetCode(s string) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetCreatedAt(t time.Time) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetDecimals(i int) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetID(u uuid.UUID) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetIsEnabled(b bool) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetMarketRate(d decimal.Decimal) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetName(s string) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetNillableCreatedAt(t *time.Time) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetNillableDecimals(i *int) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetNillableID(u *uuid.UUID) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetNillableIsEnabled(b *bool) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetNillableUpdatedAt(t *time.Time) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetShortName(s string) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetSymbol(s string) *FiatCurrencyCreate
- func (fcc *FiatCurrencyCreate) SetUpdatedAt(t time.Time) *FiatCurrencyCreate
- type FiatCurrencyCreateBulk
- func (fccb *FiatCurrencyCreateBulk) Exec(ctx context.Context) error
- func (fccb *FiatCurrencyCreateBulk) ExecX(ctx context.Context)
- func (fccb *FiatCurrencyCreateBulk) OnConflict(opts ...sql.ConflictOption) *FiatCurrencyUpsertBulk
- func (fccb *FiatCurrencyCreateBulk) OnConflictColumns(columns ...string) *FiatCurrencyUpsertBulk
- func (fccb *FiatCurrencyCreateBulk) Save(ctx context.Context) ([]*FiatCurrency, error)
- func (fccb *FiatCurrencyCreateBulk) SaveX(ctx context.Context) []*FiatCurrency
- type FiatCurrencyDelete
- type FiatCurrencyDeleteOne
- type FiatCurrencyEdges
- func (e FiatCurrencyEdges) InstitutionsOrErr() ([]*Institution, error)
- func (e FiatCurrencyEdges) ProviderCurrenciesOrErr() ([]*ProviderCurrencies, error)
- func (e FiatCurrencyEdges) ProviderOrderTokensOrErr() ([]*ProviderOrderToken, error)
- func (e FiatCurrencyEdges) ProvisionBucketsOrErr() ([]*ProvisionBucket, error)
- type FiatCurrencyGroupBy
- func (fcgb *FiatCurrencyGroupBy) Aggregate(fns ...AggregateFunc) *FiatCurrencyGroupBy
- func (s *FiatCurrencyGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FiatCurrencyGroupBy) BoolX(ctx context.Context) bool
- func (s *FiatCurrencyGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FiatCurrencyGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FiatCurrencyGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FiatCurrencyGroupBy) Float64X(ctx context.Context) float64
- func (s *FiatCurrencyGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FiatCurrencyGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FiatCurrencyGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FiatCurrencyGroupBy) IntX(ctx context.Context) int
- func (s *FiatCurrencyGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FiatCurrencyGroupBy) IntsX(ctx context.Context) []int
- func (fcgb *FiatCurrencyGroupBy) Scan(ctx context.Context, v any) error
- func (s *FiatCurrencyGroupBy) ScanX(ctx context.Context, v any)
- func (s *FiatCurrencyGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FiatCurrencyGroupBy) StringX(ctx context.Context) string
- func (s *FiatCurrencyGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FiatCurrencyGroupBy) StringsX(ctx context.Context) []string
- type FiatCurrencyMutation
- func (m *FiatCurrencyMutation) AddDecimals(i int)
- func (m *FiatCurrencyMutation) AddField(name string, value ent.Value) error
- func (m *FiatCurrencyMutation) AddInstitutionIDs(ids ...int)
- func (m *FiatCurrencyMutation) AddMarketRate(d decimal.Decimal)
- func (m *FiatCurrencyMutation) AddProviderCurrencyIDs(ids ...uuid.UUID)
- func (m *FiatCurrencyMutation) AddProviderOrderTokenIDs(ids ...int)
- func (m *FiatCurrencyMutation) AddProvisionBucketIDs(ids ...int)
- func (m *FiatCurrencyMutation) AddedDecimals() (r int, exists bool)
- func (m *FiatCurrencyMutation) AddedEdges() []string
- func (m *FiatCurrencyMutation) AddedField(name string) (ent.Value, bool)
- func (m *FiatCurrencyMutation) AddedFields() []string
- func (m *FiatCurrencyMutation) AddedIDs(name string) []ent.Value
- func (m *FiatCurrencyMutation) AddedMarketRate() (r decimal.Decimal, exists bool)
- func (m *FiatCurrencyMutation) ClearEdge(name string) error
- func (m *FiatCurrencyMutation) ClearField(name string) error
- func (m *FiatCurrencyMutation) ClearInstitutions()
- func (m *FiatCurrencyMutation) ClearProviderCurrencies()
- func (m *FiatCurrencyMutation) ClearProviderOrderTokens()
- func (m *FiatCurrencyMutation) ClearProvisionBuckets()
- func (m *FiatCurrencyMutation) ClearedEdges() []string
- func (m *FiatCurrencyMutation) ClearedFields() []string
- func (m FiatCurrencyMutation) Client() *Client
- func (m *FiatCurrencyMutation) Code() (r string, exists bool)
- func (m *FiatCurrencyMutation) CreatedAt() (r time.Time, exists bool)
- func (m *FiatCurrencyMutation) Decimals() (r int, exists bool)
- func (m *FiatCurrencyMutation) EdgeCleared(name string) bool
- func (m *FiatCurrencyMutation) Field(name string) (ent.Value, bool)
- func (m *FiatCurrencyMutation) FieldCleared(name string) bool
- func (m *FiatCurrencyMutation) Fields() []string
- func (m *FiatCurrencyMutation) ID() (id uuid.UUID, exists bool)
- func (m *FiatCurrencyMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *FiatCurrencyMutation) InstitutionsCleared() bool
- func (m *FiatCurrencyMutation) InstitutionsIDs() (ids []int)
- func (m *FiatCurrencyMutation) IsEnabled() (r bool, exists bool)
- func (m *FiatCurrencyMutation) MarketRate() (r decimal.Decimal, exists bool)
- func (m *FiatCurrencyMutation) Name() (r string, exists bool)
- func (m *FiatCurrencyMutation) OldCode(ctx context.Context) (v string, err error)
- func (m *FiatCurrencyMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *FiatCurrencyMutation) OldDecimals(ctx context.Context) (v int, err error)
- func (m *FiatCurrencyMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FiatCurrencyMutation) OldIsEnabled(ctx context.Context) (v bool, err error)
- func (m *FiatCurrencyMutation) OldMarketRate(ctx context.Context) (v decimal.Decimal, err error)
- func (m *FiatCurrencyMutation) OldName(ctx context.Context) (v string, err error)
- func (m *FiatCurrencyMutation) OldShortName(ctx context.Context) (v string, err error)
- func (m *FiatCurrencyMutation) OldSymbol(ctx context.Context) (v string, err error)
- func (m *FiatCurrencyMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *FiatCurrencyMutation) Op() Op
- func (m *FiatCurrencyMutation) ProviderCurrenciesCleared() bool
- func (m *FiatCurrencyMutation) ProviderCurrenciesIDs() (ids []uuid.UUID)
- func (m *FiatCurrencyMutation) ProviderOrderTokensCleared() bool
- func (m *FiatCurrencyMutation) ProviderOrderTokensIDs() (ids []int)
- func (m *FiatCurrencyMutation) ProvisionBucketsCleared() bool
- func (m *FiatCurrencyMutation) ProvisionBucketsIDs() (ids []int)
- func (m *FiatCurrencyMutation) RemoveInstitutionIDs(ids ...int)
- func (m *FiatCurrencyMutation) RemoveProviderCurrencyIDs(ids ...uuid.UUID)
- func (m *FiatCurrencyMutation) RemoveProviderOrderTokenIDs(ids ...int)
- func (m *FiatCurrencyMutation) RemoveProvisionBucketIDs(ids ...int)
- func (m *FiatCurrencyMutation) RemovedEdges() []string
- func (m *FiatCurrencyMutation) RemovedIDs(name string) []ent.Value
- func (m *FiatCurrencyMutation) RemovedInstitutionsIDs() (ids []int)
- func (m *FiatCurrencyMutation) RemovedProviderCurrenciesIDs() (ids []uuid.UUID)
- func (m *FiatCurrencyMutation) RemovedProviderOrderTokensIDs() (ids []int)
- func (m *FiatCurrencyMutation) RemovedProvisionBucketsIDs() (ids []int)
- func (m *FiatCurrencyMutation) ResetCode()
- func (m *FiatCurrencyMutation) ResetCreatedAt()
- func (m *FiatCurrencyMutation) ResetDecimals()
- func (m *FiatCurrencyMutation) ResetEdge(name string) error
- func (m *FiatCurrencyMutation) ResetField(name string) error
- func (m *FiatCurrencyMutation) ResetInstitutions()
- func (m *FiatCurrencyMutation) ResetIsEnabled()
- func (m *FiatCurrencyMutation) ResetMarketRate()
- func (m *FiatCurrencyMutation) ResetName()
- func (m *FiatCurrencyMutation) ResetProviderCurrencies()
- func (m *FiatCurrencyMutation) ResetProviderOrderTokens()
- func (m *FiatCurrencyMutation) ResetProvisionBuckets()
- func (m *FiatCurrencyMutation) ResetShortName()
- func (m *FiatCurrencyMutation) ResetSymbol()
- func (m *FiatCurrencyMutation) ResetUpdatedAt()
- func (m *FiatCurrencyMutation) SetCode(s string)
- func (m *FiatCurrencyMutation) SetCreatedAt(t time.Time)
- func (m *FiatCurrencyMutation) SetDecimals(i int)
- func (m *FiatCurrencyMutation) SetField(name string, value ent.Value) error
- func (m *FiatCurrencyMutation) SetID(id uuid.UUID)
- func (m *FiatCurrencyMutation) SetIsEnabled(b bool)
- func (m *FiatCurrencyMutation) SetMarketRate(d decimal.Decimal)
- func (m *FiatCurrencyMutation) SetName(s string)
- func (m *FiatCurrencyMutation) SetOp(op Op)
- func (m *FiatCurrencyMutation) SetShortName(s string)
- func (m *FiatCurrencyMutation) SetSymbol(s string)
- func (m *FiatCurrencyMutation) SetUpdatedAt(t time.Time)
- func (m *FiatCurrencyMutation) ShortName() (r string, exists bool)
- func (m *FiatCurrencyMutation) Symbol() (r string, exists bool)
- func (m FiatCurrencyMutation) Tx() (*Tx, error)
- func (m *FiatCurrencyMutation) Type() string
- func (m *FiatCurrencyMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *FiatCurrencyMutation) Where(ps ...predicate.FiatCurrency)
- func (m *FiatCurrencyMutation) WhereP(ps ...func(*sql.Selector))
- type FiatCurrencyQuery
- func (fcq *FiatCurrencyQuery) Aggregate(fns ...AggregateFunc) *FiatCurrencySelect
- func (fcq *FiatCurrencyQuery) All(ctx context.Context) ([]*FiatCurrency, error)
- func (fcq *FiatCurrencyQuery) AllX(ctx context.Context) []*FiatCurrency
- func (fcq *FiatCurrencyQuery) Clone() *FiatCurrencyQuery
- func (fcq *FiatCurrencyQuery) Count(ctx context.Context) (int, error)
- func (fcq *FiatCurrencyQuery) CountX(ctx context.Context) int
- func (fcq *FiatCurrencyQuery) Exist(ctx context.Context) (bool, error)
- func (fcq *FiatCurrencyQuery) ExistX(ctx context.Context) bool
- func (fcq *FiatCurrencyQuery) First(ctx context.Context) (*FiatCurrency, error)
- func (fcq *FiatCurrencyQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (fcq *FiatCurrencyQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (fcq *FiatCurrencyQuery) FirstX(ctx context.Context) *FiatCurrency
- func (fcq *FiatCurrencyQuery) GroupBy(field string, fields ...string) *FiatCurrencyGroupBy
- func (fcq *FiatCurrencyQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (fcq *FiatCurrencyQuery) IDsX(ctx context.Context) []uuid.UUID
- func (fcq *FiatCurrencyQuery) Limit(limit int) *FiatCurrencyQuery
- func (fcq *FiatCurrencyQuery) Offset(offset int) *FiatCurrencyQuery
- func (fcq *FiatCurrencyQuery) Only(ctx context.Context) (*FiatCurrency, error)
- func (fcq *FiatCurrencyQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (fcq *FiatCurrencyQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (fcq *FiatCurrencyQuery) OnlyX(ctx context.Context) *FiatCurrency
- func (fcq *FiatCurrencyQuery) Order(o ...fiatcurrency.OrderOption) *FiatCurrencyQuery
- func (fcq *FiatCurrencyQuery) QueryInstitutions() *InstitutionQuery
- func (fcq *FiatCurrencyQuery) QueryProviderCurrencies() *ProviderCurrenciesQuery
- func (fcq *FiatCurrencyQuery) QueryProviderOrderTokens() *ProviderOrderTokenQuery
- func (fcq *FiatCurrencyQuery) QueryProvisionBuckets() *ProvisionBucketQuery
- func (fcq *FiatCurrencyQuery) Select(fields ...string) *FiatCurrencySelect
- func (fcq *FiatCurrencyQuery) Unique(unique bool) *FiatCurrencyQuery
- func (fcq *FiatCurrencyQuery) Where(ps ...predicate.FiatCurrency) *FiatCurrencyQuery
- func (fcq *FiatCurrencyQuery) WithInstitutions(opts ...func(*InstitutionQuery)) *FiatCurrencyQuery
- func (fcq *FiatCurrencyQuery) WithProviderCurrencies(opts ...func(*ProviderCurrenciesQuery)) *FiatCurrencyQuery
- func (fcq *FiatCurrencyQuery) WithProviderOrderTokens(opts ...func(*ProviderOrderTokenQuery)) *FiatCurrencyQuery
- func (fcq *FiatCurrencyQuery) WithProvisionBuckets(opts ...func(*ProvisionBucketQuery)) *FiatCurrencyQuery
- type FiatCurrencySelect
- func (fcs *FiatCurrencySelect) Aggregate(fns ...AggregateFunc) *FiatCurrencySelect
- func (s *FiatCurrencySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FiatCurrencySelect) BoolX(ctx context.Context) bool
- func (s *FiatCurrencySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FiatCurrencySelect) BoolsX(ctx context.Context) []bool
- func (s *FiatCurrencySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FiatCurrencySelect) Float64X(ctx context.Context) float64
- func (s *FiatCurrencySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FiatCurrencySelect) Float64sX(ctx context.Context) []float64
- func (s *FiatCurrencySelect) Int(ctx context.Context) (_ int, err error)
- func (s *FiatCurrencySelect) IntX(ctx context.Context) int
- func (s *FiatCurrencySelect) Ints(ctx context.Context) ([]int, error)
- func (s *FiatCurrencySelect) IntsX(ctx context.Context) []int
- func (fcs *FiatCurrencySelect) Scan(ctx context.Context, v any) error
- func (s *FiatCurrencySelect) ScanX(ctx context.Context, v any)
- func (s *FiatCurrencySelect) String(ctx context.Context) (_ string, err error)
- func (s *FiatCurrencySelect) StringX(ctx context.Context) string
- func (s *FiatCurrencySelect) Strings(ctx context.Context) ([]string, error)
- func (s *FiatCurrencySelect) StringsX(ctx context.Context) []string
- type FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) AddDecimals(i int) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) AddInstitutionIDs(ids ...int) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) AddInstitutions(i ...*Institution) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) AddMarketRate(d decimal.Decimal) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) AddProviderCurrencies(p ...*ProviderCurrencies) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) AddProviderCurrencyIDs(ids ...uuid.UUID) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) AddProviderOrderTokenIDs(ids ...int) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) AddProviderOrderTokens(p ...*ProviderOrderToken) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) AddProvisionBucketIDs(ids ...int) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) AddProvisionBuckets(p ...*ProvisionBucket) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) ClearInstitutions() *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) ClearProviderCurrencies() *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) ClearProviderOrderTokens() *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) ClearProvisionBuckets() *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) Exec(ctx context.Context) error
- func (fcu *FiatCurrencyUpdate) ExecX(ctx context.Context)
- func (fcu *FiatCurrencyUpdate) Mutation() *FiatCurrencyMutation
- func (fcu *FiatCurrencyUpdate) RemoveInstitutionIDs(ids ...int) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) RemoveInstitutions(i ...*Institution) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) RemoveProviderCurrencies(p ...*ProviderCurrencies) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) RemoveProviderCurrencyIDs(ids ...uuid.UUID) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) RemoveProviderOrderTokenIDs(ids ...int) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) RemoveProviderOrderTokens(p ...*ProviderOrderToken) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) RemoveProvisionBucketIDs(ids ...int) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) RemoveProvisionBuckets(p ...*ProvisionBucket) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) Save(ctx context.Context) (int, error)
- func (fcu *FiatCurrencyUpdate) SaveX(ctx context.Context) int
- func (fcu *FiatCurrencyUpdate) SetCode(s string) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetDecimals(i int) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetIsEnabled(b bool) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetMarketRate(d decimal.Decimal) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetName(s string) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetNillableCode(s *string) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetNillableDecimals(i *int) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetNillableIsEnabled(b *bool) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetNillableMarketRate(d *decimal.Decimal) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetNillableName(s *string) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetNillableShortName(s *string) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetNillableSymbol(s *string) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetShortName(s string) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetSymbol(s string) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) SetUpdatedAt(t time.Time) *FiatCurrencyUpdate
- func (fcu *FiatCurrencyUpdate) Where(ps ...predicate.FiatCurrency) *FiatCurrencyUpdate
- type FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) AddDecimals(i int) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) AddInstitutionIDs(ids ...int) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) AddInstitutions(i ...*Institution) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) AddMarketRate(d decimal.Decimal) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) AddProviderCurrencies(p ...*ProviderCurrencies) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) AddProviderCurrencyIDs(ids ...uuid.UUID) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) AddProviderOrderTokenIDs(ids ...int) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) AddProviderOrderTokens(p ...*ProviderOrderToken) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) AddProvisionBucketIDs(ids ...int) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) AddProvisionBuckets(p ...*ProvisionBucket) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) ClearInstitutions() *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) ClearProviderCurrencies() *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) ClearProviderOrderTokens() *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) ClearProvisionBuckets() *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) Exec(ctx context.Context) error
- func (fcuo *FiatCurrencyUpdateOne) ExecX(ctx context.Context)
- func (fcuo *FiatCurrencyUpdateOne) Mutation() *FiatCurrencyMutation
- func (fcuo *FiatCurrencyUpdateOne) RemoveInstitutionIDs(ids ...int) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) RemoveInstitutions(i ...*Institution) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) RemoveProviderCurrencies(p ...*ProviderCurrencies) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) RemoveProviderCurrencyIDs(ids ...uuid.UUID) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) RemoveProviderOrderTokenIDs(ids ...int) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) RemoveProviderOrderTokens(p ...*ProviderOrderToken) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) RemoveProvisionBucketIDs(ids ...int) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) RemoveProvisionBuckets(p ...*ProvisionBucket) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) Save(ctx context.Context) (*FiatCurrency, error)
- func (fcuo *FiatCurrencyUpdateOne) SaveX(ctx context.Context) *FiatCurrency
- func (fcuo *FiatCurrencyUpdateOne) Select(field string, fields ...string) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetCode(s string) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetDecimals(i int) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetIsEnabled(b bool) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetMarketRate(d decimal.Decimal) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetName(s string) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetNillableCode(s *string) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetNillableDecimals(i *int) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetNillableIsEnabled(b *bool) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetNillableMarketRate(d *decimal.Decimal) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetNillableName(s *string) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetNillableShortName(s *string) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetNillableSymbol(s *string) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetShortName(s string) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetSymbol(s string) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) SetUpdatedAt(t time.Time) *FiatCurrencyUpdateOne
- func (fcuo *FiatCurrencyUpdateOne) Where(ps ...predicate.FiatCurrency) *FiatCurrencyUpdateOne
- type FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) AddDecimals(v int) *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) AddMarketRate(v decimal.Decimal) *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) SetCode(v string) *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) SetDecimals(v int) *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) SetIsEnabled(v bool) *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) SetMarketRate(v decimal.Decimal) *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) SetName(v string) *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) SetShortName(v string) *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) SetSymbol(v string) *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) SetUpdatedAt(v time.Time) *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) UpdateCode() *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) UpdateDecimals() *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) UpdateIsEnabled() *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) UpdateMarketRate() *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) UpdateName() *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) UpdateShortName() *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) UpdateSymbol() *FiatCurrencyUpsert
- func (u *FiatCurrencyUpsert) UpdateUpdatedAt() *FiatCurrencyUpsert
- type FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) AddDecimals(v int) *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) AddMarketRate(v decimal.Decimal) *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) DoNothing() *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) Exec(ctx context.Context) error
- func (u *FiatCurrencyUpsertBulk) ExecX(ctx context.Context)
- func (u *FiatCurrencyUpsertBulk) Ignore() *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) SetCode(v string) *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) SetDecimals(v int) *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) SetIsEnabled(v bool) *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) SetMarketRate(v decimal.Decimal) *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) SetName(v string) *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) SetShortName(v string) *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) SetSymbol(v string) *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) SetUpdatedAt(v time.Time) *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) Update(set func(*FiatCurrencyUpsert)) *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) UpdateCode() *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) UpdateDecimals() *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) UpdateIsEnabled() *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) UpdateMarketRate() *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) UpdateName() *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) UpdateNewValues() *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) UpdateShortName() *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) UpdateSymbol() *FiatCurrencyUpsertBulk
- func (u *FiatCurrencyUpsertBulk) UpdateUpdatedAt() *FiatCurrencyUpsertBulk
- type FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) AddDecimals(v int) *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) AddMarketRate(v decimal.Decimal) *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) DoNothing() *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) Exec(ctx context.Context) error
- func (u *FiatCurrencyUpsertOne) ExecX(ctx context.Context)
- func (u *FiatCurrencyUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *FiatCurrencyUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *FiatCurrencyUpsertOne) Ignore() *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) SetCode(v string) *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) SetDecimals(v int) *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) SetIsEnabled(v bool) *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) SetMarketRate(v decimal.Decimal) *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) SetName(v string) *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) SetShortName(v string) *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) SetSymbol(v string) *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) SetUpdatedAt(v time.Time) *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) Update(set func(*FiatCurrencyUpsert)) *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) UpdateCode() *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) UpdateDecimals() *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) UpdateIsEnabled() *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) UpdateMarketRate() *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) UpdateName() *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) UpdateNewValues() *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) UpdateShortName() *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) UpdateSymbol() *FiatCurrencyUpsertOne
- func (u *FiatCurrencyUpsertOne) UpdateUpdatedAt() *FiatCurrencyUpsertOne
- type Hook
- type IdentityVerificationRequest
- type IdentityVerificationRequestClient
- func (c *IdentityVerificationRequestClient) Create() *IdentityVerificationRequestCreate
- func (c *IdentityVerificationRequestClient) CreateBulk(builders ...*IdentityVerificationRequestCreate) *IdentityVerificationRequestCreateBulk
- func (c *IdentityVerificationRequestClient) Delete() *IdentityVerificationRequestDelete
- func (c *IdentityVerificationRequestClient) DeleteOne(ivr *IdentityVerificationRequest) *IdentityVerificationRequestDeleteOne
- func (c *IdentityVerificationRequestClient) DeleteOneID(id uuid.UUID) *IdentityVerificationRequestDeleteOne
- func (c *IdentityVerificationRequestClient) Get(ctx context.Context, id uuid.UUID) (*IdentityVerificationRequest, error)
- func (c *IdentityVerificationRequestClient) GetX(ctx context.Context, id uuid.UUID) *IdentityVerificationRequest
- func (c *IdentityVerificationRequestClient) Hooks() []Hook
- func (c *IdentityVerificationRequestClient) Intercept(interceptors ...Interceptor)
- func (c *IdentityVerificationRequestClient) Interceptors() []Interceptor
- func (c *IdentityVerificationRequestClient) MapCreateBulk(slice any, setFunc func(*IdentityVerificationRequestCreate, int)) *IdentityVerificationRequestCreateBulk
- func (c *IdentityVerificationRequestClient) Query() *IdentityVerificationRequestQuery
- func (c *IdentityVerificationRequestClient) Update() *IdentityVerificationRequestUpdate
- func (c *IdentityVerificationRequestClient) UpdateOne(ivr *IdentityVerificationRequest) *IdentityVerificationRequestUpdateOne
- func (c *IdentityVerificationRequestClient) UpdateOneID(id uuid.UUID) *IdentityVerificationRequestUpdateOne
- func (c *IdentityVerificationRequestClient) Use(hooks ...Hook)
- type IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) Exec(ctx context.Context) error
- func (ivrc *IdentityVerificationRequestCreate) ExecX(ctx context.Context)
- func (ivrc *IdentityVerificationRequestCreate) Mutation() *IdentityVerificationRequestMutation
- func (ivrc *IdentityVerificationRequestCreate) OnConflict(opts ...sql.ConflictOption) *IdentityVerificationRequestUpsertOne
- func (ivrc *IdentityVerificationRequestCreate) OnConflictColumns(columns ...string) *IdentityVerificationRequestUpsertOne
- func (ivrc *IdentityVerificationRequestCreate) Save(ctx context.Context) (*IdentityVerificationRequest, error)
- func (ivrc *IdentityVerificationRequestCreate) SaveX(ctx context.Context) *IdentityVerificationRequest
- func (ivrc *IdentityVerificationRequestCreate) SetFeeReclaimed(b bool) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetID(u uuid.UUID) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetLastURLCreatedAt(t time.Time) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetNillableFeeReclaimed(b *bool) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetNillableID(u *uuid.UUID) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetNillableLastURLCreatedAt(t *time.Time) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetNillableStatus(i *identityverificationrequest.Status) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetNillableUpdatedAt(t *time.Time) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetPlatform(i identityverificationrequest.Platform) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetPlatformRef(s string) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetStatus(i identityverificationrequest.Status) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetUpdatedAt(t time.Time) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetVerificationURL(s string) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetWalletAddress(s string) *IdentityVerificationRequestCreate
- func (ivrc *IdentityVerificationRequestCreate) SetWalletSignature(s string) *IdentityVerificationRequestCreate
- type IdentityVerificationRequestCreateBulk
- func (ivrcb *IdentityVerificationRequestCreateBulk) Exec(ctx context.Context) error
- func (ivrcb *IdentityVerificationRequestCreateBulk) ExecX(ctx context.Context)
- func (ivrcb *IdentityVerificationRequestCreateBulk) OnConflict(opts ...sql.ConflictOption) *IdentityVerificationRequestUpsertBulk
- func (ivrcb *IdentityVerificationRequestCreateBulk) OnConflictColumns(columns ...string) *IdentityVerificationRequestUpsertBulk
- func (ivrcb *IdentityVerificationRequestCreateBulk) Save(ctx context.Context) ([]*IdentityVerificationRequest, error)
- func (ivrcb *IdentityVerificationRequestCreateBulk) SaveX(ctx context.Context) []*IdentityVerificationRequest
- type IdentityVerificationRequestDelete
- type IdentityVerificationRequestDeleteOne
- func (ivrdo *IdentityVerificationRequestDeleteOne) Exec(ctx context.Context) error
- func (ivrdo *IdentityVerificationRequestDeleteOne) ExecX(ctx context.Context)
- func (ivrdo *IdentityVerificationRequestDeleteOne) Where(ps ...predicate.IdentityVerificationRequest) *IdentityVerificationRequestDeleteOne
- type IdentityVerificationRequestGroupBy
- func (ivrgb *IdentityVerificationRequestGroupBy) Aggregate(fns ...AggregateFunc) *IdentityVerificationRequestGroupBy
- func (s *IdentityVerificationRequestGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *IdentityVerificationRequestGroupBy) BoolX(ctx context.Context) bool
- func (s *IdentityVerificationRequestGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *IdentityVerificationRequestGroupBy) BoolsX(ctx context.Context) []bool
- func (s *IdentityVerificationRequestGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *IdentityVerificationRequestGroupBy) Float64X(ctx context.Context) float64
- func (s *IdentityVerificationRequestGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *IdentityVerificationRequestGroupBy) Float64sX(ctx context.Context) []float64
- func (s *IdentityVerificationRequestGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *IdentityVerificationRequestGroupBy) IntX(ctx context.Context) int
- func (s *IdentityVerificationRequestGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *IdentityVerificationRequestGroupBy) IntsX(ctx context.Context) []int
- func (ivrgb *IdentityVerificationRequestGroupBy) Scan(ctx context.Context, v any) error
- func (s *IdentityVerificationRequestGroupBy) ScanX(ctx context.Context, v any)
- func (s *IdentityVerificationRequestGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *IdentityVerificationRequestGroupBy) StringX(ctx context.Context) string
- func (s *IdentityVerificationRequestGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *IdentityVerificationRequestGroupBy) StringsX(ctx context.Context) []string
- type IdentityVerificationRequestMutation
- func (m *IdentityVerificationRequestMutation) AddField(name string, value ent.Value) error
- func (m *IdentityVerificationRequestMutation) AddedEdges() []string
- func (m *IdentityVerificationRequestMutation) AddedField(name string) (ent.Value, bool)
- func (m *IdentityVerificationRequestMutation) AddedFields() []string
- func (m *IdentityVerificationRequestMutation) AddedIDs(name string) []ent.Value
- func (m *IdentityVerificationRequestMutation) ClearEdge(name string) error
- func (m *IdentityVerificationRequestMutation) ClearField(name string) error
- func (m *IdentityVerificationRequestMutation) ClearedEdges() []string
- func (m *IdentityVerificationRequestMutation) ClearedFields() []string
- func (m IdentityVerificationRequestMutation) Client() *Client
- func (m *IdentityVerificationRequestMutation) EdgeCleared(name string) bool
- func (m *IdentityVerificationRequestMutation) FeeReclaimed() (r bool, exists bool)
- func (m *IdentityVerificationRequestMutation) Field(name string) (ent.Value, bool)
- func (m *IdentityVerificationRequestMutation) FieldCleared(name string) bool
- func (m *IdentityVerificationRequestMutation) Fields() []string
- func (m *IdentityVerificationRequestMutation) ID() (id uuid.UUID, exists bool)
- func (m *IdentityVerificationRequestMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *IdentityVerificationRequestMutation) LastURLCreatedAt() (r time.Time, exists bool)
- func (m *IdentityVerificationRequestMutation) OldFeeReclaimed(ctx context.Context) (v bool, err error)
- func (m *IdentityVerificationRequestMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *IdentityVerificationRequestMutation) OldLastURLCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *IdentityVerificationRequestMutation) OldPlatform(ctx context.Context) (v identityverificationrequest.Platform, err error)
- func (m *IdentityVerificationRequestMutation) OldPlatformRef(ctx context.Context) (v string, err error)
- func (m *IdentityVerificationRequestMutation) OldStatus(ctx context.Context) (v identityverificationrequest.Status, err error)
- func (m *IdentityVerificationRequestMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *IdentityVerificationRequestMutation) OldVerificationURL(ctx context.Context) (v string, err error)
- func (m *IdentityVerificationRequestMutation) OldWalletAddress(ctx context.Context) (v string, err error)
- func (m *IdentityVerificationRequestMutation) OldWalletSignature(ctx context.Context) (v string, err error)
- func (m *IdentityVerificationRequestMutation) Op() Op
- func (m *IdentityVerificationRequestMutation) Platform() (r identityverificationrequest.Platform, exists bool)
- func (m *IdentityVerificationRequestMutation) PlatformRef() (r string, exists bool)
- func (m *IdentityVerificationRequestMutation) RemovedEdges() []string
- func (m *IdentityVerificationRequestMutation) RemovedIDs(name string) []ent.Value
- func (m *IdentityVerificationRequestMutation) ResetEdge(name string) error
- func (m *IdentityVerificationRequestMutation) ResetFeeReclaimed()
- func (m *IdentityVerificationRequestMutation) ResetField(name string) error
- func (m *IdentityVerificationRequestMutation) ResetLastURLCreatedAt()
- func (m *IdentityVerificationRequestMutation) ResetPlatform()
- func (m *IdentityVerificationRequestMutation) ResetPlatformRef()
- func (m *IdentityVerificationRequestMutation) ResetStatus()
- func (m *IdentityVerificationRequestMutation) ResetUpdatedAt()
- func (m *IdentityVerificationRequestMutation) ResetVerificationURL()
- func (m *IdentityVerificationRequestMutation) ResetWalletAddress()
- func (m *IdentityVerificationRequestMutation) ResetWalletSignature()
- func (m *IdentityVerificationRequestMutation) SetFeeReclaimed(b bool)
- func (m *IdentityVerificationRequestMutation) SetField(name string, value ent.Value) error
- func (m *IdentityVerificationRequestMutation) SetID(id uuid.UUID)
- func (m *IdentityVerificationRequestMutation) SetLastURLCreatedAt(t time.Time)
- func (m *IdentityVerificationRequestMutation) SetOp(op Op)
- func (m *IdentityVerificationRequestMutation) SetPlatform(i identityverificationrequest.Platform)
- func (m *IdentityVerificationRequestMutation) SetPlatformRef(s string)
- func (m *IdentityVerificationRequestMutation) SetStatus(i identityverificationrequest.Status)
- func (m *IdentityVerificationRequestMutation) SetUpdatedAt(t time.Time)
- func (m *IdentityVerificationRequestMutation) SetVerificationURL(s string)
- func (m *IdentityVerificationRequestMutation) SetWalletAddress(s string)
- func (m *IdentityVerificationRequestMutation) SetWalletSignature(s string)
- func (m *IdentityVerificationRequestMutation) Status() (r identityverificationrequest.Status, exists bool)
- func (m IdentityVerificationRequestMutation) Tx() (*Tx, error)
- func (m *IdentityVerificationRequestMutation) Type() string
- func (m *IdentityVerificationRequestMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *IdentityVerificationRequestMutation) VerificationURL() (r string, exists bool)
- func (m *IdentityVerificationRequestMutation) WalletAddress() (r string, exists bool)
- func (m *IdentityVerificationRequestMutation) WalletSignature() (r string, exists bool)
- func (m *IdentityVerificationRequestMutation) Where(ps ...predicate.IdentityVerificationRequest)
- func (m *IdentityVerificationRequestMutation) WhereP(ps ...func(*sql.Selector))
- type IdentityVerificationRequestQuery
- func (ivrq *IdentityVerificationRequestQuery) Aggregate(fns ...AggregateFunc) *IdentityVerificationRequestSelect
- func (ivrq *IdentityVerificationRequestQuery) All(ctx context.Context) ([]*IdentityVerificationRequest, error)
- func (ivrq *IdentityVerificationRequestQuery) AllX(ctx context.Context) []*IdentityVerificationRequest
- func (ivrq *IdentityVerificationRequestQuery) Clone() *IdentityVerificationRequestQuery
- func (ivrq *IdentityVerificationRequestQuery) Count(ctx context.Context) (int, error)
- func (ivrq *IdentityVerificationRequestQuery) CountX(ctx context.Context) int
- func (ivrq *IdentityVerificationRequestQuery) Exist(ctx context.Context) (bool, error)
- func (ivrq *IdentityVerificationRequestQuery) ExistX(ctx context.Context) bool
- func (ivrq *IdentityVerificationRequestQuery) First(ctx context.Context) (*IdentityVerificationRequest, error)
- func (ivrq *IdentityVerificationRequestQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (ivrq *IdentityVerificationRequestQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (ivrq *IdentityVerificationRequestQuery) FirstX(ctx context.Context) *IdentityVerificationRequest
- func (ivrq *IdentityVerificationRequestQuery) GroupBy(field string, fields ...string) *IdentityVerificationRequestGroupBy
- func (ivrq *IdentityVerificationRequestQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (ivrq *IdentityVerificationRequestQuery) IDsX(ctx context.Context) []uuid.UUID
- func (ivrq *IdentityVerificationRequestQuery) Limit(limit int) *IdentityVerificationRequestQuery
- func (ivrq *IdentityVerificationRequestQuery) Offset(offset int) *IdentityVerificationRequestQuery
- func (ivrq *IdentityVerificationRequestQuery) Only(ctx context.Context) (*IdentityVerificationRequest, error)
- func (ivrq *IdentityVerificationRequestQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (ivrq *IdentityVerificationRequestQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (ivrq *IdentityVerificationRequestQuery) OnlyX(ctx context.Context) *IdentityVerificationRequest
- func (ivrq *IdentityVerificationRequestQuery) Order(o ...identityverificationrequest.OrderOption) *IdentityVerificationRequestQuery
- func (ivrq *IdentityVerificationRequestQuery) Select(fields ...string) *IdentityVerificationRequestSelect
- func (ivrq *IdentityVerificationRequestQuery) Unique(unique bool) *IdentityVerificationRequestQuery
- func (ivrq *IdentityVerificationRequestQuery) Where(ps ...predicate.IdentityVerificationRequest) *IdentityVerificationRequestQuery
- type IdentityVerificationRequestSelect
- func (ivrs *IdentityVerificationRequestSelect) Aggregate(fns ...AggregateFunc) *IdentityVerificationRequestSelect
- func (s *IdentityVerificationRequestSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *IdentityVerificationRequestSelect) BoolX(ctx context.Context) bool
- func (s *IdentityVerificationRequestSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *IdentityVerificationRequestSelect) BoolsX(ctx context.Context) []bool
- func (s *IdentityVerificationRequestSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *IdentityVerificationRequestSelect) Float64X(ctx context.Context) float64
- func (s *IdentityVerificationRequestSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *IdentityVerificationRequestSelect) Float64sX(ctx context.Context) []float64
- func (s *IdentityVerificationRequestSelect) Int(ctx context.Context) (_ int, err error)
- func (s *IdentityVerificationRequestSelect) IntX(ctx context.Context) int
- func (s *IdentityVerificationRequestSelect) Ints(ctx context.Context) ([]int, error)
- func (s *IdentityVerificationRequestSelect) IntsX(ctx context.Context) []int
- func (ivrs *IdentityVerificationRequestSelect) Scan(ctx context.Context, v any) error
- func (s *IdentityVerificationRequestSelect) ScanX(ctx context.Context, v any)
- func (s *IdentityVerificationRequestSelect) String(ctx context.Context) (_ string, err error)
- func (s *IdentityVerificationRequestSelect) StringX(ctx context.Context) string
- func (s *IdentityVerificationRequestSelect) Strings(ctx context.Context) ([]string, error)
- func (s *IdentityVerificationRequestSelect) StringsX(ctx context.Context) []string
- type IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) Exec(ctx context.Context) error
- func (ivru *IdentityVerificationRequestUpdate) ExecX(ctx context.Context)
- func (ivru *IdentityVerificationRequestUpdate) Mutation() *IdentityVerificationRequestMutation
- func (ivru *IdentityVerificationRequestUpdate) Save(ctx context.Context) (int, error)
- func (ivru *IdentityVerificationRequestUpdate) SaveX(ctx context.Context) int
- func (ivru *IdentityVerificationRequestUpdate) SetFeeReclaimed(b bool) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetLastURLCreatedAt(t time.Time) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetNillableFeeReclaimed(b *bool) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetNillableLastURLCreatedAt(t *time.Time) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetNillablePlatform(i *identityverificationrequest.Platform) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetNillablePlatformRef(s *string) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetNillableStatus(i *identityverificationrequest.Status) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetNillableVerificationURL(s *string) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetNillableWalletAddress(s *string) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetNillableWalletSignature(s *string) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetPlatform(i identityverificationrequest.Platform) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetPlatformRef(s string) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetStatus(i identityverificationrequest.Status) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetUpdatedAt(t time.Time) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetVerificationURL(s string) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetWalletAddress(s string) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) SetWalletSignature(s string) *IdentityVerificationRequestUpdate
- func (ivru *IdentityVerificationRequestUpdate) Where(ps ...predicate.IdentityVerificationRequest) *IdentityVerificationRequestUpdate
- type IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) Exec(ctx context.Context) error
- func (ivruo *IdentityVerificationRequestUpdateOne) ExecX(ctx context.Context)
- func (ivruo *IdentityVerificationRequestUpdateOne) Mutation() *IdentityVerificationRequestMutation
- func (ivruo *IdentityVerificationRequestUpdateOne) Save(ctx context.Context) (*IdentityVerificationRequest, error)
- func (ivruo *IdentityVerificationRequestUpdateOne) SaveX(ctx context.Context) *IdentityVerificationRequest
- func (ivruo *IdentityVerificationRequestUpdateOne) Select(field string, fields ...string) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetFeeReclaimed(b bool) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetLastURLCreatedAt(t time.Time) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetNillableFeeReclaimed(b *bool) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetNillableLastURLCreatedAt(t *time.Time) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetNillablePlatform(i *identityverificationrequest.Platform) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetNillablePlatformRef(s *string) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetNillableStatus(i *identityverificationrequest.Status) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetNillableVerificationURL(s *string) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetNillableWalletAddress(s *string) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetNillableWalletSignature(s *string) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetPlatform(i identityverificationrequest.Platform) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetPlatformRef(s string) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetStatus(i identityverificationrequest.Status) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetUpdatedAt(t time.Time) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetVerificationURL(s string) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetWalletAddress(s string) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) SetWalletSignature(s string) *IdentityVerificationRequestUpdateOne
- func (ivruo *IdentityVerificationRequestUpdateOne) Where(ps ...predicate.IdentityVerificationRequest) *IdentityVerificationRequestUpdateOne
- type IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) SetFeeReclaimed(v bool) *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) SetLastURLCreatedAt(v time.Time) *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) SetPlatform(v identityverificationrequest.Platform) *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) SetPlatformRef(v string) *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) SetStatus(v identityverificationrequest.Status) *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) SetUpdatedAt(v time.Time) *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) SetVerificationURL(v string) *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) SetWalletAddress(v string) *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) SetWalletSignature(v string) *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) UpdateFeeReclaimed() *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) UpdateLastURLCreatedAt() *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) UpdatePlatform() *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) UpdatePlatformRef() *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) UpdateStatus() *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) UpdateUpdatedAt() *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) UpdateVerificationURL() *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) UpdateWalletAddress() *IdentityVerificationRequestUpsert
- func (u *IdentityVerificationRequestUpsert) UpdateWalletSignature() *IdentityVerificationRequestUpsert
- type IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) DoNothing() *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) Exec(ctx context.Context) error
- func (u *IdentityVerificationRequestUpsertBulk) ExecX(ctx context.Context)
- func (u *IdentityVerificationRequestUpsertBulk) Ignore() *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) SetFeeReclaimed(v bool) *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) SetLastURLCreatedAt(v time.Time) *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) SetPlatform(v identityverificationrequest.Platform) *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) SetPlatformRef(v string) *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) SetStatus(v identityverificationrequest.Status) *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) SetUpdatedAt(v time.Time) *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) SetVerificationURL(v string) *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) SetWalletAddress(v string) *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) SetWalletSignature(v string) *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) Update(set func(*IdentityVerificationRequestUpsert)) *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) UpdateFeeReclaimed() *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) UpdateLastURLCreatedAt() *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) UpdateNewValues() *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) UpdatePlatform() *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) UpdatePlatformRef() *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) UpdateStatus() *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) UpdateUpdatedAt() *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) UpdateVerificationURL() *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) UpdateWalletAddress() *IdentityVerificationRequestUpsertBulk
- func (u *IdentityVerificationRequestUpsertBulk) UpdateWalletSignature() *IdentityVerificationRequestUpsertBulk
- type IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) DoNothing() *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) Exec(ctx context.Context) error
- func (u *IdentityVerificationRequestUpsertOne) ExecX(ctx context.Context)
- func (u *IdentityVerificationRequestUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *IdentityVerificationRequestUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *IdentityVerificationRequestUpsertOne) Ignore() *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) SetFeeReclaimed(v bool) *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) SetLastURLCreatedAt(v time.Time) *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) SetPlatform(v identityverificationrequest.Platform) *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) SetPlatformRef(v string) *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) SetStatus(v identityverificationrequest.Status) *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) SetUpdatedAt(v time.Time) *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) SetVerificationURL(v string) *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) SetWalletAddress(v string) *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) SetWalletSignature(v string) *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) Update(set func(*IdentityVerificationRequestUpsert)) *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) UpdateFeeReclaimed() *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) UpdateLastURLCreatedAt() *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) UpdateNewValues() *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) UpdatePlatform() *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) UpdatePlatformRef() *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) UpdateStatus() *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) UpdateUpdatedAt() *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) UpdateVerificationURL() *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) UpdateWalletAddress() *IdentityVerificationRequestUpsertOne
- func (u *IdentityVerificationRequestUpsertOne) UpdateWalletSignature() *IdentityVerificationRequestUpsertOne
- type IdentityVerificationRequests
- type Institution
- type InstitutionClient
- func (c *InstitutionClient) Create() *InstitutionCreate
- func (c *InstitutionClient) CreateBulk(builders ...*InstitutionCreate) *InstitutionCreateBulk
- func (c *InstitutionClient) Delete() *InstitutionDelete
- func (c *InstitutionClient) DeleteOne(i *Institution) *InstitutionDeleteOne
- func (c *InstitutionClient) DeleteOneID(id int) *InstitutionDeleteOne
- func (c *InstitutionClient) Get(ctx context.Context, id int) (*Institution, error)
- func (c *InstitutionClient) GetX(ctx context.Context, id int) *Institution
- func (c *InstitutionClient) Hooks() []Hook
- func (c *InstitutionClient) Intercept(interceptors ...Interceptor)
- func (c *InstitutionClient) Interceptors() []Interceptor
- func (c *InstitutionClient) MapCreateBulk(slice any, setFunc func(*InstitutionCreate, int)) *InstitutionCreateBulk
- func (c *InstitutionClient) Query() *InstitutionQuery
- func (c *InstitutionClient) QueryFiatCurrency(i *Institution) *FiatCurrencyQuery
- func (c *InstitutionClient) Update() *InstitutionUpdate
- func (c *InstitutionClient) UpdateOne(i *Institution) *InstitutionUpdateOne
- func (c *InstitutionClient) UpdateOneID(id int) *InstitutionUpdateOne
- func (c *InstitutionClient) Use(hooks ...Hook)
- type InstitutionCreate
- func (ic *InstitutionCreate) Exec(ctx context.Context) error
- func (ic *InstitutionCreate) ExecX(ctx context.Context)
- func (ic *InstitutionCreate) Mutation() *InstitutionMutation
- func (ic *InstitutionCreate) OnConflict(opts ...sql.ConflictOption) *InstitutionUpsertOne
- func (ic *InstitutionCreate) OnConflictColumns(columns ...string) *InstitutionUpsertOne
- func (ic *InstitutionCreate) Save(ctx context.Context) (*Institution, error)
- func (ic *InstitutionCreate) SaveX(ctx context.Context) *Institution
- func (ic *InstitutionCreate) SetCode(s string) *InstitutionCreate
- func (ic *InstitutionCreate) SetCreatedAt(t time.Time) *InstitutionCreate
- func (ic *InstitutionCreate) SetFiatCurrency(f *FiatCurrency) *InstitutionCreate
- func (ic *InstitutionCreate) SetFiatCurrencyID(id uuid.UUID) *InstitutionCreate
- func (ic *InstitutionCreate) SetName(s string) *InstitutionCreate
- func (ic *InstitutionCreate) SetNillableCreatedAt(t *time.Time) *InstitutionCreate
- func (ic *InstitutionCreate) SetNillableFiatCurrencyID(id *uuid.UUID) *InstitutionCreate
- func (ic *InstitutionCreate) SetNillableType(i *institution.Type) *InstitutionCreate
- func (ic *InstitutionCreate) SetNillableUpdatedAt(t *time.Time) *InstitutionCreate
- func (ic *InstitutionCreate) SetType(i institution.Type) *InstitutionCreate
- func (ic *InstitutionCreate) SetUpdatedAt(t time.Time) *InstitutionCreate
- type InstitutionCreateBulk
- func (icb *InstitutionCreateBulk) Exec(ctx context.Context) error
- func (icb *InstitutionCreateBulk) ExecX(ctx context.Context)
- func (icb *InstitutionCreateBulk) OnConflict(opts ...sql.ConflictOption) *InstitutionUpsertBulk
- func (icb *InstitutionCreateBulk) OnConflictColumns(columns ...string) *InstitutionUpsertBulk
- func (icb *InstitutionCreateBulk) Save(ctx context.Context) ([]*Institution, error)
- func (icb *InstitutionCreateBulk) SaveX(ctx context.Context) []*Institution
- type InstitutionDelete
- type InstitutionDeleteOne
- type InstitutionEdges
- type InstitutionGroupBy
- func (igb *InstitutionGroupBy) Aggregate(fns ...AggregateFunc) *InstitutionGroupBy
- func (s *InstitutionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *InstitutionGroupBy) BoolX(ctx context.Context) bool
- func (s *InstitutionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *InstitutionGroupBy) BoolsX(ctx context.Context) []bool
- func (s *InstitutionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *InstitutionGroupBy) Float64X(ctx context.Context) float64
- func (s *InstitutionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *InstitutionGroupBy) Float64sX(ctx context.Context) []float64
- func (s *InstitutionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *InstitutionGroupBy) IntX(ctx context.Context) int
- func (s *InstitutionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *InstitutionGroupBy) IntsX(ctx context.Context) []int
- func (igb *InstitutionGroupBy) Scan(ctx context.Context, v any) error
- func (s *InstitutionGroupBy) ScanX(ctx context.Context, v any)
- func (s *InstitutionGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *InstitutionGroupBy) StringX(ctx context.Context) string
- func (s *InstitutionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *InstitutionGroupBy) StringsX(ctx context.Context) []string
- type InstitutionMutation
- func (m *InstitutionMutation) AddField(name string, value ent.Value) error
- func (m *InstitutionMutation) AddedEdges() []string
- func (m *InstitutionMutation) AddedField(name string) (ent.Value, bool)
- func (m *InstitutionMutation) AddedFields() []string
- func (m *InstitutionMutation) AddedIDs(name string) []ent.Value
- func (m *InstitutionMutation) ClearEdge(name string) error
- func (m *InstitutionMutation) ClearFiatCurrency()
- func (m *InstitutionMutation) ClearField(name string) error
- func (m *InstitutionMutation) ClearedEdges() []string
- func (m *InstitutionMutation) ClearedFields() []string
- func (m InstitutionMutation) Client() *Client
- func (m *InstitutionMutation) Code() (r string, exists bool)
- func (m *InstitutionMutation) CreatedAt() (r time.Time, exists bool)
- func (m *InstitutionMutation) EdgeCleared(name string) bool
- func (m *InstitutionMutation) FiatCurrencyCleared() bool
- func (m *InstitutionMutation) FiatCurrencyID() (id uuid.UUID, exists bool)
- func (m *InstitutionMutation) FiatCurrencyIDs() (ids []uuid.UUID)
- func (m *InstitutionMutation) Field(name string) (ent.Value, bool)
- func (m *InstitutionMutation) FieldCleared(name string) bool
- func (m *InstitutionMutation) Fields() []string
- func (m *InstitutionMutation) GetType() (r institution.Type, exists bool)
- func (m *InstitutionMutation) ID() (id int, exists bool)
- func (m *InstitutionMutation) IDs(ctx context.Context) ([]int, error)
- func (m *InstitutionMutation) Name() (r string, exists bool)
- func (m *InstitutionMutation) OldCode(ctx context.Context) (v string, err error)
- func (m *InstitutionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *InstitutionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *InstitutionMutation) OldName(ctx context.Context) (v string, err error)
- func (m *InstitutionMutation) OldType(ctx context.Context) (v institution.Type, err error)
- func (m *InstitutionMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *InstitutionMutation) Op() Op
- func (m *InstitutionMutation) RemovedEdges() []string
- func (m *InstitutionMutation) RemovedIDs(name string) []ent.Value
- func (m *InstitutionMutation) ResetCode()
- func (m *InstitutionMutation) ResetCreatedAt()
- func (m *InstitutionMutation) ResetEdge(name string) error
- func (m *InstitutionMutation) ResetFiatCurrency()
- func (m *InstitutionMutation) ResetField(name string) error
- func (m *InstitutionMutation) ResetName()
- func (m *InstitutionMutation) ResetType()
- func (m *InstitutionMutation) ResetUpdatedAt()
- func (m *InstitutionMutation) SetCode(s string)
- func (m *InstitutionMutation) SetCreatedAt(t time.Time)
- func (m *InstitutionMutation) SetFiatCurrencyID(id uuid.UUID)
- func (m *InstitutionMutation) SetField(name string, value ent.Value) error
- func (m *InstitutionMutation) SetName(s string)
- func (m *InstitutionMutation) SetOp(op Op)
- func (m *InstitutionMutation) SetType(i institution.Type)
- func (m *InstitutionMutation) SetUpdatedAt(t time.Time)
- func (m InstitutionMutation) Tx() (*Tx, error)
- func (m *InstitutionMutation) Type() string
- func (m *InstitutionMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *InstitutionMutation) Where(ps ...predicate.Institution)
- func (m *InstitutionMutation) WhereP(ps ...func(*sql.Selector))
- type InstitutionQuery
- func (iq *InstitutionQuery) Aggregate(fns ...AggregateFunc) *InstitutionSelect
- func (iq *InstitutionQuery) All(ctx context.Context) ([]*Institution, error)
- func (iq *InstitutionQuery) AllX(ctx context.Context) []*Institution
- func (iq *InstitutionQuery) Clone() *InstitutionQuery
- func (iq *InstitutionQuery) Count(ctx context.Context) (int, error)
- func (iq *InstitutionQuery) CountX(ctx context.Context) int
- func (iq *InstitutionQuery) Exist(ctx context.Context) (bool, error)
- func (iq *InstitutionQuery) ExistX(ctx context.Context) bool
- func (iq *InstitutionQuery) First(ctx context.Context) (*Institution, error)
- func (iq *InstitutionQuery) FirstID(ctx context.Context) (id int, err error)
- func (iq *InstitutionQuery) FirstIDX(ctx context.Context) int
- func (iq *InstitutionQuery) FirstX(ctx context.Context) *Institution
- func (iq *InstitutionQuery) GroupBy(field string, fields ...string) *InstitutionGroupBy
- func (iq *InstitutionQuery) IDs(ctx context.Context) (ids []int, err error)
- func (iq *InstitutionQuery) IDsX(ctx context.Context) []int
- func (iq *InstitutionQuery) Limit(limit int) *InstitutionQuery
- func (iq *InstitutionQuery) Offset(offset int) *InstitutionQuery
- func (iq *InstitutionQuery) Only(ctx context.Context) (*Institution, error)
- func (iq *InstitutionQuery) OnlyID(ctx context.Context) (id int, err error)
- func (iq *InstitutionQuery) OnlyIDX(ctx context.Context) int
- func (iq *InstitutionQuery) OnlyX(ctx context.Context) *Institution
- func (iq *InstitutionQuery) Order(o ...institution.OrderOption) *InstitutionQuery
- func (iq *InstitutionQuery) QueryFiatCurrency() *FiatCurrencyQuery
- func (iq *InstitutionQuery) Select(fields ...string) *InstitutionSelect
- func (iq *InstitutionQuery) Unique(unique bool) *InstitutionQuery
- func (iq *InstitutionQuery) Where(ps ...predicate.Institution) *InstitutionQuery
- func (iq *InstitutionQuery) WithFiatCurrency(opts ...func(*FiatCurrencyQuery)) *InstitutionQuery
- type InstitutionSelect
- func (is *InstitutionSelect) Aggregate(fns ...AggregateFunc) *InstitutionSelect
- func (s *InstitutionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *InstitutionSelect) BoolX(ctx context.Context) bool
- func (s *InstitutionSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *InstitutionSelect) BoolsX(ctx context.Context) []bool
- func (s *InstitutionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *InstitutionSelect) Float64X(ctx context.Context) float64
- func (s *InstitutionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *InstitutionSelect) Float64sX(ctx context.Context) []float64
- func (s *InstitutionSelect) Int(ctx context.Context) (_ int, err error)
- func (s *InstitutionSelect) IntX(ctx context.Context) int
- func (s *InstitutionSelect) Ints(ctx context.Context) ([]int, error)
- func (s *InstitutionSelect) IntsX(ctx context.Context) []int
- func (is *InstitutionSelect) Scan(ctx context.Context, v any) error
- func (s *InstitutionSelect) ScanX(ctx context.Context, v any)
- func (s *InstitutionSelect) String(ctx context.Context) (_ string, err error)
- func (s *InstitutionSelect) StringX(ctx context.Context) string
- func (s *InstitutionSelect) Strings(ctx context.Context) ([]string, error)
- func (s *InstitutionSelect) StringsX(ctx context.Context) []string
- type InstitutionUpdate
- func (iu *InstitutionUpdate) ClearFiatCurrency() *InstitutionUpdate
- func (iu *InstitutionUpdate) Exec(ctx context.Context) error
- func (iu *InstitutionUpdate) ExecX(ctx context.Context)
- func (iu *InstitutionUpdate) Mutation() *InstitutionMutation
- func (iu *InstitutionUpdate) Save(ctx context.Context) (int, error)
- func (iu *InstitutionUpdate) SaveX(ctx context.Context) int
- func (iu *InstitutionUpdate) SetCode(s string) *InstitutionUpdate
- func (iu *InstitutionUpdate) SetFiatCurrency(f *FiatCurrency) *InstitutionUpdate
- func (iu *InstitutionUpdate) SetFiatCurrencyID(id uuid.UUID) *InstitutionUpdate
- func (iu *InstitutionUpdate) SetName(s string) *InstitutionUpdate
- func (iu *InstitutionUpdate) SetNillableCode(s *string) *InstitutionUpdate
- func (iu *InstitutionUpdate) SetNillableFiatCurrencyID(id *uuid.UUID) *InstitutionUpdate
- func (iu *InstitutionUpdate) SetNillableName(s *string) *InstitutionUpdate
- func (iu *InstitutionUpdate) SetNillableType(i *institution.Type) *InstitutionUpdate
- func (iu *InstitutionUpdate) SetType(i institution.Type) *InstitutionUpdate
- func (iu *InstitutionUpdate) SetUpdatedAt(t time.Time) *InstitutionUpdate
- func (iu *InstitutionUpdate) Where(ps ...predicate.Institution) *InstitutionUpdate
- type InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) ClearFiatCurrency() *InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) Exec(ctx context.Context) error
- func (iuo *InstitutionUpdateOne) ExecX(ctx context.Context)
- func (iuo *InstitutionUpdateOne) Mutation() *InstitutionMutation
- func (iuo *InstitutionUpdateOne) Save(ctx context.Context) (*Institution, error)
- func (iuo *InstitutionUpdateOne) SaveX(ctx context.Context) *Institution
- func (iuo *InstitutionUpdateOne) Select(field string, fields ...string) *InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) SetCode(s string) *InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) SetFiatCurrency(f *FiatCurrency) *InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) SetFiatCurrencyID(id uuid.UUID) *InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) SetName(s string) *InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) SetNillableCode(s *string) *InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) SetNillableFiatCurrencyID(id *uuid.UUID) *InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) SetNillableName(s *string) *InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) SetNillableType(i *institution.Type) *InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) SetType(i institution.Type) *InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) SetUpdatedAt(t time.Time) *InstitutionUpdateOne
- func (iuo *InstitutionUpdateOne) Where(ps ...predicate.Institution) *InstitutionUpdateOne
- type InstitutionUpsert
- func (u *InstitutionUpsert) SetCode(v string) *InstitutionUpsert
- func (u *InstitutionUpsert) SetName(v string) *InstitutionUpsert
- func (u *InstitutionUpsert) SetType(v institution.Type) *InstitutionUpsert
- func (u *InstitutionUpsert) SetUpdatedAt(v time.Time) *InstitutionUpsert
- func (u *InstitutionUpsert) UpdateCode() *InstitutionUpsert
- func (u *InstitutionUpsert) UpdateName() *InstitutionUpsert
- func (u *InstitutionUpsert) UpdateType() *InstitutionUpsert
- func (u *InstitutionUpsert) UpdateUpdatedAt() *InstitutionUpsert
- type InstitutionUpsertBulk
- func (u *InstitutionUpsertBulk) DoNothing() *InstitutionUpsertBulk
- func (u *InstitutionUpsertBulk) Exec(ctx context.Context) error
- func (u *InstitutionUpsertBulk) ExecX(ctx context.Context)
- func (u *InstitutionUpsertBulk) Ignore() *InstitutionUpsertBulk
- func (u *InstitutionUpsertBulk) SetCode(v string) *InstitutionUpsertBulk
- func (u *InstitutionUpsertBulk) SetName(v string) *InstitutionUpsertBulk
- func (u *InstitutionUpsertBulk) SetType(v institution.Type) *InstitutionUpsertBulk
- func (u *InstitutionUpsertBulk) SetUpdatedAt(v time.Time) *InstitutionUpsertBulk
- func (u *InstitutionUpsertBulk) Update(set func(*InstitutionUpsert)) *InstitutionUpsertBulk
- func (u *InstitutionUpsertBulk) UpdateCode() *InstitutionUpsertBulk
- func (u *InstitutionUpsertBulk) UpdateName() *InstitutionUpsertBulk
- func (u *InstitutionUpsertBulk) UpdateNewValues() *InstitutionUpsertBulk
- func (u *InstitutionUpsertBulk) UpdateType() *InstitutionUpsertBulk
- func (u *InstitutionUpsertBulk) UpdateUpdatedAt() *InstitutionUpsertBulk
- type InstitutionUpsertOne
- func (u *InstitutionUpsertOne) DoNothing() *InstitutionUpsertOne
- func (u *InstitutionUpsertOne) Exec(ctx context.Context) error
- func (u *InstitutionUpsertOne) ExecX(ctx context.Context)
- func (u *InstitutionUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *InstitutionUpsertOne) IDX(ctx context.Context) int
- func (u *InstitutionUpsertOne) Ignore() *InstitutionUpsertOne
- func (u *InstitutionUpsertOne) SetCode(v string) *InstitutionUpsertOne
- func (u *InstitutionUpsertOne) SetName(v string) *InstitutionUpsertOne
- func (u *InstitutionUpsertOne) SetType(v institution.Type) *InstitutionUpsertOne
- func (u *InstitutionUpsertOne) SetUpdatedAt(v time.Time) *InstitutionUpsertOne
- func (u *InstitutionUpsertOne) Update(set func(*InstitutionUpsert)) *InstitutionUpsertOne
- func (u *InstitutionUpsertOne) UpdateCode() *InstitutionUpsertOne
- func (u *InstitutionUpsertOne) UpdateName() *InstitutionUpsertOne
- func (u *InstitutionUpsertOne) UpdateNewValues() *InstitutionUpsertOne
- func (u *InstitutionUpsertOne) UpdateType() *InstitutionUpsertOne
- func (u *InstitutionUpsertOne) UpdateUpdatedAt() *InstitutionUpsertOne
- type Institutions
- type InterceptFunc
- type Interceptor
- type KYBProfile
- func (kp *KYBProfile) QueryBeneficialOwners() *BeneficialOwnerQuery
- func (kp *KYBProfile) QueryUser() *UserQuery
- func (kp *KYBProfile) String() string
- func (kp *KYBProfile) Unwrap() *KYBProfile
- func (kp *KYBProfile) Update() *KYBProfileUpdateOne
- func (kp *KYBProfile) Value(name string) (ent.Value, error)
- type KYBProfileClient
- func (c *KYBProfileClient) Create() *KYBProfileCreate
- func (c *KYBProfileClient) CreateBulk(builders ...*KYBProfileCreate) *KYBProfileCreateBulk
- func (c *KYBProfileClient) Delete() *KYBProfileDelete
- func (c *KYBProfileClient) DeleteOne(kp *KYBProfile) *KYBProfileDeleteOne
- func (c *KYBProfileClient) DeleteOneID(id uuid.UUID) *KYBProfileDeleteOne
- func (c *KYBProfileClient) Get(ctx context.Context, id uuid.UUID) (*KYBProfile, error)
- func (c *KYBProfileClient) GetX(ctx context.Context, id uuid.UUID) *KYBProfile
- func (c *KYBProfileClient) Hooks() []Hook
- func (c *KYBProfileClient) Intercept(interceptors ...Interceptor)
- func (c *KYBProfileClient) Interceptors() []Interceptor
- func (c *KYBProfileClient) MapCreateBulk(slice any, setFunc func(*KYBProfileCreate, int)) *KYBProfileCreateBulk
- func (c *KYBProfileClient) Query() *KYBProfileQuery
- func (c *KYBProfileClient) QueryBeneficialOwners(kp *KYBProfile) *BeneficialOwnerQuery
- func (c *KYBProfileClient) QueryUser(kp *KYBProfile) *UserQuery
- func (c *KYBProfileClient) Update() *KYBProfileUpdate
- func (c *KYBProfileClient) UpdateOne(kp *KYBProfile) *KYBProfileUpdateOne
- func (c *KYBProfileClient) UpdateOneID(id uuid.UUID) *KYBProfileUpdateOne
- func (c *KYBProfileClient) Use(hooks ...Hook)
- type KYBProfileCreate
- func (kpc *KYBProfileCreate) AddBeneficialOwnerIDs(ids ...uuid.UUID) *KYBProfileCreate
- func (kpc *KYBProfileCreate) AddBeneficialOwners(b ...*BeneficialOwner) *KYBProfileCreate
- func (kpc *KYBProfileCreate) Exec(ctx context.Context) error
- func (kpc *KYBProfileCreate) ExecX(ctx context.Context)
- func (kpc *KYBProfileCreate) Mutation() *KYBProfileMutation
- func (kpc *KYBProfileCreate) OnConflict(opts ...sql.ConflictOption) *KYBProfileUpsertOne
- func (kpc *KYBProfileCreate) OnConflictColumns(columns ...string) *KYBProfileUpsertOne
- func (kpc *KYBProfileCreate) Save(ctx context.Context) (*KYBProfile, error)
- func (kpc *KYBProfileCreate) SaveX(ctx context.Context) *KYBProfile
- func (kpc *KYBProfileCreate) SetAmlPolicyURL(s string) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetArticlesOfIncorporationURL(s string) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetBusinessLicenseURL(s string) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetCertificateOfIncorporationURL(s string) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetCompanyName(s string) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetCreatedAt(t time.Time) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetID(u uuid.UUID) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetKycPolicyURL(s string) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetMobileNumber(s string) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetNillableAmlPolicyURL(s *string) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetNillableBusinessLicenseURL(s *string) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetNillableCreatedAt(t *time.Time) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetNillableID(u *uuid.UUID) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetNillableKycPolicyURL(s *string) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetNillableUpdatedAt(t *time.Time) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetNillableUserID(id *uuid.UUID) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetProofOfBusinessAddressURL(s string) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetRegisteredBusinessAddress(s string) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetUpdatedAt(t time.Time) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetUser(u *User) *KYBProfileCreate
- func (kpc *KYBProfileCreate) SetUserID(id uuid.UUID) *KYBProfileCreate
- type KYBProfileCreateBulk
- func (kpcb *KYBProfileCreateBulk) Exec(ctx context.Context) error
- func (kpcb *KYBProfileCreateBulk) ExecX(ctx context.Context)
- func (kpcb *KYBProfileCreateBulk) OnConflict(opts ...sql.ConflictOption) *KYBProfileUpsertBulk
- func (kpcb *KYBProfileCreateBulk) OnConflictColumns(columns ...string) *KYBProfileUpsertBulk
- func (kpcb *KYBProfileCreateBulk) Save(ctx context.Context) ([]*KYBProfile, error)
- func (kpcb *KYBProfileCreateBulk) SaveX(ctx context.Context) []*KYBProfile
- type KYBProfileDelete
- type KYBProfileDeleteOne
- type KYBProfileEdges
- type KYBProfileGroupBy
- func (kpgb *KYBProfileGroupBy) Aggregate(fns ...AggregateFunc) *KYBProfileGroupBy
- func (s *KYBProfileGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *KYBProfileGroupBy) BoolX(ctx context.Context) bool
- func (s *KYBProfileGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *KYBProfileGroupBy) BoolsX(ctx context.Context) []bool
- func (s *KYBProfileGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *KYBProfileGroupBy) Float64X(ctx context.Context) float64
- func (s *KYBProfileGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *KYBProfileGroupBy) Float64sX(ctx context.Context) []float64
- func (s *KYBProfileGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *KYBProfileGroupBy) IntX(ctx context.Context) int
- func (s *KYBProfileGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *KYBProfileGroupBy) IntsX(ctx context.Context) []int
- func (kpgb *KYBProfileGroupBy) Scan(ctx context.Context, v any) error
- func (s *KYBProfileGroupBy) ScanX(ctx context.Context, v any)
- func (s *KYBProfileGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *KYBProfileGroupBy) StringX(ctx context.Context) string
- func (s *KYBProfileGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *KYBProfileGroupBy) StringsX(ctx context.Context) []string
- type KYBProfileMutation
- func (m *KYBProfileMutation) AddBeneficialOwnerIDs(ids ...uuid.UUID)
- func (m *KYBProfileMutation) AddField(name string, value ent.Value) error
- func (m *KYBProfileMutation) AddedEdges() []string
- func (m *KYBProfileMutation) AddedField(name string) (ent.Value, bool)
- func (m *KYBProfileMutation) AddedFields() []string
- func (m *KYBProfileMutation) AddedIDs(name string) []ent.Value
- func (m *KYBProfileMutation) AmlPolicyURL() (r string, exists bool)
- func (m *KYBProfileMutation) AmlPolicyURLCleared() bool
- func (m *KYBProfileMutation) ArticlesOfIncorporationURL() (r string, exists bool)
- func (m *KYBProfileMutation) BeneficialOwnersCleared() bool
- func (m *KYBProfileMutation) BeneficialOwnersIDs() (ids []uuid.UUID)
- func (m *KYBProfileMutation) BusinessLicenseURL() (r string, exists bool)
- func (m *KYBProfileMutation) BusinessLicenseURLCleared() bool
- func (m *KYBProfileMutation) CertificateOfIncorporationURL() (r string, exists bool)
- func (m *KYBProfileMutation) ClearAmlPolicyURL()
- func (m *KYBProfileMutation) ClearBeneficialOwners()
- func (m *KYBProfileMutation) ClearBusinessLicenseURL()
- func (m *KYBProfileMutation) ClearEdge(name string) error
- func (m *KYBProfileMutation) ClearField(name string) error
- func (m *KYBProfileMutation) ClearKycPolicyURL()
- func (m *KYBProfileMutation) ClearUser()
- func (m *KYBProfileMutation) ClearedEdges() []string
- func (m *KYBProfileMutation) ClearedFields() []string
- func (m KYBProfileMutation) Client() *Client
- func (m *KYBProfileMutation) CompanyName() (r string, exists bool)
- func (m *KYBProfileMutation) CreatedAt() (r time.Time, exists bool)
- func (m *KYBProfileMutation) EdgeCleared(name string) bool
- func (m *KYBProfileMutation) Field(name string) (ent.Value, bool)
- func (m *KYBProfileMutation) FieldCleared(name string) bool
- func (m *KYBProfileMutation) Fields() []string
- func (m *KYBProfileMutation) ID() (id uuid.UUID, exists bool)
- func (m *KYBProfileMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *KYBProfileMutation) KycPolicyURL() (r string, exists bool)
- func (m *KYBProfileMutation) KycPolicyURLCleared() bool
- func (m *KYBProfileMutation) MobileNumber() (r string, exists bool)
- func (m *KYBProfileMutation) OldAmlPolicyURL(ctx context.Context) (v string, err error)
- func (m *KYBProfileMutation) OldArticlesOfIncorporationURL(ctx context.Context) (v string, err error)
- func (m *KYBProfileMutation) OldBusinessLicenseURL(ctx context.Context) (v *string, err error)
- func (m *KYBProfileMutation) OldCertificateOfIncorporationURL(ctx context.Context) (v string, err error)
- func (m *KYBProfileMutation) OldCompanyName(ctx context.Context) (v string, err error)
- func (m *KYBProfileMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *KYBProfileMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *KYBProfileMutation) OldKycPolicyURL(ctx context.Context) (v *string, err error)
- func (m *KYBProfileMutation) OldMobileNumber(ctx context.Context) (v string, err error)
- func (m *KYBProfileMutation) OldProofOfBusinessAddressURL(ctx context.Context) (v string, err error)
- func (m *KYBProfileMutation) OldRegisteredBusinessAddress(ctx context.Context) (v string, err error)
- func (m *KYBProfileMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *KYBProfileMutation) Op() Op
- func (m *KYBProfileMutation) ProofOfBusinessAddressURL() (r string, exists bool)
- func (m *KYBProfileMutation) RegisteredBusinessAddress() (r string, exists bool)
- func (m *KYBProfileMutation) RemoveBeneficialOwnerIDs(ids ...uuid.UUID)
- func (m *KYBProfileMutation) RemovedBeneficialOwnersIDs() (ids []uuid.UUID)
- func (m *KYBProfileMutation) RemovedEdges() []string
- func (m *KYBProfileMutation) RemovedIDs(name string) []ent.Value
- func (m *KYBProfileMutation) ResetAmlPolicyURL()
- func (m *KYBProfileMutation) ResetArticlesOfIncorporationURL()
- func (m *KYBProfileMutation) ResetBeneficialOwners()
- func (m *KYBProfileMutation) ResetBusinessLicenseURL()
- func (m *KYBProfileMutation) ResetCertificateOfIncorporationURL()
- func (m *KYBProfileMutation) ResetCompanyName()
- func (m *KYBProfileMutation) ResetCreatedAt()
- func (m *KYBProfileMutation) ResetEdge(name string) error
- func (m *KYBProfileMutation) ResetField(name string) error
- func (m *KYBProfileMutation) ResetKycPolicyURL()
- func (m *KYBProfileMutation) ResetMobileNumber()
- func (m *KYBProfileMutation) ResetProofOfBusinessAddressURL()
- func (m *KYBProfileMutation) ResetRegisteredBusinessAddress()
- func (m *KYBProfileMutation) ResetUpdatedAt()
- func (m *KYBProfileMutation) ResetUser()
- func (m *KYBProfileMutation) SetAmlPolicyURL(s string)
- func (m *KYBProfileMutation) SetArticlesOfIncorporationURL(s string)
- func (m *KYBProfileMutation) SetBusinessLicenseURL(s string)
- func (m *KYBProfileMutation) SetCertificateOfIncorporationURL(s string)
- func (m *KYBProfileMutation) SetCompanyName(s string)
- func (m *KYBProfileMutation) SetCreatedAt(t time.Time)
- func (m *KYBProfileMutation) SetField(name string, value ent.Value) error
- func (m *KYBProfileMutation) SetID(id uuid.UUID)
- func (m *KYBProfileMutation) SetKycPolicyURL(s string)
- func (m *KYBProfileMutation) SetMobileNumber(s string)
- func (m *KYBProfileMutation) SetOp(op Op)
- func (m *KYBProfileMutation) SetProofOfBusinessAddressURL(s string)
- func (m *KYBProfileMutation) SetRegisteredBusinessAddress(s string)
- func (m *KYBProfileMutation) SetUpdatedAt(t time.Time)
- func (m *KYBProfileMutation) SetUserID(id uuid.UUID)
- func (m KYBProfileMutation) Tx() (*Tx, error)
- func (m *KYBProfileMutation) Type() string
- func (m *KYBProfileMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *KYBProfileMutation) UserCleared() bool
- func (m *KYBProfileMutation) UserID() (id uuid.UUID, exists bool)
- func (m *KYBProfileMutation) UserIDs() (ids []uuid.UUID)
- func (m *KYBProfileMutation) Where(ps ...predicate.KYBProfile)
- func (m *KYBProfileMutation) WhereP(ps ...func(*sql.Selector))
- type KYBProfileQuery
- func (kpq *KYBProfileQuery) Aggregate(fns ...AggregateFunc) *KYBProfileSelect
- func (kpq *KYBProfileQuery) All(ctx context.Context) ([]*KYBProfile, error)
- func (kpq *KYBProfileQuery) AllX(ctx context.Context) []*KYBProfile
- func (kpq *KYBProfileQuery) Clone() *KYBProfileQuery
- func (kpq *KYBProfileQuery) Count(ctx context.Context) (int, error)
- func (kpq *KYBProfileQuery) CountX(ctx context.Context) int
- func (kpq *KYBProfileQuery) Exist(ctx context.Context) (bool, error)
- func (kpq *KYBProfileQuery) ExistX(ctx context.Context) bool
- func (kpq *KYBProfileQuery) First(ctx context.Context) (*KYBProfile, error)
- func (kpq *KYBProfileQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (kpq *KYBProfileQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (kpq *KYBProfileQuery) FirstX(ctx context.Context) *KYBProfile
- func (kpq *KYBProfileQuery) GroupBy(field string, fields ...string) *KYBProfileGroupBy
- func (kpq *KYBProfileQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (kpq *KYBProfileQuery) IDsX(ctx context.Context) []uuid.UUID
- func (kpq *KYBProfileQuery) Limit(limit int) *KYBProfileQuery
- func (kpq *KYBProfileQuery) Offset(offset int) *KYBProfileQuery
- func (kpq *KYBProfileQuery) Only(ctx context.Context) (*KYBProfile, error)
- func (kpq *KYBProfileQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (kpq *KYBProfileQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (kpq *KYBProfileQuery) OnlyX(ctx context.Context) *KYBProfile
- func (kpq *KYBProfileQuery) Order(o ...kybprofile.OrderOption) *KYBProfileQuery
- func (kpq *KYBProfileQuery) QueryBeneficialOwners() *BeneficialOwnerQuery
- func (kpq *KYBProfileQuery) QueryUser() *UserQuery
- func (kpq *KYBProfileQuery) Select(fields ...string) *KYBProfileSelect
- func (kpq *KYBProfileQuery) Unique(unique bool) *KYBProfileQuery
- func (kpq *KYBProfileQuery) Where(ps ...predicate.KYBProfile) *KYBProfileQuery
- func (kpq *KYBProfileQuery) WithBeneficialOwners(opts ...func(*BeneficialOwnerQuery)) *KYBProfileQuery
- func (kpq *KYBProfileQuery) WithUser(opts ...func(*UserQuery)) *KYBProfileQuery
- type KYBProfileSelect
- func (kps *KYBProfileSelect) Aggregate(fns ...AggregateFunc) *KYBProfileSelect
- func (s *KYBProfileSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *KYBProfileSelect) BoolX(ctx context.Context) bool
- func (s *KYBProfileSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *KYBProfileSelect) BoolsX(ctx context.Context) []bool
- func (s *KYBProfileSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *KYBProfileSelect) Float64X(ctx context.Context) float64
- func (s *KYBProfileSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *KYBProfileSelect) Float64sX(ctx context.Context) []float64
- func (s *KYBProfileSelect) Int(ctx context.Context) (_ int, err error)
- func (s *KYBProfileSelect) IntX(ctx context.Context) int
- func (s *KYBProfileSelect) Ints(ctx context.Context) ([]int, error)
- func (s *KYBProfileSelect) IntsX(ctx context.Context) []int
- func (kps *KYBProfileSelect) Scan(ctx context.Context, v any) error
- func (s *KYBProfileSelect) ScanX(ctx context.Context, v any)
- func (s *KYBProfileSelect) String(ctx context.Context) (_ string, err error)
- func (s *KYBProfileSelect) StringX(ctx context.Context) string
- func (s *KYBProfileSelect) Strings(ctx context.Context) ([]string, error)
- func (s *KYBProfileSelect) StringsX(ctx context.Context) []string
- type KYBProfileUpdate
- func (kpu *KYBProfileUpdate) AddBeneficialOwnerIDs(ids ...uuid.UUID) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) AddBeneficialOwners(b ...*BeneficialOwner) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) ClearAmlPolicyURL() *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) ClearBeneficialOwners() *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) ClearBusinessLicenseURL() *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) ClearKycPolicyURL() *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) ClearUser() *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) Exec(ctx context.Context) error
- func (kpu *KYBProfileUpdate) ExecX(ctx context.Context)
- func (kpu *KYBProfileUpdate) Mutation() *KYBProfileMutation
- func (kpu *KYBProfileUpdate) RemoveBeneficialOwnerIDs(ids ...uuid.UUID) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) RemoveBeneficialOwners(b ...*BeneficialOwner) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) Save(ctx context.Context) (int, error)
- func (kpu *KYBProfileUpdate) SaveX(ctx context.Context) int
- func (kpu *KYBProfileUpdate) SetAmlPolicyURL(s string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetArticlesOfIncorporationURL(s string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetBusinessLicenseURL(s string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetCertificateOfIncorporationURL(s string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetCompanyName(s string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetKycPolicyURL(s string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetMobileNumber(s string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetNillableAmlPolicyURL(s *string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetNillableArticlesOfIncorporationURL(s *string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetNillableBusinessLicenseURL(s *string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetNillableCertificateOfIncorporationURL(s *string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetNillableCompanyName(s *string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetNillableKycPolicyURL(s *string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetNillableMobileNumber(s *string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetNillableProofOfBusinessAddressURL(s *string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetNillableRegisteredBusinessAddress(s *string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetNillableUserID(id *uuid.UUID) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetProofOfBusinessAddressURL(s string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetRegisteredBusinessAddress(s string) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetUpdatedAt(t time.Time) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetUser(u *User) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) SetUserID(id uuid.UUID) *KYBProfileUpdate
- func (kpu *KYBProfileUpdate) Where(ps ...predicate.KYBProfile) *KYBProfileUpdate
- type KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) AddBeneficialOwnerIDs(ids ...uuid.UUID) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) AddBeneficialOwners(b ...*BeneficialOwner) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) ClearAmlPolicyURL() *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) ClearBeneficialOwners() *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) ClearBusinessLicenseURL() *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) ClearKycPolicyURL() *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) ClearUser() *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) Exec(ctx context.Context) error
- func (kpuo *KYBProfileUpdateOne) ExecX(ctx context.Context)
- func (kpuo *KYBProfileUpdateOne) Mutation() *KYBProfileMutation
- func (kpuo *KYBProfileUpdateOne) RemoveBeneficialOwnerIDs(ids ...uuid.UUID) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) RemoveBeneficialOwners(b ...*BeneficialOwner) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) Save(ctx context.Context) (*KYBProfile, error)
- func (kpuo *KYBProfileUpdateOne) SaveX(ctx context.Context) *KYBProfile
- func (kpuo *KYBProfileUpdateOne) Select(field string, fields ...string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetAmlPolicyURL(s string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetArticlesOfIncorporationURL(s string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetBusinessLicenseURL(s string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetCertificateOfIncorporationURL(s string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetCompanyName(s string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetKycPolicyURL(s string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetMobileNumber(s string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetNillableAmlPolicyURL(s *string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetNillableArticlesOfIncorporationURL(s *string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetNillableBusinessLicenseURL(s *string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetNillableCertificateOfIncorporationURL(s *string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetNillableCompanyName(s *string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetNillableKycPolicyURL(s *string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetNillableMobileNumber(s *string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetNillableProofOfBusinessAddressURL(s *string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetNillableRegisteredBusinessAddress(s *string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetNillableUserID(id *uuid.UUID) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetProofOfBusinessAddressURL(s string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetRegisteredBusinessAddress(s string) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetUpdatedAt(t time.Time) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetUser(u *User) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) SetUserID(id uuid.UUID) *KYBProfileUpdateOne
- func (kpuo *KYBProfileUpdateOne) Where(ps ...predicate.KYBProfile) *KYBProfileUpdateOne
- type KYBProfileUpsert
- func (u *KYBProfileUpsert) ClearAmlPolicyURL() *KYBProfileUpsert
- func (u *KYBProfileUpsert) ClearBusinessLicenseURL() *KYBProfileUpsert
- func (u *KYBProfileUpsert) ClearKycPolicyURL() *KYBProfileUpsert
- func (u *KYBProfileUpsert) SetAmlPolicyURL(v string) *KYBProfileUpsert
- func (u *KYBProfileUpsert) SetArticlesOfIncorporationURL(v string) *KYBProfileUpsert
- func (u *KYBProfileUpsert) SetBusinessLicenseURL(v string) *KYBProfileUpsert
- func (u *KYBProfileUpsert) SetCertificateOfIncorporationURL(v string) *KYBProfileUpsert
- func (u *KYBProfileUpsert) SetCompanyName(v string) *KYBProfileUpsert
- func (u *KYBProfileUpsert) SetKycPolicyURL(v string) *KYBProfileUpsert
- func (u *KYBProfileUpsert) SetMobileNumber(v string) *KYBProfileUpsert
- func (u *KYBProfileUpsert) SetProofOfBusinessAddressURL(v string) *KYBProfileUpsert
- func (u *KYBProfileUpsert) SetRegisteredBusinessAddress(v string) *KYBProfileUpsert
- func (u *KYBProfileUpsert) SetUpdatedAt(v time.Time) *KYBProfileUpsert
- func (u *KYBProfileUpsert) UpdateAmlPolicyURL() *KYBProfileUpsert
- func (u *KYBProfileUpsert) UpdateArticlesOfIncorporationURL() *KYBProfileUpsert
- func (u *KYBProfileUpsert) UpdateBusinessLicenseURL() *KYBProfileUpsert
- func (u *KYBProfileUpsert) UpdateCertificateOfIncorporationURL() *KYBProfileUpsert
- func (u *KYBProfileUpsert) UpdateCompanyName() *KYBProfileUpsert
- func (u *KYBProfileUpsert) UpdateKycPolicyURL() *KYBProfileUpsert
- func (u *KYBProfileUpsert) UpdateMobileNumber() *KYBProfileUpsert
- func (u *KYBProfileUpsert) UpdateProofOfBusinessAddressURL() *KYBProfileUpsert
- func (u *KYBProfileUpsert) UpdateRegisteredBusinessAddress() *KYBProfileUpsert
- func (u *KYBProfileUpsert) UpdateUpdatedAt() *KYBProfileUpsert
- type KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) ClearAmlPolicyURL() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) ClearBusinessLicenseURL() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) ClearKycPolicyURL() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) DoNothing() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) Exec(ctx context.Context) error
- func (u *KYBProfileUpsertBulk) ExecX(ctx context.Context)
- func (u *KYBProfileUpsertBulk) Ignore() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) SetAmlPolicyURL(v string) *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) SetArticlesOfIncorporationURL(v string) *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) SetBusinessLicenseURL(v string) *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) SetCertificateOfIncorporationURL(v string) *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) SetCompanyName(v string) *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) SetKycPolicyURL(v string) *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) SetMobileNumber(v string) *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) SetProofOfBusinessAddressURL(v string) *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) SetRegisteredBusinessAddress(v string) *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) SetUpdatedAt(v time.Time) *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) Update(set func(*KYBProfileUpsert)) *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) UpdateAmlPolicyURL() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) UpdateArticlesOfIncorporationURL() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) UpdateBusinessLicenseURL() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) UpdateCertificateOfIncorporationURL() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) UpdateCompanyName() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) UpdateKycPolicyURL() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) UpdateMobileNumber() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) UpdateNewValues() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) UpdateProofOfBusinessAddressURL() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) UpdateRegisteredBusinessAddress() *KYBProfileUpsertBulk
- func (u *KYBProfileUpsertBulk) UpdateUpdatedAt() *KYBProfileUpsertBulk
- type KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) ClearAmlPolicyURL() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) ClearBusinessLicenseURL() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) ClearKycPolicyURL() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) DoNothing() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) Exec(ctx context.Context) error
- func (u *KYBProfileUpsertOne) ExecX(ctx context.Context)
- func (u *KYBProfileUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *KYBProfileUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *KYBProfileUpsertOne) Ignore() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) SetAmlPolicyURL(v string) *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) SetArticlesOfIncorporationURL(v string) *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) SetBusinessLicenseURL(v string) *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) SetCertificateOfIncorporationURL(v string) *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) SetCompanyName(v string) *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) SetKycPolicyURL(v string) *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) SetMobileNumber(v string) *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) SetProofOfBusinessAddressURL(v string) *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) SetRegisteredBusinessAddress(v string) *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) SetUpdatedAt(v time.Time) *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) Update(set func(*KYBProfileUpsert)) *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) UpdateAmlPolicyURL() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) UpdateArticlesOfIncorporationURL() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) UpdateBusinessLicenseURL() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) UpdateCertificateOfIncorporationURL() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) UpdateCompanyName() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) UpdateKycPolicyURL() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) UpdateMobileNumber() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) UpdateNewValues() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) UpdateProofOfBusinessAddressURL() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) UpdateRegisteredBusinessAddress() *KYBProfileUpsertOne
- func (u *KYBProfileUpsertOne) UpdateUpdatedAt() *KYBProfileUpsertOne
- type KYBProfiles
- type LinkedAddress
- type LinkedAddressClient
- func (c *LinkedAddressClient) Create() *LinkedAddressCreate
- func (c *LinkedAddressClient) CreateBulk(builders ...*LinkedAddressCreate) *LinkedAddressCreateBulk
- func (c *LinkedAddressClient) Delete() *LinkedAddressDelete
- func (c *LinkedAddressClient) DeleteOne(la *LinkedAddress) *LinkedAddressDeleteOne
- func (c *LinkedAddressClient) DeleteOneID(id int) *LinkedAddressDeleteOne
- func (c *LinkedAddressClient) Get(ctx context.Context, id int) (*LinkedAddress, error)
- func (c *LinkedAddressClient) GetX(ctx context.Context, id int) *LinkedAddress
- func (c *LinkedAddressClient) Hooks() []Hook
- func (c *LinkedAddressClient) Intercept(interceptors ...Interceptor)
- func (c *LinkedAddressClient) Interceptors() []Interceptor
- func (c *LinkedAddressClient) MapCreateBulk(slice any, setFunc func(*LinkedAddressCreate, int)) *LinkedAddressCreateBulk
- func (c *LinkedAddressClient) Query() *LinkedAddressQuery
- func (c *LinkedAddressClient) QueryPaymentOrders(la *LinkedAddress) *PaymentOrderQuery
- func (c *LinkedAddressClient) Update() *LinkedAddressUpdate
- func (c *LinkedAddressClient) UpdateOne(la *LinkedAddress) *LinkedAddressUpdateOne
- func (c *LinkedAddressClient) UpdateOneID(id int) *LinkedAddressUpdateOne
- func (c *LinkedAddressClient) Use(hooks ...Hook)
- type LinkedAddressCreate
- func (lac *LinkedAddressCreate) AddPaymentOrderIDs(ids ...uuid.UUID) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) AddPaymentOrders(p ...*PaymentOrder) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) Exec(ctx context.Context) error
- func (lac *LinkedAddressCreate) ExecX(ctx context.Context)
- func (lac *LinkedAddressCreate) Mutation() *LinkedAddressMutation
- func (lac *LinkedAddressCreate) OnConflict(opts ...sql.ConflictOption) *LinkedAddressUpsertOne
- func (lac *LinkedAddressCreate) OnConflictColumns(columns ...string) *LinkedAddressUpsertOne
- func (lac *LinkedAddressCreate) Save(ctx context.Context) (*LinkedAddress, error)
- func (lac *LinkedAddressCreate) SaveX(ctx context.Context) *LinkedAddress
- func (lac *LinkedAddressCreate) SetAccountIdentifier(s string) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetAccountName(s string) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetAddress(s string) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetCreatedAt(t time.Time) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetInstitution(s string) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetLastIndexedBlock(i int64) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetMetadata(m map[string]interface{}) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetNillableCreatedAt(t *time.Time) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetNillableLastIndexedBlock(i *int64) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetNillableTxHash(s *string) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetNillableUpdatedAt(t *time.Time) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetOwnerAddress(s string) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetSalt(b []byte) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetTxHash(s string) *LinkedAddressCreate
- func (lac *LinkedAddressCreate) SetUpdatedAt(t time.Time) *LinkedAddressCreate
- type LinkedAddressCreateBulk
- func (lacb *LinkedAddressCreateBulk) Exec(ctx context.Context) error
- func (lacb *LinkedAddressCreateBulk) ExecX(ctx context.Context)
- func (lacb *LinkedAddressCreateBulk) OnConflict(opts ...sql.ConflictOption) *LinkedAddressUpsertBulk
- func (lacb *LinkedAddressCreateBulk) OnConflictColumns(columns ...string) *LinkedAddressUpsertBulk
- func (lacb *LinkedAddressCreateBulk) Save(ctx context.Context) ([]*LinkedAddress, error)
- func (lacb *LinkedAddressCreateBulk) SaveX(ctx context.Context) []*LinkedAddress
- type LinkedAddressDelete
- type LinkedAddressDeleteOne
- type LinkedAddressEdges
- type LinkedAddressGroupBy
- func (lagb *LinkedAddressGroupBy) Aggregate(fns ...AggregateFunc) *LinkedAddressGroupBy
- func (s *LinkedAddressGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *LinkedAddressGroupBy) BoolX(ctx context.Context) bool
- func (s *LinkedAddressGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *LinkedAddressGroupBy) BoolsX(ctx context.Context) []bool
- func (s *LinkedAddressGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *LinkedAddressGroupBy) Float64X(ctx context.Context) float64
- func (s *LinkedAddressGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *LinkedAddressGroupBy) Float64sX(ctx context.Context) []float64
- func (s *LinkedAddressGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *LinkedAddressGroupBy) IntX(ctx context.Context) int
- func (s *LinkedAddressGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *LinkedAddressGroupBy) IntsX(ctx context.Context) []int
- func (lagb *LinkedAddressGroupBy) Scan(ctx context.Context, v any) error
- func (s *LinkedAddressGroupBy) ScanX(ctx context.Context, v any)
- func (s *LinkedAddressGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *LinkedAddressGroupBy) StringX(ctx context.Context) string
- func (s *LinkedAddressGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *LinkedAddressGroupBy) StringsX(ctx context.Context) []string
- type LinkedAddressMutation
- func (m *LinkedAddressMutation) AccountIdentifier() (r string, exists bool)
- func (m *LinkedAddressMutation) AccountName() (r string, exists bool)
- func (m *LinkedAddressMutation) AddField(name string, value ent.Value) error
- func (m *LinkedAddressMutation) AddLastIndexedBlock(i int64)
- func (m *LinkedAddressMutation) AddPaymentOrderIDs(ids ...uuid.UUID)
- func (m *LinkedAddressMutation) AddedEdges() []string
- func (m *LinkedAddressMutation) AddedField(name string) (ent.Value, bool)
- func (m *LinkedAddressMutation) AddedFields() []string
- func (m *LinkedAddressMutation) AddedIDs(name string) []ent.Value
- func (m *LinkedAddressMutation) AddedLastIndexedBlock() (r int64, exists bool)
- func (m *LinkedAddressMutation) Address() (r string, exists bool)
- func (m *LinkedAddressMutation) ClearEdge(name string) error
- func (m *LinkedAddressMutation) ClearField(name string) error
- func (m *LinkedAddressMutation) ClearLastIndexedBlock()
- func (m *LinkedAddressMutation) ClearMetadata()
- func (m *LinkedAddressMutation) ClearPaymentOrders()
- func (m *LinkedAddressMutation) ClearSalt()
- func (m *LinkedAddressMutation) ClearTxHash()
- func (m *LinkedAddressMutation) ClearedEdges() []string
- func (m *LinkedAddressMutation) ClearedFields() []string
- func (m LinkedAddressMutation) Client() *Client
- func (m *LinkedAddressMutation) CreatedAt() (r time.Time, exists bool)
- func (m *LinkedAddressMutation) EdgeCleared(name string) bool
- func (m *LinkedAddressMutation) Field(name string) (ent.Value, bool)
- func (m *LinkedAddressMutation) FieldCleared(name string) bool
- func (m *LinkedAddressMutation) Fields() []string
- func (m *LinkedAddressMutation) ID() (id int, exists bool)
- func (m *LinkedAddressMutation) IDs(ctx context.Context) ([]int, error)
- func (m *LinkedAddressMutation) Institution() (r string, exists bool)
- func (m *LinkedAddressMutation) LastIndexedBlock() (r int64, exists bool)
- func (m *LinkedAddressMutation) LastIndexedBlockCleared() bool
- func (m *LinkedAddressMutation) Metadata() (r map[string]interface{}, exists bool)
- func (m *LinkedAddressMutation) MetadataCleared() bool
- func (m *LinkedAddressMutation) OldAccountIdentifier(ctx context.Context) (v string, err error)
- func (m *LinkedAddressMutation) OldAccountName(ctx context.Context) (v string, err error)
- func (m *LinkedAddressMutation) OldAddress(ctx context.Context) (v string, err error)
- func (m *LinkedAddressMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *LinkedAddressMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *LinkedAddressMutation) OldInstitution(ctx context.Context) (v string, err error)
- func (m *LinkedAddressMutation) OldLastIndexedBlock(ctx context.Context) (v int64, err error)
- func (m *LinkedAddressMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error)
- func (m *LinkedAddressMutation) OldOwnerAddress(ctx context.Context) (v string, err error)
- func (m *LinkedAddressMutation) OldSalt(ctx context.Context) (v []byte, err error)
- func (m *LinkedAddressMutation) OldTxHash(ctx context.Context) (v string, err error)
- func (m *LinkedAddressMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *LinkedAddressMutation) Op() Op
- func (m *LinkedAddressMutation) OwnerAddress() (r string, exists bool)
- func (m *LinkedAddressMutation) PaymentOrdersCleared() bool
- func (m *LinkedAddressMutation) PaymentOrdersIDs() (ids []uuid.UUID)
- func (m *LinkedAddressMutation) RemovePaymentOrderIDs(ids ...uuid.UUID)
- func (m *LinkedAddressMutation) RemovedEdges() []string
- func (m *LinkedAddressMutation) RemovedIDs(name string) []ent.Value
- func (m *LinkedAddressMutation) RemovedPaymentOrdersIDs() (ids []uuid.UUID)
- func (m *LinkedAddressMutation) ResetAccountIdentifier()
- func (m *LinkedAddressMutation) ResetAccountName()
- func (m *LinkedAddressMutation) ResetAddress()
- func (m *LinkedAddressMutation) ResetCreatedAt()
- func (m *LinkedAddressMutation) ResetEdge(name string) error
- func (m *LinkedAddressMutation) ResetField(name string) error
- func (m *LinkedAddressMutation) ResetInstitution()
- func (m *LinkedAddressMutation) ResetLastIndexedBlock()
- func (m *LinkedAddressMutation) ResetMetadata()
- func (m *LinkedAddressMutation) ResetOwnerAddress()
- func (m *LinkedAddressMutation) ResetPaymentOrders()
- func (m *LinkedAddressMutation) ResetSalt()
- func (m *LinkedAddressMutation) ResetTxHash()
- func (m *LinkedAddressMutation) ResetUpdatedAt()
- func (m *LinkedAddressMutation) Salt() (r []byte, exists bool)
- func (m *LinkedAddressMutation) SaltCleared() bool
- func (m *LinkedAddressMutation) SetAccountIdentifier(s string)
- func (m *LinkedAddressMutation) SetAccountName(s string)
- func (m *LinkedAddressMutation) SetAddress(s string)
- func (m *LinkedAddressMutation) SetCreatedAt(t time.Time)
- func (m *LinkedAddressMutation) SetField(name string, value ent.Value) error
- func (m *LinkedAddressMutation) SetInstitution(s string)
- func (m *LinkedAddressMutation) SetLastIndexedBlock(i int64)
- func (m *LinkedAddressMutation) SetMetadata(value map[string]interface{})
- func (m *LinkedAddressMutation) SetOp(op Op)
- func (m *LinkedAddressMutation) SetOwnerAddress(s string)
- func (m *LinkedAddressMutation) SetSalt(b []byte)
- func (m *LinkedAddressMutation) SetTxHash(s string)
- func (m *LinkedAddressMutation) SetUpdatedAt(t time.Time)
- func (m LinkedAddressMutation) Tx() (*Tx, error)
- func (m *LinkedAddressMutation) TxHash() (r string, exists bool)
- func (m *LinkedAddressMutation) TxHashCleared() bool
- func (m *LinkedAddressMutation) Type() string
- func (m *LinkedAddressMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *LinkedAddressMutation) Where(ps ...predicate.LinkedAddress)
- func (m *LinkedAddressMutation) WhereP(ps ...func(*sql.Selector))
- type LinkedAddressQuery
- func (laq *LinkedAddressQuery) Aggregate(fns ...AggregateFunc) *LinkedAddressSelect
- func (laq *LinkedAddressQuery) All(ctx context.Context) ([]*LinkedAddress, error)
- func (laq *LinkedAddressQuery) AllX(ctx context.Context) []*LinkedAddress
- func (laq *LinkedAddressQuery) Clone() *LinkedAddressQuery
- func (laq *LinkedAddressQuery) Count(ctx context.Context) (int, error)
- func (laq *LinkedAddressQuery) CountX(ctx context.Context) int
- func (laq *LinkedAddressQuery) Exist(ctx context.Context) (bool, error)
- func (laq *LinkedAddressQuery) ExistX(ctx context.Context) bool
- func (laq *LinkedAddressQuery) First(ctx context.Context) (*LinkedAddress, error)
- func (laq *LinkedAddressQuery) FirstID(ctx context.Context) (id int, err error)
- func (laq *LinkedAddressQuery) FirstIDX(ctx context.Context) int
- func (laq *LinkedAddressQuery) FirstX(ctx context.Context) *LinkedAddress
- func (laq *LinkedAddressQuery) GroupBy(field string, fields ...string) *LinkedAddressGroupBy
- func (laq *LinkedAddressQuery) IDs(ctx context.Context) (ids []int, err error)
- func (laq *LinkedAddressQuery) IDsX(ctx context.Context) []int
- func (laq *LinkedAddressQuery) Limit(limit int) *LinkedAddressQuery
- func (laq *LinkedAddressQuery) Offset(offset int) *LinkedAddressQuery
- func (laq *LinkedAddressQuery) Only(ctx context.Context) (*LinkedAddress, error)
- func (laq *LinkedAddressQuery) OnlyID(ctx context.Context) (id int, err error)
- func (laq *LinkedAddressQuery) OnlyIDX(ctx context.Context) int
- func (laq *LinkedAddressQuery) OnlyX(ctx context.Context) *LinkedAddress
- func (laq *LinkedAddressQuery) Order(o ...linkedaddress.OrderOption) *LinkedAddressQuery
- func (laq *LinkedAddressQuery) QueryPaymentOrders() *PaymentOrderQuery
- func (laq *LinkedAddressQuery) Select(fields ...string) *LinkedAddressSelect
- func (laq *LinkedAddressQuery) Unique(unique bool) *LinkedAddressQuery
- func (laq *LinkedAddressQuery) Where(ps ...predicate.LinkedAddress) *LinkedAddressQuery
- func (laq *LinkedAddressQuery) WithPaymentOrders(opts ...func(*PaymentOrderQuery)) *LinkedAddressQuery
- type LinkedAddressSelect
- func (las *LinkedAddressSelect) Aggregate(fns ...AggregateFunc) *LinkedAddressSelect
- func (s *LinkedAddressSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *LinkedAddressSelect) BoolX(ctx context.Context) bool
- func (s *LinkedAddressSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *LinkedAddressSelect) BoolsX(ctx context.Context) []bool
- func (s *LinkedAddressSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *LinkedAddressSelect) Float64X(ctx context.Context) float64
- func (s *LinkedAddressSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *LinkedAddressSelect) Float64sX(ctx context.Context) []float64
- func (s *LinkedAddressSelect) Int(ctx context.Context) (_ int, err error)
- func (s *LinkedAddressSelect) IntX(ctx context.Context) int
- func (s *LinkedAddressSelect) Ints(ctx context.Context) ([]int, error)
- func (s *LinkedAddressSelect) IntsX(ctx context.Context) []int
- func (las *LinkedAddressSelect) Scan(ctx context.Context, v any) error
- func (s *LinkedAddressSelect) ScanX(ctx context.Context, v any)
- func (s *LinkedAddressSelect) String(ctx context.Context) (_ string, err error)
- func (s *LinkedAddressSelect) StringX(ctx context.Context) string
- func (s *LinkedAddressSelect) Strings(ctx context.Context) ([]string, error)
- func (s *LinkedAddressSelect) StringsX(ctx context.Context) []string
- type LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) AddLastIndexedBlock(i int64) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) AddPaymentOrderIDs(ids ...uuid.UUID) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) AddPaymentOrders(p ...*PaymentOrder) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) ClearLastIndexedBlock() *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) ClearMetadata() *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) ClearPaymentOrders() *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) ClearSalt() *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) ClearTxHash() *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) Exec(ctx context.Context) error
- func (lau *LinkedAddressUpdate) ExecX(ctx context.Context)
- func (lau *LinkedAddressUpdate) Mutation() *LinkedAddressMutation
- func (lau *LinkedAddressUpdate) RemovePaymentOrderIDs(ids ...uuid.UUID) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) RemovePaymentOrders(p ...*PaymentOrder) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) Save(ctx context.Context) (int, error)
- func (lau *LinkedAddressUpdate) SaveX(ctx context.Context) int
- func (lau *LinkedAddressUpdate) SetAccountIdentifier(s string) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetAccountName(s string) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetAddress(s string) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetInstitution(s string) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetLastIndexedBlock(i int64) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetMetadata(m map[string]interface{}) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetNillableAccountIdentifier(s *string) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetNillableAccountName(s *string) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetNillableAddress(s *string) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetNillableInstitution(s *string) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetNillableLastIndexedBlock(i *int64) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetNillableOwnerAddress(s *string) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetNillableTxHash(s *string) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetOwnerAddress(s string) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetSalt(b []byte) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetTxHash(s string) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) SetUpdatedAt(t time.Time) *LinkedAddressUpdate
- func (lau *LinkedAddressUpdate) Where(ps ...predicate.LinkedAddress) *LinkedAddressUpdate
- type LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) AddLastIndexedBlock(i int64) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) AddPaymentOrderIDs(ids ...uuid.UUID) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) AddPaymentOrders(p ...*PaymentOrder) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) ClearLastIndexedBlock() *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) ClearMetadata() *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) ClearPaymentOrders() *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) ClearSalt() *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) ClearTxHash() *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) Exec(ctx context.Context) error
- func (lauo *LinkedAddressUpdateOne) ExecX(ctx context.Context)
- func (lauo *LinkedAddressUpdateOne) Mutation() *LinkedAddressMutation
- func (lauo *LinkedAddressUpdateOne) RemovePaymentOrderIDs(ids ...uuid.UUID) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) RemovePaymentOrders(p ...*PaymentOrder) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) Save(ctx context.Context) (*LinkedAddress, error)
- func (lauo *LinkedAddressUpdateOne) SaveX(ctx context.Context) *LinkedAddress
- func (lauo *LinkedAddressUpdateOne) Select(field string, fields ...string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetAccountIdentifier(s string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetAccountName(s string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetAddress(s string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetInstitution(s string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetLastIndexedBlock(i int64) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetMetadata(m map[string]interface{}) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetNillableAccountIdentifier(s *string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetNillableAccountName(s *string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetNillableAddress(s *string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetNillableInstitution(s *string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetNillableLastIndexedBlock(i *int64) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetNillableOwnerAddress(s *string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetNillableTxHash(s *string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetOwnerAddress(s string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetSalt(b []byte) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetTxHash(s string) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) SetUpdatedAt(t time.Time) *LinkedAddressUpdateOne
- func (lauo *LinkedAddressUpdateOne) Where(ps ...predicate.LinkedAddress) *LinkedAddressUpdateOne
- type LinkedAddressUpsert
- func (u *LinkedAddressUpsert) AddLastIndexedBlock(v int64) *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) ClearLastIndexedBlock() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) ClearMetadata() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) ClearSalt() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) ClearTxHash() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) SetAccountIdentifier(v string) *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) SetAccountName(v string) *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) SetAddress(v string) *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) SetInstitution(v string) *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) SetLastIndexedBlock(v int64) *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) SetMetadata(v map[string]interface{}) *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) SetOwnerAddress(v string) *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) SetSalt(v []byte) *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) SetTxHash(v string) *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) SetUpdatedAt(v time.Time) *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) UpdateAccountIdentifier() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) UpdateAccountName() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) UpdateAddress() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) UpdateInstitution() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) UpdateLastIndexedBlock() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) UpdateMetadata() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) UpdateOwnerAddress() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) UpdateSalt() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) UpdateTxHash() *LinkedAddressUpsert
- func (u *LinkedAddressUpsert) UpdateUpdatedAt() *LinkedAddressUpsert
- type LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) AddLastIndexedBlock(v int64) *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) ClearLastIndexedBlock() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) ClearMetadata() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) ClearSalt() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) ClearTxHash() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) DoNothing() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) Exec(ctx context.Context) error
- func (u *LinkedAddressUpsertBulk) ExecX(ctx context.Context)
- func (u *LinkedAddressUpsertBulk) Ignore() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) SetAccountIdentifier(v string) *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) SetAccountName(v string) *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) SetAddress(v string) *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) SetInstitution(v string) *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) SetLastIndexedBlock(v int64) *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) SetMetadata(v map[string]interface{}) *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) SetOwnerAddress(v string) *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) SetSalt(v []byte) *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) SetTxHash(v string) *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) SetUpdatedAt(v time.Time) *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) Update(set func(*LinkedAddressUpsert)) *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) UpdateAccountIdentifier() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) UpdateAccountName() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) UpdateAddress() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) UpdateInstitution() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) UpdateLastIndexedBlock() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) UpdateMetadata() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) UpdateNewValues() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) UpdateOwnerAddress() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) UpdateSalt() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) UpdateTxHash() *LinkedAddressUpsertBulk
- func (u *LinkedAddressUpsertBulk) UpdateUpdatedAt() *LinkedAddressUpsertBulk
- type LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) AddLastIndexedBlock(v int64) *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) ClearLastIndexedBlock() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) ClearMetadata() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) ClearSalt() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) ClearTxHash() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) DoNothing() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) Exec(ctx context.Context) error
- func (u *LinkedAddressUpsertOne) ExecX(ctx context.Context)
- func (u *LinkedAddressUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *LinkedAddressUpsertOne) IDX(ctx context.Context) int
- func (u *LinkedAddressUpsertOne) Ignore() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) SetAccountIdentifier(v string) *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) SetAccountName(v string) *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) SetAddress(v string) *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) SetInstitution(v string) *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) SetLastIndexedBlock(v int64) *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) SetMetadata(v map[string]interface{}) *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) SetOwnerAddress(v string) *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) SetSalt(v []byte) *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) SetTxHash(v string) *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) SetUpdatedAt(v time.Time) *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) Update(set func(*LinkedAddressUpsert)) *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) UpdateAccountIdentifier() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) UpdateAccountName() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) UpdateAddress() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) UpdateInstitution() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) UpdateLastIndexedBlock() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) UpdateMetadata() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) UpdateNewValues() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) UpdateOwnerAddress() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) UpdateSalt() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) UpdateTxHash() *LinkedAddressUpsertOne
- func (u *LinkedAddressUpsertOne) UpdateUpdatedAt() *LinkedAddressUpsertOne
- type LinkedAddresses
- type LockOrderFulfillment
- func (lof *LockOrderFulfillment) QueryOrder() *LockPaymentOrderQuery
- func (lof *LockOrderFulfillment) String() string
- func (lof *LockOrderFulfillment) Unwrap() *LockOrderFulfillment
- func (lof *LockOrderFulfillment) Update() *LockOrderFulfillmentUpdateOne
- func (lof *LockOrderFulfillment) Value(name string) (ent.Value, error)
- type LockOrderFulfillmentClient
- func (c *LockOrderFulfillmentClient) Create() *LockOrderFulfillmentCreate
- func (c *LockOrderFulfillmentClient) CreateBulk(builders ...*LockOrderFulfillmentCreate) *LockOrderFulfillmentCreateBulk
- func (c *LockOrderFulfillmentClient) Delete() *LockOrderFulfillmentDelete
- func (c *LockOrderFulfillmentClient) DeleteOne(lof *LockOrderFulfillment) *LockOrderFulfillmentDeleteOne
- func (c *LockOrderFulfillmentClient) DeleteOneID(id uuid.UUID) *LockOrderFulfillmentDeleteOne
- func (c *LockOrderFulfillmentClient) Get(ctx context.Context, id uuid.UUID) (*LockOrderFulfillment, error)
- func (c *LockOrderFulfillmentClient) GetX(ctx context.Context, id uuid.UUID) *LockOrderFulfillment
- func (c *LockOrderFulfillmentClient) Hooks() []Hook
- func (c *LockOrderFulfillmentClient) Intercept(interceptors ...Interceptor)
- func (c *LockOrderFulfillmentClient) Interceptors() []Interceptor
- func (c *LockOrderFulfillmentClient) MapCreateBulk(slice any, setFunc func(*LockOrderFulfillmentCreate, int)) *LockOrderFulfillmentCreateBulk
- func (c *LockOrderFulfillmentClient) Query() *LockOrderFulfillmentQuery
- func (c *LockOrderFulfillmentClient) QueryOrder(lof *LockOrderFulfillment) *LockPaymentOrderQuery
- func (c *LockOrderFulfillmentClient) Update() *LockOrderFulfillmentUpdate
- func (c *LockOrderFulfillmentClient) UpdateOne(lof *LockOrderFulfillment) *LockOrderFulfillmentUpdateOne
- func (c *LockOrderFulfillmentClient) UpdateOneID(id uuid.UUID) *LockOrderFulfillmentUpdateOne
- func (c *LockOrderFulfillmentClient) Use(hooks ...Hook)
- type LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) Exec(ctx context.Context) error
- func (lofc *LockOrderFulfillmentCreate) ExecX(ctx context.Context)
- func (lofc *LockOrderFulfillmentCreate) Mutation() *LockOrderFulfillmentMutation
- func (lofc *LockOrderFulfillmentCreate) OnConflict(opts ...sql.ConflictOption) *LockOrderFulfillmentUpsertOne
- func (lofc *LockOrderFulfillmentCreate) OnConflictColumns(columns ...string) *LockOrderFulfillmentUpsertOne
- func (lofc *LockOrderFulfillmentCreate) Save(ctx context.Context) (*LockOrderFulfillment, error)
- func (lofc *LockOrderFulfillmentCreate) SaveX(ctx context.Context) *LockOrderFulfillment
- func (lofc *LockOrderFulfillmentCreate) SetCreatedAt(t time.Time) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetID(u uuid.UUID) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetNillableCreatedAt(t *time.Time) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetNillableID(u *uuid.UUID) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetNillablePsp(s *string) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetNillableTxID(s *string) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetNillableUpdatedAt(t *time.Time) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetNillableValidationError(s *string) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetNillableValidationStatus(ls *lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetOrder(l *LockPaymentOrder) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetOrderID(id uuid.UUID) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetPsp(s string) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetTxID(s string) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetUpdatedAt(t time.Time) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetValidationError(s string) *LockOrderFulfillmentCreate
- func (lofc *LockOrderFulfillmentCreate) SetValidationStatus(ls lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentCreate
- type LockOrderFulfillmentCreateBulk
- func (lofcb *LockOrderFulfillmentCreateBulk) Exec(ctx context.Context) error
- func (lofcb *LockOrderFulfillmentCreateBulk) ExecX(ctx context.Context)
- func (lofcb *LockOrderFulfillmentCreateBulk) OnConflict(opts ...sql.ConflictOption) *LockOrderFulfillmentUpsertBulk
- func (lofcb *LockOrderFulfillmentCreateBulk) OnConflictColumns(columns ...string) *LockOrderFulfillmentUpsertBulk
- func (lofcb *LockOrderFulfillmentCreateBulk) Save(ctx context.Context) ([]*LockOrderFulfillment, error)
- func (lofcb *LockOrderFulfillmentCreateBulk) SaveX(ctx context.Context) []*LockOrderFulfillment
- type LockOrderFulfillmentDelete
- type LockOrderFulfillmentDeleteOne
- type LockOrderFulfillmentEdges
- type LockOrderFulfillmentGroupBy
- func (lofgb *LockOrderFulfillmentGroupBy) Aggregate(fns ...AggregateFunc) *LockOrderFulfillmentGroupBy
- func (s *LockOrderFulfillmentGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *LockOrderFulfillmentGroupBy) BoolX(ctx context.Context) bool
- func (s *LockOrderFulfillmentGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *LockOrderFulfillmentGroupBy) BoolsX(ctx context.Context) []bool
- func (s *LockOrderFulfillmentGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *LockOrderFulfillmentGroupBy) Float64X(ctx context.Context) float64
- func (s *LockOrderFulfillmentGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *LockOrderFulfillmentGroupBy) Float64sX(ctx context.Context) []float64
- func (s *LockOrderFulfillmentGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *LockOrderFulfillmentGroupBy) IntX(ctx context.Context) int
- func (s *LockOrderFulfillmentGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *LockOrderFulfillmentGroupBy) IntsX(ctx context.Context) []int
- func (lofgb *LockOrderFulfillmentGroupBy) Scan(ctx context.Context, v any) error
- func (s *LockOrderFulfillmentGroupBy) ScanX(ctx context.Context, v any)
- func (s *LockOrderFulfillmentGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *LockOrderFulfillmentGroupBy) StringX(ctx context.Context) string
- func (s *LockOrderFulfillmentGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *LockOrderFulfillmentGroupBy) StringsX(ctx context.Context) []string
- type LockOrderFulfillmentMutation
- func (m *LockOrderFulfillmentMutation) AddField(name string, value ent.Value) error
- func (m *LockOrderFulfillmentMutation) AddedEdges() []string
- func (m *LockOrderFulfillmentMutation) AddedField(name string) (ent.Value, bool)
- func (m *LockOrderFulfillmentMutation) AddedFields() []string
- func (m *LockOrderFulfillmentMutation) AddedIDs(name string) []ent.Value
- func (m *LockOrderFulfillmentMutation) ClearEdge(name string) error
- func (m *LockOrderFulfillmentMutation) ClearField(name string) error
- func (m *LockOrderFulfillmentMutation) ClearOrder()
- func (m *LockOrderFulfillmentMutation) ClearPsp()
- func (m *LockOrderFulfillmentMutation) ClearTxID()
- func (m *LockOrderFulfillmentMutation) ClearValidationError()
- func (m *LockOrderFulfillmentMutation) ClearedEdges() []string
- func (m *LockOrderFulfillmentMutation) ClearedFields() []string
- func (m LockOrderFulfillmentMutation) Client() *Client
- func (m *LockOrderFulfillmentMutation) CreatedAt() (r time.Time, exists bool)
- func (m *LockOrderFulfillmentMutation) EdgeCleared(name string) bool
- func (m *LockOrderFulfillmentMutation) Field(name string) (ent.Value, bool)
- func (m *LockOrderFulfillmentMutation) FieldCleared(name string) bool
- func (m *LockOrderFulfillmentMutation) Fields() []string
- func (m *LockOrderFulfillmentMutation) ID() (id uuid.UUID, exists bool)
- func (m *LockOrderFulfillmentMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *LockOrderFulfillmentMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *LockOrderFulfillmentMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *LockOrderFulfillmentMutation) OldPsp(ctx context.Context) (v string, err error)
- func (m *LockOrderFulfillmentMutation) OldTxID(ctx context.Context) (v string, err error)
- func (m *LockOrderFulfillmentMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *LockOrderFulfillmentMutation) OldValidationError(ctx context.Context) (v string, err error)
- func (m *LockOrderFulfillmentMutation) OldValidationStatus(ctx context.Context) (v lockorderfulfillment.ValidationStatus, err error)
- func (m *LockOrderFulfillmentMutation) Op() Op
- func (m *LockOrderFulfillmentMutation) OrderCleared() bool
- func (m *LockOrderFulfillmentMutation) OrderID() (id uuid.UUID, exists bool)
- func (m *LockOrderFulfillmentMutation) OrderIDs() (ids []uuid.UUID)
- func (m *LockOrderFulfillmentMutation) Psp() (r string, exists bool)
- func (m *LockOrderFulfillmentMutation) PspCleared() bool
- func (m *LockOrderFulfillmentMutation) RemovedEdges() []string
- func (m *LockOrderFulfillmentMutation) RemovedIDs(name string) []ent.Value
- func (m *LockOrderFulfillmentMutation) ResetCreatedAt()
- func (m *LockOrderFulfillmentMutation) ResetEdge(name string) error
- func (m *LockOrderFulfillmentMutation) ResetField(name string) error
- func (m *LockOrderFulfillmentMutation) ResetOrder()
- func (m *LockOrderFulfillmentMutation) ResetPsp()
- func (m *LockOrderFulfillmentMutation) ResetTxID()
- func (m *LockOrderFulfillmentMutation) ResetUpdatedAt()
- func (m *LockOrderFulfillmentMutation) ResetValidationError()
- func (m *LockOrderFulfillmentMutation) ResetValidationStatus()
- func (m *LockOrderFulfillmentMutation) SetCreatedAt(t time.Time)
- func (m *LockOrderFulfillmentMutation) SetField(name string, value ent.Value) error
- func (m *LockOrderFulfillmentMutation) SetID(id uuid.UUID)
- func (m *LockOrderFulfillmentMutation) SetOp(op Op)
- func (m *LockOrderFulfillmentMutation) SetOrderID(id uuid.UUID)
- func (m *LockOrderFulfillmentMutation) SetPsp(s string)
- func (m *LockOrderFulfillmentMutation) SetTxID(s string)
- func (m *LockOrderFulfillmentMutation) SetUpdatedAt(t time.Time)
- func (m *LockOrderFulfillmentMutation) SetValidationError(s string)
- func (m *LockOrderFulfillmentMutation) SetValidationStatus(ls lockorderfulfillment.ValidationStatus)
- func (m LockOrderFulfillmentMutation) Tx() (*Tx, error)
- func (m *LockOrderFulfillmentMutation) TxID() (r string, exists bool)
- func (m *LockOrderFulfillmentMutation) TxIDCleared() bool
- func (m *LockOrderFulfillmentMutation) Type() string
- func (m *LockOrderFulfillmentMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *LockOrderFulfillmentMutation) ValidationError() (r string, exists bool)
- func (m *LockOrderFulfillmentMutation) ValidationErrorCleared() bool
- func (m *LockOrderFulfillmentMutation) ValidationStatus() (r lockorderfulfillment.ValidationStatus, exists bool)
- func (m *LockOrderFulfillmentMutation) Where(ps ...predicate.LockOrderFulfillment)
- func (m *LockOrderFulfillmentMutation) WhereP(ps ...func(*sql.Selector))
- type LockOrderFulfillmentQuery
- func (lofq *LockOrderFulfillmentQuery) Aggregate(fns ...AggregateFunc) *LockOrderFulfillmentSelect
- func (lofq *LockOrderFulfillmentQuery) All(ctx context.Context) ([]*LockOrderFulfillment, error)
- func (lofq *LockOrderFulfillmentQuery) AllX(ctx context.Context) []*LockOrderFulfillment
- func (lofq *LockOrderFulfillmentQuery) Clone() *LockOrderFulfillmentQuery
- func (lofq *LockOrderFulfillmentQuery) Count(ctx context.Context) (int, error)
- func (lofq *LockOrderFulfillmentQuery) CountX(ctx context.Context) int
- func (lofq *LockOrderFulfillmentQuery) Exist(ctx context.Context) (bool, error)
- func (lofq *LockOrderFulfillmentQuery) ExistX(ctx context.Context) bool
- func (lofq *LockOrderFulfillmentQuery) First(ctx context.Context) (*LockOrderFulfillment, error)
- func (lofq *LockOrderFulfillmentQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (lofq *LockOrderFulfillmentQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (lofq *LockOrderFulfillmentQuery) FirstX(ctx context.Context) *LockOrderFulfillment
- func (lofq *LockOrderFulfillmentQuery) GroupBy(field string, fields ...string) *LockOrderFulfillmentGroupBy
- func (lofq *LockOrderFulfillmentQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (lofq *LockOrderFulfillmentQuery) IDsX(ctx context.Context) []uuid.UUID
- func (lofq *LockOrderFulfillmentQuery) Limit(limit int) *LockOrderFulfillmentQuery
- func (lofq *LockOrderFulfillmentQuery) Offset(offset int) *LockOrderFulfillmentQuery
- func (lofq *LockOrderFulfillmentQuery) Only(ctx context.Context) (*LockOrderFulfillment, error)
- func (lofq *LockOrderFulfillmentQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (lofq *LockOrderFulfillmentQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (lofq *LockOrderFulfillmentQuery) OnlyX(ctx context.Context) *LockOrderFulfillment
- func (lofq *LockOrderFulfillmentQuery) Order(o ...lockorderfulfillment.OrderOption) *LockOrderFulfillmentQuery
- func (lofq *LockOrderFulfillmentQuery) QueryOrder() *LockPaymentOrderQuery
- func (lofq *LockOrderFulfillmentQuery) Select(fields ...string) *LockOrderFulfillmentSelect
- func (lofq *LockOrderFulfillmentQuery) Unique(unique bool) *LockOrderFulfillmentQuery
- func (lofq *LockOrderFulfillmentQuery) Where(ps ...predicate.LockOrderFulfillment) *LockOrderFulfillmentQuery
- func (lofq *LockOrderFulfillmentQuery) WithOrder(opts ...func(*LockPaymentOrderQuery)) *LockOrderFulfillmentQuery
- type LockOrderFulfillmentSelect
- func (lofs *LockOrderFulfillmentSelect) Aggregate(fns ...AggregateFunc) *LockOrderFulfillmentSelect
- func (s *LockOrderFulfillmentSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *LockOrderFulfillmentSelect) BoolX(ctx context.Context) bool
- func (s *LockOrderFulfillmentSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *LockOrderFulfillmentSelect) BoolsX(ctx context.Context) []bool
- func (s *LockOrderFulfillmentSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *LockOrderFulfillmentSelect) Float64X(ctx context.Context) float64
- func (s *LockOrderFulfillmentSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *LockOrderFulfillmentSelect) Float64sX(ctx context.Context) []float64
- func (s *LockOrderFulfillmentSelect) Int(ctx context.Context) (_ int, err error)
- func (s *LockOrderFulfillmentSelect) IntX(ctx context.Context) int
- func (s *LockOrderFulfillmentSelect) Ints(ctx context.Context) ([]int, error)
- func (s *LockOrderFulfillmentSelect) IntsX(ctx context.Context) []int
- func (lofs *LockOrderFulfillmentSelect) Scan(ctx context.Context, v any) error
- func (s *LockOrderFulfillmentSelect) ScanX(ctx context.Context, v any)
- func (s *LockOrderFulfillmentSelect) String(ctx context.Context) (_ string, err error)
- func (s *LockOrderFulfillmentSelect) StringX(ctx context.Context) string
- func (s *LockOrderFulfillmentSelect) Strings(ctx context.Context) ([]string, error)
- func (s *LockOrderFulfillmentSelect) StringsX(ctx context.Context) []string
- type LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) ClearOrder() *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) ClearPsp() *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) ClearTxID() *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) ClearValidationError() *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) Exec(ctx context.Context) error
- func (lofu *LockOrderFulfillmentUpdate) ExecX(ctx context.Context)
- func (lofu *LockOrderFulfillmentUpdate) Mutation() *LockOrderFulfillmentMutation
- func (lofu *LockOrderFulfillmentUpdate) Save(ctx context.Context) (int, error)
- func (lofu *LockOrderFulfillmentUpdate) SaveX(ctx context.Context) int
- func (lofu *LockOrderFulfillmentUpdate) SetNillablePsp(s *string) *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) SetNillableTxID(s *string) *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) SetNillableValidationError(s *string) *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) SetNillableValidationStatus(ls *lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) SetOrder(l *LockPaymentOrder) *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) SetOrderID(id uuid.UUID) *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) SetPsp(s string) *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) SetTxID(s string) *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) SetUpdatedAt(t time.Time) *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) SetValidationError(s string) *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) SetValidationStatus(ls lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpdate
- func (lofu *LockOrderFulfillmentUpdate) Where(ps ...predicate.LockOrderFulfillment) *LockOrderFulfillmentUpdate
- type LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) ClearOrder() *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) ClearPsp() *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) ClearTxID() *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) ClearValidationError() *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) Exec(ctx context.Context) error
- func (lofuo *LockOrderFulfillmentUpdateOne) ExecX(ctx context.Context)
- func (lofuo *LockOrderFulfillmentUpdateOne) Mutation() *LockOrderFulfillmentMutation
- func (lofuo *LockOrderFulfillmentUpdateOne) Save(ctx context.Context) (*LockOrderFulfillment, error)
- func (lofuo *LockOrderFulfillmentUpdateOne) SaveX(ctx context.Context) *LockOrderFulfillment
- func (lofuo *LockOrderFulfillmentUpdateOne) Select(field string, fields ...string) *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) SetNillablePsp(s *string) *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) SetNillableTxID(s *string) *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) SetNillableValidationError(s *string) *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) SetNillableValidationStatus(ls *lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) SetOrder(l *LockPaymentOrder) *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) SetOrderID(id uuid.UUID) *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) SetPsp(s string) *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) SetTxID(s string) *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) SetUpdatedAt(t time.Time) *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) SetValidationError(s string) *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) SetValidationStatus(ls lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpdateOne
- func (lofuo *LockOrderFulfillmentUpdateOne) Where(ps ...predicate.LockOrderFulfillment) *LockOrderFulfillmentUpdateOne
- type LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) ClearPsp() *LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) ClearTxID() *LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) ClearValidationError() *LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) SetPsp(v string) *LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) SetTxID(v string) *LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) SetUpdatedAt(v time.Time) *LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) SetValidationError(v string) *LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) SetValidationStatus(v lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) UpdatePsp() *LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) UpdateTxID() *LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) UpdateUpdatedAt() *LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) UpdateValidationError() *LockOrderFulfillmentUpsert
- func (u *LockOrderFulfillmentUpsert) UpdateValidationStatus() *LockOrderFulfillmentUpsert
- type LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) ClearPsp() *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) ClearTxID() *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) ClearValidationError() *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) DoNothing() *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) Exec(ctx context.Context) error
- func (u *LockOrderFulfillmentUpsertBulk) ExecX(ctx context.Context)
- func (u *LockOrderFulfillmentUpsertBulk) Ignore() *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) SetPsp(v string) *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) SetTxID(v string) *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) SetUpdatedAt(v time.Time) *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) SetValidationError(v string) *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) SetValidationStatus(v lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) Update(set func(*LockOrderFulfillmentUpsert)) *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) UpdateNewValues() *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) UpdatePsp() *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) UpdateTxID() *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) UpdateUpdatedAt() *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) UpdateValidationError() *LockOrderFulfillmentUpsertBulk
- func (u *LockOrderFulfillmentUpsertBulk) UpdateValidationStatus() *LockOrderFulfillmentUpsertBulk
- type LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) ClearPsp() *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) ClearTxID() *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) ClearValidationError() *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) DoNothing() *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) Exec(ctx context.Context) error
- func (u *LockOrderFulfillmentUpsertOne) ExecX(ctx context.Context)
- func (u *LockOrderFulfillmentUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *LockOrderFulfillmentUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *LockOrderFulfillmentUpsertOne) Ignore() *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) SetPsp(v string) *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) SetTxID(v string) *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) SetUpdatedAt(v time.Time) *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) SetValidationError(v string) *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) SetValidationStatus(v lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) Update(set func(*LockOrderFulfillmentUpsert)) *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) UpdateNewValues() *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) UpdatePsp() *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) UpdateTxID() *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) UpdateUpdatedAt() *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) UpdateValidationError() *LockOrderFulfillmentUpsertOne
- func (u *LockOrderFulfillmentUpsertOne) UpdateValidationStatus() *LockOrderFulfillmentUpsertOne
- type LockOrderFulfillments
- type LockPaymentOrder
- func (lpo *LockPaymentOrder) QueryFulfillments() *LockOrderFulfillmentQuery
- func (lpo *LockPaymentOrder) QueryProvider() *ProviderProfileQuery
- func (lpo *LockPaymentOrder) QueryProvisionBucket() *ProvisionBucketQuery
- func (lpo *LockPaymentOrder) QueryToken() *TokenQuery
- func (lpo *LockPaymentOrder) QueryTransactions() *TransactionLogQuery
- func (lpo *LockPaymentOrder) String() string
- func (lpo *LockPaymentOrder) Unwrap() *LockPaymentOrder
- func (lpo *LockPaymentOrder) Update() *LockPaymentOrderUpdateOne
- func (lpo *LockPaymentOrder) Value(name string) (ent.Value, error)
- type LockPaymentOrderClient
- func (c *LockPaymentOrderClient) Create() *LockPaymentOrderCreate
- func (c *LockPaymentOrderClient) CreateBulk(builders ...*LockPaymentOrderCreate) *LockPaymentOrderCreateBulk
- func (c *LockPaymentOrderClient) Delete() *LockPaymentOrderDelete
- func (c *LockPaymentOrderClient) DeleteOne(lpo *LockPaymentOrder) *LockPaymentOrderDeleteOne
- func (c *LockPaymentOrderClient) DeleteOneID(id uuid.UUID) *LockPaymentOrderDeleteOne
- func (c *LockPaymentOrderClient) Get(ctx context.Context, id uuid.UUID) (*LockPaymentOrder, error)
- func (c *LockPaymentOrderClient) GetX(ctx context.Context, id uuid.UUID) *LockPaymentOrder
- func (c *LockPaymentOrderClient) Hooks() []Hook
- func (c *LockPaymentOrderClient) Intercept(interceptors ...Interceptor)
- func (c *LockPaymentOrderClient) Interceptors() []Interceptor
- func (c *LockPaymentOrderClient) MapCreateBulk(slice any, setFunc func(*LockPaymentOrderCreate, int)) *LockPaymentOrderCreateBulk
- func (c *LockPaymentOrderClient) Query() *LockPaymentOrderQuery
- func (c *LockPaymentOrderClient) QueryFulfillments(lpo *LockPaymentOrder) *LockOrderFulfillmentQuery
- func (c *LockPaymentOrderClient) QueryProvider(lpo *LockPaymentOrder) *ProviderProfileQuery
- func (c *LockPaymentOrderClient) QueryProvisionBucket(lpo *LockPaymentOrder) *ProvisionBucketQuery
- func (c *LockPaymentOrderClient) QueryToken(lpo *LockPaymentOrder) *TokenQuery
- func (c *LockPaymentOrderClient) QueryTransactions(lpo *LockPaymentOrder) *TransactionLogQuery
- func (c *LockPaymentOrderClient) Update() *LockPaymentOrderUpdate
- func (c *LockPaymentOrderClient) UpdateOne(lpo *LockPaymentOrder) *LockPaymentOrderUpdateOne
- func (c *LockPaymentOrderClient) UpdateOneID(id uuid.UUID) *LockPaymentOrderUpdateOne
- func (c *LockPaymentOrderClient) Use(hooks ...Hook)
- type LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) AddFulfillmentIDs(ids ...uuid.UUID) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) AddFulfillments(l ...*LockOrderFulfillment) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) AddTransactionIDs(ids ...uuid.UUID) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) AddTransactions(t ...*TransactionLog) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) Exec(ctx context.Context) error
- func (lpoc *LockPaymentOrderCreate) ExecX(ctx context.Context)
- func (lpoc *LockPaymentOrderCreate) Mutation() *LockPaymentOrderMutation
- func (lpoc *LockPaymentOrderCreate) OnConflict(opts ...sql.ConflictOption) *LockPaymentOrderUpsertOne
- func (lpoc *LockPaymentOrderCreate) OnConflictColumns(columns ...string) *LockPaymentOrderUpsertOne
- func (lpoc *LockPaymentOrderCreate) Save(ctx context.Context) (*LockPaymentOrder, error)
- func (lpoc *LockPaymentOrderCreate) SaveX(ctx context.Context) *LockPaymentOrder
- func (lpoc *LockPaymentOrderCreate) SetAccountIdentifier(s string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetAccountName(s string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetAmount(d decimal.Decimal) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetBlockNumber(i int64) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetCancellationCount(i int) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetCancellationReasons(s []string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetCreatedAt(t time.Time) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetGatewayID(s string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetID(u uuid.UUID) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetInstitution(s string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetMemo(s string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetMessageHash(s string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetMetadata(m map[string]interface{}) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetNillableCancellationCount(i *int) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetNillableCreatedAt(t *time.Time) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetNillableID(u *uuid.UUID) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetNillableMemo(s *string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetNillableMessageHash(s *string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetNillableProviderID(id *string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetNillableProvisionBucketID(id *int) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetNillableSender(s *string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetNillableStatus(l *lockpaymentorder.Status) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetNillableTxHash(s *string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetNillableUpdatedAt(t *time.Time) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetOrderPercent(d decimal.Decimal) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetProtocolFee(d decimal.Decimal) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetProvider(p *ProviderProfile) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetProviderID(id string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetProvisionBucket(p *ProvisionBucket) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetProvisionBucketID(id int) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetRate(d decimal.Decimal) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetSender(s string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetStatus(l lockpaymentorder.Status) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetToken(t *Token) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetTokenID(id int) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetTxHash(s string) *LockPaymentOrderCreate
- func (lpoc *LockPaymentOrderCreate) SetUpdatedAt(t time.Time) *LockPaymentOrderCreate
- type LockPaymentOrderCreateBulk
- func (lpocb *LockPaymentOrderCreateBulk) Exec(ctx context.Context) error
- func (lpocb *LockPaymentOrderCreateBulk) ExecX(ctx context.Context)
- func (lpocb *LockPaymentOrderCreateBulk) OnConflict(opts ...sql.ConflictOption) *LockPaymentOrderUpsertBulk
- func (lpocb *LockPaymentOrderCreateBulk) OnConflictColumns(columns ...string) *LockPaymentOrderUpsertBulk
- func (lpocb *LockPaymentOrderCreateBulk) Save(ctx context.Context) ([]*LockPaymentOrder, error)
- func (lpocb *LockPaymentOrderCreateBulk) SaveX(ctx context.Context) []*LockPaymentOrder
- type LockPaymentOrderDelete
- type LockPaymentOrderDeleteOne
- type LockPaymentOrderEdges
- func (e LockPaymentOrderEdges) FulfillmentsOrErr() ([]*LockOrderFulfillment, error)
- func (e LockPaymentOrderEdges) ProviderOrErr() (*ProviderProfile, error)
- func (e LockPaymentOrderEdges) ProvisionBucketOrErr() (*ProvisionBucket, error)
- func (e LockPaymentOrderEdges) TokenOrErr() (*Token, error)
- func (e LockPaymentOrderEdges) TransactionsOrErr() ([]*TransactionLog, error)
- type LockPaymentOrderGroupBy
- func (lpogb *LockPaymentOrderGroupBy) Aggregate(fns ...AggregateFunc) *LockPaymentOrderGroupBy
- func (s *LockPaymentOrderGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *LockPaymentOrderGroupBy) BoolX(ctx context.Context) bool
- func (s *LockPaymentOrderGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *LockPaymentOrderGroupBy) BoolsX(ctx context.Context) []bool
- func (s *LockPaymentOrderGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *LockPaymentOrderGroupBy) Float64X(ctx context.Context) float64
- func (s *LockPaymentOrderGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *LockPaymentOrderGroupBy) Float64sX(ctx context.Context) []float64
- func (s *LockPaymentOrderGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *LockPaymentOrderGroupBy) IntX(ctx context.Context) int
- func (s *LockPaymentOrderGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *LockPaymentOrderGroupBy) IntsX(ctx context.Context) []int
- func (lpogb *LockPaymentOrderGroupBy) Scan(ctx context.Context, v any) error
- func (s *LockPaymentOrderGroupBy) ScanX(ctx context.Context, v any)
- func (s *LockPaymentOrderGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *LockPaymentOrderGroupBy) StringX(ctx context.Context) string
- func (s *LockPaymentOrderGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *LockPaymentOrderGroupBy) StringsX(ctx context.Context) []string
- type LockPaymentOrderMutation
- func (m *LockPaymentOrderMutation) AccountIdentifier() (r string, exists bool)
- func (m *LockPaymentOrderMutation) AccountName() (r string, exists bool)
- func (m *LockPaymentOrderMutation) AddAmount(d decimal.Decimal)
- func (m *LockPaymentOrderMutation) AddBlockNumber(i int64)
- func (m *LockPaymentOrderMutation) AddCancellationCount(i int)
- func (m *LockPaymentOrderMutation) AddField(name string, value ent.Value) error
- func (m *LockPaymentOrderMutation) AddFulfillmentIDs(ids ...uuid.UUID)
- func (m *LockPaymentOrderMutation) AddOrderPercent(d decimal.Decimal)
- func (m *LockPaymentOrderMutation) AddProtocolFee(d decimal.Decimal)
- func (m *LockPaymentOrderMutation) AddRate(d decimal.Decimal)
- func (m *LockPaymentOrderMutation) AddTransactionIDs(ids ...uuid.UUID)
- func (m *LockPaymentOrderMutation) AddedAmount() (r decimal.Decimal, exists bool)
- func (m *LockPaymentOrderMutation) AddedBlockNumber() (r int64, exists bool)
- func (m *LockPaymentOrderMutation) AddedCancellationCount() (r int, exists bool)
- func (m *LockPaymentOrderMutation) AddedEdges() []string
- func (m *LockPaymentOrderMutation) AddedField(name string) (ent.Value, bool)
- func (m *LockPaymentOrderMutation) AddedFields() []string
- func (m *LockPaymentOrderMutation) AddedIDs(name string) []ent.Value
- func (m *LockPaymentOrderMutation) AddedOrderPercent() (r decimal.Decimal, exists bool)
- func (m *LockPaymentOrderMutation) AddedProtocolFee() (r decimal.Decimal, exists bool)
- func (m *LockPaymentOrderMutation) AddedRate() (r decimal.Decimal, exists bool)
- func (m *LockPaymentOrderMutation) Amount() (r decimal.Decimal, exists bool)
- func (m *LockPaymentOrderMutation) AppendCancellationReasons(s []string)
- func (m *LockPaymentOrderMutation) AppendedCancellationReasons() ([]string, bool)
- func (m *LockPaymentOrderMutation) BlockNumber() (r int64, exists bool)
- func (m *LockPaymentOrderMutation) CancellationCount() (r int, exists bool)
- func (m *LockPaymentOrderMutation) CancellationReasons() (r []string, exists bool)
- func (m *LockPaymentOrderMutation) ClearEdge(name string) error
- func (m *LockPaymentOrderMutation) ClearField(name string) error
- func (m *LockPaymentOrderMutation) ClearFulfillments()
- func (m *LockPaymentOrderMutation) ClearMemo()
- func (m *LockPaymentOrderMutation) ClearMessageHash()
- func (m *LockPaymentOrderMutation) ClearMetadata()
- func (m *LockPaymentOrderMutation) ClearProvider()
- func (m *LockPaymentOrderMutation) ClearProvisionBucket()
- func (m *LockPaymentOrderMutation) ClearSender()
- func (m *LockPaymentOrderMutation) ClearToken()
- func (m *LockPaymentOrderMutation) ClearTransactions()
- func (m *LockPaymentOrderMutation) ClearTxHash()
- func (m *LockPaymentOrderMutation) ClearedEdges() []string
- func (m *LockPaymentOrderMutation) ClearedFields() []string
- func (m LockPaymentOrderMutation) Client() *Client
- func (m *LockPaymentOrderMutation) CreatedAt() (r time.Time, exists bool)
- func (m *LockPaymentOrderMutation) EdgeCleared(name string) bool
- func (m *LockPaymentOrderMutation) Field(name string) (ent.Value, bool)
- func (m *LockPaymentOrderMutation) FieldCleared(name string) bool
- func (m *LockPaymentOrderMutation) Fields() []string
- func (m *LockPaymentOrderMutation) FulfillmentsCleared() bool
- func (m *LockPaymentOrderMutation) FulfillmentsIDs() (ids []uuid.UUID)
- func (m *LockPaymentOrderMutation) GatewayID() (r string, exists bool)
- func (m *LockPaymentOrderMutation) ID() (id uuid.UUID, exists bool)
- func (m *LockPaymentOrderMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *LockPaymentOrderMutation) Institution() (r string, exists bool)
- func (m *LockPaymentOrderMutation) Memo() (r string, exists bool)
- func (m *LockPaymentOrderMutation) MemoCleared() bool
- func (m *LockPaymentOrderMutation) MessageHash() (r string, exists bool)
- func (m *LockPaymentOrderMutation) MessageHashCleared() bool
- func (m *LockPaymentOrderMutation) Metadata() (r map[string]interface{}, exists bool)
- func (m *LockPaymentOrderMutation) MetadataCleared() bool
- func (m *LockPaymentOrderMutation) OldAccountIdentifier(ctx context.Context) (v string, err error)
- func (m *LockPaymentOrderMutation) OldAccountName(ctx context.Context) (v string, err error)
- func (m *LockPaymentOrderMutation) OldAmount(ctx context.Context) (v decimal.Decimal, err error)
- func (m *LockPaymentOrderMutation) OldBlockNumber(ctx context.Context) (v int64, err error)
- func (m *LockPaymentOrderMutation) OldCancellationCount(ctx context.Context) (v int, err error)
- func (m *LockPaymentOrderMutation) OldCancellationReasons(ctx context.Context) (v []string, err error)
- func (m *LockPaymentOrderMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *LockPaymentOrderMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *LockPaymentOrderMutation) OldGatewayID(ctx context.Context) (v string, err error)
- func (m *LockPaymentOrderMutation) OldInstitution(ctx context.Context) (v string, err error)
- func (m *LockPaymentOrderMutation) OldMemo(ctx context.Context) (v string, err error)
- func (m *LockPaymentOrderMutation) OldMessageHash(ctx context.Context) (v string, err error)
- func (m *LockPaymentOrderMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error)
- func (m *LockPaymentOrderMutation) OldOrderPercent(ctx context.Context) (v decimal.Decimal, err error)
- func (m *LockPaymentOrderMutation) OldProtocolFee(ctx context.Context) (v decimal.Decimal, err error)
- func (m *LockPaymentOrderMutation) OldRate(ctx context.Context) (v decimal.Decimal, err error)
- func (m *LockPaymentOrderMutation) OldSender(ctx context.Context) (v string, err error)
- func (m *LockPaymentOrderMutation) OldStatus(ctx context.Context) (v lockpaymentorder.Status, err error)
- func (m *LockPaymentOrderMutation) OldTxHash(ctx context.Context) (v string, err error)
- func (m *LockPaymentOrderMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *LockPaymentOrderMutation) Op() Op
- func (m *LockPaymentOrderMutation) OrderPercent() (r decimal.Decimal, exists bool)
- func (m *LockPaymentOrderMutation) ProtocolFee() (r decimal.Decimal, exists bool)
- func (m *LockPaymentOrderMutation) ProviderCleared() bool
- func (m *LockPaymentOrderMutation) ProviderID() (id string, exists bool)
- func (m *LockPaymentOrderMutation) ProviderIDs() (ids []string)
- func (m *LockPaymentOrderMutation) ProvisionBucketCleared() bool
- func (m *LockPaymentOrderMutation) ProvisionBucketID() (id int, exists bool)
- func (m *LockPaymentOrderMutation) ProvisionBucketIDs() (ids []int)
- func (m *LockPaymentOrderMutation) Rate() (r decimal.Decimal, exists bool)
- func (m *LockPaymentOrderMutation) RemoveFulfillmentIDs(ids ...uuid.UUID)
- func (m *LockPaymentOrderMutation) RemoveTransactionIDs(ids ...uuid.UUID)
- func (m *LockPaymentOrderMutation) RemovedEdges() []string
- func (m *LockPaymentOrderMutation) RemovedFulfillmentsIDs() (ids []uuid.UUID)
- func (m *LockPaymentOrderMutation) RemovedIDs(name string) []ent.Value
- func (m *LockPaymentOrderMutation) RemovedTransactionsIDs() (ids []uuid.UUID)
- func (m *LockPaymentOrderMutation) ResetAccountIdentifier()
- func (m *LockPaymentOrderMutation) ResetAccountName()
- func (m *LockPaymentOrderMutation) ResetAmount()
- func (m *LockPaymentOrderMutation) ResetBlockNumber()
- func (m *LockPaymentOrderMutation) ResetCancellationCount()
- func (m *LockPaymentOrderMutation) ResetCancellationReasons()
- func (m *LockPaymentOrderMutation) ResetCreatedAt()
- func (m *LockPaymentOrderMutation) ResetEdge(name string) error
- func (m *LockPaymentOrderMutation) ResetField(name string) error
- func (m *LockPaymentOrderMutation) ResetFulfillments()
- func (m *LockPaymentOrderMutation) ResetGatewayID()
- func (m *LockPaymentOrderMutation) ResetInstitution()
- func (m *LockPaymentOrderMutation) ResetMemo()
- func (m *LockPaymentOrderMutation) ResetMessageHash()
- func (m *LockPaymentOrderMutation) ResetMetadata()
- func (m *LockPaymentOrderMutation) ResetOrderPercent()
- func (m *LockPaymentOrderMutation) ResetProtocolFee()
- func (m *LockPaymentOrderMutation) ResetProvider()
- func (m *LockPaymentOrderMutation) ResetProvisionBucket()
- func (m *LockPaymentOrderMutation) ResetRate()
- func (m *LockPaymentOrderMutation) ResetSender()
- func (m *LockPaymentOrderMutation) ResetStatus()
- func (m *LockPaymentOrderMutation) ResetToken()
- func (m *LockPaymentOrderMutation) ResetTransactions()
- func (m *LockPaymentOrderMutation) ResetTxHash()
- func (m *LockPaymentOrderMutation) ResetUpdatedAt()
- func (m *LockPaymentOrderMutation) Sender() (r string, exists bool)
- func (m *LockPaymentOrderMutation) SenderCleared() bool
- func (m *LockPaymentOrderMutation) SetAccountIdentifier(s string)
- func (m *LockPaymentOrderMutation) SetAccountName(s string)
- func (m *LockPaymentOrderMutation) SetAmount(d decimal.Decimal)
- func (m *LockPaymentOrderMutation) SetBlockNumber(i int64)
- func (m *LockPaymentOrderMutation) SetCancellationCount(i int)
- func (m *LockPaymentOrderMutation) SetCancellationReasons(s []string)
- func (m *LockPaymentOrderMutation) SetCreatedAt(t time.Time)
- func (m *LockPaymentOrderMutation) SetField(name string, value ent.Value) error
- func (m *LockPaymentOrderMutation) SetGatewayID(s string)
- func (m *LockPaymentOrderMutation) SetID(id uuid.UUID)
- func (m *LockPaymentOrderMutation) SetInstitution(s string)
- func (m *LockPaymentOrderMutation) SetMemo(s string)
- func (m *LockPaymentOrderMutation) SetMessageHash(s string)
- func (m *LockPaymentOrderMutation) SetMetadata(value map[string]interface{})
- func (m *LockPaymentOrderMutation) SetOp(op Op)
- func (m *LockPaymentOrderMutation) SetOrderPercent(d decimal.Decimal)
- func (m *LockPaymentOrderMutation) SetProtocolFee(d decimal.Decimal)
- func (m *LockPaymentOrderMutation) SetProviderID(id string)
- func (m *LockPaymentOrderMutation) SetProvisionBucketID(id int)
- func (m *LockPaymentOrderMutation) SetRate(d decimal.Decimal)
- func (m *LockPaymentOrderMutation) SetSender(s string)
- func (m *LockPaymentOrderMutation) SetStatus(l lockpaymentorder.Status)
- func (m *LockPaymentOrderMutation) SetTokenID(id int)
- func (m *LockPaymentOrderMutation) SetTxHash(s string)
- func (m *LockPaymentOrderMutation) SetUpdatedAt(t time.Time)
- func (m *LockPaymentOrderMutation) Status() (r lockpaymentorder.Status, exists bool)
- func (m *LockPaymentOrderMutation) TokenCleared() bool
- func (m *LockPaymentOrderMutation) TokenID() (id int, exists bool)
- func (m *LockPaymentOrderMutation) TokenIDs() (ids []int)
- func (m *LockPaymentOrderMutation) TransactionsCleared() bool
- func (m *LockPaymentOrderMutation) TransactionsIDs() (ids []uuid.UUID)
- func (m LockPaymentOrderMutation) Tx() (*Tx, error)
- func (m *LockPaymentOrderMutation) TxHash() (r string, exists bool)
- func (m *LockPaymentOrderMutation) TxHashCleared() bool
- func (m *LockPaymentOrderMutation) Type() string
- func (m *LockPaymentOrderMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *LockPaymentOrderMutation) Where(ps ...predicate.LockPaymentOrder)
- func (m *LockPaymentOrderMutation) WhereP(ps ...func(*sql.Selector))
- type LockPaymentOrderQuery
- func (lpoq *LockPaymentOrderQuery) Aggregate(fns ...AggregateFunc) *LockPaymentOrderSelect
- func (lpoq *LockPaymentOrderQuery) All(ctx context.Context) ([]*LockPaymentOrder, error)
- func (lpoq *LockPaymentOrderQuery) AllX(ctx context.Context) []*LockPaymentOrder
- func (lpoq *LockPaymentOrderQuery) Clone() *LockPaymentOrderQuery
- func (lpoq *LockPaymentOrderQuery) Count(ctx context.Context) (int, error)
- func (lpoq *LockPaymentOrderQuery) CountX(ctx context.Context) int
- func (lpoq *LockPaymentOrderQuery) Exist(ctx context.Context) (bool, error)
- func (lpoq *LockPaymentOrderQuery) ExistX(ctx context.Context) bool
- func (lpoq *LockPaymentOrderQuery) First(ctx context.Context) (*LockPaymentOrder, error)
- func (lpoq *LockPaymentOrderQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (lpoq *LockPaymentOrderQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (lpoq *LockPaymentOrderQuery) FirstX(ctx context.Context) *LockPaymentOrder
- func (lpoq *LockPaymentOrderQuery) GroupBy(field string, fields ...string) *LockPaymentOrderGroupBy
- func (lpoq *LockPaymentOrderQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (lpoq *LockPaymentOrderQuery) IDsX(ctx context.Context) []uuid.UUID
- func (lpoq *LockPaymentOrderQuery) Limit(limit int) *LockPaymentOrderQuery
- func (lpoq *LockPaymentOrderQuery) Offset(offset int) *LockPaymentOrderQuery
- func (lpoq *LockPaymentOrderQuery) Only(ctx context.Context) (*LockPaymentOrder, error)
- func (lpoq *LockPaymentOrderQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (lpoq *LockPaymentOrderQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (lpoq *LockPaymentOrderQuery) OnlyX(ctx context.Context) *LockPaymentOrder
- func (lpoq *LockPaymentOrderQuery) Order(o ...lockpaymentorder.OrderOption) *LockPaymentOrderQuery
- func (lpoq *LockPaymentOrderQuery) QueryFulfillments() *LockOrderFulfillmentQuery
- func (lpoq *LockPaymentOrderQuery) QueryProvider() *ProviderProfileQuery
- func (lpoq *LockPaymentOrderQuery) QueryProvisionBucket() *ProvisionBucketQuery
- func (lpoq *LockPaymentOrderQuery) QueryToken() *TokenQuery
- func (lpoq *LockPaymentOrderQuery) QueryTransactions() *TransactionLogQuery
- func (lpoq *LockPaymentOrderQuery) Select(fields ...string) *LockPaymentOrderSelect
- func (lpoq *LockPaymentOrderQuery) Unique(unique bool) *LockPaymentOrderQuery
- func (lpoq *LockPaymentOrderQuery) Where(ps ...predicate.LockPaymentOrder) *LockPaymentOrderQuery
- func (lpoq *LockPaymentOrderQuery) WithFulfillments(opts ...func(*LockOrderFulfillmentQuery)) *LockPaymentOrderQuery
- func (lpoq *LockPaymentOrderQuery) WithProvider(opts ...func(*ProviderProfileQuery)) *LockPaymentOrderQuery
- func (lpoq *LockPaymentOrderQuery) WithProvisionBucket(opts ...func(*ProvisionBucketQuery)) *LockPaymentOrderQuery
- func (lpoq *LockPaymentOrderQuery) WithToken(opts ...func(*TokenQuery)) *LockPaymentOrderQuery
- func (lpoq *LockPaymentOrderQuery) WithTransactions(opts ...func(*TransactionLogQuery)) *LockPaymentOrderQuery
- type LockPaymentOrderSelect
- func (lpos *LockPaymentOrderSelect) Aggregate(fns ...AggregateFunc) *LockPaymentOrderSelect
- func (s *LockPaymentOrderSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *LockPaymentOrderSelect) BoolX(ctx context.Context) bool
- func (s *LockPaymentOrderSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *LockPaymentOrderSelect) BoolsX(ctx context.Context) []bool
- func (s *LockPaymentOrderSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *LockPaymentOrderSelect) Float64X(ctx context.Context) float64
- func (s *LockPaymentOrderSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *LockPaymentOrderSelect) Float64sX(ctx context.Context) []float64
- func (s *LockPaymentOrderSelect) Int(ctx context.Context) (_ int, err error)
- func (s *LockPaymentOrderSelect) IntX(ctx context.Context) int
- func (s *LockPaymentOrderSelect) Ints(ctx context.Context) ([]int, error)
- func (s *LockPaymentOrderSelect) IntsX(ctx context.Context) []int
- func (lpos *LockPaymentOrderSelect) Scan(ctx context.Context, v any) error
- func (s *LockPaymentOrderSelect) ScanX(ctx context.Context, v any)
- func (s *LockPaymentOrderSelect) String(ctx context.Context) (_ string, err error)
- func (s *LockPaymentOrderSelect) StringX(ctx context.Context) string
- func (s *LockPaymentOrderSelect) Strings(ctx context.Context) ([]string, error)
- func (s *LockPaymentOrderSelect) StringsX(ctx context.Context) []string
- type LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) AddAmount(d decimal.Decimal) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) AddBlockNumber(i int64) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) AddCancellationCount(i int) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) AddFulfillmentIDs(ids ...uuid.UUID) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) AddFulfillments(l ...*LockOrderFulfillment) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) AddOrderPercent(d decimal.Decimal) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) AddProtocolFee(d decimal.Decimal) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) AddRate(d decimal.Decimal) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) AddTransactionIDs(ids ...uuid.UUID) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) AddTransactions(t ...*TransactionLog) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) AppendCancellationReasons(s []string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) ClearFulfillments() *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) ClearMemo() *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) ClearMessageHash() *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) ClearMetadata() *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) ClearProvider() *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) ClearProvisionBucket() *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) ClearSender() *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) ClearToken() *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) ClearTransactions() *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) ClearTxHash() *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) Exec(ctx context.Context) error
- func (lpou *LockPaymentOrderUpdate) ExecX(ctx context.Context)
- func (lpou *LockPaymentOrderUpdate) Mutation() *LockPaymentOrderMutation
- func (lpou *LockPaymentOrderUpdate) RemoveFulfillmentIDs(ids ...uuid.UUID) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) RemoveFulfillments(l ...*LockOrderFulfillment) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) RemoveTransactionIDs(ids ...uuid.UUID) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) RemoveTransactions(t ...*TransactionLog) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) Save(ctx context.Context) (int, error)
- func (lpou *LockPaymentOrderUpdate) SaveX(ctx context.Context) int
- func (lpou *LockPaymentOrderUpdate) SetAccountIdentifier(s string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetAccountName(s string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetAmount(d decimal.Decimal) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetBlockNumber(i int64) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetCancellationCount(i int) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetCancellationReasons(s []string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetGatewayID(s string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetInstitution(s string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetMemo(s string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetMessageHash(s string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetMetadata(m map[string]interface{}) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableAccountIdentifier(s *string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableAccountName(s *string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableAmount(d *decimal.Decimal) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableBlockNumber(i *int64) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableCancellationCount(i *int) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableGatewayID(s *string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableInstitution(s *string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableMemo(s *string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableMessageHash(s *string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableOrderPercent(d *decimal.Decimal) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableProtocolFee(d *decimal.Decimal) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableProviderID(id *string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableProvisionBucketID(id *int) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableRate(d *decimal.Decimal) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableSender(s *string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableStatus(l *lockpaymentorder.Status) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetNillableTxHash(s *string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetOrderPercent(d decimal.Decimal) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetProtocolFee(d decimal.Decimal) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetProvider(p *ProviderProfile) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetProviderID(id string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetProvisionBucket(p *ProvisionBucket) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetProvisionBucketID(id int) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetRate(d decimal.Decimal) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetSender(s string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetStatus(l lockpaymentorder.Status) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetToken(t *Token) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetTokenID(id int) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetTxHash(s string) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) SetUpdatedAt(t time.Time) *LockPaymentOrderUpdate
- func (lpou *LockPaymentOrderUpdate) Where(ps ...predicate.LockPaymentOrder) *LockPaymentOrderUpdate
- type LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) AddAmount(d decimal.Decimal) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) AddBlockNumber(i int64) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) AddCancellationCount(i int) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) AddFulfillmentIDs(ids ...uuid.UUID) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) AddFulfillments(l ...*LockOrderFulfillment) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) AddOrderPercent(d decimal.Decimal) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) AddProtocolFee(d decimal.Decimal) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) AddRate(d decimal.Decimal) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) AddTransactionIDs(ids ...uuid.UUID) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) AddTransactions(t ...*TransactionLog) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) AppendCancellationReasons(s []string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) ClearFulfillments() *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) ClearMemo() *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) ClearMessageHash() *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) ClearMetadata() *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) ClearProvider() *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) ClearProvisionBucket() *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) ClearSender() *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) ClearToken() *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) ClearTransactions() *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) ClearTxHash() *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) Exec(ctx context.Context) error
- func (lpouo *LockPaymentOrderUpdateOne) ExecX(ctx context.Context)
- func (lpouo *LockPaymentOrderUpdateOne) Mutation() *LockPaymentOrderMutation
- func (lpouo *LockPaymentOrderUpdateOne) RemoveFulfillmentIDs(ids ...uuid.UUID) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) RemoveFulfillments(l ...*LockOrderFulfillment) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) RemoveTransactionIDs(ids ...uuid.UUID) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) RemoveTransactions(t ...*TransactionLog) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) Save(ctx context.Context) (*LockPaymentOrder, error)
- func (lpouo *LockPaymentOrderUpdateOne) SaveX(ctx context.Context) *LockPaymentOrder
- func (lpouo *LockPaymentOrderUpdateOne) Select(field string, fields ...string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetAccountIdentifier(s string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetAccountName(s string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetAmount(d decimal.Decimal) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetBlockNumber(i int64) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetCancellationCount(i int) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetCancellationReasons(s []string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetGatewayID(s string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetInstitution(s string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetMemo(s string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetMessageHash(s string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetMetadata(m map[string]interface{}) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableAccountIdentifier(s *string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableAccountName(s *string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableAmount(d *decimal.Decimal) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableBlockNumber(i *int64) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableCancellationCount(i *int) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableGatewayID(s *string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableInstitution(s *string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableMemo(s *string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableMessageHash(s *string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableOrderPercent(d *decimal.Decimal) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableProtocolFee(d *decimal.Decimal) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableProviderID(id *string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableProvisionBucketID(id *int) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableRate(d *decimal.Decimal) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableSender(s *string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableStatus(l *lockpaymentorder.Status) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetNillableTxHash(s *string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetOrderPercent(d decimal.Decimal) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetProtocolFee(d decimal.Decimal) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetProvider(p *ProviderProfile) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetProviderID(id string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetProvisionBucket(p *ProvisionBucket) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetProvisionBucketID(id int) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetRate(d decimal.Decimal) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetSender(s string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetStatus(l lockpaymentorder.Status) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetToken(t *Token) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetTokenID(id int) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetTxHash(s string) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) SetUpdatedAt(t time.Time) *LockPaymentOrderUpdateOne
- func (lpouo *LockPaymentOrderUpdateOne) Where(ps ...predicate.LockPaymentOrder) *LockPaymentOrderUpdateOne
- type LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) AddAmount(v decimal.Decimal) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) AddBlockNumber(v int64) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) AddCancellationCount(v int) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) AddOrderPercent(v decimal.Decimal) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) AddProtocolFee(v decimal.Decimal) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) AddRate(v decimal.Decimal) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) ClearMemo() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) ClearMessageHash() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) ClearMetadata() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) ClearSender() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) ClearTxHash() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetAccountIdentifier(v string) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetAccountName(v string) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetAmount(v decimal.Decimal) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetBlockNumber(v int64) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetCancellationCount(v int) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetCancellationReasons(v []string) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetGatewayID(v string) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetInstitution(v string) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetMemo(v string) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetMessageHash(v string) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetMetadata(v map[string]interface{}) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetOrderPercent(v decimal.Decimal) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetProtocolFee(v decimal.Decimal) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetRate(v decimal.Decimal) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetSender(v string) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetStatus(v lockpaymentorder.Status) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetTxHash(v string) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) SetUpdatedAt(v time.Time) *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateAccountIdentifier() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateAccountName() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateAmount() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateBlockNumber() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateCancellationCount() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateCancellationReasons() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateGatewayID() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateInstitution() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateMemo() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateMessageHash() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateMetadata() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateOrderPercent() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateProtocolFee() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateRate() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateSender() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateStatus() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateTxHash() *LockPaymentOrderUpsert
- func (u *LockPaymentOrderUpsert) UpdateUpdatedAt() *LockPaymentOrderUpsert
- type LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) AddAmount(v decimal.Decimal) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) AddBlockNumber(v int64) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) AddCancellationCount(v int) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) AddOrderPercent(v decimal.Decimal) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) AddProtocolFee(v decimal.Decimal) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) AddRate(v decimal.Decimal) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) ClearMemo() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) ClearMessageHash() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) ClearMetadata() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) ClearSender() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) ClearTxHash() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) DoNothing() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) Exec(ctx context.Context) error
- func (u *LockPaymentOrderUpsertBulk) ExecX(ctx context.Context)
- func (u *LockPaymentOrderUpsertBulk) Ignore() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetAccountIdentifier(v string) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetAccountName(v string) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetAmount(v decimal.Decimal) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetBlockNumber(v int64) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetCancellationCount(v int) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetCancellationReasons(v []string) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetGatewayID(v string) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetInstitution(v string) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetMemo(v string) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetMessageHash(v string) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetMetadata(v map[string]interface{}) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetOrderPercent(v decimal.Decimal) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetProtocolFee(v decimal.Decimal) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetRate(v decimal.Decimal) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetSender(v string) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetStatus(v lockpaymentorder.Status) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetTxHash(v string) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) SetUpdatedAt(v time.Time) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) Update(set func(*LockPaymentOrderUpsert)) *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateAccountIdentifier() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateAccountName() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateAmount() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateBlockNumber() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateCancellationCount() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateCancellationReasons() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateGatewayID() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateInstitution() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateMemo() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateMessageHash() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateMetadata() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateNewValues() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateOrderPercent() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateProtocolFee() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateRate() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateSender() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateStatus() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateTxHash() *LockPaymentOrderUpsertBulk
- func (u *LockPaymentOrderUpsertBulk) UpdateUpdatedAt() *LockPaymentOrderUpsertBulk
- type LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) AddAmount(v decimal.Decimal) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) AddBlockNumber(v int64) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) AddCancellationCount(v int) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) AddOrderPercent(v decimal.Decimal) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) AddProtocolFee(v decimal.Decimal) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) AddRate(v decimal.Decimal) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) ClearMemo() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) ClearMessageHash() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) ClearMetadata() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) ClearSender() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) ClearTxHash() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) DoNothing() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) Exec(ctx context.Context) error
- func (u *LockPaymentOrderUpsertOne) ExecX(ctx context.Context)
- func (u *LockPaymentOrderUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *LockPaymentOrderUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *LockPaymentOrderUpsertOne) Ignore() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetAccountIdentifier(v string) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetAccountName(v string) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetAmount(v decimal.Decimal) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetBlockNumber(v int64) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetCancellationCount(v int) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetCancellationReasons(v []string) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetGatewayID(v string) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetInstitution(v string) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetMemo(v string) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetMessageHash(v string) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetMetadata(v map[string]interface{}) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetOrderPercent(v decimal.Decimal) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetProtocolFee(v decimal.Decimal) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetRate(v decimal.Decimal) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetSender(v string) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetStatus(v lockpaymentorder.Status) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetTxHash(v string) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) SetUpdatedAt(v time.Time) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) Update(set func(*LockPaymentOrderUpsert)) *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateAccountIdentifier() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateAccountName() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateAmount() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateBlockNumber() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateCancellationCount() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateCancellationReasons() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateGatewayID() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateInstitution() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateMemo() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateMessageHash() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateMetadata() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateNewValues() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateOrderPercent() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateProtocolFee() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateRate() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateSender() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateStatus() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateTxHash() *LockPaymentOrderUpsertOne
- func (u *LockPaymentOrderUpsertOne) UpdateUpdatedAt() *LockPaymentOrderUpsertOne
- type LockPaymentOrders
- type MutateFunc
- type Mutation
- type Mutator
- type Network
- type NetworkClient
- func (c *NetworkClient) Create() *NetworkCreate
- func (c *NetworkClient) CreateBulk(builders ...*NetworkCreate) *NetworkCreateBulk
- func (c *NetworkClient) Delete() *NetworkDelete
- func (c *NetworkClient) DeleteOne(n *Network) *NetworkDeleteOne
- func (c *NetworkClient) DeleteOneID(id int) *NetworkDeleteOne
- func (c *NetworkClient) Get(ctx context.Context, id int) (*Network, error)
- func (c *NetworkClient) GetX(ctx context.Context, id int) *Network
- func (c *NetworkClient) Hooks() []Hook
- func (c *NetworkClient) Intercept(interceptors ...Interceptor)
- func (c *NetworkClient) Interceptors() []Interceptor
- func (c *NetworkClient) MapCreateBulk(slice any, setFunc func(*NetworkCreate, int)) *NetworkCreateBulk
- func (c *NetworkClient) Query() *NetworkQuery
- func (c *NetworkClient) QueryPaymentWebhook(n *Network) *PaymentWebhookQuery
- func (c *NetworkClient) QueryTokens(n *Network) *TokenQuery
- func (c *NetworkClient) Update() *NetworkUpdate
- func (c *NetworkClient) UpdateOne(n *Network) *NetworkUpdateOne
- func (c *NetworkClient) UpdateOneID(id int) *NetworkUpdateOne
- func (c *NetworkClient) Use(hooks ...Hook)
- type NetworkCreate
- func (nc *NetworkCreate) AddTokenIDs(ids ...int) *NetworkCreate
- func (nc *NetworkCreate) AddTokens(t ...*Token) *NetworkCreate
- func (nc *NetworkCreate) Exec(ctx context.Context) error
- func (nc *NetworkCreate) ExecX(ctx context.Context)
- func (nc *NetworkCreate) Mutation() *NetworkMutation
- func (nc *NetworkCreate) OnConflict(opts ...sql.ConflictOption) *NetworkUpsertOne
- func (nc *NetworkCreate) OnConflictColumns(columns ...string) *NetworkUpsertOne
- func (nc *NetworkCreate) Save(ctx context.Context) (*Network, error)
- func (nc *NetworkCreate) SaveX(ctx context.Context) *Network
- func (nc *NetworkCreate) SetBlockTime(d decimal.Decimal) *NetworkCreate
- func (nc *NetworkCreate) SetBundlerURL(s string) *NetworkCreate
- func (nc *NetworkCreate) SetChainID(i int64) *NetworkCreate
- func (nc *NetworkCreate) SetCreatedAt(t time.Time) *NetworkCreate
- func (nc *NetworkCreate) SetFee(d decimal.Decimal) *NetworkCreate
- func (nc *NetworkCreate) SetGatewayContractAddress(s string) *NetworkCreate
- func (nc *NetworkCreate) SetIdentifier(s string) *NetworkCreate
- func (nc *NetworkCreate) SetIsTestnet(b bool) *NetworkCreate
- func (nc *NetworkCreate) SetNillableBundlerURL(s *string) *NetworkCreate
- func (nc *NetworkCreate) SetNillableCreatedAt(t *time.Time) *NetworkCreate
- func (nc *NetworkCreate) SetNillableGatewayContractAddress(s *string) *NetworkCreate
- func (nc *NetworkCreate) SetNillablePaymasterURL(s *string) *NetworkCreate
- func (nc *NetworkCreate) SetNillablePaymentWebhookID(id *uuid.UUID) *NetworkCreate
- func (nc *NetworkCreate) SetNillableUpdatedAt(t *time.Time) *NetworkCreate
- func (nc *NetworkCreate) SetPaymasterURL(s string) *NetworkCreate
- func (nc *NetworkCreate) SetPaymentWebhook(p *PaymentWebhook) *NetworkCreate
- func (nc *NetworkCreate) SetPaymentWebhookID(id uuid.UUID) *NetworkCreate
- func (nc *NetworkCreate) SetRPCEndpoint(s string) *NetworkCreate
- func (nc *NetworkCreate) SetUpdatedAt(t time.Time) *NetworkCreate
- type NetworkCreateBulk
- func (ncb *NetworkCreateBulk) Exec(ctx context.Context) error
- func (ncb *NetworkCreateBulk) ExecX(ctx context.Context)
- func (ncb *NetworkCreateBulk) OnConflict(opts ...sql.ConflictOption) *NetworkUpsertBulk
- func (ncb *NetworkCreateBulk) OnConflictColumns(columns ...string) *NetworkUpsertBulk
- func (ncb *NetworkCreateBulk) Save(ctx context.Context) ([]*Network, error)
- func (ncb *NetworkCreateBulk) SaveX(ctx context.Context) []*Network
- type NetworkDelete
- type NetworkDeleteOne
- type NetworkEdges
- type NetworkGroupBy
- func (ngb *NetworkGroupBy) Aggregate(fns ...AggregateFunc) *NetworkGroupBy
- func (s *NetworkGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *NetworkGroupBy) BoolX(ctx context.Context) bool
- func (s *NetworkGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *NetworkGroupBy) BoolsX(ctx context.Context) []bool
- func (s *NetworkGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *NetworkGroupBy) Float64X(ctx context.Context) float64
- func (s *NetworkGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *NetworkGroupBy) Float64sX(ctx context.Context) []float64
- func (s *NetworkGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *NetworkGroupBy) IntX(ctx context.Context) int
- func (s *NetworkGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *NetworkGroupBy) IntsX(ctx context.Context) []int
- func (ngb *NetworkGroupBy) Scan(ctx context.Context, v any) error
- func (s *NetworkGroupBy) ScanX(ctx context.Context, v any)
- func (s *NetworkGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *NetworkGroupBy) StringX(ctx context.Context) string
- func (s *NetworkGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *NetworkGroupBy) StringsX(ctx context.Context) []string
- type NetworkMutation
- func (m *NetworkMutation) AddBlockTime(d decimal.Decimal)
- func (m *NetworkMutation) AddChainID(i int64)
- func (m *NetworkMutation) AddFee(d decimal.Decimal)
- func (m *NetworkMutation) AddField(name string, value ent.Value) error
- func (m *NetworkMutation) AddTokenIDs(ids ...int)
- func (m *NetworkMutation) AddedBlockTime() (r decimal.Decimal, exists bool)
- func (m *NetworkMutation) AddedChainID() (r int64, exists bool)
- func (m *NetworkMutation) AddedEdges() []string
- func (m *NetworkMutation) AddedFee() (r decimal.Decimal, exists bool)
- func (m *NetworkMutation) AddedField(name string) (ent.Value, bool)
- func (m *NetworkMutation) AddedFields() []string
- func (m *NetworkMutation) AddedIDs(name string) []ent.Value
- func (m *NetworkMutation) BlockTime() (r decimal.Decimal, exists bool)
- func (m *NetworkMutation) BundlerURL() (r string, exists bool)
- func (m *NetworkMutation) BundlerURLCleared() bool
- func (m *NetworkMutation) ChainID() (r int64, exists bool)
- func (m *NetworkMutation) ClearBundlerURL()
- func (m *NetworkMutation) ClearEdge(name string) error
- func (m *NetworkMutation) ClearField(name string) error
- func (m *NetworkMutation) ClearPaymasterURL()
- func (m *NetworkMutation) ClearPaymentWebhook()
- func (m *NetworkMutation) ClearTokens()
- func (m *NetworkMutation) ClearedEdges() []string
- func (m *NetworkMutation) ClearedFields() []string
- func (m NetworkMutation) Client() *Client
- func (m *NetworkMutation) CreatedAt() (r time.Time, exists bool)
- func (m *NetworkMutation) EdgeCleared(name string) bool
- func (m *NetworkMutation) Fee() (r decimal.Decimal, exists bool)
- func (m *NetworkMutation) Field(name string) (ent.Value, bool)
- func (m *NetworkMutation) FieldCleared(name string) bool
- func (m *NetworkMutation) Fields() []string
- func (m *NetworkMutation) GatewayContractAddress() (r string, exists bool)
- func (m *NetworkMutation) ID() (id int, exists bool)
- func (m *NetworkMutation) IDs(ctx context.Context) ([]int, error)
- func (m *NetworkMutation) Identifier() (r string, exists bool)
- func (m *NetworkMutation) IsTestnet() (r bool, exists bool)
- func (m *NetworkMutation) OldBlockTime(ctx context.Context) (v decimal.Decimal, err error)
- func (m *NetworkMutation) OldBundlerURL(ctx context.Context) (v string, err error)
- func (m *NetworkMutation) OldChainID(ctx context.Context) (v int64, err error)
- func (m *NetworkMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *NetworkMutation) OldFee(ctx context.Context) (v decimal.Decimal, err error)
- func (m *NetworkMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *NetworkMutation) OldGatewayContractAddress(ctx context.Context) (v string, err error)
- func (m *NetworkMutation) OldIdentifier(ctx context.Context) (v string, err error)
- func (m *NetworkMutation) OldIsTestnet(ctx context.Context) (v bool, err error)
- func (m *NetworkMutation) OldPaymasterURL(ctx context.Context) (v string, err error)
- func (m *NetworkMutation) OldRPCEndpoint(ctx context.Context) (v string, err error)
- func (m *NetworkMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *NetworkMutation) Op() Op
- func (m *NetworkMutation) PaymasterURL() (r string, exists bool)
- func (m *NetworkMutation) PaymasterURLCleared() bool
- func (m *NetworkMutation) PaymentWebhookCleared() bool
- func (m *NetworkMutation) PaymentWebhookID() (id uuid.UUID, exists bool)
- func (m *NetworkMutation) PaymentWebhookIDs() (ids []uuid.UUID)
- func (m *NetworkMutation) RPCEndpoint() (r string, exists bool)
- func (m *NetworkMutation) RemoveTokenIDs(ids ...int)
- func (m *NetworkMutation) RemovedEdges() []string
- func (m *NetworkMutation) RemovedIDs(name string) []ent.Value
- func (m *NetworkMutation) RemovedTokensIDs() (ids []int)
- func (m *NetworkMutation) ResetBlockTime()
- func (m *NetworkMutation) ResetBundlerURL()
- func (m *NetworkMutation) ResetChainID()
- func (m *NetworkMutation) ResetCreatedAt()
- func (m *NetworkMutation) ResetEdge(name string) error
- func (m *NetworkMutation) ResetFee()
- func (m *NetworkMutation) ResetField(name string) error
- func (m *NetworkMutation) ResetGatewayContractAddress()
- func (m *NetworkMutation) ResetIdentifier()
- func (m *NetworkMutation) ResetIsTestnet()
- func (m *NetworkMutation) ResetPaymasterURL()
- func (m *NetworkMutation) ResetPaymentWebhook()
- func (m *NetworkMutation) ResetRPCEndpoint()
- func (m *NetworkMutation) ResetTokens()
- func (m *NetworkMutation) ResetUpdatedAt()
- func (m *NetworkMutation) SetBlockTime(d decimal.Decimal)
- func (m *NetworkMutation) SetBundlerURL(s string)
- func (m *NetworkMutation) SetChainID(i int64)
- func (m *NetworkMutation) SetCreatedAt(t time.Time)
- func (m *NetworkMutation) SetFee(d decimal.Decimal)
- func (m *NetworkMutation) SetField(name string, value ent.Value) error
- func (m *NetworkMutation) SetGatewayContractAddress(s string)
- func (m *NetworkMutation) SetIdentifier(s string)
- func (m *NetworkMutation) SetIsTestnet(b bool)
- func (m *NetworkMutation) SetOp(op Op)
- func (m *NetworkMutation) SetPaymasterURL(s string)
- func (m *NetworkMutation) SetPaymentWebhookID(id uuid.UUID)
- func (m *NetworkMutation) SetRPCEndpoint(s string)
- func (m *NetworkMutation) SetUpdatedAt(t time.Time)
- func (m *NetworkMutation) TokensCleared() bool
- func (m *NetworkMutation) TokensIDs() (ids []int)
- func (m NetworkMutation) Tx() (*Tx, error)
- func (m *NetworkMutation) Type() string
- func (m *NetworkMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *NetworkMutation) Where(ps ...predicate.Network)
- func (m *NetworkMutation) WhereP(ps ...func(*sql.Selector))
- type NetworkQuery
- func (nq *NetworkQuery) Aggregate(fns ...AggregateFunc) *NetworkSelect
- func (nq *NetworkQuery) All(ctx context.Context) ([]*Network, error)
- func (nq *NetworkQuery) AllX(ctx context.Context) []*Network
- func (nq *NetworkQuery) Clone() *NetworkQuery
- func (nq *NetworkQuery) Count(ctx context.Context) (int, error)
- func (nq *NetworkQuery) CountX(ctx context.Context) int
- func (nq *NetworkQuery) Exist(ctx context.Context) (bool, error)
- func (nq *NetworkQuery) ExistX(ctx context.Context) bool
- func (nq *NetworkQuery) First(ctx context.Context) (*Network, error)
- func (nq *NetworkQuery) FirstID(ctx context.Context) (id int, err error)
- func (nq *NetworkQuery) FirstIDX(ctx context.Context) int
- func (nq *NetworkQuery) FirstX(ctx context.Context) *Network
- func (nq *NetworkQuery) GroupBy(field string, fields ...string) *NetworkGroupBy
- func (nq *NetworkQuery) IDs(ctx context.Context) (ids []int, err error)
- func (nq *NetworkQuery) IDsX(ctx context.Context) []int
- func (nq *NetworkQuery) Limit(limit int) *NetworkQuery
- func (nq *NetworkQuery) Offset(offset int) *NetworkQuery
- func (nq *NetworkQuery) Only(ctx context.Context) (*Network, error)
- func (nq *NetworkQuery) OnlyID(ctx context.Context) (id int, err error)
- func (nq *NetworkQuery) OnlyIDX(ctx context.Context) int
- func (nq *NetworkQuery) OnlyX(ctx context.Context) *Network
- func (nq *NetworkQuery) Order(o ...network.OrderOption) *NetworkQuery
- func (nq *NetworkQuery) QueryPaymentWebhook() *PaymentWebhookQuery
- func (nq *NetworkQuery) QueryTokens() *TokenQuery
- func (nq *NetworkQuery) Select(fields ...string) *NetworkSelect
- func (nq *NetworkQuery) Unique(unique bool) *NetworkQuery
- func (nq *NetworkQuery) Where(ps ...predicate.Network) *NetworkQuery
- func (nq *NetworkQuery) WithPaymentWebhook(opts ...func(*PaymentWebhookQuery)) *NetworkQuery
- func (nq *NetworkQuery) WithTokens(opts ...func(*TokenQuery)) *NetworkQuery
- type NetworkSelect
- func (ns *NetworkSelect) Aggregate(fns ...AggregateFunc) *NetworkSelect
- func (s *NetworkSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *NetworkSelect) BoolX(ctx context.Context) bool
- func (s *NetworkSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *NetworkSelect) BoolsX(ctx context.Context) []bool
- func (s *NetworkSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *NetworkSelect) Float64X(ctx context.Context) float64
- func (s *NetworkSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *NetworkSelect) Float64sX(ctx context.Context) []float64
- func (s *NetworkSelect) Int(ctx context.Context) (_ int, err error)
- func (s *NetworkSelect) IntX(ctx context.Context) int
- func (s *NetworkSelect) Ints(ctx context.Context) ([]int, error)
- func (s *NetworkSelect) IntsX(ctx context.Context) []int
- func (ns *NetworkSelect) Scan(ctx context.Context, v any) error
- func (s *NetworkSelect) ScanX(ctx context.Context, v any)
- func (s *NetworkSelect) String(ctx context.Context) (_ string, err error)
- func (s *NetworkSelect) StringX(ctx context.Context) string
- func (s *NetworkSelect) Strings(ctx context.Context) ([]string, error)
- func (s *NetworkSelect) StringsX(ctx context.Context) []string
- type NetworkUpdate
- func (nu *NetworkUpdate) AddBlockTime(d decimal.Decimal) *NetworkUpdate
- func (nu *NetworkUpdate) AddChainID(i int64) *NetworkUpdate
- func (nu *NetworkUpdate) AddFee(d decimal.Decimal) *NetworkUpdate
- func (nu *NetworkUpdate) AddTokenIDs(ids ...int) *NetworkUpdate
- func (nu *NetworkUpdate) AddTokens(t ...*Token) *NetworkUpdate
- func (nu *NetworkUpdate) ClearBundlerURL() *NetworkUpdate
- func (nu *NetworkUpdate) ClearPaymasterURL() *NetworkUpdate
- func (nu *NetworkUpdate) ClearPaymentWebhook() *NetworkUpdate
- func (nu *NetworkUpdate) ClearTokens() *NetworkUpdate
- func (nu *NetworkUpdate) Exec(ctx context.Context) error
- func (nu *NetworkUpdate) ExecX(ctx context.Context)
- func (nu *NetworkUpdate) Mutation() *NetworkMutation
- func (nu *NetworkUpdate) RemoveTokenIDs(ids ...int) *NetworkUpdate
- func (nu *NetworkUpdate) RemoveTokens(t ...*Token) *NetworkUpdate
- func (nu *NetworkUpdate) Save(ctx context.Context) (int, error)
- func (nu *NetworkUpdate) SaveX(ctx context.Context) int
- func (nu *NetworkUpdate) SetBlockTime(d decimal.Decimal) *NetworkUpdate
- func (nu *NetworkUpdate) SetBundlerURL(s string) *NetworkUpdate
- func (nu *NetworkUpdate) SetChainID(i int64) *NetworkUpdate
- func (nu *NetworkUpdate) SetFee(d decimal.Decimal) *NetworkUpdate
- func (nu *NetworkUpdate) SetGatewayContractAddress(s string) *NetworkUpdate
- func (nu *NetworkUpdate) SetIdentifier(s string) *NetworkUpdate
- func (nu *NetworkUpdate) SetIsTestnet(b bool) *NetworkUpdate
- func (nu *NetworkUpdate) SetNillableBlockTime(d *decimal.Decimal) *NetworkUpdate
- func (nu *NetworkUpdate) SetNillableBundlerURL(s *string) *NetworkUpdate
- func (nu *NetworkUpdate) SetNillableChainID(i *int64) *NetworkUpdate
- func (nu *NetworkUpdate) SetNillableFee(d *decimal.Decimal) *NetworkUpdate
- func (nu *NetworkUpdate) SetNillableGatewayContractAddress(s *string) *NetworkUpdate
- func (nu *NetworkUpdate) SetNillableIdentifier(s *string) *NetworkUpdate
- func (nu *NetworkUpdate) SetNillableIsTestnet(b *bool) *NetworkUpdate
- func (nu *NetworkUpdate) SetNillablePaymasterURL(s *string) *NetworkUpdate
- func (nu *NetworkUpdate) SetNillablePaymentWebhookID(id *uuid.UUID) *NetworkUpdate
- func (nu *NetworkUpdate) SetNillableRPCEndpoint(s *string) *NetworkUpdate
- func (nu *NetworkUpdate) SetPaymasterURL(s string) *NetworkUpdate
- func (nu *NetworkUpdate) SetPaymentWebhook(p *PaymentWebhook) *NetworkUpdate
- func (nu *NetworkUpdate) SetPaymentWebhookID(id uuid.UUID) *NetworkUpdate
- func (nu *NetworkUpdate) SetRPCEndpoint(s string) *NetworkUpdate
- func (nu *NetworkUpdate) SetUpdatedAt(t time.Time) *NetworkUpdate
- func (nu *NetworkUpdate) Where(ps ...predicate.Network) *NetworkUpdate
- type NetworkUpdateOne
- func (nuo *NetworkUpdateOne) AddBlockTime(d decimal.Decimal) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) AddChainID(i int64) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) AddFee(d decimal.Decimal) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) AddTokenIDs(ids ...int) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) AddTokens(t ...*Token) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) ClearBundlerURL() *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) ClearPaymasterURL() *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) ClearPaymentWebhook() *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) ClearTokens() *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) Exec(ctx context.Context) error
- func (nuo *NetworkUpdateOne) ExecX(ctx context.Context)
- func (nuo *NetworkUpdateOne) Mutation() *NetworkMutation
- func (nuo *NetworkUpdateOne) RemoveTokenIDs(ids ...int) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) RemoveTokens(t ...*Token) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) Save(ctx context.Context) (*Network, error)
- func (nuo *NetworkUpdateOne) SaveX(ctx context.Context) *Network
- func (nuo *NetworkUpdateOne) Select(field string, fields ...string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetBlockTime(d decimal.Decimal) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetBundlerURL(s string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetChainID(i int64) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetFee(d decimal.Decimal) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetGatewayContractAddress(s string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetIdentifier(s string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetIsTestnet(b bool) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetNillableBlockTime(d *decimal.Decimal) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetNillableBundlerURL(s *string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetNillableChainID(i *int64) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetNillableFee(d *decimal.Decimal) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetNillableGatewayContractAddress(s *string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetNillableIdentifier(s *string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetNillableIsTestnet(b *bool) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetNillablePaymasterURL(s *string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetNillablePaymentWebhookID(id *uuid.UUID) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetNillableRPCEndpoint(s *string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetPaymasterURL(s string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetPaymentWebhook(p *PaymentWebhook) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetPaymentWebhookID(id uuid.UUID) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetRPCEndpoint(s string) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) SetUpdatedAt(t time.Time) *NetworkUpdateOne
- func (nuo *NetworkUpdateOne) Where(ps ...predicate.Network) *NetworkUpdateOne
- type NetworkUpsert
- func (u *NetworkUpsert) AddBlockTime(v decimal.Decimal) *NetworkUpsert
- func (u *NetworkUpsert) AddChainID(v int64) *NetworkUpsert
- func (u *NetworkUpsert) AddFee(v decimal.Decimal) *NetworkUpsert
- func (u *NetworkUpsert) ClearBundlerURL() *NetworkUpsert
- func (u *NetworkUpsert) ClearPaymasterURL() *NetworkUpsert
- func (u *NetworkUpsert) SetBlockTime(v decimal.Decimal) *NetworkUpsert
- func (u *NetworkUpsert) SetBundlerURL(v string) *NetworkUpsert
- func (u *NetworkUpsert) SetChainID(v int64) *NetworkUpsert
- func (u *NetworkUpsert) SetFee(v decimal.Decimal) *NetworkUpsert
- func (u *NetworkUpsert) SetGatewayContractAddress(v string) *NetworkUpsert
- func (u *NetworkUpsert) SetIdentifier(v string) *NetworkUpsert
- func (u *NetworkUpsert) SetIsTestnet(v bool) *NetworkUpsert
- func (u *NetworkUpsert) SetPaymasterURL(v string) *NetworkUpsert
- func (u *NetworkUpsert) SetRPCEndpoint(v string) *NetworkUpsert
- func (u *NetworkUpsert) SetUpdatedAt(v time.Time) *NetworkUpsert
- func (u *NetworkUpsert) UpdateBlockTime() *NetworkUpsert
- func (u *NetworkUpsert) UpdateBundlerURL() *NetworkUpsert
- func (u *NetworkUpsert) UpdateChainID() *NetworkUpsert
- func (u *NetworkUpsert) UpdateFee() *NetworkUpsert
- func (u *NetworkUpsert) UpdateGatewayContractAddress() *NetworkUpsert
- func (u *NetworkUpsert) UpdateIdentifier() *NetworkUpsert
- func (u *NetworkUpsert) UpdateIsTestnet() *NetworkUpsert
- func (u *NetworkUpsert) UpdatePaymasterURL() *NetworkUpsert
- func (u *NetworkUpsert) UpdateRPCEndpoint() *NetworkUpsert
- func (u *NetworkUpsert) UpdateUpdatedAt() *NetworkUpsert
- type NetworkUpsertBulk
- func (u *NetworkUpsertBulk) AddBlockTime(v decimal.Decimal) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) AddChainID(v int64) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) AddFee(v decimal.Decimal) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) ClearBundlerURL() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) ClearPaymasterURL() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) DoNothing() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) Exec(ctx context.Context) error
- func (u *NetworkUpsertBulk) ExecX(ctx context.Context)
- func (u *NetworkUpsertBulk) Ignore() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) SetBlockTime(v decimal.Decimal) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) SetBundlerURL(v string) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) SetChainID(v int64) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) SetFee(v decimal.Decimal) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) SetGatewayContractAddress(v string) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) SetIdentifier(v string) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) SetIsTestnet(v bool) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) SetPaymasterURL(v string) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) SetRPCEndpoint(v string) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) SetUpdatedAt(v time.Time) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) Update(set func(*NetworkUpsert)) *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) UpdateBlockTime() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) UpdateBundlerURL() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) UpdateChainID() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) UpdateFee() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) UpdateGatewayContractAddress() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) UpdateIdentifier() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) UpdateIsTestnet() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) UpdateNewValues() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) UpdatePaymasterURL() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) UpdateRPCEndpoint() *NetworkUpsertBulk
- func (u *NetworkUpsertBulk) UpdateUpdatedAt() *NetworkUpsertBulk
- type NetworkUpsertOne
- func (u *NetworkUpsertOne) AddBlockTime(v decimal.Decimal) *NetworkUpsertOne
- func (u *NetworkUpsertOne) AddChainID(v int64) *NetworkUpsertOne
- func (u *NetworkUpsertOne) AddFee(v decimal.Decimal) *NetworkUpsertOne
- func (u *NetworkUpsertOne) ClearBundlerURL() *NetworkUpsertOne
- func (u *NetworkUpsertOne) ClearPaymasterURL() *NetworkUpsertOne
- func (u *NetworkUpsertOne) DoNothing() *NetworkUpsertOne
- func (u *NetworkUpsertOne) Exec(ctx context.Context) error
- func (u *NetworkUpsertOne) ExecX(ctx context.Context)
- func (u *NetworkUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *NetworkUpsertOne) IDX(ctx context.Context) int
- func (u *NetworkUpsertOne) Ignore() *NetworkUpsertOne
- func (u *NetworkUpsertOne) SetBlockTime(v decimal.Decimal) *NetworkUpsertOne
- func (u *NetworkUpsertOne) SetBundlerURL(v string) *NetworkUpsertOne
- func (u *NetworkUpsertOne) SetChainID(v int64) *NetworkUpsertOne
- func (u *NetworkUpsertOne) SetFee(v decimal.Decimal) *NetworkUpsertOne
- func (u *NetworkUpsertOne) SetGatewayContractAddress(v string) *NetworkUpsertOne
- func (u *NetworkUpsertOne) SetIdentifier(v string) *NetworkUpsertOne
- func (u *NetworkUpsertOne) SetIsTestnet(v bool) *NetworkUpsertOne
- func (u *NetworkUpsertOne) SetPaymasterURL(v string) *NetworkUpsertOne
- func (u *NetworkUpsertOne) SetRPCEndpoint(v string) *NetworkUpsertOne
- func (u *NetworkUpsertOne) SetUpdatedAt(v time.Time) *NetworkUpsertOne
- func (u *NetworkUpsertOne) Update(set func(*NetworkUpsert)) *NetworkUpsertOne
- func (u *NetworkUpsertOne) UpdateBlockTime() *NetworkUpsertOne
- func (u *NetworkUpsertOne) UpdateBundlerURL() *NetworkUpsertOne
- func (u *NetworkUpsertOne) UpdateChainID() *NetworkUpsertOne
- func (u *NetworkUpsertOne) UpdateFee() *NetworkUpsertOne
- func (u *NetworkUpsertOne) UpdateGatewayContractAddress() *NetworkUpsertOne
- func (u *NetworkUpsertOne) UpdateIdentifier() *NetworkUpsertOne
- func (u *NetworkUpsertOne) UpdateIsTestnet() *NetworkUpsertOne
- func (u *NetworkUpsertOne) UpdateNewValues() *NetworkUpsertOne
- func (u *NetworkUpsertOne) UpdatePaymasterURL() *NetworkUpsertOne
- func (u *NetworkUpsertOne) UpdateRPCEndpoint() *NetworkUpsertOne
- func (u *NetworkUpsertOne) UpdateUpdatedAt() *NetworkUpsertOne
- type Networks
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type PaymentOrder
- func (po *PaymentOrder) QueryLinkedAddress() *LinkedAddressQuery
- func (po *PaymentOrder) QueryPaymentWebhook() *PaymentWebhookQuery
- func (po *PaymentOrder) QueryReceiveAddress() *ReceiveAddressQuery
- func (po *PaymentOrder) QueryRecipient() *PaymentOrderRecipientQuery
- func (po *PaymentOrder) QuerySenderProfile() *SenderProfileQuery
- func (po *PaymentOrder) QueryToken() *TokenQuery
- func (po *PaymentOrder) QueryTransactions() *TransactionLogQuery
- func (po *PaymentOrder) String() string
- func (po *PaymentOrder) Unwrap() *PaymentOrder
- func (po *PaymentOrder) Update() *PaymentOrderUpdateOne
- func (po *PaymentOrder) Value(name string) (ent.Value, error)
- type PaymentOrderClient
- func (c *PaymentOrderClient) Create() *PaymentOrderCreate
- func (c *PaymentOrderClient) CreateBulk(builders ...*PaymentOrderCreate) *PaymentOrderCreateBulk
- func (c *PaymentOrderClient) Delete() *PaymentOrderDelete
- func (c *PaymentOrderClient) DeleteOne(po *PaymentOrder) *PaymentOrderDeleteOne
- func (c *PaymentOrderClient) DeleteOneID(id uuid.UUID) *PaymentOrderDeleteOne
- func (c *PaymentOrderClient) Get(ctx context.Context, id uuid.UUID) (*PaymentOrder, error)
- func (c *PaymentOrderClient) GetX(ctx context.Context, id uuid.UUID) *PaymentOrder
- func (c *PaymentOrderClient) Hooks() []Hook
- func (c *PaymentOrderClient) Intercept(interceptors ...Interceptor)
- func (c *PaymentOrderClient) Interceptors() []Interceptor
- func (c *PaymentOrderClient) MapCreateBulk(slice any, setFunc func(*PaymentOrderCreate, int)) *PaymentOrderCreateBulk
- func (c *PaymentOrderClient) Query() *PaymentOrderQuery
- func (c *PaymentOrderClient) QueryLinkedAddress(po *PaymentOrder) *LinkedAddressQuery
- func (c *PaymentOrderClient) QueryPaymentWebhook(po *PaymentOrder) *PaymentWebhookQuery
- func (c *PaymentOrderClient) QueryReceiveAddress(po *PaymentOrder) *ReceiveAddressQuery
- func (c *PaymentOrderClient) QueryRecipient(po *PaymentOrder) *PaymentOrderRecipientQuery
- func (c *PaymentOrderClient) QuerySenderProfile(po *PaymentOrder) *SenderProfileQuery
- func (c *PaymentOrderClient) QueryToken(po *PaymentOrder) *TokenQuery
- func (c *PaymentOrderClient) QueryTransactions(po *PaymentOrder) *TransactionLogQuery
- func (c *PaymentOrderClient) Update() *PaymentOrderUpdate
- func (c *PaymentOrderClient) UpdateOne(po *PaymentOrder) *PaymentOrderUpdateOne
- func (c *PaymentOrderClient) UpdateOneID(id uuid.UUID) *PaymentOrderUpdateOne
- func (c *PaymentOrderClient) Use(hooks ...Hook)
- type PaymentOrderCreate
- func (poc *PaymentOrderCreate) AddTransactionIDs(ids ...uuid.UUID) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) AddTransactions(t ...*TransactionLog) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) Exec(ctx context.Context) error
- func (poc *PaymentOrderCreate) ExecX(ctx context.Context)
- func (poc *PaymentOrderCreate) Mutation() *PaymentOrderMutation
- func (poc *PaymentOrderCreate) OnConflict(opts ...sql.ConflictOption) *PaymentOrderUpsertOne
- func (poc *PaymentOrderCreate) OnConflictColumns(columns ...string) *PaymentOrderUpsertOne
- func (poc *PaymentOrderCreate) Save(ctx context.Context) (*PaymentOrder, error)
- func (poc *PaymentOrderCreate) SaveX(ctx context.Context) *PaymentOrder
- func (poc *PaymentOrderCreate) SetAmount(d decimal.Decimal) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetAmountPaid(d decimal.Decimal) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetAmountReturned(d decimal.Decimal) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetBlockNumber(i int64) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetCreatedAt(t time.Time) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetFeeAddress(s string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetFeePercent(d decimal.Decimal) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetFromAddress(s string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetGatewayID(s string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetID(u uuid.UUID) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetLinkedAddress(l *LinkedAddress) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetLinkedAddressID(id int) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetMessageHash(s string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNetworkFee(d decimal.Decimal) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableBlockNumber(i *int64) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableCreatedAt(t *time.Time) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableFeeAddress(s *string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableFromAddress(s *string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableGatewayID(s *string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableID(u *uuid.UUID) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableLinkedAddressID(id *int) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableMessageHash(s *string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillablePaymentWebhookID(id *uuid.UUID) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableReceiveAddressID(id *int) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableRecipientID(id *int) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableReference(s *string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableReturnAddress(s *string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableSenderProfileID(id *uuid.UUID) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableStatus(pa *paymentorder.Status) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableTxHash(s *string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetNillableUpdatedAt(t *time.Time) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetPaymentWebhook(p *PaymentWebhook) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetPaymentWebhookID(id uuid.UUID) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetPercentSettled(d decimal.Decimal) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetRate(d decimal.Decimal) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetReceiveAddress(r *ReceiveAddress) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetReceiveAddressID(id int) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetReceiveAddressText(s string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetRecipient(p *PaymentOrderRecipient) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetRecipientID(id int) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetReference(s string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetReturnAddress(s string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetSenderFee(d decimal.Decimal) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetSenderProfile(s *SenderProfile) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetSenderProfileID(id uuid.UUID) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetStatus(pa paymentorder.Status) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetToken(t *Token) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetTokenID(id int) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetTxHash(s string) *PaymentOrderCreate
- func (poc *PaymentOrderCreate) SetUpdatedAt(t time.Time) *PaymentOrderCreate
- type PaymentOrderCreateBulk
- func (pocb *PaymentOrderCreateBulk) Exec(ctx context.Context) error
- func (pocb *PaymentOrderCreateBulk) ExecX(ctx context.Context)
- func (pocb *PaymentOrderCreateBulk) OnConflict(opts ...sql.ConflictOption) *PaymentOrderUpsertBulk
- func (pocb *PaymentOrderCreateBulk) OnConflictColumns(columns ...string) *PaymentOrderUpsertBulk
- func (pocb *PaymentOrderCreateBulk) Save(ctx context.Context) ([]*PaymentOrder, error)
- func (pocb *PaymentOrderCreateBulk) SaveX(ctx context.Context) []*PaymentOrder
- type PaymentOrderDelete
- type PaymentOrderDeleteOne
- type PaymentOrderEdges
- func (e PaymentOrderEdges) LinkedAddressOrErr() (*LinkedAddress, error)
- func (e PaymentOrderEdges) PaymentWebhookOrErr() (*PaymentWebhook, error)
- func (e PaymentOrderEdges) ReceiveAddressOrErr() (*ReceiveAddress, error)
- func (e PaymentOrderEdges) RecipientOrErr() (*PaymentOrderRecipient, error)
- func (e PaymentOrderEdges) SenderProfileOrErr() (*SenderProfile, error)
- func (e PaymentOrderEdges) TokenOrErr() (*Token, error)
- func (e PaymentOrderEdges) TransactionsOrErr() ([]*TransactionLog, error)
- type PaymentOrderGroupBy
- func (pogb *PaymentOrderGroupBy) Aggregate(fns ...AggregateFunc) *PaymentOrderGroupBy
- func (s *PaymentOrderGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *PaymentOrderGroupBy) BoolX(ctx context.Context) bool
- func (s *PaymentOrderGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *PaymentOrderGroupBy) BoolsX(ctx context.Context) []bool
- func (s *PaymentOrderGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *PaymentOrderGroupBy) Float64X(ctx context.Context) float64
- func (s *PaymentOrderGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *PaymentOrderGroupBy) Float64sX(ctx context.Context) []float64
- func (s *PaymentOrderGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *PaymentOrderGroupBy) IntX(ctx context.Context) int
- func (s *PaymentOrderGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *PaymentOrderGroupBy) IntsX(ctx context.Context) []int
- func (pogb *PaymentOrderGroupBy) Scan(ctx context.Context, v any) error
- func (s *PaymentOrderGroupBy) ScanX(ctx context.Context, v any)
- func (s *PaymentOrderGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *PaymentOrderGroupBy) StringX(ctx context.Context) string
- func (s *PaymentOrderGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *PaymentOrderGroupBy) StringsX(ctx context.Context) []string
- type PaymentOrderMutation
- func (m *PaymentOrderMutation) AddAmount(d decimal.Decimal)
- func (m *PaymentOrderMutation) AddAmountPaid(d decimal.Decimal)
- func (m *PaymentOrderMutation) AddAmountReturned(d decimal.Decimal)
- func (m *PaymentOrderMutation) AddBlockNumber(i int64)
- func (m *PaymentOrderMutation) AddFeePercent(d decimal.Decimal)
- func (m *PaymentOrderMutation) AddField(name string, value ent.Value) error
- func (m *PaymentOrderMutation) AddNetworkFee(d decimal.Decimal)
- func (m *PaymentOrderMutation) AddPercentSettled(d decimal.Decimal)
- func (m *PaymentOrderMutation) AddRate(d decimal.Decimal)
- func (m *PaymentOrderMutation) AddSenderFee(d decimal.Decimal)
- func (m *PaymentOrderMutation) AddTransactionIDs(ids ...uuid.UUID)
- func (m *PaymentOrderMutation) AddedAmount() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) AddedAmountPaid() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) AddedAmountReturned() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) AddedBlockNumber() (r int64, exists bool)
- func (m *PaymentOrderMutation) AddedEdges() []string
- func (m *PaymentOrderMutation) AddedFeePercent() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) AddedField(name string) (ent.Value, bool)
- func (m *PaymentOrderMutation) AddedFields() []string
- func (m *PaymentOrderMutation) AddedIDs(name string) []ent.Value
- func (m *PaymentOrderMutation) AddedNetworkFee() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) AddedPercentSettled() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) AddedRate() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) AddedSenderFee() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) Amount() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) AmountPaid() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) AmountReturned() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) BlockNumber() (r int64, exists bool)
- func (m *PaymentOrderMutation) ClearEdge(name string) error
- func (m *PaymentOrderMutation) ClearFeeAddress()
- func (m *PaymentOrderMutation) ClearField(name string) error
- func (m *PaymentOrderMutation) ClearFromAddress()
- func (m *PaymentOrderMutation) ClearGatewayID()
- func (m *PaymentOrderMutation) ClearLinkedAddress()
- func (m *PaymentOrderMutation) ClearMessageHash()
- func (m *PaymentOrderMutation) ClearPaymentWebhook()
- func (m *PaymentOrderMutation) ClearReceiveAddress()
- func (m *PaymentOrderMutation) ClearRecipient()
- func (m *PaymentOrderMutation) ClearReference()
- func (m *PaymentOrderMutation) ClearReturnAddress()
- func (m *PaymentOrderMutation) ClearSenderProfile()
- func (m *PaymentOrderMutation) ClearToken()
- func (m *PaymentOrderMutation) ClearTransactions()
- func (m *PaymentOrderMutation) ClearTxHash()
- func (m *PaymentOrderMutation) ClearedEdges() []string
- func (m *PaymentOrderMutation) ClearedFields() []string
- func (m PaymentOrderMutation) Client() *Client
- func (m *PaymentOrderMutation) CreatedAt() (r time.Time, exists bool)
- func (m *PaymentOrderMutation) EdgeCleared(name string) bool
- func (m *PaymentOrderMutation) FeeAddress() (r string, exists bool)
- func (m *PaymentOrderMutation) FeeAddressCleared() bool
- func (m *PaymentOrderMutation) FeePercent() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) Field(name string) (ent.Value, bool)
- func (m *PaymentOrderMutation) FieldCleared(name string) bool
- func (m *PaymentOrderMutation) Fields() []string
- func (m *PaymentOrderMutation) FromAddress() (r string, exists bool)
- func (m *PaymentOrderMutation) FromAddressCleared() bool
- func (m *PaymentOrderMutation) GatewayID() (r string, exists bool)
- func (m *PaymentOrderMutation) GatewayIDCleared() bool
- func (m *PaymentOrderMutation) ID() (id uuid.UUID, exists bool)
- func (m *PaymentOrderMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *PaymentOrderMutation) LinkedAddressCleared() bool
- func (m *PaymentOrderMutation) LinkedAddressID() (id int, exists bool)
- func (m *PaymentOrderMutation) LinkedAddressIDs() (ids []int)
- func (m *PaymentOrderMutation) MessageHash() (r string, exists bool)
- func (m *PaymentOrderMutation) MessageHashCleared() bool
- func (m *PaymentOrderMutation) NetworkFee() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) OldAmount(ctx context.Context) (v decimal.Decimal, err error)
- func (m *PaymentOrderMutation) OldAmountPaid(ctx context.Context) (v decimal.Decimal, err error)
- func (m *PaymentOrderMutation) OldAmountReturned(ctx context.Context) (v decimal.Decimal, err error)
- func (m *PaymentOrderMutation) OldBlockNumber(ctx context.Context) (v int64, err error)
- func (m *PaymentOrderMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *PaymentOrderMutation) OldFeeAddress(ctx context.Context) (v string, err error)
- func (m *PaymentOrderMutation) OldFeePercent(ctx context.Context) (v decimal.Decimal, err error)
- func (m *PaymentOrderMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *PaymentOrderMutation) OldFromAddress(ctx context.Context) (v string, err error)
- func (m *PaymentOrderMutation) OldGatewayID(ctx context.Context) (v string, err error)
- func (m *PaymentOrderMutation) OldMessageHash(ctx context.Context) (v string, err error)
- func (m *PaymentOrderMutation) OldNetworkFee(ctx context.Context) (v decimal.Decimal, err error)
- func (m *PaymentOrderMutation) OldPercentSettled(ctx context.Context) (v decimal.Decimal, err error)
- func (m *PaymentOrderMutation) OldRate(ctx context.Context) (v decimal.Decimal, err error)
- func (m *PaymentOrderMutation) OldReceiveAddressText(ctx context.Context) (v string, err error)
- func (m *PaymentOrderMutation) OldReference(ctx context.Context) (v string, err error)
- func (m *PaymentOrderMutation) OldReturnAddress(ctx context.Context) (v string, err error)
- func (m *PaymentOrderMutation) OldSenderFee(ctx context.Context) (v decimal.Decimal, err error)
- func (m *PaymentOrderMutation) OldStatus(ctx context.Context) (v paymentorder.Status, err error)
- func (m *PaymentOrderMutation) OldTxHash(ctx context.Context) (v string, err error)
- func (m *PaymentOrderMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *PaymentOrderMutation) Op() Op
- func (m *PaymentOrderMutation) PaymentWebhookCleared() bool
- func (m *PaymentOrderMutation) PaymentWebhookID() (id uuid.UUID, exists bool)
- func (m *PaymentOrderMutation) PaymentWebhookIDs() (ids []uuid.UUID)
- func (m *PaymentOrderMutation) PercentSettled() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) Rate() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) ReceiveAddressCleared() bool
- func (m *PaymentOrderMutation) ReceiveAddressID() (id int, exists bool)
- func (m *PaymentOrderMutation) ReceiveAddressIDs() (ids []int)
- func (m *PaymentOrderMutation) ReceiveAddressText() (r string, exists bool)
- func (m *PaymentOrderMutation) RecipientCleared() bool
- func (m *PaymentOrderMutation) RecipientID() (id int, exists bool)
- func (m *PaymentOrderMutation) RecipientIDs() (ids []int)
- func (m *PaymentOrderMutation) Reference() (r string, exists bool)
- func (m *PaymentOrderMutation) ReferenceCleared() bool
- func (m *PaymentOrderMutation) RemoveTransactionIDs(ids ...uuid.UUID)
- func (m *PaymentOrderMutation) RemovedEdges() []string
- func (m *PaymentOrderMutation) RemovedIDs(name string) []ent.Value
- func (m *PaymentOrderMutation) RemovedTransactionsIDs() (ids []uuid.UUID)
- func (m *PaymentOrderMutation) ResetAmount()
- func (m *PaymentOrderMutation) ResetAmountPaid()
- func (m *PaymentOrderMutation) ResetAmountReturned()
- func (m *PaymentOrderMutation) ResetBlockNumber()
- func (m *PaymentOrderMutation) ResetCreatedAt()
- func (m *PaymentOrderMutation) ResetEdge(name string) error
- func (m *PaymentOrderMutation) ResetFeeAddress()
- func (m *PaymentOrderMutation) ResetFeePercent()
- func (m *PaymentOrderMutation) ResetField(name string) error
- func (m *PaymentOrderMutation) ResetFromAddress()
- func (m *PaymentOrderMutation) ResetGatewayID()
- func (m *PaymentOrderMutation) ResetLinkedAddress()
- func (m *PaymentOrderMutation) ResetMessageHash()
- func (m *PaymentOrderMutation) ResetNetworkFee()
- func (m *PaymentOrderMutation) ResetPaymentWebhook()
- func (m *PaymentOrderMutation) ResetPercentSettled()
- func (m *PaymentOrderMutation) ResetRate()
- func (m *PaymentOrderMutation) ResetReceiveAddress()
- func (m *PaymentOrderMutation) ResetReceiveAddressText()
- func (m *PaymentOrderMutation) ResetRecipient()
- func (m *PaymentOrderMutation) ResetReference()
- func (m *PaymentOrderMutation) ResetReturnAddress()
- func (m *PaymentOrderMutation) ResetSenderFee()
- func (m *PaymentOrderMutation) ResetSenderProfile()
- func (m *PaymentOrderMutation) ResetStatus()
- func (m *PaymentOrderMutation) ResetToken()
- func (m *PaymentOrderMutation) ResetTransactions()
- func (m *PaymentOrderMutation) ResetTxHash()
- func (m *PaymentOrderMutation) ResetUpdatedAt()
- func (m *PaymentOrderMutation) ReturnAddress() (r string, exists bool)
- func (m *PaymentOrderMutation) ReturnAddressCleared() bool
- func (m *PaymentOrderMutation) SenderFee() (r decimal.Decimal, exists bool)
- func (m *PaymentOrderMutation) SenderProfileCleared() bool
- func (m *PaymentOrderMutation) SenderProfileID() (id uuid.UUID, exists bool)
- func (m *PaymentOrderMutation) SenderProfileIDs() (ids []uuid.UUID)
- func (m *PaymentOrderMutation) SetAmount(d decimal.Decimal)
- func (m *PaymentOrderMutation) SetAmountPaid(d decimal.Decimal)
- func (m *PaymentOrderMutation) SetAmountReturned(d decimal.Decimal)
- func (m *PaymentOrderMutation) SetBlockNumber(i int64)
- func (m *PaymentOrderMutation) SetCreatedAt(t time.Time)
- func (m *PaymentOrderMutation) SetFeeAddress(s string)
- func (m *PaymentOrderMutation) SetFeePercent(d decimal.Decimal)
- func (m *PaymentOrderMutation) SetField(name string, value ent.Value) error
- func (m *PaymentOrderMutation) SetFromAddress(s string)
- func (m *PaymentOrderMutation) SetGatewayID(s string)
- func (m *PaymentOrderMutation) SetID(id uuid.UUID)
- func (m *PaymentOrderMutation) SetLinkedAddressID(id int)
- func (m *PaymentOrderMutation) SetMessageHash(s string)
- func (m *PaymentOrderMutation) SetNetworkFee(d decimal.Decimal)
- func (m *PaymentOrderMutation) SetOp(op Op)
- func (m *PaymentOrderMutation) SetPaymentWebhookID(id uuid.UUID)
- func (m *PaymentOrderMutation) SetPercentSettled(d decimal.Decimal)
- func (m *PaymentOrderMutation) SetRate(d decimal.Decimal)
- func (m *PaymentOrderMutation) SetReceiveAddressID(id int)
- func (m *PaymentOrderMutation) SetReceiveAddressText(s string)
- func (m *PaymentOrderMutation) SetRecipientID(id int)
- func (m *PaymentOrderMutation) SetReference(s string)
- func (m *PaymentOrderMutation) SetReturnAddress(s string)
- func (m *PaymentOrderMutation) SetSenderFee(d decimal.Decimal)
- func (m *PaymentOrderMutation) SetSenderProfileID(id uuid.UUID)
- func (m *PaymentOrderMutation) SetStatus(pa paymentorder.Status)
- func (m *PaymentOrderMutation) SetTokenID(id int)
- func (m *PaymentOrderMutation) SetTxHash(s string)
- func (m *PaymentOrderMutation) SetUpdatedAt(t time.Time)
- func (m *PaymentOrderMutation) Status() (r paymentorder.Status, exists bool)
- func (m *PaymentOrderMutation) TokenCleared() bool
- func (m *PaymentOrderMutation) TokenID() (id int, exists bool)
- func (m *PaymentOrderMutation) TokenIDs() (ids []int)
- func (m *PaymentOrderMutation) TransactionsCleared() bool
- func (m *PaymentOrderMutation) TransactionsIDs() (ids []uuid.UUID)
- func (m PaymentOrderMutation) Tx() (*Tx, error)
- func (m *PaymentOrderMutation) TxHash() (r string, exists bool)
- func (m *PaymentOrderMutation) TxHashCleared() bool
- func (m *PaymentOrderMutation) Type() string
- func (m *PaymentOrderMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *PaymentOrderMutation) Where(ps ...predicate.PaymentOrder)
- func (m *PaymentOrderMutation) WhereP(ps ...func(*sql.Selector))
- type PaymentOrderQuery
- func (poq *PaymentOrderQuery) Aggregate(fns ...AggregateFunc) *PaymentOrderSelect
- func (poq *PaymentOrderQuery) All(ctx context.Context) ([]*PaymentOrder, error)
- func (poq *PaymentOrderQuery) AllX(ctx context.Context) []*PaymentOrder
- func (poq *PaymentOrderQuery) Clone() *PaymentOrderQuery
- func (poq *PaymentOrderQuery) Count(ctx context.Context) (int, error)
- func (poq *PaymentOrderQuery) CountX(ctx context.Context) int
- func (poq *PaymentOrderQuery) Exist(ctx context.Context) (bool, error)
- func (poq *PaymentOrderQuery) ExistX(ctx context.Context) bool
- func (poq *PaymentOrderQuery) First(ctx context.Context) (*PaymentOrder, error)
- func (poq *PaymentOrderQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (poq *PaymentOrderQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (poq *PaymentOrderQuery) FirstX(ctx context.Context) *PaymentOrder
- func (poq *PaymentOrderQuery) GroupBy(field string, fields ...string) *PaymentOrderGroupBy
- func (poq *PaymentOrderQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (poq *PaymentOrderQuery) IDsX(ctx context.Context) []uuid.UUID
- func (poq *PaymentOrderQuery) Limit(limit int) *PaymentOrderQuery
- func (poq *PaymentOrderQuery) Offset(offset int) *PaymentOrderQuery
- func (poq *PaymentOrderQuery) Only(ctx context.Context) (*PaymentOrder, error)
- func (poq *PaymentOrderQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (poq *PaymentOrderQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (poq *PaymentOrderQuery) OnlyX(ctx context.Context) *PaymentOrder
- func (poq *PaymentOrderQuery) Order(o ...paymentorder.OrderOption) *PaymentOrderQuery
- func (poq *PaymentOrderQuery) QueryLinkedAddress() *LinkedAddressQuery
- func (poq *PaymentOrderQuery) QueryPaymentWebhook() *PaymentWebhookQuery
- func (poq *PaymentOrderQuery) QueryReceiveAddress() *ReceiveAddressQuery
- func (poq *PaymentOrderQuery) QueryRecipient() *PaymentOrderRecipientQuery
- func (poq *PaymentOrderQuery) QuerySenderProfile() *SenderProfileQuery
- func (poq *PaymentOrderQuery) QueryToken() *TokenQuery
- func (poq *PaymentOrderQuery) QueryTransactions() *TransactionLogQuery
- func (poq *PaymentOrderQuery) Select(fields ...string) *PaymentOrderSelect
- func (poq *PaymentOrderQuery) Unique(unique bool) *PaymentOrderQuery
- func (poq *PaymentOrderQuery) Where(ps ...predicate.PaymentOrder) *PaymentOrderQuery
- func (poq *PaymentOrderQuery) WithLinkedAddress(opts ...func(*LinkedAddressQuery)) *PaymentOrderQuery
- func (poq *PaymentOrderQuery) WithPaymentWebhook(opts ...func(*PaymentWebhookQuery)) *PaymentOrderQuery
- func (poq *PaymentOrderQuery) WithReceiveAddress(opts ...func(*ReceiveAddressQuery)) *PaymentOrderQuery
- func (poq *PaymentOrderQuery) WithRecipient(opts ...func(*PaymentOrderRecipientQuery)) *PaymentOrderQuery
- func (poq *PaymentOrderQuery) WithSenderProfile(opts ...func(*SenderProfileQuery)) *PaymentOrderQuery
- func (poq *PaymentOrderQuery) WithToken(opts ...func(*TokenQuery)) *PaymentOrderQuery
- func (poq *PaymentOrderQuery) WithTransactions(opts ...func(*TransactionLogQuery)) *PaymentOrderQuery
- type PaymentOrderRecipient
- func (por *PaymentOrderRecipient) QueryPaymentOrder() *PaymentOrderQuery
- func (por *PaymentOrderRecipient) String() string
- func (por *PaymentOrderRecipient) Unwrap() *PaymentOrderRecipient
- func (por *PaymentOrderRecipient) Update() *PaymentOrderRecipientUpdateOne
- func (por *PaymentOrderRecipient) Value(name string) (ent.Value, error)
- type PaymentOrderRecipientClient
- func (c *PaymentOrderRecipientClient) Create() *PaymentOrderRecipientCreate
- func (c *PaymentOrderRecipientClient) CreateBulk(builders ...*PaymentOrderRecipientCreate) *PaymentOrderRecipientCreateBulk
- func (c *PaymentOrderRecipientClient) Delete() *PaymentOrderRecipientDelete
- func (c *PaymentOrderRecipientClient) DeleteOne(por *PaymentOrderRecipient) *PaymentOrderRecipientDeleteOne
- func (c *PaymentOrderRecipientClient) DeleteOneID(id int) *PaymentOrderRecipientDeleteOne
- func (c *PaymentOrderRecipientClient) Get(ctx context.Context, id int) (*PaymentOrderRecipient, error)
- func (c *PaymentOrderRecipientClient) GetX(ctx context.Context, id int) *PaymentOrderRecipient
- func (c *PaymentOrderRecipientClient) Hooks() []Hook
- func (c *PaymentOrderRecipientClient) Intercept(interceptors ...Interceptor)
- func (c *PaymentOrderRecipientClient) Interceptors() []Interceptor
- func (c *PaymentOrderRecipientClient) MapCreateBulk(slice any, setFunc func(*PaymentOrderRecipientCreate, int)) *PaymentOrderRecipientCreateBulk
- func (c *PaymentOrderRecipientClient) Query() *PaymentOrderRecipientQuery
- func (c *PaymentOrderRecipientClient) QueryPaymentOrder(por *PaymentOrderRecipient) *PaymentOrderQuery
- func (c *PaymentOrderRecipientClient) Update() *PaymentOrderRecipientUpdate
- func (c *PaymentOrderRecipientClient) UpdateOne(por *PaymentOrderRecipient) *PaymentOrderRecipientUpdateOne
- func (c *PaymentOrderRecipientClient) UpdateOneID(id int) *PaymentOrderRecipientUpdateOne
- func (c *PaymentOrderRecipientClient) Use(hooks ...Hook)
- type PaymentOrderRecipientCreate
- func (porc *PaymentOrderRecipientCreate) Exec(ctx context.Context) error
- func (porc *PaymentOrderRecipientCreate) ExecX(ctx context.Context)
- func (porc *PaymentOrderRecipientCreate) Mutation() *PaymentOrderRecipientMutation
- func (porc *PaymentOrderRecipientCreate) OnConflict(opts ...sql.ConflictOption) *PaymentOrderRecipientUpsertOne
- func (porc *PaymentOrderRecipientCreate) OnConflictColumns(columns ...string) *PaymentOrderRecipientUpsertOne
- func (porc *PaymentOrderRecipientCreate) Save(ctx context.Context) (*PaymentOrderRecipient, error)
- func (porc *PaymentOrderRecipientCreate) SaveX(ctx context.Context) *PaymentOrderRecipient
- func (porc *PaymentOrderRecipientCreate) SetAccountIdentifier(s string) *PaymentOrderRecipientCreate
- func (porc *PaymentOrderRecipientCreate) SetAccountName(s string) *PaymentOrderRecipientCreate
- func (porc *PaymentOrderRecipientCreate) SetInstitution(s string) *PaymentOrderRecipientCreate
- func (porc *PaymentOrderRecipientCreate) SetMemo(s string) *PaymentOrderRecipientCreate
- func (porc *PaymentOrderRecipientCreate) SetMetadata(m map[string]interface{}) *PaymentOrderRecipientCreate
- func (porc *PaymentOrderRecipientCreate) SetNillableMemo(s *string) *PaymentOrderRecipientCreate
- func (porc *PaymentOrderRecipientCreate) SetNillableProviderID(s *string) *PaymentOrderRecipientCreate
- func (porc *PaymentOrderRecipientCreate) SetPaymentOrder(p *PaymentOrder) *PaymentOrderRecipientCreate
- func (porc *PaymentOrderRecipientCreate) SetPaymentOrderID(id uuid.UUID) *PaymentOrderRecipientCreate
- func (porc *PaymentOrderRecipientCreate) SetProviderID(s string) *PaymentOrderRecipientCreate
- type PaymentOrderRecipientCreateBulk
- func (porcb *PaymentOrderRecipientCreateBulk) Exec(ctx context.Context) error
- func (porcb *PaymentOrderRecipientCreateBulk) ExecX(ctx context.Context)
- func (porcb *PaymentOrderRecipientCreateBulk) OnConflict(opts ...sql.ConflictOption) *PaymentOrderRecipientUpsertBulk
- func (porcb *PaymentOrderRecipientCreateBulk) OnConflictColumns(columns ...string) *PaymentOrderRecipientUpsertBulk
- func (porcb *PaymentOrderRecipientCreateBulk) Save(ctx context.Context) ([]*PaymentOrderRecipient, error)
- func (porcb *PaymentOrderRecipientCreateBulk) SaveX(ctx context.Context) []*PaymentOrderRecipient
- type PaymentOrderRecipientDelete
- type PaymentOrderRecipientDeleteOne
- type PaymentOrderRecipientEdges
- type PaymentOrderRecipientGroupBy
- func (porgb *PaymentOrderRecipientGroupBy) Aggregate(fns ...AggregateFunc) *PaymentOrderRecipientGroupBy
- func (s *PaymentOrderRecipientGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *PaymentOrderRecipientGroupBy) BoolX(ctx context.Context) bool
- func (s *PaymentOrderRecipientGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *PaymentOrderRecipientGroupBy) BoolsX(ctx context.Context) []bool
- func (s *PaymentOrderRecipientGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *PaymentOrderRecipientGroupBy) Float64X(ctx context.Context) float64
- func (s *PaymentOrderRecipientGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *PaymentOrderRecipientGroupBy) Float64sX(ctx context.Context) []float64
- func (s *PaymentOrderRecipientGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *PaymentOrderRecipientGroupBy) IntX(ctx context.Context) int
- func (s *PaymentOrderRecipientGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *PaymentOrderRecipientGroupBy) IntsX(ctx context.Context) []int
- func (porgb *PaymentOrderRecipientGroupBy) Scan(ctx context.Context, v any) error
- func (s *PaymentOrderRecipientGroupBy) ScanX(ctx context.Context, v any)
- func (s *PaymentOrderRecipientGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *PaymentOrderRecipientGroupBy) StringX(ctx context.Context) string
- func (s *PaymentOrderRecipientGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *PaymentOrderRecipientGroupBy) StringsX(ctx context.Context) []string
- type PaymentOrderRecipientMutation
- func (m *PaymentOrderRecipientMutation) AccountIdentifier() (r string, exists bool)
- func (m *PaymentOrderRecipientMutation) AccountName() (r string, exists bool)
- func (m *PaymentOrderRecipientMutation) AddField(name string, value ent.Value) error
- func (m *PaymentOrderRecipientMutation) AddedEdges() []string
- func (m *PaymentOrderRecipientMutation) AddedField(name string) (ent.Value, bool)
- func (m *PaymentOrderRecipientMutation) AddedFields() []string
- func (m *PaymentOrderRecipientMutation) AddedIDs(name string) []ent.Value
- func (m *PaymentOrderRecipientMutation) ClearEdge(name string) error
- func (m *PaymentOrderRecipientMutation) ClearField(name string) error
- func (m *PaymentOrderRecipientMutation) ClearMemo()
- func (m *PaymentOrderRecipientMutation) ClearMetadata()
- func (m *PaymentOrderRecipientMutation) ClearPaymentOrder()
- func (m *PaymentOrderRecipientMutation) ClearProviderID()
- func (m *PaymentOrderRecipientMutation) ClearedEdges() []string
- func (m *PaymentOrderRecipientMutation) ClearedFields() []string
- func (m PaymentOrderRecipientMutation) Client() *Client
- func (m *PaymentOrderRecipientMutation) EdgeCleared(name string) bool
- func (m *PaymentOrderRecipientMutation) Field(name string) (ent.Value, bool)
- func (m *PaymentOrderRecipientMutation) FieldCleared(name string) bool
- func (m *PaymentOrderRecipientMutation) Fields() []string
- func (m *PaymentOrderRecipientMutation) ID() (id int, exists bool)
- func (m *PaymentOrderRecipientMutation) IDs(ctx context.Context) ([]int, error)
- func (m *PaymentOrderRecipientMutation) Institution() (r string, exists bool)
- func (m *PaymentOrderRecipientMutation) Memo() (r string, exists bool)
- func (m *PaymentOrderRecipientMutation) MemoCleared() bool
- func (m *PaymentOrderRecipientMutation) Metadata() (r map[string]interface{}, exists bool)
- func (m *PaymentOrderRecipientMutation) MetadataCleared() bool
- func (m *PaymentOrderRecipientMutation) OldAccountIdentifier(ctx context.Context) (v string, err error)
- func (m *PaymentOrderRecipientMutation) OldAccountName(ctx context.Context) (v string, err error)
- func (m *PaymentOrderRecipientMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *PaymentOrderRecipientMutation) OldInstitution(ctx context.Context) (v string, err error)
- func (m *PaymentOrderRecipientMutation) OldMemo(ctx context.Context) (v string, err error)
- func (m *PaymentOrderRecipientMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error)
- func (m *PaymentOrderRecipientMutation) OldProviderID(ctx context.Context) (v string, err error)
- func (m *PaymentOrderRecipientMutation) Op() Op
- func (m *PaymentOrderRecipientMutation) PaymentOrderCleared() bool
- func (m *PaymentOrderRecipientMutation) PaymentOrderID() (id uuid.UUID, exists bool)
- func (m *PaymentOrderRecipientMutation) PaymentOrderIDs() (ids []uuid.UUID)
- func (m *PaymentOrderRecipientMutation) ProviderID() (r string, exists bool)
- func (m *PaymentOrderRecipientMutation) ProviderIDCleared() bool
- func (m *PaymentOrderRecipientMutation) RemovedEdges() []string
- func (m *PaymentOrderRecipientMutation) RemovedIDs(name string) []ent.Value
- func (m *PaymentOrderRecipientMutation) ResetAccountIdentifier()
- func (m *PaymentOrderRecipientMutation) ResetAccountName()
- func (m *PaymentOrderRecipientMutation) ResetEdge(name string) error
- func (m *PaymentOrderRecipientMutation) ResetField(name string) error
- func (m *PaymentOrderRecipientMutation) ResetInstitution()
- func (m *PaymentOrderRecipientMutation) ResetMemo()
- func (m *PaymentOrderRecipientMutation) ResetMetadata()
- func (m *PaymentOrderRecipientMutation) ResetPaymentOrder()
- func (m *PaymentOrderRecipientMutation) ResetProviderID()
- func (m *PaymentOrderRecipientMutation) SetAccountIdentifier(s string)
- func (m *PaymentOrderRecipientMutation) SetAccountName(s string)
- func (m *PaymentOrderRecipientMutation) SetField(name string, value ent.Value) error
- func (m *PaymentOrderRecipientMutation) SetInstitution(s string)
- func (m *PaymentOrderRecipientMutation) SetMemo(s string)
- func (m *PaymentOrderRecipientMutation) SetMetadata(value map[string]interface{})
- func (m *PaymentOrderRecipientMutation) SetOp(op Op)
- func (m *PaymentOrderRecipientMutation) SetPaymentOrderID(id uuid.UUID)
- func (m *PaymentOrderRecipientMutation) SetProviderID(s string)
- func (m PaymentOrderRecipientMutation) Tx() (*Tx, error)
- func (m *PaymentOrderRecipientMutation) Type() string
- func (m *PaymentOrderRecipientMutation) Where(ps ...predicate.PaymentOrderRecipient)
- func (m *PaymentOrderRecipientMutation) WhereP(ps ...func(*sql.Selector))
- type PaymentOrderRecipientQuery
- func (porq *PaymentOrderRecipientQuery) Aggregate(fns ...AggregateFunc) *PaymentOrderRecipientSelect
- func (porq *PaymentOrderRecipientQuery) All(ctx context.Context) ([]*PaymentOrderRecipient, error)
- func (porq *PaymentOrderRecipientQuery) AllX(ctx context.Context) []*PaymentOrderRecipient
- func (porq *PaymentOrderRecipientQuery) Clone() *PaymentOrderRecipientQuery
- func (porq *PaymentOrderRecipientQuery) Count(ctx context.Context) (int, error)
- func (porq *PaymentOrderRecipientQuery) CountX(ctx context.Context) int
- func (porq *PaymentOrderRecipientQuery) Exist(ctx context.Context) (bool, error)
- func (porq *PaymentOrderRecipientQuery) ExistX(ctx context.Context) bool
- func (porq *PaymentOrderRecipientQuery) First(ctx context.Context) (*PaymentOrderRecipient, error)
- func (porq *PaymentOrderRecipientQuery) FirstID(ctx context.Context) (id int, err error)
- func (porq *PaymentOrderRecipientQuery) FirstIDX(ctx context.Context) int
- func (porq *PaymentOrderRecipientQuery) FirstX(ctx context.Context) *PaymentOrderRecipient
- func (porq *PaymentOrderRecipientQuery) GroupBy(field string, fields ...string) *PaymentOrderRecipientGroupBy
- func (porq *PaymentOrderRecipientQuery) IDs(ctx context.Context) (ids []int, err error)
- func (porq *PaymentOrderRecipientQuery) IDsX(ctx context.Context) []int
- func (porq *PaymentOrderRecipientQuery) Limit(limit int) *PaymentOrderRecipientQuery
- func (porq *PaymentOrderRecipientQuery) Offset(offset int) *PaymentOrderRecipientQuery
- func (porq *PaymentOrderRecipientQuery) Only(ctx context.Context) (*PaymentOrderRecipient, error)
- func (porq *PaymentOrderRecipientQuery) OnlyID(ctx context.Context) (id int, err error)
- func (porq *PaymentOrderRecipientQuery) OnlyIDX(ctx context.Context) int
- func (porq *PaymentOrderRecipientQuery) OnlyX(ctx context.Context) *PaymentOrderRecipient
- func (porq *PaymentOrderRecipientQuery) Order(o ...paymentorderrecipient.OrderOption) *PaymentOrderRecipientQuery
- func (porq *PaymentOrderRecipientQuery) QueryPaymentOrder() *PaymentOrderQuery
- func (porq *PaymentOrderRecipientQuery) Select(fields ...string) *PaymentOrderRecipientSelect
- func (porq *PaymentOrderRecipientQuery) Unique(unique bool) *PaymentOrderRecipientQuery
- func (porq *PaymentOrderRecipientQuery) Where(ps ...predicate.PaymentOrderRecipient) *PaymentOrderRecipientQuery
- func (porq *PaymentOrderRecipientQuery) WithPaymentOrder(opts ...func(*PaymentOrderQuery)) *PaymentOrderRecipientQuery
- type PaymentOrderRecipientSelect
- func (pors *PaymentOrderRecipientSelect) Aggregate(fns ...AggregateFunc) *PaymentOrderRecipientSelect
- func (s *PaymentOrderRecipientSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *PaymentOrderRecipientSelect) BoolX(ctx context.Context) bool
- func (s *PaymentOrderRecipientSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *PaymentOrderRecipientSelect) BoolsX(ctx context.Context) []bool
- func (s *PaymentOrderRecipientSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *PaymentOrderRecipientSelect) Float64X(ctx context.Context) float64
- func (s *PaymentOrderRecipientSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *PaymentOrderRecipientSelect) Float64sX(ctx context.Context) []float64
- func (s *PaymentOrderRecipientSelect) Int(ctx context.Context) (_ int, err error)
- func (s *PaymentOrderRecipientSelect) IntX(ctx context.Context) int
- func (s *PaymentOrderRecipientSelect) Ints(ctx context.Context) ([]int, error)
- func (s *PaymentOrderRecipientSelect) IntsX(ctx context.Context) []int
- func (pors *PaymentOrderRecipientSelect) Scan(ctx context.Context, v any) error
- func (s *PaymentOrderRecipientSelect) ScanX(ctx context.Context, v any)
- func (s *PaymentOrderRecipientSelect) String(ctx context.Context) (_ string, err error)
- func (s *PaymentOrderRecipientSelect) StringX(ctx context.Context) string
- func (s *PaymentOrderRecipientSelect) Strings(ctx context.Context) ([]string, error)
- func (s *PaymentOrderRecipientSelect) StringsX(ctx context.Context) []string
- type PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) ClearMemo() *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) ClearMetadata() *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) ClearPaymentOrder() *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) ClearProviderID() *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) Exec(ctx context.Context) error
- func (poru *PaymentOrderRecipientUpdate) ExecX(ctx context.Context)
- func (poru *PaymentOrderRecipientUpdate) Mutation() *PaymentOrderRecipientMutation
- func (poru *PaymentOrderRecipientUpdate) Save(ctx context.Context) (int, error)
- func (poru *PaymentOrderRecipientUpdate) SaveX(ctx context.Context) int
- func (poru *PaymentOrderRecipientUpdate) SetAccountIdentifier(s string) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) SetAccountName(s string) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) SetInstitution(s string) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) SetMemo(s string) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) SetMetadata(m map[string]interface{}) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) SetNillableAccountIdentifier(s *string) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) SetNillableAccountName(s *string) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) SetNillableInstitution(s *string) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) SetNillableMemo(s *string) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) SetNillableProviderID(s *string) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) SetPaymentOrder(p *PaymentOrder) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) SetPaymentOrderID(id uuid.UUID) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) SetProviderID(s string) *PaymentOrderRecipientUpdate
- func (poru *PaymentOrderRecipientUpdate) Where(ps ...predicate.PaymentOrderRecipient) *PaymentOrderRecipientUpdate
- type PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) ClearMemo() *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) ClearMetadata() *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) ClearPaymentOrder() *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) ClearProviderID() *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) Exec(ctx context.Context) error
- func (poruo *PaymentOrderRecipientUpdateOne) ExecX(ctx context.Context)
- func (poruo *PaymentOrderRecipientUpdateOne) Mutation() *PaymentOrderRecipientMutation
- func (poruo *PaymentOrderRecipientUpdateOne) Save(ctx context.Context) (*PaymentOrderRecipient, error)
- func (poruo *PaymentOrderRecipientUpdateOne) SaveX(ctx context.Context) *PaymentOrderRecipient
- func (poruo *PaymentOrderRecipientUpdateOne) Select(field string, fields ...string) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetAccountIdentifier(s string) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetAccountName(s string) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetInstitution(s string) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetMemo(s string) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetMetadata(m map[string]interface{}) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetNillableAccountIdentifier(s *string) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetNillableAccountName(s *string) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetNillableInstitution(s *string) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetNillableMemo(s *string) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetNillableProviderID(s *string) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetPaymentOrder(p *PaymentOrder) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetPaymentOrderID(id uuid.UUID) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) SetProviderID(s string) *PaymentOrderRecipientUpdateOne
- func (poruo *PaymentOrderRecipientUpdateOne) Where(ps ...predicate.PaymentOrderRecipient) *PaymentOrderRecipientUpdateOne
- type PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) ClearMemo() *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) ClearMetadata() *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) ClearProviderID() *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) SetAccountIdentifier(v string) *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) SetAccountName(v string) *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) SetInstitution(v string) *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) SetMemo(v string) *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) SetMetadata(v map[string]interface{}) *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) SetProviderID(v string) *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) UpdateAccountIdentifier() *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) UpdateAccountName() *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) UpdateInstitution() *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) UpdateMemo() *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) UpdateMetadata() *PaymentOrderRecipientUpsert
- func (u *PaymentOrderRecipientUpsert) UpdateProviderID() *PaymentOrderRecipientUpsert
- type PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) ClearMemo() *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) ClearMetadata() *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) ClearProviderID() *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) DoNothing() *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) Exec(ctx context.Context) error
- func (u *PaymentOrderRecipientUpsertBulk) ExecX(ctx context.Context)
- func (u *PaymentOrderRecipientUpsertBulk) Ignore() *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) SetAccountIdentifier(v string) *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) SetAccountName(v string) *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) SetInstitution(v string) *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) SetMemo(v string) *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) SetMetadata(v map[string]interface{}) *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) SetProviderID(v string) *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) Update(set func(*PaymentOrderRecipientUpsert)) *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) UpdateAccountIdentifier() *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) UpdateAccountName() *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) UpdateInstitution() *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) UpdateMemo() *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) UpdateMetadata() *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) UpdateNewValues() *PaymentOrderRecipientUpsertBulk
- func (u *PaymentOrderRecipientUpsertBulk) UpdateProviderID() *PaymentOrderRecipientUpsertBulk
- type PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) ClearMemo() *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) ClearMetadata() *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) ClearProviderID() *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) DoNothing() *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) Exec(ctx context.Context) error
- func (u *PaymentOrderRecipientUpsertOne) ExecX(ctx context.Context)
- func (u *PaymentOrderRecipientUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *PaymentOrderRecipientUpsertOne) IDX(ctx context.Context) int
- func (u *PaymentOrderRecipientUpsertOne) Ignore() *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) SetAccountIdentifier(v string) *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) SetAccountName(v string) *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) SetInstitution(v string) *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) SetMemo(v string) *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) SetMetadata(v map[string]interface{}) *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) SetProviderID(v string) *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) Update(set func(*PaymentOrderRecipientUpsert)) *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) UpdateAccountIdentifier() *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) UpdateAccountName() *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) UpdateInstitution() *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) UpdateMemo() *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) UpdateMetadata() *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) UpdateNewValues() *PaymentOrderRecipientUpsertOne
- func (u *PaymentOrderRecipientUpsertOne) UpdateProviderID() *PaymentOrderRecipientUpsertOne
- type PaymentOrderRecipients
- type PaymentOrderSelect
- func (pos *PaymentOrderSelect) Aggregate(fns ...AggregateFunc) *PaymentOrderSelect
- func (s *PaymentOrderSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *PaymentOrderSelect) BoolX(ctx context.Context) bool
- func (s *PaymentOrderSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *PaymentOrderSelect) BoolsX(ctx context.Context) []bool
- func (s *PaymentOrderSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *PaymentOrderSelect) Float64X(ctx context.Context) float64
- func (s *PaymentOrderSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *PaymentOrderSelect) Float64sX(ctx context.Context) []float64
- func (s *PaymentOrderSelect) Int(ctx context.Context) (_ int, err error)
- func (s *PaymentOrderSelect) IntX(ctx context.Context) int
- func (s *PaymentOrderSelect) Ints(ctx context.Context) ([]int, error)
- func (s *PaymentOrderSelect) IntsX(ctx context.Context) []int
- func (pos *PaymentOrderSelect) Scan(ctx context.Context, v any) error
- func (s *PaymentOrderSelect) ScanX(ctx context.Context, v any)
- func (s *PaymentOrderSelect) String(ctx context.Context) (_ string, err error)
- func (s *PaymentOrderSelect) StringX(ctx context.Context) string
- func (s *PaymentOrderSelect) Strings(ctx context.Context) ([]string, error)
- func (s *PaymentOrderSelect) StringsX(ctx context.Context) []string
- type PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) AddAmount(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) AddAmountPaid(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) AddAmountReturned(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) AddBlockNumber(i int64) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) AddFeePercent(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) AddNetworkFee(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) AddPercentSettled(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) AddRate(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) AddSenderFee(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) AddTransactionIDs(ids ...uuid.UUID) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) AddTransactions(t ...*TransactionLog) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearFeeAddress() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearFromAddress() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearGatewayID() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearLinkedAddress() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearMessageHash() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearPaymentWebhook() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearReceiveAddress() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearRecipient() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearReference() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearReturnAddress() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearSenderProfile() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearToken() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearTransactions() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) ClearTxHash() *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) Exec(ctx context.Context) error
- func (pou *PaymentOrderUpdate) ExecX(ctx context.Context)
- func (pou *PaymentOrderUpdate) Mutation() *PaymentOrderMutation
- func (pou *PaymentOrderUpdate) RemoveTransactionIDs(ids ...uuid.UUID) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) RemoveTransactions(t ...*TransactionLog) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) Save(ctx context.Context) (int, error)
- func (pou *PaymentOrderUpdate) SaveX(ctx context.Context) int
- func (pou *PaymentOrderUpdate) SetAmount(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetAmountPaid(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetAmountReturned(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetBlockNumber(i int64) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetFeeAddress(s string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetFeePercent(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetFromAddress(s string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetGatewayID(s string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetLinkedAddress(l *LinkedAddress) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetLinkedAddressID(id int) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetMessageHash(s string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNetworkFee(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableAmount(d *decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableAmountPaid(d *decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableAmountReturned(d *decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableBlockNumber(i *int64) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableFeeAddress(s *string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableFeePercent(d *decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableFromAddress(s *string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableGatewayID(s *string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableLinkedAddressID(id *int) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableMessageHash(s *string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableNetworkFee(d *decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillablePaymentWebhookID(id *uuid.UUID) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillablePercentSettled(d *decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableRate(d *decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableReceiveAddressID(id *int) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableReceiveAddressText(s *string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableRecipientID(id *int) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableReference(s *string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableReturnAddress(s *string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableSenderFee(d *decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableSenderProfileID(id *uuid.UUID) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableStatus(pa *paymentorder.Status) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetNillableTxHash(s *string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetPaymentWebhook(p *PaymentWebhook) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetPaymentWebhookID(id uuid.UUID) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetPercentSettled(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetRate(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetReceiveAddress(r *ReceiveAddress) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetReceiveAddressID(id int) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetReceiveAddressText(s string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetRecipient(p *PaymentOrderRecipient) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetRecipientID(id int) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetReference(s string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetReturnAddress(s string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetSenderFee(d decimal.Decimal) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetSenderProfile(s *SenderProfile) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetSenderProfileID(id uuid.UUID) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetStatus(pa paymentorder.Status) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetToken(t *Token) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetTokenID(id int) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetTxHash(s string) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) SetUpdatedAt(t time.Time) *PaymentOrderUpdate
- func (pou *PaymentOrderUpdate) Where(ps ...predicate.PaymentOrder) *PaymentOrderUpdate
- type PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) AddAmount(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) AddAmountPaid(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) AddAmountReturned(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) AddBlockNumber(i int64) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) AddFeePercent(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) AddNetworkFee(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) AddPercentSettled(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) AddRate(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) AddSenderFee(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) AddTransactionIDs(ids ...uuid.UUID) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) AddTransactions(t ...*TransactionLog) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearFeeAddress() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearFromAddress() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearGatewayID() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearLinkedAddress() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearMessageHash() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearPaymentWebhook() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearReceiveAddress() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearRecipient() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearReference() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearReturnAddress() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearSenderProfile() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearToken() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearTransactions() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) ClearTxHash() *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) Exec(ctx context.Context) error
- func (pouo *PaymentOrderUpdateOne) ExecX(ctx context.Context)
- func (pouo *PaymentOrderUpdateOne) Mutation() *PaymentOrderMutation
- func (pouo *PaymentOrderUpdateOne) RemoveTransactionIDs(ids ...uuid.UUID) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) RemoveTransactions(t ...*TransactionLog) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) Save(ctx context.Context) (*PaymentOrder, error)
- func (pouo *PaymentOrderUpdateOne) SaveX(ctx context.Context) *PaymentOrder
- func (pouo *PaymentOrderUpdateOne) Select(field string, fields ...string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetAmount(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetAmountPaid(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetAmountReturned(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetBlockNumber(i int64) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetFeeAddress(s string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetFeePercent(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetFromAddress(s string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetGatewayID(s string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetLinkedAddress(l *LinkedAddress) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetLinkedAddressID(id int) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetMessageHash(s string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNetworkFee(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableAmount(d *decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableAmountPaid(d *decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableAmountReturned(d *decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableBlockNumber(i *int64) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableFeeAddress(s *string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableFeePercent(d *decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableFromAddress(s *string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableGatewayID(s *string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableLinkedAddressID(id *int) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableMessageHash(s *string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableNetworkFee(d *decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillablePaymentWebhookID(id *uuid.UUID) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillablePercentSettled(d *decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableRate(d *decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableReceiveAddressID(id *int) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableReceiveAddressText(s *string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableRecipientID(id *int) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableReference(s *string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableReturnAddress(s *string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableSenderFee(d *decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableSenderProfileID(id *uuid.UUID) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableStatus(pa *paymentorder.Status) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetNillableTxHash(s *string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetPaymentWebhook(p *PaymentWebhook) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetPaymentWebhookID(id uuid.UUID) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetPercentSettled(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetRate(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetReceiveAddress(r *ReceiveAddress) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetReceiveAddressID(id int) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetReceiveAddressText(s string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetRecipient(p *PaymentOrderRecipient) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetRecipientID(id int) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetReference(s string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetReturnAddress(s string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetSenderFee(d decimal.Decimal) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetSenderProfile(s *SenderProfile) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetSenderProfileID(id uuid.UUID) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetStatus(pa paymentorder.Status) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetToken(t *Token) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetTokenID(id int) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetTxHash(s string) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) SetUpdatedAt(t time.Time) *PaymentOrderUpdateOne
- func (pouo *PaymentOrderUpdateOne) Where(ps ...predicate.PaymentOrder) *PaymentOrderUpdateOne
- type PaymentOrderUpsert
- func (u *PaymentOrderUpsert) AddAmount(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) AddAmountPaid(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) AddAmountReturned(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) AddBlockNumber(v int64) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) AddFeePercent(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) AddNetworkFee(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) AddPercentSettled(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) AddRate(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) AddSenderFee(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) ClearFeeAddress() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) ClearFromAddress() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) ClearGatewayID() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) ClearMessageHash() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) ClearReference() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) ClearReturnAddress() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) ClearTxHash() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetAmount(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetAmountPaid(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetAmountReturned(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetBlockNumber(v int64) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetFeeAddress(v string) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetFeePercent(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetFromAddress(v string) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetGatewayID(v string) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetMessageHash(v string) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetNetworkFee(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetPercentSettled(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetRate(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetReceiveAddressText(v string) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetReference(v string) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetReturnAddress(v string) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetSenderFee(v decimal.Decimal) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetStatus(v paymentorder.Status) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetTxHash(v string) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) SetUpdatedAt(v time.Time) *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateAmount() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateAmountPaid() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateAmountReturned() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateBlockNumber() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateFeeAddress() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateFeePercent() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateFromAddress() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateGatewayID() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateMessageHash() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateNetworkFee() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdatePercentSettled() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateRate() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateReceiveAddressText() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateReference() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateReturnAddress() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateSenderFee() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateStatus() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateTxHash() *PaymentOrderUpsert
- func (u *PaymentOrderUpsert) UpdateUpdatedAt() *PaymentOrderUpsert
- type PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) AddAmount(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) AddAmountPaid(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) AddAmountReturned(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) AddBlockNumber(v int64) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) AddFeePercent(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) AddNetworkFee(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) AddPercentSettled(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) AddRate(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) AddSenderFee(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) ClearFeeAddress() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) ClearFromAddress() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) ClearGatewayID() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) ClearMessageHash() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) ClearReference() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) ClearReturnAddress() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) ClearTxHash() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) DoNothing() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) Exec(ctx context.Context) error
- func (u *PaymentOrderUpsertBulk) ExecX(ctx context.Context)
- func (u *PaymentOrderUpsertBulk) Ignore() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetAmount(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetAmountPaid(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetAmountReturned(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetBlockNumber(v int64) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetFeeAddress(v string) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetFeePercent(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetFromAddress(v string) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetGatewayID(v string) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetMessageHash(v string) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetNetworkFee(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetPercentSettled(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetRate(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetReceiveAddressText(v string) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetReference(v string) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetReturnAddress(v string) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetSenderFee(v decimal.Decimal) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetStatus(v paymentorder.Status) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetTxHash(v string) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) SetUpdatedAt(v time.Time) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) Update(set func(*PaymentOrderUpsert)) *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateAmount() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateAmountPaid() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateAmountReturned() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateBlockNumber() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateFeeAddress() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateFeePercent() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateFromAddress() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateGatewayID() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateMessageHash() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateNetworkFee() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateNewValues() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdatePercentSettled() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateRate() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateReceiveAddressText() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateReference() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateReturnAddress() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateSenderFee() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateStatus() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateTxHash() *PaymentOrderUpsertBulk
- func (u *PaymentOrderUpsertBulk) UpdateUpdatedAt() *PaymentOrderUpsertBulk
- type PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) AddAmount(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) AddAmountPaid(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) AddAmountReturned(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) AddBlockNumber(v int64) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) AddFeePercent(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) AddNetworkFee(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) AddPercentSettled(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) AddRate(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) AddSenderFee(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) ClearFeeAddress() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) ClearFromAddress() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) ClearGatewayID() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) ClearMessageHash() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) ClearReference() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) ClearReturnAddress() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) ClearTxHash() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) DoNothing() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) Exec(ctx context.Context) error
- func (u *PaymentOrderUpsertOne) ExecX(ctx context.Context)
- func (u *PaymentOrderUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *PaymentOrderUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *PaymentOrderUpsertOne) Ignore() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetAmount(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetAmountPaid(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetAmountReturned(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetBlockNumber(v int64) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetFeeAddress(v string) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetFeePercent(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetFromAddress(v string) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetGatewayID(v string) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetMessageHash(v string) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetNetworkFee(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetPercentSettled(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetRate(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetReceiveAddressText(v string) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetReference(v string) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetReturnAddress(v string) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetSenderFee(v decimal.Decimal) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetStatus(v paymentorder.Status) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetTxHash(v string) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) SetUpdatedAt(v time.Time) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) Update(set func(*PaymentOrderUpsert)) *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateAmount() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateAmountPaid() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateAmountReturned() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateBlockNumber() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateFeeAddress() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateFeePercent() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateFromAddress() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateGatewayID() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateMessageHash() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateNetworkFee() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateNewValues() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdatePercentSettled() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateRate() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateReceiveAddressText() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateReference() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateReturnAddress() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateSenderFee() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateStatus() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateTxHash() *PaymentOrderUpsertOne
- func (u *PaymentOrderUpsertOne) UpdateUpdatedAt() *PaymentOrderUpsertOne
- type PaymentOrders
- type PaymentWebhook
- func (pw *PaymentWebhook) QueryNetwork() *NetworkQuery
- func (pw *PaymentWebhook) QueryPaymentOrder() *PaymentOrderQuery
- func (pw *PaymentWebhook) String() string
- func (pw *PaymentWebhook) Unwrap() *PaymentWebhook
- func (pw *PaymentWebhook) Update() *PaymentWebhookUpdateOne
- func (pw *PaymentWebhook) Value(name string) (ent.Value, error)
- type PaymentWebhookClient
- func (c *PaymentWebhookClient) Create() *PaymentWebhookCreate
- func (c *PaymentWebhookClient) CreateBulk(builders ...*PaymentWebhookCreate) *PaymentWebhookCreateBulk
- func (c *PaymentWebhookClient) Delete() *PaymentWebhookDelete
- func (c *PaymentWebhookClient) DeleteOne(pw *PaymentWebhook) *PaymentWebhookDeleteOne
- func (c *PaymentWebhookClient) DeleteOneID(id uuid.UUID) *PaymentWebhookDeleteOne
- func (c *PaymentWebhookClient) Get(ctx context.Context, id uuid.UUID) (*PaymentWebhook, error)
- func (c *PaymentWebhookClient) GetX(ctx context.Context, id uuid.UUID) *PaymentWebhook
- func (c *PaymentWebhookClient) Hooks() []Hook
- func (c *PaymentWebhookClient) Intercept(interceptors ...Interceptor)
- func (c *PaymentWebhookClient) Interceptors() []Interceptor
- func (c *PaymentWebhookClient) MapCreateBulk(slice any, setFunc func(*PaymentWebhookCreate, int)) *PaymentWebhookCreateBulk
- func (c *PaymentWebhookClient) Query() *PaymentWebhookQuery
- func (c *PaymentWebhookClient) QueryNetwork(pw *PaymentWebhook) *NetworkQuery
- func (c *PaymentWebhookClient) QueryPaymentOrder(pw *PaymentWebhook) *PaymentOrderQuery
- func (c *PaymentWebhookClient) Update() *PaymentWebhookUpdate
- func (c *PaymentWebhookClient) UpdateOne(pw *PaymentWebhook) *PaymentWebhookUpdateOne
- func (c *PaymentWebhookClient) UpdateOneID(id uuid.UUID) *PaymentWebhookUpdateOne
- func (c *PaymentWebhookClient) Use(hooks ...Hook)
- type PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) Exec(ctx context.Context) error
- func (pwc *PaymentWebhookCreate) ExecX(ctx context.Context)
- func (pwc *PaymentWebhookCreate) Mutation() *PaymentWebhookMutation
- func (pwc *PaymentWebhookCreate) OnConflict(opts ...sql.ConflictOption) *PaymentWebhookUpsertOne
- func (pwc *PaymentWebhookCreate) OnConflictColumns(columns ...string) *PaymentWebhookUpsertOne
- func (pwc *PaymentWebhookCreate) Save(ctx context.Context) (*PaymentWebhook, error)
- func (pwc *PaymentWebhookCreate) SaveX(ctx context.Context) *PaymentWebhook
- func (pwc *PaymentWebhookCreate) SetCallbackURL(s string) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetCreatedAt(t time.Time) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetID(u uuid.UUID) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetNetwork(n *Network) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetNetworkID(id int) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetNillableCreatedAt(t *time.Time) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetNillableID(u *uuid.UUID) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetNillableNetworkID(id *int) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetNillablePaymentOrderID(id *uuid.UUID) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetNillableUpdatedAt(t *time.Time) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetPaymentOrder(p *PaymentOrder) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetPaymentOrderID(id uuid.UUID) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetUpdatedAt(t time.Time) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetWebhookID(s string) *PaymentWebhookCreate
- func (pwc *PaymentWebhookCreate) SetWebhookSecret(s string) *PaymentWebhookCreate
- type PaymentWebhookCreateBulk
- func (pwcb *PaymentWebhookCreateBulk) Exec(ctx context.Context) error
- func (pwcb *PaymentWebhookCreateBulk) ExecX(ctx context.Context)
- func (pwcb *PaymentWebhookCreateBulk) OnConflict(opts ...sql.ConflictOption) *PaymentWebhookUpsertBulk
- func (pwcb *PaymentWebhookCreateBulk) OnConflictColumns(columns ...string) *PaymentWebhookUpsertBulk
- func (pwcb *PaymentWebhookCreateBulk) Save(ctx context.Context) ([]*PaymentWebhook, error)
- func (pwcb *PaymentWebhookCreateBulk) SaveX(ctx context.Context) []*PaymentWebhook
- type PaymentWebhookDelete
- type PaymentWebhookDeleteOne
- type PaymentWebhookEdges
- type PaymentWebhookGroupBy
- func (pwgb *PaymentWebhookGroupBy) Aggregate(fns ...AggregateFunc) *PaymentWebhookGroupBy
- func (s *PaymentWebhookGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *PaymentWebhookGroupBy) BoolX(ctx context.Context) bool
- func (s *PaymentWebhookGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *PaymentWebhookGroupBy) BoolsX(ctx context.Context) []bool
- func (s *PaymentWebhookGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *PaymentWebhookGroupBy) Float64X(ctx context.Context) float64
- func (s *PaymentWebhookGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *PaymentWebhookGroupBy) Float64sX(ctx context.Context) []float64
- func (s *PaymentWebhookGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *PaymentWebhookGroupBy) IntX(ctx context.Context) int
- func (s *PaymentWebhookGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *PaymentWebhookGroupBy) IntsX(ctx context.Context) []int
- func (pwgb *PaymentWebhookGroupBy) Scan(ctx context.Context, v any) error
- func (s *PaymentWebhookGroupBy) ScanX(ctx context.Context, v any)
- func (s *PaymentWebhookGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *PaymentWebhookGroupBy) StringX(ctx context.Context) string
- func (s *PaymentWebhookGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *PaymentWebhookGroupBy) StringsX(ctx context.Context) []string
- type PaymentWebhookMutation
- func (m *PaymentWebhookMutation) AddField(name string, value ent.Value) error
- func (m *PaymentWebhookMutation) AddedEdges() []string
- func (m *PaymentWebhookMutation) AddedField(name string) (ent.Value, bool)
- func (m *PaymentWebhookMutation) AddedFields() []string
- func (m *PaymentWebhookMutation) AddedIDs(name string) []ent.Value
- func (m *PaymentWebhookMutation) CallbackURL() (r string, exists bool)
- func (m *PaymentWebhookMutation) ClearEdge(name string) error
- func (m *PaymentWebhookMutation) ClearField(name string) error
- func (m *PaymentWebhookMutation) ClearNetwork()
- func (m *PaymentWebhookMutation) ClearPaymentOrder()
- func (m *PaymentWebhookMutation) ClearedEdges() []string
- func (m *PaymentWebhookMutation) ClearedFields() []string
- func (m PaymentWebhookMutation) Client() *Client
- func (m *PaymentWebhookMutation) CreatedAt() (r time.Time, exists bool)
- func (m *PaymentWebhookMutation) EdgeCleared(name string) bool
- func (m *PaymentWebhookMutation) Field(name string) (ent.Value, bool)
- func (m *PaymentWebhookMutation) FieldCleared(name string) bool
- func (m *PaymentWebhookMutation) Fields() []string
- func (m *PaymentWebhookMutation) ID() (id uuid.UUID, exists bool)
- func (m *PaymentWebhookMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *PaymentWebhookMutation) NetworkCleared() bool
- func (m *PaymentWebhookMutation) NetworkID() (id int, exists bool)
- func (m *PaymentWebhookMutation) NetworkIDs() (ids []int)
- func (m *PaymentWebhookMutation) OldCallbackURL(ctx context.Context) (v string, err error)
- func (m *PaymentWebhookMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *PaymentWebhookMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *PaymentWebhookMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *PaymentWebhookMutation) OldWebhookID(ctx context.Context) (v string, err error)
- func (m *PaymentWebhookMutation) OldWebhookSecret(ctx context.Context) (v string, err error)
- func (m *PaymentWebhookMutation) Op() Op
- func (m *PaymentWebhookMutation) PaymentOrderCleared() bool
- func (m *PaymentWebhookMutation) PaymentOrderID() (id uuid.UUID, exists bool)
- func (m *PaymentWebhookMutation) PaymentOrderIDs() (ids []uuid.UUID)
- func (m *PaymentWebhookMutation) RemovedEdges() []string
- func (m *PaymentWebhookMutation) RemovedIDs(name string) []ent.Value
- func (m *PaymentWebhookMutation) ResetCallbackURL()
- func (m *PaymentWebhookMutation) ResetCreatedAt()
- func (m *PaymentWebhookMutation) ResetEdge(name string) error
- func (m *PaymentWebhookMutation) ResetField(name string) error
- func (m *PaymentWebhookMutation) ResetNetwork()
- func (m *PaymentWebhookMutation) ResetPaymentOrder()
- func (m *PaymentWebhookMutation) ResetUpdatedAt()
- func (m *PaymentWebhookMutation) ResetWebhookID()
- func (m *PaymentWebhookMutation) ResetWebhookSecret()
- func (m *PaymentWebhookMutation) SetCallbackURL(s string)
- func (m *PaymentWebhookMutation) SetCreatedAt(t time.Time)
- func (m *PaymentWebhookMutation) SetField(name string, value ent.Value) error
- func (m *PaymentWebhookMutation) SetID(id uuid.UUID)
- func (m *PaymentWebhookMutation) SetNetworkID(id int)
- func (m *PaymentWebhookMutation) SetOp(op Op)
- func (m *PaymentWebhookMutation) SetPaymentOrderID(id uuid.UUID)
- func (m *PaymentWebhookMutation) SetUpdatedAt(t time.Time)
- func (m *PaymentWebhookMutation) SetWebhookID(s string)
- func (m *PaymentWebhookMutation) SetWebhookSecret(s string)
- func (m PaymentWebhookMutation) Tx() (*Tx, error)
- func (m *PaymentWebhookMutation) Type() string
- func (m *PaymentWebhookMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *PaymentWebhookMutation) WebhookID() (r string, exists bool)
- func (m *PaymentWebhookMutation) WebhookSecret() (r string, exists bool)
- func (m *PaymentWebhookMutation) Where(ps ...predicate.PaymentWebhook)
- func (m *PaymentWebhookMutation) WhereP(ps ...func(*sql.Selector))
- type PaymentWebhookQuery
- func (pwq *PaymentWebhookQuery) Aggregate(fns ...AggregateFunc) *PaymentWebhookSelect
- func (pwq *PaymentWebhookQuery) All(ctx context.Context) ([]*PaymentWebhook, error)
- func (pwq *PaymentWebhookQuery) AllX(ctx context.Context) []*PaymentWebhook
- func (pwq *PaymentWebhookQuery) Clone() *PaymentWebhookQuery
- func (pwq *PaymentWebhookQuery) Count(ctx context.Context) (int, error)
- func (pwq *PaymentWebhookQuery) CountX(ctx context.Context) int
- func (pwq *PaymentWebhookQuery) Exist(ctx context.Context) (bool, error)
- func (pwq *PaymentWebhookQuery) ExistX(ctx context.Context) bool
- func (pwq *PaymentWebhookQuery) First(ctx context.Context) (*PaymentWebhook, error)
- func (pwq *PaymentWebhookQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (pwq *PaymentWebhookQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (pwq *PaymentWebhookQuery) FirstX(ctx context.Context) *PaymentWebhook
- func (pwq *PaymentWebhookQuery) GroupBy(field string, fields ...string) *PaymentWebhookGroupBy
- func (pwq *PaymentWebhookQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (pwq *PaymentWebhookQuery) IDsX(ctx context.Context) []uuid.UUID
- func (pwq *PaymentWebhookQuery) Limit(limit int) *PaymentWebhookQuery
- func (pwq *PaymentWebhookQuery) Offset(offset int) *PaymentWebhookQuery
- func (pwq *PaymentWebhookQuery) Only(ctx context.Context) (*PaymentWebhook, error)
- func (pwq *PaymentWebhookQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (pwq *PaymentWebhookQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (pwq *PaymentWebhookQuery) OnlyX(ctx context.Context) *PaymentWebhook
- func (pwq *PaymentWebhookQuery) Order(o ...paymentwebhook.OrderOption) *PaymentWebhookQuery
- func (pwq *PaymentWebhookQuery) QueryNetwork() *NetworkQuery
- func (pwq *PaymentWebhookQuery) QueryPaymentOrder() *PaymentOrderQuery
- func (pwq *PaymentWebhookQuery) Select(fields ...string) *PaymentWebhookSelect
- func (pwq *PaymentWebhookQuery) Unique(unique bool) *PaymentWebhookQuery
- func (pwq *PaymentWebhookQuery) Where(ps ...predicate.PaymentWebhook) *PaymentWebhookQuery
- func (pwq *PaymentWebhookQuery) WithNetwork(opts ...func(*NetworkQuery)) *PaymentWebhookQuery
- func (pwq *PaymentWebhookQuery) WithPaymentOrder(opts ...func(*PaymentOrderQuery)) *PaymentWebhookQuery
- type PaymentWebhookSelect
- func (pws *PaymentWebhookSelect) Aggregate(fns ...AggregateFunc) *PaymentWebhookSelect
- func (s *PaymentWebhookSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *PaymentWebhookSelect) BoolX(ctx context.Context) bool
- func (s *PaymentWebhookSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *PaymentWebhookSelect) BoolsX(ctx context.Context) []bool
- func (s *PaymentWebhookSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *PaymentWebhookSelect) Float64X(ctx context.Context) float64
- func (s *PaymentWebhookSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *PaymentWebhookSelect) Float64sX(ctx context.Context) []float64
- func (s *PaymentWebhookSelect) Int(ctx context.Context) (_ int, err error)
- func (s *PaymentWebhookSelect) IntX(ctx context.Context) int
- func (s *PaymentWebhookSelect) Ints(ctx context.Context) ([]int, error)
- func (s *PaymentWebhookSelect) IntsX(ctx context.Context) []int
- func (pws *PaymentWebhookSelect) Scan(ctx context.Context, v any) error
- func (s *PaymentWebhookSelect) ScanX(ctx context.Context, v any)
- func (s *PaymentWebhookSelect) String(ctx context.Context) (_ string, err error)
- func (s *PaymentWebhookSelect) StringX(ctx context.Context) string
- func (s *PaymentWebhookSelect) Strings(ctx context.Context) ([]string, error)
- func (s *PaymentWebhookSelect) StringsX(ctx context.Context) []string
- type PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) ClearNetwork() *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) ClearPaymentOrder() *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) Exec(ctx context.Context) error
- func (pwu *PaymentWebhookUpdate) ExecX(ctx context.Context)
- func (pwu *PaymentWebhookUpdate) Mutation() *PaymentWebhookMutation
- func (pwu *PaymentWebhookUpdate) Save(ctx context.Context) (int, error)
- func (pwu *PaymentWebhookUpdate) SaveX(ctx context.Context) int
- func (pwu *PaymentWebhookUpdate) SetCallbackURL(s string) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) SetNetwork(n *Network) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) SetNetworkID(id int) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) SetNillableCallbackURL(s *string) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) SetNillableNetworkID(id *int) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) SetNillablePaymentOrderID(id *uuid.UUID) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) SetNillableWebhookID(s *string) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) SetNillableWebhookSecret(s *string) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) SetPaymentOrder(p *PaymentOrder) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) SetPaymentOrderID(id uuid.UUID) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) SetUpdatedAt(t time.Time) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) SetWebhookID(s string) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) SetWebhookSecret(s string) *PaymentWebhookUpdate
- func (pwu *PaymentWebhookUpdate) Where(ps ...predicate.PaymentWebhook) *PaymentWebhookUpdate
- type PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) ClearNetwork() *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) ClearPaymentOrder() *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) Exec(ctx context.Context) error
- func (pwuo *PaymentWebhookUpdateOne) ExecX(ctx context.Context)
- func (pwuo *PaymentWebhookUpdateOne) Mutation() *PaymentWebhookMutation
- func (pwuo *PaymentWebhookUpdateOne) Save(ctx context.Context) (*PaymentWebhook, error)
- func (pwuo *PaymentWebhookUpdateOne) SaveX(ctx context.Context) *PaymentWebhook
- func (pwuo *PaymentWebhookUpdateOne) Select(field string, fields ...string) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetCallbackURL(s string) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetNetwork(n *Network) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetNetworkID(id int) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetNillableCallbackURL(s *string) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetNillableNetworkID(id *int) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetNillablePaymentOrderID(id *uuid.UUID) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetNillableWebhookID(s *string) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetNillableWebhookSecret(s *string) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetPaymentOrder(p *PaymentOrder) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetPaymentOrderID(id uuid.UUID) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetUpdatedAt(t time.Time) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetWebhookID(s string) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) SetWebhookSecret(s string) *PaymentWebhookUpdateOne
- func (pwuo *PaymentWebhookUpdateOne) Where(ps ...predicate.PaymentWebhook) *PaymentWebhookUpdateOne
- type PaymentWebhookUpsert
- func (u *PaymentWebhookUpsert) SetCallbackURL(v string) *PaymentWebhookUpsert
- func (u *PaymentWebhookUpsert) SetUpdatedAt(v time.Time) *PaymentWebhookUpsert
- func (u *PaymentWebhookUpsert) SetWebhookID(v string) *PaymentWebhookUpsert
- func (u *PaymentWebhookUpsert) SetWebhookSecret(v string) *PaymentWebhookUpsert
- func (u *PaymentWebhookUpsert) UpdateCallbackURL() *PaymentWebhookUpsert
- func (u *PaymentWebhookUpsert) UpdateUpdatedAt() *PaymentWebhookUpsert
- func (u *PaymentWebhookUpsert) UpdateWebhookID() *PaymentWebhookUpsert
- func (u *PaymentWebhookUpsert) UpdateWebhookSecret() *PaymentWebhookUpsert
- type PaymentWebhookUpsertBulk
- func (u *PaymentWebhookUpsertBulk) DoNothing() *PaymentWebhookUpsertBulk
- func (u *PaymentWebhookUpsertBulk) Exec(ctx context.Context) error
- func (u *PaymentWebhookUpsertBulk) ExecX(ctx context.Context)
- func (u *PaymentWebhookUpsertBulk) Ignore() *PaymentWebhookUpsertBulk
- func (u *PaymentWebhookUpsertBulk) SetCallbackURL(v string) *PaymentWebhookUpsertBulk
- func (u *PaymentWebhookUpsertBulk) SetUpdatedAt(v time.Time) *PaymentWebhookUpsertBulk
- func (u *PaymentWebhookUpsertBulk) SetWebhookID(v string) *PaymentWebhookUpsertBulk
- func (u *PaymentWebhookUpsertBulk) SetWebhookSecret(v string) *PaymentWebhookUpsertBulk
- func (u *PaymentWebhookUpsertBulk) Update(set func(*PaymentWebhookUpsert)) *PaymentWebhookUpsertBulk
- func (u *PaymentWebhookUpsertBulk) UpdateCallbackURL() *PaymentWebhookUpsertBulk
- func (u *PaymentWebhookUpsertBulk) UpdateNewValues() *PaymentWebhookUpsertBulk
- func (u *PaymentWebhookUpsertBulk) UpdateUpdatedAt() *PaymentWebhookUpsertBulk
- func (u *PaymentWebhookUpsertBulk) UpdateWebhookID() *PaymentWebhookUpsertBulk
- func (u *PaymentWebhookUpsertBulk) UpdateWebhookSecret() *PaymentWebhookUpsertBulk
- type PaymentWebhookUpsertOne
- func (u *PaymentWebhookUpsertOne) DoNothing() *PaymentWebhookUpsertOne
- func (u *PaymentWebhookUpsertOne) Exec(ctx context.Context) error
- func (u *PaymentWebhookUpsertOne) ExecX(ctx context.Context)
- func (u *PaymentWebhookUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *PaymentWebhookUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *PaymentWebhookUpsertOne) Ignore() *PaymentWebhookUpsertOne
- func (u *PaymentWebhookUpsertOne) SetCallbackURL(v string) *PaymentWebhookUpsertOne
- func (u *PaymentWebhookUpsertOne) SetUpdatedAt(v time.Time) *PaymentWebhookUpsertOne
- func (u *PaymentWebhookUpsertOne) SetWebhookID(v string) *PaymentWebhookUpsertOne
- func (u *PaymentWebhookUpsertOne) SetWebhookSecret(v string) *PaymentWebhookUpsertOne
- func (u *PaymentWebhookUpsertOne) Update(set func(*PaymentWebhookUpsert)) *PaymentWebhookUpsertOne
- func (u *PaymentWebhookUpsertOne) UpdateCallbackURL() *PaymentWebhookUpsertOne
- func (u *PaymentWebhookUpsertOne) UpdateNewValues() *PaymentWebhookUpsertOne
- func (u *PaymentWebhookUpsertOne) UpdateUpdatedAt() *PaymentWebhookUpsertOne
- func (u *PaymentWebhookUpsertOne) UpdateWebhookID() *PaymentWebhookUpsertOne
- func (u *PaymentWebhookUpsertOne) UpdateWebhookSecret() *PaymentWebhookUpsertOne
- type PaymentWebhooks
- type Policy
- type ProviderCurrencies
- func (pc *ProviderCurrencies) QueryCurrency() *FiatCurrencyQuery
- func (pc *ProviderCurrencies) QueryProvider() *ProviderProfileQuery
- func (pc *ProviderCurrencies) String() string
- func (pc *ProviderCurrencies) Unwrap() *ProviderCurrencies
- func (pc *ProviderCurrencies) Update() *ProviderCurrenciesUpdateOne
- func (pc *ProviderCurrencies) Value(name string) (ent.Value, error)
- type ProviderCurrenciesClient
- func (c *ProviderCurrenciesClient) Create() *ProviderCurrenciesCreate
- func (c *ProviderCurrenciesClient) CreateBulk(builders ...*ProviderCurrenciesCreate) *ProviderCurrenciesCreateBulk
- func (c *ProviderCurrenciesClient) Delete() *ProviderCurrenciesDelete
- func (c *ProviderCurrenciesClient) DeleteOne(pc *ProviderCurrencies) *ProviderCurrenciesDeleteOne
- func (c *ProviderCurrenciesClient) DeleteOneID(id uuid.UUID) *ProviderCurrenciesDeleteOne
- func (c *ProviderCurrenciesClient) Get(ctx context.Context, id uuid.UUID) (*ProviderCurrencies, error)
- func (c *ProviderCurrenciesClient) GetX(ctx context.Context, id uuid.UUID) *ProviderCurrencies
- func (c *ProviderCurrenciesClient) Hooks() []Hook
- func (c *ProviderCurrenciesClient) Intercept(interceptors ...Interceptor)
- func (c *ProviderCurrenciesClient) Interceptors() []Interceptor
- func (c *ProviderCurrenciesClient) MapCreateBulk(slice any, setFunc func(*ProviderCurrenciesCreate, int)) *ProviderCurrenciesCreateBulk
- func (c *ProviderCurrenciesClient) Query() *ProviderCurrenciesQuery
- func (c *ProviderCurrenciesClient) QueryCurrency(pc *ProviderCurrencies) *FiatCurrencyQuery
- func (c *ProviderCurrenciesClient) QueryProvider(pc *ProviderCurrencies) *ProviderProfileQuery
- func (c *ProviderCurrenciesClient) Update() *ProviderCurrenciesUpdate
- func (c *ProviderCurrenciesClient) UpdateOne(pc *ProviderCurrencies) *ProviderCurrenciesUpdateOne
- func (c *ProviderCurrenciesClient) UpdateOneID(id uuid.UUID) *ProviderCurrenciesUpdateOne
- func (c *ProviderCurrenciesClient) Use(hooks ...Hook)
- type ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) Exec(ctx context.Context) error
- func (pcc *ProviderCurrenciesCreate) ExecX(ctx context.Context)
- func (pcc *ProviderCurrenciesCreate) Mutation() *ProviderCurrenciesMutation
- func (pcc *ProviderCurrenciesCreate) OnConflict(opts ...sql.ConflictOption) *ProviderCurrenciesUpsertOne
- func (pcc *ProviderCurrenciesCreate) OnConflictColumns(columns ...string) *ProviderCurrenciesUpsertOne
- func (pcc *ProviderCurrenciesCreate) Save(ctx context.Context) (*ProviderCurrencies, error)
- func (pcc *ProviderCurrenciesCreate) SaveX(ctx context.Context) *ProviderCurrencies
- func (pcc *ProviderCurrenciesCreate) SetAvailableBalance(d decimal.Decimal) *ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) SetCurrency(f *FiatCurrency) *ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) SetCurrencyID(id uuid.UUID) *ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) SetID(u uuid.UUID) *ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) SetIsAvailable(b bool) *ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) SetNillableID(u *uuid.UUID) *ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) SetNillableIsAvailable(b *bool) *ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) SetNillableUpdatedAt(t *time.Time) *ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) SetProvider(p *ProviderProfile) *ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) SetProviderID(id string) *ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) SetReservedBalance(d decimal.Decimal) *ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) SetTotalBalance(d decimal.Decimal) *ProviderCurrenciesCreate
- func (pcc *ProviderCurrenciesCreate) SetUpdatedAt(t time.Time) *ProviderCurrenciesCreate
- type ProviderCurrenciesCreateBulk
- func (pccb *ProviderCurrenciesCreateBulk) Exec(ctx context.Context) error
- func (pccb *ProviderCurrenciesCreateBulk) ExecX(ctx context.Context)
- func (pccb *ProviderCurrenciesCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProviderCurrenciesUpsertBulk
- func (pccb *ProviderCurrenciesCreateBulk) OnConflictColumns(columns ...string) *ProviderCurrenciesUpsertBulk
- func (pccb *ProviderCurrenciesCreateBulk) Save(ctx context.Context) ([]*ProviderCurrencies, error)
- func (pccb *ProviderCurrenciesCreateBulk) SaveX(ctx context.Context) []*ProviderCurrencies
- type ProviderCurrenciesDelete
- type ProviderCurrenciesDeleteOne
- type ProviderCurrenciesEdges
- type ProviderCurrenciesGroupBy
- func (pcgb *ProviderCurrenciesGroupBy) Aggregate(fns ...AggregateFunc) *ProviderCurrenciesGroupBy
- func (s *ProviderCurrenciesGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProviderCurrenciesGroupBy) BoolX(ctx context.Context) bool
- func (s *ProviderCurrenciesGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ProviderCurrenciesGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ProviderCurrenciesGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProviderCurrenciesGroupBy) Float64X(ctx context.Context) float64
- func (s *ProviderCurrenciesGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProviderCurrenciesGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ProviderCurrenciesGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ProviderCurrenciesGroupBy) IntX(ctx context.Context) int
- func (s *ProviderCurrenciesGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ProviderCurrenciesGroupBy) IntsX(ctx context.Context) []int
- func (pcgb *ProviderCurrenciesGroupBy) Scan(ctx context.Context, v any) error
- func (s *ProviderCurrenciesGroupBy) ScanX(ctx context.Context, v any)
- func (s *ProviderCurrenciesGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ProviderCurrenciesGroupBy) StringX(ctx context.Context) string
- func (s *ProviderCurrenciesGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ProviderCurrenciesGroupBy) StringsX(ctx context.Context) []string
- type ProviderCurrenciesMutation
- func (m *ProviderCurrenciesMutation) AddAvailableBalance(d decimal.Decimal)
- func (m *ProviderCurrenciesMutation) AddField(name string, value ent.Value) error
- func (m *ProviderCurrenciesMutation) AddReservedBalance(d decimal.Decimal)
- func (m *ProviderCurrenciesMutation) AddTotalBalance(d decimal.Decimal)
- func (m *ProviderCurrenciesMutation) AddedAvailableBalance() (r decimal.Decimal, exists bool)
- func (m *ProviderCurrenciesMutation) AddedEdges() []string
- func (m *ProviderCurrenciesMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProviderCurrenciesMutation) AddedFields() []string
- func (m *ProviderCurrenciesMutation) AddedIDs(name string) []ent.Value
- func (m *ProviderCurrenciesMutation) AddedReservedBalance() (r decimal.Decimal, exists bool)
- func (m *ProviderCurrenciesMutation) AddedTotalBalance() (r decimal.Decimal, exists bool)
- func (m *ProviderCurrenciesMutation) AvailableBalance() (r decimal.Decimal, exists bool)
- func (m *ProviderCurrenciesMutation) ClearCurrency()
- func (m *ProviderCurrenciesMutation) ClearEdge(name string) error
- func (m *ProviderCurrenciesMutation) ClearField(name string) error
- func (m *ProviderCurrenciesMutation) ClearProvider()
- func (m *ProviderCurrenciesMutation) ClearedEdges() []string
- func (m *ProviderCurrenciesMutation) ClearedFields() []string
- func (m ProviderCurrenciesMutation) Client() *Client
- func (m *ProviderCurrenciesMutation) CurrencyCleared() bool
- func (m *ProviderCurrenciesMutation) CurrencyID() (id uuid.UUID, exists bool)
- func (m *ProviderCurrenciesMutation) CurrencyIDs() (ids []uuid.UUID)
- func (m *ProviderCurrenciesMutation) EdgeCleared(name string) bool
- func (m *ProviderCurrenciesMutation) Field(name string) (ent.Value, bool)
- func (m *ProviderCurrenciesMutation) FieldCleared(name string) bool
- func (m *ProviderCurrenciesMutation) Fields() []string
- func (m *ProviderCurrenciesMutation) ID() (id uuid.UUID, exists bool)
- func (m *ProviderCurrenciesMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *ProviderCurrenciesMutation) IsAvailable() (r bool, exists bool)
- func (m *ProviderCurrenciesMutation) OldAvailableBalance(ctx context.Context) (v decimal.Decimal, err error)
- func (m *ProviderCurrenciesMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProviderCurrenciesMutation) OldIsAvailable(ctx context.Context) (v bool, err error)
- func (m *ProviderCurrenciesMutation) OldReservedBalance(ctx context.Context) (v decimal.Decimal, err error)
- func (m *ProviderCurrenciesMutation) OldTotalBalance(ctx context.Context) (v decimal.Decimal, err error)
- func (m *ProviderCurrenciesMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProviderCurrenciesMutation) Op() Op
- func (m *ProviderCurrenciesMutation) ProviderCleared() bool
- func (m *ProviderCurrenciesMutation) ProviderID() (id string, exists bool)
- func (m *ProviderCurrenciesMutation) ProviderIDs() (ids []string)
- func (m *ProviderCurrenciesMutation) RemovedEdges() []string
- func (m *ProviderCurrenciesMutation) RemovedIDs(name string) []ent.Value
- func (m *ProviderCurrenciesMutation) ReservedBalance() (r decimal.Decimal, exists bool)
- func (m *ProviderCurrenciesMutation) ResetAvailableBalance()
- func (m *ProviderCurrenciesMutation) ResetCurrency()
- func (m *ProviderCurrenciesMutation) ResetEdge(name string) error
- func (m *ProviderCurrenciesMutation) ResetField(name string) error
- func (m *ProviderCurrenciesMutation) ResetIsAvailable()
- func (m *ProviderCurrenciesMutation) ResetProvider()
- func (m *ProviderCurrenciesMutation) ResetReservedBalance()
- func (m *ProviderCurrenciesMutation) ResetTotalBalance()
- func (m *ProviderCurrenciesMutation) ResetUpdatedAt()
- func (m *ProviderCurrenciesMutation) SetAvailableBalance(d decimal.Decimal)
- func (m *ProviderCurrenciesMutation) SetCurrencyID(id uuid.UUID)
- func (m *ProviderCurrenciesMutation) SetField(name string, value ent.Value) error
- func (m *ProviderCurrenciesMutation) SetID(id uuid.UUID)
- func (m *ProviderCurrenciesMutation) SetIsAvailable(b bool)
- func (m *ProviderCurrenciesMutation) SetOp(op Op)
- func (m *ProviderCurrenciesMutation) SetProviderID(id string)
- func (m *ProviderCurrenciesMutation) SetReservedBalance(d decimal.Decimal)
- func (m *ProviderCurrenciesMutation) SetTotalBalance(d decimal.Decimal)
- func (m *ProviderCurrenciesMutation) SetUpdatedAt(t time.Time)
- func (m *ProviderCurrenciesMutation) TotalBalance() (r decimal.Decimal, exists bool)
- func (m ProviderCurrenciesMutation) Tx() (*Tx, error)
- func (m *ProviderCurrenciesMutation) Type() string
- func (m *ProviderCurrenciesMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProviderCurrenciesMutation) Where(ps ...predicate.ProviderCurrencies)
- func (m *ProviderCurrenciesMutation) WhereP(ps ...func(*sql.Selector))
- type ProviderCurrenciesQuery
- func (pcq *ProviderCurrenciesQuery) Aggregate(fns ...AggregateFunc) *ProviderCurrenciesSelect
- func (pcq *ProviderCurrenciesQuery) All(ctx context.Context) ([]*ProviderCurrencies, error)
- func (pcq *ProviderCurrenciesQuery) AllX(ctx context.Context) []*ProviderCurrencies
- func (pcq *ProviderCurrenciesQuery) Clone() *ProviderCurrenciesQuery
- func (pcq *ProviderCurrenciesQuery) Count(ctx context.Context) (int, error)
- func (pcq *ProviderCurrenciesQuery) CountX(ctx context.Context) int
- func (pcq *ProviderCurrenciesQuery) Exist(ctx context.Context) (bool, error)
- func (pcq *ProviderCurrenciesQuery) ExistX(ctx context.Context) bool
- func (pcq *ProviderCurrenciesQuery) First(ctx context.Context) (*ProviderCurrencies, error)
- func (pcq *ProviderCurrenciesQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (pcq *ProviderCurrenciesQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (pcq *ProviderCurrenciesQuery) FirstX(ctx context.Context) *ProviderCurrencies
- func (pcq *ProviderCurrenciesQuery) GroupBy(field string, fields ...string) *ProviderCurrenciesGroupBy
- func (pcq *ProviderCurrenciesQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (pcq *ProviderCurrenciesQuery) IDsX(ctx context.Context) []uuid.UUID
- func (pcq *ProviderCurrenciesQuery) Limit(limit int) *ProviderCurrenciesQuery
- func (pcq *ProviderCurrenciesQuery) Offset(offset int) *ProviderCurrenciesQuery
- func (pcq *ProviderCurrenciesQuery) Only(ctx context.Context) (*ProviderCurrencies, error)
- func (pcq *ProviderCurrenciesQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (pcq *ProviderCurrenciesQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (pcq *ProviderCurrenciesQuery) OnlyX(ctx context.Context) *ProviderCurrencies
- func (pcq *ProviderCurrenciesQuery) Order(o ...providercurrencies.OrderOption) *ProviderCurrenciesQuery
- func (pcq *ProviderCurrenciesQuery) QueryCurrency() *FiatCurrencyQuery
- func (pcq *ProviderCurrenciesQuery) QueryProvider() *ProviderProfileQuery
- func (pcq *ProviderCurrenciesQuery) Select(fields ...string) *ProviderCurrenciesSelect
- func (pcq *ProviderCurrenciesQuery) Unique(unique bool) *ProviderCurrenciesQuery
- func (pcq *ProviderCurrenciesQuery) Where(ps ...predicate.ProviderCurrencies) *ProviderCurrenciesQuery
- func (pcq *ProviderCurrenciesQuery) WithCurrency(opts ...func(*FiatCurrencyQuery)) *ProviderCurrenciesQuery
- func (pcq *ProviderCurrenciesQuery) WithProvider(opts ...func(*ProviderProfileQuery)) *ProviderCurrenciesQuery
- type ProviderCurrenciesSelect
- func (pcs *ProviderCurrenciesSelect) Aggregate(fns ...AggregateFunc) *ProviderCurrenciesSelect
- func (s *ProviderCurrenciesSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProviderCurrenciesSelect) BoolX(ctx context.Context) bool
- func (s *ProviderCurrenciesSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ProviderCurrenciesSelect) BoolsX(ctx context.Context) []bool
- func (s *ProviderCurrenciesSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProviderCurrenciesSelect) Float64X(ctx context.Context) float64
- func (s *ProviderCurrenciesSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProviderCurrenciesSelect) Float64sX(ctx context.Context) []float64
- func (s *ProviderCurrenciesSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ProviderCurrenciesSelect) IntX(ctx context.Context) int
- func (s *ProviderCurrenciesSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ProviderCurrenciesSelect) IntsX(ctx context.Context) []int
- func (pcs *ProviderCurrenciesSelect) Scan(ctx context.Context, v any) error
- func (s *ProviderCurrenciesSelect) ScanX(ctx context.Context, v any)
- func (s *ProviderCurrenciesSelect) String(ctx context.Context) (_ string, err error)
- func (s *ProviderCurrenciesSelect) StringX(ctx context.Context) string
- func (s *ProviderCurrenciesSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ProviderCurrenciesSelect) StringsX(ctx context.Context) []string
- type ProviderCurrenciesSlice
- type ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) AddAvailableBalance(d decimal.Decimal) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) AddReservedBalance(d decimal.Decimal) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) AddTotalBalance(d decimal.Decimal) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) ClearCurrency() *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) ClearProvider() *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) Exec(ctx context.Context) error
- func (pcu *ProviderCurrenciesUpdate) ExecX(ctx context.Context)
- func (pcu *ProviderCurrenciesUpdate) Mutation() *ProviderCurrenciesMutation
- func (pcu *ProviderCurrenciesUpdate) Save(ctx context.Context) (int, error)
- func (pcu *ProviderCurrenciesUpdate) SaveX(ctx context.Context) int
- func (pcu *ProviderCurrenciesUpdate) SetAvailableBalance(d decimal.Decimal) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) SetCurrency(f *FiatCurrency) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) SetCurrencyID(id uuid.UUID) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) SetIsAvailable(b bool) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) SetNillableAvailableBalance(d *decimal.Decimal) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) SetNillableIsAvailable(b *bool) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) SetNillableReservedBalance(d *decimal.Decimal) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) SetNillableTotalBalance(d *decimal.Decimal) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) SetProvider(p *ProviderProfile) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) SetProviderID(id string) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) SetReservedBalance(d decimal.Decimal) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) SetTotalBalance(d decimal.Decimal) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) SetUpdatedAt(t time.Time) *ProviderCurrenciesUpdate
- func (pcu *ProviderCurrenciesUpdate) Where(ps ...predicate.ProviderCurrencies) *ProviderCurrenciesUpdate
- type ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) AddAvailableBalance(d decimal.Decimal) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) AddReservedBalance(d decimal.Decimal) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) AddTotalBalance(d decimal.Decimal) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) ClearCurrency() *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) ClearProvider() *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) Exec(ctx context.Context) error
- func (pcuo *ProviderCurrenciesUpdateOne) ExecX(ctx context.Context)
- func (pcuo *ProviderCurrenciesUpdateOne) Mutation() *ProviderCurrenciesMutation
- func (pcuo *ProviderCurrenciesUpdateOne) Save(ctx context.Context) (*ProviderCurrencies, error)
- func (pcuo *ProviderCurrenciesUpdateOne) SaveX(ctx context.Context) *ProviderCurrencies
- func (pcuo *ProviderCurrenciesUpdateOne) Select(field string, fields ...string) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetAvailableBalance(d decimal.Decimal) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetCurrency(f *FiatCurrency) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetCurrencyID(id uuid.UUID) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetIsAvailable(b bool) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetNillableAvailableBalance(d *decimal.Decimal) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetNillableIsAvailable(b *bool) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetNillableReservedBalance(d *decimal.Decimal) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetNillableTotalBalance(d *decimal.Decimal) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetProvider(p *ProviderProfile) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetProviderID(id string) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetReservedBalance(d decimal.Decimal) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetTotalBalance(d decimal.Decimal) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) SetUpdatedAt(t time.Time) *ProviderCurrenciesUpdateOne
- func (pcuo *ProviderCurrenciesUpdateOne) Where(ps ...predicate.ProviderCurrencies) *ProviderCurrenciesUpdateOne
- type ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) AddAvailableBalance(v decimal.Decimal) *ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) AddReservedBalance(v decimal.Decimal) *ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) AddTotalBalance(v decimal.Decimal) *ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) SetAvailableBalance(v decimal.Decimal) *ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) SetIsAvailable(v bool) *ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) SetReservedBalance(v decimal.Decimal) *ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) SetTotalBalance(v decimal.Decimal) *ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) SetUpdatedAt(v time.Time) *ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) UpdateAvailableBalance() *ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) UpdateIsAvailable() *ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) UpdateReservedBalance() *ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) UpdateTotalBalance() *ProviderCurrenciesUpsert
- func (u *ProviderCurrenciesUpsert) UpdateUpdatedAt() *ProviderCurrenciesUpsert
- type ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) AddAvailableBalance(v decimal.Decimal) *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) AddReservedBalance(v decimal.Decimal) *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) AddTotalBalance(v decimal.Decimal) *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) DoNothing() *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) Exec(ctx context.Context) error
- func (u *ProviderCurrenciesUpsertBulk) ExecX(ctx context.Context)
- func (u *ProviderCurrenciesUpsertBulk) Ignore() *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) SetAvailableBalance(v decimal.Decimal) *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) SetIsAvailable(v bool) *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) SetReservedBalance(v decimal.Decimal) *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) SetTotalBalance(v decimal.Decimal) *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) SetUpdatedAt(v time.Time) *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) Update(set func(*ProviderCurrenciesUpsert)) *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) UpdateAvailableBalance() *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) UpdateIsAvailable() *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) UpdateNewValues() *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) UpdateReservedBalance() *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) UpdateTotalBalance() *ProviderCurrenciesUpsertBulk
- func (u *ProviderCurrenciesUpsertBulk) UpdateUpdatedAt() *ProviderCurrenciesUpsertBulk
- type ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) AddAvailableBalance(v decimal.Decimal) *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) AddReservedBalance(v decimal.Decimal) *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) AddTotalBalance(v decimal.Decimal) *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) DoNothing() *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) Exec(ctx context.Context) error
- func (u *ProviderCurrenciesUpsertOne) ExecX(ctx context.Context)
- func (u *ProviderCurrenciesUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *ProviderCurrenciesUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *ProviderCurrenciesUpsertOne) Ignore() *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) SetAvailableBalance(v decimal.Decimal) *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) SetIsAvailable(v bool) *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) SetReservedBalance(v decimal.Decimal) *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) SetTotalBalance(v decimal.Decimal) *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) SetUpdatedAt(v time.Time) *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) Update(set func(*ProviderCurrenciesUpsert)) *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) UpdateAvailableBalance() *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) UpdateIsAvailable() *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) UpdateNewValues() *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) UpdateReservedBalance() *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) UpdateTotalBalance() *ProviderCurrenciesUpsertOne
- func (u *ProviderCurrenciesUpsertOne) UpdateUpdatedAt() *ProviderCurrenciesUpsertOne
- type ProviderOrderToken
- func (pot *ProviderOrderToken) QueryCurrency() *FiatCurrencyQuery
- func (pot *ProviderOrderToken) QueryProvider() *ProviderProfileQuery
- func (pot *ProviderOrderToken) QueryToken() *TokenQuery
- func (pot *ProviderOrderToken) String() string
- func (pot *ProviderOrderToken) Unwrap() *ProviderOrderToken
- func (pot *ProviderOrderToken) Update() *ProviderOrderTokenUpdateOne
- func (pot *ProviderOrderToken) Value(name string) (ent.Value, error)
- type ProviderOrderTokenClient
- func (c *ProviderOrderTokenClient) Create() *ProviderOrderTokenCreate
- func (c *ProviderOrderTokenClient) CreateBulk(builders ...*ProviderOrderTokenCreate) *ProviderOrderTokenCreateBulk
- func (c *ProviderOrderTokenClient) Delete() *ProviderOrderTokenDelete
- func (c *ProviderOrderTokenClient) DeleteOne(pot *ProviderOrderToken) *ProviderOrderTokenDeleteOne
- func (c *ProviderOrderTokenClient) DeleteOneID(id int) *ProviderOrderTokenDeleteOne
- func (c *ProviderOrderTokenClient) Get(ctx context.Context, id int) (*ProviderOrderToken, error)
- func (c *ProviderOrderTokenClient) GetX(ctx context.Context, id int) *ProviderOrderToken
- func (c *ProviderOrderTokenClient) Hooks() []Hook
- func (c *ProviderOrderTokenClient) Intercept(interceptors ...Interceptor)
- func (c *ProviderOrderTokenClient) Interceptors() []Interceptor
- func (c *ProviderOrderTokenClient) MapCreateBulk(slice any, setFunc func(*ProviderOrderTokenCreate, int)) *ProviderOrderTokenCreateBulk
- func (c *ProviderOrderTokenClient) Query() *ProviderOrderTokenQuery
- func (c *ProviderOrderTokenClient) QueryCurrency(pot *ProviderOrderToken) *FiatCurrencyQuery
- func (c *ProviderOrderTokenClient) QueryProvider(pot *ProviderOrderToken) *ProviderProfileQuery
- func (c *ProviderOrderTokenClient) QueryToken(pot *ProviderOrderToken) *TokenQuery
- func (c *ProviderOrderTokenClient) Update() *ProviderOrderTokenUpdate
- func (c *ProviderOrderTokenClient) UpdateOne(pot *ProviderOrderToken) *ProviderOrderTokenUpdateOne
- func (c *ProviderOrderTokenClient) UpdateOneID(id int) *ProviderOrderTokenUpdateOne
- func (c *ProviderOrderTokenClient) Use(hooks ...Hook)
- type ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) Exec(ctx context.Context) error
- func (potc *ProviderOrderTokenCreate) ExecX(ctx context.Context)
- func (potc *ProviderOrderTokenCreate) Mutation() *ProviderOrderTokenMutation
- func (potc *ProviderOrderTokenCreate) OnConflict(opts ...sql.ConflictOption) *ProviderOrderTokenUpsertOne
- func (potc *ProviderOrderTokenCreate) OnConflictColumns(columns ...string) *ProviderOrderTokenUpsertOne
- func (potc *ProviderOrderTokenCreate) Save(ctx context.Context) (*ProviderOrderToken, error)
- func (potc *ProviderOrderTokenCreate) SaveX(ctx context.Context) *ProviderOrderToken
- func (potc *ProviderOrderTokenCreate) SetAddress(s string) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetConversionRateType(prt providerordertoken.ConversionRateType) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetCreatedAt(t time.Time) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetCurrency(f *FiatCurrency) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetCurrencyID(id uuid.UUID) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetFixedConversionRate(d decimal.Decimal) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetFloatingConversionRate(d decimal.Decimal) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetMaxOrderAmount(d decimal.Decimal) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetMinOrderAmount(d decimal.Decimal) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetNetwork(s string) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetNillableAddress(s *string) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetNillableCreatedAt(t *time.Time) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetNillableNetwork(s *string) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetNillableUpdatedAt(t *time.Time) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetProvider(p *ProviderProfile) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetProviderID(id string) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetRateSlippage(d decimal.Decimal) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetToken(t *Token) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetTokenID(id int) *ProviderOrderTokenCreate
- func (potc *ProviderOrderTokenCreate) SetUpdatedAt(t time.Time) *ProviderOrderTokenCreate
- type ProviderOrderTokenCreateBulk
- func (potcb *ProviderOrderTokenCreateBulk) Exec(ctx context.Context) error
- func (potcb *ProviderOrderTokenCreateBulk) ExecX(ctx context.Context)
- func (potcb *ProviderOrderTokenCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProviderOrderTokenUpsertBulk
- func (potcb *ProviderOrderTokenCreateBulk) OnConflictColumns(columns ...string) *ProviderOrderTokenUpsertBulk
- func (potcb *ProviderOrderTokenCreateBulk) Save(ctx context.Context) ([]*ProviderOrderToken, error)
- func (potcb *ProviderOrderTokenCreateBulk) SaveX(ctx context.Context) []*ProviderOrderToken
- type ProviderOrderTokenDelete
- type ProviderOrderTokenDeleteOne
- type ProviderOrderTokenEdges
- type ProviderOrderTokenGroupBy
- func (potgb *ProviderOrderTokenGroupBy) Aggregate(fns ...AggregateFunc) *ProviderOrderTokenGroupBy
- func (s *ProviderOrderTokenGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProviderOrderTokenGroupBy) BoolX(ctx context.Context) bool
- func (s *ProviderOrderTokenGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ProviderOrderTokenGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ProviderOrderTokenGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProviderOrderTokenGroupBy) Float64X(ctx context.Context) float64
- func (s *ProviderOrderTokenGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProviderOrderTokenGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ProviderOrderTokenGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ProviderOrderTokenGroupBy) IntX(ctx context.Context) int
- func (s *ProviderOrderTokenGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ProviderOrderTokenGroupBy) IntsX(ctx context.Context) []int
- func (potgb *ProviderOrderTokenGroupBy) Scan(ctx context.Context, v any) error
- func (s *ProviderOrderTokenGroupBy) ScanX(ctx context.Context, v any)
- func (s *ProviderOrderTokenGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ProviderOrderTokenGroupBy) StringX(ctx context.Context) string
- func (s *ProviderOrderTokenGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ProviderOrderTokenGroupBy) StringsX(ctx context.Context) []string
- type ProviderOrderTokenMutation
- func (m *ProviderOrderTokenMutation) AddField(name string, value ent.Value) error
- func (m *ProviderOrderTokenMutation) AddFixedConversionRate(d decimal.Decimal)
- func (m *ProviderOrderTokenMutation) AddFloatingConversionRate(d decimal.Decimal)
- func (m *ProviderOrderTokenMutation) AddMaxOrderAmount(d decimal.Decimal)
- func (m *ProviderOrderTokenMutation) AddMinOrderAmount(d decimal.Decimal)
- func (m *ProviderOrderTokenMutation) AddRateSlippage(d decimal.Decimal)
- func (m *ProviderOrderTokenMutation) AddedEdges() []string
- func (m *ProviderOrderTokenMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProviderOrderTokenMutation) AddedFields() []string
- func (m *ProviderOrderTokenMutation) AddedFixedConversionRate() (r decimal.Decimal, exists bool)
- func (m *ProviderOrderTokenMutation) AddedFloatingConversionRate() (r decimal.Decimal, exists bool)
- func (m *ProviderOrderTokenMutation) AddedIDs(name string) []ent.Value
- func (m *ProviderOrderTokenMutation) AddedMaxOrderAmount() (r decimal.Decimal, exists bool)
- func (m *ProviderOrderTokenMutation) AddedMinOrderAmount() (r decimal.Decimal, exists bool)
- func (m *ProviderOrderTokenMutation) AddedRateSlippage() (r decimal.Decimal, exists bool)
- func (m *ProviderOrderTokenMutation) Address() (r string, exists bool)
- func (m *ProviderOrderTokenMutation) AddressCleared() bool
- func (m *ProviderOrderTokenMutation) ClearAddress()
- func (m *ProviderOrderTokenMutation) ClearCurrency()
- func (m *ProviderOrderTokenMutation) ClearEdge(name string) error
- func (m *ProviderOrderTokenMutation) ClearField(name string) error
- func (m *ProviderOrderTokenMutation) ClearNetwork()
- func (m *ProviderOrderTokenMutation) ClearProvider()
- func (m *ProviderOrderTokenMutation) ClearToken()
- func (m *ProviderOrderTokenMutation) ClearedEdges() []string
- func (m *ProviderOrderTokenMutation) ClearedFields() []string
- func (m ProviderOrderTokenMutation) Client() *Client
- func (m *ProviderOrderTokenMutation) ConversionRateType() (r providerordertoken.ConversionRateType, exists bool)
- func (m *ProviderOrderTokenMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ProviderOrderTokenMutation) CurrencyCleared() bool
- func (m *ProviderOrderTokenMutation) CurrencyID() (id uuid.UUID, exists bool)
- func (m *ProviderOrderTokenMutation) CurrencyIDs() (ids []uuid.UUID)
- func (m *ProviderOrderTokenMutation) EdgeCleared(name string) bool
- func (m *ProviderOrderTokenMutation) Field(name string) (ent.Value, bool)
- func (m *ProviderOrderTokenMutation) FieldCleared(name string) bool
- func (m *ProviderOrderTokenMutation) Fields() []string
- func (m *ProviderOrderTokenMutation) FixedConversionRate() (r decimal.Decimal, exists bool)
- func (m *ProviderOrderTokenMutation) FloatingConversionRate() (r decimal.Decimal, exists bool)
- func (m *ProviderOrderTokenMutation) ID() (id int, exists bool)
- func (m *ProviderOrderTokenMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ProviderOrderTokenMutation) MaxOrderAmount() (r decimal.Decimal, exists bool)
- func (m *ProviderOrderTokenMutation) MinOrderAmount() (r decimal.Decimal, exists bool)
- func (m *ProviderOrderTokenMutation) Network() (r string, exists bool)
- func (m *ProviderOrderTokenMutation) NetworkCleared() bool
- func (m *ProviderOrderTokenMutation) OldAddress(ctx context.Context) (v string, err error)
- func (m *ProviderOrderTokenMutation) OldConversionRateType(ctx context.Context) (v providerordertoken.ConversionRateType, err error)
- func (m *ProviderOrderTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProviderOrderTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProviderOrderTokenMutation) OldFixedConversionRate(ctx context.Context) (v decimal.Decimal, err error)
- func (m *ProviderOrderTokenMutation) OldFloatingConversionRate(ctx context.Context) (v decimal.Decimal, err error)
- func (m *ProviderOrderTokenMutation) OldMaxOrderAmount(ctx context.Context) (v decimal.Decimal, err error)
- func (m *ProviderOrderTokenMutation) OldMinOrderAmount(ctx context.Context) (v decimal.Decimal, err error)
- func (m *ProviderOrderTokenMutation) OldNetwork(ctx context.Context) (v string, err error)
- func (m *ProviderOrderTokenMutation) OldRateSlippage(ctx context.Context) (v decimal.Decimal, err error)
- func (m *ProviderOrderTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProviderOrderTokenMutation) Op() Op
- func (m *ProviderOrderTokenMutation) ProviderCleared() bool
- func (m *ProviderOrderTokenMutation) ProviderID() (id string, exists bool)
- func (m *ProviderOrderTokenMutation) ProviderIDs() (ids []string)
- func (m *ProviderOrderTokenMutation) RateSlippage() (r decimal.Decimal, exists bool)
- func (m *ProviderOrderTokenMutation) RemovedEdges() []string
- func (m *ProviderOrderTokenMutation) RemovedIDs(name string) []ent.Value
- func (m *ProviderOrderTokenMutation) ResetAddress()
- func (m *ProviderOrderTokenMutation) ResetConversionRateType()
- func (m *ProviderOrderTokenMutation) ResetCreatedAt()
- func (m *ProviderOrderTokenMutation) ResetCurrency()
- func (m *ProviderOrderTokenMutation) ResetEdge(name string) error
- func (m *ProviderOrderTokenMutation) ResetField(name string) error
- func (m *ProviderOrderTokenMutation) ResetFixedConversionRate()
- func (m *ProviderOrderTokenMutation) ResetFloatingConversionRate()
- func (m *ProviderOrderTokenMutation) ResetMaxOrderAmount()
- func (m *ProviderOrderTokenMutation) ResetMinOrderAmount()
- func (m *ProviderOrderTokenMutation) ResetNetwork()
- func (m *ProviderOrderTokenMutation) ResetProvider()
- func (m *ProviderOrderTokenMutation) ResetRateSlippage()
- func (m *ProviderOrderTokenMutation) ResetToken()
- func (m *ProviderOrderTokenMutation) ResetUpdatedAt()
- func (m *ProviderOrderTokenMutation) SetAddress(s string)
- func (m *ProviderOrderTokenMutation) SetConversionRateType(prt providerordertoken.ConversionRateType)
- func (m *ProviderOrderTokenMutation) SetCreatedAt(t time.Time)
- func (m *ProviderOrderTokenMutation) SetCurrencyID(id uuid.UUID)
- func (m *ProviderOrderTokenMutation) SetField(name string, value ent.Value) error
- func (m *ProviderOrderTokenMutation) SetFixedConversionRate(d decimal.Decimal)
- func (m *ProviderOrderTokenMutation) SetFloatingConversionRate(d decimal.Decimal)
- func (m *ProviderOrderTokenMutation) SetMaxOrderAmount(d decimal.Decimal)
- func (m *ProviderOrderTokenMutation) SetMinOrderAmount(d decimal.Decimal)
- func (m *ProviderOrderTokenMutation) SetNetwork(s string)
- func (m *ProviderOrderTokenMutation) SetOp(op Op)
- func (m *ProviderOrderTokenMutation) SetProviderID(id string)
- func (m *ProviderOrderTokenMutation) SetRateSlippage(d decimal.Decimal)
- func (m *ProviderOrderTokenMutation) SetTokenID(id int)
- func (m *ProviderOrderTokenMutation) SetUpdatedAt(t time.Time)
- func (m *ProviderOrderTokenMutation) TokenCleared() bool
- func (m *ProviderOrderTokenMutation) TokenID() (id int, exists bool)
- func (m *ProviderOrderTokenMutation) TokenIDs() (ids []int)
- func (m ProviderOrderTokenMutation) Tx() (*Tx, error)
- func (m *ProviderOrderTokenMutation) Type() string
- func (m *ProviderOrderTokenMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProviderOrderTokenMutation) Where(ps ...predicate.ProviderOrderToken)
- func (m *ProviderOrderTokenMutation) WhereP(ps ...func(*sql.Selector))
- type ProviderOrderTokenQuery
- func (potq *ProviderOrderTokenQuery) Aggregate(fns ...AggregateFunc) *ProviderOrderTokenSelect
- func (potq *ProviderOrderTokenQuery) All(ctx context.Context) ([]*ProviderOrderToken, error)
- func (potq *ProviderOrderTokenQuery) AllX(ctx context.Context) []*ProviderOrderToken
- func (potq *ProviderOrderTokenQuery) Clone() *ProviderOrderTokenQuery
- func (potq *ProviderOrderTokenQuery) Count(ctx context.Context) (int, error)
- func (potq *ProviderOrderTokenQuery) CountX(ctx context.Context) int
- func (potq *ProviderOrderTokenQuery) Exist(ctx context.Context) (bool, error)
- func (potq *ProviderOrderTokenQuery) ExistX(ctx context.Context) bool
- func (potq *ProviderOrderTokenQuery) First(ctx context.Context) (*ProviderOrderToken, error)
- func (potq *ProviderOrderTokenQuery) FirstID(ctx context.Context) (id int, err error)
- func (potq *ProviderOrderTokenQuery) FirstIDX(ctx context.Context) int
- func (potq *ProviderOrderTokenQuery) FirstX(ctx context.Context) *ProviderOrderToken
- func (potq *ProviderOrderTokenQuery) GroupBy(field string, fields ...string) *ProviderOrderTokenGroupBy
- func (potq *ProviderOrderTokenQuery) IDs(ctx context.Context) (ids []int, err error)
- func (potq *ProviderOrderTokenQuery) IDsX(ctx context.Context) []int
- func (potq *ProviderOrderTokenQuery) Limit(limit int) *ProviderOrderTokenQuery
- func (potq *ProviderOrderTokenQuery) Offset(offset int) *ProviderOrderTokenQuery
- func (potq *ProviderOrderTokenQuery) Only(ctx context.Context) (*ProviderOrderToken, error)
- func (potq *ProviderOrderTokenQuery) OnlyID(ctx context.Context) (id int, err error)
- func (potq *ProviderOrderTokenQuery) OnlyIDX(ctx context.Context) int
- func (potq *ProviderOrderTokenQuery) OnlyX(ctx context.Context) *ProviderOrderToken
- func (potq *ProviderOrderTokenQuery) Order(o ...providerordertoken.OrderOption) *ProviderOrderTokenQuery
- func (potq *ProviderOrderTokenQuery) QueryCurrency() *FiatCurrencyQuery
- func (potq *ProviderOrderTokenQuery) QueryProvider() *ProviderProfileQuery
- func (potq *ProviderOrderTokenQuery) QueryToken() *TokenQuery
- func (potq *ProviderOrderTokenQuery) Select(fields ...string) *ProviderOrderTokenSelect
- func (potq *ProviderOrderTokenQuery) Unique(unique bool) *ProviderOrderTokenQuery
- func (potq *ProviderOrderTokenQuery) Where(ps ...predicate.ProviderOrderToken) *ProviderOrderTokenQuery
- func (potq *ProviderOrderTokenQuery) WithCurrency(opts ...func(*FiatCurrencyQuery)) *ProviderOrderTokenQuery
- func (potq *ProviderOrderTokenQuery) WithProvider(opts ...func(*ProviderProfileQuery)) *ProviderOrderTokenQuery
- func (potq *ProviderOrderTokenQuery) WithToken(opts ...func(*TokenQuery)) *ProviderOrderTokenQuery
- type ProviderOrderTokenSelect
- func (pots *ProviderOrderTokenSelect) Aggregate(fns ...AggregateFunc) *ProviderOrderTokenSelect
- func (s *ProviderOrderTokenSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProviderOrderTokenSelect) BoolX(ctx context.Context) bool
- func (s *ProviderOrderTokenSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ProviderOrderTokenSelect) BoolsX(ctx context.Context) []bool
- func (s *ProviderOrderTokenSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProviderOrderTokenSelect) Float64X(ctx context.Context) float64
- func (s *ProviderOrderTokenSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProviderOrderTokenSelect) Float64sX(ctx context.Context) []float64
- func (s *ProviderOrderTokenSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ProviderOrderTokenSelect) IntX(ctx context.Context) int
- func (s *ProviderOrderTokenSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ProviderOrderTokenSelect) IntsX(ctx context.Context) []int
- func (pots *ProviderOrderTokenSelect) Scan(ctx context.Context, v any) error
- func (s *ProviderOrderTokenSelect) ScanX(ctx context.Context, v any)
- func (s *ProviderOrderTokenSelect) String(ctx context.Context) (_ string, err error)
- func (s *ProviderOrderTokenSelect) StringX(ctx context.Context) string
- func (s *ProviderOrderTokenSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ProviderOrderTokenSelect) StringsX(ctx context.Context) []string
- type ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) AddFixedConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) AddFloatingConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) AddMaxOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) AddMinOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) AddRateSlippage(d decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) ClearAddress() *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) ClearCurrency() *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) ClearNetwork() *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) ClearProvider() *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) ClearToken() *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) Exec(ctx context.Context) error
- func (potu *ProviderOrderTokenUpdate) ExecX(ctx context.Context)
- func (potu *ProviderOrderTokenUpdate) Mutation() *ProviderOrderTokenMutation
- func (potu *ProviderOrderTokenUpdate) Save(ctx context.Context) (int, error)
- func (potu *ProviderOrderTokenUpdate) SaveX(ctx context.Context) int
- func (potu *ProviderOrderTokenUpdate) SetAddress(s string) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetConversionRateType(prt providerordertoken.ConversionRateType) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetCurrency(f *FiatCurrency) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetCurrencyID(id uuid.UUID) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetFixedConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetFloatingConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetMaxOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetMinOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetNetwork(s string) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetNillableAddress(s *string) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetNillableConversionRateType(prt *providerordertoken.ConversionRateType) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetNillableFixedConversionRate(d *decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetNillableFloatingConversionRate(d *decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetNillableMaxOrderAmount(d *decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetNillableMinOrderAmount(d *decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetNillableNetwork(s *string) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetNillableRateSlippage(d *decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetProvider(p *ProviderProfile) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetProviderID(id string) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetRateSlippage(d decimal.Decimal) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetToken(t *Token) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetTokenID(id int) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) SetUpdatedAt(t time.Time) *ProviderOrderTokenUpdate
- func (potu *ProviderOrderTokenUpdate) Where(ps ...predicate.ProviderOrderToken) *ProviderOrderTokenUpdate
- type ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) AddFixedConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) AddFloatingConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) AddMaxOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) AddMinOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) AddRateSlippage(d decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) ClearAddress() *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) ClearCurrency() *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) ClearNetwork() *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) ClearProvider() *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) ClearToken() *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) Exec(ctx context.Context) error
- func (potuo *ProviderOrderTokenUpdateOne) ExecX(ctx context.Context)
- func (potuo *ProviderOrderTokenUpdateOne) Mutation() *ProviderOrderTokenMutation
- func (potuo *ProviderOrderTokenUpdateOne) Save(ctx context.Context) (*ProviderOrderToken, error)
- func (potuo *ProviderOrderTokenUpdateOne) SaveX(ctx context.Context) *ProviderOrderToken
- func (potuo *ProviderOrderTokenUpdateOne) Select(field string, fields ...string) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetAddress(s string) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetConversionRateType(prt providerordertoken.ConversionRateType) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetCurrency(f *FiatCurrency) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetCurrencyID(id uuid.UUID) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetFixedConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetFloatingConversionRate(d decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetMaxOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetMinOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetNetwork(s string) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetNillableAddress(s *string) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetNillableConversionRateType(prt *providerordertoken.ConversionRateType) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetNillableFixedConversionRate(d *decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetNillableFloatingConversionRate(d *decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetNillableMaxOrderAmount(d *decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetNillableMinOrderAmount(d *decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetNillableNetwork(s *string) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetNillableRateSlippage(d *decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetProvider(p *ProviderProfile) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetProviderID(id string) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetRateSlippage(d decimal.Decimal) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetToken(t *Token) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetTokenID(id int) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) SetUpdatedAt(t time.Time) *ProviderOrderTokenUpdateOne
- func (potuo *ProviderOrderTokenUpdateOne) Where(ps ...predicate.ProviderOrderToken) *ProviderOrderTokenUpdateOne
- type ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) AddFixedConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) AddFloatingConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) AddMaxOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) AddMinOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) AddRateSlippage(v decimal.Decimal) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) ClearAddress() *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) ClearNetwork() *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) SetAddress(v string) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) SetConversionRateType(v providerordertoken.ConversionRateType) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) SetFixedConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) SetFloatingConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) SetMaxOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) SetMinOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) SetNetwork(v string) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) SetRateSlippage(v decimal.Decimal) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) SetUpdatedAt(v time.Time) *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) UpdateAddress() *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) UpdateConversionRateType() *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) UpdateFixedConversionRate() *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) UpdateFloatingConversionRate() *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) UpdateMaxOrderAmount() *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) UpdateMinOrderAmount() *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) UpdateNetwork() *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) UpdateRateSlippage() *ProviderOrderTokenUpsert
- func (u *ProviderOrderTokenUpsert) UpdateUpdatedAt() *ProviderOrderTokenUpsert
- type ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) AddFixedConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) AddFloatingConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) AddMaxOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) AddMinOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) AddRateSlippage(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) ClearAddress() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) ClearNetwork() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) DoNothing() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) Exec(ctx context.Context) error
- func (u *ProviderOrderTokenUpsertBulk) ExecX(ctx context.Context)
- func (u *ProviderOrderTokenUpsertBulk) Ignore() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) SetAddress(v string) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) SetConversionRateType(v providerordertoken.ConversionRateType) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) SetFixedConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) SetFloatingConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) SetMaxOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) SetMinOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) SetNetwork(v string) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) SetRateSlippage(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) SetUpdatedAt(v time.Time) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) Update(set func(*ProviderOrderTokenUpsert)) *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) UpdateAddress() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) UpdateConversionRateType() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) UpdateFixedConversionRate() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) UpdateFloatingConversionRate() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) UpdateMaxOrderAmount() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) UpdateMinOrderAmount() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) UpdateNetwork() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) UpdateNewValues() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) UpdateRateSlippage() *ProviderOrderTokenUpsertBulk
- func (u *ProviderOrderTokenUpsertBulk) UpdateUpdatedAt() *ProviderOrderTokenUpsertBulk
- type ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) AddFixedConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) AddFloatingConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) AddMaxOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) AddMinOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) AddRateSlippage(v decimal.Decimal) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) ClearAddress() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) ClearNetwork() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) DoNothing() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) Exec(ctx context.Context) error
- func (u *ProviderOrderTokenUpsertOne) ExecX(ctx context.Context)
- func (u *ProviderOrderTokenUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *ProviderOrderTokenUpsertOne) IDX(ctx context.Context) int
- func (u *ProviderOrderTokenUpsertOne) Ignore() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) SetAddress(v string) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) SetConversionRateType(v providerordertoken.ConversionRateType) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) SetFixedConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) SetFloatingConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) SetMaxOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) SetMinOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) SetNetwork(v string) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) SetRateSlippage(v decimal.Decimal) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) SetUpdatedAt(v time.Time) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) Update(set func(*ProviderOrderTokenUpsert)) *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) UpdateAddress() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) UpdateConversionRateType() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) UpdateFixedConversionRate() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) UpdateFloatingConversionRate() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) UpdateMaxOrderAmount() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) UpdateMinOrderAmount() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) UpdateNetwork() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) UpdateNewValues() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) UpdateRateSlippage() *ProviderOrderTokenUpsertOne
- func (u *ProviderOrderTokenUpsertOne) UpdateUpdatedAt() *ProviderOrderTokenUpsertOne
- type ProviderOrderTokens
- type ProviderProfile
- func (pp *ProviderProfile) QueryAPIKey() *APIKeyQuery
- func (pp *ProviderProfile) QueryAssignedOrders() *LockPaymentOrderQuery
- func (pp *ProviderProfile) QueryOrderTokens() *ProviderOrderTokenQuery
- func (pp *ProviderProfile) QueryProviderCurrencies() *ProviderCurrenciesQuery
- func (pp *ProviderProfile) QueryProviderRating() *ProviderRatingQuery
- func (pp *ProviderProfile) QueryProvisionBuckets() *ProvisionBucketQuery
- func (pp *ProviderProfile) QueryUser() *UserQuery
- func (pp *ProviderProfile) String() string
- func (pp *ProviderProfile) Unwrap() *ProviderProfile
- func (pp *ProviderProfile) Update() *ProviderProfileUpdateOne
- func (pp *ProviderProfile) Value(name string) (ent.Value, error)
- type ProviderProfileClient
- func (c *ProviderProfileClient) Create() *ProviderProfileCreate
- func (c *ProviderProfileClient) CreateBulk(builders ...*ProviderProfileCreate) *ProviderProfileCreateBulk
- func (c *ProviderProfileClient) Delete() *ProviderProfileDelete
- func (c *ProviderProfileClient) DeleteOne(pp *ProviderProfile) *ProviderProfileDeleteOne
- func (c *ProviderProfileClient) DeleteOneID(id string) *ProviderProfileDeleteOne
- func (c *ProviderProfileClient) Get(ctx context.Context, id string) (*ProviderProfile, error)
- func (c *ProviderProfileClient) GetX(ctx context.Context, id string) *ProviderProfile
- func (c *ProviderProfileClient) Hooks() []Hook
- func (c *ProviderProfileClient) Intercept(interceptors ...Interceptor)
- func (c *ProviderProfileClient) Interceptors() []Interceptor
- func (c *ProviderProfileClient) MapCreateBulk(slice any, setFunc func(*ProviderProfileCreate, int)) *ProviderProfileCreateBulk
- func (c *ProviderProfileClient) Query() *ProviderProfileQuery
- func (c *ProviderProfileClient) QueryAPIKey(pp *ProviderProfile) *APIKeyQuery
- func (c *ProviderProfileClient) QueryAssignedOrders(pp *ProviderProfile) *LockPaymentOrderQuery
- func (c *ProviderProfileClient) QueryOrderTokens(pp *ProviderProfile) *ProviderOrderTokenQuery
- func (c *ProviderProfileClient) QueryProviderCurrencies(pp *ProviderProfile) *ProviderCurrenciesQuery
- func (c *ProviderProfileClient) QueryProviderRating(pp *ProviderProfile) *ProviderRatingQuery
- func (c *ProviderProfileClient) QueryProvisionBuckets(pp *ProviderProfile) *ProvisionBucketQuery
- func (c *ProviderProfileClient) QueryUser(pp *ProviderProfile) *UserQuery
- func (c *ProviderProfileClient) Update() *ProviderProfileUpdate
- func (c *ProviderProfileClient) UpdateOne(pp *ProviderProfile) *ProviderProfileUpdateOne
- func (c *ProviderProfileClient) UpdateOneID(id string) *ProviderProfileUpdateOne
- func (c *ProviderProfileClient) Use(hooks ...Hook)
- type ProviderProfileCreate
- func (ppc *ProviderProfileCreate) AddAssignedOrderIDs(ids ...uuid.UUID) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) AddAssignedOrders(l ...*LockPaymentOrder) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) AddOrderTokenIDs(ids ...int) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) AddOrderTokens(p ...*ProviderOrderToken) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) AddProviderCurrencies(p ...*ProviderCurrencies) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) AddProviderCurrencyIDs(ids ...uuid.UUID) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) AddProvisionBucketIDs(ids ...int) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) AddProvisionBuckets(p ...*ProvisionBucket) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) Exec(ctx context.Context) error
- func (ppc *ProviderProfileCreate) ExecX(ctx context.Context)
- func (ppc *ProviderProfileCreate) Mutation() *ProviderProfileMutation
- func (ppc *ProviderProfileCreate) OnConflict(opts ...sql.ConflictOption) *ProviderProfileUpsertOne
- func (ppc *ProviderProfileCreate) OnConflictColumns(columns ...string) *ProviderProfileUpsertOne
- func (ppc *ProviderProfileCreate) Save(ctx context.Context) (*ProviderProfile, error)
- func (ppc *ProviderProfileCreate) SaveX(ctx context.Context) *ProviderProfile
- func (ppc *ProviderProfileCreate) SetAPIKey(a *APIKey) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetAPIKeyID(id uuid.UUID) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetHostIdentifier(s string) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetID(s string) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetIsActive(b bool) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetIsKybVerified(b bool) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetNillableAPIKeyID(id *uuid.UUID) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetNillableHostIdentifier(s *string) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetNillableID(s *string) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetNillableIsActive(b *bool) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetNillableIsKybVerified(b *bool) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetNillableProviderRatingID(id *int) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetNillableProvisionMode(pm *providerprofile.ProvisionMode) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetNillableTradingName(s *string) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetNillableUpdatedAt(t *time.Time) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetNillableVisibilityMode(pm *providerprofile.VisibilityMode) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetProviderRating(p *ProviderRating) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetProviderRatingID(id int) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetProvisionMode(pm providerprofile.ProvisionMode) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetTradingName(s string) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetUpdatedAt(t time.Time) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetUser(u *User) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetUserID(id uuid.UUID) *ProviderProfileCreate
- func (ppc *ProviderProfileCreate) SetVisibilityMode(pm providerprofile.VisibilityMode) *ProviderProfileCreate
- type ProviderProfileCreateBulk
- func (ppcb *ProviderProfileCreateBulk) Exec(ctx context.Context) error
- func (ppcb *ProviderProfileCreateBulk) ExecX(ctx context.Context)
- func (ppcb *ProviderProfileCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProviderProfileUpsertBulk
- func (ppcb *ProviderProfileCreateBulk) OnConflictColumns(columns ...string) *ProviderProfileUpsertBulk
- func (ppcb *ProviderProfileCreateBulk) Save(ctx context.Context) ([]*ProviderProfile, error)
- func (ppcb *ProviderProfileCreateBulk) SaveX(ctx context.Context) []*ProviderProfile
- type ProviderProfileDelete
- type ProviderProfileDeleteOne
- type ProviderProfileEdges
- func (e ProviderProfileEdges) APIKeyOrErr() (*APIKey, error)
- func (e ProviderProfileEdges) AssignedOrdersOrErr() ([]*LockPaymentOrder, error)
- func (e ProviderProfileEdges) OrderTokensOrErr() ([]*ProviderOrderToken, error)
- func (e ProviderProfileEdges) ProviderCurrenciesOrErr() ([]*ProviderCurrencies, error)
- func (e ProviderProfileEdges) ProviderRatingOrErr() (*ProviderRating, error)
- func (e ProviderProfileEdges) ProvisionBucketsOrErr() ([]*ProvisionBucket, error)
- func (e ProviderProfileEdges) UserOrErr() (*User, error)
- type ProviderProfileGroupBy
- func (ppgb *ProviderProfileGroupBy) Aggregate(fns ...AggregateFunc) *ProviderProfileGroupBy
- func (s *ProviderProfileGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProviderProfileGroupBy) BoolX(ctx context.Context) bool
- func (s *ProviderProfileGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ProviderProfileGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ProviderProfileGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProviderProfileGroupBy) Float64X(ctx context.Context) float64
- func (s *ProviderProfileGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProviderProfileGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ProviderProfileGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ProviderProfileGroupBy) IntX(ctx context.Context) int
- func (s *ProviderProfileGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ProviderProfileGroupBy) IntsX(ctx context.Context) []int
- func (ppgb *ProviderProfileGroupBy) Scan(ctx context.Context, v any) error
- func (s *ProviderProfileGroupBy) ScanX(ctx context.Context, v any)
- func (s *ProviderProfileGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ProviderProfileGroupBy) StringX(ctx context.Context) string
- func (s *ProviderProfileGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ProviderProfileGroupBy) StringsX(ctx context.Context) []string
- type ProviderProfileMutation
- func (m *ProviderProfileMutation) APIKeyCleared() bool
- func (m *ProviderProfileMutation) APIKeyID() (id uuid.UUID, exists bool)
- func (m *ProviderProfileMutation) APIKeyIDs() (ids []uuid.UUID)
- func (m *ProviderProfileMutation) AddAssignedOrderIDs(ids ...uuid.UUID)
- func (m *ProviderProfileMutation) AddField(name string, value ent.Value) error
- func (m *ProviderProfileMutation) AddOrderTokenIDs(ids ...int)
- func (m *ProviderProfileMutation) AddProviderCurrencyIDs(ids ...uuid.UUID)
- func (m *ProviderProfileMutation) AddProvisionBucketIDs(ids ...int)
- func (m *ProviderProfileMutation) AddedEdges() []string
- func (m *ProviderProfileMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProviderProfileMutation) AddedFields() []string
- func (m *ProviderProfileMutation) AddedIDs(name string) []ent.Value
- func (m *ProviderProfileMutation) AssignedOrdersCleared() bool
- func (m *ProviderProfileMutation) AssignedOrdersIDs() (ids []uuid.UUID)
- func (m *ProviderProfileMutation) ClearAPIKey()
- func (m *ProviderProfileMutation) ClearAssignedOrders()
- func (m *ProviderProfileMutation) ClearEdge(name string) error
- func (m *ProviderProfileMutation) ClearField(name string) error
- func (m *ProviderProfileMutation) ClearHostIdentifier()
- func (m *ProviderProfileMutation) ClearOrderTokens()
- func (m *ProviderProfileMutation) ClearProviderCurrencies()
- func (m *ProviderProfileMutation) ClearProviderRating()
- func (m *ProviderProfileMutation) ClearProvisionBuckets()
- func (m *ProviderProfileMutation) ClearTradingName()
- func (m *ProviderProfileMutation) ClearUser()
- func (m *ProviderProfileMutation) ClearedEdges() []string
- func (m *ProviderProfileMutation) ClearedFields() []string
- func (m ProviderProfileMutation) Client() *Client
- func (m *ProviderProfileMutation) EdgeCleared(name string) bool
- func (m *ProviderProfileMutation) Field(name string) (ent.Value, bool)
- func (m *ProviderProfileMutation) FieldCleared(name string) bool
- func (m *ProviderProfileMutation) Fields() []string
- func (m *ProviderProfileMutation) HostIdentifier() (r string, exists bool)
- func (m *ProviderProfileMutation) HostIdentifierCleared() bool
- func (m *ProviderProfileMutation) ID() (id string, exists bool)
- func (m *ProviderProfileMutation) IDs(ctx context.Context) ([]string, error)
- func (m *ProviderProfileMutation) IsActive() (r bool, exists bool)
- func (m *ProviderProfileMutation) IsKybVerified() (r bool, exists bool)
- func (m *ProviderProfileMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProviderProfileMutation) OldHostIdentifier(ctx context.Context) (v string, err error)
- func (m *ProviderProfileMutation) OldIsActive(ctx context.Context) (v bool, err error)
- func (m *ProviderProfileMutation) OldIsKybVerified(ctx context.Context) (v bool, err error)
- func (m *ProviderProfileMutation) OldProvisionMode(ctx context.Context) (v providerprofile.ProvisionMode, err error)
- func (m *ProviderProfileMutation) OldTradingName(ctx context.Context) (v string, err error)
- func (m *ProviderProfileMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProviderProfileMutation) OldVisibilityMode(ctx context.Context) (v providerprofile.VisibilityMode, err error)
- func (m *ProviderProfileMutation) Op() Op
- func (m *ProviderProfileMutation) OrderTokensCleared() bool
- func (m *ProviderProfileMutation) OrderTokensIDs() (ids []int)
- func (m *ProviderProfileMutation) ProviderCurrenciesCleared() bool
- func (m *ProviderProfileMutation) ProviderCurrenciesIDs() (ids []uuid.UUID)
- func (m *ProviderProfileMutation) ProviderRatingCleared() bool
- func (m *ProviderProfileMutation) ProviderRatingID() (id int, exists bool)
- func (m *ProviderProfileMutation) ProviderRatingIDs() (ids []int)
- func (m *ProviderProfileMutation) ProvisionBucketsCleared() bool
- func (m *ProviderProfileMutation) ProvisionBucketsIDs() (ids []int)
- func (m *ProviderProfileMutation) ProvisionMode() (r providerprofile.ProvisionMode, exists bool)
- func (m *ProviderProfileMutation) RemoveAssignedOrderIDs(ids ...uuid.UUID)
- func (m *ProviderProfileMutation) RemoveOrderTokenIDs(ids ...int)
- func (m *ProviderProfileMutation) RemoveProviderCurrencyIDs(ids ...uuid.UUID)
- func (m *ProviderProfileMutation) RemoveProvisionBucketIDs(ids ...int)
- func (m *ProviderProfileMutation) RemovedAssignedOrdersIDs() (ids []uuid.UUID)
- func (m *ProviderProfileMutation) RemovedEdges() []string
- func (m *ProviderProfileMutation) RemovedIDs(name string) []ent.Value
- func (m *ProviderProfileMutation) RemovedOrderTokensIDs() (ids []int)
- func (m *ProviderProfileMutation) RemovedProviderCurrenciesIDs() (ids []uuid.UUID)
- func (m *ProviderProfileMutation) RemovedProvisionBucketsIDs() (ids []int)
- func (m *ProviderProfileMutation) ResetAPIKey()
- func (m *ProviderProfileMutation) ResetAssignedOrders()
- func (m *ProviderProfileMutation) ResetEdge(name string) error
- func (m *ProviderProfileMutation) ResetField(name string) error
- func (m *ProviderProfileMutation) ResetHostIdentifier()
- func (m *ProviderProfileMutation) ResetIsActive()
- func (m *ProviderProfileMutation) ResetIsKybVerified()
- func (m *ProviderProfileMutation) ResetOrderTokens()
- func (m *ProviderProfileMutation) ResetProviderCurrencies()
- func (m *ProviderProfileMutation) ResetProviderRating()
- func (m *ProviderProfileMutation) ResetProvisionBuckets()
- func (m *ProviderProfileMutation) ResetProvisionMode()
- func (m *ProviderProfileMutation) ResetTradingName()
- func (m *ProviderProfileMutation) ResetUpdatedAt()
- func (m *ProviderProfileMutation) ResetUser()
- func (m *ProviderProfileMutation) ResetVisibilityMode()
- func (m *ProviderProfileMutation) SetAPIKeyID(id uuid.UUID)
- func (m *ProviderProfileMutation) SetField(name string, value ent.Value) error
- func (m *ProviderProfileMutation) SetHostIdentifier(s string)
- func (m *ProviderProfileMutation) SetID(id string)
- func (m *ProviderProfileMutation) SetIsActive(b bool)
- func (m *ProviderProfileMutation) SetIsKybVerified(b bool)
- func (m *ProviderProfileMutation) SetOp(op Op)
- func (m *ProviderProfileMutation) SetProviderRatingID(id int)
- func (m *ProviderProfileMutation) SetProvisionMode(pm providerprofile.ProvisionMode)
- func (m *ProviderProfileMutation) SetTradingName(s string)
- func (m *ProviderProfileMutation) SetUpdatedAt(t time.Time)
- func (m *ProviderProfileMutation) SetUserID(id uuid.UUID)
- func (m *ProviderProfileMutation) SetVisibilityMode(pm providerprofile.VisibilityMode)
- func (m *ProviderProfileMutation) TradingName() (r string, exists bool)
- func (m *ProviderProfileMutation) TradingNameCleared() bool
- func (m ProviderProfileMutation) Tx() (*Tx, error)
- func (m *ProviderProfileMutation) Type() string
- func (m *ProviderProfileMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProviderProfileMutation) UserCleared() bool
- func (m *ProviderProfileMutation) UserID() (id uuid.UUID, exists bool)
- func (m *ProviderProfileMutation) UserIDs() (ids []uuid.UUID)
- func (m *ProviderProfileMutation) VisibilityMode() (r providerprofile.VisibilityMode, exists bool)
- func (m *ProviderProfileMutation) Where(ps ...predicate.ProviderProfile)
- func (m *ProviderProfileMutation) WhereP(ps ...func(*sql.Selector))
- type ProviderProfileQuery
- func (ppq *ProviderProfileQuery) Aggregate(fns ...AggregateFunc) *ProviderProfileSelect
- func (ppq *ProviderProfileQuery) All(ctx context.Context) ([]*ProviderProfile, error)
- func (ppq *ProviderProfileQuery) AllX(ctx context.Context) []*ProviderProfile
- func (ppq *ProviderProfileQuery) Clone() *ProviderProfileQuery
- func (ppq *ProviderProfileQuery) Count(ctx context.Context) (int, error)
- func (ppq *ProviderProfileQuery) CountX(ctx context.Context) int
- func (ppq *ProviderProfileQuery) Exist(ctx context.Context) (bool, error)
- func (ppq *ProviderProfileQuery) ExistX(ctx context.Context) bool
- func (ppq *ProviderProfileQuery) First(ctx context.Context) (*ProviderProfile, error)
- func (ppq *ProviderProfileQuery) FirstID(ctx context.Context) (id string, err error)
- func (ppq *ProviderProfileQuery) FirstIDX(ctx context.Context) string
- func (ppq *ProviderProfileQuery) FirstX(ctx context.Context) *ProviderProfile
- func (ppq *ProviderProfileQuery) GroupBy(field string, fields ...string) *ProviderProfileGroupBy
- func (ppq *ProviderProfileQuery) IDs(ctx context.Context) (ids []string, err error)
- func (ppq *ProviderProfileQuery) IDsX(ctx context.Context) []string
- func (ppq *ProviderProfileQuery) Limit(limit int) *ProviderProfileQuery
- func (ppq *ProviderProfileQuery) Offset(offset int) *ProviderProfileQuery
- func (ppq *ProviderProfileQuery) Only(ctx context.Context) (*ProviderProfile, error)
- func (ppq *ProviderProfileQuery) OnlyID(ctx context.Context) (id string, err error)
- func (ppq *ProviderProfileQuery) OnlyIDX(ctx context.Context) string
- func (ppq *ProviderProfileQuery) OnlyX(ctx context.Context) *ProviderProfile
- func (ppq *ProviderProfileQuery) Order(o ...providerprofile.OrderOption) *ProviderProfileQuery
- func (ppq *ProviderProfileQuery) QueryAPIKey() *APIKeyQuery
- func (ppq *ProviderProfileQuery) QueryAssignedOrders() *LockPaymentOrderQuery
- func (ppq *ProviderProfileQuery) QueryOrderTokens() *ProviderOrderTokenQuery
- func (ppq *ProviderProfileQuery) QueryProviderCurrencies() *ProviderCurrenciesQuery
- func (ppq *ProviderProfileQuery) QueryProviderRating() *ProviderRatingQuery
- func (ppq *ProviderProfileQuery) QueryProvisionBuckets() *ProvisionBucketQuery
- func (ppq *ProviderProfileQuery) QueryUser() *UserQuery
- func (ppq *ProviderProfileQuery) Select(fields ...string) *ProviderProfileSelect
- func (ppq *ProviderProfileQuery) Unique(unique bool) *ProviderProfileQuery
- func (ppq *ProviderProfileQuery) Where(ps ...predicate.ProviderProfile) *ProviderProfileQuery
- func (ppq *ProviderProfileQuery) WithAPIKey(opts ...func(*APIKeyQuery)) *ProviderProfileQuery
- func (ppq *ProviderProfileQuery) WithAssignedOrders(opts ...func(*LockPaymentOrderQuery)) *ProviderProfileQuery
- func (ppq *ProviderProfileQuery) WithOrderTokens(opts ...func(*ProviderOrderTokenQuery)) *ProviderProfileQuery
- func (ppq *ProviderProfileQuery) WithProviderCurrencies(opts ...func(*ProviderCurrenciesQuery)) *ProviderProfileQuery
- func (ppq *ProviderProfileQuery) WithProviderRating(opts ...func(*ProviderRatingQuery)) *ProviderProfileQuery
- func (ppq *ProviderProfileQuery) WithProvisionBuckets(opts ...func(*ProvisionBucketQuery)) *ProviderProfileQuery
- func (ppq *ProviderProfileQuery) WithUser(opts ...func(*UserQuery)) *ProviderProfileQuery
- type ProviderProfileSelect
- func (pps *ProviderProfileSelect) Aggregate(fns ...AggregateFunc) *ProviderProfileSelect
- func (s *ProviderProfileSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProviderProfileSelect) BoolX(ctx context.Context) bool
- func (s *ProviderProfileSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ProviderProfileSelect) BoolsX(ctx context.Context) []bool
- func (s *ProviderProfileSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProviderProfileSelect) Float64X(ctx context.Context) float64
- func (s *ProviderProfileSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProviderProfileSelect) Float64sX(ctx context.Context) []float64
- func (s *ProviderProfileSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ProviderProfileSelect) IntX(ctx context.Context) int
- func (s *ProviderProfileSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ProviderProfileSelect) IntsX(ctx context.Context) []int
- func (pps *ProviderProfileSelect) Scan(ctx context.Context, v any) error
- func (s *ProviderProfileSelect) ScanX(ctx context.Context, v any)
- func (s *ProviderProfileSelect) String(ctx context.Context) (_ string, err error)
- func (s *ProviderProfileSelect) StringX(ctx context.Context) string
- func (s *ProviderProfileSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ProviderProfileSelect) StringsX(ctx context.Context) []string
- type ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) AddAssignedOrderIDs(ids ...uuid.UUID) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) AddAssignedOrders(l ...*LockPaymentOrder) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) AddOrderTokenIDs(ids ...int) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) AddOrderTokens(p ...*ProviderOrderToken) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) AddProviderCurrencies(p ...*ProviderCurrencies) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) AddProviderCurrencyIDs(ids ...uuid.UUID) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) AddProvisionBucketIDs(ids ...int) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) AddProvisionBuckets(p ...*ProvisionBucket) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) ClearAPIKey() *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) ClearAssignedOrders() *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) ClearHostIdentifier() *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) ClearOrderTokens() *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) ClearProviderCurrencies() *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) ClearProviderRating() *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) ClearProvisionBuckets() *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) ClearTradingName() *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) Exec(ctx context.Context) error
- func (ppu *ProviderProfileUpdate) ExecX(ctx context.Context)
- func (ppu *ProviderProfileUpdate) Mutation() *ProviderProfileMutation
- func (ppu *ProviderProfileUpdate) RemoveAssignedOrderIDs(ids ...uuid.UUID) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) RemoveAssignedOrders(l ...*LockPaymentOrder) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) RemoveOrderTokenIDs(ids ...int) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) RemoveOrderTokens(p ...*ProviderOrderToken) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) RemoveProviderCurrencies(p ...*ProviderCurrencies) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) RemoveProviderCurrencyIDs(ids ...uuid.UUID) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) RemoveProvisionBucketIDs(ids ...int) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) RemoveProvisionBuckets(p ...*ProvisionBucket) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) Save(ctx context.Context) (int, error)
- func (ppu *ProviderProfileUpdate) SaveX(ctx context.Context) int
- func (ppu *ProviderProfileUpdate) SetAPIKey(a *APIKey) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetAPIKeyID(id uuid.UUID) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetHostIdentifier(s string) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetIsActive(b bool) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetIsKybVerified(b bool) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetNillableAPIKeyID(id *uuid.UUID) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetNillableHostIdentifier(s *string) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetNillableIsActive(b *bool) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetNillableIsKybVerified(b *bool) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetNillableProviderRatingID(id *int) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetNillableProvisionMode(pm *providerprofile.ProvisionMode) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetNillableTradingName(s *string) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetNillableVisibilityMode(pm *providerprofile.VisibilityMode) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetProviderRating(p *ProviderRating) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetProviderRatingID(id int) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetProvisionMode(pm providerprofile.ProvisionMode) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetTradingName(s string) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetUpdatedAt(t time.Time) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) SetVisibilityMode(pm providerprofile.VisibilityMode) *ProviderProfileUpdate
- func (ppu *ProviderProfileUpdate) Where(ps ...predicate.ProviderProfile) *ProviderProfileUpdate
- type ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) AddAssignedOrderIDs(ids ...uuid.UUID) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) AddAssignedOrders(l ...*LockPaymentOrder) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) AddOrderTokenIDs(ids ...int) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) AddOrderTokens(p ...*ProviderOrderToken) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) AddProviderCurrencies(p ...*ProviderCurrencies) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) AddProviderCurrencyIDs(ids ...uuid.UUID) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) AddProvisionBucketIDs(ids ...int) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) AddProvisionBuckets(p ...*ProvisionBucket) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) ClearAPIKey() *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) ClearAssignedOrders() *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) ClearHostIdentifier() *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) ClearOrderTokens() *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) ClearProviderCurrencies() *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) ClearProviderRating() *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) ClearProvisionBuckets() *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) ClearTradingName() *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) Exec(ctx context.Context) error
- func (ppuo *ProviderProfileUpdateOne) ExecX(ctx context.Context)
- func (ppuo *ProviderProfileUpdateOne) Mutation() *ProviderProfileMutation
- func (ppuo *ProviderProfileUpdateOne) RemoveAssignedOrderIDs(ids ...uuid.UUID) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) RemoveAssignedOrders(l ...*LockPaymentOrder) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) RemoveOrderTokenIDs(ids ...int) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) RemoveOrderTokens(p ...*ProviderOrderToken) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) RemoveProviderCurrencies(p ...*ProviderCurrencies) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) RemoveProviderCurrencyIDs(ids ...uuid.UUID) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) RemoveProvisionBucketIDs(ids ...int) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) RemoveProvisionBuckets(p ...*ProvisionBucket) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) Save(ctx context.Context) (*ProviderProfile, error)
- func (ppuo *ProviderProfileUpdateOne) SaveX(ctx context.Context) *ProviderProfile
- func (ppuo *ProviderProfileUpdateOne) Select(field string, fields ...string) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetAPIKey(a *APIKey) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetAPIKeyID(id uuid.UUID) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetHostIdentifier(s string) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetIsActive(b bool) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetIsKybVerified(b bool) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetNillableAPIKeyID(id *uuid.UUID) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetNillableHostIdentifier(s *string) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetNillableIsActive(b *bool) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetNillableIsKybVerified(b *bool) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetNillableProviderRatingID(id *int) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetNillableProvisionMode(pm *providerprofile.ProvisionMode) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetNillableTradingName(s *string) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetNillableVisibilityMode(pm *providerprofile.VisibilityMode) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetProviderRating(p *ProviderRating) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetProviderRatingID(id int) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetProvisionMode(pm providerprofile.ProvisionMode) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetTradingName(s string) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetUpdatedAt(t time.Time) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) SetVisibilityMode(pm providerprofile.VisibilityMode) *ProviderProfileUpdateOne
- func (ppuo *ProviderProfileUpdateOne) Where(ps ...predicate.ProviderProfile) *ProviderProfileUpdateOne
- type ProviderProfileUpsert
- func (u *ProviderProfileUpsert) ClearHostIdentifier() *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) ClearTradingName() *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) SetHostIdentifier(v string) *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) SetIsActive(v bool) *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) SetIsKybVerified(v bool) *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) SetProvisionMode(v providerprofile.ProvisionMode) *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) SetTradingName(v string) *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) SetUpdatedAt(v time.Time) *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) SetVisibilityMode(v providerprofile.VisibilityMode) *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) UpdateHostIdentifier() *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) UpdateIsActive() *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) UpdateIsKybVerified() *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) UpdateProvisionMode() *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) UpdateTradingName() *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) UpdateUpdatedAt() *ProviderProfileUpsert
- func (u *ProviderProfileUpsert) UpdateVisibilityMode() *ProviderProfileUpsert
- type ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) ClearHostIdentifier() *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) ClearTradingName() *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) DoNothing() *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) Exec(ctx context.Context) error
- func (u *ProviderProfileUpsertBulk) ExecX(ctx context.Context)
- func (u *ProviderProfileUpsertBulk) Ignore() *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) SetHostIdentifier(v string) *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) SetIsActive(v bool) *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) SetIsKybVerified(v bool) *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) SetProvisionMode(v providerprofile.ProvisionMode) *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) SetTradingName(v string) *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) SetUpdatedAt(v time.Time) *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) SetVisibilityMode(v providerprofile.VisibilityMode) *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) Update(set func(*ProviderProfileUpsert)) *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) UpdateHostIdentifier() *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) UpdateIsActive() *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) UpdateIsKybVerified() *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) UpdateNewValues() *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) UpdateProvisionMode() *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) UpdateTradingName() *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) UpdateUpdatedAt() *ProviderProfileUpsertBulk
- func (u *ProviderProfileUpsertBulk) UpdateVisibilityMode() *ProviderProfileUpsertBulk
- type ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) ClearHostIdentifier() *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) ClearTradingName() *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) DoNothing() *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) Exec(ctx context.Context) error
- func (u *ProviderProfileUpsertOne) ExecX(ctx context.Context)
- func (u *ProviderProfileUpsertOne) ID(ctx context.Context) (id string, err error)
- func (u *ProviderProfileUpsertOne) IDX(ctx context.Context) string
- func (u *ProviderProfileUpsertOne) Ignore() *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) SetHostIdentifier(v string) *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) SetIsActive(v bool) *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) SetIsKybVerified(v bool) *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) SetProvisionMode(v providerprofile.ProvisionMode) *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) SetTradingName(v string) *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) SetUpdatedAt(v time.Time) *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) SetVisibilityMode(v providerprofile.VisibilityMode) *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) Update(set func(*ProviderProfileUpsert)) *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) UpdateHostIdentifier() *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) UpdateIsActive() *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) UpdateIsKybVerified() *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) UpdateNewValues() *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) UpdateProvisionMode() *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) UpdateTradingName() *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) UpdateUpdatedAt() *ProviderProfileUpsertOne
- func (u *ProviderProfileUpsertOne) UpdateVisibilityMode() *ProviderProfileUpsertOne
- type ProviderProfiles
- type ProviderRating
- type ProviderRatingClient
- func (c *ProviderRatingClient) Create() *ProviderRatingCreate
- func (c *ProviderRatingClient) CreateBulk(builders ...*ProviderRatingCreate) *ProviderRatingCreateBulk
- func (c *ProviderRatingClient) Delete() *ProviderRatingDelete
- func (c *ProviderRatingClient) DeleteOne(pr *ProviderRating) *ProviderRatingDeleteOne
- func (c *ProviderRatingClient) DeleteOneID(id int) *ProviderRatingDeleteOne
- func (c *ProviderRatingClient) Get(ctx context.Context, id int) (*ProviderRating, error)
- func (c *ProviderRatingClient) GetX(ctx context.Context, id int) *ProviderRating
- func (c *ProviderRatingClient) Hooks() []Hook
- func (c *ProviderRatingClient) Intercept(interceptors ...Interceptor)
- func (c *ProviderRatingClient) Interceptors() []Interceptor
- func (c *ProviderRatingClient) MapCreateBulk(slice any, setFunc func(*ProviderRatingCreate, int)) *ProviderRatingCreateBulk
- func (c *ProviderRatingClient) Query() *ProviderRatingQuery
- func (c *ProviderRatingClient) QueryProviderProfile(pr *ProviderRating) *ProviderProfileQuery
- func (c *ProviderRatingClient) Update() *ProviderRatingUpdate
- func (c *ProviderRatingClient) UpdateOne(pr *ProviderRating) *ProviderRatingUpdateOne
- func (c *ProviderRatingClient) UpdateOneID(id int) *ProviderRatingUpdateOne
- func (c *ProviderRatingClient) Use(hooks ...Hook)
- type ProviderRatingCreate
- func (prc *ProviderRatingCreate) Exec(ctx context.Context) error
- func (prc *ProviderRatingCreate) ExecX(ctx context.Context)
- func (prc *ProviderRatingCreate) Mutation() *ProviderRatingMutation
- func (prc *ProviderRatingCreate) OnConflict(opts ...sql.ConflictOption) *ProviderRatingUpsertOne
- func (prc *ProviderRatingCreate) OnConflictColumns(columns ...string) *ProviderRatingUpsertOne
- func (prc *ProviderRatingCreate) Save(ctx context.Context) (*ProviderRating, error)
- func (prc *ProviderRatingCreate) SaveX(ctx context.Context) *ProviderRating
- func (prc *ProviderRatingCreate) SetCreatedAt(t time.Time) *ProviderRatingCreate
- func (prc *ProviderRatingCreate) SetNillableCreatedAt(t *time.Time) *ProviderRatingCreate
- func (prc *ProviderRatingCreate) SetNillableUpdatedAt(t *time.Time) *ProviderRatingCreate
- func (prc *ProviderRatingCreate) SetProviderProfile(p *ProviderProfile) *ProviderRatingCreate
- func (prc *ProviderRatingCreate) SetProviderProfileID(id string) *ProviderRatingCreate
- func (prc *ProviderRatingCreate) SetTrustScore(d decimal.Decimal) *ProviderRatingCreate
- func (prc *ProviderRatingCreate) SetUpdatedAt(t time.Time) *ProviderRatingCreate
- type ProviderRatingCreateBulk
- func (prcb *ProviderRatingCreateBulk) Exec(ctx context.Context) error
- func (prcb *ProviderRatingCreateBulk) ExecX(ctx context.Context)
- func (prcb *ProviderRatingCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProviderRatingUpsertBulk
- func (prcb *ProviderRatingCreateBulk) OnConflictColumns(columns ...string) *ProviderRatingUpsertBulk
- func (prcb *ProviderRatingCreateBulk) Save(ctx context.Context) ([]*ProviderRating, error)
- func (prcb *ProviderRatingCreateBulk) SaveX(ctx context.Context) []*ProviderRating
- type ProviderRatingDelete
- type ProviderRatingDeleteOne
- type ProviderRatingEdges
- type ProviderRatingGroupBy
- func (prgb *ProviderRatingGroupBy) Aggregate(fns ...AggregateFunc) *ProviderRatingGroupBy
- func (s *ProviderRatingGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProviderRatingGroupBy) BoolX(ctx context.Context) bool
- func (s *ProviderRatingGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ProviderRatingGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ProviderRatingGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProviderRatingGroupBy) Float64X(ctx context.Context) float64
- func (s *ProviderRatingGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProviderRatingGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ProviderRatingGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ProviderRatingGroupBy) IntX(ctx context.Context) int
- func (s *ProviderRatingGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ProviderRatingGroupBy) IntsX(ctx context.Context) []int
- func (prgb *ProviderRatingGroupBy) Scan(ctx context.Context, v any) error
- func (s *ProviderRatingGroupBy) ScanX(ctx context.Context, v any)
- func (s *ProviderRatingGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ProviderRatingGroupBy) StringX(ctx context.Context) string
- func (s *ProviderRatingGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ProviderRatingGroupBy) StringsX(ctx context.Context) []string
- type ProviderRatingMutation
- func (m *ProviderRatingMutation) AddField(name string, value ent.Value) error
- func (m *ProviderRatingMutation) AddTrustScore(d decimal.Decimal)
- func (m *ProviderRatingMutation) AddedEdges() []string
- func (m *ProviderRatingMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProviderRatingMutation) AddedFields() []string
- func (m *ProviderRatingMutation) AddedIDs(name string) []ent.Value
- func (m *ProviderRatingMutation) AddedTrustScore() (r decimal.Decimal, exists bool)
- func (m *ProviderRatingMutation) ClearEdge(name string) error
- func (m *ProviderRatingMutation) ClearField(name string) error
- func (m *ProviderRatingMutation) ClearProviderProfile()
- func (m *ProviderRatingMutation) ClearedEdges() []string
- func (m *ProviderRatingMutation) ClearedFields() []string
- func (m ProviderRatingMutation) Client() *Client
- func (m *ProviderRatingMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ProviderRatingMutation) EdgeCleared(name string) bool
- func (m *ProviderRatingMutation) Field(name string) (ent.Value, bool)
- func (m *ProviderRatingMutation) FieldCleared(name string) bool
- func (m *ProviderRatingMutation) Fields() []string
- func (m *ProviderRatingMutation) ID() (id int, exists bool)
- func (m *ProviderRatingMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ProviderRatingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProviderRatingMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProviderRatingMutation) OldTrustScore(ctx context.Context) (v decimal.Decimal, err error)
- func (m *ProviderRatingMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProviderRatingMutation) Op() Op
- func (m *ProviderRatingMutation) ProviderProfileCleared() bool
- func (m *ProviderRatingMutation) ProviderProfileID() (id string, exists bool)
- func (m *ProviderRatingMutation) ProviderProfileIDs() (ids []string)
- func (m *ProviderRatingMutation) RemovedEdges() []string
- func (m *ProviderRatingMutation) RemovedIDs(name string) []ent.Value
- func (m *ProviderRatingMutation) ResetCreatedAt()
- func (m *ProviderRatingMutation) ResetEdge(name string) error
- func (m *ProviderRatingMutation) ResetField(name string) error
- func (m *ProviderRatingMutation) ResetProviderProfile()
- func (m *ProviderRatingMutation) ResetTrustScore()
- func (m *ProviderRatingMutation) ResetUpdatedAt()
- func (m *ProviderRatingMutation) SetCreatedAt(t time.Time)
- func (m *ProviderRatingMutation) SetField(name string, value ent.Value) error
- func (m *ProviderRatingMutation) SetOp(op Op)
- func (m *ProviderRatingMutation) SetProviderProfileID(id string)
- func (m *ProviderRatingMutation) SetTrustScore(d decimal.Decimal)
- func (m *ProviderRatingMutation) SetUpdatedAt(t time.Time)
- func (m *ProviderRatingMutation) TrustScore() (r decimal.Decimal, exists bool)
- func (m ProviderRatingMutation) Tx() (*Tx, error)
- func (m *ProviderRatingMutation) Type() string
- func (m *ProviderRatingMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProviderRatingMutation) Where(ps ...predicate.ProviderRating)
- func (m *ProviderRatingMutation) WhereP(ps ...func(*sql.Selector))
- type ProviderRatingQuery
- func (prq *ProviderRatingQuery) Aggregate(fns ...AggregateFunc) *ProviderRatingSelect
- func (prq *ProviderRatingQuery) All(ctx context.Context) ([]*ProviderRating, error)
- func (prq *ProviderRatingQuery) AllX(ctx context.Context) []*ProviderRating
- func (prq *ProviderRatingQuery) Clone() *ProviderRatingQuery
- func (prq *ProviderRatingQuery) Count(ctx context.Context) (int, error)
- func (prq *ProviderRatingQuery) CountX(ctx context.Context) int
- func (prq *ProviderRatingQuery) Exist(ctx context.Context) (bool, error)
- func (prq *ProviderRatingQuery) ExistX(ctx context.Context) bool
- func (prq *ProviderRatingQuery) First(ctx context.Context) (*ProviderRating, error)
- func (prq *ProviderRatingQuery) FirstID(ctx context.Context) (id int, err error)
- func (prq *ProviderRatingQuery) FirstIDX(ctx context.Context) int
- func (prq *ProviderRatingQuery) FirstX(ctx context.Context) *ProviderRating
- func (prq *ProviderRatingQuery) GroupBy(field string, fields ...string) *ProviderRatingGroupBy
- func (prq *ProviderRatingQuery) IDs(ctx context.Context) (ids []int, err error)
- func (prq *ProviderRatingQuery) IDsX(ctx context.Context) []int
- func (prq *ProviderRatingQuery) Limit(limit int) *ProviderRatingQuery
- func (prq *ProviderRatingQuery) Offset(offset int) *ProviderRatingQuery
- func (prq *ProviderRatingQuery) Only(ctx context.Context) (*ProviderRating, error)
- func (prq *ProviderRatingQuery) OnlyID(ctx context.Context) (id int, err error)
- func (prq *ProviderRatingQuery) OnlyIDX(ctx context.Context) int
- func (prq *ProviderRatingQuery) OnlyX(ctx context.Context) *ProviderRating
- func (prq *ProviderRatingQuery) Order(o ...providerrating.OrderOption) *ProviderRatingQuery
- func (prq *ProviderRatingQuery) QueryProviderProfile() *ProviderProfileQuery
- func (prq *ProviderRatingQuery) Select(fields ...string) *ProviderRatingSelect
- func (prq *ProviderRatingQuery) Unique(unique bool) *ProviderRatingQuery
- func (prq *ProviderRatingQuery) Where(ps ...predicate.ProviderRating) *ProviderRatingQuery
- func (prq *ProviderRatingQuery) WithProviderProfile(opts ...func(*ProviderProfileQuery)) *ProviderRatingQuery
- type ProviderRatingSelect
- func (prs *ProviderRatingSelect) Aggregate(fns ...AggregateFunc) *ProviderRatingSelect
- func (s *ProviderRatingSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProviderRatingSelect) BoolX(ctx context.Context) bool
- func (s *ProviderRatingSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ProviderRatingSelect) BoolsX(ctx context.Context) []bool
- func (s *ProviderRatingSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProviderRatingSelect) Float64X(ctx context.Context) float64
- func (s *ProviderRatingSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProviderRatingSelect) Float64sX(ctx context.Context) []float64
- func (s *ProviderRatingSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ProviderRatingSelect) IntX(ctx context.Context) int
- func (s *ProviderRatingSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ProviderRatingSelect) IntsX(ctx context.Context) []int
- func (prs *ProviderRatingSelect) Scan(ctx context.Context, v any) error
- func (s *ProviderRatingSelect) ScanX(ctx context.Context, v any)
- func (s *ProviderRatingSelect) String(ctx context.Context) (_ string, err error)
- func (s *ProviderRatingSelect) StringX(ctx context.Context) string
- func (s *ProviderRatingSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ProviderRatingSelect) StringsX(ctx context.Context) []string
- type ProviderRatingUpdate
- func (pru *ProviderRatingUpdate) AddTrustScore(d decimal.Decimal) *ProviderRatingUpdate
- func (pru *ProviderRatingUpdate) Exec(ctx context.Context) error
- func (pru *ProviderRatingUpdate) ExecX(ctx context.Context)
- func (pru *ProviderRatingUpdate) Mutation() *ProviderRatingMutation
- func (pru *ProviderRatingUpdate) Save(ctx context.Context) (int, error)
- func (pru *ProviderRatingUpdate) SaveX(ctx context.Context) int
- func (pru *ProviderRatingUpdate) SetNillableTrustScore(d *decimal.Decimal) *ProviderRatingUpdate
- func (pru *ProviderRatingUpdate) SetTrustScore(d decimal.Decimal) *ProviderRatingUpdate
- func (pru *ProviderRatingUpdate) SetUpdatedAt(t time.Time) *ProviderRatingUpdate
- func (pru *ProviderRatingUpdate) Where(ps ...predicate.ProviderRating) *ProviderRatingUpdate
- type ProviderRatingUpdateOne
- func (pruo *ProviderRatingUpdateOne) AddTrustScore(d decimal.Decimal) *ProviderRatingUpdateOne
- func (pruo *ProviderRatingUpdateOne) Exec(ctx context.Context) error
- func (pruo *ProviderRatingUpdateOne) ExecX(ctx context.Context)
- func (pruo *ProviderRatingUpdateOne) Mutation() *ProviderRatingMutation
- func (pruo *ProviderRatingUpdateOne) Save(ctx context.Context) (*ProviderRating, error)
- func (pruo *ProviderRatingUpdateOne) SaveX(ctx context.Context) *ProviderRating
- func (pruo *ProviderRatingUpdateOne) Select(field string, fields ...string) *ProviderRatingUpdateOne
- func (pruo *ProviderRatingUpdateOne) SetNillableTrustScore(d *decimal.Decimal) *ProviderRatingUpdateOne
- func (pruo *ProviderRatingUpdateOne) SetTrustScore(d decimal.Decimal) *ProviderRatingUpdateOne
- func (pruo *ProviderRatingUpdateOne) SetUpdatedAt(t time.Time) *ProviderRatingUpdateOne
- func (pruo *ProviderRatingUpdateOne) Where(ps ...predicate.ProviderRating) *ProviderRatingUpdateOne
- type ProviderRatingUpsert
- func (u *ProviderRatingUpsert) AddTrustScore(v decimal.Decimal) *ProviderRatingUpsert
- func (u *ProviderRatingUpsert) SetTrustScore(v decimal.Decimal) *ProviderRatingUpsert
- func (u *ProviderRatingUpsert) SetUpdatedAt(v time.Time) *ProviderRatingUpsert
- func (u *ProviderRatingUpsert) UpdateTrustScore() *ProviderRatingUpsert
- func (u *ProviderRatingUpsert) UpdateUpdatedAt() *ProviderRatingUpsert
- type ProviderRatingUpsertBulk
- func (u *ProviderRatingUpsertBulk) AddTrustScore(v decimal.Decimal) *ProviderRatingUpsertBulk
- func (u *ProviderRatingUpsertBulk) DoNothing() *ProviderRatingUpsertBulk
- func (u *ProviderRatingUpsertBulk) Exec(ctx context.Context) error
- func (u *ProviderRatingUpsertBulk) ExecX(ctx context.Context)
- func (u *ProviderRatingUpsertBulk) Ignore() *ProviderRatingUpsertBulk
- func (u *ProviderRatingUpsertBulk) SetTrustScore(v decimal.Decimal) *ProviderRatingUpsertBulk
- func (u *ProviderRatingUpsertBulk) SetUpdatedAt(v time.Time) *ProviderRatingUpsertBulk
- func (u *ProviderRatingUpsertBulk) Update(set func(*ProviderRatingUpsert)) *ProviderRatingUpsertBulk
- func (u *ProviderRatingUpsertBulk) UpdateNewValues() *ProviderRatingUpsertBulk
- func (u *ProviderRatingUpsertBulk) UpdateTrustScore() *ProviderRatingUpsertBulk
- func (u *ProviderRatingUpsertBulk) UpdateUpdatedAt() *ProviderRatingUpsertBulk
- type ProviderRatingUpsertOne
- func (u *ProviderRatingUpsertOne) AddTrustScore(v decimal.Decimal) *ProviderRatingUpsertOne
- func (u *ProviderRatingUpsertOne) DoNothing() *ProviderRatingUpsertOne
- func (u *ProviderRatingUpsertOne) Exec(ctx context.Context) error
- func (u *ProviderRatingUpsertOne) ExecX(ctx context.Context)
- func (u *ProviderRatingUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *ProviderRatingUpsertOne) IDX(ctx context.Context) int
- func (u *ProviderRatingUpsertOne) Ignore() *ProviderRatingUpsertOne
- func (u *ProviderRatingUpsertOne) SetTrustScore(v decimal.Decimal) *ProviderRatingUpsertOne
- func (u *ProviderRatingUpsertOne) SetUpdatedAt(v time.Time) *ProviderRatingUpsertOne
- func (u *ProviderRatingUpsertOne) Update(set func(*ProviderRatingUpsert)) *ProviderRatingUpsertOne
- func (u *ProviderRatingUpsertOne) UpdateNewValues() *ProviderRatingUpsertOne
- func (u *ProviderRatingUpsertOne) UpdateTrustScore() *ProviderRatingUpsertOne
- func (u *ProviderRatingUpsertOne) UpdateUpdatedAt() *ProviderRatingUpsertOne
- type ProviderRatings
- type ProvisionBucket
- func (pb *ProvisionBucket) QueryCurrency() *FiatCurrencyQuery
- func (pb *ProvisionBucket) QueryLockPaymentOrders() *LockPaymentOrderQuery
- func (pb *ProvisionBucket) QueryProviderProfiles() *ProviderProfileQuery
- func (pb *ProvisionBucket) String() string
- func (pb *ProvisionBucket) Unwrap() *ProvisionBucket
- func (pb *ProvisionBucket) Update() *ProvisionBucketUpdateOne
- func (pb *ProvisionBucket) Value(name string) (ent.Value, error)
- type ProvisionBucketClient
- func (c *ProvisionBucketClient) Create() *ProvisionBucketCreate
- func (c *ProvisionBucketClient) CreateBulk(builders ...*ProvisionBucketCreate) *ProvisionBucketCreateBulk
- func (c *ProvisionBucketClient) Delete() *ProvisionBucketDelete
- func (c *ProvisionBucketClient) DeleteOne(pb *ProvisionBucket) *ProvisionBucketDeleteOne
- func (c *ProvisionBucketClient) DeleteOneID(id int) *ProvisionBucketDeleteOne
- func (c *ProvisionBucketClient) Get(ctx context.Context, id int) (*ProvisionBucket, error)
- func (c *ProvisionBucketClient) GetX(ctx context.Context, id int) *ProvisionBucket
- func (c *ProvisionBucketClient) Hooks() []Hook
- func (c *ProvisionBucketClient) Intercept(interceptors ...Interceptor)
- func (c *ProvisionBucketClient) Interceptors() []Interceptor
- func (c *ProvisionBucketClient) MapCreateBulk(slice any, setFunc func(*ProvisionBucketCreate, int)) *ProvisionBucketCreateBulk
- func (c *ProvisionBucketClient) Query() *ProvisionBucketQuery
- func (c *ProvisionBucketClient) QueryCurrency(pb *ProvisionBucket) *FiatCurrencyQuery
- func (c *ProvisionBucketClient) QueryLockPaymentOrders(pb *ProvisionBucket) *LockPaymentOrderQuery
- func (c *ProvisionBucketClient) QueryProviderProfiles(pb *ProvisionBucket) *ProviderProfileQuery
- func (c *ProvisionBucketClient) Update() *ProvisionBucketUpdate
- func (c *ProvisionBucketClient) UpdateOne(pb *ProvisionBucket) *ProvisionBucketUpdateOne
- func (c *ProvisionBucketClient) UpdateOneID(id int) *ProvisionBucketUpdateOne
- func (c *ProvisionBucketClient) Use(hooks ...Hook)
- type ProvisionBucketCreate
- func (pbc *ProvisionBucketCreate) AddLockPaymentOrderIDs(ids ...uuid.UUID) *ProvisionBucketCreate
- func (pbc *ProvisionBucketCreate) AddLockPaymentOrders(l ...*LockPaymentOrder) *ProvisionBucketCreate
- func (pbc *ProvisionBucketCreate) AddProviderProfileIDs(ids ...string) *ProvisionBucketCreate
- func (pbc *ProvisionBucketCreate) AddProviderProfiles(p ...*ProviderProfile) *ProvisionBucketCreate
- func (pbc *ProvisionBucketCreate) Exec(ctx context.Context) error
- func (pbc *ProvisionBucketCreate) ExecX(ctx context.Context)
- func (pbc *ProvisionBucketCreate) Mutation() *ProvisionBucketMutation
- func (pbc *ProvisionBucketCreate) OnConflict(opts ...sql.ConflictOption) *ProvisionBucketUpsertOne
- func (pbc *ProvisionBucketCreate) OnConflictColumns(columns ...string) *ProvisionBucketUpsertOne
- func (pbc *ProvisionBucketCreate) Save(ctx context.Context) (*ProvisionBucket, error)
- func (pbc *ProvisionBucketCreate) SaveX(ctx context.Context) *ProvisionBucket
- func (pbc *ProvisionBucketCreate) SetCreatedAt(t time.Time) *ProvisionBucketCreate
- func (pbc *ProvisionBucketCreate) SetCurrency(f *FiatCurrency) *ProvisionBucketCreate
- func (pbc *ProvisionBucketCreate) SetCurrencyID(id uuid.UUID) *ProvisionBucketCreate
- func (pbc *ProvisionBucketCreate) SetMaxAmount(d decimal.Decimal) *ProvisionBucketCreate
- func (pbc *ProvisionBucketCreate) SetMinAmount(d decimal.Decimal) *ProvisionBucketCreate
- func (pbc *ProvisionBucketCreate) SetNillableCreatedAt(t *time.Time) *ProvisionBucketCreate
- type ProvisionBucketCreateBulk
- func (pbcb *ProvisionBucketCreateBulk) Exec(ctx context.Context) error
- func (pbcb *ProvisionBucketCreateBulk) ExecX(ctx context.Context)
- func (pbcb *ProvisionBucketCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProvisionBucketUpsertBulk
- func (pbcb *ProvisionBucketCreateBulk) OnConflictColumns(columns ...string) *ProvisionBucketUpsertBulk
- func (pbcb *ProvisionBucketCreateBulk) Save(ctx context.Context) ([]*ProvisionBucket, error)
- func (pbcb *ProvisionBucketCreateBulk) SaveX(ctx context.Context) []*ProvisionBucket
- type ProvisionBucketDelete
- type ProvisionBucketDeleteOne
- type ProvisionBucketEdges
- type ProvisionBucketGroupBy
- func (pbgb *ProvisionBucketGroupBy) Aggregate(fns ...AggregateFunc) *ProvisionBucketGroupBy
- func (s *ProvisionBucketGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProvisionBucketGroupBy) BoolX(ctx context.Context) bool
- func (s *ProvisionBucketGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ProvisionBucketGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ProvisionBucketGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProvisionBucketGroupBy) Float64X(ctx context.Context) float64
- func (s *ProvisionBucketGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProvisionBucketGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ProvisionBucketGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ProvisionBucketGroupBy) IntX(ctx context.Context) int
- func (s *ProvisionBucketGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ProvisionBucketGroupBy) IntsX(ctx context.Context) []int
- func (pbgb *ProvisionBucketGroupBy) Scan(ctx context.Context, v any) error
- func (s *ProvisionBucketGroupBy) ScanX(ctx context.Context, v any)
- func (s *ProvisionBucketGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ProvisionBucketGroupBy) StringX(ctx context.Context) string
- func (s *ProvisionBucketGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ProvisionBucketGroupBy) StringsX(ctx context.Context) []string
- type ProvisionBucketMutation
- func (m *ProvisionBucketMutation) AddField(name string, value ent.Value) error
- func (m *ProvisionBucketMutation) AddLockPaymentOrderIDs(ids ...uuid.UUID)
- func (m *ProvisionBucketMutation) AddMaxAmount(d decimal.Decimal)
- func (m *ProvisionBucketMutation) AddMinAmount(d decimal.Decimal)
- func (m *ProvisionBucketMutation) AddProviderProfileIDs(ids ...string)
- func (m *ProvisionBucketMutation) AddedEdges() []string
- func (m *ProvisionBucketMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProvisionBucketMutation) AddedFields() []string
- func (m *ProvisionBucketMutation) AddedIDs(name string) []ent.Value
- func (m *ProvisionBucketMutation) AddedMaxAmount() (r decimal.Decimal, exists bool)
- func (m *ProvisionBucketMutation) AddedMinAmount() (r decimal.Decimal, exists bool)
- func (m *ProvisionBucketMutation) ClearCurrency()
- func (m *ProvisionBucketMutation) ClearEdge(name string) error
- func (m *ProvisionBucketMutation) ClearField(name string) error
- func (m *ProvisionBucketMutation) ClearLockPaymentOrders()
- func (m *ProvisionBucketMutation) ClearProviderProfiles()
- func (m *ProvisionBucketMutation) ClearedEdges() []string
- func (m *ProvisionBucketMutation) ClearedFields() []string
- func (m ProvisionBucketMutation) Client() *Client
- func (m *ProvisionBucketMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ProvisionBucketMutation) CurrencyCleared() bool
- func (m *ProvisionBucketMutation) CurrencyID() (id uuid.UUID, exists bool)
- func (m *ProvisionBucketMutation) CurrencyIDs() (ids []uuid.UUID)
- func (m *ProvisionBucketMutation) EdgeCleared(name string) bool
- func (m *ProvisionBucketMutation) Field(name string) (ent.Value, bool)
- func (m *ProvisionBucketMutation) FieldCleared(name string) bool
- func (m *ProvisionBucketMutation) Fields() []string
- func (m *ProvisionBucketMutation) ID() (id int, exists bool)
- func (m *ProvisionBucketMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ProvisionBucketMutation) LockPaymentOrdersCleared() bool
- func (m *ProvisionBucketMutation) LockPaymentOrdersIDs() (ids []uuid.UUID)
- func (m *ProvisionBucketMutation) MaxAmount() (r decimal.Decimal, exists bool)
- func (m *ProvisionBucketMutation) MinAmount() (r decimal.Decimal, exists bool)
- func (m *ProvisionBucketMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProvisionBucketMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProvisionBucketMutation) OldMaxAmount(ctx context.Context) (v decimal.Decimal, err error)
- func (m *ProvisionBucketMutation) OldMinAmount(ctx context.Context) (v decimal.Decimal, err error)
- func (m *ProvisionBucketMutation) Op() Op
- func (m *ProvisionBucketMutation) ProviderProfilesCleared() bool
- func (m *ProvisionBucketMutation) ProviderProfilesIDs() (ids []string)
- func (m *ProvisionBucketMutation) RemoveLockPaymentOrderIDs(ids ...uuid.UUID)
- func (m *ProvisionBucketMutation) RemoveProviderProfileIDs(ids ...string)
- func (m *ProvisionBucketMutation) RemovedEdges() []string
- func (m *ProvisionBucketMutation) RemovedIDs(name string) []ent.Value
- func (m *ProvisionBucketMutation) RemovedLockPaymentOrdersIDs() (ids []uuid.UUID)
- func (m *ProvisionBucketMutation) RemovedProviderProfilesIDs() (ids []string)
- func (m *ProvisionBucketMutation) ResetCreatedAt()
- func (m *ProvisionBucketMutation) ResetCurrency()
- func (m *ProvisionBucketMutation) ResetEdge(name string) error
- func (m *ProvisionBucketMutation) ResetField(name string) error
- func (m *ProvisionBucketMutation) ResetLockPaymentOrders()
- func (m *ProvisionBucketMutation) ResetMaxAmount()
- func (m *ProvisionBucketMutation) ResetMinAmount()
- func (m *ProvisionBucketMutation) ResetProviderProfiles()
- func (m *ProvisionBucketMutation) SetCreatedAt(t time.Time)
- func (m *ProvisionBucketMutation) SetCurrencyID(id uuid.UUID)
- func (m *ProvisionBucketMutation) SetField(name string, value ent.Value) error
- func (m *ProvisionBucketMutation) SetMaxAmount(d decimal.Decimal)
- func (m *ProvisionBucketMutation) SetMinAmount(d decimal.Decimal)
- func (m *ProvisionBucketMutation) SetOp(op Op)
- func (m ProvisionBucketMutation) Tx() (*Tx, error)
- func (m *ProvisionBucketMutation) Type() string
- func (m *ProvisionBucketMutation) Where(ps ...predicate.ProvisionBucket)
- func (m *ProvisionBucketMutation) WhereP(ps ...func(*sql.Selector))
- type ProvisionBucketQuery
- func (pbq *ProvisionBucketQuery) Aggregate(fns ...AggregateFunc) *ProvisionBucketSelect
- func (pbq *ProvisionBucketQuery) All(ctx context.Context) ([]*ProvisionBucket, error)
- func (pbq *ProvisionBucketQuery) AllX(ctx context.Context) []*ProvisionBucket
- func (pbq *ProvisionBucketQuery) Clone() *ProvisionBucketQuery
- func (pbq *ProvisionBucketQuery) Count(ctx context.Context) (int, error)
- func (pbq *ProvisionBucketQuery) CountX(ctx context.Context) int
- func (pbq *ProvisionBucketQuery) Exist(ctx context.Context) (bool, error)
- func (pbq *ProvisionBucketQuery) ExistX(ctx context.Context) bool
- func (pbq *ProvisionBucketQuery) First(ctx context.Context) (*ProvisionBucket, error)
- func (pbq *ProvisionBucketQuery) FirstID(ctx context.Context) (id int, err error)
- func (pbq *ProvisionBucketQuery) FirstIDX(ctx context.Context) int
- func (pbq *ProvisionBucketQuery) FirstX(ctx context.Context) *ProvisionBucket
- func (pbq *ProvisionBucketQuery) GroupBy(field string, fields ...string) *ProvisionBucketGroupBy
- func (pbq *ProvisionBucketQuery) IDs(ctx context.Context) (ids []int, err error)
- func (pbq *ProvisionBucketQuery) IDsX(ctx context.Context) []int
- func (pbq *ProvisionBucketQuery) Limit(limit int) *ProvisionBucketQuery
- func (pbq *ProvisionBucketQuery) Offset(offset int) *ProvisionBucketQuery
- func (pbq *ProvisionBucketQuery) Only(ctx context.Context) (*ProvisionBucket, error)
- func (pbq *ProvisionBucketQuery) OnlyID(ctx context.Context) (id int, err error)
- func (pbq *ProvisionBucketQuery) OnlyIDX(ctx context.Context) int
- func (pbq *ProvisionBucketQuery) OnlyX(ctx context.Context) *ProvisionBucket
- func (pbq *ProvisionBucketQuery) Order(o ...provisionbucket.OrderOption) *ProvisionBucketQuery
- func (pbq *ProvisionBucketQuery) QueryCurrency() *FiatCurrencyQuery
- func (pbq *ProvisionBucketQuery) QueryLockPaymentOrders() *LockPaymentOrderQuery
- func (pbq *ProvisionBucketQuery) QueryProviderProfiles() *ProviderProfileQuery
- func (pbq *ProvisionBucketQuery) Select(fields ...string) *ProvisionBucketSelect
- func (pbq *ProvisionBucketQuery) Unique(unique bool) *ProvisionBucketQuery
- func (pbq *ProvisionBucketQuery) Where(ps ...predicate.ProvisionBucket) *ProvisionBucketQuery
- func (pbq *ProvisionBucketQuery) WithCurrency(opts ...func(*FiatCurrencyQuery)) *ProvisionBucketQuery
- func (pbq *ProvisionBucketQuery) WithLockPaymentOrders(opts ...func(*LockPaymentOrderQuery)) *ProvisionBucketQuery
- func (pbq *ProvisionBucketQuery) WithProviderProfiles(opts ...func(*ProviderProfileQuery)) *ProvisionBucketQuery
- type ProvisionBucketSelect
- func (pbs *ProvisionBucketSelect) Aggregate(fns ...AggregateFunc) *ProvisionBucketSelect
- func (s *ProvisionBucketSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProvisionBucketSelect) BoolX(ctx context.Context) bool
- func (s *ProvisionBucketSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ProvisionBucketSelect) BoolsX(ctx context.Context) []bool
- func (s *ProvisionBucketSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProvisionBucketSelect) Float64X(ctx context.Context) float64
- func (s *ProvisionBucketSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProvisionBucketSelect) Float64sX(ctx context.Context) []float64
- func (s *ProvisionBucketSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ProvisionBucketSelect) IntX(ctx context.Context) int
- func (s *ProvisionBucketSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ProvisionBucketSelect) IntsX(ctx context.Context) []int
- func (pbs *ProvisionBucketSelect) Scan(ctx context.Context, v any) error
- func (s *ProvisionBucketSelect) ScanX(ctx context.Context, v any)
- func (s *ProvisionBucketSelect) String(ctx context.Context) (_ string, err error)
- func (s *ProvisionBucketSelect) StringX(ctx context.Context) string
- func (s *ProvisionBucketSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ProvisionBucketSelect) StringsX(ctx context.Context) []string
- type ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) AddLockPaymentOrderIDs(ids ...uuid.UUID) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) AddLockPaymentOrders(l ...*LockPaymentOrder) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) AddMaxAmount(d decimal.Decimal) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) AddMinAmount(d decimal.Decimal) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) AddProviderProfileIDs(ids ...string) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) AddProviderProfiles(p ...*ProviderProfile) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) ClearCurrency() *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) ClearLockPaymentOrders() *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) ClearProviderProfiles() *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) Exec(ctx context.Context) error
- func (pbu *ProvisionBucketUpdate) ExecX(ctx context.Context)
- func (pbu *ProvisionBucketUpdate) Mutation() *ProvisionBucketMutation
- func (pbu *ProvisionBucketUpdate) RemoveLockPaymentOrderIDs(ids ...uuid.UUID) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) RemoveLockPaymentOrders(l ...*LockPaymentOrder) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) RemoveProviderProfileIDs(ids ...string) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) RemoveProviderProfiles(p ...*ProviderProfile) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) Save(ctx context.Context) (int, error)
- func (pbu *ProvisionBucketUpdate) SaveX(ctx context.Context) int
- func (pbu *ProvisionBucketUpdate) SetCurrency(f *FiatCurrency) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) SetCurrencyID(id uuid.UUID) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) SetMaxAmount(d decimal.Decimal) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) SetMinAmount(d decimal.Decimal) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) SetNillableMaxAmount(d *decimal.Decimal) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) SetNillableMinAmount(d *decimal.Decimal) *ProvisionBucketUpdate
- func (pbu *ProvisionBucketUpdate) Where(ps ...predicate.ProvisionBucket) *ProvisionBucketUpdate
- type ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) AddLockPaymentOrderIDs(ids ...uuid.UUID) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) AddLockPaymentOrders(l ...*LockPaymentOrder) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) AddMaxAmount(d decimal.Decimal) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) AddMinAmount(d decimal.Decimal) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) AddProviderProfileIDs(ids ...string) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) AddProviderProfiles(p ...*ProviderProfile) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) ClearCurrency() *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) ClearLockPaymentOrders() *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) ClearProviderProfiles() *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) Exec(ctx context.Context) error
- func (pbuo *ProvisionBucketUpdateOne) ExecX(ctx context.Context)
- func (pbuo *ProvisionBucketUpdateOne) Mutation() *ProvisionBucketMutation
- func (pbuo *ProvisionBucketUpdateOne) RemoveLockPaymentOrderIDs(ids ...uuid.UUID) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) RemoveLockPaymentOrders(l ...*LockPaymentOrder) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) RemoveProviderProfileIDs(ids ...string) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) RemoveProviderProfiles(p ...*ProviderProfile) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) Save(ctx context.Context) (*ProvisionBucket, error)
- func (pbuo *ProvisionBucketUpdateOne) SaveX(ctx context.Context) *ProvisionBucket
- func (pbuo *ProvisionBucketUpdateOne) Select(field string, fields ...string) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) SetCurrency(f *FiatCurrency) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) SetCurrencyID(id uuid.UUID) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) SetMaxAmount(d decimal.Decimal) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) SetMinAmount(d decimal.Decimal) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) SetNillableMaxAmount(d *decimal.Decimal) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) SetNillableMinAmount(d *decimal.Decimal) *ProvisionBucketUpdateOne
- func (pbuo *ProvisionBucketUpdateOne) Where(ps ...predicate.ProvisionBucket) *ProvisionBucketUpdateOne
- type ProvisionBucketUpsert
- func (u *ProvisionBucketUpsert) AddMaxAmount(v decimal.Decimal) *ProvisionBucketUpsert
- func (u *ProvisionBucketUpsert) AddMinAmount(v decimal.Decimal) *ProvisionBucketUpsert
- func (u *ProvisionBucketUpsert) SetMaxAmount(v decimal.Decimal) *ProvisionBucketUpsert
- func (u *ProvisionBucketUpsert) SetMinAmount(v decimal.Decimal) *ProvisionBucketUpsert
- func (u *ProvisionBucketUpsert) UpdateMaxAmount() *ProvisionBucketUpsert
- func (u *ProvisionBucketUpsert) UpdateMinAmount() *ProvisionBucketUpsert
- type ProvisionBucketUpsertBulk
- func (u *ProvisionBucketUpsertBulk) AddMaxAmount(v decimal.Decimal) *ProvisionBucketUpsertBulk
- func (u *ProvisionBucketUpsertBulk) AddMinAmount(v decimal.Decimal) *ProvisionBucketUpsertBulk
- func (u *ProvisionBucketUpsertBulk) DoNothing() *ProvisionBucketUpsertBulk
- func (u *ProvisionBucketUpsertBulk) Exec(ctx context.Context) error
- func (u *ProvisionBucketUpsertBulk) ExecX(ctx context.Context)
- func (u *ProvisionBucketUpsertBulk) Ignore() *ProvisionBucketUpsertBulk
- func (u *ProvisionBucketUpsertBulk) SetMaxAmount(v decimal.Decimal) *ProvisionBucketUpsertBulk
- func (u *ProvisionBucketUpsertBulk) SetMinAmount(v decimal.Decimal) *ProvisionBucketUpsertBulk
- func (u *ProvisionBucketUpsertBulk) Update(set func(*ProvisionBucketUpsert)) *ProvisionBucketUpsertBulk
- func (u *ProvisionBucketUpsertBulk) UpdateMaxAmount() *ProvisionBucketUpsertBulk
- func (u *ProvisionBucketUpsertBulk) UpdateMinAmount() *ProvisionBucketUpsertBulk
- func (u *ProvisionBucketUpsertBulk) UpdateNewValues() *ProvisionBucketUpsertBulk
- type ProvisionBucketUpsertOne
- func (u *ProvisionBucketUpsertOne) AddMaxAmount(v decimal.Decimal) *ProvisionBucketUpsertOne
- func (u *ProvisionBucketUpsertOne) AddMinAmount(v decimal.Decimal) *ProvisionBucketUpsertOne
- func (u *ProvisionBucketUpsertOne) DoNothing() *ProvisionBucketUpsertOne
- func (u *ProvisionBucketUpsertOne) Exec(ctx context.Context) error
- func (u *ProvisionBucketUpsertOne) ExecX(ctx context.Context)
- func (u *ProvisionBucketUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *ProvisionBucketUpsertOne) IDX(ctx context.Context) int
- func (u *ProvisionBucketUpsertOne) Ignore() *ProvisionBucketUpsertOne
- func (u *ProvisionBucketUpsertOne) SetMaxAmount(v decimal.Decimal) *ProvisionBucketUpsertOne
- func (u *ProvisionBucketUpsertOne) SetMinAmount(v decimal.Decimal) *ProvisionBucketUpsertOne
- func (u *ProvisionBucketUpsertOne) Update(set func(*ProvisionBucketUpsert)) *ProvisionBucketUpsertOne
- func (u *ProvisionBucketUpsertOne) UpdateMaxAmount() *ProvisionBucketUpsertOne
- func (u *ProvisionBucketUpsertOne) UpdateMinAmount() *ProvisionBucketUpsertOne
- func (u *ProvisionBucketUpsertOne) UpdateNewValues() *ProvisionBucketUpsertOne
- type ProvisionBuckets
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type ReceiveAddress
- type ReceiveAddressClient
- func (c *ReceiveAddressClient) Create() *ReceiveAddressCreate
- func (c *ReceiveAddressClient) CreateBulk(builders ...*ReceiveAddressCreate) *ReceiveAddressCreateBulk
- func (c *ReceiveAddressClient) Delete() *ReceiveAddressDelete
- func (c *ReceiveAddressClient) DeleteOne(ra *ReceiveAddress) *ReceiveAddressDeleteOne
- func (c *ReceiveAddressClient) DeleteOneID(id int) *ReceiveAddressDeleteOne
- func (c *ReceiveAddressClient) Get(ctx context.Context, id int) (*ReceiveAddress, error)
- func (c *ReceiveAddressClient) GetX(ctx context.Context, id int) *ReceiveAddress
- func (c *ReceiveAddressClient) Hooks() []Hook
- func (c *ReceiveAddressClient) Intercept(interceptors ...Interceptor)
- func (c *ReceiveAddressClient) Interceptors() []Interceptor
- func (c *ReceiveAddressClient) MapCreateBulk(slice any, setFunc func(*ReceiveAddressCreate, int)) *ReceiveAddressCreateBulk
- func (c *ReceiveAddressClient) Query() *ReceiveAddressQuery
- func (c *ReceiveAddressClient) QueryPaymentOrder(ra *ReceiveAddress) *PaymentOrderQuery
- func (c *ReceiveAddressClient) Update() *ReceiveAddressUpdate
- func (c *ReceiveAddressClient) UpdateOne(ra *ReceiveAddress) *ReceiveAddressUpdateOne
- func (c *ReceiveAddressClient) UpdateOneID(id int) *ReceiveAddressUpdateOne
- func (c *ReceiveAddressClient) Use(hooks ...Hook)
- type ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) Exec(ctx context.Context) error
- func (rac *ReceiveAddressCreate) ExecX(ctx context.Context)
- func (rac *ReceiveAddressCreate) Mutation() *ReceiveAddressMutation
- func (rac *ReceiveAddressCreate) OnConflict(opts ...sql.ConflictOption) *ReceiveAddressUpsertOne
- func (rac *ReceiveAddressCreate) OnConflictColumns(columns ...string) *ReceiveAddressUpsertOne
- func (rac *ReceiveAddressCreate) Save(ctx context.Context) (*ReceiveAddress, error)
- func (rac *ReceiveAddressCreate) SaveX(ctx context.Context) *ReceiveAddress
- func (rac *ReceiveAddressCreate) SetAddress(s string) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetCreatedAt(t time.Time) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetLastIndexedBlock(i int64) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetLastUsed(t time.Time) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetNillableCreatedAt(t *time.Time) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetNillableLastIndexedBlock(i *int64) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetNillableLastUsed(t *time.Time) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetNillablePaymentOrderID(id *uuid.UUID) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetNillableStatus(r *receiveaddress.Status) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetNillableTxHash(s *string) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetNillableUpdatedAt(t *time.Time) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetNillableValidUntil(t *time.Time) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetPaymentOrder(p *PaymentOrder) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetPaymentOrderID(id uuid.UUID) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetSalt(b []byte) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetStatus(r receiveaddress.Status) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetTxHash(s string) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetUpdatedAt(t time.Time) *ReceiveAddressCreate
- func (rac *ReceiveAddressCreate) SetValidUntil(t time.Time) *ReceiveAddressCreate
- type ReceiveAddressCreateBulk
- func (racb *ReceiveAddressCreateBulk) Exec(ctx context.Context) error
- func (racb *ReceiveAddressCreateBulk) ExecX(ctx context.Context)
- func (racb *ReceiveAddressCreateBulk) OnConflict(opts ...sql.ConflictOption) *ReceiveAddressUpsertBulk
- func (racb *ReceiveAddressCreateBulk) OnConflictColumns(columns ...string) *ReceiveAddressUpsertBulk
- func (racb *ReceiveAddressCreateBulk) Save(ctx context.Context) ([]*ReceiveAddress, error)
- func (racb *ReceiveAddressCreateBulk) SaveX(ctx context.Context) []*ReceiveAddress
- type ReceiveAddressDelete
- type ReceiveAddressDeleteOne
- type ReceiveAddressEdges
- type ReceiveAddressGroupBy
- func (ragb *ReceiveAddressGroupBy) Aggregate(fns ...AggregateFunc) *ReceiveAddressGroupBy
- func (s *ReceiveAddressGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReceiveAddressGroupBy) BoolX(ctx context.Context) bool
- func (s *ReceiveAddressGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ReceiveAddressGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ReceiveAddressGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReceiveAddressGroupBy) Float64X(ctx context.Context) float64
- func (s *ReceiveAddressGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReceiveAddressGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ReceiveAddressGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ReceiveAddressGroupBy) IntX(ctx context.Context) int
- func (s *ReceiveAddressGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ReceiveAddressGroupBy) IntsX(ctx context.Context) []int
- func (ragb *ReceiveAddressGroupBy) Scan(ctx context.Context, v any) error
- func (s *ReceiveAddressGroupBy) ScanX(ctx context.Context, v any)
- func (s *ReceiveAddressGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ReceiveAddressGroupBy) StringX(ctx context.Context) string
- func (s *ReceiveAddressGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ReceiveAddressGroupBy) StringsX(ctx context.Context) []string
- type ReceiveAddressMutation
- func (m *ReceiveAddressMutation) AddField(name string, value ent.Value) error
- func (m *ReceiveAddressMutation) AddLastIndexedBlock(i int64)
- func (m *ReceiveAddressMutation) AddedEdges() []string
- func (m *ReceiveAddressMutation) AddedField(name string) (ent.Value, bool)
- func (m *ReceiveAddressMutation) AddedFields() []string
- func (m *ReceiveAddressMutation) AddedIDs(name string) []ent.Value
- func (m *ReceiveAddressMutation) AddedLastIndexedBlock() (r int64, exists bool)
- func (m *ReceiveAddressMutation) Address() (r string, exists bool)
- func (m *ReceiveAddressMutation) ClearEdge(name string) error
- func (m *ReceiveAddressMutation) ClearField(name string) error
- func (m *ReceiveAddressMutation) ClearLastIndexedBlock()
- func (m *ReceiveAddressMutation) ClearLastUsed()
- func (m *ReceiveAddressMutation) ClearPaymentOrder()
- func (m *ReceiveAddressMutation) ClearSalt()
- func (m *ReceiveAddressMutation) ClearTxHash()
- func (m *ReceiveAddressMutation) ClearValidUntil()
- func (m *ReceiveAddressMutation) ClearedEdges() []string
- func (m *ReceiveAddressMutation) ClearedFields() []string
- func (m ReceiveAddressMutation) Client() *Client
- func (m *ReceiveAddressMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ReceiveAddressMutation) EdgeCleared(name string) bool
- func (m *ReceiveAddressMutation) Field(name string) (ent.Value, bool)
- func (m *ReceiveAddressMutation) FieldCleared(name string) bool
- func (m *ReceiveAddressMutation) Fields() []string
- func (m *ReceiveAddressMutation) ID() (id int, exists bool)
- func (m *ReceiveAddressMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ReceiveAddressMutation) LastIndexedBlock() (r int64, exists bool)
- func (m *ReceiveAddressMutation) LastIndexedBlockCleared() bool
- func (m *ReceiveAddressMutation) LastUsed() (r time.Time, exists bool)
- func (m *ReceiveAddressMutation) LastUsedCleared() bool
- func (m *ReceiveAddressMutation) OldAddress(ctx context.Context) (v string, err error)
- func (m *ReceiveAddressMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReceiveAddressMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ReceiveAddressMutation) OldLastIndexedBlock(ctx context.Context) (v int64, err error)
- func (m *ReceiveAddressMutation) OldLastUsed(ctx context.Context) (v time.Time, err error)
- func (m *ReceiveAddressMutation) OldSalt(ctx context.Context) (v []byte, err error)
- func (m *ReceiveAddressMutation) OldStatus(ctx context.Context) (v receiveaddress.Status, err error)
- func (m *ReceiveAddressMutation) OldTxHash(ctx context.Context) (v string, err error)
- func (m *ReceiveAddressMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ReceiveAddressMutation) OldValidUntil(ctx context.Context) (v time.Time, err error)
- func (m *ReceiveAddressMutation) Op() Op
- func (m *ReceiveAddressMutation) PaymentOrderCleared() bool
- func (m *ReceiveAddressMutation) PaymentOrderID() (id uuid.UUID, exists bool)
- func (m *ReceiveAddressMutation) PaymentOrderIDs() (ids []uuid.UUID)
- func (m *ReceiveAddressMutation) RemovedEdges() []string
- func (m *ReceiveAddressMutation) RemovedIDs(name string) []ent.Value
- func (m *ReceiveAddressMutation) ResetAddress()
- func (m *ReceiveAddressMutation) ResetCreatedAt()
- func (m *ReceiveAddressMutation) ResetEdge(name string) error
- func (m *ReceiveAddressMutation) ResetField(name string) error
- func (m *ReceiveAddressMutation) ResetLastIndexedBlock()
- func (m *ReceiveAddressMutation) ResetLastUsed()
- func (m *ReceiveAddressMutation) ResetPaymentOrder()
- func (m *ReceiveAddressMutation) ResetSalt()
- func (m *ReceiveAddressMutation) ResetStatus()
- func (m *ReceiveAddressMutation) ResetTxHash()
- func (m *ReceiveAddressMutation) ResetUpdatedAt()
- func (m *ReceiveAddressMutation) ResetValidUntil()
- func (m *ReceiveAddressMutation) Salt() (r []byte, exists bool)
- func (m *ReceiveAddressMutation) SaltCleared() bool
- func (m *ReceiveAddressMutation) SetAddress(s string)
- func (m *ReceiveAddressMutation) SetCreatedAt(t time.Time)
- func (m *ReceiveAddressMutation) SetField(name string, value ent.Value) error
- func (m *ReceiveAddressMutation) SetLastIndexedBlock(i int64)
- func (m *ReceiveAddressMutation) SetLastUsed(t time.Time)
- func (m *ReceiveAddressMutation) SetOp(op Op)
- func (m *ReceiveAddressMutation) SetPaymentOrderID(id uuid.UUID)
- func (m *ReceiveAddressMutation) SetSalt(b []byte)
- func (m *ReceiveAddressMutation) SetStatus(r receiveaddress.Status)
- func (m *ReceiveAddressMutation) SetTxHash(s string)
- func (m *ReceiveAddressMutation) SetUpdatedAt(t time.Time)
- func (m *ReceiveAddressMutation) SetValidUntil(t time.Time)
- func (m *ReceiveAddressMutation) Status() (r receiveaddress.Status, exists bool)
- func (m ReceiveAddressMutation) Tx() (*Tx, error)
- func (m *ReceiveAddressMutation) TxHash() (r string, exists bool)
- func (m *ReceiveAddressMutation) TxHashCleared() bool
- func (m *ReceiveAddressMutation) Type() string
- func (m *ReceiveAddressMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ReceiveAddressMutation) ValidUntil() (r time.Time, exists bool)
- func (m *ReceiveAddressMutation) ValidUntilCleared() bool
- func (m *ReceiveAddressMutation) Where(ps ...predicate.ReceiveAddress)
- func (m *ReceiveAddressMutation) WhereP(ps ...func(*sql.Selector))
- type ReceiveAddressQuery
- func (raq *ReceiveAddressQuery) Aggregate(fns ...AggregateFunc) *ReceiveAddressSelect
- func (raq *ReceiveAddressQuery) All(ctx context.Context) ([]*ReceiveAddress, error)
- func (raq *ReceiveAddressQuery) AllX(ctx context.Context) []*ReceiveAddress
- func (raq *ReceiveAddressQuery) Clone() *ReceiveAddressQuery
- func (raq *ReceiveAddressQuery) Count(ctx context.Context) (int, error)
- func (raq *ReceiveAddressQuery) CountX(ctx context.Context) int
- func (raq *ReceiveAddressQuery) Exist(ctx context.Context) (bool, error)
- func (raq *ReceiveAddressQuery) ExistX(ctx context.Context) bool
- func (raq *ReceiveAddressQuery) First(ctx context.Context) (*ReceiveAddress, error)
- func (raq *ReceiveAddressQuery) FirstID(ctx context.Context) (id int, err error)
- func (raq *ReceiveAddressQuery) FirstIDX(ctx context.Context) int
- func (raq *ReceiveAddressQuery) FirstX(ctx context.Context) *ReceiveAddress
- func (raq *ReceiveAddressQuery) GroupBy(field string, fields ...string) *ReceiveAddressGroupBy
- func (raq *ReceiveAddressQuery) IDs(ctx context.Context) (ids []int, err error)
- func (raq *ReceiveAddressQuery) IDsX(ctx context.Context) []int
- func (raq *ReceiveAddressQuery) Limit(limit int) *ReceiveAddressQuery
- func (raq *ReceiveAddressQuery) Offset(offset int) *ReceiveAddressQuery
- func (raq *ReceiveAddressQuery) Only(ctx context.Context) (*ReceiveAddress, error)
- func (raq *ReceiveAddressQuery) OnlyID(ctx context.Context) (id int, err error)
- func (raq *ReceiveAddressQuery) OnlyIDX(ctx context.Context) int
- func (raq *ReceiveAddressQuery) OnlyX(ctx context.Context) *ReceiveAddress
- func (raq *ReceiveAddressQuery) Order(o ...receiveaddress.OrderOption) *ReceiveAddressQuery
- func (raq *ReceiveAddressQuery) QueryPaymentOrder() *PaymentOrderQuery
- func (raq *ReceiveAddressQuery) Select(fields ...string) *ReceiveAddressSelect
- func (raq *ReceiveAddressQuery) Unique(unique bool) *ReceiveAddressQuery
- func (raq *ReceiveAddressQuery) Where(ps ...predicate.ReceiveAddress) *ReceiveAddressQuery
- func (raq *ReceiveAddressQuery) WithPaymentOrder(opts ...func(*PaymentOrderQuery)) *ReceiveAddressQuery
- type ReceiveAddressSelect
- func (ras *ReceiveAddressSelect) Aggregate(fns ...AggregateFunc) *ReceiveAddressSelect
- func (s *ReceiveAddressSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ReceiveAddressSelect) BoolX(ctx context.Context) bool
- func (s *ReceiveAddressSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ReceiveAddressSelect) BoolsX(ctx context.Context) []bool
- func (s *ReceiveAddressSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ReceiveAddressSelect) Float64X(ctx context.Context) float64
- func (s *ReceiveAddressSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ReceiveAddressSelect) Float64sX(ctx context.Context) []float64
- func (s *ReceiveAddressSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ReceiveAddressSelect) IntX(ctx context.Context) int
- func (s *ReceiveAddressSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ReceiveAddressSelect) IntsX(ctx context.Context) []int
- func (ras *ReceiveAddressSelect) Scan(ctx context.Context, v any) error
- func (s *ReceiveAddressSelect) ScanX(ctx context.Context, v any)
- func (s *ReceiveAddressSelect) String(ctx context.Context) (_ string, err error)
- func (s *ReceiveAddressSelect) StringX(ctx context.Context) string
- func (s *ReceiveAddressSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ReceiveAddressSelect) StringsX(ctx context.Context) []string
- type ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) AddLastIndexedBlock(i int64) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) ClearLastIndexedBlock() *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) ClearLastUsed() *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) ClearPaymentOrder() *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) ClearSalt() *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) ClearTxHash() *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) ClearValidUntil() *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) Exec(ctx context.Context) error
- func (rau *ReceiveAddressUpdate) ExecX(ctx context.Context)
- func (rau *ReceiveAddressUpdate) Mutation() *ReceiveAddressMutation
- func (rau *ReceiveAddressUpdate) Save(ctx context.Context) (int, error)
- func (rau *ReceiveAddressUpdate) SaveX(ctx context.Context) int
- func (rau *ReceiveAddressUpdate) SetAddress(s string) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetLastIndexedBlock(i int64) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetLastUsed(t time.Time) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetNillableAddress(s *string) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetNillableLastIndexedBlock(i *int64) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetNillableLastUsed(t *time.Time) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetNillablePaymentOrderID(id *uuid.UUID) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetNillableStatus(r *receiveaddress.Status) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetNillableTxHash(s *string) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetNillableValidUntil(t *time.Time) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetPaymentOrder(p *PaymentOrder) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetPaymentOrderID(id uuid.UUID) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetSalt(b []byte) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetStatus(r receiveaddress.Status) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetTxHash(s string) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetUpdatedAt(t time.Time) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) SetValidUntil(t time.Time) *ReceiveAddressUpdate
- func (rau *ReceiveAddressUpdate) Where(ps ...predicate.ReceiveAddress) *ReceiveAddressUpdate
- type ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) AddLastIndexedBlock(i int64) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) ClearLastIndexedBlock() *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) ClearLastUsed() *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) ClearPaymentOrder() *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) ClearSalt() *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) ClearTxHash() *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) ClearValidUntil() *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) Exec(ctx context.Context) error
- func (rauo *ReceiveAddressUpdateOne) ExecX(ctx context.Context)
- func (rauo *ReceiveAddressUpdateOne) Mutation() *ReceiveAddressMutation
- func (rauo *ReceiveAddressUpdateOne) Save(ctx context.Context) (*ReceiveAddress, error)
- func (rauo *ReceiveAddressUpdateOne) SaveX(ctx context.Context) *ReceiveAddress
- func (rauo *ReceiveAddressUpdateOne) Select(field string, fields ...string) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetAddress(s string) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetLastIndexedBlock(i int64) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetLastUsed(t time.Time) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetNillableAddress(s *string) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetNillableLastIndexedBlock(i *int64) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetNillableLastUsed(t *time.Time) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetNillablePaymentOrderID(id *uuid.UUID) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetNillableStatus(r *receiveaddress.Status) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetNillableTxHash(s *string) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetNillableValidUntil(t *time.Time) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetPaymentOrder(p *PaymentOrder) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetPaymentOrderID(id uuid.UUID) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetSalt(b []byte) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetStatus(r receiveaddress.Status) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetTxHash(s string) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetUpdatedAt(t time.Time) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) SetValidUntil(t time.Time) *ReceiveAddressUpdateOne
- func (rauo *ReceiveAddressUpdateOne) Where(ps ...predicate.ReceiveAddress) *ReceiveAddressUpdateOne
- type ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) AddLastIndexedBlock(v int64) *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) ClearLastIndexedBlock() *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) ClearLastUsed() *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) ClearSalt() *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) ClearTxHash() *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) ClearValidUntil() *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) SetAddress(v string) *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) SetLastIndexedBlock(v int64) *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) SetLastUsed(v time.Time) *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) SetSalt(v []byte) *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) SetStatus(v receiveaddress.Status) *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) SetTxHash(v string) *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) SetUpdatedAt(v time.Time) *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) SetValidUntil(v time.Time) *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) UpdateAddress() *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) UpdateLastIndexedBlock() *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) UpdateLastUsed() *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) UpdateSalt() *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) UpdateStatus() *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) UpdateTxHash() *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) UpdateUpdatedAt() *ReceiveAddressUpsert
- func (u *ReceiveAddressUpsert) UpdateValidUntil() *ReceiveAddressUpsert
- type ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) AddLastIndexedBlock(v int64) *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) ClearLastIndexedBlock() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) ClearLastUsed() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) ClearSalt() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) ClearTxHash() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) ClearValidUntil() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) DoNothing() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) Exec(ctx context.Context) error
- func (u *ReceiveAddressUpsertBulk) ExecX(ctx context.Context)
- func (u *ReceiveAddressUpsertBulk) Ignore() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) SetAddress(v string) *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) SetLastIndexedBlock(v int64) *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) SetLastUsed(v time.Time) *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) SetSalt(v []byte) *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) SetStatus(v receiveaddress.Status) *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) SetTxHash(v string) *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) SetUpdatedAt(v time.Time) *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) SetValidUntil(v time.Time) *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) Update(set func(*ReceiveAddressUpsert)) *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) UpdateAddress() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) UpdateLastIndexedBlock() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) UpdateLastUsed() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) UpdateNewValues() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) UpdateSalt() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) UpdateStatus() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) UpdateTxHash() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) UpdateUpdatedAt() *ReceiveAddressUpsertBulk
- func (u *ReceiveAddressUpsertBulk) UpdateValidUntil() *ReceiveAddressUpsertBulk
- type ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) AddLastIndexedBlock(v int64) *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) ClearLastIndexedBlock() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) ClearLastUsed() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) ClearSalt() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) ClearTxHash() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) ClearValidUntil() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) DoNothing() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) Exec(ctx context.Context) error
- func (u *ReceiveAddressUpsertOne) ExecX(ctx context.Context)
- func (u *ReceiveAddressUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *ReceiveAddressUpsertOne) IDX(ctx context.Context) int
- func (u *ReceiveAddressUpsertOne) Ignore() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) SetAddress(v string) *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) SetLastIndexedBlock(v int64) *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) SetLastUsed(v time.Time) *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) SetSalt(v []byte) *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) SetStatus(v receiveaddress.Status) *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) SetTxHash(v string) *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) SetUpdatedAt(v time.Time) *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) SetValidUntil(v time.Time) *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) Update(set func(*ReceiveAddressUpsert)) *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) UpdateAddress() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) UpdateLastIndexedBlock() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) UpdateLastUsed() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) UpdateNewValues() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) UpdateSalt() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) UpdateStatus() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) UpdateTxHash() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) UpdateUpdatedAt() *ReceiveAddressUpsertOne
- func (u *ReceiveAddressUpsertOne) UpdateValidUntil() *ReceiveAddressUpsertOne
- type ReceiveAddresses
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type SenderOrderToken
- func (sot *SenderOrderToken) QuerySender() *SenderProfileQuery
- func (sot *SenderOrderToken) QueryToken() *TokenQuery
- func (sot *SenderOrderToken) String() string
- func (sot *SenderOrderToken) Unwrap() *SenderOrderToken
- func (sot *SenderOrderToken) Update() *SenderOrderTokenUpdateOne
- func (sot *SenderOrderToken) Value(name string) (ent.Value, error)
- type SenderOrderTokenClient
- func (c *SenderOrderTokenClient) Create() *SenderOrderTokenCreate
- func (c *SenderOrderTokenClient) CreateBulk(builders ...*SenderOrderTokenCreate) *SenderOrderTokenCreateBulk
- func (c *SenderOrderTokenClient) Delete() *SenderOrderTokenDelete
- func (c *SenderOrderTokenClient) DeleteOne(sot *SenderOrderToken) *SenderOrderTokenDeleteOne
- func (c *SenderOrderTokenClient) DeleteOneID(id int) *SenderOrderTokenDeleteOne
- func (c *SenderOrderTokenClient) Get(ctx context.Context, id int) (*SenderOrderToken, error)
- func (c *SenderOrderTokenClient) GetX(ctx context.Context, id int) *SenderOrderToken
- func (c *SenderOrderTokenClient) Hooks() []Hook
- func (c *SenderOrderTokenClient) Intercept(interceptors ...Interceptor)
- func (c *SenderOrderTokenClient) Interceptors() []Interceptor
- func (c *SenderOrderTokenClient) MapCreateBulk(slice any, setFunc func(*SenderOrderTokenCreate, int)) *SenderOrderTokenCreateBulk
- func (c *SenderOrderTokenClient) Query() *SenderOrderTokenQuery
- func (c *SenderOrderTokenClient) QuerySender(sot *SenderOrderToken) *SenderProfileQuery
- func (c *SenderOrderTokenClient) QueryToken(sot *SenderOrderToken) *TokenQuery
- func (c *SenderOrderTokenClient) Update() *SenderOrderTokenUpdate
- func (c *SenderOrderTokenClient) UpdateOne(sot *SenderOrderToken) *SenderOrderTokenUpdateOne
- func (c *SenderOrderTokenClient) UpdateOneID(id int) *SenderOrderTokenUpdateOne
- func (c *SenderOrderTokenClient) Use(hooks ...Hook)
- type SenderOrderTokenCreate
- func (sotc *SenderOrderTokenCreate) Exec(ctx context.Context) error
- func (sotc *SenderOrderTokenCreate) ExecX(ctx context.Context)
- func (sotc *SenderOrderTokenCreate) Mutation() *SenderOrderTokenMutation
- func (sotc *SenderOrderTokenCreate) OnConflict(opts ...sql.ConflictOption) *SenderOrderTokenUpsertOne
- func (sotc *SenderOrderTokenCreate) OnConflictColumns(columns ...string) *SenderOrderTokenUpsertOne
- func (sotc *SenderOrderTokenCreate) Save(ctx context.Context) (*SenderOrderToken, error)
- func (sotc *SenderOrderTokenCreate) SaveX(ctx context.Context) *SenderOrderToken
- func (sotc *SenderOrderTokenCreate) SetCreatedAt(t time.Time) *SenderOrderTokenCreate
- func (sotc *SenderOrderTokenCreate) SetFeeAddress(s string) *SenderOrderTokenCreate
- func (sotc *SenderOrderTokenCreate) SetFeePercent(d decimal.Decimal) *SenderOrderTokenCreate
- func (sotc *SenderOrderTokenCreate) SetNillableCreatedAt(t *time.Time) *SenderOrderTokenCreate
- func (sotc *SenderOrderTokenCreate) SetNillableUpdatedAt(t *time.Time) *SenderOrderTokenCreate
- func (sotc *SenderOrderTokenCreate) SetRefundAddress(s string) *SenderOrderTokenCreate
- func (sotc *SenderOrderTokenCreate) SetSender(s *SenderProfile) *SenderOrderTokenCreate
- func (sotc *SenderOrderTokenCreate) SetSenderID(id uuid.UUID) *SenderOrderTokenCreate
- func (sotc *SenderOrderTokenCreate) SetToken(t *Token) *SenderOrderTokenCreate
- func (sotc *SenderOrderTokenCreate) SetTokenID(id int) *SenderOrderTokenCreate
- func (sotc *SenderOrderTokenCreate) SetUpdatedAt(t time.Time) *SenderOrderTokenCreate
- type SenderOrderTokenCreateBulk
- func (sotcb *SenderOrderTokenCreateBulk) Exec(ctx context.Context) error
- func (sotcb *SenderOrderTokenCreateBulk) ExecX(ctx context.Context)
- func (sotcb *SenderOrderTokenCreateBulk) OnConflict(opts ...sql.ConflictOption) *SenderOrderTokenUpsertBulk
- func (sotcb *SenderOrderTokenCreateBulk) OnConflictColumns(columns ...string) *SenderOrderTokenUpsertBulk
- func (sotcb *SenderOrderTokenCreateBulk) Save(ctx context.Context) ([]*SenderOrderToken, error)
- func (sotcb *SenderOrderTokenCreateBulk) SaveX(ctx context.Context) []*SenderOrderToken
- type SenderOrderTokenDelete
- type SenderOrderTokenDeleteOne
- type SenderOrderTokenEdges
- type SenderOrderTokenGroupBy
- func (sotgb *SenderOrderTokenGroupBy) Aggregate(fns ...AggregateFunc) *SenderOrderTokenGroupBy
- func (s *SenderOrderTokenGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *SenderOrderTokenGroupBy) BoolX(ctx context.Context) bool
- func (s *SenderOrderTokenGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *SenderOrderTokenGroupBy) BoolsX(ctx context.Context) []bool
- func (s *SenderOrderTokenGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *SenderOrderTokenGroupBy) Float64X(ctx context.Context) float64
- func (s *SenderOrderTokenGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *SenderOrderTokenGroupBy) Float64sX(ctx context.Context) []float64
- func (s *SenderOrderTokenGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *SenderOrderTokenGroupBy) IntX(ctx context.Context) int
- func (s *SenderOrderTokenGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *SenderOrderTokenGroupBy) IntsX(ctx context.Context) []int
- func (sotgb *SenderOrderTokenGroupBy) Scan(ctx context.Context, v any) error
- func (s *SenderOrderTokenGroupBy) ScanX(ctx context.Context, v any)
- func (s *SenderOrderTokenGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *SenderOrderTokenGroupBy) StringX(ctx context.Context) string
- func (s *SenderOrderTokenGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *SenderOrderTokenGroupBy) StringsX(ctx context.Context) []string
- type SenderOrderTokenMutation
- func (m *SenderOrderTokenMutation) AddFeePercent(d decimal.Decimal)
- func (m *SenderOrderTokenMutation) AddField(name string, value ent.Value) error
- func (m *SenderOrderTokenMutation) AddedEdges() []string
- func (m *SenderOrderTokenMutation) AddedFeePercent() (r decimal.Decimal, exists bool)
- func (m *SenderOrderTokenMutation) AddedField(name string) (ent.Value, bool)
- func (m *SenderOrderTokenMutation) AddedFields() []string
- func (m *SenderOrderTokenMutation) AddedIDs(name string) []ent.Value
- func (m *SenderOrderTokenMutation) ClearEdge(name string) error
- func (m *SenderOrderTokenMutation) ClearField(name string) error
- func (m *SenderOrderTokenMutation) ClearSender()
- func (m *SenderOrderTokenMutation) ClearToken()
- func (m *SenderOrderTokenMutation) ClearedEdges() []string
- func (m *SenderOrderTokenMutation) ClearedFields() []string
- func (m SenderOrderTokenMutation) Client() *Client
- func (m *SenderOrderTokenMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SenderOrderTokenMutation) EdgeCleared(name string) bool
- func (m *SenderOrderTokenMutation) FeeAddress() (r string, exists bool)
- func (m *SenderOrderTokenMutation) FeePercent() (r decimal.Decimal, exists bool)
- func (m *SenderOrderTokenMutation) Field(name string) (ent.Value, bool)
- func (m *SenderOrderTokenMutation) FieldCleared(name string) bool
- func (m *SenderOrderTokenMutation) Fields() []string
- func (m *SenderOrderTokenMutation) ID() (id int, exists bool)
- func (m *SenderOrderTokenMutation) IDs(ctx context.Context) ([]int, error)
- func (m *SenderOrderTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SenderOrderTokenMutation) OldFeeAddress(ctx context.Context) (v string, err error)
- func (m *SenderOrderTokenMutation) OldFeePercent(ctx context.Context) (v decimal.Decimal, err error)
- func (m *SenderOrderTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SenderOrderTokenMutation) OldRefundAddress(ctx context.Context) (v string, err error)
- func (m *SenderOrderTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SenderOrderTokenMutation) Op() Op
- func (m *SenderOrderTokenMutation) RefundAddress() (r string, exists bool)
- func (m *SenderOrderTokenMutation) RemovedEdges() []string
- func (m *SenderOrderTokenMutation) RemovedIDs(name string) []ent.Value
- func (m *SenderOrderTokenMutation) ResetCreatedAt()
- func (m *SenderOrderTokenMutation) ResetEdge(name string) error
- func (m *SenderOrderTokenMutation) ResetFeeAddress()
- func (m *SenderOrderTokenMutation) ResetFeePercent()
- func (m *SenderOrderTokenMutation) ResetField(name string) error
- func (m *SenderOrderTokenMutation) ResetRefundAddress()
- func (m *SenderOrderTokenMutation) ResetSender()
- func (m *SenderOrderTokenMutation) ResetToken()
- func (m *SenderOrderTokenMutation) ResetUpdatedAt()
- func (m *SenderOrderTokenMutation) SenderCleared() bool
- func (m *SenderOrderTokenMutation) SenderID() (id uuid.UUID, exists bool)
- func (m *SenderOrderTokenMutation) SenderIDs() (ids []uuid.UUID)
- func (m *SenderOrderTokenMutation) SetCreatedAt(t time.Time)
- func (m *SenderOrderTokenMutation) SetFeeAddress(s string)
- func (m *SenderOrderTokenMutation) SetFeePercent(d decimal.Decimal)
- func (m *SenderOrderTokenMutation) SetField(name string, value ent.Value) error
- func (m *SenderOrderTokenMutation) SetOp(op Op)
- func (m *SenderOrderTokenMutation) SetRefundAddress(s string)
- func (m *SenderOrderTokenMutation) SetSenderID(id uuid.UUID)
- func (m *SenderOrderTokenMutation) SetTokenID(id int)
- func (m *SenderOrderTokenMutation) SetUpdatedAt(t time.Time)
- func (m *SenderOrderTokenMutation) TokenCleared() bool
- func (m *SenderOrderTokenMutation) TokenID() (id int, exists bool)
- func (m *SenderOrderTokenMutation) TokenIDs() (ids []int)
- func (m SenderOrderTokenMutation) Tx() (*Tx, error)
- func (m *SenderOrderTokenMutation) Type() string
- func (m *SenderOrderTokenMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *SenderOrderTokenMutation) Where(ps ...predicate.SenderOrderToken)
- func (m *SenderOrderTokenMutation) WhereP(ps ...func(*sql.Selector))
- type SenderOrderTokenQuery
- func (sotq *SenderOrderTokenQuery) Aggregate(fns ...AggregateFunc) *SenderOrderTokenSelect
- func (sotq *SenderOrderTokenQuery) All(ctx context.Context) ([]*SenderOrderToken, error)
- func (sotq *SenderOrderTokenQuery) AllX(ctx context.Context) []*SenderOrderToken
- func (sotq *SenderOrderTokenQuery) Clone() *SenderOrderTokenQuery
- func (sotq *SenderOrderTokenQuery) Count(ctx context.Context) (int, error)
- func (sotq *SenderOrderTokenQuery) CountX(ctx context.Context) int
- func (sotq *SenderOrderTokenQuery) Exist(ctx context.Context) (bool, error)
- func (sotq *SenderOrderTokenQuery) ExistX(ctx context.Context) bool
- func (sotq *SenderOrderTokenQuery) First(ctx context.Context) (*SenderOrderToken, error)
- func (sotq *SenderOrderTokenQuery) FirstID(ctx context.Context) (id int, err error)
- func (sotq *SenderOrderTokenQuery) FirstIDX(ctx context.Context) int
- func (sotq *SenderOrderTokenQuery) FirstX(ctx context.Context) *SenderOrderToken
- func (sotq *SenderOrderTokenQuery) GroupBy(field string, fields ...string) *SenderOrderTokenGroupBy
- func (sotq *SenderOrderTokenQuery) IDs(ctx context.Context) (ids []int, err error)
- func (sotq *SenderOrderTokenQuery) IDsX(ctx context.Context) []int
- func (sotq *SenderOrderTokenQuery) Limit(limit int) *SenderOrderTokenQuery
- func (sotq *SenderOrderTokenQuery) Offset(offset int) *SenderOrderTokenQuery
- func (sotq *SenderOrderTokenQuery) Only(ctx context.Context) (*SenderOrderToken, error)
- func (sotq *SenderOrderTokenQuery) OnlyID(ctx context.Context) (id int, err error)
- func (sotq *SenderOrderTokenQuery) OnlyIDX(ctx context.Context) int
- func (sotq *SenderOrderTokenQuery) OnlyX(ctx context.Context) *SenderOrderToken
- func (sotq *SenderOrderTokenQuery) Order(o ...senderordertoken.OrderOption) *SenderOrderTokenQuery
- func (sotq *SenderOrderTokenQuery) QuerySender() *SenderProfileQuery
- func (sotq *SenderOrderTokenQuery) QueryToken() *TokenQuery
- func (sotq *SenderOrderTokenQuery) Select(fields ...string) *SenderOrderTokenSelect
- func (sotq *SenderOrderTokenQuery) Unique(unique bool) *SenderOrderTokenQuery
- func (sotq *SenderOrderTokenQuery) Where(ps ...predicate.SenderOrderToken) *SenderOrderTokenQuery
- func (sotq *SenderOrderTokenQuery) WithSender(opts ...func(*SenderProfileQuery)) *SenderOrderTokenQuery
- func (sotq *SenderOrderTokenQuery) WithToken(opts ...func(*TokenQuery)) *SenderOrderTokenQuery
- type SenderOrderTokenSelect
- func (sots *SenderOrderTokenSelect) Aggregate(fns ...AggregateFunc) *SenderOrderTokenSelect
- func (s *SenderOrderTokenSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *SenderOrderTokenSelect) BoolX(ctx context.Context) bool
- func (s *SenderOrderTokenSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *SenderOrderTokenSelect) BoolsX(ctx context.Context) []bool
- func (s *SenderOrderTokenSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *SenderOrderTokenSelect) Float64X(ctx context.Context) float64
- func (s *SenderOrderTokenSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *SenderOrderTokenSelect) Float64sX(ctx context.Context) []float64
- func (s *SenderOrderTokenSelect) Int(ctx context.Context) (_ int, err error)
- func (s *SenderOrderTokenSelect) IntX(ctx context.Context) int
- func (s *SenderOrderTokenSelect) Ints(ctx context.Context) ([]int, error)
- func (s *SenderOrderTokenSelect) IntsX(ctx context.Context) []int
- func (sots *SenderOrderTokenSelect) Scan(ctx context.Context, v any) error
- func (s *SenderOrderTokenSelect) ScanX(ctx context.Context, v any)
- func (s *SenderOrderTokenSelect) String(ctx context.Context) (_ string, err error)
- func (s *SenderOrderTokenSelect) StringX(ctx context.Context) string
- func (s *SenderOrderTokenSelect) Strings(ctx context.Context) ([]string, error)
- func (s *SenderOrderTokenSelect) StringsX(ctx context.Context) []string
- type SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) AddFeePercent(d decimal.Decimal) *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) ClearSender() *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) ClearToken() *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) Exec(ctx context.Context) error
- func (sotu *SenderOrderTokenUpdate) ExecX(ctx context.Context)
- func (sotu *SenderOrderTokenUpdate) Mutation() *SenderOrderTokenMutation
- func (sotu *SenderOrderTokenUpdate) Save(ctx context.Context) (int, error)
- func (sotu *SenderOrderTokenUpdate) SaveX(ctx context.Context) int
- func (sotu *SenderOrderTokenUpdate) SetFeeAddress(s string) *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) SetFeePercent(d decimal.Decimal) *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) SetNillableFeeAddress(s *string) *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) SetNillableFeePercent(d *decimal.Decimal) *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) SetNillableRefundAddress(s *string) *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) SetRefundAddress(s string) *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) SetSender(s *SenderProfile) *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) SetSenderID(id uuid.UUID) *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) SetToken(t *Token) *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) SetTokenID(id int) *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) SetUpdatedAt(t time.Time) *SenderOrderTokenUpdate
- func (sotu *SenderOrderTokenUpdate) Where(ps ...predicate.SenderOrderToken) *SenderOrderTokenUpdate
- type SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) AddFeePercent(d decimal.Decimal) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) ClearSender() *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) ClearToken() *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) Exec(ctx context.Context) error
- func (sotuo *SenderOrderTokenUpdateOne) ExecX(ctx context.Context)
- func (sotuo *SenderOrderTokenUpdateOne) Mutation() *SenderOrderTokenMutation
- func (sotuo *SenderOrderTokenUpdateOne) Save(ctx context.Context) (*SenderOrderToken, error)
- func (sotuo *SenderOrderTokenUpdateOne) SaveX(ctx context.Context) *SenderOrderToken
- func (sotuo *SenderOrderTokenUpdateOne) Select(field string, fields ...string) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) SetFeeAddress(s string) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) SetFeePercent(d decimal.Decimal) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) SetNillableFeeAddress(s *string) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) SetNillableFeePercent(d *decimal.Decimal) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) SetNillableRefundAddress(s *string) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) SetRefundAddress(s string) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) SetSender(s *SenderProfile) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) SetSenderID(id uuid.UUID) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) SetToken(t *Token) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) SetTokenID(id int) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) SetUpdatedAt(t time.Time) *SenderOrderTokenUpdateOne
- func (sotuo *SenderOrderTokenUpdateOne) Where(ps ...predicate.SenderOrderToken) *SenderOrderTokenUpdateOne
- type SenderOrderTokenUpsert
- func (u *SenderOrderTokenUpsert) AddFeePercent(v decimal.Decimal) *SenderOrderTokenUpsert
- func (u *SenderOrderTokenUpsert) SetFeeAddress(v string) *SenderOrderTokenUpsert
- func (u *SenderOrderTokenUpsert) SetFeePercent(v decimal.Decimal) *SenderOrderTokenUpsert
- func (u *SenderOrderTokenUpsert) SetRefundAddress(v string) *SenderOrderTokenUpsert
- func (u *SenderOrderTokenUpsert) SetUpdatedAt(v time.Time) *SenderOrderTokenUpsert
- func (u *SenderOrderTokenUpsert) UpdateFeeAddress() *SenderOrderTokenUpsert
- func (u *SenderOrderTokenUpsert) UpdateFeePercent() *SenderOrderTokenUpsert
- func (u *SenderOrderTokenUpsert) UpdateRefundAddress() *SenderOrderTokenUpsert
- func (u *SenderOrderTokenUpsert) UpdateUpdatedAt() *SenderOrderTokenUpsert
- type SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) AddFeePercent(v decimal.Decimal) *SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) DoNothing() *SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) Exec(ctx context.Context) error
- func (u *SenderOrderTokenUpsertBulk) ExecX(ctx context.Context)
- func (u *SenderOrderTokenUpsertBulk) Ignore() *SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) SetFeeAddress(v string) *SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) SetFeePercent(v decimal.Decimal) *SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) SetRefundAddress(v string) *SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) SetUpdatedAt(v time.Time) *SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) Update(set func(*SenderOrderTokenUpsert)) *SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) UpdateFeeAddress() *SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) UpdateFeePercent() *SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) UpdateNewValues() *SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) UpdateRefundAddress() *SenderOrderTokenUpsertBulk
- func (u *SenderOrderTokenUpsertBulk) UpdateUpdatedAt() *SenderOrderTokenUpsertBulk
- type SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) AddFeePercent(v decimal.Decimal) *SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) DoNothing() *SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) Exec(ctx context.Context) error
- func (u *SenderOrderTokenUpsertOne) ExecX(ctx context.Context)
- func (u *SenderOrderTokenUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *SenderOrderTokenUpsertOne) IDX(ctx context.Context) int
- func (u *SenderOrderTokenUpsertOne) Ignore() *SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) SetFeeAddress(v string) *SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) SetFeePercent(v decimal.Decimal) *SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) SetRefundAddress(v string) *SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) SetUpdatedAt(v time.Time) *SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) Update(set func(*SenderOrderTokenUpsert)) *SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) UpdateFeeAddress() *SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) UpdateFeePercent() *SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) UpdateNewValues() *SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) UpdateRefundAddress() *SenderOrderTokenUpsertOne
- func (u *SenderOrderTokenUpsertOne) UpdateUpdatedAt() *SenderOrderTokenUpsertOne
- type SenderOrderTokens
- type SenderProfile
- func (sp *SenderProfile) QueryAPIKey() *APIKeyQuery
- func (sp *SenderProfile) QueryLinkedAddress() *LinkedAddressQuery
- func (sp *SenderProfile) QueryOrderTokens() *SenderOrderTokenQuery
- func (sp *SenderProfile) QueryPaymentOrders() *PaymentOrderQuery
- func (sp *SenderProfile) QueryUser() *UserQuery
- func (sp *SenderProfile) String() string
- func (sp *SenderProfile) Unwrap() *SenderProfile
- func (sp *SenderProfile) Update() *SenderProfileUpdateOne
- func (sp *SenderProfile) Value(name string) (ent.Value, error)
- type SenderProfileClient
- func (c *SenderProfileClient) Create() *SenderProfileCreate
- func (c *SenderProfileClient) CreateBulk(builders ...*SenderProfileCreate) *SenderProfileCreateBulk
- func (c *SenderProfileClient) Delete() *SenderProfileDelete
- func (c *SenderProfileClient) DeleteOne(sp *SenderProfile) *SenderProfileDeleteOne
- func (c *SenderProfileClient) DeleteOneID(id uuid.UUID) *SenderProfileDeleteOne
- func (c *SenderProfileClient) Get(ctx context.Context, id uuid.UUID) (*SenderProfile, error)
- func (c *SenderProfileClient) GetX(ctx context.Context, id uuid.UUID) *SenderProfile
- func (c *SenderProfileClient) Hooks() []Hook
- func (c *SenderProfileClient) Intercept(interceptors ...Interceptor)
- func (c *SenderProfileClient) Interceptors() []Interceptor
- func (c *SenderProfileClient) MapCreateBulk(slice any, setFunc func(*SenderProfileCreate, int)) *SenderProfileCreateBulk
- func (c *SenderProfileClient) Query() *SenderProfileQuery
- func (c *SenderProfileClient) QueryAPIKey(sp *SenderProfile) *APIKeyQuery
- func (c *SenderProfileClient) QueryLinkedAddress(sp *SenderProfile) *LinkedAddressQuery
- func (c *SenderProfileClient) QueryOrderTokens(sp *SenderProfile) *SenderOrderTokenQuery
- func (c *SenderProfileClient) QueryPaymentOrders(sp *SenderProfile) *PaymentOrderQuery
- func (c *SenderProfileClient) QueryUser(sp *SenderProfile) *UserQuery
- func (c *SenderProfileClient) Update() *SenderProfileUpdate
- func (c *SenderProfileClient) UpdateOne(sp *SenderProfile) *SenderProfileUpdateOne
- func (c *SenderProfileClient) UpdateOneID(id uuid.UUID) *SenderProfileUpdateOne
- func (c *SenderProfileClient) Use(hooks ...Hook)
- type SenderProfileCreate
- func (spc *SenderProfileCreate) AddLinkedAddresIDs(ids ...int) *SenderProfileCreate
- func (spc *SenderProfileCreate) AddLinkedAddress(l ...*LinkedAddress) *SenderProfileCreate
- func (spc *SenderProfileCreate) AddOrderTokenIDs(ids ...int) *SenderProfileCreate
- func (spc *SenderProfileCreate) AddOrderTokens(s ...*SenderOrderToken) *SenderProfileCreate
- func (spc *SenderProfileCreate) AddPaymentOrderIDs(ids ...uuid.UUID) *SenderProfileCreate
- func (spc *SenderProfileCreate) AddPaymentOrders(p ...*PaymentOrder) *SenderProfileCreate
- func (spc *SenderProfileCreate) Exec(ctx context.Context) error
- func (spc *SenderProfileCreate) ExecX(ctx context.Context)
- func (spc *SenderProfileCreate) Mutation() *SenderProfileMutation
- func (spc *SenderProfileCreate) OnConflict(opts ...sql.ConflictOption) *SenderProfileUpsertOne
- func (spc *SenderProfileCreate) OnConflictColumns(columns ...string) *SenderProfileUpsertOne
- func (spc *SenderProfileCreate) Save(ctx context.Context) (*SenderProfile, error)
- func (spc *SenderProfileCreate) SaveX(ctx context.Context) *SenderProfile
- func (spc *SenderProfileCreate) SetAPIKey(a *APIKey) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetAPIKeyID(id uuid.UUID) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetDomainWhitelist(s []string) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetID(u uuid.UUID) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetIsActive(b bool) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetIsPartner(b bool) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetNillableAPIKeyID(id *uuid.UUID) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetNillableID(u *uuid.UUID) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetNillableIsActive(b *bool) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetNillableIsPartner(b *bool) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetNillableProviderID(s *string) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetNillableUpdatedAt(t *time.Time) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetNillableWebhookURL(s *string) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetProviderID(s string) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetUpdatedAt(t time.Time) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetUser(u *User) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetUserID(id uuid.UUID) *SenderProfileCreate
- func (spc *SenderProfileCreate) SetWebhookURL(s string) *SenderProfileCreate
- type SenderProfileCreateBulk
- func (spcb *SenderProfileCreateBulk) Exec(ctx context.Context) error
- func (spcb *SenderProfileCreateBulk) ExecX(ctx context.Context)
- func (spcb *SenderProfileCreateBulk) OnConflict(opts ...sql.ConflictOption) *SenderProfileUpsertBulk
- func (spcb *SenderProfileCreateBulk) OnConflictColumns(columns ...string) *SenderProfileUpsertBulk
- func (spcb *SenderProfileCreateBulk) Save(ctx context.Context) ([]*SenderProfile, error)
- func (spcb *SenderProfileCreateBulk) SaveX(ctx context.Context) []*SenderProfile
- type SenderProfileDelete
- type SenderProfileDeleteOne
- type SenderProfileEdges
- func (e SenderProfileEdges) APIKeyOrErr() (*APIKey, error)
- func (e SenderProfileEdges) LinkedAddressOrErr() ([]*LinkedAddress, error)
- func (e SenderProfileEdges) OrderTokensOrErr() ([]*SenderOrderToken, error)
- func (e SenderProfileEdges) PaymentOrdersOrErr() ([]*PaymentOrder, error)
- func (e SenderProfileEdges) UserOrErr() (*User, error)
- type SenderProfileGroupBy
- func (spgb *SenderProfileGroupBy) Aggregate(fns ...AggregateFunc) *SenderProfileGroupBy
- func (s *SenderProfileGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *SenderProfileGroupBy) BoolX(ctx context.Context) bool
- func (s *SenderProfileGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *SenderProfileGroupBy) BoolsX(ctx context.Context) []bool
- func (s *SenderProfileGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *SenderProfileGroupBy) Float64X(ctx context.Context) float64
- func (s *SenderProfileGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *SenderProfileGroupBy) Float64sX(ctx context.Context) []float64
- func (s *SenderProfileGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *SenderProfileGroupBy) IntX(ctx context.Context) int
- func (s *SenderProfileGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *SenderProfileGroupBy) IntsX(ctx context.Context) []int
- func (spgb *SenderProfileGroupBy) Scan(ctx context.Context, v any) error
- func (s *SenderProfileGroupBy) ScanX(ctx context.Context, v any)
- func (s *SenderProfileGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *SenderProfileGroupBy) StringX(ctx context.Context) string
- func (s *SenderProfileGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *SenderProfileGroupBy) StringsX(ctx context.Context) []string
- type SenderProfileMutation
- func (m *SenderProfileMutation) APIKeyCleared() bool
- func (m *SenderProfileMutation) APIKeyID() (id uuid.UUID, exists bool)
- func (m *SenderProfileMutation) APIKeyIDs() (ids []uuid.UUID)
- func (m *SenderProfileMutation) AddField(name string, value ent.Value) error
- func (m *SenderProfileMutation) AddLinkedAddresIDs(ids ...int)
- func (m *SenderProfileMutation) AddOrderTokenIDs(ids ...int)
- func (m *SenderProfileMutation) AddPaymentOrderIDs(ids ...uuid.UUID)
- func (m *SenderProfileMutation) AddedEdges() []string
- func (m *SenderProfileMutation) AddedField(name string) (ent.Value, bool)
- func (m *SenderProfileMutation) AddedFields() []string
- func (m *SenderProfileMutation) AddedIDs(name string) []ent.Value
- func (m *SenderProfileMutation) AppendDomainWhitelist(s []string)
- func (m *SenderProfileMutation) AppendedDomainWhitelist() ([]string, bool)
- func (m *SenderProfileMutation) ClearAPIKey()
- func (m *SenderProfileMutation) ClearEdge(name string) error
- func (m *SenderProfileMutation) ClearField(name string) error
- func (m *SenderProfileMutation) ClearLinkedAddress()
- func (m *SenderProfileMutation) ClearOrderTokens()
- func (m *SenderProfileMutation) ClearPaymentOrders()
- func (m *SenderProfileMutation) ClearProviderID()
- func (m *SenderProfileMutation) ClearUser()
- func (m *SenderProfileMutation) ClearWebhookURL()
- func (m *SenderProfileMutation) ClearedEdges() []string
- func (m *SenderProfileMutation) ClearedFields() []string
- func (m SenderProfileMutation) Client() *Client
- func (m *SenderProfileMutation) DomainWhitelist() (r []string, exists bool)
- func (m *SenderProfileMutation) EdgeCleared(name string) bool
- func (m *SenderProfileMutation) Field(name string) (ent.Value, bool)
- func (m *SenderProfileMutation) FieldCleared(name string) bool
- func (m *SenderProfileMutation) Fields() []string
- func (m *SenderProfileMutation) ID() (id uuid.UUID, exists bool)
- func (m *SenderProfileMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *SenderProfileMutation) IsActive() (r bool, exists bool)
- func (m *SenderProfileMutation) IsPartner() (r bool, exists bool)
- func (m *SenderProfileMutation) LinkedAddressCleared() bool
- func (m *SenderProfileMutation) LinkedAddressIDs() (ids []int)
- func (m *SenderProfileMutation) OldDomainWhitelist(ctx context.Context) (v []string, err error)
- func (m *SenderProfileMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SenderProfileMutation) OldIsActive(ctx context.Context) (v bool, err error)
- func (m *SenderProfileMutation) OldIsPartner(ctx context.Context) (v bool, err error)
- func (m *SenderProfileMutation) OldProviderID(ctx context.Context) (v string, err error)
- func (m *SenderProfileMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SenderProfileMutation) OldWebhookURL(ctx context.Context) (v string, err error)
- func (m *SenderProfileMutation) Op() Op
- func (m *SenderProfileMutation) OrderTokensCleared() bool
- func (m *SenderProfileMutation) OrderTokensIDs() (ids []int)
- func (m *SenderProfileMutation) PaymentOrdersCleared() bool
- func (m *SenderProfileMutation) PaymentOrdersIDs() (ids []uuid.UUID)
- func (m *SenderProfileMutation) ProviderID() (r string, exists bool)
- func (m *SenderProfileMutation) ProviderIDCleared() bool
- func (m *SenderProfileMutation) RemoveLinkedAddresIDs(ids ...int)
- func (m *SenderProfileMutation) RemoveOrderTokenIDs(ids ...int)
- func (m *SenderProfileMutation) RemovePaymentOrderIDs(ids ...uuid.UUID)
- func (m *SenderProfileMutation) RemovedEdges() []string
- func (m *SenderProfileMutation) RemovedIDs(name string) []ent.Value
- func (m *SenderProfileMutation) RemovedLinkedAddressIDs() (ids []int)
- func (m *SenderProfileMutation) RemovedOrderTokensIDs() (ids []int)
- func (m *SenderProfileMutation) RemovedPaymentOrdersIDs() (ids []uuid.UUID)
- func (m *SenderProfileMutation) ResetAPIKey()
- func (m *SenderProfileMutation) ResetDomainWhitelist()
- func (m *SenderProfileMutation) ResetEdge(name string) error
- func (m *SenderProfileMutation) ResetField(name string) error
- func (m *SenderProfileMutation) ResetIsActive()
- func (m *SenderProfileMutation) ResetIsPartner()
- func (m *SenderProfileMutation) ResetLinkedAddress()
- func (m *SenderProfileMutation) ResetOrderTokens()
- func (m *SenderProfileMutation) ResetPaymentOrders()
- func (m *SenderProfileMutation) ResetProviderID()
- func (m *SenderProfileMutation) ResetUpdatedAt()
- func (m *SenderProfileMutation) ResetUser()
- func (m *SenderProfileMutation) ResetWebhookURL()
- func (m *SenderProfileMutation) SetAPIKeyID(id uuid.UUID)
- func (m *SenderProfileMutation) SetDomainWhitelist(s []string)
- func (m *SenderProfileMutation) SetField(name string, value ent.Value) error
- func (m *SenderProfileMutation) SetID(id uuid.UUID)
- func (m *SenderProfileMutation) SetIsActive(b bool)
- func (m *SenderProfileMutation) SetIsPartner(b bool)
- func (m *SenderProfileMutation) SetOp(op Op)
- func (m *SenderProfileMutation) SetProviderID(s string)
- func (m *SenderProfileMutation) SetUpdatedAt(t time.Time)
- func (m *SenderProfileMutation) SetUserID(id uuid.UUID)
- func (m *SenderProfileMutation) SetWebhookURL(s string)
- func (m SenderProfileMutation) Tx() (*Tx, error)
- func (m *SenderProfileMutation) Type() string
- func (m *SenderProfileMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *SenderProfileMutation) UserCleared() bool
- func (m *SenderProfileMutation) UserID() (id uuid.UUID, exists bool)
- func (m *SenderProfileMutation) UserIDs() (ids []uuid.UUID)
- func (m *SenderProfileMutation) WebhookURL() (r string, exists bool)
- func (m *SenderProfileMutation) WebhookURLCleared() bool
- func (m *SenderProfileMutation) Where(ps ...predicate.SenderProfile)
- func (m *SenderProfileMutation) WhereP(ps ...func(*sql.Selector))
- type SenderProfileQuery
- func (spq *SenderProfileQuery) Aggregate(fns ...AggregateFunc) *SenderProfileSelect
- func (spq *SenderProfileQuery) All(ctx context.Context) ([]*SenderProfile, error)
- func (spq *SenderProfileQuery) AllX(ctx context.Context) []*SenderProfile
- func (spq *SenderProfileQuery) Clone() *SenderProfileQuery
- func (spq *SenderProfileQuery) Count(ctx context.Context) (int, error)
- func (spq *SenderProfileQuery) CountX(ctx context.Context) int
- func (spq *SenderProfileQuery) Exist(ctx context.Context) (bool, error)
- func (spq *SenderProfileQuery) ExistX(ctx context.Context) bool
- func (spq *SenderProfileQuery) First(ctx context.Context) (*SenderProfile, error)
- func (spq *SenderProfileQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (spq *SenderProfileQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (spq *SenderProfileQuery) FirstX(ctx context.Context) *SenderProfile
- func (spq *SenderProfileQuery) GroupBy(field string, fields ...string) *SenderProfileGroupBy
- func (spq *SenderProfileQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (spq *SenderProfileQuery) IDsX(ctx context.Context) []uuid.UUID
- func (spq *SenderProfileQuery) Limit(limit int) *SenderProfileQuery
- func (spq *SenderProfileQuery) Offset(offset int) *SenderProfileQuery
- func (spq *SenderProfileQuery) Only(ctx context.Context) (*SenderProfile, error)
- func (spq *SenderProfileQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (spq *SenderProfileQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (spq *SenderProfileQuery) OnlyX(ctx context.Context) *SenderProfile
- func (spq *SenderProfileQuery) Order(o ...senderprofile.OrderOption) *SenderProfileQuery
- func (spq *SenderProfileQuery) QueryAPIKey() *APIKeyQuery
- func (spq *SenderProfileQuery) QueryLinkedAddress() *LinkedAddressQuery
- func (spq *SenderProfileQuery) QueryOrderTokens() *SenderOrderTokenQuery
- func (spq *SenderProfileQuery) QueryPaymentOrders() *PaymentOrderQuery
- func (spq *SenderProfileQuery) QueryUser() *UserQuery
- func (spq *SenderProfileQuery) Select(fields ...string) *SenderProfileSelect
- func (spq *SenderProfileQuery) Unique(unique bool) *SenderProfileQuery
- func (spq *SenderProfileQuery) Where(ps ...predicate.SenderProfile) *SenderProfileQuery
- func (spq *SenderProfileQuery) WithAPIKey(opts ...func(*APIKeyQuery)) *SenderProfileQuery
- func (spq *SenderProfileQuery) WithLinkedAddress(opts ...func(*LinkedAddressQuery)) *SenderProfileQuery
- func (spq *SenderProfileQuery) WithOrderTokens(opts ...func(*SenderOrderTokenQuery)) *SenderProfileQuery
- func (spq *SenderProfileQuery) WithPaymentOrders(opts ...func(*PaymentOrderQuery)) *SenderProfileQuery
- func (spq *SenderProfileQuery) WithUser(opts ...func(*UserQuery)) *SenderProfileQuery
- type SenderProfileSelect
- func (sps *SenderProfileSelect) Aggregate(fns ...AggregateFunc) *SenderProfileSelect
- func (s *SenderProfileSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *SenderProfileSelect) BoolX(ctx context.Context) bool
- func (s *SenderProfileSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *SenderProfileSelect) BoolsX(ctx context.Context) []bool
- func (s *SenderProfileSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *SenderProfileSelect) Float64X(ctx context.Context) float64
- func (s *SenderProfileSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *SenderProfileSelect) Float64sX(ctx context.Context) []float64
- func (s *SenderProfileSelect) Int(ctx context.Context) (_ int, err error)
- func (s *SenderProfileSelect) IntX(ctx context.Context) int
- func (s *SenderProfileSelect) Ints(ctx context.Context) ([]int, error)
- func (s *SenderProfileSelect) IntsX(ctx context.Context) []int
- func (sps *SenderProfileSelect) Scan(ctx context.Context, v any) error
- func (s *SenderProfileSelect) ScanX(ctx context.Context, v any)
- func (s *SenderProfileSelect) String(ctx context.Context) (_ string, err error)
- func (s *SenderProfileSelect) StringX(ctx context.Context) string
- func (s *SenderProfileSelect) Strings(ctx context.Context) ([]string, error)
- func (s *SenderProfileSelect) StringsX(ctx context.Context) []string
- type SenderProfileUpdate
- func (spu *SenderProfileUpdate) AddLinkedAddresIDs(ids ...int) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) AddLinkedAddress(l ...*LinkedAddress) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) AddOrderTokenIDs(ids ...int) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) AddOrderTokens(s ...*SenderOrderToken) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) AddPaymentOrderIDs(ids ...uuid.UUID) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) AddPaymentOrders(p ...*PaymentOrder) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) AppendDomainWhitelist(s []string) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) ClearAPIKey() *SenderProfileUpdate
- func (spu *SenderProfileUpdate) ClearLinkedAddress() *SenderProfileUpdate
- func (spu *SenderProfileUpdate) ClearOrderTokens() *SenderProfileUpdate
- func (spu *SenderProfileUpdate) ClearPaymentOrders() *SenderProfileUpdate
- func (spu *SenderProfileUpdate) ClearProviderID() *SenderProfileUpdate
- func (spu *SenderProfileUpdate) ClearWebhookURL() *SenderProfileUpdate
- func (spu *SenderProfileUpdate) Exec(ctx context.Context) error
- func (spu *SenderProfileUpdate) ExecX(ctx context.Context)
- func (spu *SenderProfileUpdate) Mutation() *SenderProfileMutation
- func (spu *SenderProfileUpdate) RemoveLinkedAddresIDs(ids ...int) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) RemoveLinkedAddress(l ...*LinkedAddress) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) RemoveOrderTokenIDs(ids ...int) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) RemoveOrderTokens(s ...*SenderOrderToken) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) RemovePaymentOrderIDs(ids ...uuid.UUID) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) RemovePaymentOrders(p ...*PaymentOrder) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) Save(ctx context.Context) (int, error)
- func (spu *SenderProfileUpdate) SaveX(ctx context.Context) int
- func (spu *SenderProfileUpdate) SetAPIKey(a *APIKey) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) SetAPIKeyID(id uuid.UUID) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) SetDomainWhitelist(s []string) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) SetIsActive(b bool) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) SetIsPartner(b bool) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) SetNillableAPIKeyID(id *uuid.UUID) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) SetNillableIsActive(b *bool) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) SetNillableIsPartner(b *bool) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) SetNillableProviderID(s *string) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) SetNillableWebhookURL(s *string) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) SetProviderID(s string) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) SetUpdatedAt(t time.Time) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) SetWebhookURL(s string) *SenderProfileUpdate
- func (spu *SenderProfileUpdate) Where(ps ...predicate.SenderProfile) *SenderProfileUpdate
- type SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) AddLinkedAddresIDs(ids ...int) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) AddLinkedAddress(l ...*LinkedAddress) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) AddOrderTokenIDs(ids ...int) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) AddOrderTokens(s ...*SenderOrderToken) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) AddPaymentOrderIDs(ids ...uuid.UUID) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) AddPaymentOrders(p ...*PaymentOrder) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) AppendDomainWhitelist(s []string) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) ClearAPIKey() *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) ClearLinkedAddress() *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) ClearOrderTokens() *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) ClearPaymentOrders() *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) ClearProviderID() *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) ClearWebhookURL() *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) Exec(ctx context.Context) error
- func (spuo *SenderProfileUpdateOne) ExecX(ctx context.Context)
- func (spuo *SenderProfileUpdateOne) Mutation() *SenderProfileMutation
- func (spuo *SenderProfileUpdateOne) RemoveLinkedAddresIDs(ids ...int) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) RemoveLinkedAddress(l ...*LinkedAddress) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) RemoveOrderTokenIDs(ids ...int) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) RemoveOrderTokens(s ...*SenderOrderToken) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) RemovePaymentOrderIDs(ids ...uuid.UUID) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) RemovePaymentOrders(p ...*PaymentOrder) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) Save(ctx context.Context) (*SenderProfile, error)
- func (spuo *SenderProfileUpdateOne) SaveX(ctx context.Context) *SenderProfile
- func (spuo *SenderProfileUpdateOne) Select(field string, fields ...string) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetAPIKey(a *APIKey) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetAPIKeyID(id uuid.UUID) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetDomainWhitelist(s []string) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetIsActive(b bool) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetIsPartner(b bool) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetNillableAPIKeyID(id *uuid.UUID) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetNillableIsActive(b *bool) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetNillableIsPartner(b *bool) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetNillableProviderID(s *string) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetNillableWebhookURL(s *string) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetProviderID(s string) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetUpdatedAt(t time.Time) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) SetWebhookURL(s string) *SenderProfileUpdateOne
- func (spuo *SenderProfileUpdateOne) Where(ps ...predicate.SenderProfile) *SenderProfileUpdateOne
- type SenderProfileUpsert
- func (u *SenderProfileUpsert) ClearProviderID() *SenderProfileUpsert
- func (u *SenderProfileUpsert) ClearWebhookURL() *SenderProfileUpsert
- func (u *SenderProfileUpsert) SetDomainWhitelist(v []string) *SenderProfileUpsert
- func (u *SenderProfileUpsert) SetIsActive(v bool) *SenderProfileUpsert
- func (u *SenderProfileUpsert) SetIsPartner(v bool) *SenderProfileUpsert
- func (u *SenderProfileUpsert) SetProviderID(v string) *SenderProfileUpsert
- func (u *SenderProfileUpsert) SetUpdatedAt(v time.Time) *SenderProfileUpsert
- func (u *SenderProfileUpsert) SetWebhookURL(v string) *SenderProfileUpsert
- func (u *SenderProfileUpsert) UpdateDomainWhitelist() *SenderProfileUpsert
- func (u *SenderProfileUpsert) UpdateIsActive() *SenderProfileUpsert
- func (u *SenderProfileUpsert) UpdateIsPartner() *SenderProfileUpsert
- func (u *SenderProfileUpsert) UpdateProviderID() *SenderProfileUpsert
- func (u *SenderProfileUpsert) UpdateUpdatedAt() *SenderProfileUpsert
- func (u *SenderProfileUpsert) UpdateWebhookURL() *SenderProfileUpsert
- type SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) ClearProviderID() *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) ClearWebhookURL() *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) DoNothing() *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) Exec(ctx context.Context) error
- func (u *SenderProfileUpsertBulk) ExecX(ctx context.Context)
- func (u *SenderProfileUpsertBulk) Ignore() *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) SetDomainWhitelist(v []string) *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) SetIsActive(v bool) *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) SetIsPartner(v bool) *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) SetProviderID(v string) *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) SetUpdatedAt(v time.Time) *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) SetWebhookURL(v string) *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) Update(set func(*SenderProfileUpsert)) *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) UpdateDomainWhitelist() *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) UpdateIsActive() *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) UpdateIsPartner() *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) UpdateNewValues() *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) UpdateProviderID() *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) UpdateUpdatedAt() *SenderProfileUpsertBulk
- func (u *SenderProfileUpsertBulk) UpdateWebhookURL() *SenderProfileUpsertBulk
- type SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) ClearProviderID() *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) ClearWebhookURL() *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) DoNothing() *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) Exec(ctx context.Context) error
- func (u *SenderProfileUpsertOne) ExecX(ctx context.Context)
- func (u *SenderProfileUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *SenderProfileUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *SenderProfileUpsertOne) Ignore() *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) SetDomainWhitelist(v []string) *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) SetIsActive(v bool) *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) SetIsPartner(v bool) *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) SetProviderID(v string) *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) SetUpdatedAt(v time.Time) *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) SetWebhookURL(v string) *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) Update(set func(*SenderProfileUpsert)) *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) UpdateDomainWhitelist() *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) UpdateIsActive() *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) UpdateIsPartner() *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) UpdateNewValues() *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) UpdateProviderID() *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) UpdateUpdatedAt() *SenderProfileUpsertOne
- func (u *SenderProfileUpsertOne) UpdateWebhookURL() *SenderProfileUpsertOne
- type SenderProfiles
- type Token
- func (t *Token) QueryLockPaymentOrders() *LockPaymentOrderQuery
- func (t *Token) QueryNetwork() *NetworkQuery
- func (t *Token) QueryPaymentOrders() *PaymentOrderQuery
- func (t *Token) QueryProviderOrderTokens() *ProviderOrderTokenQuery
- func (t *Token) QuerySenderOrderTokens() *SenderOrderTokenQuery
- func (t *Token) String() string
- func (t *Token) Unwrap() *Token
- func (t *Token) Update() *TokenUpdateOne
- func (t *Token) Value(name string) (ent.Value, error)
- type TokenClient
- func (c *TokenClient) Create() *TokenCreate
- func (c *TokenClient) CreateBulk(builders ...*TokenCreate) *TokenCreateBulk
- func (c *TokenClient) Delete() *TokenDelete
- func (c *TokenClient) DeleteOne(t *Token) *TokenDeleteOne
- func (c *TokenClient) DeleteOneID(id int) *TokenDeleteOne
- func (c *TokenClient) Get(ctx context.Context, id int) (*Token, error)
- func (c *TokenClient) GetX(ctx context.Context, id int) *Token
- func (c *TokenClient) Hooks() []Hook
- func (c *TokenClient) Intercept(interceptors ...Interceptor)
- func (c *TokenClient) Interceptors() []Interceptor
- func (c *TokenClient) MapCreateBulk(slice any, setFunc func(*TokenCreate, int)) *TokenCreateBulk
- func (c *TokenClient) Query() *TokenQuery
- func (c *TokenClient) QueryLockPaymentOrders(t *Token) *LockPaymentOrderQuery
- func (c *TokenClient) QueryNetwork(t *Token) *NetworkQuery
- func (c *TokenClient) QueryPaymentOrders(t *Token) *PaymentOrderQuery
- func (c *TokenClient) QueryProviderOrderTokens(t *Token) *ProviderOrderTokenQuery
- func (c *TokenClient) QuerySenderOrderTokens(t *Token) *SenderOrderTokenQuery
- func (c *TokenClient) Update() *TokenUpdate
- func (c *TokenClient) UpdateOne(t *Token) *TokenUpdateOne
- func (c *TokenClient) UpdateOneID(id int) *TokenUpdateOne
- func (c *TokenClient) Use(hooks ...Hook)
- type TokenCreate
- func (tc *TokenCreate) AddLockPaymentOrderIDs(ids ...uuid.UUID) *TokenCreate
- func (tc *TokenCreate) AddLockPaymentOrders(l ...*LockPaymentOrder) *TokenCreate
- func (tc *TokenCreate) AddPaymentOrderIDs(ids ...uuid.UUID) *TokenCreate
- func (tc *TokenCreate) AddPaymentOrders(p ...*PaymentOrder) *TokenCreate
- func (tc *TokenCreate) AddProviderOrderTokenIDs(ids ...int) *TokenCreate
- func (tc *TokenCreate) AddProviderOrderTokens(p ...*ProviderOrderToken) *TokenCreate
- func (tc *TokenCreate) AddSenderOrderTokenIDs(ids ...int) *TokenCreate
- func (tc *TokenCreate) AddSenderOrderTokens(s ...*SenderOrderToken) *TokenCreate
- func (tc *TokenCreate) Exec(ctx context.Context) error
- func (tc *TokenCreate) ExecX(ctx context.Context)
- func (tc *TokenCreate) Mutation() *TokenMutation
- func (tc *TokenCreate) OnConflict(opts ...sql.ConflictOption) *TokenUpsertOne
- func (tc *TokenCreate) OnConflictColumns(columns ...string) *TokenUpsertOne
- func (tc *TokenCreate) Save(ctx context.Context) (*Token, error)
- func (tc *TokenCreate) SaveX(ctx context.Context) *Token
- func (tc *TokenCreate) SetBaseCurrency(s string) *TokenCreate
- func (tc *TokenCreate) SetContractAddress(s string) *TokenCreate
- func (tc *TokenCreate) SetCreatedAt(t time.Time) *TokenCreate
- func (tc *TokenCreate) SetDecimals(i int8) *TokenCreate
- func (tc *TokenCreate) SetIsEnabled(b bool) *TokenCreate
- func (tc *TokenCreate) SetNetwork(n *Network) *TokenCreate
- func (tc *TokenCreate) SetNetworkID(id int) *TokenCreate
- func (tc *TokenCreate) SetNillableBaseCurrency(s *string) *TokenCreate
- func (tc *TokenCreate) SetNillableCreatedAt(t *time.Time) *TokenCreate
- func (tc *TokenCreate) SetNillableIsEnabled(b *bool) *TokenCreate
- func (tc *TokenCreate) SetNillableUpdatedAt(t *time.Time) *TokenCreate
- func (tc *TokenCreate) SetSymbol(s string) *TokenCreate
- func (tc *TokenCreate) SetUpdatedAt(t time.Time) *TokenCreate
- type TokenCreateBulk
- func (tcb *TokenCreateBulk) Exec(ctx context.Context) error
- func (tcb *TokenCreateBulk) ExecX(ctx context.Context)
- func (tcb *TokenCreateBulk) OnConflict(opts ...sql.ConflictOption) *TokenUpsertBulk
- func (tcb *TokenCreateBulk) OnConflictColumns(columns ...string) *TokenUpsertBulk
- func (tcb *TokenCreateBulk) Save(ctx context.Context) ([]*Token, error)
- func (tcb *TokenCreateBulk) SaveX(ctx context.Context) []*Token
- type TokenDelete
- type TokenDeleteOne
- type TokenEdges
- func (e TokenEdges) LockPaymentOrdersOrErr() ([]*LockPaymentOrder, error)
- func (e TokenEdges) NetworkOrErr() (*Network, error)
- func (e TokenEdges) PaymentOrdersOrErr() ([]*PaymentOrder, error)
- func (e TokenEdges) ProviderOrderTokensOrErr() ([]*ProviderOrderToken, error)
- func (e TokenEdges) SenderOrderTokensOrErr() ([]*SenderOrderToken, error)
- type TokenGroupBy
- func (tgb *TokenGroupBy) Aggregate(fns ...AggregateFunc) *TokenGroupBy
- func (s *TokenGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *TokenGroupBy) BoolX(ctx context.Context) bool
- func (s *TokenGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *TokenGroupBy) BoolsX(ctx context.Context) []bool
- func (s *TokenGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *TokenGroupBy) Float64X(ctx context.Context) float64
- func (s *TokenGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *TokenGroupBy) Float64sX(ctx context.Context) []float64
- func (s *TokenGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *TokenGroupBy) IntX(ctx context.Context) int
- func (s *TokenGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *TokenGroupBy) IntsX(ctx context.Context) []int
- func (tgb *TokenGroupBy) Scan(ctx context.Context, v any) error
- func (s *TokenGroupBy) ScanX(ctx context.Context, v any)
- func (s *TokenGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *TokenGroupBy) StringX(ctx context.Context) string
- func (s *TokenGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *TokenGroupBy) StringsX(ctx context.Context) []string
- type TokenMutation
- func (m *TokenMutation) AddDecimals(i int8)
- func (m *TokenMutation) AddField(name string, value ent.Value) error
- func (m *TokenMutation) AddLockPaymentOrderIDs(ids ...uuid.UUID)
- func (m *TokenMutation) AddPaymentOrderIDs(ids ...uuid.UUID)
- func (m *TokenMutation) AddProviderOrderTokenIDs(ids ...int)
- func (m *TokenMutation) AddSenderOrderTokenIDs(ids ...int)
- func (m *TokenMutation) AddedDecimals() (r int8, exists bool)
- func (m *TokenMutation) AddedEdges() []string
- func (m *TokenMutation) AddedField(name string) (ent.Value, bool)
- func (m *TokenMutation) AddedFields() []string
- func (m *TokenMutation) AddedIDs(name string) []ent.Value
- func (m *TokenMutation) BaseCurrency() (r string, exists bool)
- func (m *TokenMutation) ClearEdge(name string) error
- func (m *TokenMutation) ClearField(name string) error
- func (m *TokenMutation) ClearLockPaymentOrders()
- func (m *TokenMutation) ClearNetwork()
- func (m *TokenMutation) ClearPaymentOrders()
- func (m *TokenMutation) ClearProviderOrderTokens()
- func (m *TokenMutation) ClearSenderOrderTokens()
- func (m *TokenMutation) ClearedEdges() []string
- func (m *TokenMutation) ClearedFields() []string
- func (m TokenMutation) Client() *Client
- func (m *TokenMutation) ContractAddress() (r string, exists bool)
- func (m *TokenMutation) CreatedAt() (r time.Time, exists bool)
- func (m *TokenMutation) Decimals() (r int8, exists bool)
- func (m *TokenMutation) EdgeCleared(name string) bool
- func (m *TokenMutation) Field(name string) (ent.Value, bool)
- func (m *TokenMutation) FieldCleared(name string) bool
- func (m *TokenMutation) Fields() []string
- func (m *TokenMutation) ID() (id int, exists bool)
- func (m *TokenMutation) IDs(ctx context.Context) ([]int, error)
- func (m *TokenMutation) IsEnabled() (r bool, exists bool)
- func (m *TokenMutation) LockPaymentOrdersCleared() bool
- func (m *TokenMutation) LockPaymentOrdersIDs() (ids []uuid.UUID)
- func (m *TokenMutation) NetworkCleared() bool
- func (m *TokenMutation) NetworkID() (id int, exists bool)
- func (m *TokenMutation) NetworkIDs() (ids []int)
- func (m *TokenMutation) OldBaseCurrency(ctx context.Context) (v string, err error)
- func (m *TokenMutation) OldContractAddress(ctx context.Context) (v string, err error)
- func (m *TokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *TokenMutation) OldDecimals(ctx context.Context) (v int8, err error)
- func (m *TokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TokenMutation) OldIsEnabled(ctx context.Context) (v bool, err error)
- func (m *TokenMutation) OldSymbol(ctx context.Context) (v string, err error)
- func (m *TokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *TokenMutation) Op() Op
- func (m *TokenMutation) PaymentOrdersCleared() bool
- func (m *TokenMutation) PaymentOrdersIDs() (ids []uuid.UUID)
- func (m *TokenMutation) ProviderOrderTokensCleared() bool
- func (m *TokenMutation) ProviderOrderTokensIDs() (ids []int)
- func (m *TokenMutation) RemoveLockPaymentOrderIDs(ids ...uuid.UUID)
- func (m *TokenMutation) RemovePaymentOrderIDs(ids ...uuid.UUID)
- func (m *TokenMutation) RemoveProviderOrderTokenIDs(ids ...int)
- func (m *TokenMutation) RemoveSenderOrderTokenIDs(ids ...int)
- func (m *TokenMutation) RemovedEdges() []string
- func (m *TokenMutation) RemovedIDs(name string) []ent.Value
- func (m *TokenMutation) RemovedLockPaymentOrdersIDs() (ids []uuid.UUID)
- func (m *TokenMutation) RemovedPaymentOrdersIDs() (ids []uuid.UUID)
- func (m *TokenMutation) RemovedProviderOrderTokensIDs() (ids []int)
- func (m *TokenMutation) RemovedSenderOrderTokensIDs() (ids []int)
- func (m *TokenMutation) ResetBaseCurrency()
- func (m *TokenMutation) ResetContractAddress()
- func (m *TokenMutation) ResetCreatedAt()
- func (m *TokenMutation) ResetDecimals()
- func (m *TokenMutation) ResetEdge(name string) error
- func (m *TokenMutation) ResetField(name string) error
- func (m *TokenMutation) ResetIsEnabled()
- func (m *TokenMutation) ResetLockPaymentOrders()
- func (m *TokenMutation) ResetNetwork()
- func (m *TokenMutation) ResetPaymentOrders()
- func (m *TokenMutation) ResetProviderOrderTokens()
- func (m *TokenMutation) ResetSenderOrderTokens()
- func (m *TokenMutation) ResetSymbol()
- func (m *TokenMutation) ResetUpdatedAt()
- func (m *TokenMutation) SenderOrderTokensCleared() bool
- func (m *TokenMutation) SenderOrderTokensIDs() (ids []int)
- func (m *TokenMutation) SetBaseCurrency(s string)
- func (m *TokenMutation) SetContractAddress(s string)
- func (m *TokenMutation) SetCreatedAt(t time.Time)
- func (m *TokenMutation) SetDecimals(i int8)
- func (m *TokenMutation) SetField(name string, value ent.Value) error
- func (m *TokenMutation) SetIsEnabled(b bool)
- func (m *TokenMutation) SetNetworkID(id int)
- func (m *TokenMutation) SetOp(op Op)
- func (m *TokenMutation) SetSymbol(s string)
- func (m *TokenMutation) SetUpdatedAt(t time.Time)
- func (m *TokenMutation) Symbol() (r string, exists bool)
- func (m TokenMutation) Tx() (*Tx, error)
- func (m *TokenMutation) Type() string
- func (m *TokenMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *TokenMutation) Where(ps ...predicate.Token)
- func (m *TokenMutation) WhereP(ps ...func(*sql.Selector))
- type TokenQuery
- func (tq *TokenQuery) Aggregate(fns ...AggregateFunc) *TokenSelect
- func (tq *TokenQuery) All(ctx context.Context) ([]*Token, error)
- func (tq *TokenQuery) AllX(ctx context.Context) []*Token
- func (tq *TokenQuery) Clone() *TokenQuery
- func (tq *TokenQuery) Count(ctx context.Context) (int, error)
- func (tq *TokenQuery) CountX(ctx context.Context) int
- func (tq *TokenQuery) Exist(ctx context.Context) (bool, error)
- func (tq *TokenQuery) ExistX(ctx context.Context) bool
- func (tq *TokenQuery) First(ctx context.Context) (*Token, error)
- func (tq *TokenQuery) FirstID(ctx context.Context) (id int, err error)
- func (tq *TokenQuery) FirstIDX(ctx context.Context) int
- func (tq *TokenQuery) FirstX(ctx context.Context) *Token
- func (tq *TokenQuery) GroupBy(field string, fields ...string) *TokenGroupBy
- func (tq *TokenQuery) IDs(ctx context.Context) (ids []int, err error)
- func (tq *TokenQuery) IDsX(ctx context.Context) []int
- func (tq *TokenQuery) Limit(limit int) *TokenQuery
- func (tq *TokenQuery) Offset(offset int) *TokenQuery
- func (tq *TokenQuery) Only(ctx context.Context) (*Token, error)
- func (tq *TokenQuery) OnlyID(ctx context.Context) (id int, err error)
- func (tq *TokenQuery) OnlyIDX(ctx context.Context) int
- func (tq *TokenQuery) OnlyX(ctx context.Context) *Token
- func (tq *TokenQuery) Order(o ...token.OrderOption) *TokenQuery
- func (tq *TokenQuery) QueryLockPaymentOrders() *LockPaymentOrderQuery
- func (tq *TokenQuery) QueryNetwork() *NetworkQuery
- func (tq *TokenQuery) QueryPaymentOrders() *PaymentOrderQuery
- func (tq *TokenQuery) QueryProviderOrderTokens() *ProviderOrderTokenQuery
- func (tq *TokenQuery) QuerySenderOrderTokens() *SenderOrderTokenQuery
- func (tq *TokenQuery) Select(fields ...string) *TokenSelect
- func (tq *TokenQuery) Unique(unique bool) *TokenQuery
- func (tq *TokenQuery) Where(ps ...predicate.Token) *TokenQuery
- func (tq *TokenQuery) WithLockPaymentOrders(opts ...func(*LockPaymentOrderQuery)) *TokenQuery
- func (tq *TokenQuery) WithNetwork(opts ...func(*NetworkQuery)) *TokenQuery
- func (tq *TokenQuery) WithPaymentOrders(opts ...func(*PaymentOrderQuery)) *TokenQuery
- func (tq *TokenQuery) WithProviderOrderTokens(opts ...func(*ProviderOrderTokenQuery)) *TokenQuery
- func (tq *TokenQuery) WithSenderOrderTokens(opts ...func(*SenderOrderTokenQuery)) *TokenQuery
- type TokenSelect
- func (ts *TokenSelect) Aggregate(fns ...AggregateFunc) *TokenSelect
- func (s *TokenSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *TokenSelect) BoolX(ctx context.Context) bool
- func (s *TokenSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *TokenSelect) BoolsX(ctx context.Context) []bool
- func (s *TokenSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *TokenSelect) Float64X(ctx context.Context) float64
- func (s *TokenSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *TokenSelect) Float64sX(ctx context.Context) []float64
- func (s *TokenSelect) Int(ctx context.Context) (_ int, err error)
- func (s *TokenSelect) IntX(ctx context.Context) int
- func (s *TokenSelect) Ints(ctx context.Context) ([]int, error)
- func (s *TokenSelect) IntsX(ctx context.Context) []int
- func (ts *TokenSelect) Scan(ctx context.Context, v any) error
- func (s *TokenSelect) ScanX(ctx context.Context, v any)
- func (s *TokenSelect) String(ctx context.Context) (_ string, err error)
- func (s *TokenSelect) StringX(ctx context.Context) string
- func (s *TokenSelect) Strings(ctx context.Context) ([]string, error)
- func (s *TokenSelect) StringsX(ctx context.Context) []string
- type TokenUpdate
- func (tu *TokenUpdate) AddDecimals(i int8) *TokenUpdate
- func (tu *TokenUpdate) AddLockPaymentOrderIDs(ids ...uuid.UUID) *TokenUpdate
- func (tu *TokenUpdate) AddLockPaymentOrders(l ...*LockPaymentOrder) *TokenUpdate
- func (tu *TokenUpdate) AddPaymentOrderIDs(ids ...uuid.UUID) *TokenUpdate
- func (tu *TokenUpdate) AddPaymentOrders(p ...*PaymentOrder) *TokenUpdate
- func (tu *TokenUpdate) AddProviderOrderTokenIDs(ids ...int) *TokenUpdate
- func (tu *TokenUpdate) AddProviderOrderTokens(p ...*ProviderOrderToken) *TokenUpdate
- func (tu *TokenUpdate) AddSenderOrderTokenIDs(ids ...int) *TokenUpdate
- func (tu *TokenUpdate) AddSenderOrderTokens(s ...*SenderOrderToken) *TokenUpdate
- func (tu *TokenUpdate) ClearLockPaymentOrders() *TokenUpdate
- func (tu *TokenUpdate) ClearNetwork() *TokenUpdate
- func (tu *TokenUpdate) ClearPaymentOrders() *TokenUpdate
- func (tu *TokenUpdate) ClearProviderOrderTokens() *TokenUpdate
- func (tu *TokenUpdate) ClearSenderOrderTokens() *TokenUpdate
- func (tu *TokenUpdate) Exec(ctx context.Context) error
- func (tu *TokenUpdate) ExecX(ctx context.Context)
- func (tu *TokenUpdate) Mutation() *TokenMutation
- func (tu *TokenUpdate) RemoveLockPaymentOrderIDs(ids ...uuid.UUID) *TokenUpdate
- func (tu *TokenUpdate) RemoveLockPaymentOrders(l ...*LockPaymentOrder) *TokenUpdate
- func (tu *TokenUpdate) RemovePaymentOrderIDs(ids ...uuid.UUID) *TokenUpdate
- func (tu *TokenUpdate) RemovePaymentOrders(p ...*PaymentOrder) *TokenUpdate
- func (tu *TokenUpdate) RemoveProviderOrderTokenIDs(ids ...int) *TokenUpdate
- func (tu *TokenUpdate) RemoveProviderOrderTokens(p ...*ProviderOrderToken) *TokenUpdate
- func (tu *TokenUpdate) RemoveSenderOrderTokenIDs(ids ...int) *TokenUpdate
- func (tu *TokenUpdate) RemoveSenderOrderTokens(s ...*SenderOrderToken) *TokenUpdate
- func (tu *TokenUpdate) Save(ctx context.Context) (int, error)
- func (tu *TokenUpdate) SaveX(ctx context.Context) int
- func (tu *TokenUpdate) SetBaseCurrency(s string) *TokenUpdate
- func (tu *TokenUpdate) SetContractAddress(s string) *TokenUpdate
- func (tu *TokenUpdate) SetDecimals(i int8) *TokenUpdate
- func (tu *TokenUpdate) SetIsEnabled(b bool) *TokenUpdate
- func (tu *TokenUpdate) SetNetwork(n *Network) *TokenUpdate
- func (tu *TokenUpdate) SetNetworkID(id int) *TokenUpdate
- func (tu *TokenUpdate) SetNillableBaseCurrency(s *string) *TokenUpdate
- func (tu *TokenUpdate) SetNillableContractAddress(s *string) *TokenUpdate
- func (tu *TokenUpdate) SetNillableDecimals(i *int8) *TokenUpdate
- func (tu *TokenUpdate) SetNillableIsEnabled(b *bool) *TokenUpdate
- func (tu *TokenUpdate) SetNillableSymbol(s *string) *TokenUpdate
- func (tu *TokenUpdate) SetSymbol(s string) *TokenUpdate
- func (tu *TokenUpdate) SetUpdatedAt(t time.Time) *TokenUpdate
- func (tu *TokenUpdate) Where(ps ...predicate.Token) *TokenUpdate
- type TokenUpdateOne
- func (tuo *TokenUpdateOne) AddDecimals(i int8) *TokenUpdateOne
- func (tuo *TokenUpdateOne) AddLockPaymentOrderIDs(ids ...uuid.UUID) *TokenUpdateOne
- func (tuo *TokenUpdateOne) AddLockPaymentOrders(l ...*LockPaymentOrder) *TokenUpdateOne
- func (tuo *TokenUpdateOne) AddPaymentOrderIDs(ids ...uuid.UUID) *TokenUpdateOne
- func (tuo *TokenUpdateOne) AddPaymentOrders(p ...*PaymentOrder) *TokenUpdateOne
- func (tuo *TokenUpdateOne) AddProviderOrderTokenIDs(ids ...int) *TokenUpdateOne
- func (tuo *TokenUpdateOne) AddProviderOrderTokens(p ...*ProviderOrderToken) *TokenUpdateOne
- func (tuo *TokenUpdateOne) AddSenderOrderTokenIDs(ids ...int) *TokenUpdateOne
- func (tuo *TokenUpdateOne) AddSenderOrderTokens(s ...*SenderOrderToken) *TokenUpdateOne
- func (tuo *TokenUpdateOne) ClearLockPaymentOrders() *TokenUpdateOne
- func (tuo *TokenUpdateOne) ClearNetwork() *TokenUpdateOne
- func (tuo *TokenUpdateOne) ClearPaymentOrders() *TokenUpdateOne
- func (tuo *TokenUpdateOne) ClearProviderOrderTokens() *TokenUpdateOne
- func (tuo *TokenUpdateOne) ClearSenderOrderTokens() *TokenUpdateOne
- func (tuo *TokenUpdateOne) Exec(ctx context.Context) error
- func (tuo *TokenUpdateOne) ExecX(ctx context.Context)
- func (tuo *TokenUpdateOne) Mutation() *TokenMutation
- func (tuo *TokenUpdateOne) RemoveLockPaymentOrderIDs(ids ...uuid.UUID) *TokenUpdateOne
- func (tuo *TokenUpdateOne) RemoveLockPaymentOrders(l ...*LockPaymentOrder) *TokenUpdateOne
- func (tuo *TokenUpdateOne) RemovePaymentOrderIDs(ids ...uuid.UUID) *TokenUpdateOne
- func (tuo *TokenUpdateOne) RemovePaymentOrders(p ...*PaymentOrder) *TokenUpdateOne
- func (tuo *TokenUpdateOne) RemoveProviderOrderTokenIDs(ids ...int) *TokenUpdateOne
- func (tuo *TokenUpdateOne) RemoveProviderOrderTokens(p ...*ProviderOrderToken) *TokenUpdateOne
- func (tuo *TokenUpdateOne) RemoveSenderOrderTokenIDs(ids ...int) *TokenUpdateOne
- func (tuo *TokenUpdateOne) RemoveSenderOrderTokens(s ...*SenderOrderToken) *TokenUpdateOne
- func (tuo *TokenUpdateOne) Save(ctx context.Context) (*Token, error)
- func (tuo *TokenUpdateOne) SaveX(ctx context.Context) *Token
- func (tuo *TokenUpdateOne) Select(field string, fields ...string) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetBaseCurrency(s string) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetContractAddress(s string) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetDecimals(i int8) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetIsEnabled(b bool) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetNetwork(n *Network) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetNetworkID(id int) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetNillableBaseCurrency(s *string) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetNillableContractAddress(s *string) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetNillableDecimals(i *int8) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetNillableIsEnabled(b *bool) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetNillableSymbol(s *string) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetSymbol(s string) *TokenUpdateOne
- func (tuo *TokenUpdateOne) SetUpdatedAt(t time.Time) *TokenUpdateOne
- func (tuo *TokenUpdateOne) Where(ps ...predicate.Token) *TokenUpdateOne
- type TokenUpsert
- func (u *TokenUpsert) AddDecimals(v int8) *TokenUpsert
- func (u *TokenUpsert) SetBaseCurrency(v string) *TokenUpsert
- func (u *TokenUpsert) SetContractAddress(v string) *TokenUpsert
- func (u *TokenUpsert) SetDecimals(v int8) *TokenUpsert
- func (u *TokenUpsert) SetIsEnabled(v bool) *TokenUpsert
- func (u *TokenUpsert) SetSymbol(v string) *TokenUpsert
- func (u *TokenUpsert) SetUpdatedAt(v time.Time) *TokenUpsert
- func (u *TokenUpsert) UpdateBaseCurrency() *TokenUpsert
- func (u *TokenUpsert) UpdateContractAddress() *TokenUpsert
- func (u *TokenUpsert) UpdateDecimals() *TokenUpsert
- func (u *TokenUpsert) UpdateIsEnabled() *TokenUpsert
- func (u *TokenUpsert) UpdateSymbol() *TokenUpsert
- func (u *TokenUpsert) UpdateUpdatedAt() *TokenUpsert
- type TokenUpsertBulk
- func (u *TokenUpsertBulk) AddDecimals(v int8) *TokenUpsertBulk
- func (u *TokenUpsertBulk) DoNothing() *TokenUpsertBulk
- func (u *TokenUpsertBulk) Exec(ctx context.Context) error
- func (u *TokenUpsertBulk) ExecX(ctx context.Context)
- func (u *TokenUpsertBulk) Ignore() *TokenUpsertBulk
- func (u *TokenUpsertBulk) SetBaseCurrency(v string) *TokenUpsertBulk
- func (u *TokenUpsertBulk) SetContractAddress(v string) *TokenUpsertBulk
- func (u *TokenUpsertBulk) SetDecimals(v int8) *TokenUpsertBulk
- func (u *TokenUpsertBulk) SetIsEnabled(v bool) *TokenUpsertBulk
- func (u *TokenUpsertBulk) SetSymbol(v string) *TokenUpsertBulk
- func (u *TokenUpsertBulk) SetUpdatedAt(v time.Time) *TokenUpsertBulk
- func (u *TokenUpsertBulk) Update(set func(*TokenUpsert)) *TokenUpsertBulk
- func (u *TokenUpsertBulk) UpdateBaseCurrency() *TokenUpsertBulk
- func (u *TokenUpsertBulk) UpdateContractAddress() *TokenUpsertBulk
- func (u *TokenUpsertBulk) UpdateDecimals() *TokenUpsertBulk
- func (u *TokenUpsertBulk) UpdateIsEnabled() *TokenUpsertBulk
- func (u *TokenUpsertBulk) UpdateNewValues() *TokenUpsertBulk
- func (u *TokenUpsertBulk) UpdateSymbol() *TokenUpsertBulk
- func (u *TokenUpsertBulk) UpdateUpdatedAt() *TokenUpsertBulk
- type TokenUpsertOne
- func (u *TokenUpsertOne) AddDecimals(v int8) *TokenUpsertOne
- func (u *TokenUpsertOne) DoNothing() *TokenUpsertOne
- func (u *TokenUpsertOne) Exec(ctx context.Context) error
- func (u *TokenUpsertOne) ExecX(ctx context.Context)
- func (u *TokenUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *TokenUpsertOne) IDX(ctx context.Context) int
- func (u *TokenUpsertOne) Ignore() *TokenUpsertOne
- func (u *TokenUpsertOne) SetBaseCurrency(v string) *TokenUpsertOne
- func (u *TokenUpsertOne) SetContractAddress(v string) *TokenUpsertOne
- func (u *TokenUpsertOne) SetDecimals(v int8) *TokenUpsertOne
- func (u *TokenUpsertOne) SetIsEnabled(v bool) *TokenUpsertOne
- func (u *TokenUpsertOne) SetSymbol(v string) *TokenUpsertOne
- func (u *TokenUpsertOne) SetUpdatedAt(v time.Time) *TokenUpsertOne
- func (u *TokenUpsertOne) Update(set func(*TokenUpsert)) *TokenUpsertOne
- func (u *TokenUpsertOne) UpdateBaseCurrency() *TokenUpsertOne
- func (u *TokenUpsertOne) UpdateContractAddress() *TokenUpsertOne
- func (u *TokenUpsertOne) UpdateDecimals() *TokenUpsertOne
- func (u *TokenUpsertOne) UpdateIsEnabled() *TokenUpsertOne
- func (u *TokenUpsertOne) UpdateNewValues() *TokenUpsertOne
- func (u *TokenUpsertOne) UpdateSymbol() *TokenUpsertOne
- func (u *TokenUpsertOne) UpdateUpdatedAt() *TokenUpsertOne
- type Tokens
- type TransactionLog
- type TransactionLogClient
- func (c *TransactionLogClient) Create() *TransactionLogCreate
- func (c *TransactionLogClient) CreateBulk(builders ...*TransactionLogCreate) *TransactionLogCreateBulk
- func (c *TransactionLogClient) Delete() *TransactionLogDelete
- func (c *TransactionLogClient) DeleteOne(tl *TransactionLog) *TransactionLogDeleteOne
- func (c *TransactionLogClient) DeleteOneID(id uuid.UUID) *TransactionLogDeleteOne
- func (c *TransactionLogClient) Get(ctx context.Context, id uuid.UUID) (*TransactionLog, error)
- func (c *TransactionLogClient) GetX(ctx context.Context, id uuid.UUID) *TransactionLog
- func (c *TransactionLogClient) Hooks() []Hook
- func (c *TransactionLogClient) Intercept(interceptors ...Interceptor)
- func (c *TransactionLogClient) Interceptors() []Interceptor
- func (c *TransactionLogClient) MapCreateBulk(slice any, setFunc func(*TransactionLogCreate, int)) *TransactionLogCreateBulk
- func (c *TransactionLogClient) Query() *TransactionLogQuery
- func (c *TransactionLogClient) Update() *TransactionLogUpdate
- func (c *TransactionLogClient) UpdateOne(tl *TransactionLog) *TransactionLogUpdateOne
- func (c *TransactionLogClient) UpdateOneID(id uuid.UUID) *TransactionLogUpdateOne
- func (c *TransactionLogClient) Use(hooks ...Hook)
- type TransactionLogCreate
- func (tlc *TransactionLogCreate) Exec(ctx context.Context) error
- func (tlc *TransactionLogCreate) ExecX(ctx context.Context)
- func (tlc *TransactionLogCreate) Mutation() *TransactionLogMutation
- func (tlc *TransactionLogCreate) OnConflict(opts ...sql.ConflictOption) *TransactionLogUpsertOne
- func (tlc *TransactionLogCreate) OnConflictColumns(columns ...string) *TransactionLogUpsertOne
- func (tlc *TransactionLogCreate) Save(ctx context.Context) (*TransactionLog, error)
- func (tlc *TransactionLogCreate) SaveX(ctx context.Context) *TransactionLog
- func (tlc *TransactionLogCreate) SetCreatedAt(t time.Time) *TransactionLogCreate
- func (tlc *TransactionLogCreate) SetGatewayID(s string) *TransactionLogCreate
- func (tlc *TransactionLogCreate) SetID(u uuid.UUID) *TransactionLogCreate
- func (tlc *TransactionLogCreate) SetMetadata(m map[string]interface{}) *TransactionLogCreate
- func (tlc *TransactionLogCreate) SetNetwork(s string) *TransactionLogCreate
- func (tlc *TransactionLogCreate) SetNillableCreatedAt(t *time.Time) *TransactionLogCreate
- func (tlc *TransactionLogCreate) SetNillableGatewayID(s *string) *TransactionLogCreate
- func (tlc *TransactionLogCreate) SetNillableID(u *uuid.UUID) *TransactionLogCreate
- func (tlc *TransactionLogCreate) SetNillableNetwork(s *string) *TransactionLogCreate
- func (tlc *TransactionLogCreate) SetNillableStatus(t *transactionlog.Status) *TransactionLogCreate
- func (tlc *TransactionLogCreate) SetNillableTxHash(s *string) *TransactionLogCreate
- func (tlc *TransactionLogCreate) SetStatus(t transactionlog.Status) *TransactionLogCreate
- func (tlc *TransactionLogCreate) SetTxHash(s string) *TransactionLogCreate
- type TransactionLogCreateBulk
- func (tlcb *TransactionLogCreateBulk) Exec(ctx context.Context) error
- func (tlcb *TransactionLogCreateBulk) ExecX(ctx context.Context)
- func (tlcb *TransactionLogCreateBulk) OnConflict(opts ...sql.ConflictOption) *TransactionLogUpsertBulk
- func (tlcb *TransactionLogCreateBulk) OnConflictColumns(columns ...string) *TransactionLogUpsertBulk
- func (tlcb *TransactionLogCreateBulk) Save(ctx context.Context) ([]*TransactionLog, error)
- func (tlcb *TransactionLogCreateBulk) SaveX(ctx context.Context) []*TransactionLog
- type TransactionLogDelete
- type TransactionLogDeleteOne
- type TransactionLogGroupBy
- func (tlgb *TransactionLogGroupBy) Aggregate(fns ...AggregateFunc) *TransactionLogGroupBy
- func (s *TransactionLogGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *TransactionLogGroupBy) BoolX(ctx context.Context) bool
- func (s *TransactionLogGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *TransactionLogGroupBy) BoolsX(ctx context.Context) []bool
- func (s *TransactionLogGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *TransactionLogGroupBy) Float64X(ctx context.Context) float64
- func (s *TransactionLogGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *TransactionLogGroupBy) Float64sX(ctx context.Context) []float64
- func (s *TransactionLogGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *TransactionLogGroupBy) IntX(ctx context.Context) int
- func (s *TransactionLogGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *TransactionLogGroupBy) IntsX(ctx context.Context) []int
- func (tlgb *TransactionLogGroupBy) Scan(ctx context.Context, v any) error
- func (s *TransactionLogGroupBy) ScanX(ctx context.Context, v any)
- func (s *TransactionLogGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *TransactionLogGroupBy) StringX(ctx context.Context) string
- func (s *TransactionLogGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *TransactionLogGroupBy) StringsX(ctx context.Context) []string
- type TransactionLogMutation
- func (m *TransactionLogMutation) AddField(name string, value ent.Value) error
- func (m *TransactionLogMutation) AddedEdges() []string
- func (m *TransactionLogMutation) AddedField(name string) (ent.Value, bool)
- func (m *TransactionLogMutation) AddedFields() []string
- func (m *TransactionLogMutation) AddedIDs(name string) []ent.Value
- func (m *TransactionLogMutation) ClearEdge(name string) error
- func (m *TransactionLogMutation) ClearField(name string) error
- func (m *TransactionLogMutation) ClearGatewayID()
- func (m *TransactionLogMutation) ClearNetwork()
- func (m *TransactionLogMutation) ClearTxHash()
- func (m *TransactionLogMutation) ClearedEdges() []string
- func (m *TransactionLogMutation) ClearedFields() []string
- func (m TransactionLogMutation) Client() *Client
- func (m *TransactionLogMutation) CreatedAt() (r time.Time, exists bool)
- func (m *TransactionLogMutation) EdgeCleared(name string) bool
- func (m *TransactionLogMutation) Field(name string) (ent.Value, bool)
- func (m *TransactionLogMutation) FieldCleared(name string) bool
- func (m *TransactionLogMutation) Fields() []string
- func (m *TransactionLogMutation) GatewayID() (r string, exists bool)
- func (m *TransactionLogMutation) GatewayIDCleared() bool
- func (m *TransactionLogMutation) ID() (id uuid.UUID, exists bool)
- func (m *TransactionLogMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *TransactionLogMutation) Metadata() (r map[string]interface{}, exists bool)
- func (m *TransactionLogMutation) Network() (r string, exists bool)
- func (m *TransactionLogMutation) NetworkCleared() bool
- func (m *TransactionLogMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *TransactionLogMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TransactionLogMutation) OldGatewayID(ctx context.Context) (v string, err error)
- func (m *TransactionLogMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error)
- func (m *TransactionLogMutation) OldNetwork(ctx context.Context) (v string, err error)
- func (m *TransactionLogMutation) OldStatus(ctx context.Context) (v transactionlog.Status, err error)
- func (m *TransactionLogMutation) OldTxHash(ctx context.Context) (v string, err error)
- func (m *TransactionLogMutation) Op() Op
- func (m *TransactionLogMutation) RemovedEdges() []string
- func (m *TransactionLogMutation) RemovedIDs(name string) []ent.Value
- func (m *TransactionLogMutation) ResetCreatedAt()
- func (m *TransactionLogMutation) ResetEdge(name string) error
- func (m *TransactionLogMutation) ResetField(name string) error
- func (m *TransactionLogMutation) ResetGatewayID()
- func (m *TransactionLogMutation) ResetMetadata()
- func (m *TransactionLogMutation) ResetNetwork()
- func (m *TransactionLogMutation) ResetStatus()
- func (m *TransactionLogMutation) ResetTxHash()
- func (m *TransactionLogMutation) SetCreatedAt(t time.Time)
- func (m *TransactionLogMutation) SetField(name string, value ent.Value) error
- func (m *TransactionLogMutation) SetGatewayID(s string)
- func (m *TransactionLogMutation) SetID(id uuid.UUID)
- func (m *TransactionLogMutation) SetMetadata(value map[string]interface{})
- func (m *TransactionLogMutation) SetNetwork(s string)
- func (m *TransactionLogMutation) SetOp(op Op)
- func (m *TransactionLogMutation) SetStatus(t transactionlog.Status)
- func (m *TransactionLogMutation) SetTxHash(s string)
- func (m *TransactionLogMutation) Status() (r transactionlog.Status, exists bool)
- func (m TransactionLogMutation) Tx() (*Tx, error)
- func (m *TransactionLogMutation) TxHash() (r string, exists bool)
- func (m *TransactionLogMutation) TxHashCleared() bool
- func (m *TransactionLogMutation) Type() string
- func (m *TransactionLogMutation) Where(ps ...predicate.TransactionLog)
- func (m *TransactionLogMutation) WhereP(ps ...func(*sql.Selector))
- type TransactionLogQuery
- func (tlq *TransactionLogQuery) Aggregate(fns ...AggregateFunc) *TransactionLogSelect
- func (tlq *TransactionLogQuery) All(ctx context.Context) ([]*TransactionLog, error)
- func (tlq *TransactionLogQuery) AllX(ctx context.Context) []*TransactionLog
- func (tlq *TransactionLogQuery) Clone() *TransactionLogQuery
- func (tlq *TransactionLogQuery) Count(ctx context.Context) (int, error)
- func (tlq *TransactionLogQuery) CountX(ctx context.Context) int
- func (tlq *TransactionLogQuery) Exist(ctx context.Context) (bool, error)
- func (tlq *TransactionLogQuery) ExistX(ctx context.Context) bool
- func (tlq *TransactionLogQuery) First(ctx context.Context) (*TransactionLog, error)
- func (tlq *TransactionLogQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (tlq *TransactionLogQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (tlq *TransactionLogQuery) FirstX(ctx context.Context) *TransactionLog
- func (tlq *TransactionLogQuery) GroupBy(field string, fields ...string) *TransactionLogGroupBy
- func (tlq *TransactionLogQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (tlq *TransactionLogQuery) IDsX(ctx context.Context) []uuid.UUID
- func (tlq *TransactionLogQuery) Limit(limit int) *TransactionLogQuery
- func (tlq *TransactionLogQuery) Offset(offset int) *TransactionLogQuery
- func (tlq *TransactionLogQuery) Only(ctx context.Context) (*TransactionLog, error)
- func (tlq *TransactionLogQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (tlq *TransactionLogQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (tlq *TransactionLogQuery) OnlyX(ctx context.Context) *TransactionLog
- func (tlq *TransactionLogQuery) Order(o ...transactionlog.OrderOption) *TransactionLogQuery
- func (tlq *TransactionLogQuery) Select(fields ...string) *TransactionLogSelect
- func (tlq *TransactionLogQuery) Unique(unique bool) *TransactionLogQuery
- func (tlq *TransactionLogQuery) Where(ps ...predicate.TransactionLog) *TransactionLogQuery
- type TransactionLogSelect
- func (tls *TransactionLogSelect) Aggregate(fns ...AggregateFunc) *TransactionLogSelect
- func (s *TransactionLogSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *TransactionLogSelect) BoolX(ctx context.Context) bool
- func (s *TransactionLogSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *TransactionLogSelect) BoolsX(ctx context.Context) []bool
- func (s *TransactionLogSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *TransactionLogSelect) Float64X(ctx context.Context) float64
- func (s *TransactionLogSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *TransactionLogSelect) Float64sX(ctx context.Context) []float64
- func (s *TransactionLogSelect) Int(ctx context.Context) (_ int, err error)
- func (s *TransactionLogSelect) IntX(ctx context.Context) int
- func (s *TransactionLogSelect) Ints(ctx context.Context) ([]int, error)
- func (s *TransactionLogSelect) IntsX(ctx context.Context) []int
- func (tls *TransactionLogSelect) Scan(ctx context.Context, v any) error
- func (s *TransactionLogSelect) ScanX(ctx context.Context, v any)
- func (s *TransactionLogSelect) String(ctx context.Context) (_ string, err error)
- func (s *TransactionLogSelect) StringX(ctx context.Context) string
- func (s *TransactionLogSelect) Strings(ctx context.Context) ([]string, error)
- func (s *TransactionLogSelect) StringsX(ctx context.Context) []string
- type TransactionLogUpdate
- func (tlu *TransactionLogUpdate) ClearGatewayID() *TransactionLogUpdate
- func (tlu *TransactionLogUpdate) ClearNetwork() *TransactionLogUpdate
- func (tlu *TransactionLogUpdate) ClearTxHash() *TransactionLogUpdate
- func (tlu *TransactionLogUpdate) Exec(ctx context.Context) error
- func (tlu *TransactionLogUpdate) ExecX(ctx context.Context)
- func (tlu *TransactionLogUpdate) Mutation() *TransactionLogMutation
- func (tlu *TransactionLogUpdate) Save(ctx context.Context) (int, error)
- func (tlu *TransactionLogUpdate) SaveX(ctx context.Context) int
- func (tlu *TransactionLogUpdate) SetGatewayID(s string) *TransactionLogUpdate
- func (tlu *TransactionLogUpdate) SetMetadata(m map[string]interface{}) *TransactionLogUpdate
- func (tlu *TransactionLogUpdate) SetNetwork(s string) *TransactionLogUpdate
- func (tlu *TransactionLogUpdate) SetNillableGatewayID(s *string) *TransactionLogUpdate
- func (tlu *TransactionLogUpdate) SetNillableNetwork(s *string) *TransactionLogUpdate
- func (tlu *TransactionLogUpdate) SetNillableTxHash(s *string) *TransactionLogUpdate
- func (tlu *TransactionLogUpdate) SetTxHash(s string) *TransactionLogUpdate
- func (tlu *TransactionLogUpdate) Where(ps ...predicate.TransactionLog) *TransactionLogUpdate
- type TransactionLogUpdateOne
- func (tluo *TransactionLogUpdateOne) ClearGatewayID() *TransactionLogUpdateOne
- func (tluo *TransactionLogUpdateOne) ClearNetwork() *TransactionLogUpdateOne
- func (tluo *TransactionLogUpdateOne) ClearTxHash() *TransactionLogUpdateOne
- func (tluo *TransactionLogUpdateOne) Exec(ctx context.Context) error
- func (tluo *TransactionLogUpdateOne) ExecX(ctx context.Context)
- func (tluo *TransactionLogUpdateOne) Mutation() *TransactionLogMutation
- func (tluo *TransactionLogUpdateOne) Save(ctx context.Context) (*TransactionLog, error)
- func (tluo *TransactionLogUpdateOne) SaveX(ctx context.Context) *TransactionLog
- func (tluo *TransactionLogUpdateOne) Select(field string, fields ...string) *TransactionLogUpdateOne
- func (tluo *TransactionLogUpdateOne) SetGatewayID(s string) *TransactionLogUpdateOne
- func (tluo *TransactionLogUpdateOne) SetMetadata(m map[string]interface{}) *TransactionLogUpdateOne
- func (tluo *TransactionLogUpdateOne) SetNetwork(s string) *TransactionLogUpdateOne
- func (tluo *TransactionLogUpdateOne) SetNillableGatewayID(s *string) *TransactionLogUpdateOne
- func (tluo *TransactionLogUpdateOne) SetNillableNetwork(s *string) *TransactionLogUpdateOne
- func (tluo *TransactionLogUpdateOne) SetNillableTxHash(s *string) *TransactionLogUpdateOne
- func (tluo *TransactionLogUpdateOne) SetTxHash(s string) *TransactionLogUpdateOne
- func (tluo *TransactionLogUpdateOne) Where(ps ...predicate.TransactionLog) *TransactionLogUpdateOne
- type TransactionLogUpsert
- func (u *TransactionLogUpsert) ClearGatewayID() *TransactionLogUpsert
- func (u *TransactionLogUpsert) ClearNetwork() *TransactionLogUpsert
- func (u *TransactionLogUpsert) ClearTxHash() *TransactionLogUpsert
- func (u *TransactionLogUpsert) SetGatewayID(v string) *TransactionLogUpsert
- func (u *TransactionLogUpsert) SetMetadata(v map[string]interface{}) *TransactionLogUpsert
- func (u *TransactionLogUpsert) SetNetwork(v string) *TransactionLogUpsert
- func (u *TransactionLogUpsert) SetTxHash(v string) *TransactionLogUpsert
- func (u *TransactionLogUpsert) UpdateGatewayID() *TransactionLogUpsert
- func (u *TransactionLogUpsert) UpdateMetadata() *TransactionLogUpsert
- func (u *TransactionLogUpsert) UpdateNetwork() *TransactionLogUpsert
- func (u *TransactionLogUpsert) UpdateTxHash() *TransactionLogUpsert
- type TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) ClearGatewayID() *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) ClearNetwork() *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) ClearTxHash() *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) DoNothing() *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) Exec(ctx context.Context) error
- func (u *TransactionLogUpsertBulk) ExecX(ctx context.Context)
- func (u *TransactionLogUpsertBulk) Ignore() *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) SetGatewayID(v string) *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) SetMetadata(v map[string]interface{}) *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) SetNetwork(v string) *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) SetTxHash(v string) *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) Update(set func(*TransactionLogUpsert)) *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) UpdateGatewayID() *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) UpdateMetadata() *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) UpdateNetwork() *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) UpdateNewValues() *TransactionLogUpsertBulk
- func (u *TransactionLogUpsertBulk) UpdateTxHash() *TransactionLogUpsertBulk
- type TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) ClearGatewayID() *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) ClearNetwork() *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) ClearTxHash() *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) DoNothing() *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) Exec(ctx context.Context) error
- func (u *TransactionLogUpsertOne) ExecX(ctx context.Context)
- func (u *TransactionLogUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *TransactionLogUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *TransactionLogUpsertOne) Ignore() *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) SetGatewayID(v string) *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) SetMetadata(v map[string]interface{}) *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) SetNetwork(v string) *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) SetTxHash(v string) *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) Update(set func(*TransactionLogUpsert)) *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) UpdateGatewayID() *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) UpdateMetadata() *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) UpdateNetwork() *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) UpdateNewValues() *TransactionLogUpsertOne
- func (u *TransactionLogUpsertOne) UpdateTxHash() *TransactionLogUpsertOne
- type TransactionLogs
- type TraverseFunc
- type Traverser
- type Tx
- type User
- func (u *User) QueryKybProfile() *KYBProfileQuery
- func (u *User) QueryProviderProfile() *ProviderProfileQuery
- func (u *User) QuerySenderProfile() *SenderProfileQuery
- func (u *User) QueryVerificationToken() *VerificationTokenQuery
- func (u *User) String() string
- func (u *User) Unwrap() *User
- func (u *User) Update() *UserUpdateOne
- func (u *User) Value(name string) (ent.Value, error)
- type UserClient
- func (c *UserClient) Create() *UserCreate
- func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk
- func (c *UserClient) Delete() *UserDelete
- func (c *UserClient) DeleteOne(u *User) *UserDeleteOne
- func (c *UserClient) DeleteOneID(id uuid.UUID) *UserDeleteOne
- func (c *UserClient) Get(ctx context.Context, id uuid.UUID) (*User, error)
- func (c *UserClient) GetX(ctx context.Context, id uuid.UUID) *User
- func (c *UserClient) Hooks() []Hook
- func (c *UserClient) Intercept(interceptors ...Interceptor)
- func (c *UserClient) Interceptors() []Interceptor
- func (c *UserClient) MapCreateBulk(slice any, setFunc func(*UserCreate, int)) *UserCreateBulk
- func (c *UserClient) Query() *UserQuery
- func (c *UserClient) QueryKybProfile(u *User) *KYBProfileQuery
- func (c *UserClient) QueryProviderProfile(u *User) *ProviderProfileQuery
- func (c *UserClient) QuerySenderProfile(u *User) *SenderProfileQuery
- func (c *UserClient) QueryVerificationToken(u *User) *VerificationTokenQuery
- func (c *UserClient) Update() *UserUpdate
- func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
- func (c *UserClient) UpdateOneID(id uuid.UUID) *UserUpdateOne
- func (c *UserClient) Use(hooks ...Hook)
- type UserCreate
- func (uc *UserCreate) AddVerificationToken(v ...*VerificationToken) *UserCreate
- func (uc *UserCreate) AddVerificationTokenIDs(ids ...uuid.UUID) *UserCreate
- func (uc *UserCreate) Exec(ctx context.Context) error
- func (uc *UserCreate) ExecX(ctx context.Context)
- func (uc *UserCreate) Mutation() *UserMutation
- func (uc *UserCreate) OnConflict(opts ...sql.ConflictOption) *UserUpsertOne
- func (uc *UserCreate) OnConflictColumns(columns ...string) *UserUpsertOne
- func (uc *UserCreate) Save(ctx context.Context) (*User, error)
- func (uc *UserCreate) SaveX(ctx context.Context) *User
- func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate
- func (uc *UserCreate) SetEmail(s string) *UserCreate
- func (uc *UserCreate) SetFirstName(s string) *UserCreate
- func (uc *UserCreate) SetHasEarlyAccess(b bool) *UserCreate
- func (uc *UserCreate) SetID(u uuid.UUID) *UserCreate
- func (uc *UserCreate) SetIsEmailVerified(b bool) *UserCreate
- func (uc *UserCreate) SetKybProfile(k *KYBProfile) *UserCreate
- func (uc *UserCreate) SetKybProfileID(id uuid.UUID) *UserCreate
- func (uc *UserCreate) SetKybVerificationStatus(uvs user.KybVerificationStatus) *UserCreate
- func (uc *UserCreate) SetLastName(s string) *UserCreate
- func (uc *UserCreate) SetNillableCreatedAt(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableHasEarlyAccess(b *bool) *UserCreate
- func (uc *UserCreate) SetNillableID(u *uuid.UUID) *UserCreate
- func (uc *UserCreate) SetNillableIsEmailVerified(b *bool) *UserCreate
- func (uc *UserCreate) SetNillableKybProfileID(id *uuid.UUID) *UserCreate
- func (uc *UserCreate) SetNillableKybVerificationStatus(uvs *user.KybVerificationStatus) *UserCreate
- func (uc *UserCreate) SetNillableProviderProfileID(id *string) *UserCreate
- func (uc *UserCreate) SetNillableSenderProfileID(id *uuid.UUID) *UserCreate
- func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate
- func (uc *UserCreate) SetPassword(s string) *UserCreate
- func (uc *UserCreate) SetProviderProfile(p *ProviderProfile) *UserCreate
- func (uc *UserCreate) SetProviderProfileID(id string) *UserCreate
- func (uc *UserCreate) SetScope(s string) *UserCreate
- func (uc *UserCreate) SetSenderProfile(s *SenderProfile) *UserCreate
- func (uc *UserCreate) SetSenderProfileID(id uuid.UUID) *UserCreate
- func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate
- type UserCreateBulk
- func (ucb *UserCreateBulk) Exec(ctx context.Context) error
- func (ucb *UserCreateBulk) ExecX(ctx context.Context)
- func (ucb *UserCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserUpsertBulk
- func (ucb *UserCreateBulk) OnConflictColumns(columns ...string) *UserUpsertBulk
- func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error)
- func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User
- type UserDelete
- type UserDeleteOne
- type UserEdges
- type UserGroupBy
- func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
- func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserGroupBy) BoolX(ctx context.Context) bool
- func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserGroupBy) Float64X(ctx context.Context) float64
- func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserGroupBy) IntX(ctx context.Context) int
- func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserGroupBy) IntsX(ctx context.Context) []int
- func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserGroupBy) StringX(ctx context.Context) string
- func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserGroupBy) StringsX(ctx context.Context) []string
- type UserMutation
- func (m *UserMutation) AddField(name string, value ent.Value) error
- func (m *UserMutation) AddVerificationTokenIDs(ids ...uuid.UUID)
- func (m *UserMutation) AddedEdges() []string
- func (m *UserMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserMutation) AddedFields() []string
- func (m *UserMutation) AddedIDs(name string) []ent.Value
- func (m *UserMutation) ClearEdge(name string) error
- func (m *UserMutation) ClearField(name string) error
- func (m *UserMutation) ClearKybProfile()
- func (m *UserMutation) ClearProviderProfile()
- func (m *UserMutation) ClearSenderProfile()
- func (m *UserMutation) ClearVerificationToken()
- func (m *UserMutation) ClearedEdges() []string
- func (m *UserMutation) ClearedFields() []string
- func (m UserMutation) Client() *Client
- func (m *UserMutation) CreatedAt() (r time.Time, exists bool)
- func (m *UserMutation) EdgeCleared(name string) bool
- func (m *UserMutation) Email() (r string, exists bool)
- func (m *UserMutation) Field(name string) (ent.Value, bool)
- func (m *UserMutation) FieldCleared(name string) bool
- func (m *UserMutation) Fields() []string
- func (m *UserMutation) FirstName() (r string, exists bool)
- func (m *UserMutation) HasEarlyAccess() (r bool, exists bool)
- func (m *UserMutation) ID() (id uuid.UUID, exists bool)
- func (m *UserMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *UserMutation) IsEmailVerified() (r bool, exists bool)
- func (m *UserMutation) KybProfileCleared() bool
- func (m *UserMutation) KybProfileID() (id uuid.UUID, exists bool)
- func (m *UserMutation) KybProfileIDs() (ids []uuid.UUID)
- func (m *UserMutation) KybVerificationStatus() (r user.KybVerificationStatus, exists bool)
- func (m *UserMutation) LastName() (r string, exists bool)
- func (m *UserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) OldEmail(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserMutation) OldFirstName(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldHasEarlyAccess(ctx context.Context) (v bool, err error)
- func (m *UserMutation) OldIsEmailVerified(ctx context.Context) (v bool, err error)
- func (m *UserMutation) OldKybVerificationStatus(ctx context.Context) (v user.KybVerificationStatus, err error)
- func (m *UserMutation) OldLastName(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldPassword(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldScope(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) Op() Op
- func (m *UserMutation) Password() (r string, exists bool)
- func (m *UserMutation) ProviderProfileCleared() bool
- func (m *UserMutation) ProviderProfileID() (id string, exists bool)
- func (m *UserMutation) ProviderProfileIDs() (ids []string)
- func (m *UserMutation) RemoveVerificationTokenIDs(ids ...uuid.UUID)
- func (m *UserMutation) RemovedEdges() []string
- func (m *UserMutation) RemovedIDs(name string) []ent.Value
- func (m *UserMutation) RemovedVerificationTokenIDs() (ids []uuid.UUID)
- func (m *UserMutation) ResetCreatedAt()
- func (m *UserMutation) ResetEdge(name string) error
- func (m *UserMutation) ResetEmail()
- func (m *UserMutation) ResetField(name string) error
- func (m *UserMutation) ResetFirstName()
- func (m *UserMutation) ResetHasEarlyAccess()
- func (m *UserMutation) ResetIsEmailVerified()
- func (m *UserMutation) ResetKybProfile()
- func (m *UserMutation) ResetKybVerificationStatus()
- func (m *UserMutation) ResetLastName()
- func (m *UserMutation) ResetPassword()
- func (m *UserMutation) ResetProviderProfile()
- func (m *UserMutation) ResetScope()
- func (m *UserMutation) ResetSenderProfile()
- func (m *UserMutation) ResetUpdatedAt()
- func (m *UserMutation) ResetVerificationToken()
- func (m *UserMutation) Scope() (r string, exists bool)
- func (m *UserMutation) SenderProfileCleared() bool
- func (m *UserMutation) SenderProfileID() (id uuid.UUID, exists bool)
- func (m *UserMutation) SenderProfileIDs() (ids []uuid.UUID)
- func (m *UserMutation) SetCreatedAt(t time.Time)
- func (m *UserMutation) SetEmail(s string)
- func (m *UserMutation) SetField(name string, value ent.Value) error
- func (m *UserMutation) SetFirstName(s string)
- func (m *UserMutation) SetHasEarlyAccess(b bool)
- func (m *UserMutation) SetID(id uuid.UUID)
- func (m *UserMutation) SetIsEmailVerified(b bool)
- func (m *UserMutation) SetKybProfileID(id uuid.UUID)
- func (m *UserMutation) SetKybVerificationStatus(uvs user.KybVerificationStatus)
- func (m *UserMutation) SetLastName(s string)
- func (m *UserMutation) SetOp(op Op)
- func (m *UserMutation) SetPassword(s string)
- func (m *UserMutation) SetProviderProfileID(id string)
- func (m *UserMutation) SetScope(s string)
- func (m *UserMutation) SetSenderProfileID(id uuid.UUID)
- func (m *UserMutation) SetUpdatedAt(t time.Time)
- func (m UserMutation) Tx() (*Tx, error)
- func (m *UserMutation) Type() string
- func (m *UserMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *UserMutation) VerificationTokenCleared() bool
- func (m *UserMutation) VerificationTokenIDs() (ids []uuid.UUID)
- func (m *UserMutation) Where(ps ...predicate.User)
- func (m *UserMutation) WhereP(ps ...func(*sql.Selector))
- type UserQuery
- func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect
- func (uq *UserQuery) All(ctx context.Context) ([]*User, error)
- func (uq *UserQuery) AllX(ctx context.Context) []*User
- func (uq *UserQuery) Clone() *UserQuery
- func (uq *UserQuery) Count(ctx context.Context) (int, error)
- func (uq *UserQuery) CountX(ctx context.Context) int
- func (uq *UserQuery) Exist(ctx context.Context) (bool, error)
- func (uq *UserQuery) ExistX(ctx context.Context) bool
- func (uq *UserQuery) First(ctx context.Context) (*User, error)
- func (uq *UserQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (uq *UserQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (uq *UserQuery) FirstX(ctx context.Context) *User
- func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
- func (uq *UserQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (uq *UserQuery) IDsX(ctx context.Context) []uuid.UUID
- func (uq *UserQuery) Limit(limit int) *UserQuery
- func (uq *UserQuery) Offset(offset int) *UserQuery
- func (uq *UserQuery) Only(ctx context.Context) (*User, error)
- func (uq *UserQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (uq *UserQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (uq *UserQuery) OnlyX(ctx context.Context) *User
- func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery
- func (uq *UserQuery) QueryKybProfile() *KYBProfileQuery
- func (uq *UserQuery) QueryProviderProfile() *ProviderProfileQuery
- func (uq *UserQuery) QuerySenderProfile() *SenderProfileQuery
- func (uq *UserQuery) QueryVerificationToken() *VerificationTokenQuery
- func (uq *UserQuery) Select(fields ...string) *UserSelect
- func (uq *UserQuery) Unique(unique bool) *UserQuery
- func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery
- func (uq *UserQuery) WithKybProfile(opts ...func(*KYBProfileQuery)) *UserQuery
- func (uq *UserQuery) WithProviderProfile(opts ...func(*ProviderProfileQuery)) *UserQuery
- func (uq *UserQuery) WithSenderProfile(opts ...func(*SenderProfileQuery)) *UserQuery
- func (uq *UserQuery) WithVerificationToken(opts ...func(*VerificationTokenQuery)) *UserQuery
- type UserSelect
- func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect
- func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserSelect) BoolX(ctx context.Context) bool
- func (s *UserSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserSelect) BoolsX(ctx context.Context) []bool
- func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserSelect) Float64X(ctx context.Context) float64
- func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserSelect) Float64sX(ctx context.Context) []float64
- func (s *UserSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserSelect) IntX(ctx context.Context) int
- func (s *UserSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserSelect) IntsX(ctx context.Context) []int
- func (us *UserSelect) Scan(ctx context.Context, v any) error
- func (s *UserSelect) ScanX(ctx context.Context, v any)
- func (s *UserSelect) String(ctx context.Context) (_ string, err error)
- func (s *UserSelect) StringX(ctx context.Context) string
- func (s *UserSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserSelect) StringsX(ctx context.Context) []string
- type UserUpdate
- func (uu *UserUpdate) AddVerificationToken(v ...*VerificationToken) *UserUpdate
- func (uu *UserUpdate) AddVerificationTokenIDs(ids ...uuid.UUID) *UserUpdate
- func (uu *UserUpdate) ClearKybProfile() *UserUpdate
- func (uu *UserUpdate) ClearProviderProfile() *UserUpdate
- func (uu *UserUpdate) ClearSenderProfile() *UserUpdate
- func (uu *UserUpdate) ClearVerificationToken() *UserUpdate
- func (uu *UserUpdate) Exec(ctx context.Context) error
- func (uu *UserUpdate) ExecX(ctx context.Context)
- func (uu *UserUpdate) Mutation() *UserMutation
- func (uu *UserUpdate) RemoveVerificationToken(v ...*VerificationToken) *UserUpdate
- func (uu *UserUpdate) RemoveVerificationTokenIDs(ids ...uuid.UUID) *UserUpdate
- func (uu *UserUpdate) Save(ctx context.Context) (int, error)
- func (uu *UserUpdate) SaveX(ctx context.Context) int
- func (uu *UserUpdate) SetEmail(s string) *UserUpdate
- func (uu *UserUpdate) SetFirstName(s string) *UserUpdate
- func (uu *UserUpdate) SetHasEarlyAccess(b bool) *UserUpdate
- func (uu *UserUpdate) SetIsEmailVerified(b bool) *UserUpdate
- func (uu *UserUpdate) SetKybProfile(k *KYBProfile) *UserUpdate
- func (uu *UserUpdate) SetKybProfileID(id uuid.UUID) *UserUpdate
- func (uu *UserUpdate) SetKybVerificationStatus(uvs user.KybVerificationStatus) *UserUpdate
- func (uu *UserUpdate) SetLastName(s string) *UserUpdate
- func (uu *UserUpdate) SetNillableEmail(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableFirstName(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableHasEarlyAccess(b *bool) *UserUpdate
- func (uu *UserUpdate) SetNillableIsEmailVerified(b *bool) *UserUpdate
- func (uu *UserUpdate) SetNillableKybProfileID(id *uuid.UUID) *UserUpdate
- func (uu *UserUpdate) SetNillableKybVerificationStatus(uvs *user.KybVerificationStatus) *UserUpdate
- func (uu *UserUpdate) SetNillableLastName(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillablePassword(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableProviderProfileID(id *string) *UserUpdate
- func (uu *UserUpdate) SetNillableScope(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableSenderProfileID(id *uuid.UUID) *UserUpdate
- func (uu *UserUpdate) SetPassword(s string) *UserUpdate
- func (uu *UserUpdate) SetProviderProfile(p *ProviderProfile) *UserUpdate
- func (uu *UserUpdate) SetProviderProfileID(id string) *UserUpdate
- func (uu *UserUpdate) SetScope(s string) *UserUpdate
- func (uu *UserUpdate) SetSenderProfile(s *SenderProfile) *UserUpdate
- func (uu *UserUpdate) SetSenderProfileID(id uuid.UUID) *UserUpdate
- func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate
- func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
- type UserUpdateOne
- func (uuo *UserUpdateOne) AddVerificationToken(v ...*VerificationToken) *UserUpdateOne
- func (uuo *UserUpdateOne) AddVerificationTokenIDs(ids ...uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) ClearKybProfile() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearProviderProfile() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearSenderProfile() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearVerificationToken() *UserUpdateOne
- func (uuo *UserUpdateOne) Exec(ctx context.Context) error
- func (uuo *UserUpdateOne) ExecX(ctx context.Context)
- func (uuo *UserUpdateOne) Mutation() *UserMutation
- func (uuo *UserUpdateOne) RemoveVerificationToken(v ...*VerificationToken) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveVerificationTokenIDs(ids ...uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)
- func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User
- func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetFirstName(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetHasEarlyAccess(b bool) *UserUpdateOne
- func (uuo *UserUpdateOne) SetIsEmailVerified(b bool) *UserUpdateOne
- func (uuo *UserUpdateOne) SetKybProfile(k *KYBProfile) *UserUpdateOne
- func (uuo *UserUpdateOne) SetKybProfileID(id uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) SetKybVerificationStatus(uvs user.KybVerificationStatus) *UserUpdateOne
- func (uuo *UserUpdateOne) SetLastName(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableEmail(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableFirstName(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableHasEarlyAccess(b *bool) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableIsEmailVerified(b *bool) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableKybProfileID(id *uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableKybVerificationStatus(uvs *user.KybVerificationStatus) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableLastName(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillablePassword(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableProviderProfileID(id *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableScope(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableSenderProfileID(id *uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) SetPassword(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetProviderProfile(p *ProviderProfile) *UserUpdateOne
- func (uuo *UserUpdateOne) SetProviderProfileID(id string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetScope(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetSenderProfile(s *SenderProfile) *UserUpdateOne
- func (uuo *UserUpdateOne) SetSenderProfileID(id uuid.UUID) *UserUpdateOne
- func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne
- type UserUpsert
- func (u *UserUpsert) SetEmail(v string) *UserUpsert
- func (u *UserUpsert) SetFirstName(v string) *UserUpsert
- func (u *UserUpsert) SetHasEarlyAccess(v bool) *UserUpsert
- func (u *UserUpsert) SetIsEmailVerified(v bool) *UserUpsert
- func (u *UserUpsert) SetKybVerificationStatus(v user.KybVerificationStatus) *UserUpsert
- func (u *UserUpsert) SetLastName(v string) *UserUpsert
- func (u *UserUpsert) SetPassword(v string) *UserUpsert
- func (u *UserUpsert) SetScope(v string) *UserUpsert
- func (u *UserUpsert) SetUpdatedAt(v time.Time) *UserUpsert
- func (u *UserUpsert) UpdateEmail() *UserUpsert
- func (u *UserUpsert) UpdateFirstName() *UserUpsert
- func (u *UserUpsert) UpdateHasEarlyAccess() *UserUpsert
- func (u *UserUpsert) UpdateIsEmailVerified() *UserUpsert
- func (u *UserUpsert) UpdateKybVerificationStatus() *UserUpsert
- func (u *UserUpsert) UpdateLastName() *UserUpsert
- func (u *UserUpsert) UpdatePassword() *UserUpsert
- func (u *UserUpsert) UpdateScope() *UserUpsert
- func (u *UserUpsert) UpdateUpdatedAt() *UserUpsert
- type UserUpsertBulk
- func (u *UserUpsertBulk) DoNothing() *UserUpsertBulk
- func (u *UserUpsertBulk) Exec(ctx context.Context) error
- func (u *UserUpsertBulk) ExecX(ctx context.Context)
- func (u *UserUpsertBulk) Ignore() *UserUpsertBulk
- func (u *UserUpsertBulk) SetEmail(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) SetFirstName(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) SetHasEarlyAccess(v bool) *UserUpsertBulk
- func (u *UserUpsertBulk) SetIsEmailVerified(v bool) *UserUpsertBulk
- func (u *UserUpsertBulk) SetKybVerificationStatus(v user.KybVerificationStatus) *UserUpsertBulk
- func (u *UserUpsertBulk) SetLastName(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) SetPassword(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) SetScope(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) SetUpdatedAt(v time.Time) *UserUpsertBulk
- func (u *UserUpsertBulk) Update(set func(*UserUpsert)) *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateEmail() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateFirstName() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateHasEarlyAccess() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateIsEmailVerified() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateKybVerificationStatus() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateLastName() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateNewValues() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdatePassword() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateScope() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateUpdatedAt() *UserUpsertBulk
- type UserUpsertOne
- func (u *UserUpsertOne) DoNothing() *UserUpsertOne
- func (u *UserUpsertOne) Exec(ctx context.Context) error
- func (u *UserUpsertOne) ExecX(ctx context.Context)
- func (u *UserUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *UserUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *UserUpsertOne) Ignore() *UserUpsertOne
- func (u *UserUpsertOne) SetEmail(v string) *UserUpsertOne
- func (u *UserUpsertOne) SetFirstName(v string) *UserUpsertOne
- func (u *UserUpsertOne) SetHasEarlyAccess(v bool) *UserUpsertOne
- func (u *UserUpsertOne) SetIsEmailVerified(v bool) *UserUpsertOne
- func (u *UserUpsertOne) SetKybVerificationStatus(v user.KybVerificationStatus) *UserUpsertOne
- func (u *UserUpsertOne) SetLastName(v string) *UserUpsertOne
- func (u *UserUpsertOne) SetPassword(v string) *UserUpsertOne
- func (u *UserUpsertOne) SetScope(v string) *UserUpsertOne
- func (u *UserUpsertOne) SetUpdatedAt(v time.Time) *UserUpsertOne
- func (u *UserUpsertOne) Update(set func(*UserUpsert)) *UserUpsertOne
- func (u *UserUpsertOne) UpdateEmail() *UserUpsertOne
- func (u *UserUpsertOne) UpdateFirstName() *UserUpsertOne
- func (u *UserUpsertOne) UpdateHasEarlyAccess() *UserUpsertOne
- func (u *UserUpsertOne) UpdateIsEmailVerified() *UserUpsertOne
- func (u *UserUpsertOne) UpdateKybVerificationStatus() *UserUpsertOne
- func (u *UserUpsertOne) UpdateLastName() *UserUpsertOne
- func (u *UserUpsertOne) UpdateNewValues() *UserUpsertOne
- func (u *UserUpsertOne) UpdatePassword() *UserUpsertOne
- func (u *UserUpsertOne) UpdateScope() *UserUpsertOne
- func (u *UserUpsertOne) UpdateUpdatedAt() *UserUpsertOne
- type Users
- type ValidationError
- type Value
- type VerificationToken
- type VerificationTokenClient
- func (c *VerificationTokenClient) Create() *VerificationTokenCreate
- func (c *VerificationTokenClient) CreateBulk(builders ...*VerificationTokenCreate) *VerificationTokenCreateBulk
- func (c *VerificationTokenClient) Delete() *VerificationTokenDelete
- func (c *VerificationTokenClient) DeleteOne(vt *VerificationToken) *VerificationTokenDeleteOne
- func (c *VerificationTokenClient) DeleteOneID(id uuid.UUID) *VerificationTokenDeleteOne
- func (c *VerificationTokenClient) Get(ctx context.Context, id uuid.UUID) (*VerificationToken, error)
- func (c *VerificationTokenClient) GetX(ctx context.Context, id uuid.UUID) *VerificationToken
- func (c *VerificationTokenClient) Hooks() []Hook
- func (c *VerificationTokenClient) Intercept(interceptors ...Interceptor)
- func (c *VerificationTokenClient) Interceptors() []Interceptor
- func (c *VerificationTokenClient) MapCreateBulk(slice any, setFunc func(*VerificationTokenCreate, int)) *VerificationTokenCreateBulk
- func (c *VerificationTokenClient) Query() *VerificationTokenQuery
- func (c *VerificationTokenClient) QueryOwner(vt *VerificationToken) *UserQuery
- func (c *VerificationTokenClient) Update() *VerificationTokenUpdate
- func (c *VerificationTokenClient) UpdateOne(vt *VerificationToken) *VerificationTokenUpdateOne
- func (c *VerificationTokenClient) UpdateOneID(id uuid.UUID) *VerificationTokenUpdateOne
- func (c *VerificationTokenClient) Use(hooks ...Hook)
- type VerificationTokenCreate
- func (vtc *VerificationTokenCreate) Exec(ctx context.Context) error
- func (vtc *VerificationTokenCreate) ExecX(ctx context.Context)
- func (vtc *VerificationTokenCreate) Mutation() *VerificationTokenMutation
- func (vtc *VerificationTokenCreate) OnConflict(opts ...sql.ConflictOption) *VerificationTokenUpsertOne
- func (vtc *VerificationTokenCreate) OnConflictColumns(columns ...string) *VerificationTokenUpsertOne
- func (vtc *VerificationTokenCreate) Save(ctx context.Context) (*VerificationToken, error)
- func (vtc *VerificationTokenCreate) SaveX(ctx context.Context) *VerificationToken
- func (vtc *VerificationTokenCreate) SetCreatedAt(t time.Time) *VerificationTokenCreate
- func (vtc *VerificationTokenCreate) SetExpiryAt(t time.Time) *VerificationTokenCreate
- func (vtc *VerificationTokenCreate) SetID(u uuid.UUID) *VerificationTokenCreate
- func (vtc *VerificationTokenCreate) SetNillableCreatedAt(t *time.Time) *VerificationTokenCreate
- func (vtc *VerificationTokenCreate) SetNillableExpiryAt(t *time.Time) *VerificationTokenCreate
- func (vtc *VerificationTokenCreate) SetNillableID(u *uuid.UUID) *VerificationTokenCreate
- func (vtc *VerificationTokenCreate) SetNillableUpdatedAt(t *time.Time) *VerificationTokenCreate
- func (vtc *VerificationTokenCreate) SetOwner(u *User) *VerificationTokenCreate
- func (vtc *VerificationTokenCreate) SetOwnerID(id uuid.UUID) *VerificationTokenCreate
- func (vtc *VerificationTokenCreate) SetScope(v verificationtoken.Scope) *VerificationTokenCreate
- func (vtc *VerificationTokenCreate) SetToken(s string) *VerificationTokenCreate
- func (vtc *VerificationTokenCreate) SetUpdatedAt(t time.Time) *VerificationTokenCreate
- type VerificationTokenCreateBulk
- func (vtcb *VerificationTokenCreateBulk) Exec(ctx context.Context) error
- func (vtcb *VerificationTokenCreateBulk) ExecX(ctx context.Context)
- func (vtcb *VerificationTokenCreateBulk) OnConflict(opts ...sql.ConflictOption) *VerificationTokenUpsertBulk
- func (vtcb *VerificationTokenCreateBulk) OnConflictColumns(columns ...string) *VerificationTokenUpsertBulk
- func (vtcb *VerificationTokenCreateBulk) Save(ctx context.Context) ([]*VerificationToken, error)
- func (vtcb *VerificationTokenCreateBulk) SaveX(ctx context.Context) []*VerificationToken
- type VerificationTokenDelete
- type VerificationTokenDeleteOne
- type VerificationTokenEdges
- type VerificationTokenGroupBy
- func (vtgb *VerificationTokenGroupBy) Aggregate(fns ...AggregateFunc) *VerificationTokenGroupBy
- func (s *VerificationTokenGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *VerificationTokenGroupBy) BoolX(ctx context.Context) bool
- func (s *VerificationTokenGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *VerificationTokenGroupBy) BoolsX(ctx context.Context) []bool
- func (s *VerificationTokenGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *VerificationTokenGroupBy) Float64X(ctx context.Context) float64
- func (s *VerificationTokenGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *VerificationTokenGroupBy) Float64sX(ctx context.Context) []float64
- func (s *VerificationTokenGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *VerificationTokenGroupBy) IntX(ctx context.Context) int
- func (s *VerificationTokenGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *VerificationTokenGroupBy) IntsX(ctx context.Context) []int
- func (vtgb *VerificationTokenGroupBy) Scan(ctx context.Context, v any) error
- func (s *VerificationTokenGroupBy) ScanX(ctx context.Context, v any)
- func (s *VerificationTokenGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *VerificationTokenGroupBy) StringX(ctx context.Context) string
- func (s *VerificationTokenGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *VerificationTokenGroupBy) StringsX(ctx context.Context) []string
- type VerificationTokenMutation
- func (m *VerificationTokenMutation) AddField(name string, value ent.Value) error
- func (m *VerificationTokenMutation) AddedEdges() []string
- func (m *VerificationTokenMutation) AddedField(name string) (ent.Value, bool)
- func (m *VerificationTokenMutation) AddedFields() []string
- func (m *VerificationTokenMutation) AddedIDs(name string) []ent.Value
- func (m *VerificationTokenMutation) ClearEdge(name string) error
- func (m *VerificationTokenMutation) ClearField(name string) error
- func (m *VerificationTokenMutation) ClearOwner()
- func (m *VerificationTokenMutation) ClearedEdges() []string
- func (m *VerificationTokenMutation) ClearedFields() []string
- func (m VerificationTokenMutation) Client() *Client
- func (m *VerificationTokenMutation) CreatedAt() (r time.Time, exists bool)
- func (m *VerificationTokenMutation) EdgeCleared(name string) bool
- func (m *VerificationTokenMutation) ExpiryAt() (r time.Time, exists bool)
- func (m *VerificationTokenMutation) Field(name string) (ent.Value, bool)
- func (m *VerificationTokenMutation) FieldCleared(name string) bool
- func (m *VerificationTokenMutation) Fields() []string
- func (m *VerificationTokenMutation) ID() (id uuid.UUID, exists bool)
- func (m *VerificationTokenMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *VerificationTokenMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *VerificationTokenMutation) OldExpiryAt(ctx context.Context) (v time.Time, err error)
- func (m *VerificationTokenMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *VerificationTokenMutation) OldScope(ctx context.Context) (v verificationtoken.Scope, err error)
- func (m *VerificationTokenMutation) OldToken(ctx context.Context) (v string, err error)
- func (m *VerificationTokenMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *VerificationTokenMutation) Op() Op
- func (m *VerificationTokenMutation) OwnerCleared() bool
- func (m *VerificationTokenMutation) OwnerID() (id uuid.UUID, exists bool)
- func (m *VerificationTokenMutation) OwnerIDs() (ids []uuid.UUID)
- func (m *VerificationTokenMutation) RemovedEdges() []string
- func (m *VerificationTokenMutation) RemovedIDs(name string) []ent.Value
- func (m *VerificationTokenMutation) ResetCreatedAt()
- func (m *VerificationTokenMutation) ResetEdge(name string) error
- func (m *VerificationTokenMutation) ResetExpiryAt()
- func (m *VerificationTokenMutation) ResetField(name string) error
- func (m *VerificationTokenMutation) ResetOwner()
- func (m *VerificationTokenMutation) ResetScope()
- func (m *VerificationTokenMutation) ResetToken()
- func (m *VerificationTokenMutation) ResetUpdatedAt()
- func (m *VerificationTokenMutation) Scope() (r verificationtoken.Scope, exists bool)
- func (m *VerificationTokenMutation) SetCreatedAt(t time.Time)
- func (m *VerificationTokenMutation) SetExpiryAt(t time.Time)
- func (m *VerificationTokenMutation) SetField(name string, value ent.Value) error
- func (m *VerificationTokenMutation) SetID(id uuid.UUID)
- func (m *VerificationTokenMutation) SetOp(op Op)
- func (m *VerificationTokenMutation) SetOwnerID(id uuid.UUID)
- func (m *VerificationTokenMutation) SetScope(v verificationtoken.Scope)
- func (m *VerificationTokenMutation) SetToken(s string)
- func (m *VerificationTokenMutation) SetUpdatedAt(t time.Time)
- func (m *VerificationTokenMutation) Token() (r string, exists bool)
- func (m VerificationTokenMutation) Tx() (*Tx, error)
- func (m *VerificationTokenMutation) Type() string
- func (m *VerificationTokenMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *VerificationTokenMutation) Where(ps ...predicate.VerificationToken)
- func (m *VerificationTokenMutation) WhereP(ps ...func(*sql.Selector))
- type VerificationTokenQuery
- func (vtq *VerificationTokenQuery) Aggregate(fns ...AggregateFunc) *VerificationTokenSelect
- func (vtq *VerificationTokenQuery) All(ctx context.Context) ([]*VerificationToken, error)
- func (vtq *VerificationTokenQuery) AllX(ctx context.Context) []*VerificationToken
- func (vtq *VerificationTokenQuery) Clone() *VerificationTokenQuery
- func (vtq *VerificationTokenQuery) Count(ctx context.Context) (int, error)
- func (vtq *VerificationTokenQuery) CountX(ctx context.Context) int
- func (vtq *VerificationTokenQuery) Exist(ctx context.Context) (bool, error)
- func (vtq *VerificationTokenQuery) ExistX(ctx context.Context) bool
- func (vtq *VerificationTokenQuery) First(ctx context.Context) (*VerificationToken, error)
- func (vtq *VerificationTokenQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (vtq *VerificationTokenQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (vtq *VerificationTokenQuery) FirstX(ctx context.Context) *VerificationToken
- func (vtq *VerificationTokenQuery) GroupBy(field string, fields ...string) *VerificationTokenGroupBy
- func (vtq *VerificationTokenQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (vtq *VerificationTokenQuery) IDsX(ctx context.Context) []uuid.UUID
- func (vtq *VerificationTokenQuery) Limit(limit int) *VerificationTokenQuery
- func (vtq *VerificationTokenQuery) Offset(offset int) *VerificationTokenQuery
- func (vtq *VerificationTokenQuery) Only(ctx context.Context) (*VerificationToken, error)
- func (vtq *VerificationTokenQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (vtq *VerificationTokenQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (vtq *VerificationTokenQuery) OnlyX(ctx context.Context) *VerificationToken
- func (vtq *VerificationTokenQuery) Order(o ...verificationtoken.OrderOption) *VerificationTokenQuery
- func (vtq *VerificationTokenQuery) QueryOwner() *UserQuery
- func (vtq *VerificationTokenQuery) Select(fields ...string) *VerificationTokenSelect
- func (vtq *VerificationTokenQuery) Unique(unique bool) *VerificationTokenQuery
- func (vtq *VerificationTokenQuery) Where(ps ...predicate.VerificationToken) *VerificationTokenQuery
- func (vtq *VerificationTokenQuery) WithOwner(opts ...func(*UserQuery)) *VerificationTokenQuery
- type VerificationTokenSelect
- func (vts *VerificationTokenSelect) Aggregate(fns ...AggregateFunc) *VerificationTokenSelect
- func (s *VerificationTokenSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *VerificationTokenSelect) BoolX(ctx context.Context) bool
- func (s *VerificationTokenSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *VerificationTokenSelect) BoolsX(ctx context.Context) []bool
- func (s *VerificationTokenSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *VerificationTokenSelect) Float64X(ctx context.Context) float64
- func (s *VerificationTokenSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *VerificationTokenSelect) Float64sX(ctx context.Context) []float64
- func (s *VerificationTokenSelect) Int(ctx context.Context) (_ int, err error)
- func (s *VerificationTokenSelect) IntX(ctx context.Context) int
- func (s *VerificationTokenSelect) Ints(ctx context.Context) ([]int, error)
- func (s *VerificationTokenSelect) IntsX(ctx context.Context) []int
- func (vts *VerificationTokenSelect) Scan(ctx context.Context, v any) error
- func (s *VerificationTokenSelect) ScanX(ctx context.Context, v any)
- func (s *VerificationTokenSelect) String(ctx context.Context) (_ string, err error)
- func (s *VerificationTokenSelect) StringX(ctx context.Context) string
- func (s *VerificationTokenSelect) Strings(ctx context.Context) ([]string, error)
- func (s *VerificationTokenSelect) StringsX(ctx context.Context) []string
- type VerificationTokenUpdate
- func (vtu *VerificationTokenUpdate) Exec(ctx context.Context) error
- func (vtu *VerificationTokenUpdate) ExecX(ctx context.Context)
- func (vtu *VerificationTokenUpdate) Mutation() *VerificationTokenMutation
- func (vtu *VerificationTokenUpdate) Save(ctx context.Context) (int, error)
- func (vtu *VerificationTokenUpdate) SaveX(ctx context.Context) int
- func (vtu *VerificationTokenUpdate) SetNillableScope(v *verificationtoken.Scope) *VerificationTokenUpdate
- func (vtu *VerificationTokenUpdate) SetScope(v verificationtoken.Scope) *VerificationTokenUpdate
- func (vtu *VerificationTokenUpdate) SetUpdatedAt(t time.Time) *VerificationTokenUpdate
- func (vtu *VerificationTokenUpdate) Where(ps ...predicate.VerificationToken) *VerificationTokenUpdate
- type VerificationTokenUpdateOne
- func (vtuo *VerificationTokenUpdateOne) Exec(ctx context.Context) error
- func (vtuo *VerificationTokenUpdateOne) ExecX(ctx context.Context)
- func (vtuo *VerificationTokenUpdateOne) Mutation() *VerificationTokenMutation
- func (vtuo *VerificationTokenUpdateOne) Save(ctx context.Context) (*VerificationToken, error)
- func (vtuo *VerificationTokenUpdateOne) SaveX(ctx context.Context) *VerificationToken
- func (vtuo *VerificationTokenUpdateOne) Select(field string, fields ...string) *VerificationTokenUpdateOne
- func (vtuo *VerificationTokenUpdateOne) SetNillableScope(v *verificationtoken.Scope) *VerificationTokenUpdateOne
- func (vtuo *VerificationTokenUpdateOne) SetScope(v verificationtoken.Scope) *VerificationTokenUpdateOne
- func (vtuo *VerificationTokenUpdateOne) SetUpdatedAt(t time.Time) *VerificationTokenUpdateOne
- func (vtuo *VerificationTokenUpdateOne) Where(ps ...predicate.VerificationToken) *VerificationTokenUpdateOne
- type VerificationTokenUpsert
- func (u *VerificationTokenUpsert) SetScope(v verificationtoken.Scope) *VerificationTokenUpsert
- func (u *VerificationTokenUpsert) SetUpdatedAt(v time.Time) *VerificationTokenUpsert
- func (u *VerificationTokenUpsert) UpdateScope() *VerificationTokenUpsert
- func (u *VerificationTokenUpsert) UpdateUpdatedAt() *VerificationTokenUpsert
- type VerificationTokenUpsertBulk
- func (u *VerificationTokenUpsertBulk) DoNothing() *VerificationTokenUpsertBulk
- func (u *VerificationTokenUpsertBulk) Exec(ctx context.Context) error
- func (u *VerificationTokenUpsertBulk) ExecX(ctx context.Context)
- func (u *VerificationTokenUpsertBulk) Ignore() *VerificationTokenUpsertBulk
- func (u *VerificationTokenUpsertBulk) SetScope(v verificationtoken.Scope) *VerificationTokenUpsertBulk
- func (u *VerificationTokenUpsertBulk) SetUpdatedAt(v time.Time) *VerificationTokenUpsertBulk
- func (u *VerificationTokenUpsertBulk) Update(set func(*VerificationTokenUpsert)) *VerificationTokenUpsertBulk
- func (u *VerificationTokenUpsertBulk) UpdateNewValues() *VerificationTokenUpsertBulk
- func (u *VerificationTokenUpsertBulk) UpdateScope() *VerificationTokenUpsertBulk
- func (u *VerificationTokenUpsertBulk) UpdateUpdatedAt() *VerificationTokenUpsertBulk
- type VerificationTokenUpsertOne
- func (u *VerificationTokenUpsertOne) DoNothing() *VerificationTokenUpsertOne
- func (u *VerificationTokenUpsertOne) Exec(ctx context.Context) error
- func (u *VerificationTokenUpsertOne) ExecX(ctx context.Context)
- func (u *VerificationTokenUpsertOne) ID(ctx context.Context) (id uuid.UUID, err error)
- func (u *VerificationTokenUpsertOne) IDX(ctx context.Context) uuid.UUID
- func (u *VerificationTokenUpsertOne) Ignore() *VerificationTokenUpsertOne
- func (u *VerificationTokenUpsertOne) SetScope(v verificationtoken.Scope) *VerificationTokenUpsertOne
- func (u *VerificationTokenUpsertOne) SetUpdatedAt(v time.Time) *VerificationTokenUpsertOne
- func (u *VerificationTokenUpsertOne) Update(set func(*VerificationTokenUpsert)) *VerificationTokenUpsertOne
- func (u *VerificationTokenUpsertOne) UpdateNewValues() *VerificationTokenUpsertOne
- func (u *VerificationTokenUpsertOne) UpdateScope() *VerificationTokenUpsertOne
- func (u *VerificationTokenUpsertOne) UpdateUpdatedAt() *VerificationTokenUpsertOne
- type VerificationTokens
- type WebhookRetryAttempt
- type WebhookRetryAttemptClient
- func (c *WebhookRetryAttemptClient) Create() *WebhookRetryAttemptCreate
- func (c *WebhookRetryAttemptClient) CreateBulk(builders ...*WebhookRetryAttemptCreate) *WebhookRetryAttemptCreateBulk
- func (c *WebhookRetryAttemptClient) Delete() *WebhookRetryAttemptDelete
- func (c *WebhookRetryAttemptClient) DeleteOne(wra *WebhookRetryAttempt) *WebhookRetryAttemptDeleteOne
- func (c *WebhookRetryAttemptClient) DeleteOneID(id int) *WebhookRetryAttemptDeleteOne
- func (c *WebhookRetryAttemptClient) Get(ctx context.Context, id int) (*WebhookRetryAttempt, error)
- func (c *WebhookRetryAttemptClient) GetX(ctx context.Context, id int) *WebhookRetryAttempt
- func (c *WebhookRetryAttemptClient) Hooks() []Hook
- func (c *WebhookRetryAttemptClient) Intercept(interceptors ...Interceptor)
- func (c *WebhookRetryAttemptClient) Interceptors() []Interceptor
- func (c *WebhookRetryAttemptClient) MapCreateBulk(slice any, setFunc func(*WebhookRetryAttemptCreate, int)) *WebhookRetryAttemptCreateBulk
- func (c *WebhookRetryAttemptClient) Query() *WebhookRetryAttemptQuery
- func (c *WebhookRetryAttemptClient) Update() *WebhookRetryAttemptUpdate
- func (c *WebhookRetryAttemptClient) UpdateOne(wra *WebhookRetryAttempt) *WebhookRetryAttemptUpdateOne
- func (c *WebhookRetryAttemptClient) UpdateOneID(id int) *WebhookRetryAttemptUpdateOne
- func (c *WebhookRetryAttemptClient) Use(hooks ...Hook)
- type WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) Exec(ctx context.Context) error
- func (wrac *WebhookRetryAttemptCreate) ExecX(ctx context.Context)
- func (wrac *WebhookRetryAttemptCreate) Mutation() *WebhookRetryAttemptMutation
- func (wrac *WebhookRetryAttemptCreate) OnConflict(opts ...sql.ConflictOption) *WebhookRetryAttemptUpsertOne
- func (wrac *WebhookRetryAttemptCreate) OnConflictColumns(columns ...string) *WebhookRetryAttemptUpsertOne
- func (wrac *WebhookRetryAttemptCreate) Save(ctx context.Context) (*WebhookRetryAttempt, error)
- func (wrac *WebhookRetryAttemptCreate) SaveX(ctx context.Context) *WebhookRetryAttempt
- func (wrac *WebhookRetryAttemptCreate) SetAttemptNumber(i int) *WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) SetCreatedAt(t time.Time) *WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) SetNextRetryTime(t time.Time) *WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) SetNillableCreatedAt(t *time.Time) *WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) SetNillableNextRetryTime(t *time.Time) *WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) SetNillableSignature(s *string) *WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) SetNillableStatus(w *webhookretryattempt.Status) *WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) SetNillableUpdatedAt(t *time.Time) *WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) SetPayload(m map[string]interface{}) *WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) SetSignature(s string) *WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) SetStatus(w webhookretryattempt.Status) *WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) SetUpdatedAt(t time.Time) *WebhookRetryAttemptCreate
- func (wrac *WebhookRetryAttemptCreate) SetWebhookURL(s string) *WebhookRetryAttemptCreate
- type WebhookRetryAttemptCreateBulk
- func (wracb *WebhookRetryAttemptCreateBulk) Exec(ctx context.Context) error
- func (wracb *WebhookRetryAttemptCreateBulk) ExecX(ctx context.Context)
- func (wracb *WebhookRetryAttemptCreateBulk) OnConflict(opts ...sql.ConflictOption) *WebhookRetryAttemptUpsertBulk
- func (wracb *WebhookRetryAttemptCreateBulk) OnConflictColumns(columns ...string) *WebhookRetryAttemptUpsertBulk
- func (wracb *WebhookRetryAttemptCreateBulk) Save(ctx context.Context) ([]*WebhookRetryAttempt, error)
- func (wracb *WebhookRetryAttemptCreateBulk) SaveX(ctx context.Context) []*WebhookRetryAttempt
- type WebhookRetryAttemptDelete
- type WebhookRetryAttemptDeleteOne
- type WebhookRetryAttemptGroupBy
- func (wragb *WebhookRetryAttemptGroupBy) Aggregate(fns ...AggregateFunc) *WebhookRetryAttemptGroupBy
- func (s *WebhookRetryAttemptGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *WebhookRetryAttemptGroupBy) BoolX(ctx context.Context) bool
- func (s *WebhookRetryAttemptGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *WebhookRetryAttemptGroupBy) BoolsX(ctx context.Context) []bool
- func (s *WebhookRetryAttemptGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *WebhookRetryAttemptGroupBy) Float64X(ctx context.Context) float64
- func (s *WebhookRetryAttemptGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *WebhookRetryAttemptGroupBy) Float64sX(ctx context.Context) []float64
- func (s *WebhookRetryAttemptGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *WebhookRetryAttemptGroupBy) IntX(ctx context.Context) int
- func (s *WebhookRetryAttemptGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *WebhookRetryAttemptGroupBy) IntsX(ctx context.Context) []int
- func (wragb *WebhookRetryAttemptGroupBy) Scan(ctx context.Context, v any) error
- func (s *WebhookRetryAttemptGroupBy) ScanX(ctx context.Context, v any)
- func (s *WebhookRetryAttemptGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *WebhookRetryAttemptGroupBy) StringX(ctx context.Context) string
- func (s *WebhookRetryAttemptGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *WebhookRetryAttemptGroupBy) StringsX(ctx context.Context) []string
- type WebhookRetryAttemptMutation
- func (m *WebhookRetryAttemptMutation) AddAttemptNumber(i int)
- func (m *WebhookRetryAttemptMutation) AddField(name string, value ent.Value) error
- func (m *WebhookRetryAttemptMutation) AddedAttemptNumber() (r int, exists bool)
- func (m *WebhookRetryAttemptMutation) AddedEdges() []string
- func (m *WebhookRetryAttemptMutation) AddedField(name string) (ent.Value, bool)
- func (m *WebhookRetryAttemptMutation) AddedFields() []string
- func (m *WebhookRetryAttemptMutation) AddedIDs(name string) []ent.Value
- func (m *WebhookRetryAttemptMutation) AttemptNumber() (r int, exists bool)
- func (m *WebhookRetryAttemptMutation) ClearEdge(name string) error
- func (m *WebhookRetryAttemptMutation) ClearField(name string) error
- func (m *WebhookRetryAttemptMutation) ClearSignature()
- func (m *WebhookRetryAttemptMutation) ClearedEdges() []string
- func (m *WebhookRetryAttemptMutation) ClearedFields() []string
- func (m WebhookRetryAttemptMutation) Client() *Client
- func (m *WebhookRetryAttemptMutation) CreatedAt() (r time.Time, exists bool)
- func (m *WebhookRetryAttemptMutation) EdgeCleared(name string) bool
- func (m *WebhookRetryAttemptMutation) Field(name string) (ent.Value, bool)
- func (m *WebhookRetryAttemptMutation) FieldCleared(name string) bool
- func (m *WebhookRetryAttemptMutation) Fields() []string
- func (m *WebhookRetryAttemptMutation) ID() (id int, exists bool)
- func (m *WebhookRetryAttemptMutation) IDs(ctx context.Context) ([]int, error)
- func (m *WebhookRetryAttemptMutation) NextRetryTime() (r time.Time, exists bool)
- func (m *WebhookRetryAttemptMutation) OldAttemptNumber(ctx context.Context) (v int, err error)
- func (m *WebhookRetryAttemptMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *WebhookRetryAttemptMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WebhookRetryAttemptMutation) OldNextRetryTime(ctx context.Context) (v time.Time, err error)
- func (m *WebhookRetryAttemptMutation) OldPayload(ctx context.Context) (v map[string]interface{}, err error)
- func (m *WebhookRetryAttemptMutation) OldSignature(ctx context.Context) (v string, err error)
- func (m *WebhookRetryAttemptMutation) OldStatus(ctx context.Context) (v webhookretryattempt.Status, err error)
- func (m *WebhookRetryAttemptMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *WebhookRetryAttemptMutation) OldWebhookURL(ctx context.Context) (v string, err error)
- func (m *WebhookRetryAttemptMutation) Op() Op
- func (m *WebhookRetryAttemptMutation) Payload() (r map[string]interface{}, exists bool)
- func (m *WebhookRetryAttemptMutation) RemovedEdges() []string
- func (m *WebhookRetryAttemptMutation) RemovedIDs(name string) []ent.Value
- func (m *WebhookRetryAttemptMutation) ResetAttemptNumber()
- func (m *WebhookRetryAttemptMutation) ResetCreatedAt()
- func (m *WebhookRetryAttemptMutation) ResetEdge(name string) error
- func (m *WebhookRetryAttemptMutation) ResetField(name string) error
- func (m *WebhookRetryAttemptMutation) ResetNextRetryTime()
- func (m *WebhookRetryAttemptMutation) ResetPayload()
- func (m *WebhookRetryAttemptMutation) ResetSignature()
- func (m *WebhookRetryAttemptMutation) ResetStatus()
- func (m *WebhookRetryAttemptMutation) ResetUpdatedAt()
- func (m *WebhookRetryAttemptMutation) ResetWebhookURL()
- func (m *WebhookRetryAttemptMutation) SetAttemptNumber(i int)
- func (m *WebhookRetryAttemptMutation) SetCreatedAt(t time.Time)
- func (m *WebhookRetryAttemptMutation) SetField(name string, value ent.Value) error
- func (m *WebhookRetryAttemptMutation) SetNextRetryTime(t time.Time)
- func (m *WebhookRetryAttemptMutation) SetOp(op Op)
- func (m *WebhookRetryAttemptMutation) SetPayload(value map[string]interface{})
- func (m *WebhookRetryAttemptMutation) SetSignature(s string)
- func (m *WebhookRetryAttemptMutation) SetStatus(w webhookretryattempt.Status)
- func (m *WebhookRetryAttemptMutation) SetUpdatedAt(t time.Time)
- func (m *WebhookRetryAttemptMutation) SetWebhookURL(s string)
- func (m *WebhookRetryAttemptMutation) Signature() (r string, exists bool)
- func (m *WebhookRetryAttemptMutation) SignatureCleared() bool
- func (m *WebhookRetryAttemptMutation) Status() (r webhookretryattempt.Status, exists bool)
- func (m WebhookRetryAttemptMutation) Tx() (*Tx, error)
- func (m *WebhookRetryAttemptMutation) Type() string
- func (m *WebhookRetryAttemptMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *WebhookRetryAttemptMutation) WebhookURL() (r string, exists bool)
- func (m *WebhookRetryAttemptMutation) Where(ps ...predicate.WebhookRetryAttempt)
- func (m *WebhookRetryAttemptMutation) WhereP(ps ...func(*sql.Selector))
- type WebhookRetryAttemptQuery
- func (wraq *WebhookRetryAttemptQuery) Aggregate(fns ...AggregateFunc) *WebhookRetryAttemptSelect
- func (wraq *WebhookRetryAttemptQuery) All(ctx context.Context) ([]*WebhookRetryAttempt, error)
- func (wraq *WebhookRetryAttemptQuery) AllX(ctx context.Context) []*WebhookRetryAttempt
- func (wraq *WebhookRetryAttemptQuery) Clone() *WebhookRetryAttemptQuery
- func (wraq *WebhookRetryAttemptQuery) Count(ctx context.Context) (int, error)
- func (wraq *WebhookRetryAttemptQuery) CountX(ctx context.Context) int
- func (wraq *WebhookRetryAttemptQuery) Exist(ctx context.Context) (bool, error)
- func (wraq *WebhookRetryAttemptQuery) ExistX(ctx context.Context) bool
- func (wraq *WebhookRetryAttemptQuery) First(ctx context.Context) (*WebhookRetryAttempt, error)
- func (wraq *WebhookRetryAttemptQuery) FirstID(ctx context.Context) (id int, err error)
- func (wraq *WebhookRetryAttemptQuery) FirstIDX(ctx context.Context) int
- func (wraq *WebhookRetryAttemptQuery) FirstX(ctx context.Context) *WebhookRetryAttempt
- func (wraq *WebhookRetryAttemptQuery) GroupBy(field string, fields ...string) *WebhookRetryAttemptGroupBy
- func (wraq *WebhookRetryAttemptQuery) IDs(ctx context.Context) (ids []int, err error)
- func (wraq *WebhookRetryAttemptQuery) IDsX(ctx context.Context) []int
- func (wraq *WebhookRetryAttemptQuery) Limit(limit int) *WebhookRetryAttemptQuery
- func (wraq *WebhookRetryAttemptQuery) Offset(offset int) *WebhookRetryAttemptQuery
- func (wraq *WebhookRetryAttemptQuery) Only(ctx context.Context) (*WebhookRetryAttempt, error)
- func (wraq *WebhookRetryAttemptQuery) OnlyID(ctx context.Context) (id int, err error)
- func (wraq *WebhookRetryAttemptQuery) OnlyIDX(ctx context.Context) int
- func (wraq *WebhookRetryAttemptQuery) OnlyX(ctx context.Context) *WebhookRetryAttempt
- func (wraq *WebhookRetryAttemptQuery) Order(o ...webhookretryattempt.OrderOption) *WebhookRetryAttemptQuery
- func (wraq *WebhookRetryAttemptQuery) Select(fields ...string) *WebhookRetryAttemptSelect
- func (wraq *WebhookRetryAttemptQuery) Unique(unique bool) *WebhookRetryAttemptQuery
- func (wraq *WebhookRetryAttemptQuery) Where(ps ...predicate.WebhookRetryAttempt) *WebhookRetryAttemptQuery
- type WebhookRetryAttemptSelect
- func (wras *WebhookRetryAttemptSelect) Aggregate(fns ...AggregateFunc) *WebhookRetryAttemptSelect
- func (s *WebhookRetryAttemptSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *WebhookRetryAttemptSelect) BoolX(ctx context.Context) bool
- func (s *WebhookRetryAttemptSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *WebhookRetryAttemptSelect) BoolsX(ctx context.Context) []bool
- func (s *WebhookRetryAttemptSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *WebhookRetryAttemptSelect) Float64X(ctx context.Context) float64
- func (s *WebhookRetryAttemptSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *WebhookRetryAttemptSelect) Float64sX(ctx context.Context) []float64
- func (s *WebhookRetryAttemptSelect) Int(ctx context.Context) (_ int, err error)
- func (s *WebhookRetryAttemptSelect) IntX(ctx context.Context) int
- func (s *WebhookRetryAttemptSelect) Ints(ctx context.Context) ([]int, error)
- func (s *WebhookRetryAttemptSelect) IntsX(ctx context.Context) []int
- func (wras *WebhookRetryAttemptSelect) Scan(ctx context.Context, v any) error
- func (s *WebhookRetryAttemptSelect) ScanX(ctx context.Context, v any)
- func (s *WebhookRetryAttemptSelect) String(ctx context.Context) (_ string, err error)
- func (s *WebhookRetryAttemptSelect) StringX(ctx context.Context) string
- func (s *WebhookRetryAttemptSelect) Strings(ctx context.Context) ([]string, error)
- func (s *WebhookRetryAttemptSelect) StringsX(ctx context.Context) []string
- type WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) AddAttemptNumber(i int) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) ClearSignature() *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) Exec(ctx context.Context) error
- func (wrau *WebhookRetryAttemptUpdate) ExecX(ctx context.Context)
- func (wrau *WebhookRetryAttemptUpdate) Mutation() *WebhookRetryAttemptMutation
- func (wrau *WebhookRetryAttemptUpdate) Save(ctx context.Context) (int, error)
- func (wrau *WebhookRetryAttemptUpdate) SaveX(ctx context.Context) int
- func (wrau *WebhookRetryAttemptUpdate) SetAttemptNumber(i int) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) SetNextRetryTime(t time.Time) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) SetNillableAttemptNumber(i *int) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) SetNillableNextRetryTime(t *time.Time) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) SetNillableSignature(s *string) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) SetNillableStatus(w *webhookretryattempt.Status) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) SetNillableWebhookURL(s *string) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) SetPayload(m map[string]interface{}) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) SetSignature(s string) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) SetStatus(w webhookretryattempt.Status) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) SetUpdatedAt(t time.Time) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) SetWebhookURL(s string) *WebhookRetryAttemptUpdate
- func (wrau *WebhookRetryAttemptUpdate) Where(ps ...predicate.WebhookRetryAttempt) *WebhookRetryAttemptUpdate
- type WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) AddAttemptNumber(i int) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) ClearSignature() *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) Exec(ctx context.Context) error
- func (wrauo *WebhookRetryAttemptUpdateOne) ExecX(ctx context.Context)
- func (wrauo *WebhookRetryAttemptUpdateOne) Mutation() *WebhookRetryAttemptMutation
- func (wrauo *WebhookRetryAttemptUpdateOne) Save(ctx context.Context) (*WebhookRetryAttempt, error)
- func (wrauo *WebhookRetryAttemptUpdateOne) SaveX(ctx context.Context) *WebhookRetryAttempt
- func (wrauo *WebhookRetryAttemptUpdateOne) Select(field string, fields ...string) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) SetAttemptNumber(i int) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) SetNextRetryTime(t time.Time) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) SetNillableAttemptNumber(i *int) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) SetNillableNextRetryTime(t *time.Time) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) SetNillableSignature(s *string) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) SetNillableStatus(w *webhookretryattempt.Status) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) SetNillableWebhookURL(s *string) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) SetPayload(m map[string]interface{}) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) SetSignature(s string) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) SetStatus(w webhookretryattempt.Status) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) SetUpdatedAt(t time.Time) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) SetWebhookURL(s string) *WebhookRetryAttemptUpdateOne
- func (wrauo *WebhookRetryAttemptUpdateOne) Where(ps ...predicate.WebhookRetryAttempt) *WebhookRetryAttemptUpdateOne
- type WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) AddAttemptNumber(v int) *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) ClearSignature() *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) SetAttemptNumber(v int) *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) SetNextRetryTime(v time.Time) *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) SetPayload(v map[string]interface{}) *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) SetSignature(v string) *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) SetStatus(v webhookretryattempt.Status) *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) SetUpdatedAt(v time.Time) *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) SetWebhookURL(v string) *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) UpdateAttemptNumber() *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) UpdateNextRetryTime() *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) UpdatePayload() *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) UpdateSignature() *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) UpdateStatus() *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) UpdateUpdatedAt() *WebhookRetryAttemptUpsert
- func (u *WebhookRetryAttemptUpsert) UpdateWebhookURL() *WebhookRetryAttemptUpsert
- type WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) AddAttemptNumber(v int) *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) ClearSignature() *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) DoNothing() *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) Exec(ctx context.Context) error
- func (u *WebhookRetryAttemptUpsertBulk) ExecX(ctx context.Context)
- func (u *WebhookRetryAttemptUpsertBulk) Ignore() *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) SetAttemptNumber(v int) *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) SetNextRetryTime(v time.Time) *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) SetPayload(v map[string]interface{}) *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) SetSignature(v string) *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) SetStatus(v webhookretryattempt.Status) *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) SetUpdatedAt(v time.Time) *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) SetWebhookURL(v string) *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) Update(set func(*WebhookRetryAttemptUpsert)) *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) UpdateAttemptNumber() *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) UpdateNewValues() *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) UpdateNextRetryTime() *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) UpdatePayload() *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) UpdateSignature() *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) UpdateStatus() *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) UpdateUpdatedAt() *WebhookRetryAttemptUpsertBulk
- func (u *WebhookRetryAttemptUpsertBulk) UpdateWebhookURL() *WebhookRetryAttemptUpsertBulk
- type WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) AddAttemptNumber(v int) *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) ClearSignature() *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) DoNothing() *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) Exec(ctx context.Context) error
- func (u *WebhookRetryAttemptUpsertOne) ExecX(ctx context.Context)
- func (u *WebhookRetryAttemptUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *WebhookRetryAttemptUpsertOne) IDX(ctx context.Context) int
- func (u *WebhookRetryAttemptUpsertOne) Ignore() *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) SetAttemptNumber(v int) *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) SetNextRetryTime(v time.Time) *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) SetPayload(v map[string]interface{}) *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) SetSignature(v string) *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) SetStatus(v webhookretryattempt.Status) *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) SetUpdatedAt(v time.Time) *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) SetWebhookURL(v string) *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) Update(set func(*WebhookRetryAttemptUpsert)) *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) UpdateAttemptNumber() *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) UpdateNewValues() *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) UpdateNextRetryTime() *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) UpdatePayload() *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) UpdateSignature() *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) UpdateStatus() *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) UpdateUpdatedAt() *WebhookRetryAttemptUpsertOne
- func (u *WebhookRetryAttemptUpsertOne) UpdateWebhookURL() *WebhookRetryAttemptUpsertOne
- type WebhookRetryAttempts
Constants ¶
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 ¶
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 IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client 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) Unwrap ¶
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.
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) 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)
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*APIKeyGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*APIKeyGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*APIKeyGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*APIKeyGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*APIKeyGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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) 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 ¶
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) 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 ¶
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*APIKeySelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*APIKeySelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*APIKeySelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*APIKeySelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*APIKeySelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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) 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 AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
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 ¶
func (bo *BeneficialOwner) Update() *BeneficialOwnerUpdateOne
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.
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 ¶
func (c *BeneficialOwnerClient) Create() *BeneficialOwnerCreate
Create returns a builder for creating a BeneficialOwner entity.
func (*BeneficialOwnerClient) CreateBulk ¶
func (c *BeneficialOwnerClient) CreateBulk(builders ...*BeneficialOwnerCreate) *BeneficialOwnerCreateBulk
CreateBulk returns a builder for creating a bulk of BeneficialOwner entities.
func (*BeneficialOwnerClient) Delete ¶
func (c *BeneficialOwnerClient) Delete() *BeneficialOwnerDelete
Delete returns a delete builder for BeneficialOwner.
func (*BeneficialOwnerClient) DeleteOne ¶
func (c *BeneficialOwnerClient) DeleteOne(bo *BeneficialOwner) *BeneficialOwnerDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*BeneficialOwnerClient) DeleteOneID ¶
func (c *BeneficialOwnerClient) DeleteOneID(id uuid.UUID) *BeneficialOwnerDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*BeneficialOwnerClient) Get ¶
func (c *BeneficialOwnerClient) Get(ctx context.Context, id uuid.UUID) (*BeneficialOwner, error)
Get returns a BeneficialOwner entity by its id.
func (*BeneficialOwnerClient) GetX ¶
func (c *BeneficialOwnerClient) GetX(ctx context.Context, id uuid.UUID) *BeneficialOwner
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 ¶
func (c *BeneficialOwnerClient) Query() *BeneficialOwnerQuery
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 ¶
func (c *BeneficialOwnerClient) Update() *BeneficialOwnerUpdate
Update returns an update builder for BeneficialOwner.
func (*BeneficialOwnerClient) UpdateOne ¶
func (c *BeneficialOwnerClient) UpdateOne(bo *BeneficialOwner) *BeneficialOwnerUpdateOne
UpdateOne returns an update builder for the given entity.
func (*BeneficialOwnerClient) UpdateOneID ¶
func (c *BeneficialOwnerClient) UpdateOneID(id uuid.UUID) *BeneficialOwnerUpdateOne
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 ¶
func (boc *BeneficialOwnerCreate) Mutation() *BeneficialOwnerMutation
Mutation returns the BeneficialOwnerMutation object of the builder.
func (*BeneficialOwnerCreate) OnConflict ¶
func (boc *BeneficialOwnerCreate) OnConflict(opts ...sql.ConflictOption) *BeneficialOwnerUpsertOne
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 ¶
func (boc *BeneficialOwnerCreate) Save(ctx context.Context) (*BeneficialOwner, error)
Save creates the BeneficialOwner in the database.
func (*BeneficialOwnerCreate) SaveX ¶
func (boc *BeneficialOwnerCreate) SaveX(ctx context.Context) *BeneficialOwner
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 ¶
func (boc *BeneficialOwnerCreate) SetGovernmentIssuedIDType(biit beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerCreate
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 ¶
func (boc *BeneficialOwnerCreate) SetID(u uuid.UUID) *BeneficialOwnerCreate
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 ¶
func (bocb *BeneficialOwnerCreateBulk) Exec(ctx context.Context) error
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 ¶
func (bocb *BeneficialOwnerCreateBulk) OnConflict(opts ...sql.ConflictOption) *BeneficialOwnerUpsertBulk
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 ¶
func (bocb *BeneficialOwnerCreateBulk) Save(ctx context.Context) ([]*BeneficialOwner, error)
Save creates the BeneficialOwner entities in the database.
func (*BeneficialOwnerCreateBulk) SaveX ¶
func (bocb *BeneficialOwnerCreateBulk) SaveX(ctx context.Context) []*BeneficialOwner
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 ¶
func (bod *BeneficialOwnerDelete) Where(ps ...predicate.BeneficialOwner) *BeneficialOwnerDelete
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 ¶
func (bodo *BeneficialOwnerDeleteOne) Exec(ctx context.Context) error
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 ¶
func (bodo *BeneficialOwnerDeleteOne) Where(ps ...predicate.BeneficialOwner) *BeneficialOwnerDeleteOne
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 ¶
func (bogb *BeneficialOwnerGroupBy) Aggregate(fns ...AggregateFunc) *BeneficialOwnerGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*BeneficialOwnerGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BeneficialOwnerGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BeneficialOwnerGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BeneficialOwnerGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BeneficialOwnerGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*BeneficialOwnerGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BeneficialOwnerGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
func (m *BeneficialOwnerMutation) Where(ps ...predicate.BeneficialOwner)
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 ¶
func (boq *BeneficialOwnerQuery) Aggregate(fns ...AggregateFunc) *BeneficialOwnerSelect
Aggregate returns a BeneficialOwnerSelect configured with the given aggregations.
func (*BeneficialOwnerQuery) All ¶
func (boq *BeneficialOwnerQuery) All(ctx context.Context) ([]*BeneficialOwner, error)
All executes the query and returns a list of BeneficialOwners.
func (*BeneficialOwnerQuery) AllX ¶
func (boq *BeneficialOwnerQuery) AllX(ctx context.Context) []*BeneficialOwner
AllX is like All, but panics if an error occurs.
func (*BeneficialOwnerQuery) Clone ¶
func (boq *BeneficialOwnerQuery) Clone() *BeneficialOwnerQuery
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 ¶
func (boq *BeneficialOwnerQuery) First(ctx context.Context) (*BeneficialOwner, error)
First returns the first BeneficialOwner entity from the query. Returns a *NotFoundError when no BeneficialOwner was found.
func (*BeneficialOwnerQuery) FirstID ¶
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 ¶
func (boq *BeneficialOwnerQuery) FirstX(ctx context.Context) *BeneficialOwner
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 ¶
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 ¶
func (boq *BeneficialOwnerQuery) Only(ctx context.Context) (*BeneficialOwner, error)
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 ¶
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 ¶
func (boq *BeneficialOwnerQuery) OnlyX(ctx context.Context) *BeneficialOwner
OnlyX is like Only, but panics if an error occurs.
func (*BeneficialOwnerQuery) Order ¶
func (boq *BeneficialOwnerQuery) Order(o ...beneficialowner.OrderOption) *BeneficialOwnerQuery
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 ¶
func (boq *BeneficialOwnerQuery) Where(ps ...predicate.BeneficialOwner) *BeneficialOwnerQuery
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 ¶
func (bos *BeneficialOwnerSelect) Aggregate(fns ...AggregateFunc) *BeneficialOwnerSelect
Aggregate adds the given aggregation functions to the selector query.
func (*BeneficialOwnerSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*BeneficialOwnerSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*BeneficialOwnerSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*BeneficialOwnerSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*BeneficialOwnerSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*BeneficialOwnerSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*BeneficialOwnerSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (bou *BeneficialOwnerUpdate) Mutation() *BeneficialOwnerMutation
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 ¶
func (bou *BeneficialOwnerUpdate) SetGovernmentIssuedIDType(biit beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpdate
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 ¶
func (bou *BeneficialOwnerUpdate) Where(ps ...predicate.BeneficialOwner) *BeneficialOwnerUpdate
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 ¶
func (bouo *BeneficialOwnerUpdateOne) Exec(ctx context.Context) error
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 ¶
func (bouo *BeneficialOwnerUpdateOne) Mutation() *BeneficialOwnerMutation
Mutation returns the BeneficialOwnerMutation object of the builder.
func (*BeneficialOwnerUpdateOne) Save ¶
func (bouo *BeneficialOwnerUpdateOne) Save(ctx context.Context) (*BeneficialOwner, error)
Save executes the query and returns the updated BeneficialOwner entity.
func (*BeneficialOwnerUpdateOne) SaveX ¶
func (bouo *BeneficialOwnerUpdateOne) SaveX(ctx context.Context) *BeneficialOwner
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 ¶
func (bouo *BeneficialOwnerUpdateOne) SetFullName(s string) *BeneficialOwnerUpdateOne
SetFullName sets the "full_name" field.
func (*BeneficialOwnerUpdateOne) SetGovernmentIssuedIDType ¶
func (bouo *BeneficialOwnerUpdateOne) SetGovernmentIssuedIDType(biit beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpdateOne
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 ¶
func (bouo *BeneficialOwnerUpdateOne) SetKybProfile(k *KYBProfile) *BeneficialOwnerUpdateOne
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 ¶
func (bouo *BeneficialOwnerUpdateOne) Where(ps ...predicate.BeneficialOwner) *BeneficialOwnerUpdateOne
Where appends a list predicates to the BeneficialOwnerUpdate builder.
type BeneficialOwnerUpsert ¶
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 ¶
func (u *BeneficialOwnerUpsert) SetFullName(v string) *BeneficialOwnerUpsert
SetFullName sets the "full_name" field.
func (*BeneficialOwnerUpsert) SetGovernmentIssuedIDType ¶
func (u *BeneficialOwnerUpsert) SetGovernmentIssuedIDType(v beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpsert
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 ¶
func (u *BeneficialOwnerUpsertBulk) DoNothing() *BeneficialOwnerUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BeneficialOwnerUpsertBulk) Exec ¶
func (u *BeneficialOwnerUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*BeneficialOwnerUpsertBulk) ExecX ¶
func (u *BeneficialOwnerUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BeneficialOwnerUpsertBulk) Ignore ¶
func (u *BeneficialOwnerUpsertBulk) Ignore() *BeneficialOwnerUpsertBulk
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 ¶
func (u *BeneficialOwnerUpsertBulk) SetDateOfBirth(v string) *BeneficialOwnerUpsertBulk
SetDateOfBirth sets the "date_of_birth" field.
func (*BeneficialOwnerUpsertBulk) SetFullName ¶
func (u *BeneficialOwnerUpsertBulk) SetFullName(v string) *BeneficialOwnerUpsertBulk
SetFullName sets the "full_name" field.
func (*BeneficialOwnerUpsertBulk) SetGovernmentIssuedIDType ¶
func (u *BeneficialOwnerUpsertBulk) SetGovernmentIssuedIDType(v beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpsertBulk
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 ¶
func (u *BeneficialOwnerUpsertBulk) Update(set func(*BeneficialOwnerUpsert)) *BeneficialOwnerUpsertBulk
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 ¶
func (u *BeneficialOwnerUpsertBulk) UpdateFullName() *BeneficialOwnerUpsertBulk
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 ¶
func (u *BeneficialOwnerUpsertBulk) UpdateNewValues() *BeneficialOwnerUpsertBulk
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 ¶
func (u *BeneficialOwnerUpsertOne) DoNothing() *BeneficialOwnerUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*BeneficialOwnerUpsertOne) Exec ¶
func (u *BeneficialOwnerUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*BeneficialOwnerUpsertOne) ExecX ¶
func (u *BeneficialOwnerUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*BeneficialOwnerUpsertOne) ID ¶
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*BeneficialOwnerUpsertOne) IDX ¶
func (u *BeneficialOwnerUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*BeneficialOwnerUpsertOne) Ignore ¶
func (u *BeneficialOwnerUpsertOne) Ignore() *BeneficialOwnerUpsertOne
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 ¶
func (u *BeneficialOwnerUpsertOne) SetDateOfBirth(v string) *BeneficialOwnerUpsertOne
SetDateOfBirth sets the "date_of_birth" field.
func (*BeneficialOwnerUpsertOne) SetFullName ¶
func (u *BeneficialOwnerUpsertOne) SetFullName(v string) *BeneficialOwnerUpsertOne
SetFullName sets the "full_name" field.
func (*BeneficialOwnerUpsertOne) SetGovernmentIssuedIDType ¶
func (u *BeneficialOwnerUpsertOne) SetGovernmentIssuedIDType(v beneficialowner.GovernmentIssuedIDType) *BeneficialOwnerUpsertOne
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 ¶
func (u *BeneficialOwnerUpsertOne) Update(set func(*BeneficialOwnerUpsert)) *BeneficialOwnerUpsertOne
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 ¶
func (u *BeneficialOwnerUpsertOne) UpdateFullName() *BeneficialOwnerUpsertOne
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 ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
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) Debug ¶
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(...)`.
type CommitFunc ¶
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.
type CommitHook ¶
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 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.
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 ¶
func (c *FiatCurrencyClient) Create() *FiatCurrencyCreate
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 ¶
func (c *FiatCurrencyClient) Delete() *FiatCurrencyDelete
Delete returns a delete builder for FiatCurrency.
func (*FiatCurrencyClient) DeleteOne ¶
func (c *FiatCurrencyClient) DeleteOne(fc *FiatCurrency) *FiatCurrencyDeleteOne
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 ¶
func (c *FiatCurrencyClient) Get(ctx context.Context, id uuid.UUID) (*FiatCurrency, error)
Get returns a FiatCurrency entity by its id.
func (*FiatCurrencyClient) GetX ¶
func (c *FiatCurrencyClient) GetX(ctx context.Context, id uuid.UUID) *FiatCurrency
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 ¶
func (c *FiatCurrencyClient) Query() *FiatCurrencyQuery
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 ¶
func (c *FiatCurrencyClient) Update() *FiatCurrencyUpdate
Update returns an update builder for FiatCurrency.
func (*FiatCurrencyClient) UpdateOne ¶
func (c *FiatCurrencyClient) UpdateOne(fc *FiatCurrency) *FiatCurrencyUpdateOne
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 ¶
func (fcc *FiatCurrencyCreate) Save(ctx context.Context) (*FiatCurrency, error)
Save creates the FiatCurrency in the database.
func (*FiatCurrencyCreate) SaveX ¶
func (fcc *FiatCurrencyCreate) SaveX(ctx context.Context) *FiatCurrency
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 ¶
func (fcc *FiatCurrencyCreate) SetID(u uuid.UUID) *FiatCurrencyCreate
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 ¶
func (fccb *FiatCurrencyCreateBulk) OnConflict(opts ...sql.ConflictOption) *FiatCurrencyUpsertBulk
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 ¶
func (fccb *FiatCurrencyCreateBulk) Save(ctx context.Context) ([]*FiatCurrency, error)
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 ¶
func (fcd *FiatCurrencyDelete) Where(ps ...predicate.FiatCurrency) *FiatCurrencyDelete
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 ¶
func (fcdo *FiatCurrencyDeleteOne) Where(ps ...predicate.FiatCurrency) *FiatCurrencyDeleteOne
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FiatCurrencyGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FiatCurrencyGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FiatCurrencyGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FiatCurrencyGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FiatCurrencyGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (m *FiatCurrencyMutation) Where(ps ...predicate.FiatCurrency)
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 ¶
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) 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 ¶
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 ¶
func (fcq *FiatCurrencyQuery) Order(o ...fiatcurrency.OrderOption) *FiatCurrencyQuery
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 ¶
func (fcq *FiatCurrencyQuery) Where(ps ...predicate.FiatCurrency) *FiatCurrencyQuery
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FiatCurrencySelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FiatCurrencySelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FiatCurrencySelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FiatCurrencySelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FiatCurrencySelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (fcu *FiatCurrencyUpdate) Where(ps ...predicate.FiatCurrency) *FiatCurrencyUpdate
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 ¶
func (fcuo *FiatCurrencyUpdateOne) AddMarketRate(d decimal.Decimal) *FiatCurrencyUpdateOne
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 ¶
func (fcuo *FiatCurrencyUpdateOne) Save(ctx context.Context) (*FiatCurrency, error)
Save executes the query and returns the updated FiatCurrency entity.
func (*FiatCurrencyUpdateOne) SaveX ¶
func (fcuo *FiatCurrencyUpdateOne) SaveX(ctx context.Context) *FiatCurrency
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 ¶
func (fcuo *FiatCurrencyUpdateOne) SetCode(s string) *FiatCurrencyUpdateOne
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 ¶
func (fcuo *FiatCurrencyUpdateOne) SetMarketRate(d decimal.Decimal) *FiatCurrencyUpdateOne
SetMarketRate sets the "market_rate" field.
func (*FiatCurrencyUpdateOne) SetName ¶
func (fcuo *FiatCurrencyUpdateOne) SetName(s string) *FiatCurrencyUpdateOne
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 ¶
func (fcuo *FiatCurrencyUpdateOne) SetSymbol(s string) *FiatCurrencyUpdateOne
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 ¶
func (fcuo *FiatCurrencyUpdateOne) Where(ps ...predicate.FiatCurrency) *FiatCurrencyUpdateOne
Where appends a list predicates to the FiatCurrencyUpdate builder.
type FiatCurrencyUpsert ¶
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 ¶
func (u *FiatCurrencyUpsert) AddMarketRate(v decimal.Decimal) *FiatCurrencyUpsert
AddMarketRate adds v to the "market_rate" field.
func (*FiatCurrencyUpsert) SetCode ¶
func (u *FiatCurrencyUpsert) SetCode(v string) *FiatCurrencyUpsert
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 ¶
func (u *FiatCurrencyUpsert) SetMarketRate(v decimal.Decimal) *FiatCurrencyUpsert
SetMarketRate sets the "market_rate" field.
func (*FiatCurrencyUpsert) SetName ¶
func (u *FiatCurrencyUpsert) SetName(v string) *FiatCurrencyUpsert
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 ¶
func (u *FiatCurrencyUpsertBulk) AddDecimals(v int) *FiatCurrencyUpsertBulk
AddDecimals adds v to the "decimals" field.
func (*FiatCurrencyUpsertBulk) AddMarketRate ¶
func (u *FiatCurrencyUpsertBulk) AddMarketRate(v decimal.Decimal) *FiatCurrencyUpsertBulk
AddMarketRate adds v to the "market_rate" field.
func (*FiatCurrencyUpsertBulk) DoNothing ¶
func (u *FiatCurrencyUpsertBulk) DoNothing() *FiatCurrencyUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FiatCurrencyUpsertBulk) Exec ¶
func (u *FiatCurrencyUpsertBulk) Exec(ctx context.Context) error
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 ¶
func (u *FiatCurrencyUpsertBulk) Ignore() *FiatCurrencyUpsertBulk
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 ¶
func (u *FiatCurrencyUpsertBulk) SetCode(v string) *FiatCurrencyUpsertBulk
SetCode sets the "code" field.
func (*FiatCurrencyUpsertBulk) SetDecimals ¶
func (u *FiatCurrencyUpsertBulk) SetDecimals(v int) *FiatCurrencyUpsertBulk
SetDecimals sets the "decimals" field.
func (*FiatCurrencyUpsertBulk) SetIsEnabled ¶
func (u *FiatCurrencyUpsertBulk) SetIsEnabled(v bool) *FiatCurrencyUpsertBulk
SetIsEnabled sets the "is_enabled" field.
func (*FiatCurrencyUpsertBulk) SetMarketRate ¶
func (u *FiatCurrencyUpsertBulk) SetMarketRate(v decimal.Decimal) *FiatCurrencyUpsertBulk
SetMarketRate sets the "market_rate" field.
func (*FiatCurrencyUpsertBulk) SetName ¶
func (u *FiatCurrencyUpsertBulk) SetName(v string) *FiatCurrencyUpsertBulk
SetName sets the "name" field.
func (*FiatCurrencyUpsertBulk) SetShortName ¶
func (u *FiatCurrencyUpsertBulk) SetShortName(v string) *FiatCurrencyUpsertBulk
SetShortName sets the "short_name" field.
func (*FiatCurrencyUpsertBulk) SetSymbol ¶
func (u *FiatCurrencyUpsertBulk) SetSymbol(v string) *FiatCurrencyUpsertBulk
SetSymbol sets the "symbol" field.
func (*FiatCurrencyUpsertBulk) SetUpdatedAt ¶
func (u *FiatCurrencyUpsertBulk) SetUpdatedAt(v time.Time) *FiatCurrencyUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*FiatCurrencyUpsertBulk) Update ¶
func (u *FiatCurrencyUpsertBulk) Update(set func(*FiatCurrencyUpsert)) *FiatCurrencyUpsertBulk
Update allows overriding fields `UPDATE` values. See the FiatCurrencyCreateBulk.OnConflict documentation for more info.
func (*FiatCurrencyUpsertBulk) UpdateCode ¶
func (u *FiatCurrencyUpsertBulk) UpdateCode() *FiatCurrencyUpsertBulk
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 ¶
func (u *FiatCurrencyUpsertBulk) UpdateName() *FiatCurrencyUpsertBulk
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 ¶
func (u *FiatCurrencyUpsertBulk) UpdateSymbol() *FiatCurrencyUpsertBulk
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 ¶
func (u *FiatCurrencyUpsertOne) AddMarketRate(v decimal.Decimal) *FiatCurrencyUpsertOne
AddMarketRate adds v to the "market_rate" field.
func (*FiatCurrencyUpsertOne) DoNothing ¶
func (u *FiatCurrencyUpsertOne) DoNothing() *FiatCurrencyUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FiatCurrencyUpsertOne) Exec ¶
func (u *FiatCurrencyUpsertOne) Exec(ctx context.Context) error
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 ¶
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FiatCurrencyUpsertOne) IDX ¶
func (u *FiatCurrencyUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*FiatCurrencyUpsertOne) Ignore ¶
func (u *FiatCurrencyUpsertOne) Ignore() *FiatCurrencyUpsertOne
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 ¶
func (u *FiatCurrencyUpsertOne) SetCode(v string) *FiatCurrencyUpsertOne
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 ¶
func (u *FiatCurrencyUpsertOne) SetMarketRate(v decimal.Decimal) *FiatCurrencyUpsertOne
SetMarketRate sets the "market_rate" field.
func (*FiatCurrencyUpsertOne) SetName ¶
func (u *FiatCurrencyUpsertOne) SetName(v string) *FiatCurrencyUpsertOne
SetName sets the "name" field.
func (*FiatCurrencyUpsertOne) SetShortName ¶
func (u *FiatCurrencyUpsertOne) SetShortName(v string) *FiatCurrencyUpsertOne
SetShortName sets the "short_name" field.
func (*FiatCurrencyUpsertOne) SetSymbol ¶
func (u *FiatCurrencyUpsertOne) SetSymbol(v string) *FiatCurrencyUpsertOne
SetSymbol sets the "symbol" field.
func (*FiatCurrencyUpsertOne) SetUpdatedAt ¶
func (u *FiatCurrencyUpsertOne) SetUpdatedAt(v time.Time) *FiatCurrencyUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*FiatCurrencyUpsertOne) Update ¶
func (u *FiatCurrencyUpsertOne) Update(set func(*FiatCurrencyUpsert)) *FiatCurrencyUpsertOne
Update allows overriding fields `UPDATE` values. See the FiatCurrencyCreate.OnConflict documentation for more info.
func (*FiatCurrencyUpsertOne) UpdateCode ¶
func (u *FiatCurrencyUpsertOne) UpdateCode() *FiatCurrencyUpsertOne
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 ¶
func (u *FiatCurrencyUpsertOne) UpdateName() *FiatCurrencyUpsertOne
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 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 ¶
func (ivr *IdentityVerificationRequest) Unwrap() *IdentityVerificationRequest
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 ¶
func (ivr *IdentityVerificationRequest) Update() *IdentityVerificationRequestUpdateOne
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.
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 ¶
func (c *IdentityVerificationRequestClient) Create() *IdentityVerificationRequestCreate
Create returns a builder for creating a IdentityVerificationRequest entity.
func (*IdentityVerificationRequestClient) CreateBulk ¶
func (c *IdentityVerificationRequestClient) CreateBulk(builders ...*IdentityVerificationRequestCreate) *IdentityVerificationRequestCreateBulk
CreateBulk returns a builder for creating a bulk of IdentityVerificationRequest entities.
func (*IdentityVerificationRequestClient) Delete ¶
func (c *IdentityVerificationRequestClient) Delete() *IdentityVerificationRequestDelete
Delete returns a delete builder for IdentityVerificationRequest.
func (*IdentityVerificationRequestClient) DeleteOne ¶
func (c *IdentityVerificationRequestClient) DeleteOne(ivr *IdentityVerificationRequest) *IdentityVerificationRequestDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*IdentityVerificationRequestClient) DeleteOneID ¶
func (c *IdentityVerificationRequestClient) DeleteOneID(id uuid.UUID) *IdentityVerificationRequestDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*IdentityVerificationRequestClient) Get ¶
func (c *IdentityVerificationRequestClient) Get(ctx context.Context, id uuid.UUID) (*IdentityVerificationRequest, error)
Get returns a IdentityVerificationRequest entity by its id.
func (*IdentityVerificationRequestClient) GetX ¶
func (c *IdentityVerificationRequestClient) GetX(ctx context.Context, id uuid.UUID) *IdentityVerificationRequest
GetX is like Get, but panics if an error occurs.
func (*IdentityVerificationRequestClient) Hooks ¶
func (c *IdentityVerificationRequestClient) Hooks() []Hook
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 ¶
func (c *IdentityVerificationRequestClient) MapCreateBulk(slice any, setFunc func(*IdentityVerificationRequestCreate, int)) *IdentityVerificationRequestCreateBulk
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 ¶
func (c *IdentityVerificationRequestClient) Query() *IdentityVerificationRequestQuery
Query returns a query builder for IdentityVerificationRequest.
func (*IdentityVerificationRequestClient) Update ¶
func (c *IdentityVerificationRequestClient) Update() *IdentityVerificationRequestUpdate
Update returns an update builder for IdentityVerificationRequest.
func (*IdentityVerificationRequestClient) UpdateOne ¶
func (c *IdentityVerificationRequestClient) UpdateOne(ivr *IdentityVerificationRequest) *IdentityVerificationRequestUpdateOne
UpdateOne returns an update builder for the given entity.
func (*IdentityVerificationRequestClient) UpdateOneID ¶
func (c *IdentityVerificationRequestClient) UpdateOneID(id uuid.UUID) *IdentityVerificationRequestUpdateOne
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 ¶
func (ivrc *IdentityVerificationRequestCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*IdentityVerificationRequestCreate) ExecX ¶
func (ivrc *IdentityVerificationRequestCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IdentityVerificationRequestCreate) Mutation ¶
func (ivrc *IdentityVerificationRequestCreate) Mutation() *IdentityVerificationRequestMutation
Mutation returns the IdentityVerificationRequestMutation object of the builder.
func (*IdentityVerificationRequestCreate) OnConflict ¶
func (ivrc *IdentityVerificationRequestCreate) OnConflict(opts ...sql.ConflictOption) *IdentityVerificationRequestUpsertOne
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 ¶
func (ivrc *IdentityVerificationRequestCreate) OnConflictColumns(columns ...string) *IdentityVerificationRequestUpsertOne
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 ¶
func (ivrc *IdentityVerificationRequestCreate) Save(ctx context.Context) (*IdentityVerificationRequest, error)
Save creates the IdentityVerificationRequest in the database.
func (*IdentityVerificationRequestCreate) SaveX ¶
func (ivrc *IdentityVerificationRequestCreate) SaveX(ctx context.Context) *IdentityVerificationRequest
SaveX calls Save and panics if Save returns an error.
func (*IdentityVerificationRequestCreate) SetFeeReclaimed ¶
func (ivrc *IdentityVerificationRequestCreate) SetFeeReclaimed(b bool) *IdentityVerificationRequestCreate
SetFeeReclaimed sets the "fee_reclaimed" field.
func (*IdentityVerificationRequestCreate) SetID ¶
func (ivrc *IdentityVerificationRequestCreate) SetID(u uuid.UUID) *IdentityVerificationRequestCreate
SetID sets the "id" field.
func (*IdentityVerificationRequestCreate) SetLastURLCreatedAt ¶
func (ivrc *IdentityVerificationRequestCreate) SetLastURLCreatedAt(t time.Time) *IdentityVerificationRequestCreate
SetLastURLCreatedAt sets the "last_url_created_at" field.
func (*IdentityVerificationRequestCreate) SetNillableFeeReclaimed ¶
func (ivrc *IdentityVerificationRequestCreate) SetNillableFeeReclaimed(b *bool) *IdentityVerificationRequestCreate
SetNillableFeeReclaimed sets the "fee_reclaimed" field if the given value is not nil.
func (*IdentityVerificationRequestCreate) SetNillableID ¶
func (ivrc *IdentityVerificationRequestCreate) SetNillableID(u *uuid.UUID) *IdentityVerificationRequestCreate
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 ¶
func (ivrc *IdentityVerificationRequestCreate) SetNillableStatus(i *identityverificationrequest.Status) *IdentityVerificationRequestCreate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*IdentityVerificationRequestCreate) SetNillableUpdatedAt ¶
func (ivrc *IdentityVerificationRequestCreate) SetNillableUpdatedAt(t *time.Time) *IdentityVerificationRequestCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*IdentityVerificationRequestCreate) SetPlatform ¶
func (ivrc *IdentityVerificationRequestCreate) SetPlatform(i identityverificationrequest.Platform) *IdentityVerificationRequestCreate
SetPlatform sets the "platform" field.
func (*IdentityVerificationRequestCreate) SetPlatformRef ¶
func (ivrc *IdentityVerificationRequestCreate) SetPlatformRef(s string) *IdentityVerificationRequestCreate
SetPlatformRef sets the "platform_ref" field.
func (*IdentityVerificationRequestCreate) SetStatus ¶
func (ivrc *IdentityVerificationRequestCreate) SetStatus(i identityverificationrequest.Status) *IdentityVerificationRequestCreate
SetStatus sets the "status" field.
func (*IdentityVerificationRequestCreate) SetUpdatedAt ¶
func (ivrc *IdentityVerificationRequestCreate) SetUpdatedAt(t time.Time) *IdentityVerificationRequestCreate
SetUpdatedAt sets the "updated_at" field.
func (*IdentityVerificationRequestCreate) SetVerificationURL ¶
func (ivrc *IdentityVerificationRequestCreate) SetVerificationURL(s string) *IdentityVerificationRequestCreate
SetVerificationURL sets the "verification_url" field.
func (*IdentityVerificationRequestCreate) SetWalletAddress ¶
func (ivrc *IdentityVerificationRequestCreate) SetWalletAddress(s string) *IdentityVerificationRequestCreate
SetWalletAddress sets the "wallet_address" field.
func (*IdentityVerificationRequestCreate) SetWalletSignature ¶
func (ivrc *IdentityVerificationRequestCreate) SetWalletSignature(s string) *IdentityVerificationRequestCreate
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 ¶
func (ivrcb *IdentityVerificationRequestCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*IdentityVerificationRequestCreateBulk) ExecX ¶
func (ivrcb *IdentityVerificationRequestCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IdentityVerificationRequestCreateBulk) OnConflict ¶
func (ivrcb *IdentityVerificationRequestCreateBulk) OnConflict(opts ...sql.ConflictOption) *IdentityVerificationRequestUpsertBulk
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 ¶
func (ivrcb *IdentityVerificationRequestCreateBulk) OnConflictColumns(columns ...string) *IdentityVerificationRequestUpsertBulk
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 ¶
func (ivrcb *IdentityVerificationRequestCreateBulk) Save(ctx context.Context) ([]*IdentityVerificationRequest, error)
Save creates the IdentityVerificationRequest entities in the database.
func (*IdentityVerificationRequestCreateBulk) SaveX ¶
func (ivrcb *IdentityVerificationRequestCreateBulk) SaveX(ctx context.Context) []*IdentityVerificationRequest
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 ¶
func (ivrd *IdentityVerificationRequestDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*IdentityVerificationRequestDelete) ExecX ¶
func (ivrd *IdentityVerificationRequestDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*IdentityVerificationRequestDelete) Where ¶
func (ivrd *IdentityVerificationRequestDelete) Where(ps ...predicate.IdentityVerificationRequest) *IdentityVerificationRequestDelete
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 ¶
func (ivrdo *IdentityVerificationRequestDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*IdentityVerificationRequestDeleteOne) ExecX ¶
func (ivrdo *IdentityVerificationRequestDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IdentityVerificationRequestDeleteOne) Where ¶
func (ivrdo *IdentityVerificationRequestDeleteOne) Where(ps ...predicate.IdentityVerificationRequest) *IdentityVerificationRequestDeleteOne
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 ¶
func (ivrgb *IdentityVerificationRequestGroupBy) Aggregate(fns ...AggregateFunc) *IdentityVerificationRequestGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*IdentityVerificationRequestGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestGroupBy) BoolX ¶
BoolX is like Bool, but panics if an error occurs.
func (*IdentityVerificationRequestGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestGroupBy) BoolsX ¶
BoolsX is like Bools, but panics if an error occurs.
func (*IdentityVerificationRequestGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*IdentityVerificationRequestGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*IdentityVerificationRequestGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestGroupBy) IntsX ¶
IntsX is like Ints, but panics if an error occurs.
func (*IdentityVerificationRequestGroupBy) Scan ¶
func (ivrgb *IdentityVerificationRequestGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*IdentityVerificationRequestGroupBy) ScanX ¶
ScanX is like Scan, but panics if an error occurs.
func (*IdentityVerificationRequestGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestGroupBy) StringX ¶
StringX is like String, 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 ¶
func (m *IdentityVerificationRequestMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*IdentityVerificationRequestMutation) ClearEdge ¶
func (m *IdentityVerificationRequestMutation) 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 (*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 ¶
func (m IdentityVerificationRequestMutation) 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 (*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 ¶
func (m *IdentityVerificationRequestMutation) 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 (*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 ¶
func (m *IdentityVerificationRequestMutation) 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 (*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 ¶
func (m *IdentityVerificationRequestMutation) 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 (*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 ¶
func (m *IdentityVerificationRequestMutation) OldPlatform(ctx context.Context) (v identityverificationrequest.Platform, err error)
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 ¶
func (m *IdentityVerificationRequestMutation) OldStatus(ctx context.Context) (v identityverificationrequest.Status, err error)
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 ¶
func (m *IdentityVerificationRequestMutation) Op() Op
Op returns the operation name.
func (*IdentityVerificationRequestMutation) Platform ¶
func (m *IdentityVerificationRequestMutation) Platform() (r identityverificationrequest.Platform, exists bool)
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 ¶
func (m *IdentityVerificationRequestMutation) 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 (*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 ¶
func (m *IdentityVerificationRequestMutation) SetID(id uuid.UUID)
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 ¶
func (m *IdentityVerificationRequestMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*IdentityVerificationRequestMutation) SetPlatform ¶
func (m *IdentityVerificationRequestMutation) SetPlatform(i identityverificationrequest.Platform)
SetPlatform sets the "platform" field.
func (*IdentityVerificationRequestMutation) SetPlatformRef ¶
func (m *IdentityVerificationRequestMutation) SetPlatformRef(s string)
SetPlatformRef sets the "platform_ref" field.
func (*IdentityVerificationRequestMutation) SetStatus ¶
func (m *IdentityVerificationRequestMutation) SetStatus(i identityverificationrequest.Status)
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 ¶
func (m *IdentityVerificationRequestMutation) Status() (r identityverificationrequest.Status, exists bool)
Status returns the value of the "status" field in the mutation.
func (IdentityVerificationRequestMutation) Tx ¶
func (m IdentityVerificationRequestMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*IdentityVerificationRequestMutation) Type ¶
func (m *IdentityVerificationRequestMutation) Type() string
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 ¶
func (m *IdentityVerificationRequestMutation) Where(ps ...predicate.IdentityVerificationRequest)
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 ¶
func (ivrq *IdentityVerificationRequestQuery) Aggregate(fns ...AggregateFunc) *IdentityVerificationRequestSelect
Aggregate returns a IdentityVerificationRequestSelect configured with the given aggregations.
func (*IdentityVerificationRequestQuery) All ¶
func (ivrq *IdentityVerificationRequestQuery) All(ctx context.Context) ([]*IdentityVerificationRequest, error)
All executes the query and returns a list of IdentityVerificationRequests.
func (*IdentityVerificationRequestQuery) AllX ¶
func (ivrq *IdentityVerificationRequestQuery) AllX(ctx context.Context) []*IdentityVerificationRequest
AllX is like All, but panics if an error occurs.
func (*IdentityVerificationRequestQuery) Clone ¶
func (ivrq *IdentityVerificationRequestQuery) Clone() *IdentityVerificationRequestQuery
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 ¶
func (ivrq *IdentityVerificationRequestQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*IdentityVerificationRequestQuery) CountX ¶
func (ivrq *IdentityVerificationRequestQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*IdentityVerificationRequestQuery) Exist ¶
func (ivrq *IdentityVerificationRequestQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*IdentityVerificationRequestQuery) ExistX ¶
func (ivrq *IdentityVerificationRequestQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*IdentityVerificationRequestQuery) First ¶
func (ivrq *IdentityVerificationRequestQuery) First(ctx context.Context) (*IdentityVerificationRequest, error)
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 ¶
func (ivrq *IdentityVerificationRequestQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*IdentityVerificationRequestQuery) FirstX ¶
func (ivrq *IdentityVerificationRequestQuery) FirstX(ctx context.Context) *IdentityVerificationRequest
FirstX is like First, but panics if an error occurs.
func (*IdentityVerificationRequestQuery) GroupBy ¶
func (ivrq *IdentityVerificationRequestQuery) GroupBy(field string, fields ...string) *IdentityVerificationRequestGroupBy
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 ¶
IDs executes the query and returns a list of IdentityVerificationRequest IDs.
func (*IdentityVerificationRequestQuery) IDsX ¶
func (ivrq *IdentityVerificationRequestQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*IdentityVerificationRequestQuery) Limit ¶
func (ivrq *IdentityVerificationRequestQuery) Limit(limit int) *IdentityVerificationRequestQuery
Limit the number of records to be returned by this query.
func (*IdentityVerificationRequestQuery) Offset ¶
func (ivrq *IdentityVerificationRequestQuery) Offset(offset int) *IdentityVerificationRequestQuery
Offset to start from.
func (*IdentityVerificationRequestQuery) Only ¶
func (ivrq *IdentityVerificationRequestQuery) Only(ctx context.Context) (*IdentityVerificationRequest, error)
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 ¶
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 ¶
func (ivrq *IdentityVerificationRequestQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*IdentityVerificationRequestQuery) OnlyX ¶
func (ivrq *IdentityVerificationRequestQuery) OnlyX(ctx context.Context) *IdentityVerificationRequest
OnlyX is like Only, but panics if an error occurs.
func (*IdentityVerificationRequestQuery) Order ¶
func (ivrq *IdentityVerificationRequestQuery) Order(o ...identityverificationrequest.OrderOption) *IdentityVerificationRequestQuery
Order specifies how the records should be ordered.
func (*IdentityVerificationRequestQuery) Select ¶
func (ivrq *IdentityVerificationRequestQuery) Select(fields ...string) *IdentityVerificationRequestSelect
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 ¶
func (ivrq *IdentityVerificationRequestQuery) Unique(unique bool) *IdentityVerificationRequestQuery
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 ¶
func (ivrq *IdentityVerificationRequestQuery) Where(ps ...predicate.IdentityVerificationRequest) *IdentityVerificationRequestQuery
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 ¶
func (ivrs *IdentityVerificationRequestSelect) Aggregate(fns ...AggregateFunc) *IdentityVerificationRequestSelect
Aggregate adds the given aggregation functions to the selector query.
func (*IdentityVerificationRequestSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestSelect) BoolX ¶
BoolX is like Bool, but panics if an error occurs.
func (*IdentityVerificationRequestSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestSelect) BoolsX ¶
BoolsX is like Bools, but panics if an error occurs.
func (*IdentityVerificationRequestSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*IdentityVerificationRequestSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*IdentityVerificationRequestSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestSelect) IntsX ¶
IntsX is like Ints, but panics if an error occurs.
func (*IdentityVerificationRequestSelect) Scan ¶
func (ivrs *IdentityVerificationRequestSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*IdentityVerificationRequestSelect) ScanX ¶
ScanX is like Scan, but panics if an error occurs.
func (*IdentityVerificationRequestSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*IdentityVerificationRequestSelect) StringX ¶
StringX is like String, 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 ¶
func (ivru *IdentityVerificationRequestUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*IdentityVerificationRequestUpdate) ExecX ¶
func (ivru *IdentityVerificationRequestUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IdentityVerificationRequestUpdate) Mutation ¶
func (ivru *IdentityVerificationRequestUpdate) Mutation() *IdentityVerificationRequestMutation
Mutation returns the IdentityVerificationRequestMutation object of the builder.
func (*IdentityVerificationRequestUpdate) Save ¶
func (ivru *IdentityVerificationRequestUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*IdentityVerificationRequestUpdate) SaveX ¶
func (ivru *IdentityVerificationRequestUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*IdentityVerificationRequestUpdate) SetFeeReclaimed ¶
func (ivru *IdentityVerificationRequestUpdate) SetFeeReclaimed(b bool) *IdentityVerificationRequestUpdate
SetFeeReclaimed sets the "fee_reclaimed" field.
func (*IdentityVerificationRequestUpdate) SetLastURLCreatedAt ¶
func (ivru *IdentityVerificationRequestUpdate) SetLastURLCreatedAt(t time.Time) *IdentityVerificationRequestUpdate
SetLastURLCreatedAt sets the "last_url_created_at" field.
func (*IdentityVerificationRequestUpdate) SetNillableFeeReclaimed ¶
func (ivru *IdentityVerificationRequestUpdate) SetNillableFeeReclaimed(b *bool) *IdentityVerificationRequestUpdate
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 ¶
func (ivru *IdentityVerificationRequestUpdate) SetNillablePlatform(i *identityverificationrequest.Platform) *IdentityVerificationRequestUpdate
SetNillablePlatform sets the "platform" field if the given value is not nil.
func (*IdentityVerificationRequestUpdate) SetNillablePlatformRef ¶
func (ivru *IdentityVerificationRequestUpdate) SetNillablePlatformRef(s *string) *IdentityVerificationRequestUpdate
SetNillablePlatformRef sets the "platform_ref" field if the given value is not nil.
func (*IdentityVerificationRequestUpdate) SetNillableStatus ¶
func (ivru *IdentityVerificationRequestUpdate) SetNillableStatus(i *identityverificationrequest.Status) *IdentityVerificationRequestUpdate
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 ¶
func (ivru *IdentityVerificationRequestUpdate) SetNillableWalletAddress(s *string) *IdentityVerificationRequestUpdate
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 ¶
func (ivru *IdentityVerificationRequestUpdate) SetPlatform(i identityverificationrequest.Platform) *IdentityVerificationRequestUpdate
SetPlatform sets the "platform" field.
func (*IdentityVerificationRequestUpdate) SetPlatformRef ¶
func (ivru *IdentityVerificationRequestUpdate) SetPlatformRef(s string) *IdentityVerificationRequestUpdate
SetPlatformRef sets the "platform_ref" field.
func (*IdentityVerificationRequestUpdate) SetStatus ¶
func (ivru *IdentityVerificationRequestUpdate) SetStatus(i identityverificationrequest.Status) *IdentityVerificationRequestUpdate
SetStatus sets the "status" field.
func (*IdentityVerificationRequestUpdate) SetUpdatedAt ¶
func (ivru *IdentityVerificationRequestUpdate) SetUpdatedAt(t time.Time) *IdentityVerificationRequestUpdate
SetUpdatedAt sets the "updated_at" field.
func (*IdentityVerificationRequestUpdate) SetVerificationURL ¶
func (ivru *IdentityVerificationRequestUpdate) SetVerificationURL(s string) *IdentityVerificationRequestUpdate
SetVerificationURL sets the "verification_url" field.
func (*IdentityVerificationRequestUpdate) SetWalletAddress ¶
func (ivru *IdentityVerificationRequestUpdate) SetWalletAddress(s string) *IdentityVerificationRequestUpdate
SetWalletAddress sets the "wallet_address" field.
func (*IdentityVerificationRequestUpdate) SetWalletSignature ¶
func (ivru *IdentityVerificationRequestUpdate) SetWalletSignature(s string) *IdentityVerificationRequestUpdate
SetWalletSignature sets the "wallet_signature" field.
func (*IdentityVerificationRequestUpdate) Where ¶
func (ivru *IdentityVerificationRequestUpdate) Where(ps ...predicate.IdentityVerificationRequest) *IdentityVerificationRequestUpdate
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 ¶
func (ivruo *IdentityVerificationRequestUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*IdentityVerificationRequestUpdateOne) ExecX ¶
func (ivruo *IdentityVerificationRequestUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IdentityVerificationRequestUpdateOne) Mutation ¶
func (ivruo *IdentityVerificationRequestUpdateOne) Mutation() *IdentityVerificationRequestMutation
Mutation returns the IdentityVerificationRequestMutation object of the builder.
func (*IdentityVerificationRequestUpdateOne) Save ¶
func (ivruo *IdentityVerificationRequestUpdateOne) Save(ctx context.Context) (*IdentityVerificationRequest, error)
Save executes the query and returns the updated IdentityVerificationRequest entity.
func (*IdentityVerificationRequestUpdateOne) SaveX ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SaveX(ctx context.Context) *IdentityVerificationRequest
SaveX is like Save, but panics if an error occurs.
func (*IdentityVerificationRequestUpdateOne) Select ¶
func (ivruo *IdentityVerificationRequestUpdateOne) Select(field string, fields ...string) *IdentityVerificationRequestUpdateOne
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 ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetFeeReclaimed(b bool) *IdentityVerificationRequestUpdateOne
SetFeeReclaimed sets the "fee_reclaimed" field.
func (*IdentityVerificationRequestUpdateOne) SetLastURLCreatedAt ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetLastURLCreatedAt(t time.Time) *IdentityVerificationRequestUpdateOne
SetLastURLCreatedAt sets the "last_url_created_at" field.
func (*IdentityVerificationRequestUpdateOne) SetNillableFeeReclaimed ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetNillableFeeReclaimed(b *bool) *IdentityVerificationRequestUpdateOne
SetNillableFeeReclaimed sets the "fee_reclaimed" field if the given value is not nil.
func (*IdentityVerificationRequestUpdateOne) SetNillableLastURLCreatedAt ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetNillableLastURLCreatedAt(t *time.Time) *IdentityVerificationRequestUpdateOne
SetNillableLastURLCreatedAt sets the "last_url_created_at" field if the given value is not nil.
func (*IdentityVerificationRequestUpdateOne) SetNillablePlatform ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetNillablePlatform(i *identityverificationrequest.Platform) *IdentityVerificationRequestUpdateOne
SetNillablePlatform sets the "platform" field if the given value is not nil.
func (*IdentityVerificationRequestUpdateOne) SetNillablePlatformRef ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetNillablePlatformRef(s *string) *IdentityVerificationRequestUpdateOne
SetNillablePlatformRef sets the "platform_ref" field if the given value is not nil.
func (*IdentityVerificationRequestUpdateOne) SetNillableStatus ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetNillableStatus(i *identityverificationrequest.Status) *IdentityVerificationRequestUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*IdentityVerificationRequestUpdateOne) SetNillableVerificationURL ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetNillableVerificationURL(s *string) *IdentityVerificationRequestUpdateOne
SetNillableVerificationURL sets the "verification_url" field if the given value is not nil.
func (*IdentityVerificationRequestUpdateOne) SetNillableWalletAddress ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetNillableWalletAddress(s *string) *IdentityVerificationRequestUpdateOne
SetNillableWalletAddress sets the "wallet_address" field if the given value is not nil.
func (*IdentityVerificationRequestUpdateOne) SetNillableWalletSignature ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetNillableWalletSignature(s *string) *IdentityVerificationRequestUpdateOne
SetNillableWalletSignature sets the "wallet_signature" field if the given value is not nil.
func (*IdentityVerificationRequestUpdateOne) SetPlatform ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetPlatform(i identityverificationrequest.Platform) *IdentityVerificationRequestUpdateOne
SetPlatform sets the "platform" field.
func (*IdentityVerificationRequestUpdateOne) SetPlatformRef ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetPlatformRef(s string) *IdentityVerificationRequestUpdateOne
SetPlatformRef sets the "platform_ref" field.
func (*IdentityVerificationRequestUpdateOne) SetStatus ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetStatus(i identityverificationrequest.Status) *IdentityVerificationRequestUpdateOne
SetStatus sets the "status" field.
func (*IdentityVerificationRequestUpdateOne) SetUpdatedAt ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetUpdatedAt(t time.Time) *IdentityVerificationRequestUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*IdentityVerificationRequestUpdateOne) SetVerificationURL ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetVerificationURL(s string) *IdentityVerificationRequestUpdateOne
SetVerificationURL sets the "verification_url" field.
func (*IdentityVerificationRequestUpdateOne) SetWalletAddress ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetWalletAddress(s string) *IdentityVerificationRequestUpdateOne
SetWalletAddress sets the "wallet_address" field.
func (*IdentityVerificationRequestUpdateOne) SetWalletSignature ¶
func (ivruo *IdentityVerificationRequestUpdateOne) SetWalletSignature(s string) *IdentityVerificationRequestUpdateOne
SetWalletSignature sets the "wallet_signature" field.
func (*IdentityVerificationRequestUpdateOne) Where ¶
func (ivruo *IdentityVerificationRequestUpdateOne) Where(ps ...predicate.IdentityVerificationRequest) *IdentityVerificationRequestUpdateOne
Where appends a list predicates to the IdentityVerificationRequestUpdate builder.
type IdentityVerificationRequestUpsert ¶
IdentityVerificationRequestUpsert is the "OnConflict" setter.
func (*IdentityVerificationRequestUpsert) SetFeeReclaimed ¶
func (u *IdentityVerificationRequestUpsert) SetFeeReclaimed(v bool) *IdentityVerificationRequestUpsert
SetFeeReclaimed sets the "fee_reclaimed" field.
func (*IdentityVerificationRequestUpsert) SetLastURLCreatedAt ¶
func (u *IdentityVerificationRequestUpsert) SetLastURLCreatedAt(v time.Time) *IdentityVerificationRequestUpsert
SetLastURLCreatedAt sets the "last_url_created_at" field.
func (*IdentityVerificationRequestUpsert) SetPlatform ¶
func (u *IdentityVerificationRequestUpsert) SetPlatform(v identityverificationrequest.Platform) *IdentityVerificationRequestUpsert
SetPlatform sets the "platform" field.
func (*IdentityVerificationRequestUpsert) SetPlatformRef ¶
func (u *IdentityVerificationRequestUpsert) SetPlatformRef(v string) *IdentityVerificationRequestUpsert
SetPlatformRef sets the "platform_ref" field.
func (*IdentityVerificationRequestUpsert) SetStatus ¶
func (u *IdentityVerificationRequestUpsert) SetStatus(v identityverificationrequest.Status) *IdentityVerificationRequestUpsert
SetStatus sets the "status" field.
func (*IdentityVerificationRequestUpsert) SetUpdatedAt ¶
func (u *IdentityVerificationRequestUpsert) SetUpdatedAt(v time.Time) *IdentityVerificationRequestUpsert
SetUpdatedAt sets the "updated_at" field.
func (*IdentityVerificationRequestUpsert) SetVerificationURL ¶
func (u *IdentityVerificationRequestUpsert) SetVerificationURL(v string) *IdentityVerificationRequestUpsert
SetVerificationURL sets the "verification_url" field.
func (*IdentityVerificationRequestUpsert) SetWalletAddress ¶
func (u *IdentityVerificationRequestUpsert) SetWalletAddress(v string) *IdentityVerificationRequestUpsert
SetWalletAddress sets the "wallet_address" field.
func (*IdentityVerificationRequestUpsert) SetWalletSignature ¶
func (u *IdentityVerificationRequestUpsert) SetWalletSignature(v string) *IdentityVerificationRequestUpsert
SetWalletSignature sets the "wallet_signature" field.
func (*IdentityVerificationRequestUpsert) UpdateFeeReclaimed ¶
func (u *IdentityVerificationRequestUpsert) UpdateFeeReclaimed() *IdentityVerificationRequestUpsert
UpdateFeeReclaimed sets the "fee_reclaimed" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsert) UpdateLastURLCreatedAt ¶
func (u *IdentityVerificationRequestUpsert) UpdateLastURLCreatedAt() *IdentityVerificationRequestUpsert
UpdateLastURLCreatedAt sets the "last_url_created_at" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsert) UpdatePlatform ¶
func (u *IdentityVerificationRequestUpsert) UpdatePlatform() *IdentityVerificationRequestUpsert
UpdatePlatform sets the "platform" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsert) UpdatePlatformRef ¶
func (u *IdentityVerificationRequestUpsert) UpdatePlatformRef() *IdentityVerificationRequestUpsert
UpdatePlatformRef sets the "platform_ref" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsert) UpdateStatus ¶
func (u *IdentityVerificationRequestUpsert) UpdateStatus() *IdentityVerificationRequestUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsert) UpdateUpdatedAt ¶
func (u *IdentityVerificationRequestUpsert) UpdateUpdatedAt() *IdentityVerificationRequestUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsert) UpdateVerificationURL ¶
func (u *IdentityVerificationRequestUpsert) UpdateVerificationURL() *IdentityVerificationRequestUpsert
UpdateVerificationURL sets the "verification_url" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsert) UpdateWalletAddress ¶
func (u *IdentityVerificationRequestUpsert) UpdateWalletAddress() *IdentityVerificationRequestUpsert
UpdateWalletAddress sets the "wallet_address" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsert) UpdateWalletSignature ¶
func (u *IdentityVerificationRequestUpsert) UpdateWalletSignature() *IdentityVerificationRequestUpsert
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 ¶
func (u *IdentityVerificationRequestUpsertBulk) DoNothing() *IdentityVerificationRequestUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*IdentityVerificationRequestUpsertBulk) Exec ¶
func (u *IdentityVerificationRequestUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*IdentityVerificationRequestUpsertBulk) ExecX ¶
func (u *IdentityVerificationRequestUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IdentityVerificationRequestUpsertBulk) Ignore ¶
func (u *IdentityVerificationRequestUpsertBulk) Ignore() *IdentityVerificationRequestUpsertBulk
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 ¶
func (u *IdentityVerificationRequestUpsertBulk) SetFeeReclaimed(v bool) *IdentityVerificationRequestUpsertBulk
SetFeeReclaimed sets the "fee_reclaimed" field.
func (*IdentityVerificationRequestUpsertBulk) SetLastURLCreatedAt ¶
func (u *IdentityVerificationRequestUpsertBulk) SetLastURLCreatedAt(v time.Time) *IdentityVerificationRequestUpsertBulk
SetLastURLCreatedAt sets the "last_url_created_at" field.
func (*IdentityVerificationRequestUpsertBulk) SetPlatform ¶
func (u *IdentityVerificationRequestUpsertBulk) SetPlatform(v identityverificationrequest.Platform) *IdentityVerificationRequestUpsertBulk
SetPlatform sets the "platform" field.
func (*IdentityVerificationRequestUpsertBulk) SetPlatformRef ¶
func (u *IdentityVerificationRequestUpsertBulk) SetPlatformRef(v string) *IdentityVerificationRequestUpsertBulk
SetPlatformRef sets the "platform_ref" field.
func (*IdentityVerificationRequestUpsertBulk) SetStatus ¶
func (u *IdentityVerificationRequestUpsertBulk) SetStatus(v identityverificationrequest.Status) *IdentityVerificationRequestUpsertBulk
SetStatus sets the "status" field.
func (*IdentityVerificationRequestUpsertBulk) SetUpdatedAt ¶
func (u *IdentityVerificationRequestUpsertBulk) SetUpdatedAt(v time.Time) *IdentityVerificationRequestUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*IdentityVerificationRequestUpsertBulk) SetVerificationURL ¶
func (u *IdentityVerificationRequestUpsertBulk) SetVerificationURL(v string) *IdentityVerificationRequestUpsertBulk
SetVerificationURL sets the "verification_url" field.
func (*IdentityVerificationRequestUpsertBulk) SetWalletAddress ¶
func (u *IdentityVerificationRequestUpsertBulk) SetWalletAddress(v string) *IdentityVerificationRequestUpsertBulk
SetWalletAddress sets the "wallet_address" field.
func (*IdentityVerificationRequestUpsertBulk) SetWalletSignature ¶
func (u *IdentityVerificationRequestUpsertBulk) SetWalletSignature(v string) *IdentityVerificationRequestUpsertBulk
SetWalletSignature sets the "wallet_signature" field.
func (*IdentityVerificationRequestUpsertBulk) Update ¶
func (u *IdentityVerificationRequestUpsertBulk) Update(set func(*IdentityVerificationRequestUpsert)) *IdentityVerificationRequestUpsertBulk
Update allows overriding fields `UPDATE` values. See the IdentityVerificationRequestCreateBulk.OnConflict documentation for more info.
func (*IdentityVerificationRequestUpsertBulk) UpdateFeeReclaimed ¶
func (u *IdentityVerificationRequestUpsertBulk) UpdateFeeReclaimed() *IdentityVerificationRequestUpsertBulk
UpdateFeeReclaimed sets the "fee_reclaimed" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertBulk) UpdateLastURLCreatedAt ¶
func (u *IdentityVerificationRequestUpsertBulk) UpdateLastURLCreatedAt() *IdentityVerificationRequestUpsertBulk
UpdateLastURLCreatedAt sets the "last_url_created_at" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertBulk) UpdateNewValues ¶
func (u *IdentityVerificationRequestUpsertBulk) UpdateNewValues() *IdentityVerificationRequestUpsertBulk
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 ¶
func (u *IdentityVerificationRequestUpsertBulk) UpdatePlatform() *IdentityVerificationRequestUpsertBulk
UpdatePlatform sets the "platform" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertBulk) UpdatePlatformRef ¶
func (u *IdentityVerificationRequestUpsertBulk) UpdatePlatformRef() *IdentityVerificationRequestUpsertBulk
UpdatePlatformRef sets the "platform_ref" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertBulk) UpdateStatus ¶
func (u *IdentityVerificationRequestUpsertBulk) UpdateStatus() *IdentityVerificationRequestUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertBulk) UpdateUpdatedAt ¶
func (u *IdentityVerificationRequestUpsertBulk) UpdateUpdatedAt() *IdentityVerificationRequestUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertBulk) UpdateVerificationURL ¶
func (u *IdentityVerificationRequestUpsertBulk) UpdateVerificationURL() *IdentityVerificationRequestUpsertBulk
UpdateVerificationURL sets the "verification_url" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertBulk) UpdateWalletAddress ¶
func (u *IdentityVerificationRequestUpsertBulk) UpdateWalletAddress() *IdentityVerificationRequestUpsertBulk
UpdateWalletAddress sets the "wallet_address" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertBulk) UpdateWalletSignature ¶
func (u *IdentityVerificationRequestUpsertBulk) UpdateWalletSignature() *IdentityVerificationRequestUpsertBulk
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 ¶
func (u *IdentityVerificationRequestUpsertOne) DoNothing() *IdentityVerificationRequestUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*IdentityVerificationRequestUpsertOne) Exec ¶
func (u *IdentityVerificationRequestUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*IdentityVerificationRequestUpsertOne) ExecX ¶
func (u *IdentityVerificationRequestUpsertOne) ExecX(ctx context.Context)
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 ¶
func (u *IdentityVerificationRequestUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*IdentityVerificationRequestUpsertOne) Ignore ¶
func (u *IdentityVerificationRequestUpsertOne) Ignore() *IdentityVerificationRequestUpsertOne
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 ¶
func (u *IdentityVerificationRequestUpsertOne) SetFeeReclaimed(v bool) *IdentityVerificationRequestUpsertOne
SetFeeReclaimed sets the "fee_reclaimed" field.
func (*IdentityVerificationRequestUpsertOne) SetLastURLCreatedAt ¶
func (u *IdentityVerificationRequestUpsertOne) SetLastURLCreatedAt(v time.Time) *IdentityVerificationRequestUpsertOne
SetLastURLCreatedAt sets the "last_url_created_at" field.
func (*IdentityVerificationRequestUpsertOne) SetPlatform ¶
func (u *IdentityVerificationRequestUpsertOne) SetPlatform(v identityverificationrequest.Platform) *IdentityVerificationRequestUpsertOne
SetPlatform sets the "platform" field.
func (*IdentityVerificationRequestUpsertOne) SetPlatformRef ¶
func (u *IdentityVerificationRequestUpsertOne) SetPlatformRef(v string) *IdentityVerificationRequestUpsertOne
SetPlatformRef sets the "platform_ref" field.
func (*IdentityVerificationRequestUpsertOne) SetStatus ¶
func (u *IdentityVerificationRequestUpsertOne) SetStatus(v identityverificationrequest.Status) *IdentityVerificationRequestUpsertOne
SetStatus sets the "status" field.
func (*IdentityVerificationRequestUpsertOne) SetUpdatedAt ¶
func (u *IdentityVerificationRequestUpsertOne) SetUpdatedAt(v time.Time) *IdentityVerificationRequestUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*IdentityVerificationRequestUpsertOne) SetVerificationURL ¶
func (u *IdentityVerificationRequestUpsertOne) SetVerificationURL(v string) *IdentityVerificationRequestUpsertOne
SetVerificationURL sets the "verification_url" field.
func (*IdentityVerificationRequestUpsertOne) SetWalletAddress ¶
func (u *IdentityVerificationRequestUpsertOne) SetWalletAddress(v string) *IdentityVerificationRequestUpsertOne
SetWalletAddress sets the "wallet_address" field.
func (*IdentityVerificationRequestUpsertOne) SetWalletSignature ¶
func (u *IdentityVerificationRequestUpsertOne) SetWalletSignature(v string) *IdentityVerificationRequestUpsertOne
SetWalletSignature sets the "wallet_signature" field.
func (*IdentityVerificationRequestUpsertOne) Update ¶
func (u *IdentityVerificationRequestUpsertOne) Update(set func(*IdentityVerificationRequestUpsert)) *IdentityVerificationRequestUpsertOne
Update allows overriding fields `UPDATE` values. See the IdentityVerificationRequestCreate.OnConflict documentation for more info.
func (*IdentityVerificationRequestUpsertOne) UpdateFeeReclaimed ¶
func (u *IdentityVerificationRequestUpsertOne) UpdateFeeReclaimed() *IdentityVerificationRequestUpsertOne
UpdateFeeReclaimed sets the "fee_reclaimed" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertOne) UpdateLastURLCreatedAt ¶
func (u *IdentityVerificationRequestUpsertOne) UpdateLastURLCreatedAt() *IdentityVerificationRequestUpsertOne
UpdateLastURLCreatedAt sets the "last_url_created_at" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertOne) UpdateNewValues ¶
func (u *IdentityVerificationRequestUpsertOne) UpdateNewValues() *IdentityVerificationRequestUpsertOne
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 ¶
func (u *IdentityVerificationRequestUpsertOne) UpdatePlatform() *IdentityVerificationRequestUpsertOne
UpdatePlatform sets the "platform" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertOne) UpdatePlatformRef ¶
func (u *IdentityVerificationRequestUpsertOne) UpdatePlatformRef() *IdentityVerificationRequestUpsertOne
UpdatePlatformRef sets the "platform_ref" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertOne) UpdateStatus ¶
func (u *IdentityVerificationRequestUpsertOne) UpdateStatus() *IdentityVerificationRequestUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertOne) UpdateUpdatedAt ¶
func (u *IdentityVerificationRequestUpsertOne) UpdateUpdatedAt() *IdentityVerificationRequestUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertOne) UpdateVerificationURL ¶
func (u *IdentityVerificationRequestUpsertOne) UpdateVerificationURL() *IdentityVerificationRequestUpsertOne
UpdateVerificationURL sets the "verification_url" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertOne) UpdateWalletAddress ¶
func (u *IdentityVerificationRequestUpsertOne) UpdateWalletAddress() *IdentityVerificationRequestUpsertOne
UpdateWalletAddress sets the "wallet_address" field to the value that was provided on create.
func (*IdentityVerificationRequestUpsertOne) UpdateWalletSignature ¶
func (u *IdentityVerificationRequestUpsertOne) UpdateWalletSignature() *IdentityVerificationRequestUpsertOne
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.
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 ¶
func (c *InstitutionClient) DeleteOne(i *Institution) *InstitutionDeleteOne
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 ¶
func (c *InstitutionClient) UpdateOne(i *Institution) *InstitutionUpdateOne
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 ¶
func (ic *InstitutionCreate) Save(ctx context.Context) (*Institution, error)
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 ¶
func (ic *InstitutionCreate) SetType(i institution.Type) *InstitutionCreate
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 ¶
func (icb *InstitutionCreateBulk) OnConflict(opts ...sql.ConflictOption) *InstitutionUpsertBulk
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 ¶
func (id *InstitutionDelete) Where(ps ...predicate.Institution) *InstitutionDelete
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 ¶
func (ido *InstitutionDeleteOne) Where(ps ...predicate.Institution) *InstitutionDeleteOne
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*InstitutionGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*InstitutionGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*InstitutionGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*InstitutionGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*InstitutionGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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 ¶
func (iq *InstitutionQuery) Order(o ...institution.OrderOption) *InstitutionQuery
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 ¶
func (iq *InstitutionQuery) Where(ps ...predicate.Institution) *InstitutionQuery
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*InstitutionSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*InstitutionSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*InstitutionSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*InstitutionSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*InstitutionSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (iu *InstitutionUpdate) SetType(i institution.Type) *InstitutionUpdate
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 ¶
func (iu *InstitutionUpdate) Where(ps ...predicate.Institution) *InstitutionUpdate
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 ¶
func (iuo *InstitutionUpdateOne) Save(ctx context.Context) (*Institution, error)
Save executes the query and returns the updated Institution entity.
func (*InstitutionUpdateOne) SaveX ¶
func (iuo *InstitutionUpdateOne) SaveX(ctx context.Context) *Institution
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 ¶
func (iuo *InstitutionUpdateOne) SetCode(s string) *InstitutionUpdateOne
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 ¶
func (iuo *InstitutionUpdateOne) SetName(s string) *InstitutionUpdateOne
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 ¶
func (iuo *InstitutionUpdateOne) SetType(i institution.Type) *InstitutionUpdateOne
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 ¶
func (iuo *InstitutionUpdateOne) Where(ps ...predicate.Institution) *InstitutionUpdateOne
Where appends a list predicates to the InstitutionUpdate builder.
type InstitutionUpsert ¶
InstitutionUpsert is the "OnConflict" setter.
func (*InstitutionUpsert) SetCode ¶
func (u *InstitutionUpsert) SetCode(v string) *InstitutionUpsert
SetCode sets the "code" field.
func (*InstitutionUpsert) SetName ¶
func (u *InstitutionUpsert) SetName(v string) *InstitutionUpsert
SetName sets the "name" field.
func (*InstitutionUpsert) SetType ¶
func (u *InstitutionUpsert) SetType(v institution.Type) *InstitutionUpsert
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 ¶
func (u *InstitutionUpsertBulk) DoNothing() *InstitutionUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*InstitutionUpsertBulk) Exec ¶
func (u *InstitutionUpsertBulk) Exec(ctx context.Context) error
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 ¶
func (u *InstitutionUpsertBulk) Ignore() *InstitutionUpsertBulk
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 ¶
func (u *InstitutionUpsertBulk) SetCode(v string) *InstitutionUpsertBulk
SetCode sets the "code" field.
func (*InstitutionUpsertBulk) SetName ¶
func (u *InstitutionUpsertBulk) SetName(v string) *InstitutionUpsertBulk
SetName sets the "name" field.
func (*InstitutionUpsertBulk) SetType ¶
func (u *InstitutionUpsertBulk) SetType(v institution.Type) *InstitutionUpsertBulk
SetType sets the "type" field.
func (*InstitutionUpsertBulk) SetUpdatedAt ¶
func (u *InstitutionUpsertBulk) SetUpdatedAt(v time.Time) *InstitutionUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*InstitutionUpsertBulk) Update ¶
func (u *InstitutionUpsertBulk) Update(set func(*InstitutionUpsert)) *InstitutionUpsertBulk
Update allows overriding fields `UPDATE` values. See the InstitutionCreateBulk.OnConflict documentation for more info.
func (*InstitutionUpsertBulk) UpdateCode ¶
func (u *InstitutionUpsertBulk) UpdateCode() *InstitutionUpsertBulk
UpdateCode sets the "code" field to the value that was provided on create.
func (*InstitutionUpsertBulk) UpdateName ¶
func (u *InstitutionUpsertBulk) UpdateName() *InstitutionUpsertBulk
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 ¶
func (u *InstitutionUpsertBulk) UpdateType() *InstitutionUpsertBulk
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 ¶
func (u *InstitutionUpsertOne) DoNothing() *InstitutionUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*InstitutionUpsertOne) Exec ¶
func (u *InstitutionUpsertOne) Exec(ctx context.Context) error
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 ¶
func (u *InstitutionUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*InstitutionUpsertOne) Ignore ¶
func (u *InstitutionUpsertOne) Ignore() *InstitutionUpsertOne
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 ¶
func (u *InstitutionUpsertOne) SetCode(v string) *InstitutionUpsertOne
SetCode sets the "code" field.
func (*InstitutionUpsertOne) SetName ¶
func (u *InstitutionUpsertOne) SetName(v string) *InstitutionUpsertOne
SetName sets the "name" field.
func (*InstitutionUpsertOne) SetType ¶
func (u *InstitutionUpsertOne) SetType(v institution.Type) *InstitutionUpsertOne
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 ¶
func (u *InstitutionUpsertOne) Update(set func(*InstitutionUpsert)) *InstitutionUpsertOne
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.
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 ¶
func (c *KYBProfileClient) Get(ctx context.Context, id uuid.UUID) (*KYBProfile, error)
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 ¶
func (kpd *KYBProfileDelete) Where(ps ...predicate.KYBProfile) *KYBProfileDelete
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 ¶
func (kpdo *KYBProfileDeleteOne) Where(ps ...predicate.KYBProfile) *KYBProfileDeleteOne
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*KYBProfileGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*KYBProfileGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*KYBProfileGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*KYBProfileGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*KYBProfileGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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 ¶
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) 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 ¶
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) 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 ¶
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 ¶
func (kpq *KYBProfileQuery) Order(o ...kybprofile.OrderOption) *KYBProfileQuery
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 ¶
func (kpq *KYBProfileQuery) Where(ps ...predicate.KYBProfile) *KYBProfileQuery
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*KYBProfileSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*KYBProfileSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*KYBProfileSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*KYBProfileSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*KYBProfileSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (kpu *KYBProfileUpdate) Where(ps ...predicate.KYBProfile) *KYBProfileUpdate
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 ¶
func (kpuo *KYBProfileUpdateOne) Where(ps ...predicate.KYBProfile) *KYBProfileUpdateOne
Where appends a list predicates to the KYBProfileUpdate builder.
type KYBProfileUpsert ¶
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 ¶
func (u *KYBProfileUpsertBulk) DoNothing() *KYBProfileUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*KYBProfileUpsertBulk) Exec ¶
func (u *KYBProfileUpsertBulk) Exec(ctx context.Context) error
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 ¶
func (u *KYBProfileUpsertBulk) Ignore() *KYBProfileUpsertBulk
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 ¶
func (u *KYBProfileUpsertBulk) Update(set func(*KYBProfileUpsert)) *KYBProfileUpsertBulk
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 ¶
func (u *KYBProfileUpsertOne) Exec(ctx context.Context) error
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 ¶
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*KYBProfileUpsertOne) IDX ¶
func (u *KYBProfileUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*KYBProfileUpsertOne) Ignore ¶
func (u *KYBProfileUpsertOne) Ignore() *KYBProfileUpsertOne
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 ¶
func (u *KYBProfileUpsertOne) Update(set func(*KYBProfileUpsert)) *KYBProfileUpsertOne
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 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.
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 ¶
func (c *LinkedAddressClient) Create() *LinkedAddressCreate
Create returns a builder for creating a LinkedAddress entity.
func (*LinkedAddressClient) CreateBulk ¶
func (c *LinkedAddressClient) CreateBulk(builders ...*LinkedAddressCreate) *LinkedAddressCreateBulk
CreateBulk returns a builder for creating a bulk of LinkedAddress entities.
func (*LinkedAddressClient) Delete ¶
func (c *LinkedAddressClient) Delete() *LinkedAddressDelete
Delete returns a delete builder for LinkedAddress.
func (*LinkedAddressClient) DeleteOne ¶
func (c *LinkedAddressClient) DeleteOne(la *LinkedAddress) *LinkedAddressDeleteOne
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 ¶
func (c *LinkedAddressClient) Get(ctx context.Context, id int) (*LinkedAddress, error)
Get returns a LinkedAddress entity by its id.
func (*LinkedAddressClient) GetX ¶
func (c *LinkedAddressClient) GetX(ctx context.Context, id int) *LinkedAddress
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 ¶
func (c *LinkedAddressClient) Query() *LinkedAddressQuery
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 ¶
func (c *LinkedAddressClient) Update() *LinkedAddressUpdate
Update returns an update builder for LinkedAddress.
func (*LinkedAddressClient) UpdateOne ¶
func (c *LinkedAddressClient) UpdateOne(la *LinkedAddress) *LinkedAddressUpdateOne
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 ¶
func (lac *LinkedAddressCreate) OnConflict(opts ...sql.ConflictOption) *LinkedAddressUpsertOne
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 ¶
func (lac *LinkedAddressCreate) Save(ctx context.Context) (*LinkedAddress, error)
Save creates the LinkedAddress in the database.
func (*LinkedAddressCreate) SaveX ¶
func (lac *LinkedAddressCreate) SaveX(ctx context.Context) *LinkedAddress
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 ¶
func (lacb *LinkedAddressCreateBulk) OnConflict(opts ...sql.ConflictOption) *LinkedAddressUpsertBulk
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 ¶
func (lacb *LinkedAddressCreateBulk) Save(ctx context.Context) ([]*LinkedAddress, error)
Save creates the LinkedAddress entities in the database.
func (*LinkedAddressCreateBulk) SaveX ¶
func (lacb *LinkedAddressCreateBulk) SaveX(ctx context.Context) []*LinkedAddress
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 ¶
func (lad *LinkedAddressDelete) Where(ps ...predicate.LinkedAddress) *LinkedAddressDelete
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 ¶
func (lado *LinkedAddressDeleteOne) Where(ps ...predicate.LinkedAddress) *LinkedAddressDeleteOne
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*LinkedAddressGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*LinkedAddressGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*LinkedAddressGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*LinkedAddressGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*LinkedAddressGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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 ¶
func (m *LinkedAddressMutation) Where(ps ...predicate.LinkedAddress)
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 ¶
func (laq *LinkedAddressQuery) All(ctx context.Context) ([]*LinkedAddress, error)
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 ¶
func (laq *LinkedAddressQuery) First(ctx context.Context) (*LinkedAddress, error)
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 ¶
func (laq *LinkedAddressQuery) Only(ctx context.Context) (*LinkedAddress, error)
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 ¶
func (laq *LinkedAddressQuery) OnlyX(ctx context.Context) *LinkedAddress
OnlyX is like Only, but panics if an error occurs.
func (*LinkedAddressQuery) Order ¶
func (laq *LinkedAddressQuery) Order(o ...linkedaddress.OrderOption) *LinkedAddressQuery
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 ¶
func (laq *LinkedAddressQuery) Where(ps ...predicate.LinkedAddress) *LinkedAddressQuery
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*LinkedAddressSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*LinkedAddressSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*LinkedAddressSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*LinkedAddressSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*LinkedAddressSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (lau *LinkedAddressUpdate) Where(ps ...predicate.LinkedAddress) *LinkedAddressUpdate
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 ¶
func (lauo *LinkedAddressUpdateOne) ClearSalt() *LinkedAddressUpdateOne
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 ¶
func (lauo *LinkedAddressUpdateOne) Mutation() *LinkedAddressMutation
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 ¶
func (lauo *LinkedAddressUpdateOne) Save(ctx context.Context) (*LinkedAddress, error)
Save executes the query and returns the updated LinkedAddress entity.
func (*LinkedAddressUpdateOne) SaveX ¶
func (lauo *LinkedAddressUpdateOne) SaveX(ctx context.Context) *LinkedAddress
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 ¶
func (lauo *LinkedAddressUpdateOne) SetAddress(s string) *LinkedAddressUpdateOne
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 ¶
func (lauo *LinkedAddressUpdateOne) SetSalt(b []byte) *LinkedAddressUpdateOne
SetSalt sets the "salt" field.
func (*LinkedAddressUpdateOne) SetTxHash ¶
func (lauo *LinkedAddressUpdateOne) SetTxHash(s string) *LinkedAddressUpdateOne
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 ¶
func (lauo *LinkedAddressUpdateOne) Where(ps ...predicate.LinkedAddress) *LinkedAddressUpdateOne
Where appends a list predicates to the LinkedAddressUpdate builder.
type LinkedAddressUpsert ¶
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 ¶
func (u *LinkedAddressUpsert) SetAddress(v string) *LinkedAddressUpsert
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 ¶
func (u *LinkedAddressUpsert) SetTxHash(v string) *LinkedAddressUpsert
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 ¶
func (u *LinkedAddressUpsertBulk) ClearMetadata() *LinkedAddressUpsertBulk
ClearMetadata clears the value of the "metadata" field.
func (*LinkedAddressUpsertBulk) ClearSalt ¶
func (u *LinkedAddressUpsertBulk) ClearSalt() *LinkedAddressUpsertBulk
ClearSalt clears the value of the "salt" field.
func (*LinkedAddressUpsertBulk) ClearTxHash ¶
func (u *LinkedAddressUpsertBulk) ClearTxHash() *LinkedAddressUpsertBulk
ClearTxHash clears the value of the "tx_hash" field.
func (*LinkedAddressUpsertBulk) DoNothing ¶
func (u *LinkedAddressUpsertBulk) DoNothing() *LinkedAddressUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*LinkedAddressUpsertBulk) Exec ¶
func (u *LinkedAddressUpsertBulk) Exec(ctx context.Context) error
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 ¶
func (u *LinkedAddressUpsertBulk) Ignore() *LinkedAddressUpsertBulk
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 ¶
func (u *LinkedAddressUpsertBulk) SetAccountName(v string) *LinkedAddressUpsertBulk
SetAccountName sets the "account_name" field.
func (*LinkedAddressUpsertBulk) SetAddress ¶
func (u *LinkedAddressUpsertBulk) SetAddress(v string) *LinkedAddressUpsertBulk
SetAddress sets the "address" field.
func (*LinkedAddressUpsertBulk) SetInstitution ¶
func (u *LinkedAddressUpsertBulk) SetInstitution(v string) *LinkedAddressUpsertBulk
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 ¶
func (u *LinkedAddressUpsertBulk) SetOwnerAddress(v string) *LinkedAddressUpsertBulk
SetOwnerAddress sets the "owner_address" field.
func (*LinkedAddressUpsertBulk) SetSalt ¶
func (u *LinkedAddressUpsertBulk) SetSalt(v []byte) *LinkedAddressUpsertBulk
SetSalt sets the "salt" field.
func (*LinkedAddressUpsertBulk) SetTxHash ¶
func (u *LinkedAddressUpsertBulk) SetTxHash(v string) *LinkedAddressUpsertBulk
SetTxHash sets the "tx_hash" field.
func (*LinkedAddressUpsertBulk) SetUpdatedAt ¶
func (u *LinkedAddressUpsertBulk) SetUpdatedAt(v time.Time) *LinkedAddressUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*LinkedAddressUpsertBulk) Update ¶
func (u *LinkedAddressUpsertBulk) Update(set func(*LinkedAddressUpsert)) *LinkedAddressUpsertBulk
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 ¶
func (u *LinkedAddressUpsertBulk) UpdateAddress() *LinkedAddressUpsertBulk
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 ¶
func (u *LinkedAddressUpsertBulk) UpdateSalt() *LinkedAddressUpsertBulk
UpdateSalt sets the "salt" field to the value that was provided on create.
func (*LinkedAddressUpsertBulk) UpdateTxHash ¶
func (u *LinkedAddressUpsertBulk) UpdateTxHash() *LinkedAddressUpsertBulk
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 ¶
func (u *LinkedAddressUpsertOne) ClearSalt() *LinkedAddressUpsertOne
ClearSalt clears the value of the "salt" field.
func (*LinkedAddressUpsertOne) ClearTxHash ¶
func (u *LinkedAddressUpsertOne) ClearTxHash() *LinkedAddressUpsertOne
ClearTxHash clears the value of the "tx_hash" field.
func (*LinkedAddressUpsertOne) DoNothing ¶
func (u *LinkedAddressUpsertOne) DoNothing() *LinkedAddressUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*LinkedAddressUpsertOne) Exec ¶
func (u *LinkedAddressUpsertOne) Exec(ctx context.Context) error
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 ¶
func (u *LinkedAddressUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*LinkedAddressUpsertOne) Ignore ¶
func (u *LinkedAddressUpsertOne) Ignore() *LinkedAddressUpsertOne
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 ¶
func (u *LinkedAddressUpsertOne) SetAccountName(v string) *LinkedAddressUpsertOne
SetAccountName sets the "account_name" field.
func (*LinkedAddressUpsertOne) SetAddress ¶
func (u *LinkedAddressUpsertOne) SetAddress(v string) *LinkedAddressUpsertOne
SetAddress sets the "address" field.
func (*LinkedAddressUpsertOne) SetInstitution ¶
func (u *LinkedAddressUpsertOne) SetInstitution(v string) *LinkedAddressUpsertOne
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 ¶
func (u *LinkedAddressUpsertOne) SetSalt(v []byte) *LinkedAddressUpsertOne
SetSalt sets the "salt" field.
func (*LinkedAddressUpsertOne) SetTxHash ¶
func (u *LinkedAddressUpsertOne) SetTxHash(v string) *LinkedAddressUpsertOne
SetTxHash sets the "tx_hash" field.
func (*LinkedAddressUpsertOne) SetUpdatedAt ¶
func (u *LinkedAddressUpsertOne) SetUpdatedAt(v time.Time) *LinkedAddressUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*LinkedAddressUpsertOne) Update ¶
func (u *LinkedAddressUpsertOne) Update(set func(*LinkedAddressUpsert)) *LinkedAddressUpsertOne
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 ¶
func (u *LinkedAddressUpsertOne) UpdateSalt() *LinkedAddressUpsertOne
UpdateSalt sets the "salt" field to the value that was provided on create.
func (*LinkedAddressUpsertOne) UpdateTxHash ¶
func (u *LinkedAddressUpsertOne) UpdateTxHash() *LinkedAddressUpsertOne
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 ¶
func (lof *LockOrderFulfillment) Unwrap() *LockOrderFulfillment
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 ¶
func (lof *LockOrderFulfillment) Update() *LockOrderFulfillmentUpdateOne
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.
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 ¶
func (c *LockOrderFulfillmentClient) Create() *LockOrderFulfillmentCreate
Create returns a builder for creating a LockOrderFulfillment entity.
func (*LockOrderFulfillmentClient) CreateBulk ¶
func (c *LockOrderFulfillmentClient) CreateBulk(builders ...*LockOrderFulfillmentCreate) *LockOrderFulfillmentCreateBulk
CreateBulk returns a builder for creating a bulk of LockOrderFulfillment entities.
func (*LockOrderFulfillmentClient) Delete ¶
func (c *LockOrderFulfillmentClient) Delete() *LockOrderFulfillmentDelete
Delete returns a delete builder for LockOrderFulfillment.
func (*LockOrderFulfillmentClient) DeleteOne ¶
func (c *LockOrderFulfillmentClient) DeleteOne(lof *LockOrderFulfillment) *LockOrderFulfillmentDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*LockOrderFulfillmentClient) DeleteOneID ¶
func (c *LockOrderFulfillmentClient) DeleteOneID(id uuid.UUID) *LockOrderFulfillmentDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*LockOrderFulfillmentClient) Get ¶
func (c *LockOrderFulfillmentClient) Get(ctx context.Context, id uuid.UUID) (*LockOrderFulfillment, error)
Get returns a LockOrderFulfillment entity by its id.
func (*LockOrderFulfillmentClient) GetX ¶
func (c *LockOrderFulfillmentClient) GetX(ctx context.Context, id uuid.UUID) *LockOrderFulfillment
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 ¶
func (c *LockOrderFulfillmentClient) MapCreateBulk(slice any, setFunc func(*LockOrderFulfillmentCreate, int)) *LockOrderFulfillmentCreateBulk
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 ¶
func (c *LockOrderFulfillmentClient) Query() *LockOrderFulfillmentQuery
Query returns a query builder for LockOrderFulfillment.
func (*LockOrderFulfillmentClient) QueryOrder ¶
func (c *LockOrderFulfillmentClient) QueryOrder(lof *LockOrderFulfillment) *LockPaymentOrderQuery
QueryOrder queries the order edge of a LockOrderFulfillment.
func (*LockOrderFulfillmentClient) Update ¶
func (c *LockOrderFulfillmentClient) Update() *LockOrderFulfillmentUpdate
Update returns an update builder for LockOrderFulfillment.
func (*LockOrderFulfillmentClient) UpdateOne ¶
func (c *LockOrderFulfillmentClient) UpdateOne(lof *LockOrderFulfillment) *LockOrderFulfillmentUpdateOne
UpdateOne returns an update builder for the given entity.
func (*LockOrderFulfillmentClient) UpdateOneID ¶
func (c *LockOrderFulfillmentClient) UpdateOneID(id uuid.UUID) *LockOrderFulfillmentUpdateOne
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 ¶
func (lofc *LockOrderFulfillmentCreate) Exec(ctx context.Context) error
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 ¶
func (lofc *LockOrderFulfillmentCreate) Mutation() *LockOrderFulfillmentMutation
Mutation returns the LockOrderFulfillmentMutation object of the builder.
func (*LockOrderFulfillmentCreate) OnConflict ¶
func (lofc *LockOrderFulfillmentCreate) OnConflict(opts ...sql.ConflictOption) *LockOrderFulfillmentUpsertOne
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 ¶
func (lofc *LockOrderFulfillmentCreate) Save(ctx context.Context) (*LockOrderFulfillment, error)
Save creates the LockOrderFulfillment in the database.
func (*LockOrderFulfillmentCreate) SaveX ¶
func (lofc *LockOrderFulfillmentCreate) SaveX(ctx context.Context) *LockOrderFulfillment
SaveX calls Save and panics if Save returns an error.
func (*LockOrderFulfillmentCreate) SetCreatedAt ¶
func (lofc *LockOrderFulfillmentCreate) SetCreatedAt(t time.Time) *LockOrderFulfillmentCreate
SetCreatedAt sets the "created_at" field.
func (*LockOrderFulfillmentCreate) SetID ¶
func (lofc *LockOrderFulfillmentCreate) SetID(u uuid.UUID) *LockOrderFulfillmentCreate
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 ¶
func (lofc *LockOrderFulfillmentCreate) SetNillableID(u *uuid.UUID) *LockOrderFulfillmentCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*LockOrderFulfillmentCreate) SetNillablePsp ¶
func (lofc *LockOrderFulfillmentCreate) SetNillablePsp(s *string) *LockOrderFulfillmentCreate
SetNillablePsp sets the "psp" field if the given value is not nil.
func (*LockOrderFulfillmentCreate) SetNillableTxID ¶
func (lofc *LockOrderFulfillmentCreate) SetNillableTxID(s *string) *LockOrderFulfillmentCreate
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 ¶
func (lofc *LockOrderFulfillmentCreate) SetNillableValidationStatus(ls *lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentCreate
SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.
func (*LockOrderFulfillmentCreate) SetOrder ¶
func (lofc *LockOrderFulfillmentCreate) SetOrder(l *LockPaymentOrder) *LockOrderFulfillmentCreate
SetOrder sets the "order" edge to the LockPaymentOrder entity.
func (*LockOrderFulfillmentCreate) SetOrderID ¶
func (lofc *LockOrderFulfillmentCreate) SetOrderID(id uuid.UUID) *LockOrderFulfillmentCreate
SetOrderID sets the "order" edge to the LockPaymentOrder entity by ID.
func (*LockOrderFulfillmentCreate) SetPsp ¶
func (lofc *LockOrderFulfillmentCreate) SetPsp(s string) *LockOrderFulfillmentCreate
SetPsp sets the "psp" field.
func (*LockOrderFulfillmentCreate) SetTxID ¶
func (lofc *LockOrderFulfillmentCreate) SetTxID(s string) *LockOrderFulfillmentCreate
SetTxID sets the "tx_id" field.
func (*LockOrderFulfillmentCreate) SetUpdatedAt ¶
func (lofc *LockOrderFulfillmentCreate) SetUpdatedAt(t time.Time) *LockOrderFulfillmentCreate
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 ¶
func (lofc *LockOrderFulfillmentCreate) SetValidationStatus(ls lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentCreate
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 ¶
func (lofcb *LockOrderFulfillmentCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*LockOrderFulfillmentCreateBulk) ExecX ¶
func (lofcb *LockOrderFulfillmentCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*LockOrderFulfillmentCreateBulk) OnConflict ¶
func (lofcb *LockOrderFulfillmentCreateBulk) OnConflict(opts ...sql.ConflictOption) *LockOrderFulfillmentUpsertBulk
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 ¶
func (lofcb *LockOrderFulfillmentCreateBulk) Save(ctx context.Context) ([]*LockOrderFulfillment, error)
Save creates the LockOrderFulfillment entities in the database.
func (*LockOrderFulfillmentCreateBulk) SaveX ¶
func (lofcb *LockOrderFulfillmentCreateBulk) SaveX(ctx context.Context) []*LockOrderFulfillment
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 ¶
func (lofd *LockOrderFulfillmentDelete) Where(ps ...predicate.LockOrderFulfillment) *LockOrderFulfillmentDelete
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 ¶
func (lofdo *LockOrderFulfillmentDeleteOne) Exec(ctx context.Context) error
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 ¶
func (lofdo *LockOrderFulfillmentDeleteOne) Where(ps ...predicate.LockOrderFulfillment) *LockOrderFulfillmentDeleteOne
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 ¶
func (e LockOrderFulfillmentEdges) OrderOrErr() (*LockPaymentOrder, error)
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 ¶
func (lofgb *LockOrderFulfillmentGroupBy) Aggregate(fns ...AggregateFunc) *LockOrderFulfillmentGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*LockOrderFulfillmentGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*LockOrderFulfillmentGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*LockOrderFulfillmentGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*LockOrderFulfillmentGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*LockOrderFulfillmentGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*LockOrderFulfillmentGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*LockOrderFulfillmentGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*LockOrderFulfillmentGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*LockOrderFulfillmentGroupBy) StringX ¶
StringX is like String, 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 ¶
func (m LockOrderFulfillmentMutation) 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 (*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 ¶
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 ¶
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 ¶
func (m *LockOrderFulfillmentMutation) OldValidationStatus(ctx context.Context) (v lockorderfulfillment.ValidationStatus, err error)
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 ¶
func (m *LockOrderFulfillmentMutation) Op() 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 ¶
func (m *LockOrderFulfillmentMutation) SetValidationStatus(ls lockorderfulfillment.ValidationStatus)
SetValidationStatus sets the "validation_status" field.
func (LockOrderFulfillmentMutation) Tx ¶
func (m LockOrderFulfillmentMutation) Tx() (*Tx, error)
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 ¶
func (m *LockOrderFulfillmentMutation) Type() string
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 ¶
func (m *LockOrderFulfillmentMutation) Where(ps ...predicate.LockOrderFulfillment)
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 ¶
func (lofq *LockOrderFulfillmentQuery) Aggregate(fns ...AggregateFunc) *LockOrderFulfillmentSelect
Aggregate returns a LockOrderFulfillmentSelect configured with the given aggregations.
func (*LockOrderFulfillmentQuery) All ¶
func (lofq *LockOrderFulfillmentQuery) All(ctx context.Context) ([]*LockOrderFulfillment, error)
All executes the query and returns a list of LockOrderFulfillments.
func (*LockOrderFulfillmentQuery) AllX ¶
func (lofq *LockOrderFulfillmentQuery) AllX(ctx context.Context) []*LockOrderFulfillment
AllX is like All, but panics if an error occurs.
func (*LockOrderFulfillmentQuery) Clone ¶
func (lofq *LockOrderFulfillmentQuery) Clone() *LockOrderFulfillmentQuery
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 ¶
func (lofq *LockOrderFulfillmentQuery) First(ctx context.Context) (*LockOrderFulfillment, error)
First returns the first LockOrderFulfillment entity from the query. Returns a *NotFoundError when no LockOrderFulfillment was found.
func (*LockOrderFulfillmentQuery) FirstID ¶
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 ¶
func (lofq *LockOrderFulfillmentQuery) FirstX(ctx context.Context) *LockOrderFulfillment
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 ¶
IDs executes the query and returns a list of LockOrderFulfillment IDs.
func (*LockOrderFulfillmentQuery) IDsX ¶
func (lofq *LockOrderFulfillmentQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*LockOrderFulfillmentQuery) Limit ¶
func (lofq *LockOrderFulfillmentQuery) Limit(limit int) *LockOrderFulfillmentQuery
Limit the number of records to be returned by this query.
func (*LockOrderFulfillmentQuery) Offset ¶
func (lofq *LockOrderFulfillmentQuery) Offset(offset int) *LockOrderFulfillmentQuery
Offset to start from.
func (*LockOrderFulfillmentQuery) Only ¶
func (lofq *LockOrderFulfillmentQuery) Only(ctx context.Context) (*LockOrderFulfillment, error)
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 ¶
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 ¶
func (lofq *LockOrderFulfillmentQuery) OnlyX(ctx context.Context) *LockOrderFulfillment
OnlyX is like Only, but panics if an error occurs.
func (*LockOrderFulfillmentQuery) Order ¶
func (lofq *LockOrderFulfillmentQuery) Order(o ...lockorderfulfillment.OrderOption) *LockOrderFulfillmentQuery
Order specifies how the records should be ordered.
func (*LockOrderFulfillmentQuery) QueryOrder ¶
func (lofq *LockOrderFulfillmentQuery) QueryOrder() *LockPaymentOrderQuery
QueryOrder chains the current query on the "order" edge.
func (*LockOrderFulfillmentQuery) Select ¶
func (lofq *LockOrderFulfillmentQuery) Select(fields ...string) *LockOrderFulfillmentSelect
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 ¶
func (lofq *LockOrderFulfillmentQuery) Unique(unique bool) *LockOrderFulfillmentQuery
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 ¶
func (lofq *LockOrderFulfillmentQuery) Where(ps ...predicate.LockOrderFulfillment) *LockOrderFulfillmentQuery
Where adds a new predicate for the LockOrderFulfillmentQuery builder.
func (*LockOrderFulfillmentQuery) WithOrder ¶
func (lofq *LockOrderFulfillmentQuery) WithOrder(opts ...func(*LockPaymentOrderQuery)) *LockOrderFulfillmentQuery
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 ¶
func (lofs *LockOrderFulfillmentSelect) Aggregate(fns ...AggregateFunc) *LockOrderFulfillmentSelect
Aggregate adds the given aggregation functions to the selector query.
func (*LockOrderFulfillmentSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*LockOrderFulfillmentSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*LockOrderFulfillmentSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*LockOrderFulfillmentSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*LockOrderFulfillmentSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*LockOrderFulfillmentSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*LockOrderFulfillmentSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*LockOrderFulfillmentSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type LockOrderFulfillmentUpdate ¶
type LockOrderFulfillmentUpdate struct {
// contains filtered or unexported fields
}
LockOrderFulfillmentUpdate is the builder for updating LockOrderFulfillment entities.
func (*LockOrderFulfillmentUpdate) ClearOrder ¶
func (lofu *LockOrderFulfillmentUpdate) ClearOrder() *LockOrderFulfillmentUpdate
ClearOrder clears the "order" edge to the LockPaymentOrder entity.
func (*LockOrderFulfillmentUpdate) ClearPsp ¶
func (lofu *LockOrderFulfillmentUpdate) ClearPsp() *LockOrderFulfillmentUpdate
ClearPsp clears the value of the "psp" field.
func (*LockOrderFulfillmentUpdate) ClearTxID ¶
func (lofu *LockOrderFulfillmentUpdate) ClearTxID() *LockOrderFulfillmentUpdate
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 ¶
func (lofu *LockOrderFulfillmentUpdate) Exec(ctx context.Context) error
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 ¶
func (lofu *LockOrderFulfillmentUpdate) Mutation() *LockOrderFulfillmentMutation
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 ¶
func (lofu *LockOrderFulfillmentUpdate) SetNillablePsp(s *string) *LockOrderFulfillmentUpdate
SetNillablePsp sets the "psp" field if the given value is not nil.
func (*LockOrderFulfillmentUpdate) SetNillableTxID ¶
func (lofu *LockOrderFulfillmentUpdate) SetNillableTxID(s *string) *LockOrderFulfillmentUpdate
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 ¶
func (lofu *LockOrderFulfillmentUpdate) SetNillableValidationStatus(ls *lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpdate
SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.
func (*LockOrderFulfillmentUpdate) SetOrder ¶
func (lofu *LockOrderFulfillmentUpdate) SetOrder(l *LockPaymentOrder) *LockOrderFulfillmentUpdate
SetOrder sets the "order" edge to the LockPaymentOrder entity.
func (*LockOrderFulfillmentUpdate) SetOrderID ¶
func (lofu *LockOrderFulfillmentUpdate) SetOrderID(id uuid.UUID) *LockOrderFulfillmentUpdate
SetOrderID sets the "order" edge to the LockPaymentOrder entity by ID.
func (*LockOrderFulfillmentUpdate) SetPsp ¶
func (lofu *LockOrderFulfillmentUpdate) SetPsp(s string) *LockOrderFulfillmentUpdate
SetPsp sets the "psp" field.
func (*LockOrderFulfillmentUpdate) SetTxID ¶
func (lofu *LockOrderFulfillmentUpdate) SetTxID(s string) *LockOrderFulfillmentUpdate
SetTxID sets the "tx_id" field.
func (*LockOrderFulfillmentUpdate) SetUpdatedAt ¶
func (lofu *LockOrderFulfillmentUpdate) SetUpdatedAt(t time.Time) *LockOrderFulfillmentUpdate
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 ¶
func (lofu *LockOrderFulfillmentUpdate) SetValidationStatus(ls lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpdate
SetValidationStatus sets the "validation_status" field.
func (*LockOrderFulfillmentUpdate) Where ¶
func (lofu *LockOrderFulfillmentUpdate) Where(ps ...predicate.LockOrderFulfillment) *LockOrderFulfillmentUpdate
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 ¶
func (lofuo *LockOrderFulfillmentUpdateOne) ClearOrder() *LockOrderFulfillmentUpdateOne
ClearOrder clears the "order" edge to the LockPaymentOrder entity.
func (*LockOrderFulfillmentUpdateOne) ClearPsp ¶
func (lofuo *LockOrderFulfillmentUpdateOne) ClearPsp() *LockOrderFulfillmentUpdateOne
ClearPsp clears the value of the "psp" field.
func (*LockOrderFulfillmentUpdateOne) ClearTxID ¶
func (lofuo *LockOrderFulfillmentUpdateOne) ClearTxID() *LockOrderFulfillmentUpdateOne
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 ¶
func (lofuo *LockOrderFulfillmentUpdateOne) Exec(ctx context.Context) error
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 ¶
func (lofuo *LockOrderFulfillmentUpdateOne) Mutation() *LockOrderFulfillmentMutation
Mutation returns the LockOrderFulfillmentMutation object of the builder.
func (*LockOrderFulfillmentUpdateOne) Save ¶
func (lofuo *LockOrderFulfillmentUpdateOne) Save(ctx context.Context) (*LockOrderFulfillment, error)
Save executes the query and returns the updated LockOrderFulfillment entity.
func (*LockOrderFulfillmentUpdateOne) SaveX ¶
func (lofuo *LockOrderFulfillmentUpdateOne) SaveX(ctx context.Context) *LockOrderFulfillment
SaveX is like Save, but panics if an error occurs.
func (*LockOrderFulfillmentUpdateOne) Select ¶
func (lofuo *LockOrderFulfillmentUpdateOne) Select(field string, fields ...string) *LockOrderFulfillmentUpdateOne
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 ¶
func (lofuo *LockOrderFulfillmentUpdateOne) SetNillablePsp(s *string) *LockOrderFulfillmentUpdateOne
SetNillablePsp sets the "psp" field if the given value is not nil.
func (*LockOrderFulfillmentUpdateOne) SetNillableTxID ¶
func (lofuo *LockOrderFulfillmentUpdateOne) SetNillableTxID(s *string) *LockOrderFulfillmentUpdateOne
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 ¶
func (lofuo *LockOrderFulfillmentUpdateOne) SetNillableValidationStatus(ls *lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpdateOne
SetNillableValidationStatus sets the "validation_status" field if the given value is not nil.
func (*LockOrderFulfillmentUpdateOne) SetOrder ¶
func (lofuo *LockOrderFulfillmentUpdateOne) SetOrder(l *LockPaymentOrder) *LockOrderFulfillmentUpdateOne
SetOrder sets the "order" edge to the LockPaymentOrder entity.
func (*LockOrderFulfillmentUpdateOne) SetOrderID ¶
func (lofuo *LockOrderFulfillmentUpdateOne) SetOrderID(id uuid.UUID) *LockOrderFulfillmentUpdateOne
SetOrderID sets the "order" edge to the LockPaymentOrder entity by ID.
func (*LockOrderFulfillmentUpdateOne) SetPsp ¶
func (lofuo *LockOrderFulfillmentUpdateOne) SetPsp(s string) *LockOrderFulfillmentUpdateOne
SetPsp sets the "psp" field.
func (*LockOrderFulfillmentUpdateOne) SetTxID ¶
func (lofuo *LockOrderFulfillmentUpdateOne) SetTxID(s string) *LockOrderFulfillmentUpdateOne
SetTxID sets the "tx_id" field.
func (*LockOrderFulfillmentUpdateOne) SetUpdatedAt ¶
func (lofuo *LockOrderFulfillmentUpdateOne) SetUpdatedAt(t time.Time) *LockOrderFulfillmentUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*LockOrderFulfillmentUpdateOne) SetValidationError ¶
func (lofuo *LockOrderFulfillmentUpdateOne) SetValidationError(s string) *LockOrderFulfillmentUpdateOne
SetValidationError sets the "validation_error" field.
func (*LockOrderFulfillmentUpdateOne) SetValidationStatus ¶
func (lofuo *LockOrderFulfillmentUpdateOne) SetValidationStatus(ls lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpdateOne
SetValidationStatus sets the "validation_status" field.
func (*LockOrderFulfillmentUpdateOne) Where ¶
func (lofuo *LockOrderFulfillmentUpdateOne) Where(ps ...predicate.LockOrderFulfillment) *LockOrderFulfillmentUpdateOne
Where appends a list predicates to the LockOrderFulfillmentUpdate builder.
type LockOrderFulfillmentUpsert ¶
LockOrderFulfillmentUpsert is the "OnConflict" setter.
func (*LockOrderFulfillmentUpsert) ClearPsp ¶
func (u *LockOrderFulfillmentUpsert) ClearPsp() *LockOrderFulfillmentUpsert
ClearPsp clears the value of the "psp" field.
func (*LockOrderFulfillmentUpsert) ClearTxID ¶
func (u *LockOrderFulfillmentUpsert) ClearTxID() *LockOrderFulfillmentUpsert
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 ¶
func (u *LockOrderFulfillmentUpsert) SetPsp(v string) *LockOrderFulfillmentUpsert
SetPsp sets the "psp" field.
func (*LockOrderFulfillmentUpsert) SetTxID ¶
func (u *LockOrderFulfillmentUpsert) SetTxID(v string) *LockOrderFulfillmentUpsert
SetTxID sets the "tx_id" field.
func (*LockOrderFulfillmentUpsert) SetUpdatedAt ¶
func (u *LockOrderFulfillmentUpsert) SetUpdatedAt(v time.Time) *LockOrderFulfillmentUpsert
SetUpdatedAt sets the "updated_at" field.
func (*LockOrderFulfillmentUpsert) SetValidationError ¶
func (u *LockOrderFulfillmentUpsert) SetValidationError(v string) *LockOrderFulfillmentUpsert
SetValidationError sets the "validation_error" field.
func (*LockOrderFulfillmentUpsert) SetValidationStatus ¶
func (u *LockOrderFulfillmentUpsert) SetValidationStatus(v lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpsert
SetValidationStatus sets the "validation_status" field.
func (*LockOrderFulfillmentUpsert) UpdatePsp ¶
func (u *LockOrderFulfillmentUpsert) UpdatePsp() *LockOrderFulfillmentUpsert
UpdatePsp sets the "psp" field to the value that was provided on create.
func (*LockOrderFulfillmentUpsert) UpdateTxID ¶
func (u *LockOrderFulfillmentUpsert) UpdateTxID() *LockOrderFulfillmentUpsert
UpdateTxID sets the "tx_id" field to the value that was provided on create.
func (*LockOrderFulfillmentUpsert) UpdateUpdatedAt ¶
func (u *LockOrderFulfillmentUpsert) UpdateUpdatedAt() *LockOrderFulfillmentUpsert
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 ¶
func (u *LockOrderFulfillmentUpsertBulk) ClearPsp() *LockOrderFulfillmentUpsertBulk
ClearPsp clears the value of the "psp" field.
func (*LockOrderFulfillmentUpsertBulk) ClearTxID ¶
func (u *LockOrderFulfillmentUpsertBulk) ClearTxID() *LockOrderFulfillmentUpsertBulk
ClearTxID clears the value of the "tx_id" field.
func (*LockOrderFulfillmentUpsertBulk) ClearValidationError ¶
func (u *LockOrderFulfillmentUpsertBulk) ClearValidationError() *LockOrderFulfillmentUpsertBulk
ClearValidationError clears the value of the "validation_error" field.
func (*LockOrderFulfillmentUpsertBulk) DoNothing ¶
func (u *LockOrderFulfillmentUpsertBulk) DoNothing() *LockOrderFulfillmentUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*LockOrderFulfillmentUpsertBulk) Exec ¶
func (u *LockOrderFulfillmentUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*LockOrderFulfillmentUpsertBulk) ExecX ¶
func (u *LockOrderFulfillmentUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*LockOrderFulfillmentUpsertBulk) Ignore ¶
func (u *LockOrderFulfillmentUpsertBulk) Ignore() *LockOrderFulfillmentUpsertBulk
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 ¶
func (u *LockOrderFulfillmentUpsertBulk) SetPsp(v string) *LockOrderFulfillmentUpsertBulk
SetPsp sets the "psp" field.
func (*LockOrderFulfillmentUpsertBulk) SetTxID ¶
func (u *LockOrderFulfillmentUpsertBulk) SetTxID(v string) *LockOrderFulfillmentUpsertBulk
SetTxID sets the "tx_id" field.
func (*LockOrderFulfillmentUpsertBulk) SetUpdatedAt ¶
func (u *LockOrderFulfillmentUpsertBulk) SetUpdatedAt(v time.Time) *LockOrderFulfillmentUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*LockOrderFulfillmentUpsertBulk) SetValidationError ¶
func (u *LockOrderFulfillmentUpsertBulk) SetValidationError(v string) *LockOrderFulfillmentUpsertBulk
SetValidationError sets the "validation_error" field.
func (*LockOrderFulfillmentUpsertBulk) SetValidationStatus ¶
func (u *LockOrderFulfillmentUpsertBulk) SetValidationStatus(v lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpsertBulk
SetValidationStatus sets the "validation_status" field.
func (*LockOrderFulfillmentUpsertBulk) Update ¶
func (u *LockOrderFulfillmentUpsertBulk) Update(set func(*LockOrderFulfillmentUpsert)) *LockOrderFulfillmentUpsertBulk
Update allows overriding fields `UPDATE` values. See the LockOrderFulfillmentCreateBulk.OnConflict documentation for more info.
func (*LockOrderFulfillmentUpsertBulk) UpdateNewValues ¶
func (u *LockOrderFulfillmentUpsertBulk) UpdateNewValues() *LockOrderFulfillmentUpsertBulk
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 ¶
func (u *LockOrderFulfillmentUpsertBulk) UpdatePsp() *LockOrderFulfillmentUpsertBulk
UpdatePsp sets the "psp" field to the value that was provided on create.
func (*LockOrderFulfillmentUpsertBulk) UpdateTxID ¶
func (u *LockOrderFulfillmentUpsertBulk) UpdateTxID() *LockOrderFulfillmentUpsertBulk
UpdateTxID sets the "tx_id" field to the value that was provided on create.
func (*LockOrderFulfillmentUpsertBulk) UpdateUpdatedAt ¶
func (u *LockOrderFulfillmentUpsertBulk) UpdateUpdatedAt() *LockOrderFulfillmentUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*LockOrderFulfillmentUpsertBulk) UpdateValidationError ¶
func (u *LockOrderFulfillmentUpsertBulk) UpdateValidationError() *LockOrderFulfillmentUpsertBulk
UpdateValidationError sets the "validation_error" field to the value that was provided on create.
func (*LockOrderFulfillmentUpsertBulk) UpdateValidationStatus ¶
func (u *LockOrderFulfillmentUpsertBulk) UpdateValidationStatus() *LockOrderFulfillmentUpsertBulk
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 ¶
func (u *LockOrderFulfillmentUpsertOne) ClearPsp() *LockOrderFulfillmentUpsertOne
ClearPsp clears the value of the "psp" field.
func (*LockOrderFulfillmentUpsertOne) ClearTxID ¶
func (u *LockOrderFulfillmentUpsertOne) ClearTxID() *LockOrderFulfillmentUpsertOne
ClearTxID clears the value of the "tx_id" field.
func (*LockOrderFulfillmentUpsertOne) ClearValidationError ¶
func (u *LockOrderFulfillmentUpsertOne) ClearValidationError() *LockOrderFulfillmentUpsertOne
ClearValidationError clears the value of the "validation_error" field.
func (*LockOrderFulfillmentUpsertOne) DoNothing ¶
func (u *LockOrderFulfillmentUpsertOne) DoNothing() *LockOrderFulfillmentUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*LockOrderFulfillmentUpsertOne) Exec ¶
func (u *LockOrderFulfillmentUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*LockOrderFulfillmentUpsertOne) ExecX ¶
func (u *LockOrderFulfillmentUpsertOne) ExecX(ctx context.Context)
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 ¶
func (u *LockOrderFulfillmentUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*LockOrderFulfillmentUpsertOne) Ignore ¶
func (u *LockOrderFulfillmentUpsertOne) Ignore() *LockOrderFulfillmentUpsertOne
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 ¶
func (u *LockOrderFulfillmentUpsertOne) SetPsp(v string) *LockOrderFulfillmentUpsertOne
SetPsp sets the "psp" field.
func (*LockOrderFulfillmentUpsertOne) SetTxID ¶
func (u *LockOrderFulfillmentUpsertOne) SetTxID(v string) *LockOrderFulfillmentUpsertOne
SetTxID sets the "tx_id" field.
func (*LockOrderFulfillmentUpsertOne) SetUpdatedAt ¶
func (u *LockOrderFulfillmentUpsertOne) SetUpdatedAt(v time.Time) *LockOrderFulfillmentUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*LockOrderFulfillmentUpsertOne) SetValidationError ¶
func (u *LockOrderFulfillmentUpsertOne) SetValidationError(v string) *LockOrderFulfillmentUpsertOne
SetValidationError sets the "validation_error" field.
func (*LockOrderFulfillmentUpsertOne) SetValidationStatus ¶
func (u *LockOrderFulfillmentUpsertOne) SetValidationStatus(v lockorderfulfillment.ValidationStatus) *LockOrderFulfillmentUpsertOne
SetValidationStatus sets the "validation_status" field.
func (*LockOrderFulfillmentUpsertOne) Update ¶
func (u *LockOrderFulfillmentUpsertOne) Update(set func(*LockOrderFulfillmentUpsert)) *LockOrderFulfillmentUpsertOne
Update allows overriding fields `UPDATE` values. See the LockOrderFulfillmentCreate.OnConflict documentation for more info.
func (*LockOrderFulfillmentUpsertOne) UpdateNewValues ¶
func (u *LockOrderFulfillmentUpsertOne) UpdateNewValues() *LockOrderFulfillmentUpsertOne
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 ¶
func (u *LockOrderFulfillmentUpsertOne) UpdatePsp() *LockOrderFulfillmentUpsertOne
UpdatePsp sets the "psp" field to the value that was provided on create.
func (*LockOrderFulfillmentUpsertOne) UpdateTxID ¶
func (u *LockOrderFulfillmentUpsertOne) UpdateTxID() *LockOrderFulfillmentUpsertOne
UpdateTxID sets the "tx_id" field to the value that was provided on create.
func (*LockOrderFulfillmentUpsertOne) UpdateUpdatedAt ¶
func (u *LockOrderFulfillmentUpsertOne) UpdateUpdatedAt() *LockOrderFulfillmentUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*LockOrderFulfillmentUpsertOne) UpdateValidationError ¶
func (u *LockOrderFulfillmentUpsertOne) UpdateValidationError() *LockOrderFulfillmentUpsertOne
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 ¶
func (lpo *LockPaymentOrder) Update() *LockPaymentOrderUpdateOne
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.
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 ¶
func (c *LockPaymentOrderClient) Create() *LockPaymentOrderCreate
Create returns a builder for creating a LockPaymentOrder entity.
func (*LockPaymentOrderClient) CreateBulk ¶
func (c *LockPaymentOrderClient) CreateBulk(builders ...*LockPaymentOrderCreate) *LockPaymentOrderCreateBulk
CreateBulk returns a builder for creating a bulk of LockPaymentOrder entities.
func (*LockPaymentOrderClient) Delete ¶
func (c *LockPaymentOrderClient) Delete() *LockPaymentOrderDelete
Delete returns a delete builder for LockPaymentOrder.
func (*LockPaymentOrderClient) DeleteOne ¶
func (c *LockPaymentOrderClient) DeleteOne(lpo *LockPaymentOrder) *LockPaymentOrderDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*LockPaymentOrderClient) DeleteOneID ¶
func (c *LockPaymentOrderClient) DeleteOneID(id uuid.UUID) *LockPaymentOrderDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*LockPaymentOrderClient) Get ¶
func (c *LockPaymentOrderClient) Get(ctx context.Context, id uuid.UUID) (*LockPaymentOrder, error)
Get returns a LockPaymentOrder entity by its id.
func (*LockPaymentOrderClient) GetX ¶
func (c *LockPaymentOrderClient) GetX(ctx context.Context, id uuid.UUID) *LockPaymentOrder
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 ¶
func (c *LockPaymentOrderClient) Query() *LockPaymentOrderQuery
Query returns a query builder for LockPaymentOrder.
func (*LockPaymentOrderClient) QueryFulfillments ¶
func (c *LockPaymentOrderClient) QueryFulfillments(lpo *LockPaymentOrder) *LockOrderFulfillmentQuery
QueryFulfillments queries the fulfillments edge of a LockPaymentOrder.
func (*LockPaymentOrderClient) QueryProvider ¶
func (c *LockPaymentOrderClient) QueryProvider(lpo *LockPaymentOrder) *ProviderProfileQuery
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 ¶
func (c *LockPaymentOrderClient) Update() *LockPaymentOrderUpdate
Update returns an update builder for LockPaymentOrder.
func (*LockPaymentOrderClient) UpdateOne ¶
func (c *LockPaymentOrderClient) UpdateOne(lpo *LockPaymentOrder) *LockPaymentOrderUpdateOne
UpdateOne returns an update builder for the given entity.
func (*LockPaymentOrderClient) UpdateOneID ¶
func (c *LockPaymentOrderClient) UpdateOneID(id uuid.UUID) *LockPaymentOrderUpdateOne
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 ¶
func (lpoc *LockPaymentOrderCreate) AddFulfillments(l ...*LockOrderFulfillment) *LockPaymentOrderCreate
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 ¶
func (lpoc *LockPaymentOrderCreate) Mutation() *LockPaymentOrderMutation
Mutation returns the LockPaymentOrderMutation object of the builder.
func (*LockPaymentOrderCreate) OnConflict ¶
func (lpoc *LockPaymentOrderCreate) OnConflict(opts ...sql.ConflictOption) *LockPaymentOrderUpsertOne
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 ¶
func (lpoc *LockPaymentOrderCreate) Save(ctx context.Context) (*LockPaymentOrder, error)
Save creates the LockPaymentOrder in the database.
func (*LockPaymentOrderCreate) SaveX ¶
func (lpoc *LockPaymentOrderCreate) SaveX(ctx context.Context) *LockPaymentOrder
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 ¶
func (lpoc *LockPaymentOrderCreate) SetAmount(d decimal.Decimal) *LockPaymentOrderCreate
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 ¶
func (lpoc *LockPaymentOrderCreate) SetID(u uuid.UUID) *LockPaymentOrderCreate
SetID sets the "id" field.
func (*LockPaymentOrderCreate) SetInstitution ¶
func (lpoc *LockPaymentOrderCreate) SetInstitution(s string) *LockPaymentOrderCreate
SetInstitution sets the "institution" field.
func (*LockPaymentOrderCreate) SetMemo ¶
func (lpoc *LockPaymentOrderCreate) SetMemo(s string) *LockPaymentOrderCreate
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 ¶
func (lpoc *LockPaymentOrderCreate) SetNillableStatus(l *lockpaymentorder.Status) *LockPaymentOrderCreate
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 ¶
func (lpoc *LockPaymentOrderCreate) SetOrderPercent(d decimal.Decimal) *LockPaymentOrderCreate
SetOrderPercent sets the "order_percent" field.
func (*LockPaymentOrderCreate) SetProtocolFee ¶ added in v0.0.2
func (lpoc *LockPaymentOrderCreate) SetProtocolFee(d decimal.Decimal) *LockPaymentOrderCreate
SetProtocolFee sets the "protocol_fee" field.
func (*LockPaymentOrderCreate) SetProvider ¶
func (lpoc *LockPaymentOrderCreate) SetProvider(p *ProviderProfile) *LockPaymentOrderCreate
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 ¶
func (lpoc *LockPaymentOrderCreate) SetRate(d decimal.Decimal) *LockPaymentOrderCreate
SetRate sets the "rate" field.
func (*LockPaymentOrderCreate) SetSender ¶
func (lpoc *LockPaymentOrderCreate) SetSender(s string) *LockPaymentOrderCreate
SetSender sets the "sender" field.
func (*LockPaymentOrderCreate) SetStatus ¶
func (lpoc *LockPaymentOrderCreate) SetStatus(l lockpaymentorder.Status) *LockPaymentOrderCreate
SetStatus sets the "status" field.
func (*LockPaymentOrderCreate) SetToken ¶
func (lpoc *LockPaymentOrderCreate) SetToken(t *Token) *LockPaymentOrderCreate
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 ¶
func (lpoc *LockPaymentOrderCreate) SetTxHash(s string) *LockPaymentOrderCreate
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 ¶
func (lpocb *LockPaymentOrderCreateBulk) Exec(ctx context.Context) error
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 ¶
func (lpocb *LockPaymentOrderCreateBulk) OnConflict(opts ...sql.ConflictOption) *LockPaymentOrderUpsertBulk
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 ¶
func (lpocb *LockPaymentOrderCreateBulk) Save(ctx context.Context) ([]*LockPaymentOrder, error)
Save creates the LockPaymentOrder entities in the database.
func (*LockPaymentOrderCreateBulk) SaveX ¶
func (lpocb *LockPaymentOrderCreateBulk) SaveX(ctx context.Context) []*LockPaymentOrder
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 ¶
func (lpod *LockPaymentOrderDelete) Where(ps ...predicate.LockPaymentOrder) *LockPaymentOrderDelete
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 ¶
func (lpodo *LockPaymentOrderDeleteOne) Exec(ctx context.Context) error
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 ¶
func (lpodo *LockPaymentOrderDeleteOne) Where(ps ...predicate.LockPaymentOrder) *LockPaymentOrderDeleteOne
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 ¶
func (lpogb *LockPaymentOrderGroupBy) Aggregate(fns ...AggregateFunc) *LockPaymentOrderGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*LockPaymentOrderGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*LockPaymentOrderGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*LockPaymentOrderGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*LockPaymentOrderGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*LockPaymentOrderGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*LockPaymentOrderGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*LockPaymentOrderGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (m *LockPaymentOrderMutation) AddRate(d decimal.Decimal)
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (m *LockPaymentOrderMutation) OldStatus(ctx context.Context) (v lockpaymentorder.Status, err error)
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 ¶
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 ¶
func (m *LockPaymentOrderMutation) SetRate(d decimal.Decimal)
SetRate sets the "rate" field.
func (*LockPaymentOrderMutation) SetSender ¶
func (m *LockPaymentOrderMutation) SetSender(s string)
SetSender sets the "sender" field.
func (*LockPaymentOrderMutation) SetStatus ¶
func (m *LockPaymentOrderMutation) SetStatus(l lockpaymentorder.Status)
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 ¶
func (m *LockPaymentOrderMutation) Where(ps ...predicate.LockPaymentOrder)
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 ¶
func (lpoq *LockPaymentOrderQuery) Aggregate(fns ...AggregateFunc) *LockPaymentOrderSelect
Aggregate returns a LockPaymentOrderSelect configured with the given aggregations.
func (*LockPaymentOrderQuery) All ¶
func (lpoq *LockPaymentOrderQuery) All(ctx context.Context) ([]*LockPaymentOrder, error)
All executes the query and returns a list of LockPaymentOrders.
func (*LockPaymentOrderQuery) AllX ¶
func (lpoq *LockPaymentOrderQuery) AllX(ctx context.Context) []*LockPaymentOrder
AllX is like All, but panics if an error occurs.
func (*LockPaymentOrderQuery) Clone ¶
func (lpoq *LockPaymentOrderQuery) Clone() *LockPaymentOrderQuery
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 ¶
func (lpoq *LockPaymentOrderQuery) First(ctx context.Context) (*LockPaymentOrder, error)
First returns the first LockPaymentOrder entity from the query. Returns a *NotFoundError when no LockPaymentOrder was found.
func (*LockPaymentOrderQuery) FirstID ¶
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 ¶
func (lpoq *LockPaymentOrderQuery) FirstX(ctx context.Context) *LockPaymentOrder
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 ¶
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 ¶
func (lpoq *LockPaymentOrderQuery) Only(ctx context.Context) (*LockPaymentOrder, error)
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 ¶
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 ¶
func (lpoq *LockPaymentOrderQuery) OnlyX(ctx context.Context) *LockPaymentOrder
OnlyX is like Only, but panics if an error occurs.
func (*LockPaymentOrderQuery) Order ¶
func (lpoq *LockPaymentOrderQuery) Order(o ...lockpaymentorder.OrderOption) *LockPaymentOrderQuery
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 ¶
func (lpoq *LockPaymentOrderQuery) Where(ps ...predicate.LockPaymentOrder) *LockPaymentOrderQuery
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 ¶
func (lpos *LockPaymentOrderSelect) Aggregate(fns ...AggregateFunc) *LockPaymentOrderSelect
Aggregate adds the given aggregation functions to the selector query.
func (*LockPaymentOrderSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*LockPaymentOrderSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*LockPaymentOrderSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*LockPaymentOrderSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*LockPaymentOrderSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*LockPaymentOrderSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*LockPaymentOrderSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type LockPaymentOrderUpdate ¶
type LockPaymentOrderUpdate struct {
// contains filtered or unexported fields
}
LockPaymentOrderUpdate is the builder for updating LockPaymentOrder entities.
func (*LockPaymentOrderUpdate) AddAmount ¶
func (lpou *LockPaymentOrderUpdate) AddAmount(d decimal.Decimal) *LockPaymentOrderUpdate
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 ¶
func (lpou *LockPaymentOrderUpdate) AddFulfillments(l ...*LockOrderFulfillment) *LockPaymentOrderUpdate
AddFulfillments adds the "fulfillments" edges to the LockOrderFulfillment entity.
func (*LockPaymentOrderUpdate) AddOrderPercent ¶
func (lpou *LockPaymentOrderUpdate) AddOrderPercent(d decimal.Decimal) *LockPaymentOrderUpdate
AddOrderPercent adds d to the "order_percent" field.
func (*LockPaymentOrderUpdate) AddProtocolFee ¶ added in v0.0.2
func (lpou *LockPaymentOrderUpdate) AddProtocolFee(d decimal.Decimal) *LockPaymentOrderUpdate
AddProtocolFee adds d to the "protocol_fee" field.
func (*LockPaymentOrderUpdate) AddRate ¶
func (lpou *LockPaymentOrderUpdate) AddRate(d decimal.Decimal) *LockPaymentOrderUpdate
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 ¶
func (lpou *LockPaymentOrderUpdate) ClearMemo() *LockPaymentOrderUpdate
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 ¶
func (lpou *LockPaymentOrderUpdate) Mutation() *LockPaymentOrderMutation
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 ¶
func (lpou *LockPaymentOrderUpdate) SetAmount(d decimal.Decimal) *LockPaymentOrderUpdate
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 ¶
func (lpou *LockPaymentOrderUpdate) SetMemo(s string) *LockPaymentOrderUpdate
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 ¶
func (lpou *LockPaymentOrderUpdate) SetNillableStatus(l *lockpaymentorder.Status) *LockPaymentOrderUpdate
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 ¶
func (lpou *LockPaymentOrderUpdate) SetOrderPercent(d decimal.Decimal) *LockPaymentOrderUpdate
SetOrderPercent sets the "order_percent" field.
func (*LockPaymentOrderUpdate) SetProtocolFee ¶ added in v0.0.2
func (lpou *LockPaymentOrderUpdate) SetProtocolFee(d decimal.Decimal) *LockPaymentOrderUpdate
SetProtocolFee sets the "protocol_fee" field.
func (*LockPaymentOrderUpdate) SetProvider ¶
func (lpou *LockPaymentOrderUpdate) SetProvider(p *ProviderProfile) *LockPaymentOrderUpdate
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 ¶
func (lpou *LockPaymentOrderUpdate) SetRate(d decimal.Decimal) *LockPaymentOrderUpdate
SetRate sets the "rate" field.
func (*LockPaymentOrderUpdate) SetSender ¶
func (lpou *LockPaymentOrderUpdate) SetSender(s string) *LockPaymentOrderUpdate
SetSender sets the "sender" field.
func (*LockPaymentOrderUpdate) SetStatus ¶
func (lpou *LockPaymentOrderUpdate) SetStatus(l lockpaymentorder.Status) *LockPaymentOrderUpdate
SetStatus sets the "status" field.
func (*LockPaymentOrderUpdate) SetToken ¶
func (lpou *LockPaymentOrderUpdate) SetToken(t *Token) *LockPaymentOrderUpdate
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 ¶
func (lpou *LockPaymentOrderUpdate) SetTxHash(s string) *LockPaymentOrderUpdate
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 ¶
func (lpou *LockPaymentOrderUpdate) Where(ps ...predicate.LockPaymentOrder) *LockPaymentOrderUpdate
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) AddAmount(d decimal.Decimal) *LockPaymentOrderUpdateOne
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) AddFulfillments(l ...*LockOrderFulfillment) *LockPaymentOrderUpdateOne
AddFulfillments adds the "fulfillments" edges to the LockOrderFulfillment entity.
func (*LockPaymentOrderUpdateOne) AddOrderPercent ¶
func (lpouo *LockPaymentOrderUpdateOne) AddOrderPercent(d decimal.Decimal) *LockPaymentOrderUpdateOne
AddOrderPercent adds d to the "order_percent" field.
func (*LockPaymentOrderUpdateOne) AddProtocolFee ¶ added in v0.0.2
func (lpouo *LockPaymentOrderUpdateOne) AddProtocolFee(d decimal.Decimal) *LockPaymentOrderUpdateOne
AddProtocolFee adds d to the "protocol_fee" field.
func (*LockPaymentOrderUpdateOne) AddRate ¶
func (lpouo *LockPaymentOrderUpdateOne) AddRate(d decimal.Decimal) *LockPaymentOrderUpdateOne
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) AddTransactions(t ...*TransactionLog) *LockPaymentOrderUpdateOne
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) ClearMemo() *LockPaymentOrderUpdateOne
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) ClearSender() *LockPaymentOrderUpdateOne
ClearSender clears the value of the "sender" field.
func (*LockPaymentOrderUpdateOne) ClearToken ¶
func (lpouo *LockPaymentOrderUpdateOne) ClearToken() *LockPaymentOrderUpdateOne
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) ClearTxHash() *LockPaymentOrderUpdateOne
ClearTxHash clears the value of the "tx_hash" field.
func (*LockPaymentOrderUpdateOne) Exec ¶
func (lpouo *LockPaymentOrderUpdateOne) Exec(ctx context.Context) error
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) Mutation() *LockPaymentOrderMutation
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) RemoveFulfillments(l ...*LockOrderFulfillment) *LockPaymentOrderUpdateOne
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) Save(ctx context.Context) (*LockPaymentOrder, error)
Save executes the query and returns the updated LockPaymentOrder entity.
func (*LockPaymentOrderUpdateOne) SaveX ¶
func (lpouo *LockPaymentOrderUpdateOne) SaveX(ctx context.Context) *LockPaymentOrder
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) SetAccountName(s string) *LockPaymentOrderUpdateOne
SetAccountName sets the "account_name" field.
func (*LockPaymentOrderUpdateOne) SetAmount ¶
func (lpouo *LockPaymentOrderUpdateOne) SetAmount(d decimal.Decimal) *LockPaymentOrderUpdateOne
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) SetGatewayID(s string) *LockPaymentOrderUpdateOne
SetGatewayID sets the "gateway_id" field.
func (*LockPaymentOrderUpdateOne) SetInstitution ¶
func (lpouo *LockPaymentOrderUpdateOne) SetInstitution(s string) *LockPaymentOrderUpdateOne
SetInstitution sets the "institution" field.
func (*LockPaymentOrderUpdateOne) SetMemo ¶
func (lpouo *LockPaymentOrderUpdateOne) SetMemo(s string) *LockPaymentOrderUpdateOne
SetMemo sets the "memo" field.
func (*LockPaymentOrderUpdateOne) SetMessageHash ¶ added in v0.0.2
func (lpouo *LockPaymentOrderUpdateOne) SetMessageHash(s string) *LockPaymentOrderUpdateOne
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) SetNillableAmount(d *decimal.Decimal) *LockPaymentOrderUpdateOne
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) SetNillableRate(d *decimal.Decimal) *LockPaymentOrderUpdateOne
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) SetNillableStatus(l *lockpaymentorder.Status) *LockPaymentOrderUpdateOne
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) SetOrderPercent(d decimal.Decimal) *LockPaymentOrderUpdateOne
SetOrderPercent sets the "order_percent" field.
func (*LockPaymentOrderUpdateOne) SetProtocolFee ¶ added in v0.0.2
func (lpouo *LockPaymentOrderUpdateOne) SetProtocolFee(d decimal.Decimal) *LockPaymentOrderUpdateOne
SetProtocolFee sets the "protocol_fee" field.
func (*LockPaymentOrderUpdateOne) SetProvider ¶
func (lpouo *LockPaymentOrderUpdateOne) SetProvider(p *ProviderProfile) *LockPaymentOrderUpdateOne
SetProvider sets the "provider" edge to the ProviderProfile entity.
func (*LockPaymentOrderUpdateOne) SetProviderID ¶
func (lpouo *LockPaymentOrderUpdateOne) SetProviderID(id string) *LockPaymentOrderUpdateOne
SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.
func (*LockPaymentOrderUpdateOne) SetProvisionBucket ¶
func (lpouo *LockPaymentOrderUpdateOne) SetProvisionBucket(p *ProvisionBucket) *LockPaymentOrderUpdateOne
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 ¶
func (lpouo *LockPaymentOrderUpdateOne) SetRate(d decimal.Decimal) *LockPaymentOrderUpdateOne
SetRate sets the "rate" field.
func (*LockPaymentOrderUpdateOne) SetSender ¶
func (lpouo *LockPaymentOrderUpdateOne) SetSender(s string) *LockPaymentOrderUpdateOne
SetSender sets the "sender" field.
func (*LockPaymentOrderUpdateOne) SetStatus ¶
func (lpouo *LockPaymentOrderUpdateOne) SetStatus(l lockpaymentorder.Status) *LockPaymentOrderUpdateOne
SetStatus sets the "status" field.
func (*LockPaymentOrderUpdateOne) SetToken ¶
func (lpouo *LockPaymentOrderUpdateOne) SetToken(t *Token) *LockPaymentOrderUpdateOne
SetToken sets the "token" edge to the Token entity.
func (*LockPaymentOrderUpdateOne) SetTokenID ¶
func (lpouo *LockPaymentOrderUpdateOne) SetTokenID(id int) *LockPaymentOrderUpdateOne
SetTokenID sets the "token" edge to the Token entity by ID.
func (*LockPaymentOrderUpdateOne) SetTxHash ¶
func (lpouo *LockPaymentOrderUpdateOne) SetTxHash(s string) *LockPaymentOrderUpdateOne
SetTxHash sets the "tx_hash" field.
func (*LockPaymentOrderUpdateOne) SetUpdatedAt ¶
func (lpouo *LockPaymentOrderUpdateOne) SetUpdatedAt(t time.Time) *LockPaymentOrderUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*LockPaymentOrderUpdateOne) Where ¶
func (lpouo *LockPaymentOrderUpdateOne) Where(ps ...predicate.LockPaymentOrder) *LockPaymentOrderUpdateOne
Where appends a list predicates to the LockPaymentOrderUpdate builder.
type LockPaymentOrderUpsert ¶
LockPaymentOrderUpsert is the "OnConflict" setter.
func (*LockPaymentOrderUpsert) AddAmount ¶
func (u *LockPaymentOrderUpsert) AddAmount(v decimal.Decimal) *LockPaymentOrderUpsert
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 ¶
func (u *LockPaymentOrderUpsert) AddOrderPercent(v decimal.Decimal) *LockPaymentOrderUpsert
AddOrderPercent adds v to the "order_percent" field.
func (*LockPaymentOrderUpsert) AddProtocolFee ¶ added in v0.0.2
func (u *LockPaymentOrderUpsert) AddProtocolFee(v decimal.Decimal) *LockPaymentOrderUpsert
AddProtocolFee adds v to the "protocol_fee" field.
func (*LockPaymentOrderUpsert) AddRate ¶
func (u *LockPaymentOrderUpsert) AddRate(v decimal.Decimal) *LockPaymentOrderUpsert
AddRate adds v to the "rate" field.
func (*LockPaymentOrderUpsert) ClearMemo ¶
func (u *LockPaymentOrderUpsert) ClearMemo() *LockPaymentOrderUpsert
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 ¶
func (u *LockPaymentOrderUpsert) ClearSender() *LockPaymentOrderUpsert
ClearSender clears the value of the "sender" field.
func (*LockPaymentOrderUpsert) ClearTxHash ¶
func (u *LockPaymentOrderUpsert) ClearTxHash() *LockPaymentOrderUpsert
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 ¶
func (u *LockPaymentOrderUpsert) SetAccountName(v string) *LockPaymentOrderUpsert
SetAccountName sets the "account_name" field.
func (*LockPaymentOrderUpsert) SetAmount ¶
func (u *LockPaymentOrderUpsert) SetAmount(v decimal.Decimal) *LockPaymentOrderUpsert
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 ¶
func (u *LockPaymentOrderUpsert) SetGatewayID(v string) *LockPaymentOrderUpsert
SetGatewayID sets the "gateway_id" field.
func (*LockPaymentOrderUpsert) SetInstitution ¶
func (u *LockPaymentOrderUpsert) SetInstitution(v string) *LockPaymentOrderUpsert
SetInstitution sets the "institution" field.
func (*LockPaymentOrderUpsert) SetMemo ¶
func (u *LockPaymentOrderUpsert) SetMemo(v string) *LockPaymentOrderUpsert
SetMemo sets the "memo" field.
func (*LockPaymentOrderUpsert) SetMessageHash ¶ added in v0.0.2
func (u *LockPaymentOrderUpsert) SetMessageHash(v string) *LockPaymentOrderUpsert
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 ¶
func (u *LockPaymentOrderUpsert) SetOrderPercent(v decimal.Decimal) *LockPaymentOrderUpsert
SetOrderPercent sets the "order_percent" field.
func (*LockPaymentOrderUpsert) SetProtocolFee ¶ added in v0.0.2
func (u *LockPaymentOrderUpsert) SetProtocolFee(v decimal.Decimal) *LockPaymentOrderUpsert
SetProtocolFee sets the "protocol_fee" field.
func (*LockPaymentOrderUpsert) SetRate ¶
func (u *LockPaymentOrderUpsert) SetRate(v decimal.Decimal) *LockPaymentOrderUpsert
SetRate sets the "rate" field.
func (*LockPaymentOrderUpsert) SetSender ¶
func (u *LockPaymentOrderUpsert) SetSender(v string) *LockPaymentOrderUpsert
SetSender sets the "sender" field.
func (*LockPaymentOrderUpsert) SetStatus ¶
func (u *LockPaymentOrderUpsert) SetStatus(v lockpaymentorder.Status) *LockPaymentOrderUpsert
SetStatus sets the "status" field.
func (*LockPaymentOrderUpsert) SetTxHash ¶
func (u *LockPaymentOrderUpsert) SetTxHash(v string) *LockPaymentOrderUpsert
SetTxHash sets the "tx_hash" field.
func (*LockPaymentOrderUpsert) SetUpdatedAt ¶
func (u *LockPaymentOrderUpsert) SetUpdatedAt(v time.Time) *LockPaymentOrderUpsert
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 ¶
func (u *LockPaymentOrderUpsert) UpdateAmount() *LockPaymentOrderUpsert
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 ¶
func (u *LockPaymentOrderUpsert) UpdateMemo() *LockPaymentOrderUpsert
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 ¶
func (u *LockPaymentOrderUpsert) UpdateRate() *LockPaymentOrderUpsert
UpdateRate sets the "rate" field to the value that was provided on create.
func (*LockPaymentOrderUpsert) UpdateSender ¶
func (u *LockPaymentOrderUpsert) UpdateSender() *LockPaymentOrderUpsert
UpdateSender sets the "sender" field to the value that was provided on create.
func (*LockPaymentOrderUpsert) UpdateStatus ¶
func (u *LockPaymentOrderUpsert) UpdateStatus() *LockPaymentOrderUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*LockPaymentOrderUpsert) UpdateTxHash ¶
func (u *LockPaymentOrderUpsert) UpdateTxHash() *LockPaymentOrderUpsert
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 ¶
func (u *LockPaymentOrderUpsertBulk) AddAmount(v decimal.Decimal) *LockPaymentOrderUpsertBulk
AddAmount adds v to the "amount" field.
func (*LockPaymentOrderUpsertBulk) AddBlockNumber ¶
func (u *LockPaymentOrderUpsertBulk) AddBlockNumber(v int64) *LockPaymentOrderUpsertBulk
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 ¶
func (u *LockPaymentOrderUpsertBulk) AddOrderPercent(v decimal.Decimal) *LockPaymentOrderUpsertBulk
AddOrderPercent adds v to the "order_percent" field.
func (*LockPaymentOrderUpsertBulk) AddProtocolFee ¶ added in v0.0.2
func (u *LockPaymentOrderUpsertBulk) AddProtocolFee(v decimal.Decimal) *LockPaymentOrderUpsertBulk
AddProtocolFee adds v to the "protocol_fee" field.
func (*LockPaymentOrderUpsertBulk) AddRate ¶
func (u *LockPaymentOrderUpsertBulk) AddRate(v decimal.Decimal) *LockPaymentOrderUpsertBulk
AddRate adds v to the "rate" field.
func (*LockPaymentOrderUpsertBulk) ClearMemo ¶
func (u *LockPaymentOrderUpsertBulk) ClearMemo() *LockPaymentOrderUpsertBulk
ClearMemo clears the value of the "memo" field.
func (*LockPaymentOrderUpsertBulk) ClearMessageHash ¶ added in v0.0.2
func (u *LockPaymentOrderUpsertBulk) ClearMessageHash() *LockPaymentOrderUpsertBulk
ClearMessageHash clears the value of the "message_hash" field.
func (*LockPaymentOrderUpsertBulk) ClearMetadata ¶
func (u *LockPaymentOrderUpsertBulk) ClearMetadata() *LockPaymentOrderUpsertBulk
ClearMetadata clears the value of the "metadata" field.
func (*LockPaymentOrderUpsertBulk) ClearSender ¶
func (u *LockPaymentOrderUpsertBulk) ClearSender() *LockPaymentOrderUpsertBulk
ClearSender clears the value of the "sender" field.
func (*LockPaymentOrderUpsertBulk) ClearTxHash ¶
func (u *LockPaymentOrderUpsertBulk) ClearTxHash() *LockPaymentOrderUpsertBulk
ClearTxHash clears the value of the "tx_hash" field.
func (*LockPaymentOrderUpsertBulk) DoNothing ¶
func (u *LockPaymentOrderUpsertBulk) DoNothing() *LockPaymentOrderUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*LockPaymentOrderUpsertBulk) Exec ¶
func (u *LockPaymentOrderUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*LockPaymentOrderUpsertBulk) ExecX ¶
func (u *LockPaymentOrderUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*LockPaymentOrderUpsertBulk) Ignore ¶
func (u *LockPaymentOrderUpsertBulk) Ignore() *LockPaymentOrderUpsertBulk
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 ¶
func (u *LockPaymentOrderUpsertBulk) SetAccountName(v string) *LockPaymentOrderUpsertBulk
SetAccountName sets the "account_name" field.
func (*LockPaymentOrderUpsertBulk) SetAmount ¶
func (u *LockPaymentOrderUpsertBulk) SetAmount(v decimal.Decimal) *LockPaymentOrderUpsertBulk
SetAmount sets the "amount" field.
func (*LockPaymentOrderUpsertBulk) SetBlockNumber ¶
func (u *LockPaymentOrderUpsertBulk) SetBlockNumber(v int64) *LockPaymentOrderUpsertBulk
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 ¶
func (u *LockPaymentOrderUpsertBulk) SetGatewayID(v string) *LockPaymentOrderUpsertBulk
SetGatewayID sets the "gateway_id" field.
func (*LockPaymentOrderUpsertBulk) SetInstitution ¶
func (u *LockPaymentOrderUpsertBulk) SetInstitution(v string) *LockPaymentOrderUpsertBulk
SetInstitution sets the "institution" field.
func (*LockPaymentOrderUpsertBulk) SetMemo ¶
func (u *LockPaymentOrderUpsertBulk) SetMemo(v string) *LockPaymentOrderUpsertBulk
SetMemo sets the "memo" field.
func (*LockPaymentOrderUpsertBulk) SetMessageHash ¶ added in v0.0.2
func (u *LockPaymentOrderUpsertBulk) SetMessageHash(v string) *LockPaymentOrderUpsertBulk
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 ¶
func (u *LockPaymentOrderUpsertBulk) SetOrderPercent(v decimal.Decimal) *LockPaymentOrderUpsertBulk
SetOrderPercent sets the "order_percent" field.
func (*LockPaymentOrderUpsertBulk) SetProtocolFee ¶ added in v0.0.2
func (u *LockPaymentOrderUpsertBulk) SetProtocolFee(v decimal.Decimal) *LockPaymentOrderUpsertBulk
SetProtocolFee sets the "protocol_fee" field.
func (*LockPaymentOrderUpsertBulk) SetRate ¶
func (u *LockPaymentOrderUpsertBulk) SetRate(v decimal.Decimal) *LockPaymentOrderUpsertBulk
SetRate sets the "rate" field.
func (*LockPaymentOrderUpsertBulk) SetSender ¶
func (u *LockPaymentOrderUpsertBulk) SetSender(v string) *LockPaymentOrderUpsertBulk
SetSender sets the "sender" field.
func (*LockPaymentOrderUpsertBulk) SetStatus ¶
func (u *LockPaymentOrderUpsertBulk) SetStatus(v lockpaymentorder.Status) *LockPaymentOrderUpsertBulk
SetStatus sets the "status" field.
func (*LockPaymentOrderUpsertBulk) SetTxHash ¶
func (u *LockPaymentOrderUpsertBulk) SetTxHash(v string) *LockPaymentOrderUpsertBulk
SetTxHash sets the "tx_hash" field.
func (*LockPaymentOrderUpsertBulk) SetUpdatedAt ¶
func (u *LockPaymentOrderUpsertBulk) SetUpdatedAt(v time.Time) *LockPaymentOrderUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*LockPaymentOrderUpsertBulk) Update ¶
func (u *LockPaymentOrderUpsertBulk) Update(set func(*LockPaymentOrderUpsert)) *LockPaymentOrderUpsertBulk
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 ¶
func (u *LockPaymentOrderUpsertBulk) UpdateAccountName() *LockPaymentOrderUpsertBulk
UpdateAccountName sets the "account_name" field to the value that was provided on create.
func (*LockPaymentOrderUpsertBulk) UpdateAmount ¶
func (u *LockPaymentOrderUpsertBulk) UpdateAmount() *LockPaymentOrderUpsertBulk
UpdateAmount sets the "amount" field to the value that was provided on create.
func (*LockPaymentOrderUpsertBulk) UpdateBlockNumber ¶
func (u *LockPaymentOrderUpsertBulk) UpdateBlockNumber() *LockPaymentOrderUpsertBulk
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 ¶
func (u *LockPaymentOrderUpsertBulk) UpdateGatewayID() *LockPaymentOrderUpsertBulk
UpdateGatewayID sets the "gateway_id" field to the value that was provided on create.
func (*LockPaymentOrderUpsertBulk) UpdateInstitution ¶
func (u *LockPaymentOrderUpsertBulk) UpdateInstitution() *LockPaymentOrderUpsertBulk
UpdateInstitution sets the "institution" field to the value that was provided on create.
func (*LockPaymentOrderUpsertBulk) UpdateMemo ¶
func (u *LockPaymentOrderUpsertBulk) UpdateMemo() *LockPaymentOrderUpsertBulk
UpdateMemo sets the "memo" field to the value that was provided on create.
func (*LockPaymentOrderUpsertBulk) UpdateMessageHash ¶ added in v0.0.2
func (u *LockPaymentOrderUpsertBulk) UpdateMessageHash() *LockPaymentOrderUpsertBulk
UpdateMessageHash sets the "message_hash" field to the value that was provided on create.
func (*LockPaymentOrderUpsertBulk) UpdateMetadata ¶
func (u *LockPaymentOrderUpsertBulk) UpdateMetadata() *LockPaymentOrderUpsertBulk
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*LockPaymentOrderUpsertBulk) UpdateNewValues ¶
func (u *LockPaymentOrderUpsertBulk) UpdateNewValues() *LockPaymentOrderUpsertBulk
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
func (u *LockPaymentOrderUpsertBulk) UpdateProtocolFee() *LockPaymentOrderUpsertBulk
UpdateProtocolFee sets the "protocol_fee" field to the value that was provided on create.
func (*LockPaymentOrderUpsertBulk) UpdateRate ¶
func (u *LockPaymentOrderUpsertBulk) UpdateRate() *LockPaymentOrderUpsertBulk
UpdateRate sets the "rate" field to the value that was provided on create.
func (*LockPaymentOrderUpsertBulk) UpdateSender ¶
func (u *LockPaymentOrderUpsertBulk) UpdateSender() *LockPaymentOrderUpsertBulk
UpdateSender sets the "sender" field to the value that was provided on create.
func (*LockPaymentOrderUpsertBulk) UpdateStatus ¶
func (u *LockPaymentOrderUpsertBulk) UpdateStatus() *LockPaymentOrderUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*LockPaymentOrderUpsertBulk) UpdateTxHash ¶
func (u *LockPaymentOrderUpsertBulk) UpdateTxHash() *LockPaymentOrderUpsertBulk
UpdateTxHash sets the "tx_hash" field to the value that was provided on create.
func (*LockPaymentOrderUpsertBulk) UpdateUpdatedAt ¶
func (u *LockPaymentOrderUpsertBulk) UpdateUpdatedAt() *LockPaymentOrderUpsertBulk
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 ¶
func (u *LockPaymentOrderUpsertOne) AddAmount(v decimal.Decimal) *LockPaymentOrderUpsertOne
AddAmount adds v to the "amount" field.
func (*LockPaymentOrderUpsertOne) AddBlockNumber ¶
func (u *LockPaymentOrderUpsertOne) AddBlockNumber(v int64) *LockPaymentOrderUpsertOne
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 ¶
func (u *LockPaymentOrderUpsertOne) AddOrderPercent(v decimal.Decimal) *LockPaymentOrderUpsertOne
AddOrderPercent adds v to the "order_percent" field.
func (*LockPaymentOrderUpsertOne) AddProtocolFee ¶ added in v0.0.2
func (u *LockPaymentOrderUpsertOne) AddProtocolFee(v decimal.Decimal) *LockPaymentOrderUpsertOne
AddProtocolFee adds v to the "protocol_fee" field.
func (*LockPaymentOrderUpsertOne) AddRate ¶
func (u *LockPaymentOrderUpsertOne) AddRate(v decimal.Decimal) *LockPaymentOrderUpsertOne
AddRate adds v to the "rate" field.
func (*LockPaymentOrderUpsertOne) ClearMemo ¶
func (u *LockPaymentOrderUpsertOne) ClearMemo() *LockPaymentOrderUpsertOne
ClearMemo clears the value of the "memo" field.
func (*LockPaymentOrderUpsertOne) ClearMessageHash ¶ added in v0.0.2
func (u *LockPaymentOrderUpsertOne) ClearMessageHash() *LockPaymentOrderUpsertOne
ClearMessageHash clears the value of the "message_hash" field.
func (*LockPaymentOrderUpsertOne) ClearMetadata ¶
func (u *LockPaymentOrderUpsertOne) ClearMetadata() *LockPaymentOrderUpsertOne
ClearMetadata clears the value of the "metadata" field.
func (*LockPaymentOrderUpsertOne) ClearSender ¶
func (u *LockPaymentOrderUpsertOne) ClearSender() *LockPaymentOrderUpsertOne
ClearSender clears the value of the "sender" field.
func (*LockPaymentOrderUpsertOne) ClearTxHash ¶
func (u *LockPaymentOrderUpsertOne) ClearTxHash() *LockPaymentOrderUpsertOne
ClearTxHash clears the value of the "tx_hash" field.
func (*LockPaymentOrderUpsertOne) DoNothing ¶
func (u *LockPaymentOrderUpsertOne) DoNothing() *LockPaymentOrderUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*LockPaymentOrderUpsertOne) Exec ¶
func (u *LockPaymentOrderUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*LockPaymentOrderUpsertOne) ExecX ¶
func (u *LockPaymentOrderUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*LockPaymentOrderUpsertOne) ID ¶
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*LockPaymentOrderUpsertOne) IDX ¶
func (u *LockPaymentOrderUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*LockPaymentOrderUpsertOne) Ignore ¶
func (u *LockPaymentOrderUpsertOne) Ignore() *LockPaymentOrderUpsertOne
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 ¶
func (u *LockPaymentOrderUpsertOne) SetAccountName(v string) *LockPaymentOrderUpsertOne
SetAccountName sets the "account_name" field.
func (*LockPaymentOrderUpsertOne) SetAmount ¶
func (u *LockPaymentOrderUpsertOne) SetAmount(v decimal.Decimal) *LockPaymentOrderUpsertOne
SetAmount sets the "amount" field.
func (*LockPaymentOrderUpsertOne) SetBlockNumber ¶
func (u *LockPaymentOrderUpsertOne) SetBlockNumber(v int64) *LockPaymentOrderUpsertOne
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 ¶
func (u *LockPaymentOrderUpsertOne) SetGatewayID(v string) *LockPaymentOrderUpsertOne
SetGatewayID sets the "gateway_id" field.
func (*LockPaymentOrderUpsertOne) SetInstitution ¶
func (u *LockPaymentOrderUpsertOne) SetInstitution(v string) *LockPaymentOrderUpsertOne
SetInstitution sets the "institution" field.
func (*LockPaymentOrderUpsertOne) SetMemo ¶
func (u *LockPaymentOrderUpsertOne) SetMemo(v string) *LockPaymentOrderUpsertOne
SetMemo sets the "memo" field.
func (*LockPaymentOrderUpsertOne) SetMessageHash ¶ added in v0.0.2
func (u *LockPaymentOrderUpsertOne) SetMessageHash(v string) *LockPaymentOrderUpsertOne
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 ¶
func (u *LockPaymentOrderUpsertOne) SetOrderPercent(v decimal.Decimal) *LockPaymentOrderUpsertOne
SetOrderPercent sets the "order_percent" field.
func (*LockPaymentOrderUpsertOne) SetProtocolFee ¶ added in v0.0.2
func (u *LockPaymentOrderUpsertOne) SetProtocolFee(v decimal.Decimal) *LockPaymentOrderUpsertOne
SetProtocolFee sets the "protocol_fee" field.
func (*LockPaymentOrderUpsertOne) SetRate ¶
func (u *LockPaymentOrderUpsertOne) SetRate(v decimal.Decimal) *LockPaymentOrderUpsertOne
SetRate sets the "rate" field.
func (*LockPaymentOrderUpsertOne) SetSender ¶
func (u *LockPaymentOrderUpsertOne) SetSender(v string) *LockPaymentOrderUpsertOne
SetSender sets the "sender" field.
func (*LockPaymentOrderUpsertOne) SetStatus ¶
func (u *LockPaymentOrderUpsertOne) SetStatus(v lockpaymentorder.Status) *LockPaymentOrderUpsertOne
SetStatus sets the "status" field.
func (*LockPaymentOrderUpsertOne) SetTxHash ¶
func (u *LockPaymentOrderUpsertOne) SetTxHash(v string) *LockPaymentOrderUpsertOne
SetTxHash sets the "tx_hash" field.
func (*LockPaymentOrderUpsertOne) SetUpdatedAt ¶
func (u *LockPaymentOrderUpsertOne) SetUpdatedAt(v time.Time) *LockPaymentOrderUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*LockPaymentOrderUpsertOne) Update ¶
func (u *LockPaymentOrderUpsertOne) Update(set func(*LockPaymentOrderUpsert)) *LockPaymentOrderUpsertOne
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 ¶
func (u *LockPaymentOrderUpsertOne) UpdateAmount() *LockPaymentOrderUpsertOne
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 ¶
func (u *LockPaymentOrderUpsertOne) UpdateGatewayID() *LockPaymentOrderUpsertOne
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 ¶
func (u *LockPaymentOrderUpsertOne) UpdateMemo() *LockPaymentOrderUpsertOne
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 ¶
func (u *LockPaymentOrderUpsertOne) UpdateMetadata() *LockPaymentOrderUpsertOne
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*LockPaymentOrderUpsertOne) UpdateNewValues ¶
func (u *LockPaymentOrderUpsertOne) UpdateNewValues() *LockPaymentOrderUpsertOne
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 ¶
func (u *LockPaymentOrderUpsertOne) UpdateRate() *LockPaymentOrderUpsertOne
UpdateRate sets the "rate" field to the value that was provided on create.
func (*LockPaymentOrderUpsertOne) UpdateSender ¶
func (u *LockPaymentOrderUpsertOne) UpdateSender() *LockPaymentOrderUpsertOne
UpdateSender sets the "sender" field to the value that was provided on create.
func (*LockPaymentOrderUpsertOne) UpdateStatus ¶
func (u *LockPaymentOrderUpsertOne) UpdateStatus() *LockPaymentOrderUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*LockPaymentOrderUpsertOne) UpdateTxHash ¶
func (u *LockPaymentOrderUpsertOne) UpdateTxHash() *LockPaymentOrderUpsertOne
UpdateTxHash sets the "tx_hash" field to the value that was provided on create.
func (*LockPaymentOrderUpsertOne) UpdateUpdatedAt ¶
func (u *LockPaymentOrderUpsertOne) UpdateUpdatedAt() *LockPaymentOrderUpsertOne
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 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) Unwrap ¶
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.
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) 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)
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 ¶
func (ndo *NetworkDeleteOne) Where(ps ...predicate.Network) *NetworkDeleteOne
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NetworkGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*NetworkGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NetworkGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NetworkGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NetworkGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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) 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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*NetworkSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*NetworkSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*NetworkSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*NetworkSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*NetworkSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (nuo *NetworkUpdateOne) AddFee(d decimal.Decimal) *NetworkUpdateOne
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 ¶
func (nuo *NetworkUpdateOne) SetFee(d decimal.Decimal) *NetworkUpdateOne
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 ¶
func (nuo *NetworkUpdateOne) Where(ps ...predicate.Network) *NetworkUpdateOne
Where appends a list predicates to the NetworkUpdate builder.
type NetworkUpsert ¶
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 ¶
func (u *NetworkUpsert) AddFee(v decimal.Decimal) *NetworkUpsert
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 ¶
func (u *NetworkUpsert) SetFee(v decimal.Decimal) *NetworkUpsert
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 ¶
func (u *NetworkUpsertBulk) AddFee(v decimal.Decimal) *NetworkUpsertBulk
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 ¶
func (u *NetworkUpsertBulk) SetFee(v decimal.Decimal) *NetworkUpsertBulk
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 ¶
func (u *NetworkUpsertOne) AddFee(v decimal.Decimal) *NetworkUpsertOne
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 ¶
func (u *NetworkUpsertOne) SetFee(v decimal.Decimal) *NetworkUpsertOne
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 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 OrderFunc ¶
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.
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 ¶
func (c *PaymentOrderClient) Create() *PaymentOrderCreate
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 ¶
func (c *PaymentOrderClient) Delete() *PaymentOrderDelete
Delete returns a delete builder for PaymentOrder.
func (*PaymentOrderClient) DeleteOne ¶
func (c *PaymentOrderClient) DeleteOne(po *PaymentOrder) *PaymentOrderDeleteOne
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 ¶
func (c *PaymentOrderClient) Get(ctx context.Context, id uuid.UUID) (*PaymentOrder, error)
Get returns a PaymentOrder entity by its id.
func (*PaymentOrderClient) GetX ¶
func (c *PaymentOrderClient) GetX(ctx context.Context, id uuid.UUID) *PaymentOrder
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 ¶
func (c *PaymentOrderClient) Query() *PaymentOrderQuery
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 ¶
func (c *PaymentOrderClient) QueryRecipient(po *PaymentOrder) *PaymentOrderRecipientQuery
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 ¶
func (c *PaymentOrderClient) Update() *PaymentOrderUpdate
Update returns an update builder for PaymentOrder.
func (*PaymentOrderClient) UpdateOne ¶
func (c *PaymentOrderClient) UpdateOne(po *PaymentOrder) *PaymentOrderUpdateOne
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 ¶
func (poc *PaymentOrderCreate) Save(ctx context.Context) (*PaymentOrder, error)
Save creates the PaymentOrder in the database.
func (*PaymentOrderCreate) SaveX ¶
func (poc *PaymentOrderCreate) SaveX(ctx context.Context) *PaymentOrder
SaveX calls Save and panics if Save returns an error.
func (*PaymentOrderCreate) SetAmount ¶
func (poc *PaymentOrderCreate) SetAmount(d decimal.Decimal) *PaymentOrderCreate
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 ¶
func (poc *PaymentOrderCreate) SetID(u uuid.UUID) *PaymentOrderCreate
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 ¶
func (poc *PaymentOrderCreate) SetRate(d decimal.Decimal) *PaymentOrderCreate
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 ¶
func (poc *PaymentOrderCreate) SetRecipient(p *PaymentOrderRecipient) *PaymentOrderCreate
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 ¶
func (poc *PaymentOrderCreate) SetStatus(pa paymentorder.Status) *PaymentOrderCreate
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 ¶
func (pocb *PaymentOrderCreateBulk) OnConflict(opts ...sql.ConflictOption) *PaymentOrderUpsertBulk
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 ¶
func (pocb *PaymentOrderCreateBulk) Save(ctx context.Context) ([]*PaymentOrder, error)
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 ¶
func (pod *PaymentOrderDelete) Where(ps ...predicate.PaymentOrder) *PaymentOrderDelete
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 ¶
func (podo *PaymentOrderDeleteOne) Where(ps ...predicate.PaymentOrder) *PaymentOrderDeleteOne
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PaymentOrderGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PaymentOrderGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PaymentOrderGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PaymentOrderGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PaymentOrderGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (m *PaymentOrderMutation) Where(ps ...predicate.PaymentOrder)
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 ¶
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) 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 ¶
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 ¶
func (poq *PaymentOrderQuery) Order(o ...paymentorder.OrderOption) *PaymentOrderQuery
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 ¶
func (poq *PaymentOrderQuery) Where(ps ...predicate.PaymentOrder) *PaymentOrderQuery
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 ¶
func (por *PaymentOrderRecipient) Unwrap() *PaymentOrderRecipient
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 ¶
func (por *PaymentOrderRecipient) Update() *PaymentOrderRecipientUpdateOne
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.
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 ¶
func (c *PaymentOrderRecipientClient) Create() *PaymentOrderRecipientCreate
Create returns a builder for creating a PaymentOrderRecipient entity.
func (*PaymentOrderRecipientClient) CreateBulk ¶
func (c *PaymentOrderRecipientClient) CreateBulk(builders ...*PaymentOrderRecipientCreate) *PaymentOrderRecipientCreateBulk
CreateBulk returns a builder for creating a bulk of PaymentOrderRecipient entities.
func (*PaymentOrderRecipientClient) Delete ¶
func (c *PaymentOrderRecipientClient) Delete() *PaymentOrderRecipientDelete
Delete returns a delete builder for PaymentOrderRecipient.
func (*PaymentOrderRecipientClient) DeleteOne ¶
func (c *PaymentOrderRecipientClient) DeleteOne(por *PaymentOrderRecipient) *PaymentOrderRecipientDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*PaymentOrderRecipientClient) DeleteOneID ¶
func (c *PaymentOrderRecipientClient) DeleteOneID(id int) *PaymentOrderRecipientDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*PaymentOrderRecipientClient) Get ¶
func (c *PaymentOrderRecipientClient) Get(ctx context.Context, id int) (*PaymentOrderRecipient, error)
Get returns a PaymentOrderRecipient entity by its id.
func (*PaymentOrderRecipientClient) GetX ¶
func (c *PaymentOrderRecipientClient) GetX(ctx context.Context, id int) *PaymentOrderRecipient
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 ¶
func (c *PaymentOrderRecipientClient) MapCreateBulk(slice any, setFunc func(*PaymentOrderRecipientCreate, int)) *PaymentOrderRecipientCreateBulk
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 ¶
func (c *PaymentOrderRecipientClient) Query() *PaymentOrderRecipientQuery
Query returns a query builder for PaymentOrderRecipient.
func (*PaymentOrderRecipientClient) QueryPaymentOrder ¶
func (c *PaymentOrderRecipientClient) QueryPaymentOrder(por *PaymentOrderRecipient) *PaymentOrderQuery
QueryPaymentOrder queries the payment_order edge of a PaymentOrderRecipient.
func (*PaymentOrderRecipientClient) Update ¶
func (c *PaymentOrderRecipientClient) Update() *PaymentOrderRecipientUpdate
Update returns an update builder for PaymentOrderRecipient.
func (*PaymentOrderRecipientClient) UpdateOne ¶
func (c *PaymentOrderRecipientClient) UpdateOne(por *PaymentOrderRecipient) *PaymentOrderRecipientUpdateOne
UpdateOne returns an update builder for the given entity.
func (*PaymentOrderRecipientClient) UpdateOneID ¶
func (c *PaymentOrderRecipientClient) UpdateOneID(id int) *PaymentOrderRecipientUpdateOne
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 ¶
func (porc *PaymentOrderRecipientCreate) Exec(ctx context.Context) error
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 ¶
func (porc *PaymentOrderRecipientCreate) Mutation() *PaymentOrderRecipientMutation
Mutation returns the PaymentOrderRecipientMutation object of the builder.
func (*PaymentOrderRecipientCreate) OnConflict ¶
func (porc *PaymentOrderRecipientCreate) OnConflict(opts ...sql.ConflictOption) *PaymentOrderRecipientUpsertOne
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 ¶
func (porc *PaymentOrderRecipientCreate) Save(ctx context.Context) (*PaymentOrderRecipient, error)
Save creates the PaymentOrderRecipient in the database.
func (*PaymentOrderRecipientCreate) SaveX ¶
func (porc *PaymentOrderRecipientCreate) SaveX(ctx context.Context) *PaymentOrderRecipient
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 ¶
func (porc *PaymentOrderRecipientCreate) SetAccountName(s string) *PaymentOrderRecipientCreate
SetAccountName sets the "account_name" field.
func (*PaymentOrderRecipientCreate) SetInstitution ¶
func (porc *PaymentOrderRecipientCreate) SetInstitution(s string) *PaymentOrderRecipientCreate
SetInstitution sets the "institution" field.
func (*PaymentOrderRecipientCreate) SetMemo ¶
func (porc *PaymentOrderRecipientCreate) SetMemo(s string) *PaymentOrderRecipientCreate
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 ¶
func (porc *PaymentOrderRecipientCreate) SetNillableMemo(s *string) *PaymentOrderRecipientCreate
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 ¶
func (porc *PaymentOrderRecipientCreate) SetPaymentOrder(p *PaymentOrder) *PaymentOrderRecipientCreate
SetPaymentOrder sets the "payment_order" edge to the PaymentOrder entity.
func (*PaymentOrderRecipientCreate) SetPaymentOrderID ¶
func (porc *PaymentOrderRecipientCreate) SetPaymentOrderID(id uuid.UUID) *PaymentOrderRecipientCreate
SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID.
func (*PaymentOrderRecipientCreate) SetProviderID ¶
func (porc *PaymentOrderRecipientCreate) SetProviderID(s string) *PaymentOrderRecipientCreate
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 ¶
func (porcb *PaymentOrderRecipientCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*PaymentOrderRecipientCreateBulk) ExecX ¶
func (porcb *PaymentOrderRecipientCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PaymentOrderRecipientCreateBulk) OnConflict ¶
func (porcb *PaymentOrderRecipientCreateBulk) OnConflict(opts ...sql.ConflictOption) *PaymentOrderRecipientUpsertBulk
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 ¶
func (porcb *PaymentOrderRecipientCreateBulk) Save(ctx context.Context) ([]*PaymentOrderRecipient, error)
Save creates the PaymentOrderRecipient entities in the database.
func (*PaymentOrderRecipientCreateBulk) SaveX ¶
func (porcb *PaymentOrderRecipientCreateBulk) SaveX(ctx context.Context) []*PaymentOrderRecipient
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 ¶
func (pord *PaymentOrderRecipientDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*PaymentOrderRecipientDelete) ExecX ¶
func (pord *PaymentOrderRecipientDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*PaymentOrderRecipientDelete) Where ¶
func (pord *PaymentOrderRecipientDelete) Where(ps ...predicate.PaymentOrderRecipient) *PaymentOrderRecipientDelete
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 ¶
func (pordo *PaymentOrderRecipientDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*PaymentOrderRecipientDeleteOne) ExecX ¶
func (pordo *PaymentOrderRecipientDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PaymentOrderRecipientDeleteOne) Where ¶
func (pordo *PaymentOrderRecipientDeleteOne) Where(ps ...predicate.PaymentOrderRecipient) *PaymentOrderRecipientDeleteOne
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 ¶
func (porgb *PaymentOrderRecipientGroupBy) Aggregate(fns ...AggregateFunc) *PaymentOrderRecipientGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*PaymentOrderRecipientGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*PaymentOrderRecipientGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*PaymentOrderRecipientGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientGroupBy) Scan ¶
func (porgb *PaymentOrderRecipientGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*PaymentOrderRecipientGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientGroupBy) StringX ¶
StringX is like String, 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 ¶
func (m PaymentOrderRecipientMutation) 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 (*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 ¶
func (m *PaymentOrderRecipientMutation) 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 (*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 ¶
func (m *PaymentOrderRecipientMutation) 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 (*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 ¶
func (m *PaymentOrderRecipientMutation) 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 (*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 ¶
func (m *PaymentOrderRecipientMutation) Op() 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 ¶
func (m PaymentOrderRecipientMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*PaymentOrderRecipientMutation) Type ¶
func (m *PaymentOrderRecipientMutation) Type() string
Type returns the node type of this mutation (PaymentOrderRecipient).
func (*PaymentOrderRecipientMutation) Where ¶
func (m *PaymentOrderRecipientMutation) Where(ps ...predicate.PaymentOrderRecipient)
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 ¶
func (porq *PaymentOrderRecipientQuery) Aggregate(fns ...AggregateFunc) *PaymentOrderRecipientSelect
Aggregate returns a PaymentOrderRecipientSelect configured with the given aggregations.
func (*PaymentOrderRecipientQuery) All ¶
func (porq *PaymentOrderRecipientQuery) All(ctx context.Context) ([]*PaymentOrderRecipient, error)
All executes the query and returns a list of PaymentOrderRecipients.
func (*PaymentOrderRecipientQuery) AllX ¶
func (porq *PaymentOrderRecipientQuery) AllX(ctx context.Context) []*PaymentOrderRecipient
AllX is like All, but panics if an error occurs.
func (*PaymentOrderRecipientQuery) Clone ¶
func (porq *PaymentOrderRecipientQuery) Clone() *PaymentOrderRecipientQuery
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 ¶
func (porq *PaymentOrderRecipientQuery) First(ctx context.Context) (*PaymentOrderRecipient, error)
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 ¶
func (porq *PaymentOrderRecipientQuery) FirstX(ctx context.Context) *PaymentOrderRecipient
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 ¶
func (porq *PaymentOrderRecipientQuery) Limit(limit int) *PaymentOrderRecipientQuery
Limit the number of records to be returned by this query.
func (*PaymentOrderRecipientQuery) Offset ¶
func (porq *PaymentOrderRecipientQuery) Offset(offset int) *PaymentOrderRecipientQuery
Offset to start from.
func (*PaymentOrderRecipientQuery) Only ¶
func (porq *PaymentOrderRecipientQuery) Only(ctx context.Context) (*PaymentOrderRecipient, error)
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 ¶
func (porq *PaymentOrderRecipientQuery) OnlyX(ctx context.Context) *PaymentOrderRecipient
OnlyX is like Only, but panics if an error occurs.
func (*PaymentOrderRecipientQuery) Order ¶
func (porq *PaymentOrderRecipientQuery) Order(o ...paymentorderrecipient.OrderOption) *PaymentOrderRecipientQuery
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 ¶
func (porq *PaymentOrderRecipientQuery) Select(fields ...string) *PaymentOrderRecipientSelect
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 ¶
func (porq *PaymentOrderRecipientQuery) Unique(unique bool) *PaymentOrderRecipientQuery
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 ¶
func (porq *PaymentOrderRecipientQuery) Where(ps ...predicate.PaymentOrderRecipient) *PaymentOrderRecipientQuery
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 ¶
func (pors *PaymentOrderRecipientSelect) Aggregate(fns ...AggregateFunc) *PaymentOrderRecipientSelect
Aggregate adds the given aggregation functions to the selector query.
func (*PaymentOrderRecipientSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*PaymentOrderRecipientSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*PaymentOrderRecipientSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientSelect) Scan ¶
func (pors *PaymentOrderRecipientSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*PaymentOrderRecipientSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*PaymentOrderRecipientSelect) StringX ¶
StringX is like String, 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 ¶
func (poru *PaymentOrderRecipientUpdate) ClearMemo() *PaymentOrderRecipientUpdate
ClearMemo clears the value of the "memo" field.
func (*PaymentOrderRecipientUpdate) ClearMetadata ¶
func (poru *PaymentOrderRecipientUpdate) ClearMetadata() *PaymentOrderRecipientUpdate
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 ¶
func (poru *PaymentOrderRecipientUpdate) ClearProviderID() *PaymentOrderRecipientUpdate
ClearProviderID clears the value of the "provider_id" field.
func (*PaymentOrderRecipientUpdate) Exec ¶
func (poru *PaymentOrderRecipientUpdate) Exec(ctx context.Context) error
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 ¶
func (poru *PaymentOrderRecipientUpdate) Mutation() *PaymentOrderRecipientMutation
Mutation returns the PaymentOrderRecipientMutation object of the builder.
func (*PaymentOrderRecipientUpdate) Save ¶
func (poru *PaymentOrderRecipientUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*PaymentOrderRecipientUpdate) SaveX ¶
func (poru *PaymentOrderRecipientUpdate) SaveX(ctx context.Context) int
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 ¶
func (poru *PaymentOrderRecipientUpdate) SetAccountName(s string) *PaymentOrderRecipientUpdate
SetAccountName sets the "account_name" field.
func (*PaymentOrderRecipientUpdate) SetInstitution ¶
func (poru *PaymentOrderRecipientUpdate) SetInstitution(s string) *PaymentOrderRecipientUpdate
SetInstitution sets the "institution" field.
func (*PaymentOrderRecipientUpdate) SetMemo ¶
func (poru *PaymentOrderRecipientUpdate) SetMemo(s string) *PaymentOrderRecipientUpdate
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 ¶
func (poru *PaymentOrderRecipientUpdate) SetNillableMemo(s *string) *PaymentOrderRecipientUpdate
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 ¶
func (poru *PaymentOrderRecipientUpdate) SetPaymentOrder(p *PaymentOrder) *PaymentOrderRecipientUpdate
SetPaymentOrder sets the "payment_order" edge to the PaymentOrder entity.
func (*PaymentOrderRecipientUpdate) SetPaymentOrderID ¶
func (poru *PaymentOrderRecipientUpdate) SetPaymentOrderID(id uuid.UUID) *PaymentOrderRecipientUpdate
SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID.
func (*PaymentOrderRecipientUpdate) SetProviderID ¶
func (poru *PaymentOrderRecipientUpdate) SetProviderID(s string) *PaymentOrderRecipientUpdate
SetProviderID sets the "provider_id" field.
func (*PaymentOrderRecipientUpdate) Where ¶
func (poru *PaymentOrderRecipientUpdate) Where(ps ...predicate.PaymentOrderRecipient) *PaymentOrderRecipientUpdate
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 ¶
func (poruo *PaymentOrderRecipientUpdateOne) ClearMemo() *PaymentOrderRecipientUpdateOne
ClearMemo clears the value of the "memo" field.
func (*PaymentOrderRecipientUpdateOne) ClearMetadata ¶
func (poruo *PaymentOrderRecipientUpdateOne) ClearMetadata() *PaymentOrderRecipientUpdateOne
ClearMetadata clears the value of the "metadata" field.
func (*PaymentOrderRecipientUpdateOne) ClearPaymentOrder ¶
func (poruo *PaymentOrderRecipientUpdateOne) ClearPaymentOrder() *PaymentOrderRecipientUpdateOne
ClearPaymentOrder clears the "payment_order" edge to the PaymentOrder entity.
func (*PaymentOrderRecipientUpdateOne) ClearProviderID ¶
func (poruo *PaymentOrderRecipientUpdateOne) ClearProviderID() *PaymentOrderRecipientUpdateOne
ClearProviderID clears the value of the "provider_id" field.
func (*PaymentOrderRecipientUpdateOne) Exec ¶
func (poruo *PaymentOrderRecipientUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*PaymentOrderRecipientUpdateOne) ExecX ¶
func (poruo *PaymentOrderRecipientUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PaymentOrderRecipientUpdateOne) Mutation ¶
func (poruo *PaymentOrderRecipientUpdateOne) Mutation() *PaymentOrderRecipientMutation
Mutation returns the PaymentOrderRecipientMutation object of the builder.
func (*PaymentOrderRecipientUpdateOne) Save ¶
func (poruo *PaymentOrderRecipientUpdateOne) Save(ctx context.Context) (*PaymentOrderRecipient, error)
Save executes the query and returns the updated PaymentOrderRecipient entity.
func (*PaymentOrderRecipientUpdateOne) SaveX ¶
func (poruo *PaymentOrderRecipientUpdateOne) SaveX(ctx context.Context) *PaymentOrderRecipient
SaveX is like Save, but panics if an error occurs.
func (*PaymentOrderRecipientUpdateOne) Select ¶
func (poruo *PaymentOrderRecipientUpdateOne) Select(field string, fields ...string) *PaymentOrderRecipientUpdateOne
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 ¶
func (poruo *PaymentOrderRecipientUpdateOne) SetAccountIdentifier(s string) *PaymentOrderRecipientUpdateOne
SetAccountIdentifier sets the "account_identifier" field.
func (*PaymentOrderRecipientUpdateOne) SetAccountName ¶
func (poruo *PaymentOrderRecipientUpdateOne) SetAccountName(s string) *PaymentOrderRecipientUpdateOne
SetAccountName sets the "account_name" field.
func (*PaymentOrderRecipientUpdateOne) SetInstitution ¶
func (poruo *PaymentOrderRecipientUpdateOne) SetInstitution(s string) *PaymentOrderRecipientUpdateOne
SetInstitution sets the "institution" field.
func (*PaymentOrderRecipientUpdateOne) SetMemo ¶
func (poruo *PaymentOrderRecipientUpdateOne) SetMemo(s string) *PaymentOrderRecipientUpdateOne
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 ¶
func (poruo *PaymentOrderRecipientUpdateOne) SetNillableMemo(s *string) *PaymentOrderRecipientUpdateOne
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 ¶
func (poruo *PaymentOrderRecipientUpdateOne) SetPaymentOrder(p *PaymentOrder) *PaymentOrderRecipientUpdateOne
SetPaymentOrder sets the "payment_order" edge to the PaymentOrder entity.
func (*PaymentOrderRecipientUpdateOne) SetPaymentOrderID ¶
func (poruo *PaymentOrderRecipientUpdateOne) SetPaymentOrderID(id uuid.UUID) *PaymentOrderRecipientUpdateOne
SetPaymentOrderID sets the "payment_order" edge to the PaymentOrder entity by ID.
func (*PaymentOrderRecipientUpdateOne) SetProviderID ¶
func (poruo *PaymentOrderRecipientUpdateOne) SetProviderID(s string) *PaymentOrderRecipientUpdateOne
SetProviderID sets the "provider_id" field.
func (*PaymentOrderRecipientUpdateOne) Where ¶
func (poruo *PaymentOrderRecipientUpdateOne) Where(ps ...predicate.PaymentOrderRecipient) *PaymentOrderRecipientUpdateOne
Where appends a list predicates to the PaymentOrderRecipientUpdate builder.
type PaymentOrderRecipientUpsert ¶
PaymentOrderRecipientUpsert is the "OnConflict" setter.
func (*PaymentOrderRecipientUpsert) ClearMemo ¶
func (u *PaymentOrderRecipientUpsert) ClearMemo() *PaymentOrderRecipientUpsert
ClearMemo clears the value of the "memo" field.
func (*PaymentOrderRecipientUpsert) ClearMetadata ¶
func (u *PaymentOrderRecipientUpsert) ClearMetadata() *PaymentOrderRecipientUpsert
ClearMetadata clears the value of the "metadata" field.
func (*PaymentOrderRecipientUpsert) ClearProviderID ¶
func (u *PaymentOrderRecipientUpsert) ClearProviderID() *PaymentOrderRecipientUpsert
ClearProviderID clears the value of the "provider_id" field.
func (*PaymentOrderRecipientUpsert) SetAccountIdentifier ¶
func (u *PaymentOrderRecipientUpsert) SetAccountIdentifier(v string) *PaymentOrderRecipientUpsert
SetAccountIdentifier sets the "account_identifier" field.
func (*PaymentOrderRecipientUpsert) SetAccountName ¶
func (u *PaymentOrderRecipientUpsert) SetAccountName(v string) *PaymentOrderRecipientUpsert
SetAccountName sets the "account_name" field.
func (*PaymentOrderRecipientUpsert) SetInstitution ¶
func (u *PaymentOrderRecipientUpsert) SetInstitution(v string) *PaymentOrderRecipientUpsert
SetInstitution sets the "institution" field.
func (*PaymentOrderRecipientUpsert) SetMemo ¶
func (u *PaymentOrderRecipientUpsert) SetMemo(v string) *PaymentOrderRecipientUpsert
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 ¶
func (u *PaymentOrderRecipientUpsert) SetProviderID(v string) *PaymentOrderRecipientUpsert
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 ¶
func (u *PaymentOrderRecipientUpsert) UpdateAccountName() *PaymentOrderRecipientUpsert
UpdateAccountName sets the "account_name" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsert) UpdateInstitution ¶
func (u *PaymentOrderRecipientUpsert) UpdateInstitution() *PaymentOrderRecipientUpsert
UpdateInstitution sets the "institution" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsert) UpdateMemo ¶
func (u *PaymentOrderRecipientUpsert) UpdateMemo() *PaymentOrderRecipientUpsert
UpdateMemo sets the "memo" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsert) UpdateMetadata ¶
func (u *PaymentOrderRecipientUpsert) UpdateMetadata() *PaymentOrderRecipientUpsert
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsert) UpdateProviderID ¶
func (u *PaymentOrderRecipientUpsert) UpdateProviderID() *PaymentOrderRecipientUpsert
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 ¶
func (u *PaymentOrderRecipientUpsertBulk) ClearMemo() *PaymentOrderRecipientUpsertBulk
ClearMemo clears the value of the "memo" field.
func (*PaymentOrderRecipientUpsertBulk) ClearMetadata ¶
func (u *PaymentOrderRecipientUpsertBulk) ClearMetadata() *PaymentOrderRecipientUpsertBulk
ClearMetadata clears the value of the "metadata" field.
func (*PaymentOrderRecipientUpsertBulk) ClearProviderID ¶
func (u *PaymentOrderRecipientUpsertBulk) ClearProviderID() *PaymentOrderRecipientUpsertBulk
ClearProviderID clears the value of the "provider_id" field.
func (*PaymentOrderRecipientUpsertBulk) DoNothing ¶
func (u *PaymentOrderRecipientUpsertBulk) DoNothing() *PaymentOrderRecipientUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*PaymentOrderRecipientUpsertBulk) Exec ¶
func (u *PaymentOrderRecipientUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*PaymentOrderRecipientUpsertBulk) ExecX ¶
func (u *PaymentOrderRecipientUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PaymentOrderRecipientUpsertBulk) Ignore ¶
func (u *PaymentOrderRecipientUpsertBulk) Ignore() *PaymentOrderRecipientUpsertBulk
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 ¶
func (u *PaymentOrderRecipientUpsertBulk) SetAccountIdentifier(v string) *PaymentOrderRecipientUpsertBulk
SetAccountIdentifier sets the "account_identifier" field.
func (*PaymentOrderRecipientUpsertBulk) SetAccountName ¶
func (u *PaymentOrderRecipientUpsertBulk) SetAccountName(v string) *PaymentOrderRecipientUpsertBulk
SetAccountName sets the "account_name" field.
func (*PaymentOrderRecipientUpsertBulk) SetInstitution ¶
func (u *PaymentOrderRecipientUpsertBulk) SetInstitution(v string) *PaymentOrderRecipientUpsertBulk
SetInstitution sets the "institution" field.
func (*PaymentOrderRecipientUpsertBulk) SetMemo ¶
func (u *PaymentOrderRecipientUpsertBulk) SetMemo(v string) *PaymentOrderRecipientUpsertBulk
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 ¶
func (u *PaymentOrderRecipientUpsertBulk) SetProviderID(v string) *PaymentOrderRecipientUpsertBulk
SetProviderID sets the "provider_id" field.
func (*PaymentOrderRecipientUpsertBulk) Update ¶
func (u *PaymentOrderRecipientUpsertBulk) Update(set func(*PaymentOrderRecipientUpsert)) *PaymentOrderRecipientUpsertBulk
Update allows overriding fields `UPDATE` values. See the PaymentOrderRecipientCreateBulk.OnConflict documentation for more info.
func (*PaymentOrderRecipientUpsertBulk) UpdateAccountIdentifier ¶
func (u *PaymentOrderRecipientUpsertBulk) UpdateAccountIdentifier() *PaymentOrderRecipientUpsertBulk
UpdateAccountIdentifier sets the "account_identifier" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsertBulk) UpdateAccountName ¶
func (u *PaymentOrderRecipientUpsertBulk) UpdateAccountName() *PaymentOrderRecipientUpsertBulk
UpdateAccountName sets the "account_name" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsertBulk) UpdateInstitution ¶
func (u *PaymentOrderRecipientUpsertBulk) UpdateInstitution() *PaymentOrderRecipientUpsertBulk
UpdateInstitution sets the "institution" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsertBulk) UpdateMemo ¶
func (u *PaymentOrderRecipientUpsertBulk) UpdateMemo() *PaymentOrderRecipientUpsertBulk
UpdateMemo sets the "memo" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsertBulk) UpdateMetadata ¶
func (u *PaymentOrderRecipientUpsertBulk) UpdateMetadata() *PaymentOrderRecipientUpsertBulk
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsertBulk) UpdateNewValues ¶
func (u *PaymentOrderRecipientUpsertBulk) UpdateNewValues() *PaymentOrderRecipientUpsertBulk
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 ¶
func (u *PaymentOrderRecipientUpsertBulk) UpdateProviderID() *PaymentOrderRecipientUpsertBulk
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 ¶
func (u *PaymentOrderRecipientUpsertOne) ClearMemo() *PaymentOrderRecipientUpsertOne
ClearMemo clears the value of the "memo" field.
func (*PaymentOrderRecipientUpsertOne) ClearMetadata ¶
func (u *PaymentOrderRecipientUpsertOne) ClearMetadata() *PaymentOrderRecipientUpsertOne
ClearMetadata clears the value of the "metadata" field.
func (*PaymentOrderRecipientUpsertOne) ClearProviderID ¶
func (u *PaymentOrderRecipientUpsertOne) ClearProviderID() *PaymentOrderRecipientUpsertOne
ClearProviderID clears the value of the "provider_id" field.
func (*PaymentOrderRecipientUpsertOne) DoNothing ¶
func (u *PaymentOrderRecipientUpsertOne) DoNothing() *PaymentOrderRecipientUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*PaymentOrderRecipientUpsertOne) Exec ¶
func (u *PaymentOrderRecipientUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*PaymentOrderRecipientUpsertOne) ExecX ¶
func (u *PaymentOrderRecipientUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PaymentOrderRecipientUpsertOne) ID ¶
func (u *PaymentOrderRecipientUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*PaymentOrderRecipientUpsertOne) IDX ¶
func (u *PaymentOrderRecipientUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*PaymentOrderRecipientUpsertOne) Ignore ¶
func (u *PaymentOrderRecipientUpsertOne) Ignore() *PaymentOrderRecipientUpsertOne
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 ¶
func (u *PaymentOrderRecipientUpsertOne) SetAccountIdentifier(v string) *PaymentOrderRecipientUpsertOne
SetAccountIdentifier sets the "account_identifier" field.
func (*PaymentOrderRecipientUpsertOne) SetAccountName ¶
func (u *PaymentOrderRecipientUpsertOne) SetAccountName(v string) *PaymentOrderRecipientUpsertOne
SetAccountName sets the "account_name" field.
func (*PaymentOrderRecipientUpsertOne) SetInstitution ¶
func (u *PaymentOrderRecipientUpsertOne) SetInstitution(v string) *PaymentOrderRecipientUpsertOne
SetInstitution sets the "institution" field.
func (*PaymentOrderRecipientUpsertOne) SetMemo ¶
func (u *PaymentOrderRecipientUpsertOne) SetMemo(v string) *PaymentOrderRecipientUpsertOne
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 ¶
func (u *PaymentOrderRecipientUpsertOne) SetProviderID(v string) *PaymentOrderRecipientUpsertOne
SetProviderID sets the "provider_id" field.
func (*PaymentOrderRecipientUpsertOne) Update ¶
func (u *PaymentOrderRecipientUpsertOne) Update(set func(*PaymentOrderRecipientUpsert)) *PaymentOrderRecipientUpsertOne
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 ¶
func (u *PaymentOrderRecipientUpsertOne) UpdateAccountName() *PaymentOrderRecipientUpsertOne
UpdateAccountName sets the "account_name" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsertOne) UpdateInstitution ¶
func (u *PaymentOrderRecipientUpsertOne) UpdateInstitution() *PaymentOrderRecipientUpsertOne
UpdateInstitution sets the "institution" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsertOne) UpdateMemo ¶
func (u *PaymentOrderRecipientUpsertOne) UpdateMemo() *PaymentOrderRecipientUpsertOne
UpdateMemo sets the "memo" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsertOne) UpdateMetadata ¶
func (u *PaymentOrderRecipientUpsertOne) UpdateMetadata() *PaymentOrderRecipientUpsertOne
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*PaymentOrderRecipientUpsertOne) UpdateNewValues ¶
func (u *PaymentOrderRecipientUpsertOne) UpdateNewValues() *PaymentOrderRecipientUpsertOne
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 ¶
func (u *PaymentOrderRecipientUpsertOne) UpdateProviderID() *PaymentOrderRecipientUpsertOne
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PaymentOrderSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PaymentOrderSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PaymentOrderSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PaymentOrderSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PaymentOrderSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type PaymentOrderUpdate ¶
type PaymentOrderUpdate struct {
// contains filtered or unexported fields
}
PaymentOrderUpdate is the builder for updating PaymentOrder entities.
func (*PaymentOrderUpdate) AddAmount ¶
func (pou *PaymentOrderUpdate) AddAmount(d decimal.Decimal) *PaymentOrderUpdate
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 ¶
func (pou *PaymentOrderUpdate) AddRate(d decimal.Decimal) *PaymentOrderUpdate
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 ¶
func (pou *PaymentOrderUpdate) SetAmount(d decimal.Decimal) *PaymentOrderUpdate
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 ¶
func (pou *PaymentOrderUpdate) SetRate(d decimal.Decimal) *PaymentOrderUpdate
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 ¶
func (pou *PaymentOrderUpdate) SetRecipient(p *PaymentOrderRecipient) *PaymentOrderUpdate
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 ¶
func (pou *PaymentOrderUpdate) SetStatus(pa paymentorder.Status) *PaymentOrderUpdate
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 ¶
func (pou *PaymentOrderUpdate) Where(ps ...predicate.PaymentOrder) *PaymentOrderUpdate
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 ¶
func (pouo *PaymentOrderUpdateOne) AddAmount(d decimal.Decimal) *PaymentOrderUpdateOne
AddAmount adds d to the "amount" field.
func (*PaymentOrderUpdateOne) AddAmountPaid ¶
func (pouo *PaymentOrderUpdateOne) AddAmountPaid(d decimal.Decimal) *PaymentOrderUpdateOne
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 ¶
func (pouo *PaymentOrderUpdateOne) AddFeePercent(d decimal.Decimal) *PaymentOrderUpdateOne
AddFeePercent adds d to the "fee_percent" field.
func (*PaymentOrderUpdateOne) AddNetworkFee ¶
func (pouo *PaymentOrderUpdateOne) AddNetworkFee(d decimal.Decimal) *PaymentOrderUpdateOne
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 ¶
func (pouo *PaymentOrderUpdateOne) AddRate(d decimal.Decimal) *PaymentOrderUpdateOne
AddRate adds d to the "rate" field.
func (*PaymentOrderUpdateOne) AddSenderFee ¶
func (pouo *PaymentOrderUpdateOne) AddSenderFee(d decimal.Decimal) *PaymentOrderUpdateOne
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 ¶
func (pouo *PaymentOrderUpdateOne) Save(ctx context.Context) (*PaymentOrder, error)
Save executes the query and returns the updated PaymentOrder entity.
func (*PaymentOrderUpdateOne) SaveX ¶
func (pouo *PaymentOrderUpdateOne) SaveX(ctx context.Context) *PaymentOrder
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 ¶
func (pouo *PaymentOrderUpdateOne) SetAmount(d decimal.Decimal) *PaymentOrderUpdateOne
SetAmount sets the "amount" field.
func (*PaymentOrderUpdateOne) SetAmountPaid ¶
func (pouo *PaymentOrderUpdateOne) SetAmountPaid(d decimal.Decimal) *PaymentOrderUpdateOne
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 ¶
func (pouo *PaymentOrderUpdateOne) SetFeePercent(d decimal.Decimal) *PaymentOrderUpdateOne
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 ¶
func (pouo *PaymentOrderUpdateOne) SetNetworkFee(d decimal.Decimal) *PaymentOrderUpdateOne
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 ¶
func (pouo *PaymentOrderUpdateOne) SetRate(d decimal.Decimal) *PaymentOrderUpdateOne
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 ¶
func (pouo *PaymentOrderUpdateOne) SetRecipient(p *PaymentOrderRecipient) *PaymentOrderUpdateOne
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 ¶
func (pouo *PaymentOrderUpdateOne) SetSenderFee(d decimal.Decimal) *PaymentOrderUpdateOne
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 ¶
func (pouo *PaymentOrderUpdateOne) SetStatus(pa paymentorder.Status) *PaymentOrderUpdateOne
SetStatus sets the "status" field.
func (*PaymentOrderUpdateOne) SetToken ¶
func (pouo *PaymentOrderUpdateOne) SetToken(t *Token) *PaymentOrderUpdateOne
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 ¶
func (pouo *PaymentOrderUpdateOne) SetTxHash(s string) *PaymentOrderUpdateOne
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 ¶
func (pouo *PaymentOrderUpdateOne) Where(ps ...predicate.PaymentOrder) *PaymentOrderUpdateOne
Where appends a list predicates to the PaymentOrderUpdate builder.
type PaymentOrderUpsert ¶
PaymentOrderUpsert is the "OnConflict" setter.
func (*PaymentOrderUpsert) AddAmount ¶
func (u *PaymentOrderUpsert) AddAmount(v decimal.Decimal) *PaymentOrderUpsert
AddAmount adds v to the "amount" field.
func (*PaymentOrderUpsert) AddAmountPaid ¶
func (u *PaymentOrderUpsert) AddAmountPaid(v decimal.Decimal) *PaymentOrderUpsert
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 ¶
func (u *PaymentOrderUpsert) AddFeePercent(v decimal.Decimal) *PaymentOrderUpsert
AddFeePercent adds v to the "fee_percent" field.
func (*PaymentOrderUpsert) AddNetworkFee ¶
func (u *PaymentOrderUpsert) AddNetworkFee(v decimal.Decimal) *PaymentOrderUpsert
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 ¶
func (u *PaymentOrderUpsert) AddRate(v decimal.Decimal) *PaymentOrderUpsert
AddRate adds v to the "rate" field.
func (*PaymentOrderUpsert) AddSenderFee ¶
func (u *PaymentOrderUpsert) AddSenderFee(v decimal.Decimal) *PaymentOrderUpsert
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 ¶
func (u *PaymentOrderUpsert) SetAmount(v decimal.Decimal) *PaymentOrderUpsert
SetAmount sets the "amount" field.
func (*PaymentOrderUpsert) SetAmountPaid ¶
func (u *PaymentOrderUpsert) SetAmountPaid(v decimal.Decimal) *PaymentOrderUpsert
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 ¶
func (u *PaymentOrderUpsert) SetFeePercent(v decimal.Decimal) *PaymentOrderUpsert
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 ¶
func (u *PaymentOrderUpsert) SetNetworkFee(v decimal.Decimal) *PaymentOrderUpsert
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 ¶
func (u *PaymentOrderUpsert) SetRate(v decimal.Decimal) *PaymentOrderUpsert
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 ¶
func (u *PaymentOrderUpsert) SetSenderFee(v decimal.Decimal) *PaymentOrderUpsert
SetSenderFee sets the "sender_fee" field.
func (*PaymentOrderUpsert) SetStatus ¶
func (u *PaymentOrderUpsert) SetStatus(v paymentorder.Status) *PaymentOrderUpsert
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 ¶
func (u *PaymentOrderUpsertBulk) AddAmount(v decimal.Decimal) *PaymentOrderUpsertBulk
AddAmount adds v to the "amount" field.
func (*PaymentOrderUpsertBulk) AddAmountPaid ¶
func (u *PaymentOrderUpsertBulk) AddAmountPaid(v decimal.Decimal) *PaymentOrderUpsertBulk
AddAmountPaid adds v to the "amount_paid" field.
func (*PaymentOrderUpsertBulk) AddAmountReturned ¶
func (u *PaymentOrderUpsertBulk) AddAmountReturned(v decimal.Decimal) *PaymentOrderUpsertBulk
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 ¶
func (u *PaymentOrderUpsertBulk) AddFeePercent(v decimal.Decimal) *PaymentOrderUpsertBulk
AddFeePercent adds v to the "fee_percent" field.
func (*PaymentOrderUpsertBulk) AddNetworkFee ¶
func (u *PaymentOrderUpsertBulk) AddNetworkFee(v decimal.Decimal) *PaymentOrderUpsertBulk
AddNetworkFee adds v to the "network_fee" field.
func (*PaymentOrderUpsertBulk) AddPercentSettled ¶
func (u *PaymentOrderUpsertBulk) AddPercentSettled(v decimal.Decimal) *PaymentOrderUpsertBulk
AddPercentSettled adds v to the "percent_settled" field.
func (*PaymentOrderUpsertBulk) AddRate ¶
func (u *PaymentOrderUpsertBulk) AddRate(v decimal.Decimal) *PaymentOrderUpsertBulk
AddRate adds v to the "rate" field.
func (*PaymentOrderUpsertBulk) AddSenderFee ¶
func (u *PaymentOrderUpsertBulk) AddSenderFee(v decimal.Decimal) *PaymentOrderUpsertBulk
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 ¶
func (u *PaymentOrderUpsertBulk) ClearTxHash() *PaymentOrderUpsertBulk
ClearTxHash clears the value of the "tx_hash" field.
func (*PaymentOrderUpsertBulk) DoNothing ¶
func (u *PaymentOrderUpsertBulk) DoNothing() *PaymentOrderUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*PaymentOrderUpsertBulk) Exec ¶
func (u *PaymentOrderUpsertBulk) Exec(ctx context.Context) error
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 ¶
func (u *PaymentOrderUpsertBulk) Ignore() *PaymentOrderUpsertBulk
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 ¶
func (u *PaymentOrderUpsertBulk) SetAmount(v decimal.Decimal) *PaymentOrderUpsertBulk
SetAmount sets the "amount" field.
func (*PaymentOrderUpsertBulk) SetAmountPaid ¶
func (u *PaymentOrderUpsertBulk) SetAmountPaid(v decimal.Decimal) *PaymentOrderUpsertBulk
SetAmountPaid sets the "amount_paid" field.
func (*PaymentOrderUpsertBulk) SetAmountReturned ¶
func (u *PaymentOrderUpsertBulk) SetAmountReturned(v decimal.Decimal) *PaymentOrderUpsertBulk
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 ¶
func (u *PaymentOrderUpsertBulk) SetFeeAddress(v string) *PaymentOrderUpsertBulk
SetFeeAddress sets the "fee_address" field.
func (*PaymentOrderUpsertBulk) SetFeePercent ¶
func (u *PaymentOrderUpsertBulk) SetFeePercent(v decimal.Decimal) *PaymentOrderUpsertBulk
SetFeePercent sets the "fee_percent" field.
func (*PaymentOrderUpsertBulk) SetFromAddress ¶
func (u *PaymentOrderUpsertBulk) SetFromAddress(v string) *PaymentOrderUpsertBulk
SetFromAddress sets the "from_address" field.
func (*PaymentOrderUpsertBulk) SetGatewayID ¶
func (u *PaymentOrderUpsertBulk) SetGatewayID(v string) *PaymentOrderUpsertBulk
SetGatewayID sets the "gateway_id" field.
func (*PaymentOrderUpsertBulk) SetMessageHash ¶
func (u *PaymentOrderUpsertBulk) SetMessageHash(v string) *PaymentOrderUpsertBulk
SetMessageHash sets the "message_hash" field.
func (*PaymentOrderUpsertBulk) SetNetworkFee ¶
func (u *PaymentOrderUpsertBulk) SetNetworkFee(v decimal.Decimal) *PaymentOrderUpsertBulk
SetNetworkFee sets the "network_fee" field.
func (*PaymentOrderUpsertBulk) SetPercentSettled ¶
func (u *PaymentOrderUpsertBulk) SetPercentSettled(v decimal.Decimal) *PaymentOrderUpsertBulk
SetPercentSettled sets the "percent_settled" field.
func (*PaymentOrderUpsertBulk) SetRate ¶
func (u *PaymentOrderUpsertBulk) SetRate(v decimal.Decimal) *PaymentOrderUpsertBulk
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 ¶
func (u *PaymentOrderUpsertBulk) SetReference(v string) *PaymentOrderUpsertBulk
SetReference sets the "reference" field.
func (*PaymentOrderUpsertBulk) SetReturnAddress ¶
func (u *PaymentOrderUpsertBulk) SetReturnAddress(v string) *PaymentOrderUpsertBulk
SetReturnAddress sets the "return_address" field.
func (*PaymentOrderUpsertBulk) SetSenderFee ¶
func (u *PaymentOrderUpsertBulk) SetSenderFee(v decimal.Decimal) *PaymentOrderUpsertBulk
SetSenderFee sets the "sender_fee" field.
func (*PaymentOrderUpsertBulk) SetStatus ¶
func (u *PaymentOrderUpsertBulk) SetStatus(v paymentorder.Status) *PaymentOrderUpsertBulk
SetStatus sets the "status" field.
func (*PaymentOrderUpsertBulk) SetTxHash ¶
func (u *PaymentOrderUpsertBulk) SetTxHash(v string) *PaymentOrderUpsertBulk
SetTxHash sets the "tx_hash" field.
func (*PaymentOrderUpsertBulk) SetUpdatedAt ¶
func (u *PaymentOrderUpsertBulk) SetUpdatedAt(v time.Time) *PaymentOrderUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*PaymentOrderUpsertBulk) Update ¶
func (u *PaymentOrderUpsertBulk) Update(set func(*PaymentOrderUpsert)) *PaymentOrderUpsertBulk
Update allows overriding fields `UPDATE` values. See the PaymentOrderCreateBulk.OnConflict documentation for more info.
func (*PaymentOrderUpsertBulk) UpdateAmount ¶
func (u *PaymentOrderUpsertBulk) UpdateAmount() *PaymentOrderUpsertBulk
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 ¶
func (u *PaymentOrderUpsertBulk) UpdateRate() *PaymentOrderUpsertBulk
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 ¶
func (u *PaymentOrderUpsertBulk) UpdateStatus() *PaymentOrderUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*PaymentOrderUpsertBulk) UpdateTxHash ¶
func (u *PaymentOrderUpsertBulk) UpdateTxHash() *PaymentOrderUpsertBulk
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 ¶
func (u *PaymentOrderUpsertOne) AddAmount(v decimal.Decimal) *PaymentOrderUpsertOne
AddAmount adds v to the "amount" field.
func (*PaymentOrderUpsertOne) AddAmountPaid ¶
func (u *PaymentOrderUpsertOne) AddAmountPaid(v decimal.Decimal) *PaymentOrderUpsertOne
AddAmountPaid adds v to the "amount_paid" field.
func (*PaymentOrderUpsertOne) AddAmountReturned ¶
func (u *PaymentOrderUpsertOne) AddAmountReturned(v decimal.Decimal) *PaymentOrderUpsertOne
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 ¶
func (u *PaymentOrderUpsertOne) AddFeePercent(v decimal.Decimal) *PaymentOrderUpsertOne
AddFeePercent adds v to the "fee_percent" field.
func (*PaymentOrderUpsertOne) AddNetworkFee ¶
func (u *PaymentOrderUpsertOne) AddNetworkFee(v decimal.Decimal) *PaymentOrderUpsertOne
AddNetworkFee adds v to the "network_fee" field.
func (*PaymentOrderUpsertOne) AddPercentSettled ¶
func (u *PaymentOrderUpsertOne) AddPercentSettled(v decimal.Decimal) *PaymentOrderUpsertOne
AddPercentSettled adds v to the "percent_settled" field.
func (*PaymentOrderUpsertOne) AddRate ¶
func (u *PaymentOrderUpsertOne) AddRate(v decimal.Decimal) *PaymentOrderUpsertOne
AddRate adds v to the "rate" field.
func (*PaymentOrderUpsertOne) AddSenderFee ¶
func (u *PaymentOrderUpsertOne) AddSenderFee(v decimal.Decimal) *PaymentOrderUpsertOne
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 ¶
func (u *PaymentOrderUpsertOne) DoNothing() *PaymentOrderUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*PaymentOrderUpsertOne) Exec ¶
func (u *PaymentOrderUpsertOne) Exec(ctx context.Context) error
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 ¶
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*PaymentOrderUpsertOne) IDX ¶
func (u *PaymentOrderUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*PaymentOrderUpsertOne) Ignore ¶
func (u *PaymentOrderUpsertOne) Ignore() *PaymentOrderUpsertOne
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 ¶
func (u *PaymentOrderUpsertOne) SetAmount(v decimal.Decimal) *PaymentOrderUpsertOne
SetAmount sets the "amount" field.
func (*PaymentOrderUpsertOne) SetAmountPaid ¶
func (u *PaymentOrderUpsertOne) SetAmountPaid(v decimal.Decimal) *PaymentOrderUpsertOne
SetAmountPaid sets the "amount_paid" field.
func (*PaymentOrderUpsertOne) SetAmountReturned ¶
func (u *PaymentOrderUpsertOne) SetAmountReturned(v decimal.Decimal) *PaymentOrderUpsertOne
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 ¶
func (u *PaymentOrderUpsertOne) SetFeePercent(v decimal.Decimal) *PaymentOrderUpsertOne
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 ¶
func (u *PaymentOrderUpsertOne) SetGatewayID(v string) *PaymentOrderUpsertOne
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 ¶
func (u *PaymentOrderUpsertOne) SetNetworkFee(v decimal.Decimal) *PaymentOrderUpsertOne
SetNetworkFee sets the "network_fee" field.
func (*PaymentOrderUpsertOne) SetPercentSettled ¶
func (u *PaymentOrderUpsertOne) SetPercentSettled(v decimal.Decimal) *PaymentOrderUpsertOne
SetPercentSettled sets the "percent_settled" field.
func (*PaymentOrderUpsertOne) SetRate ¶
func (u *PaymentOrderUpsertOne) SetRate(v decimal.Decimal) *PaymentOrderUpsertOne
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 ¶
func (u *PaymentOrderUpsertOne) SetReference(v string) *PaymentOrderUpsertOne
SetReference sets the "reference" field.
func (*PaymentOrderUpsertOne) SetReturnAddress ¶
func (u *PaymentOrderUpsertOne) SetReturnAddress(v string) *PaymentOrderUpsertOne
SetReturnAddress sets the "return_address" field.
func (*PaymentOrderUpsertOne) SetSenderFee ¶
func (u *PaymentOrderUpsertOne) SetSenderFee(v decimal.Decimal) *PaymentOrderUpsertOne
SetSenderFee sets the "sender_fee" field.
func (*PaymentOrderUpsertOne) SetStatus ¶
func (u *PaymentOrderUpsertOne) SetStatus(v paymentorder.Status) *PaymentOrderUpsertOne
SetStatus sets the "status" field.
func (*PaymentOrderUpsertOne) SetTxHash ¶
func (u *PaymentOrderUpsertOne) SetTxHash(v string) *PaymentOrderUpsertOne
SetTxHash sets the "tx_hash" field.
func (*PaymentOrderUpsertOne) SetUpdatedAt ¶
func (u *PaymentOrderUpsertOne) SetUpdatedAt(v time.Time) *PaymentOrderUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*PaymentOrderUpsertOne) Update ¶
func (u *PaymentOrderUpsertOne) Update(set func(*PaymentOrderUpsert)) *PaymentOrderUpsertOne
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 ¶
func (u *PaymentOrderUpsertOne) UpdateRate() *PaymentOrderUpsertOne
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 ¶
func (pw *PaymentWebhook) Update() *PaymentWebhookUpdateOne
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.
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 ¶
func (c *PaymentWebhookClient) Create() *PaymentWebhookCreate
Create returns a builder for creating a PaymentWebhook entity.
func (*PaymentWebhookClient) CreateBulk ¶
func (c *PaymentWebhookClient) CreateBulk(builders ...*PaymentWebhookCreate) *PaymentWebhookCreateBulk
CreateBulk returns a builder for creating a bulk of PaymentWebhook entities.
func (*PaymentWebhookClient) Delete ¶
func (c *PaymentWebhookClient) Delete() *PaymentWebhookDelete
Delete returns a delete builder for PaymentWebhook.
func (*PaymentWebhookClient) DeleteOne ¶
func (c *PaymentWebhookClient) DeleteOne(pw *PaymentWebhook) *PaymentWebhookDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*PaymentWebhookClient) DeleteOneID ¶
func (c *PaymentWebhookClient) DeleteOneID(id uuid.UUID) *PaymentWebhookDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*PaymentWebhookClient) Get ¶
func (c *PaymentWebhookClient) Get(ctx context.Context, id uuid.UUID) (*PaymentWebhook, error)
Get returns a PaymentWebhook entity by its id.
func (*PaymentWebhookClient) GetX ¶
func (c *PaymentWebhookClient) GetX(ctx context.Context, id uuid.UUID) *PaymentWebhook
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 ¶
func (c *PaymentWebhookClient) Query() *PaymentWebhookQuery
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 ¶
func (c *PaymentWebhookClient) Update() *PaymentWebhookUpdate
Update returns an update builder for PaymentWebhook.
func (*PaymentWebhookClient) UpdateOne ¶
func (c *PaymentWebhookClient) UpdateOne(pw *PaymentWebhook) *PaymentWebhookUpdateOne
UpdateOne returns an update builder for the given entity.
func (*PaymentWebhookClient) UpdateOneID ¶
func (c *PaymentWebhookClient) UpdateOneID(id uuid.UUID) *PaymentWebhookUpdateOne
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 ¶
func (pwc *PaymentWebhookCreate) Mutation() *PaymentWebhookMutation
Mutation returns the PaymentWebhookMutation object of the builder.
func (*PaymentWebhookCreate) OnConflict ¶
func (pwc *PaymentWebhookCreate) OnConflict(opts ...sql.ConflictOption) *PaymentWebhookUpsertOne
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 ¶
func (pwc *PaymentWebhookCreate) Save(ctx context.Context) (*PaymentWebhook, error)
Save creates the PaymentWebhook in the database.
func (*PaymentWebhookCreate) SaveX ¶
func (pwc *PaymentWebhookCreate) SaveX(ctx context.Context) *PaymentWebhook
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 ¶
func (pwc *PaymentWebhookCreate) SetID(u uuid.UUID) *PaymentWebhookCreate
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 ¶
func (pwcb *PaymentWebhookCreateBulk) Exec(ctx context.Context) error
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 ¶
func (pwcb *PaymentWebhookCreateBulk) OnConflict(opts ...sql.ConflictOption) *PaymentWebhookUpsertBulk
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 ¶
func (pwcb *PaymentWebhookCreateBulk) Save(ctx context.Context) ([]*PaymentWebhook, error)
Save creates the PaymentWebhook entities in the database.
func (*PaymentWebhookCreateBulk) SaveX ¶
func (pwcb *PaymentWebhookCreateBulk) SaveX(ctx context.Context) []*PaymentWebhook
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 ¶
func (pwd *PaymentWebhookDelete) Where(ps ...predicate.PaymentWebhook) *PaymentWebhookDelete
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 ¶
func (pwdo *PaymentWebhookDeleteOne) Where(ps ...predicate.PaymentWebhook) *PaymentWebhookDeleteOne
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 ¶
func (pwgb *PaymentWebhookGroupBy) Aggregate(fns ...AggregateFunc) *PaymentWebhookGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*PaymentWebhookGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PaymentWebhookGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PaymentWebhookGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PaymentWebhookGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PaymentWebhookGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*PaymentWebhookGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PaymentWebhookGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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 ¶
func (m *PaymentWebhookMutation) Where(ps ...predicate.PaymentWebhook)
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 ¶
func (pwq *PaymentWebhookQuery) All(ctx context.Context) ([]*PaymentWebhook, error)
All executes the query and returns a list of PaymentWebhooks.
func (*PaymentWebhookQuery) AllX ¶
func (pwq *PaymentWebhookQuery) AllX(ctx context.Context) []*PaymentWebhook
AllX is like All, but panics if an error occurs.
func (*PaymentWebhookQuery) Clone ¶
func (pwq *PaymentWebhookQuery) Clone() *PaymentWebhookQuery
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 ¶
func (pwq *PaymentWebhookQuery) First(ctx context.Context) (*PaymentWebhook, error)
First returns the first PaymentWebhook entity from the query. Returns a *NotFoundError when no PaymentWebhook was found.
func (*PaymentWebhookQuery) FirstID ¶
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 ¶
func (pwq *PaymentWebhookQuery) FirstX(ctx context.Context) *PaymentWebhook
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) 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 ¶
func (pwq *PaymentWebhookQuery) Only(ctx context.Context) (*PaymentWebhook, error)
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 ¶
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 ¶
func (pwq *PaymentWebhookQuery) OnlyX(ctx context.Context) *PaymentWebhook
OnlyX is like Only, but panics if an error occurs.
func (*PaymentWebhookQuery) Order ¶
func (pwq *PaymentWebhookQuery) Order(o ...paymentwebhook.OrderOption) *PaymentWebhookQuery
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 ¶
func (pwq *PaymentWebhookQuery) Where(ps ...predicate.PaymentWebhook) *PaymentWebhookQuery
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 ¶
func (pws *PaymentWebhookSelect) Aggregate(fns ...AggregateFunc) *PaymentWebhookSelect
Aggregate adds the given aggregation functions to the selector query.
func (*PaymentWebhookSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PaymentWebhookSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PaymentWebhookSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PaymentWebhookSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PaymentWebhookSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PaymentWebhookSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (pwu *PaymentWebhookUpdate) Mutation() *PaymentWebhookMutation
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 ¶
func (pwu *PaymentWebhookUpdate) Where(ps ...predicate.PaymentWebhook) *PaymentWebhookUpdate
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 ¶
func (pwuo *PaymentWebhookUpdateOne) Mutation() *PaymentWebhookMutation
Mutation returns the PaymentWebhookMutation object of the builder.
func (*PaymentWebhookUpdateOne) Save ¶
func (pwuo *PaymentWebhookUpdateOne) Save(ctx context.Context) (*PaymentWebhook, error)
Save executes the query and returns the updated PaymentWebhook entity.
func (*PaymentWebhookUpdateOne) SaveX ¶
func (pwuo *PaymentWebhookUpdateOne) SaveX(ctx context.Context) *PaymentWebhook
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 ¶
func (pwuo *PaymentWebhookUpdateOne) SetNetwork(n *Network) *PaymentWebhookUpdateOne
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 ¶
func (pwuo *PaymentWebhookUpdateOne) SetPaymentOrder(p *PaymentOrder) *PaymentWebhookUpdateOne
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 ¶
func (pwuo *PaymentWebhookUpdateOne) SetUpdatedAt(t time.Time) *PaymentWebhookUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*PaymentWebhookUpdateOne) SetWebhookID ¶
func (pwuo *PaymentWebhookUpdateOne) SetWebhookID(s string) *PaymentWebhookUpdateOne
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 ¶
func (pwuo *PaymentWebhookUpdateOne) Where(ps ...predicate.PaymentWebhook) *PaymentWebhookUpdateOne
Where appends a list predicates to the PaymentWebhookUpdate builder.
type PaymentWebhookUpsert ¶
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 ¶
func (u *PaymentWebhookUpsertBulk) DoNothing() *PaymentWebhookUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*PaymentWebhookUpsertBulk) Exec ¶
func (u *PaymentWebhookUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*PaymentWebhookUpsertBulk) ExecX ¶
func (u *PaymentWebhookUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PaymentWebhookUpsertBulk) Ignore ¶
func (u *PaymentWebhookUpsertBulk) Ignore() *PaymentWebhookUpsertBulk
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 ¶
func (u *PaymentWebhookUpsertBulk) SetCallbackURL(v string) *PaymentWebhookUpsertBulk
SetCallbackURL sets the "callback_url" field.
func (*PaymentWebhookUpsertBulk) SetUpdatedAt ¶
func (u *PaymentWebhookUpsertBulk) SetUpdatedAt(v time.Time) *PaymentWebhookUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*PaymentWebhookUpsertBulk) SetWebhookID ¶
func (u *PaymentWebhookUpsertBulk) SetWebhookID(v string) *PaymentWebhookUpsertBulk
SetWebhookID sets the "webhook_id" field.
func (*PaymentWebhookUpsertBulk) SetWebhookSecret ¶
func (u *PaymentWebhookUpsertBulk) SetWebhookSecret(v string) *PaymentWebhookUpsertBulk
SetWebhookSecret sets the "webhook_secret" field.
func (*PaymentWebhookUpsertBulk) Update ¶
func (u *PaymentWebhookUpsertBulk) Update(set func(*PaymentWebhookUpsert)) *PaymentWebhookUpsertBulk
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 ¶
func (u *PaymentWebhookUpsertOne) DoNothing() *PaymentWebhookUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*PaymentWebhookUpsertOne) Exec ¶
func (u *PaymentWebhookUpsertOne) Exec(ctx context.Context) error
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 ¶
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*PaymentWebhookUpsertOne) IDX ¶
func (u *PaymentWebhookUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*PaymentWebhookUpsertOne) Ignore ¶
func (u *PaymentWebhookUpsertOne) Ignore() *PaymentWebhookUpsertOne
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 ¶
func (u *PaymentWebhookUpsertOne) SetCallbackURL(v string) *PaymentWebhookUpsertOne
SetCallbackURL sets the "callback_url" field.
func (*PaymentWebhookUpsertOne) SetUpdatedAt ¶
func (u *PaymentWebhookUpsertOne) SetUpdatedAt(v time.Time) *PaymentWebhookUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*PaymentWebhookUpsertOne) SetWebhookID ¶
func (u *PaymentWebhookUpsertOne) SetWebhookID(v string) *PaymentWebhookUpsertOne
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 ¶
func (u *PaymentWebhookUpsertOne) Update(set func(*PaymentWebhookUpsert)) *PaymentWebhookUpsertOne
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 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
func (pc *ProviderCurrencies) Update() *ProviderCurrenciesUpdateOne
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.
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
func (c *ProviderCurrenciesClient) Create() *ProviderCurrenciesCreate
Create returns a builder for creating a ProviderCurrencies entity.
func (*ProviderCurrenciesClient) CreateBulk ¶ added in v0.0.2
func (c *ProviderCurrenciesClient) CreateBulk(builders ...*ProviderCurrenciesCreate) *ProviderCurrenciesCreateBulk
CreateBulk returns a builder for creating a bulk of ProviderCurrencies entities.
func (*ProviderCurrenciesClient) Delete ¶ added in v0.0.2
func (c *ProviderCurrenciesClient) Delete() *ProviderCurrenciesDelete
Delete returns a delete builder for ProviderCurrencies.
func (*ProviderCurrenciesClient) DeleteOne ¶ added in v0.0.2
func (c *ProviderCurrenciesClient) DeleteOne(pc *ProviderCurrencies) *ProviderCurrenciesDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ProviderCurrenciesClient) DeleteOneID ¶ added in v0.0.2
func (c *ProviderCurrenciesClient) DeleteOneID(id uuid.UUID) *ProviderCurrenciesDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ProviderCurrenciesClient) Get ¶ added in v0.0.2
func (c *ProviderCurrenciesClient) Get(ctx context.Context, id uuid.UUID) (*ProviderCurrencies, error)
Get returns a ProviderCurrencies entity by its id.
func (*ProviderCurrenciesClient) GetX ¶ added in v0.0.2
func (c *ProviderCurrenciesClient) GetX(ctx context.Context, id uuid.UUID) *ProviderCurrencies
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
func (c *ProviderCurrenciesClient) Query() *ProviderCurrenciesQuery
Query returns a query builder for ProviderCurrencies.
func (*ProviderCurrenciesClient) QueryCurrency ¶ added in v0.0.2
func (c *ProviderCurrenciesClient) QueryCurrency(pc *ProviderCurrencies) *FiatCurrencyQuery
QueryCurrency queries the currency edge of a ProviderCurrencies.
func (*ProviderCurrenciesClient) QueryProvider ¶ added in v0.0.2
func (c *ProviderCurrenciesClient) QueryProvider(pc *ProviderCurrencies) *ProviderProfileQuery
QueryProvider queries the provider edge of a ProviderCurrencies.
func (*ProviderCurrenciesClient) Update ¶ added in v0.0.2
func (c *ProviderCurrenciesClient) Update() *ProviderCurrenciesUpdate
Update returns an update builder for ProviderCurrencies.
func (*ProviderCurrenciesClient) UpdateOne ¶ added in v0.0.2
func (c *ProviderCurrenciesClient) UpdateOne(pc *ProviderCurrencies) *ProviderCurrenciesUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProviderCurrenciesClient) UpdateOneID ¶ added in v0.0.2
func (c *ProviderCurrenciesClient) UpdateOneID(id uuid.UUID) *ProviderCurrenciesUpdateOne
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
func (pcc *ProviderCurrenciesCreate) Exec(ctx context.Context) error
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
func (pcc *ProviderCurrenciesCreate) Mutation() *ProviderCurrenciesMutation
Mutation returns the ProviderCurrenciesMutation object of the builder.
func (*ProviderCurrenciesCreate) OnConflict ¶ added in v0.0.2
func (pcc *ProviderCurrenciesCreate) OnConflict(opts ...sql.ConflictOption) *ProviderCurrenciesUpsertOne
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
func (pcc *ProviderCurrenciesCreate) Save(ctx context.Context) (*ProviderCurrencies, error)
Save creates the ProviderCurrencies in the database.
func (*ProviderCurrenciesCreate) SaveX ¶ added in v0.0.2
func (pcc *ProviderCurrenciesCreate) SaveX(ctx context.Context) *ProviderCurrencies
SaveX calls Save and panics if Save returns an error.
func (*ProviderCurrenciesCreate) SetAvailableBalance ¶ added in v0.0.2
func (pcc *ProviderCurrenciesCreate) SetAvailableBalance(d decimal.Decimal) *ProviderCurrenciesCreate
SetAvailableBalance sets the "available_balance" field.
func (*ProviderCurrenciesCreate) SetCurrency ¶ added in v0.0.2
func (pcc *ProviderCurrenciesCreate) SetCurrency(f *FiatCurrency) *ProviderCurrenciesCreate
SetCurrency sets the "currency" edge to the FiatCurrency entity.
func (*ProviderCurrenciesCreate) SetCurrencyID ¶ added in v0.0.2
func (pcc *ProviderCurrenciesCreate) SetCurrencyID(id uuid.UUID) *ProviderCurrenciesCreate
SetCurrencyID sets the "currency" edge to the FiatCurrency entity by ID.
func (*ProviderCurrenciesCreate) SetID ¶ added in v0.0.2
func (pcc *ProviderCurrenciesCreate) SetID(u uuid.UUID) *ProviderCurrenciesCreate
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
func (pcc *ProviderCurrenciesCreate) SetNillableID(u *uuid.UUID) *ProviderCurrenciesCreate
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
func (pcc *ProviderCurrenciesCreate) SetProvider(p *ProviderProfile) *ProviderCurrenciesCreate
SetProvider sets the "provider" edge to the ProviderProfile entity.
func (*ProviderCurrenciesCreate) SetProviderID ¶ added in v0.0.2
func (pcc *ProviderCurrenciesCreate) SetProviderID(id string) *ProviderCurrenciesCreate
SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.
func (*ProviderCurrenciesCreate) SetReservedBalance ¶ added in v0.0.2
func (pcc *ProviderCurrenciesCreate) SetReservedBalance(d decimal.Decimal) *ProviderCurrenciesCreate
SetReservedBalance sets the "reserved_balance" field.
func (*ProviderCurrenciesCreate) SetTotalBalance ¶ added in v0.0.2
func (pcc *ProviderCurrenciesCreate) SetTotalBalance(d decimal.Decimal) *ProviderCurrenciesCreate
SetTotalBalance sets the "total_balance" field.
func (*ProviderCurrenciesCreate) SetUpdatedAt ¶ added in v0.0.2
func (pcc *ProviderCurrenciesCreate) SetUpdatedAt(t time.Time) *ProviderCurrenciesCreate
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
func (pccb *ProviderCurrenciesCreateBulk) Exec(ctx context.Context) error
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
func (pccb *ProviderCurrenciesCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProviderCurrenciesUpsertBulk
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
func (pccb *ProviderCurrenciesCreateBulk) Save(ctx context.Context) ([]*ProviderCurrencies, error)
Save creates the ProviderCurrencies entities in the database.
func (*ProviderCurrenciesCreateBulk) SaveX ¶ added in v0.0.2
func (pccb *ProviderCurrenciesCreateBulk) SaveX(ctx context.Context) []*ProviderCurrencies
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
func (pcd *ProviderCurrenciesDelete) Where(ps ...predicate.ProviderCurrencies) *ProviderCurrenciesDelete
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
func (pcdo *ProviderCurrenciesDeleteOne) Exec(ctx context.Context) error
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
func (pcdo *ProviderCurrenciesDeleteOne) Where(ps ...predicate.ProviderCurrencies) *ProviderCurrenciesDeleteOne
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
func (pcgb *ProviderCurrenciesGroupBy) Aggregate(fns ...AggregateFunc) *ProviderCurrenciesGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProviderCurrenciesGroupBy) Bool ¶ added in v0.0.2
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesGroupBy) BoolX ¶ added in v0.0.2
BoolX is like Bool, but panics if an error occurs.
func (*ProviderCurrenciesGroupBy) Bools ¶ added in v0.0.2
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesGroupBy) BoolsX ¶ added in v0.0.2
BoolsX is like Bools, but panics if an error occurs.
func (*ProviderCurrenciesGroupBy) Float64 ¶ added in v0.0.2
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesGroupBy) Float64X ¶ added in v0.0.2
Float64X is like Float64, but panics if an error occurs.
func (*ProviderCurrenciesGroupBy) Float64s ¶ added in v0.0.2
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesGroupBy) Float64sX ¶ added in v0.0.2
Float64sX is like Float64s, but panics if an error occurs.
func (*ProviderCurrenciesGroupBy) Int ¶ added in v0.0.2
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesGroupBy) IntX ¶ added in v0.0.2
IntX is like Int, but panics if an error occurs.
func (*ProviderCurrenciesGroupBy) Ints ¶ added in v0.0.2
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesGroupBy) IntsX ¶ added in v0.0.2
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
ScanX is like Scan, but panics if an error occurs.
func (*ProviderCurrenciesGroupBy) String ¶ added in v0.0.2
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesGroupBy) StringX ¶ added in v0.0.2
StringX is like String, 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
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
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
func (m *ProviderCurrenciesMutation) Op() Op
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
func (m *ProviderCurrenciesMutation) Type() string
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
func (m *ProviderCurrenciesMutation) Where(ps ...predicate.ProviderCurrencies)
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
func (pcq *ProviderCurrenciesQuery) Aggregate(fns ...AggregateFunc) *ProviderCurrenciesSelect
Aggregate returns a ProviderCurrenciesSelect configured with the given aggregations.
func (*ProviderCurrenciesQuery) All ¶ added in v0.0.2
func (pcq *ProviderCurrenciesQuery) All(ctx context.Context) ([]*ProviderCurrencies, error)
All executes the query and returns a list of ProviderCurrenciesSlice.
func (*ProviderCurrenciesQuery) AllX ¶ added in v0.0.2
func (pcq *ProviderCurrenciesQuery) AllX(ctx context.Context) []*ProviderCurrencies
AllX is like All, but panics if an error occurs.
func (*ProviderCurrenciesQuery) Clone ¶ added in v0.0.2
func (pcq *ProviderCurrenciesQuery) Clone() *ProviderCurrenciesQuery
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
func (pcq *ProviderCurrenciesQuery) First(ctx context.Context) (*ProviderCurrencies, error)
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
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
func (pcq *ProviderCurrenciesQuery) FirstX(ctx context.Context) *ProviderCurrencies
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
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
func (pcq *ProviderCurrenciesQuery) Limit(limit int) *ProviderCurrenciesQuery
Limit the number of records to be returned by this query.
func (*ProviderCurrenciesQuery) Offset ¶ added in v0.0.2
func (pcq *ProviderCurrenciesQuery) Offset(offset int) *ProviderCurrenciesQuery
Offset to start from.
func (*ProviderCurrenciesQuery) Only ¶ added in v0.0.2
func (pcq *ProviderCurrenciesQuery) Only(ctx context.Context) (*ProviderCurrencies, error)
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
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
func (pcq *ProviderCurrenciesQuery) OnlyX(ctx context.Context) *ProviderCurrencies
OnlyX is like Only, but panics if an error occurs.
func (*ProviderCurrenciesQuery) Order ¶ added in v0.0.2
func (pcq *ProviderCurrenciesQuery) Order(o ...providercurrencies.OrderOption) *ProviderCurrenciesQuery
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
func (pcq *ProviderCurrenciesQuery) Select(fields ...string) *ProviderCurrenciesSelect
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
func (pcq *ProviderCurrenciesQuery) Unique(unique bool) *ProviderCurrenciesQuery
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
func (pcq *ProviderCurrenciesQuery) Where(ps ...predicate.ProviderCurrencies) *ProviderCurrenciesQuery
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
func (pcs *ProviderCurrenciesSelect) Aggregate(fns ...AggregateFunc) *ProviderCurrenciesSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ProviderCurrenciesSelect) Bool ¶ added in v0.0.2
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesSelect) BoolX ¶ added in v0.0.2
BoolX is like Bool, but panics if an error occurs.
func (*ProviderCurrenciesSelect) Bools ¶ added in v0.0.2
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesSelect) BoolsX ¶ added in v0.0.2
BoolsX is like Bools, but panics if an error occurs.
func (*ProviderCurrenciesSelect) Float64 ¶ added in v0.0.2
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesSelect) Float64X ¶ added in v0.0.2
Float64X is like Float64, but panics if an error occurs.
func (*ProviderCurrenciesSelect) Float64s ¶ added in v0.0.2
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesSelect) Float64sX ¶ added in v0.0.2
Float64sX is like Float64s, but panics if an error occurs.
func (*ProviderCurrenciesSelect) Int ¶ added in v0.0.2
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesSelect) IntX ¶ added in v0.0.2
IntX is like Int, but panics if an error occurs.
func (*ProviderCurrenciesSelect) Ints ¶ added in v0.0.2
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesSelect) IntsX ¶ added in v0.0.2
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
ScanX is like Scan, but panics if an error occurs.
func (*ProviderCurrenciesSelect) String ¶ added in v0.0.2
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ProviderCurrenciesSelect) StringX ¶ added in v0.0.2
StringX is like String, 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
func (pcu *ProviderCurrenciesUpdate) AddAvailableBalance(d decimal.Decimal) *ProviderCurrenciesUpdate
AddAvailableBalance adds d to the "available_balance" field.
func (*ProviderCurrenciesUpdate) AddReservedBalance ¶ added in v0.0.2
func (pcu *ProviderCurrenciesUpdate) AddReservedBalance(d decimal.Decimal) *ProviderCurrenciesUpdate
AddReservedBalance adds d to the "reserved_balance" field.
func (*ProviderCurrenciesUpdate) AddTotalBalance ¶ added in v0.0.2
func (pcu *ProviderCurrenciesUpdate) AddTotalBalance(d decimal.Decimal) *ProviderCurrenciesUpdate
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
func (pcu *ProviderCurrenciesUpdate) Exec(ctx context.Context) error
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
func (pcu *ProviderCurrenciesUpdate) Mutation() *ProviderCurrenciesMutation
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
func (pcu *ProviderCurrenciesUpdate) SetAvailableBalance(d decimal.Decimal) *ProviderCurrenciesUpdate
SetAvailableBalance sets the "available_balance" field.
func (*ProviderCurrenciesUpdate) SetCurrency ¶ added in v0.0.2
func (pcu *ProviderCurrenciesUpdate) SetCurrency(f *FiatCurrency) *ProviderCurrenciesUpdate
SetCurrency sets the "currency" edge to the FiatCurrency entity.
func (*ProviderCurrenciesUpdate) SetCurrencyID ¶ added in v0.0.2
func (pcu *ProviderCurrenciesUpdate) SetCurrencyID(id uuid.UUID) *ProviderCurrenciesUpdate
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
func (pcu *ProviderCurrenciesUpdate) SetProvider(p *ProviderProfile) *ProviderCurrenciesUpdate
SetProvider sets the "provider" edge to the ProviderProfile entity.
func (*ProviderCurrenciesUpdate) SetProviderID ¶ added in v0.0.2
func (pcu *ProviderCurrenciesUpdate) SetProviderID(id string) *ProviderCurrenciesUpdate
SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.
func (*ProviderCurrenciesUpdate) SetReservedBalance ¶ added in v0.0.2
func (pcu *ProviderCurrenciesUpdate) SetReservedBalance(d decimal.Decimal) *ProviderCurrenciesUpdate
SetReservedBalance sets the "reserved_balance" field.
func (*ProviderCurrenciesUpdate) SetTotalBalance ¶ added in v0.0.2
func (pcu *ProviderCurrenciesUpdate) SetTotalBalance(d decimal.Decimal) *ProviderCurrenciesUpdate
SetTotalBalance sets the "total_balance" field.
func (*ProviderCurrenciesUpdate) SetUpdatedAt ¶ added in v0.0.2
func (pcu *ProviderCurrenciesUpdate) SetUpdatedAt(t time.Time) *ProviderCurrenciesUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ProviderCurrenciesUpdate) Where ¶ added in v0.0.2
func (pcu *ProviderCurrenciesUpdate) Where(ps ...predicate.ProviderCurrencies) *ProviderCurrenciesUpdate
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
func (pcuo *ProviderCurrenciesUpdateOne) AddAvailableBalance(d decimal.Decimal) *ProviderCurrenciesUpdateOne
AddAvailableBalance adds d to the "available_balance" field.
func (*ProviderCurrenciesUpdateOne) AddReservedBalance ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) AddReservedBalance(d decimal.Decimal) *ProviderCurrenciesUpdateOne
AddReservedBalance adds d to the "reserved_balance" field.
func (*ProviderCurrenciesUpdateOne) AddTotalBalance ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) AddTotalBalance(d decimal.Decimal) *ProviderCurrenciesUpdateOne
AddTotalBalance adds d to the "total_balance" field.
func (*ProviderCurrenciesUpdateOne) ClearCurrency ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) ClearCurrency() *ProviderCurrenciesUpdateOne
ClearCurrency clears the "currency" edge to the FiatCurrency entity.
func (*ProviderCurrenciesUpdateOne) ClearProvider ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) ClearProvider() *ProviderCurrenciesUpdateOne
ClearProvider clears the "provider" edge to the ProviderProfile entity.
func (*ProviderCurrenciesUpdateOne) Exec ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) Exec(ctx context.Context) error
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
func (pcuo *ProviderCurrenciesUpdateOne) Mutation() *ProviderCurrenciesMutation
Mutation returns the ProviderCurrenciesMutation object of the builder.
func (*ProviderCurrenciesUpdateOne) Save ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) Save(ctx context.Context) (*ProviderCurrencies, error)
Save executes the query and returns the updated ProviderCurrencies entity.
func (*ProviderCurrenciesUpdateOne) SaveX ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) SaveX(ctx context.Context) *ProviderCurrencies
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
func (pcuo *ProviderCurrenciesUpdateOne) SetAvailableBalance(d decimal.Decimal) *ProviderCurrenciesUpdateOne
SetAvailableBalance sets the "available_balance" field.
func (*ProviderCurrenciesUpdateOne) SetCurrency ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) SetCurrency(f *FiatCurrency) *ProviderCurrenciesUpdateOne
SetCurrency sets the "currency" edge to the FiatCurrency entity.
func (*ProviderCurrenciesUpdateOne) SetCurrencyID ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) SetCurrencyID(id uuid.UUID) *ProviderCurrenciesUpdateOne
SetCurrencyID sets the "currency" edge to the FiatCurrency entity by ID.
func (*ProviderCurrenciesUpdateOne) SetIsAvailable ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) SetIsAvailable(b bool) *ProviderCurrenciesUpdateOne
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
func (pcuo *ProviderCurrenciesUpdateOne) SetProvider(p *ProviderProfile) *ProviderCurrenciesUpdateOne
SetProvider sets the "provider" edge to the ProviderProfile entity.
func (*ProviderCurrenciesUpdateOne) SetProviderID ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) SetProviderID(id string) *ProviderCurrenciesUpdateOne
SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.
func (*ProviderCurrenciesUpdateOne) SetReservedBalance ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) SetReservedBalance(d decimal.Decimal) *ProviderCurrenciesUpdateOne
SetReservedBalance sets the "reserved_balance" field.
func (*ProviderCurrenciesUpdateOne) SetTotalBalance ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) SetTotalBalance(d decimal.Decimal) *ProviderCurrenciesUpdateOne
SetTotalBalance sets the "total_balance" field.
func (*ProviderCurrenciesUpdateOne) SetUpdatedAt ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) SetUpdatedAt(t time.Time) *ProviderCurrenciesUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ProviderCurrenciesUpdateOne) Where ¶ added in v0.0.2
func (pcuo *ProviderCurrenciesUpdateOne) Where(ps ...predicate.ProviderCurrencies) *ProviderCurrenciesUpdateOne
Where appends a list predicates to the ProviderCurrenciesUpdate builder.
type ProviderCurrenciesUpsert ¶ added in v0.0.2
ProviderCurrenciesUpsert is the "OnConflict" setter.
func (*ProviderCurrenciesUpsert) AddAvailableBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsert) AddAvailableBalance(v decimal.Decimal) *ProviderCurrenciesUpsert
AddAvailableBalance adds v to the "available_balance" field.
func (*ProviderCurrenciesUpsert) AddReservedBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsert) AddReservedBalance(v decimal.Decimal) *ProviderCurrenciesUpsert
AddReservedBalance adds v to the "reserved_balance" field.
func (*ProviderCurrenciesUpsert) AddTotalBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsert) AddTotalBalance(v decimal.Decimal) *ProviderCurrenciesUpsert
AddTotalBalance adds v to the "total_balance" field.
func (*ProviderCurrenciesUpsert) SetAvailableBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsert) SetAvailableBalance(v decimal.Decimal) *ProviderCurrenciesUpsert
SetAvailableBalance sets the "available_balance" field.
func (*ProviderCurrenciesUpsert) SetIsAvailable ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsert) SetIsAvailable(v bool) *ProviderCurrenciesUpsert
SetIsAvailable sets the "is_available" field.
func (*ProviderCurrenciesUpsert) SetReservedBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsert) SetReservedBalance(v decimal.Decimal) *ProviderCurrenciesUpsert
SetReservedBalance sets the "reserved_balance" field.
func (*ProviderCurrenciesUpsert) SetTotalBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsert) SetTotalBalance(v decimal.Decimal) *ProviderCurrenciesUpsert
SetTotalBalance sets the "total_balance" field.
func (*ProviderCurrenciesUpsert) SetUpdatedAt ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsert) SetUpdatedAt(v time.Time) *ProviderCurrenciesUpsert
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
func (u *ProviderCurrenciesUpsertBulk) AddAvailableBalance(v decimal.Decimal) *ProviderCurrenciesUpsertBulk
AddAvailableBalance adds v to the "available_balance" field.
func (*ProviderCurrenciesUpsertBulk) AddReservedBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) AddReservedBalance(v decimal.Decimal) *ProviderCurrenciesUpsertBulk
AddReservedBalance adds v to the "reserved_balance" field.
func (*ProviderCurrenciesUpsertBulk) AddTotalBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) AddTotalBalance(v decimal.Decimal) *ProviderCurrenciesUpsertBulk
AddTotalBalance adds v to the "total_balance" field.
func (*ProviderCurrenciesUpsertBulk) DoNothing ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) DoNothing() *ProviderCurrenciesUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProviderCurrenciesUpsertBulk) Exec ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProviderCurrenciesUpsertBulk) ExecX ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProviderCurrenciesUpsertBulk) Ignore ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) Ignore() *ProviderCurrenciesUpsertBulk
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
func (u *ProviderCurrenciesUpsertBulk) SetAvailableBalance(v decimal.Decimal) *ProviderCurrenciesUpsertBulk
SetAvailableBalance sets the "available_balance" field.
func (*ProviderCurrenciesUpsertBulk) SetIsAvailable ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) SetIsAvailable(v bool) *ProviderCurrenciesUpsertBulk
SetIsAvailable sets the "is_available" field.
func (*ProviderCurrenciesUpsertBulk) SetReservedBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) SetReservedBalance(v decimal.Decimal) *ProviderCurrenciesUpsertBulk
SetReservedBalance sets the "reserved_balance" field.
func (*ProviderCurrenciesUpsertBulk) SetTotalBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) SetTotalBalance(v decimal.Decimal) *ProviderCurrenciesUpsertBulk
SetTotalBalance sets the "total_balance" field.
func (*ProviderCurrenciesUpsertBulk) SetUpdatedAt ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) SetUpdatedAt(v time.Time) *ProviderCurrenciesUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*ProviderCurrenciesUpsertBulk) Update ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) Update(set func(*ProviderCurrenciesUpsert)) *ProviderCurrenciesUpsertBulk
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
func (u *ProviderCurrenciesUpsertBulk) UpdateIsAvailable() *ProviderCurrenciesUpsertBulk
UpdateIsAvailable sets the "is_available" field to the value that was provided on create.
func (*ProviderCurrenciesUpsertBulk) UpdateNewValues ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) UpdateNewValues() *ProviderCurrenciesUpsertBulk
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
func (u *ProviderCurrenciesUpsertBulk) UpdateTotalBalance() *ProviderCurrenciesUpsertBulk
UpdateTotalBalance sets the "total_balance" field to the value that was provided on create.
func (*ProviderCurrenciesUpsertBulk) UpdateUpdatedAt ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertBulk) UpdateUpdatedAt() *ProviderCurrenciesUpsertBulk
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
func (u *ProviderCurrenciesUpsertOne) AddAvailableBalance(v decimal.Decimal) *ProviderCurrenciesUpsertOne
AddAvailableBalance adds v to the "available_balance" field.
func (*ProviderCurrenciesUpsertOne) AddReservedBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) AddReservedBalance(v decimal.Decimal) *ProviderCurrenciesUpsertOne
AddReservedBalance adds v to the "reserved_balance" field.
func (*ProviderCurrenciesUpsertOne) AddTotalBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) AddTotalBalance(v decimal.Decimal) *ProviderCurrenciesUpsertOne
AddTotalBalance adds v to the "total_balance" field.
func (*ProviderCurrenciesUpsertOne) DoNothing ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) DoNothing() *ProviderCurrenciesUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProviderCurrenciesUpsertOne) Exec ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ProviderCurrenciesUpsertOne) ExecX ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) ExecX(ctx context.Context)
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
func (u *ProviderCurrenciesUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*ProviderCurrenciesUpsertOne) Ignore ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) Ignore() *ProviderCurrenciesUpsertOne
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
func (u *ProviderCurrenciesUpsertOne) SetAvailableBalance(v decimal.Decimal) *ProviderCurrenciesUpsertOne
SetAvailableBalance sets the "available_balance" field.
func (*ProviderCurrenciesUpsertOne) SetIsAvailable ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) SetIsAvailable(v bool) *ProviderCurrenciesUpsertOne
SetIsAvailable sets the "is_available" field.
func (*ProviderCurrenciesUpsertOne) SetReservedBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) SetReservedBalance(v decimal.Decimal) *ProviderCurrenciesUpsertOne
SetReservedBalance sets the "reserved_balance" field.
func (*ProviderCurrenciesUpsertOne) SetTotalBalance ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) SetTotalBalance(v decimal.Decimal) *ProviderCurrenciesUpsertOne
SetTotalBalance sets the "total_balance" field.
func (*ProviderCurrenciesUpsertOne) SetUpdatedAt ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) SetUpdatedAt(v time.Time) *ProviderCurrenciesUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*ProviderCurrenciesUpsertOne) Update ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) Update(set func(*ProviderCurrenciesUpsert)) *ProviderCurrenciesUpsertOne
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
func (u *ProviderCurrenciesUpsertOne) UpdateIsAvailable() *ProviderCurrenciesUpsertOne
UpdateIsAvailable sets the "is_available" field to the value that was provided on create.
func (*ProviderCurrenciesUpsertOne) UpdateNewValues ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) UpdateNewValues() *ProviderCurrenciesUpsertOne
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
func (u *ProviderCurrenciesUpsertOne) UpdateTotalBalance() *ProviderCurrenciesUpsertOne
UpdateTotalBalance sets the "total_balance" field to the value that was provided on create.
func (*ProviderCurrenciesUpsertOne) UpdateUpdatedAt ¶ added in v0.0.2
func (u *ProviderCurrenciesUpsertOne) UpdateUpdatedAt() *ProviderCurrenciesUpsertOne
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 ¶
func (pot *ProviderOrderToken) Update() *ProviderOrderTokenUpdateOne
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.
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 ¶
func (c *ProviderOrderTokenClient) Create() *ProviderOrderTokenCreate
Create returns a builder for creating a ProviderOrderToken entity.
func (*ProviderOrderTokenClient) CreateBulk ¶
func (c *ProviderOrderTokenClient) CreateBulk(builders ...*ProviderOrderTokenCreate) *ProviderOrderTokenCreateBulk
CreateBulk returns a builder for creating a bulk of ProviderOrderToken entities.
func (*ProviderOrderTokenClient) Delete ¶
func (c *ProviderOrderTokenClient) Delete() *ProviderOrderTokenDelete
Delete returns a delete builder for ProviderOrderToken.
func (*ProviderOrderTokenClient) DeleteOne ¶
func (c *ProviderOrderTokenClient) DeleteOne(pot *ProviderOrderToken) *ProviderOrderTokenDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ProviderOrderTokenClient) DeleteOneID ¶
func (c *ProviderOrderTokenClient) DeleteOneID(id int) *ProviderOrderTokenDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ProviderOrderTokenClient) Get ¶
func (c *ProviderOrderTokenClient) Get(ctx context.Context, id int) (*ProviderOrderToken, error)
Get returns a ProviderOrderToken entity by its id.
func (*ProviderOrderTokenClient) GetX ¶
func (c *ProviderOrderTokenClient) GetX(ctx context.Context, id int) *ProviderOrderToken
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 ¶
func (c *ProviderOrderTokenClient) Query() *ProviderOrderTokenQuery
Query returns a query builder for ProviderOrderToken.
func (*ProviderOrderTokenClient) QueryCurrency ¶
func (c *ProviderOrderTokenClient) QueryCurrency(pot *ProviderOrderToken) *FiatCurrencyQuery
QueryCurrency queries the currency edge of a ProviderOrderToken.
func (*ProviderOrderTokenClient) QueryProvider ¶
func (c *ProviderOrderTokenClient) QueryProvider(pot *ProviderOrderToken) *ProviderProfileQuery
QueryProvider queries the provider edge of a ProviderOrderToken.
func (*ProviderOrderTokenClient) QueryToken ¶
func (c *ProviderOrderTokenClient) QueryToken(pot *ProviderOrderToken) *TokenQuery
QueryToken queries the token edge of a ProviderOrderToken.
func (*ProviderOrderTokenClient) Update ¶
func (c *ProviderOrderTokenClient) Update() *ProviderOrderTokenUpdate
Update returns an update builder for ProviderOrderToken.
func (*ProviderOrderTokenClient) UpdateOne ¶
func (c *ProviderOrderTokenClient) UpdateOne(pot *ProviderOrderToken) *ProviderOrderTokenUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProviderOrderTokenClient) UpdateOneID ¶
func (c *ProviderOrderTokenClient) UpdateOneID(id int) *ProviderOrderTokenUpdateOne
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 ¶
func (potc *ProviderOrderTokenCreate) Exec(ctx context.Context) error
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 ¶
func (potc *ProviderOrderTokenCreate) Mutation() *ProviderOrderTokenMutation
Mutation returns the ProviderOrderTokenMutation object of the builder.
func (*ProviderOrderTokenCreate) OnConflict ¶
func (potc *ProviderOrderTokenCreate) OnConflict(opts ...sql.ConflictOption) *ProviderOrderTokenUpsertOne
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 ¶
func (potc *ProviderOrderTokenCreate) Save(ctx context.Context) (*ProviderOrderToken, error)
Save creates the ProviderOrderToken in the database.
func (*ProviderOrderTokenCreate) SaveX ¶
func (potc *ProviderOrderTokenCreate) SaveX(ctx context.Context) *ProviderOrderToken
SaveX calls Save and panics if Save returns an error.
func (*ProviderOrderTokenCreate) SetAddress ¶
func (potc *ProviderOrderTokenCreate) SetAddress(s string) *ProviderOrderTokenCreate
SetAddress sets the "address" field.
func (*ProviderOrderTokenCreate) SetConversionRateType ¶
func (potc *ProviderOrderTokenCreate) SetConversionRateType(prt providerordertoken.ConversionRateType) *ProviderOrderTokenCreate
SetConversionRateType sets the "conversion_rate_type" field.
func (*ProviderOrderTokenCreate) SetCreatedAt ¶
func (potc *ProviderOrderTokenCreate) SetCreatedAt(t time.Time) *ProviderOrderTokenCreate
SetCreatedAt sets the "created_at" field.
func (*ProviderOrderTokenCreate) SetCurrency ¶
func (potc *ProviderOrderTokenCreate) SetCurrency(f *FiatCurrency) *ProviderOrderTokenCreate
SetCurrency sets the "currency" edge to the FiatCurrency entity.
func (*ProviderOrderTokenCreate) SetCurrencyID ¶
func (potc *ProviderOrderTokenCreate) SetCurrencyID(id uuid.UUID) *ProviderOrderTokenCreate
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 ¶
func (potc *ProviderOrderTokenCreate) SetMaxOrderAmount(d decimal.Decimal) *ProviderOrderTokenCreate
SetMaxOrderAmount sets the "max_order_amount" field.
func (*ProviderOrderTokenCreate) SetMinOrderAmount ¶
func (potc *ProviderOrderTokenCreate) SetMinOrderAmount(d decimal.Decimal) *ProviderOrderTokenCreate
SetMinOrderAmount sets the "min_order_amount" field.
func (*ProviderOrderTokenCreate) SetNetwork ¶
func (potc *ProviderOrderTokenCreate) SetNetwork(s string) *ProviderOrderTokenCreate
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 ¶
func (potc *ProviderOrderTokenCreate) SetProvider(p *ProviderProfile) *ProviderOrderTokenCreate
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 ¶
func (potc *ProviderOrderTokenCreate) SetRateSlippage(d decimal.Decimal) *ProviderOrderTokenCreate
SetRateSlippage sets the "rate_slippage" field.
func (*ProviderOrderTokenCreate) SetToken ¶
func (potc *ProviderOrderTokenCreate) SetToken(t *Token) *ProviderOrderTokenCreate
SetToken sets the "token" edge to the Token entity.
func (*ProviderOrderTokenCreate) SetTokenID ¶
func (potc *ProviderOrderTokenCreate) SetTokenID(id int) *ProviderOrderTokenCreate
SetTokenID sets the "token" edge to the Token entity by ID.
func (*ProviderOrderTokenCreate) SetUpdatedAt ¶
func (potc *ProviderOrderTokenCreate) SetUpdatedAt(t time.Time) *ProviderOrderTokenCreate
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 ¶
func (potcb *ProviderOrderTokenCreateBulk) Exec(ctx context.Context) error
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 ¶
func (potcb *ProviderOrderTokenCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProviderOrderTokenUpsertBulk
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 ¶
func (potcb *ProviderOrderTokenCreateBulk) Save(ctx context.Context) ([]*ProviderOrderToken, error)
Save creates the ProviderOrderToken entities in the database.
func (*ProviderOrderTokenCreateBulk) SaveX ¶
func (potcb *ProviderOrderTokenCreateBulk) SaveX(ctx context.Context) []*ProviderOrderToken
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 ¶
func (potd *ProviderOrderTokenDelete) Where(ps ...predicate.ProviderOrderToken) *ProviderOrderTokenDelete
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 ¶
func (potdo *ProviderOrderTokenDeleteOne) Exec(ctx context.Context) error
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 ¶
func (potdo *ProviderOrderTokenDeleteOne) Where(ps ...predicate.ProviderOrderToken) *ProviderOrderTokenDeleteOne
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 ¶
func (potgb *ProviderOrderTokenGroupBy) Aggregate(fns ...AggregateFunc) *ProviderOrderTokenGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProviderOrderTokenGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProviderOrderTokenGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProviderOrderTokenGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProviderOrderTokenGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*ProviderOrderTokenGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProviderOrderTokenGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*ProviderOrderTokenGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProviderOrderTokenGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (m *ProviderOrderTokenMutation) 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 (*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 ¶
func (m *ProviderOrderTokenMutation) OldConversionRateType(ctx context.Context) (v providerordertoken.ConversionRateType, err error)
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 ¶
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 ¶
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 ¶
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 ¶
func (m *ProviderOrderTokenMutation) Op() 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 ¶
func (m *ProviderOrderTokenMutation) SetConversionRateType(prt providerordertoken.ConversionRateType)
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 ¶
func (m *ProviderOrderTokenMutation) Type() string
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 ¶
func (m *ProviderOrderTokenMutation) Where(ps ...predicate.ProviderOrderToken)
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 ¶
func (potq *ProviderOrderTokenQuery) Aggregate(fns ...AggregateFunc) *ProviderOrderTokenSelect
Aggregate returns a ProviderOrderTokenSelect configured with the given aggregations.
func (*ProviderOrderTokenQuery) All ¶
func (potq *ProviderOrderTokenQuery) All(ctx context.Context) ([]*ProviderOrderToken, error)
All executes the query and returns a list of ProviderOrderTokens.
func (*ProviderOrderTokenQuery) AllX ¶
func (potq *ProviderOrderTokenQuery) AllX(ctx context.Context) []*ProviderOrderToken
AllX is like All, but panics if an error occurs.
func (*ProviderOrderTokenQuery) Clone ¶
func (potq *ProviderOrderTokenQuery) Clone() *ProviderOrderTokenQuery
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 ¶
func (potq *ProviderOrderTokenQuery) First(ctx context.Context) (*ProviderOrderToken, error)
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 ¶
func (potq *ProviderOrderTokenQuery) FirstX(ctx context.Context) *ProviderOrderToken
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 ¶
func (potq *ProviderOrderTokenQuery) Limit(limit int) *ProviderOrderTokenQuery
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 ¶
func (potq *ProviderOrderTokenQuery) Only(ctx context.Context) (*ProviderOrderToken, error)
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 ¶
func (potq *ProviderOrderTokenQuery) OnlyX(ctx context.Context) *ProviderOrderToken
OnlyX is like Only, but panics if an error occurs.
func (*ProviderOrderTokenQuery) Order ¶
func (potq *ProviderOrderTokenQuery) Order(o ...providerordertoken.OrderOption) *ProviderOrderTokenQuery
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 ¶
func (potq *ProviderOrderTokenQuery) Unique(unique bool) *ProviderOrderTokenQuery
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 ¶
func (potq *ProviderOrderTokenQuery) Where(ps ...predicate.ProviderOrderToken) *ProviderOrderTokenQuery
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 ¶
func (pots *ProviderOrderTokenSelect) Aggregate(fns ...AggregateFunc) *ProviderOrderTokenSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ProviderOrderTokenSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProviderOrderTokenSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProviderOrderTokenSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProviderOrderTokenSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*ProviderOrderTokenSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProviderOrderTokenSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*ProviderOrderTokenSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProviderOrderTokenSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (potu *ProviderOrderTokenUpdate) AddMaxOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdate
AddMaxOrderAmount adds d to the "max_order_amount" field.
func (*ProviderOrderTokenUpdate) AddMinOrderAmount ¶
func (potu *ProviderOrderTokenUpdate) AddMinOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdate
AddMinOrderAmount adds d to the "min_order_amount" field.
func (*ProviderOrderTokenUpdate) AddRateSlippage ¶
func (potu *ProviderOrderTokenUpdate) AddRateSlippage(d decimal.Decimal) *ProviderOrderTokenUpdate
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 ¶
func (potu *ProviderOrderTokenUpdate) ClearToken() *ProviderOrderTokenUpdate
ClearToken clears the "token" edge to the Token entity.
func (*ProviderOrderTokenUpdate) Exec ¶
func (potu *ProviderOrderTokenUpdate) Exec(ctx context.Context) error
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 ¶
func (potu *ProviderOrderTokenUpdate) Mutation() *ProviderOrderTokenMutation
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 ¶
func (potu *ProviderOrderTokenUpdate) SetAddress(s string) *ProviderOrderTokenUpdate
SetAddress sets the "address" field.
func (*ProviderOrderTokenUpdate) SetConversionRateType ¶
func (potu *ProviderOrderTokenUpdate) SetConversionRateType(prt providerordertoken.ConversionRateType) *ProviderOrderTokenUpdate
SetConversionRateType sets the "conversion_rate_type" field.
func (*ProviderOrderTokenUpdate) SetCurrency ¶
func (potu *ProviderOrderTokenUpdate) SetCurrency(f *FiatCurrency) *ProviderOrderTokenUpdate
SetCurrency sets the "currency" edge to the FiatCurrency entity.
func (*ProviderOrderTokenUpdate) SetCurrencyID ¶
func (potu *ProviderOrderTokenUpdate) SetCurrencyID(id uuid.UUID) *ProviderOrderTokenUpdate
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 ¶
func (potu *ProviderOrderTokenUpdate) SetMaxOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdate
SetMaxOrderAmount sets the "max_order_amount" field.
func (*ProviderOrderTokenUpdate) SetMinOrderAmount ¶
func (potu *ProviderOrderTokenUpdate) SetMinOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdate
SetMinOrderAmount sets the "min_order_amount" field.
func (*ProviderOrderTokenUpdate) SetNetwork ¶
func (potu *ProviderOrderTokenUpdate) SetNetwork(s string) *ProviderOrderTokenUpdate
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 ¶
func (potu *ProviderOrderTokenUpdate) SetNillableConversionRateType(prt *providerordertoken.ConversionRateType) *ProviderOrderTokenUpdate
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 ¶
func (potu *ProviderOrderTokenUpdate) SetProvider(p *ProviderProfile) *ProviderOrderTokenUpdate
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 ¶
func (potu *ProviderOrderTokenUpdate) SetRateSlippage(d decimal.Decimal) *ProviderOrderTokenUpdate
SetRateSlippage sets the "rate_slippage" field.
func (*ProviderOrderTokenUpdate) SetToken ¶
func (potu *ProviderOrderTokenUpdate) SetToken(t *Token) *ProviderOrderTokenUpdate
SetToken sets the "token" edge to the Token entity.
func (*ProviderOrderTokenUpdate) SetTokenID ¶
func (potu *ProviderOrderTokenUpdate) SetTokenID(id int) *ProviderOrderTokenUpdate
SetTokenID sets the "token" edge to the Token entity by ID.
func (*ProviderOrderTokenUpdate) SetUpdatedAt ¶
func (potu *ProviderOrderTokenUpdate) SetUpdatedAt(t time.Time) *ProviderOrderTokenUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ProviderOrderTokenUpdate) Where ¶
func (potu *ProviderOrderTokenUpdate) Where(ps ...predicate.ProviderOrderToken) *ProviderOrderTokenUpdate
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 ¶
func (potuo *ProviderOrderTokenUpdateOne) AddMaxOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdateOne
AddMaxOrderAmount adds d to the "max_order_amount" field.
func (*ProviderOrderTokenUpdateOne) AddMinOrderAmount ¶
func (potuo *ProviderOrderTokenUpdateOne) AddMinOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdateOne
AddMinOrderAmount adds d to the "min_order_amount" field.
func (*ProviderOrderTokenUpdateOne) AddRateSlippage ¶
func (potuo *ProviderOrderTokenUpdateOne) AddRateSlippage(d decimal.Decimal) *ProviderOrderTokenUpdateOne
AddRateSlippage adds d to the "rate_slippage" field.
func (*ProviderOrderTokenUpdateOne) ClearAddress ¶
func (potuo *ProviderOrderTokenUpdateOne) ClearAddress() *ProviderOrderTokenUpdateOne
ClearAddress clears the value of the "address" field.
func (*ProviderOrderTokenUpdateOne) ClearCurrency ¶
func (potuo *ProviderOrderTokenUpdateOne) ClearCurrency() *ProviderOrderTokenUpdateOne
ClearCurrency clears the "currency" edge to the FiatCurrency entity.
func (*ProviderOrderTokenUpdateOne) ClearNetwork ¶
func (potuo *ProviderOrderTokenUpdateOne) ClearNetwork() *ProviderOrderTokenUpdateOne
ClearNetwork clears the value of the "network" field.
func (*ProviderOrderTokenUpdateOne) ClearProvider ¶
func (potuo *ProviderOrderTokenUpdateOne) ClearProvider() *ProviderOrderTokenUpdateOne
ClearProvider clears the "provider" edge to the ProviderProfile entity.
func (*ProviderOrderTokenUpdateOne) ClearToken ¶
func (potuo *ProviderOrderTokenUpdateOne) ClearToken() *ProviderOrderTokenUpdateOne
ClearToken clears the "token" edge to the Token entity.
func (*ProviderOrderTokenUpdateOne) Exec ¶
func (potuo *ProviderOrderTokenUpdateOne) Exec(ctx context.Context) error
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 ¶
func (potuo *ProviderOrderTokenUpdateOne) Mutation() *ProviderOrderTokenMutation
Mutation returns the ProviderOrderTokenMutation object of the builder.
func (*ProviderOrderTokenUpdateOne) Save ¶
func (potuo *ProviderOrderTokenUpdateOne) Save(ctx context.Context) (*ProviderOrderToken, error)
Save executes the query and returns the updated ProviderOrderToken entity.
func (*ProviderOrderTokenUpdateOne) SaveX ¶
func (potuo *ProviderOrderTokenUpdateOne) SaveX(ctx context.Context) *ProviderOrderToken
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 ¶
func (potuo *ProviderOrderTokenUpdateOne) SetAddress(s string) *ProviderOrderTokenUpdateOne
SetAddress sets the "address" field.
func (*ProviderOrderTokenUpdateOne) SetConversionRateType ¶
func (potuo *ProviderOrderTokenUpdateOne) SetConversionRateType(prt providerordertoken.ConversionRateType) *ProviderOrderTokenUpdateOne
SetConversionRateType sets the "conversion_rate_type" field.
func (*ProviderOrderTokenUpdateOne) SetCurrency ¶
func (potuo *ProviderOrderTokenUpdateOne) SetCurrency(f *FiatCurrency) *ProviderOrderTokenUpdateOne
SetCurrency sets the "currency" edge to the FiatCurrency entity.
func (*ProviderOrderTokenUpdateOne) SetCurrencyID ¶
func (potuo *ProviderOrderTokenUpdateOne) SetCurrencyID(id uuid.UUID) *ProviderOrderTokenUpdateOne
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 ¶
func (potuo *ProviderOrderTokenUpdateOne) SetMaxOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdateOne
SetMaxOrderAmount sets the "max_order_amount" field.
func (*ProviderOrderTokenUpdateOne) SetMinOrderAmount ¶
func (potuo *ProviderOrderTokenUpdateOne) SetMinOrderAmount(d decimal.Decimal) *ProviderOrderTokenUpdateOne
SetMinOrderAmount sets the "min_order_amount" field.
func (*ProviderOrderTokenUpdateOne) SetNetwork ¶
func (potuo *ProviderOrderTokenUpdateOne) SetNetwork(s string) *ProviderOrderTokenUpdateOne
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 ¶
func (potuo *ProviderOrderTokenUpdateOne) SetNillableConversionRateType(prt *providerordertoken.ConversionRateType) *ProviderOrderTokenUpdateOne
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 ¶
func (potuo *ProviderOrderTokenUpdateOne) SetProvider(p *ProviderProfile) *ProviderOrderTokenUpdateOne
SetProvider sets the "provider" edge to the ProviderProfile entity.
func (*ProviderOrderTokenUpdateOne) SetProviderID ¶
func (potuo *ProviderOrderTokenUpdateOne) SetProviderID(id string) *ProviderOrderTokenUpdateOne
SetProviderID sets the "provider" edge to the ProviderProfile entity by ID.
func (*ProviderOrderTokenUpdateOne) SetRateSlippage ¶
func (potuo *ProviderOrderTokenUpdateOne) SetRateSlippage(d decimal.Decimal) *ProviderOrderTokenUpdateOne
SetRateSlippage sets the "rate_slippage" field.
func (*ProviderOrderTokenUpdateOne) SetToken ¶
func (potuo *ProviderOrderTokenUpdateOne) SetToken(t *Token) *ProviderOrderTokenUpdateOne
SetToken sets the "token" edge to the Token entity.
func (*ProviderOrderTokenUpdateOne) SetTokenID ¶
func (potuo *ProviderOrderTokenUpdateOne) SetTokenID(id int) *ProviderOrderTokenUpdateOne
SetTokenID sets the "token" edge to the Token entity by ID.
func (*ProviderOrderTokenUpdateOne) SetUpdatedAt ¶
func (potuo *ProviderOrderTokenUpdateOne) SetUpdatedAt(t time.Time) *ProviderOrderTokenUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ProviderOrderTokenUpdateOne) Where ¶
func (potuo *ProviderOrderTokenUpdateOne) Where(ps ...predicate.ProviderOrderToken) *ProviderOrderTokenUpdateOne
Where appends a list predicates to the ProviderOrderTokenUpdate builder.
type ProviderOrderTokenUpsert ¶
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 ¶
func (u *ProviderOrderTokenUpsert) AddMaxOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsert
AddMaxOrderAmount adds v to the "max_order_amount" field.
func (*ProviderOrderTokenUpsert) AddMinOrderAmount ¶
func (u *ProviderOrderTokenUpsert) AddMinOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsert
AddMinOrderAmount adds v to the "min_order_amount" field.
func (*ProviderOrderTokenUpsert) AddRateSlippage ¶
func (u *ProviderOrderTokenUpsert) AddRateSlippage(v decimal.Decimal) *ProviderOrderTokenUpsert
AddRateSlippage adds v to the "rate_slippage" field.
func (*ProviderOrderTokenUpsert) ClearAddress ¶
func (u *ProviderOrderTokenUpsert) ClearAddress() *ProviderOrderTokenUpsert
ClearAddress clears the value of the "address" field.
func (*ProviderOrderTokenUpsert) ClearNetwork ¶
func (u *ProviderOrderTokenUpsert) ClearNetwork() *ProviderOrderTokenUpsert
ClearNetwork clears the value of the "network" field.
func (*ProviderOrderTokenUpsert) SetAddress ¶
func (u *ProviderOrderTokenUpsert) SetAddress(v string) *ProviderOrderTokenUpsert
SetAddress sets the "address" field.
func (*ProviderOrderTokenUpsert) SetConversionRateType ¶
func (u *ProviderOrderTokenUpsert) SetConversionRateType(v providerordertoken.ConversionRateType) *ProviderOrderTokenUpsert
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 ¶
func (u *ProviderOrderTokenUpsert) SetMaxOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsert
SetMaxOrderAmount sets the "max_order_amount" field.
func (*ProviderOrderTokenUpsert) SetMinOrderAmount ¶
func (u *ProviderOrderTokenUpsert) SetMinOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsert
SetMinOrderAmount sets the "min_order_amount" field.
func (*ProviderOrderTokenUpsert) SetNetwork ¶
func (u *ProviderOrderTokenUpsert) SetNetwork(v string) *ProviderOrderTokenUpsert
SetNetwork sets the "network" field.
func (*ProviderOrderTokenUpsert) SetRateSlippage ¶
func (u *ProviderOrderTokenUpsert) SetRateSlippage(v decimal.Decimal) *ProviderOrderTokenUpsert
SetRateSlippage sets the "rate_slippage" field.
func (*ProviderOrderTokenUpsert) SetUpdatedAt ¶
func (u *ProviderOrderTokenUpsert) SetUpdatedAt(v time.Time) *ProviderOrderTokenUpsert
SetUpdatedAt sets the "updated_at" field.
func (*ProviderOrderTokenUpsert) UpdateAddress ¶
func (u *ProviderOrderTokenUpsert) UpdateAddress() *ProviderOrderTokenUpsert
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 ¶
func (u *ProviderOrderTokenUpsert) UpdateNetwork() *ProviderOrderTokenUpsert
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 ¶
func (u *ProviderOrderTokenUpsertBulk) AddFixedConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
AddFixedConversionRate adds v to the "fixed_conversion_rate" field.
func (*ProviderOrderTokenUpsertBulk) AddFloatingConversionRate ¶
func (u *ProviderOrderTokenUpsertBulk) AddFloatingConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
AddFloatingConversionRate adds v to the "floating_conversion_rate" field.
func (*ProviderOrderTokenUpsertBulk) AddMaxOrderAmount ¶
func (u *ProviderOrderTokenUpsertBulk) AddMaxOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
AddMaxOrderAmount adds v to the "max_order_amount" field.
func (*ProviderOrderTokenUpsertBulk) AddMinOrderAmount ¶
func (u *ProviderOrderTokenUpsertBulk) AddMinOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
AddMinOrderAmount adds v to the "min_order_amount" field.
func (*ProviderOrderTokenUpsertBulk) AddRateSlippage ¶
func (u *ProviderOrderTokenUpsertBulk) AddRateSlippage(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
AddRateSlippage adds v to the "rate_slippage" field.
func (*ProviderOrderTokenUpsertBulk) ClearAddress ¶
func (u *ProviderOrderTokenUpsertBulk) ClearAddress() *ProviderOrderTokenUpsertBulk
ClearAddress clears the value of the "address" field.
func (*ProviderOrderTokenUpsertBulk) ClearNetwork ¶
func (u *ProviderOrderTokenUpsertBulk) ClearNetwork() *ProviderOrderTokenUpsertBulk
ClearNetwork clears the value of the "network" field.
func (*ProviderOrderTokenUpsertBulk) DoNothing ¶
func (u *ProviderOrderTokenUpsertBulk) DoNothing() *ProviderOrderTokenUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProviderOrderTokenUpsertBulk) Exec ¶
func (u *ProviderOrderTokenUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProviderOrderTokenUpsertBulk) ExecX ¶
func (u *ProviderOrderTokenUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProviderOrderTokenUpsertBulk) Ignore ¶
func (u *ProviderOrderTokenUpsertBulk) Ignore() *ProviderOrderTokenUpsertBulk
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 ¶
func (u *ProviderOrderTokenUpsertBulk) SetAddress(v string) *ProviderOrderTokenUpsertBulk
SetAddress sets the "address" field.
func (*ProviderOrderTokenUpsertBulk) SetConversionRateType ¶
func (u *ProviderOrderTokenUpsertBulk) SetConversionRateType(v providerordertoken.ConversionRateType) *ProviderOrderTokenUpsertBulk
SetConversionRateType sets the "conversion_rate_type" field.
func (*ProviderOrderTokenUpsertBulk) SetFixedConversionRate ¶
func (u *ProviderOrderTokenUpsertBulk) SetFixedConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
SetFixedConversionRate sets the "fixed_conversion_rate" field.
func (*ProviderOrderTokenUpsertBulk) SetFloatingConversionRate ¶
func (u *ProviderOrderTokenUpsertBulk) SetFloatingConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
SetFloatingConversionRate sets the "floating_conversion_rate" field.
func (*ProviderOrderTokenUpsertBulk) SetMaxOrderAmount ¶
func (u *ProviderOrderTokenUpsertBulk) SetMaxOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
SetMaxOrderAmount sets the "max_order_amount" field.
func (*ProviderOrderTokenUpsertBulk) SetMinOrderAmount ¶
func (u *ProviderOrderTokenUpsertBulk) SetMinOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
SetMinOrderAmount sets the "min_order_amount" field.
func (*ProviderOrderTokenUpsertBulk) SetNetwork ¶
func (u *ProviderOrderTokenUpsertBulk) SetNetwork(v string) *ProviderOrderTokenUpsertBulk
SetNetwork sets the "network" field.
func (*ProviderOrderTokenUpsertBulk) SetRateSlippage ¶
func (u *ProviderOrderTokenUpsertBulk) SetRateSlippage(v decimal.Decimal) *ProviderOrderTokenUpsertBulk
SetRateSlippage sets the "rate_slippage" field.
func (*ProviderOrderTokenUpsertBulk) SetUpdatedAt ¶
func (u *ProviderOrderTokenUpsertBulk) SetUpdatedAt(v time.Time) *ProviderOrderTokenUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*ProviderOrderTokenUpsertBulk) Update ¶
func (u *ProviderOrderTokenUpsertBulk) Update(set func(*ProviderOrderTokenUpsert)) *ProviderOrderTokenUpsertBulk
Update allows overriding fields `UPDATE` values. See the ProviderOrderTokenCreateBulk.OnConflict documentation for more info.
func (*ProviderOrderTokenUpsertBulk) UpdateAddress ¶
func (u *ProviderOrderTokenUpsertBulk) UpdateAddress() *ProviderOrderTokenUpsertBulk
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 ¶
func (u *ProviderOrderTokenUpsertBulk) UpdateMaxOrderAmount() *ProviderOrderTokenUpsertBulk
UpdateMaxOrderAmount sets the "max_order_amount" field to the value that was provided on create.
func (*ProviderOrderTokenUpsertBulk) UpdateMinOrderAmount ¶
func (u *ProviderOrderTokenUpsertBulk) UpdateMinOrderAmount() *ProviderOrderTokenUpsertBulk
UpdateMinOrderAmount sets the "min_order_amount" field to the value that was provided on create.
func (*ProviderOrderTokenUpsertBulk) UpdateNetwork ¶
func (u *ProviderOrderTokenUpsertBulk) UpdateNetwork() *ProviderOrderTokenUpsertBulk
UpdateNetwork sets the "network" field to the value that was provided on create.
func (*ProviderOrderTokenUpsertBulk) UpdateNewValues ¶
func (u *ProviderOrderTokenUpsertBulk) UpdateNewValues() *ProviderOrderTokenUpsertBulk
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 ¶
func (u *ProviderOrderTokenUpsertBulk) UpdateRateSlippage() *ProviderOrderTokenUpsertBulk
UpdateRateSlippage sets the "rate_slippage" field to the value that was provided on create.
func (*ProviderOrderTokenUpsertBulk) UpdateUpdatedAt ¶
func (u *ProviderOrderTokenUpsertBulk) UpdateUpdatedAt() *ProviderOrderTokenUpsertBulk
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 ¶
func (u *ProviderOrderTokenUpsertOne) AddFixedConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertOne
AddFixedConversionRate adds v to the "fixed_conversion_rate" field.
func (*ProviderOrderTokenUpsertOne) AddFloatingConversionRate ¶
func (u *ProviderOrderTokenUpsertOne) AddFloatingConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertOne
AddFloatingConversionRate adds v to the "floating_conversion_rate" field.
func (*ProviderOrderTokenUpsertOne) AddMaxOrderAmount ¶
func (u *ProviderOrderTokenUpsertOne) AddMaxOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertOne
AddMaxOrderAmount adds v to the "max_order_amount" field.
func (*ProviderOrderTokenUpsertOne) AddMinOrderAmount ¶
func (u *ProviderOrderTokenUpsertOne) AddMinOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertOne
AddMinOrderAmount adds v to the "min_order_amount" field.
func (*ProviderOrderTokenUpsertOne) AddRateSlippage ¶
func (u *ProviderOrderTokenUpsertOne) AddRateSlippage(v decimal.Decimal) *ProviderOrderTokenUpsertOne
AddRateSlippage adds v to the "rate_slippage" field.
func (*ProviderOrderTokenUpsertOne) ClearAddress ¶
func (u *ProviderOrderTokenUpsertOne) ClearAddress() *ProviderOrderTokenUpsertOne
ClearAddress clears the value of the "address" field.
func (*ProviderOrderTokenUpsertOne) ClearNetwork ¶
func (u *ProviderOrderTokenUpsertOne) ClearNetwork() *ProviderOrderTokenUpsertOne
ClearNetwork clears the value of the "network" field.
func (*ProviderOrderTokenUpsertOne) DoNothing ¶
func (u *ProviderOrderTokenUpsertOne) DoNothing() *ProviderOrderTokenUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProviderOrderTokenUpsertOne) Exec ¶
func (u *ProviderOrderTokenUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ProviderOrderTokenUpsertOne) ExecX ¶
func (u *ProviderOrderTokenUpsertOne) ExecX(ctx context.Context)
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 ¶
func (u *ProviderOrderTokenUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*ProviderOrderTokenUpsertOne) Ignore ¶
func (u *ProviderOrderTokenUpsertOne) Ignore() *ProviderOrderTokenUpsertOne
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 ¶
func (u *ProviderOrderTokenUpsertOne) SetAddress(v string) *ProviderOrderTokenUpsertOne
SetAddress sets the "address" field.
func (*ProviderOrderTokenUpsertOne) SetConversionRateType ¶
func (u *ProviderOrderTokenUpsertOne) SetConversionRateType(v providerordertoken.ConversionRateType) *ProviderOrderTokenUpsertOne
SetConversionRateType sets the "conversion_rate_type" field.
func (*ProviderOrderTokenUpsertOne) SetFixedConversionRate ¶
func (u *ProviderOrderTokenUpsertOne) SetFixedConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertOne
SetFixedConversionRate sets the "fixed_conversion_rate" field.
func (*ProviderOrderTokenUpsertOne) SetFloatingConversionRate ¶
func (u *ProviderOrderTokenUpsertOne) SetFloatingConversionRate(v decimal.Decimal) *ProviderOrderTokenUpsertOne
SetFloatingConversionRate sets the "floating_conversion_rate" field.
func (*ProviderOrderTokenUpsertOne) SetMaxOrderAmount ¶
func (u *ProviderOrderTokenUpsertOne) SetMaxOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertOne
SetMaxOrderAmount sets the "max_order_amount" field.
func (*ProviderOrderTokenUpsertOne) SetMinOrderAmount ¶
func (u *ProviderOrderTokenUpsertOne) SetMinOrderAmount(v decimal.Decimal) *ProviderOrderTokenUpsertOne
SetMinOrderAmount sets the "min_order_amount" field.
func (*ProviderOrderTokenUpsertOne) SetNetwork ¶
func (u *ProviderOrderTokenUpsertOne) SetNetwork(v string) *ProviderOrderTokenUpsertOne
SetNetwork sets the "network" field.
func (*ProviderOrderTokenUpsertOne) SetRateSlippage ¶
func (u *ProviderOrderTokenUpsertOne) SetRateSlippage(v decimal.Decimal) *ProviderOrderTokenUpsertOne
SetRateSlippage sets the "rate_slippage" field.
func (*ProviderOrderTokenUpsertOne) SetUpdatedAt ¶
func (u *ProviderOrderTokenUpsertOne) SetUpdatedAt(v time.Time) *ProviderOrderTokenUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*ProviderOrderTokenUpsertOne) Update ¶
func (u *ProviderOrderTokenUpsertOne) Update(set func(*ProviderOrderTokenUpsert)) *ProviderOrderTokenUpsertOne
Update allows overriding fields `UPDATE` values. See the ProviderOrderTokenCreate.OnConflict documentation for more info.
func (*ProviderOrderTokenUpsertOne) UpdateAddress ¶
func (u *ProviderOrderTokenUpsertOne) UpdateAddress() *ProviderOrderTokenUpsertOne
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 ¶
func (u *ProviderOrderTokenUpsertOne) UpdateNetwork() *ProviderOrderTokenUpsertOne
UpdateNetwork sets the "network" field to the value that was provided on create.
func (*ProviderOrderTokenUpsertOne) UpdateNewValues ¶
func (u *ProviderOrderTokenUpsertOne) UpdateNewValues() *ProviderOrderTokenUpsertOne
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 ¶
func (u *ProviderOrderTokenUpsertOne) UpdateRateSlippage() *ProviderOrderTokenUpsertOne
UpdateRateSlippage sets the "rate_slippage" field to the value that was provided on create.
func (*ProviderOrderTokenUpsertOne) UpdateUpdatedAt ¶
func (u *ProviderOrderTokenUpsertOne) UpdateUpdatedAt() *ProviderOrderTokenUpsertOne
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 ¶
func (pp *ProviderProfile) Update() *ProviderProfileUpdateOne
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.
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 ¶
func (c *ProviderProfileClient) Create() *ProviderProfileCreate
Create returns a builder for creating a ProviderProfile entity.
func (*ProviderProfileClient) CreateBulk ¶
func (c *ProviderProfileClient) CreateBulk(builders ...*ProviderProfileCreate) *ProviderProfileCreateBulk
CreateBulk returns a builder for creating a bulk of ProviderProfile entities.
func (*ProviderProfileClient) Delete ¶
func (c *ProviderProfileClient) Delete() *ProviderProfileDelete
Delete returns a delete builder for ProviderProfile.
func (*ProviderProfileClient) DeleteOne ¶
func (c *ProviderProfileClient) DeleteOne(pp *ProviderProfile) *ProviderProfileDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ProviderProfileClient) DeleteOneID ¶
func (c *ProviderProfileClient) DeleteOneID(id string) *ProviderProfileDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ProviderProfileClient) Get ¶
func (c *ProviderProfileClient) Get(ctx context.Context, id string) (*ProviderProfile, error)
Get returns a ProviderProfile entity by its id.
func (*ProviderProfileClient) GetX ¶
func (c *ProviderProfileClient) GetX(ctx context.Context, id string) *ProviderProfile
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 ¶
func (c *ProviderProfileClient) Query() *ProviderProfileQuery
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 ¶
func (c *ProviderProfileClient) QueryOrderTokens(pp *ProviderProfile) *ProviderOrderTokenQuery
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 ¶
func (c *ProviderProfileClient) Update() *ProviderProfileUpdate
Update returns an update builder for ProviderProfile.
func (*ProviderProfileClient) UpdateOne ¶
func (c *ProviderProfileClient) UpdateOne(pp *ProviderProfile) *ProviderProfileUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProviderProfileClient) UpdateOneID ¶
func (c *ProviderProfileClient) UpdateOneID(id string) *ProviderProfileUpdateOne
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 ¶
func (ppc *ProviderProfileCreate) AddOrderTokens(p ...*ProviderOrderToken) *ProviderProfileCreate
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 ¶
func (ppc *ProviderProfileCreate) Mutation() *ProviderProfileMutation
Mutation returns the ProviderProfileMutation object of the builder.
func (*ProviderProfileCreate) OnConflict ¶
func (ppc *ProviderProfileCreate) OnConflict(opts ...sql.ConflictOption) *ProviderProfileUpsertOne
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 ¶
func (ppc *ProviderProfileCreate) Save(ctx context.Context) (*ProviderProfile, error)
Save creates the ProviderProfile in the database.
func (*ProviderProfileCreate) SaveX ¶
func (ppc *ProviderProfileCreate) SaveX(ctx context.Context) *ProviderProfile
SaveX calls Save and panics if Save returns an error.
func (*ProviderProfileCreate) SetAPIKey ¶
func (ppc *ProviderProfileCreate) SetAPIKey(a *APIKey) *ProviderProfileCreate
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 ¶
func (ppc *ProviderProfileCreate) SetID(s string) *ProviderProfileCreate
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 ¶
func (ppc *ProviderProfileCreate) SetProvisionMode(pm providerprofile.ProvisionMode) *ProviderProfileCreate
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 ¶
func (ppc *ProviderProfileCreate) SetUser(u *User) *ProviderProfileCreate
SetUser sets the "user" edge to the User entity.
func (*ProviderProfileCreate) SetUserID ¶
func (ppc *ProviderProfileCreate) SetUserID(id uuid.UUID) *ProviderProfileCreate
SetUserID sets the "user" edge to the User entity by ID.
func (*ProviderProfileCreate) SetVisibilityMode ¶
func (ppc *ProviderProfileCreate) SetVisibilityMode(pm providerprofile.VisibilityMode) *ProviderProfileCreate
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 ¶
func (ppcb *ProviderProfileCreateBulk) Exec(ctx context.Context) error
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 ¶
func (ppcb *ProviderProfileCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProviderProfileUpsertBulk
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 ¶
func (ppcb *ProviderProfileCreateBulk) Save(ctx context.Context) ([]*ProviderProfile, error)
Save creates the ProviderProfile entities in the database.
func (*ProviderProfileCreateBulk) SaveX ¶
func (ppcb *ProviderProfileCreateBulk) SaveX(ctx context.Context) []*ProviderProfile
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 ¶
func (ppd *ProviderProfileDelete) Where(ps ...predicate.ProviderProfile) *ProviderProfileDelete
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 ¶
func (ppdo *ProviderProfileDeleteOne) Exec(ctx context.Context) error
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 ¶
func (ppdo *ProviderProfileDeleteOne) Where(ps ...predicate.ProviderProfile) *ProviderProfileDeleteOne
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 ¶
func (ppgb *ProviderProfileGroupBy) Aggregate(fns ...AggregateFunc) *ProviderProfileGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProviderProfileGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProviderProfileGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProviderProfileGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProviderProfileGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProviderProfileGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*ProviderProfileGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProviderProfileGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (m *ProviderProfileMutation) IDs(ctx context.Context) ([]string, 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 (*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 ¶
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 ¶
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 ¶
func (m *ProviderProfileMutation) Where(ps ...predicate.ProviderProfile)
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 ¶
func (ppq *ProviderProfileQuery) Aggregate(fns ...AggregateFunc) *ProviderProfileSelect
Aggregate returns a ProviderProfileSelect configured with the given aggregations.
func (*ProviderProfileQuery) All ¶
func (ppq *ProviderProfileQuery) All(ctx context.Context) ([]*ProviderProfile, error)
All executes the query and returns a list of ProviderProfiles.
func (*ProviderProfileQuery) AllX ¶
func (ppq *ProviderProfileQuery) AllX(ctx context.Context) []*ProviderProfile
AllX is like All, but panics if an error occurs.
func (*ProviderProfileQuery) Clone ¶
func (ppq *ProviderProfileQuery) Clone() *ProviderProfileQuery
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 ¶
func (ppq *ProviderProfileQuery) First(ctx context.Context) (*ProviderProfile, error)
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 ¶
func (ppq *ProviderProfileQuery) FirstX(ctx context.Context) *ProviderProfile
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 ¶
func (ppq *ProviderProfileQuery) Only(ctx context.Context) (*ProviderProfile, error)
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 ¶
func (ppq *ProviderProfileQuery) OnlyX(ctx context.Context) *ProviderProfile
OnlyX is like Only, but panics if an error occurs.
func (*ProviderProfileQuery) Order ¶
func (ppq *ProviderProfileQuery) Order(o ...providerprofile.OrderOption) *ProviderProfileQuery
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 ¶
func (ppq *ProviderProfileQuery) Where(ps ...predicate.ProviderProfile) *ProviderProfileQuery
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 ¶
func (pps *ProviderProfileSelect) Aggregate(fns ...AggregateFunc) *ProviderProfileSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ProviderProfileSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProviderProfileSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProviderProfileSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProviderProfileSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProviderProfileSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*ProviderProfileSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProviderProfileSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (ppu *ProviderProfileUpdate) AddOrderTokens(p ...*ProviderOrderToken) *ProviderProfileUpdate
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 ¶
func (ppu *ProviderProfileUpdate) Mutation() *ProviderProfileMutation
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 ¶
func (ppu *ProviderProfileUpdate) SetAPIKey(a *APIKey) *ProviderProfileUpdate
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 ¶
func (ppu *ProviderProfileUpdate) SetProvisionMode(pm providerprofile.ProvisionMode) *ProviderProfileUpdate
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 ¶
func (ppu *ProviderProfileUpdate) SetVisibilityMode(pm providerprofile.VisibilityMode) *ProviderProfileUpdate
SetVisibilityMode sets the "visibility_mode" field.
func (*ProviderProfileUpdate) Where ¶
func (ppu *ProviderProfileUpdate) Where(ps ...predicate.ProviderProfile) *ProviderProfileUpdate
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 ¶
func (ppuo *ProviderProfileUpdateOne) AddOrderTokens(p ...*ProviderOrderToken) *ProviderProfileUpdateOne
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 ¶
func (ppuo *ProviderProfileUpdateOne) ClearAPIKey() *ProviderProfileUpdateOne
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 ¶
func (ppuo *ProviderProfileUpdateOne) Exec(ctx context.Context) error
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 ¶
func (ppuo *ProviderProfileUpdateOne) Mutation() *ProviderProfileMutation
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 ¶
func (ppuo *ProviderProfileUpdateOne) RemoveOrderTokens(p ...*ProviderOrderToken) *ProviderProfileUpdateOne
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 ¶
func (ppuo *ProviderProfileUpdateOne) Save(ctx context.Context) (*ProviderProfile, error)
Save executes the query and returns the updated ProviderProfile entity.
func (*ProviderProfileUpdateOne) SaveX ¶
func (ppuo *ProviderProfileUpdateOne) SaveX(ctx context.Context) *ProviderProfile
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 ¶
func (ppuo *ProviderProfileUpdateOne) SetAPIKey(a *APIKey) *ProviderProfileUpdateOne
SetAPIKey sets the "api_key" edge to the APIKey entity.
func (*ProviderProfileUpdateOne) SetAPIKeyID ¶
func (ppuo *ProviderProfileUpdateOne) SetAPIKeyID(id uuid.UUID) *ProviderProfileUpdateOne
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 ¶
func (ppuo *ProviderProfileUpdateOne) SetIsActive(b bool) *ProviderProfileUpdateOne
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 ¶
func (ppuo *ProviderProfileUpdateOne) SetNillableProvisionMode(pm *providerprofile.ProvisionMode) *ProviderProfileUpdateOne
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 ¶
func (ppuo *ProviderProfileUpdateOne) SetNillableVisibilityMode(pm *providerprofile.VisibilityMode) *ProviderProfileUpdateOne
SetNillableVisibilityMode sets the "visibility_mode" field if the given value is not nil.
func (*ProviderProfileUpdateOne) SetProviderRating ¶
func (ppuo *ProviderProfileUpdateOne) SetProviderRating(p *ProviderRating) *ProviderProfileUpdateOne
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 ¶
func (ppuo *ProviderProfileUpdateOne) SetProvisionMode(pm providerprofile.ProvisionMode) *ProviderProfileUpdateOne
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 ¶
func (ppuo *ProviderProfileUpdateOne) SetUpdatedAt(t time.Time) *ProviderProfileUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ProviderProfileUpdateOne) SetVisibilityMode ¶
func (ppuo *ProviderProfileUpdateOne) SetVisibilityMode(pm providerprofile.VisibilityMode) *ProviderProfileUpdateOne
SetVisibilityMode sets the "visibility_mode" field.
func (*ProviderProfileUpdateOne) Where ¶
func (ppuo *ProviderProfileUpdateOne) Where(ps ...predicate.ProviderProfile) *ProviderProfileUpdateOne
Where appends a list predicates to the ProviderProfileUpdate builder.
type ProviderProfileUpsert ¶
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 ¶
func (u *ProviderProfileUpsert) SetIsActive(v bool) *ProviderProfileUpsert
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 ¶
func (u *ProviderProfileUpsert) SetProvisionMode(v providerprofile.ProvisionMode) *ProviderProfileUpsert
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 ¶
func (u *ProviderProfileUpsert) SetUpdatedAt(v time.Time) *ProviderProfileUpsert
SetUpdatedAt sets the "updated_at" field.
func (*ProviderProfileUpsert) SetVisibilityMode ¶
func (u *ProviderProfileUpsert) SetVisibilityMode(v providerprofile.VisibilityMode) *ProviderProfileUpsert
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 ¶
func (u *ProviderProfileUpsertBulk) ClearTradingName() *ProviderProfileUpsertBulk
ClearTradingName clears the value of the "trading_name" field.
func (*ProviderProfileUpsertBulk) DoNothing ¶
func (u *ProviderProfileUpsertBulk) DoNothing() *ProviderProfileUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProviderProfileUpsertBulk) Exec ¶
func (u *ProviderProfileUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProviderProfileUpsertBulk) ExecX ¶
func (u *ProviderProfileUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProviderProfileUpsertBulk) Ignore ¶
func (u *ProviderProfileUpsertBulk) Ignore() *ProviderProfileUpsertBulk
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 ¶
func (u *ProviderProfileUpsertBulk) SetHostIdentifier(v string) *ProviderProfileUpsertBulk
SetHostIdentifier sets the "host_identifier" field.
func (*ProviderProfileUpsertBulk) SetIsActive ¶
func (u *ProviderProfileUpsertBulk) SetIsActive(v bool) *ProviderProfileUpsertBulk
SetIsActive sets the "is_active" field.
func (*ProviderProfileUpsertBulk) SetIsKybVerified ¶ added in v0.0.2
func (u *ProviderProfileUpsertBulk) SetIsKybVerified(v bool) *ProviderProfileUpsertBulk
SetIsKybVerified sets the "is_kyb_verified" field.
func (*ProviderProfileUpsertBulk) SetProvisionMode ¶
func (u *ProviderProfileUpsertBulk) SetProvisionMode(v providerprofile.ProvisionMode) *ProviderProfileUpsertBulk
SetProvisionMode sets the "provision_mode" field.
func (*ProviderProfileUpsertBulk) SetTradingName ¶
func (u *ProviderProfileUpsertBulk) SetTradingName(v string) *ProviderProfileUpsertBulk
SetTradingName sets the "trading_name" field.
func (*ProviderProfileUpsertBulk) SetUpdatedAt ¶
func (u *ProviderProfileUpsertBulk) SetUpdatedAt(v time.Time) *ProviderProfileUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*ProviderProfileUpsertBulk) SetVisibilityMode ¶
func (u *ProviderProfileUpsertBulk) SetVisibilityMode(v providerprofile.VisibilityMode) *ProviderProfileUpsertBulk
SetVisibilityMode sets the "visibility_mode" field.
func (*ProviderProfileUpsertBulk) Update ¶
func (u *ProviderProfileUpsertBulk) Update(set func(*ProviderProfileUpsert)) *ProviderProfileUpsertBulk
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 ¶
func (u *ProviderProfileUpsertBulk) UpdateIsActive() *ProviderProfileUpsertBulk
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 ¶
func (u *ProviderProfileUpsertBulk) UpdateNewValues() *ProviderProfileUpsertBulk
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 ¶
func (u *ProviderProfileUpsertBulk) UpdateUpdatedAt() *ProviderProfileUpsertBulk
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 ¶
func (u *ProviderProfileUpsertOne) DoNothing() *ProviderProfileUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProviderProfileUpsertOne) Exec ¶
func (u *ProviderProfileUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ProviderProfileUpsertOne) ExecX ¶
func (u *ProviderProfileUpsertOne) ExecX(ctx context.Context)
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 ¶
func (u *ProviderProfileUpsertOne) IDX(ctx context.Context) string
IDX is like ID, but panics if an error occurs.
func (*ProviderProfileUpsertOne) Ignore ¶
func (u *ProviderProfileUpsertOne) Ignore() *ProviderProfileUpsertOne
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 ¶
func (u *ProviderProfileUpsertOne) SetIsActive(v bool) *ProviderProfileUpsertOne
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 ¶
func (u *ProviderProfileUpsertOne) SetProvisionMode(v providerprofile.ProvisionMode) *ProviderProfileUpsertOne
SetProvisionMode sets the "provision_mode" field.
func (*ProviderProfileUpsertOne) SetTradingName ¶
func (u *ProviderProfileUpsertOne) SetTradingName(v string) *ProviderProfileUpsertOne
SetTradingName sets the "trading_name" field.
func (*ProviderProfileUpsertOne) SetUpdatedAt ¶
func (u *ProviderProfileUpsertOne) SetUpdatedAt(v time.Time) *ProviderProfileUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*ProviderProfileUpsertOne) SetVisibilityMode ¶
func (u *ProviderProfileUpsertOne) SetVisibilityMode(v providerprofile.VisibilityMode) *ProviderProfileUpsertOne
SetVisibilityMode sets the "visibility_mode" field.
func (*ProviderProfileUpsertOne) Update ¶
func (u *ProviderProfileUpsertOne) Update(set func(*ProviderProfileUpsert)) *ProviderProfileUpsertOne
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 ¶
func (u *ProviderProfileUpsertOne) UpdateIsActive() *ProviderProfileUpsertOne
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 ¶
func (pr *ProviderRating) Update() *ProviderRatingUpdateOne
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.
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 ¶
func (c *ProviderRatingClient) Create() *ProviderRatingCreate
Create returns a builder for creating a ProviderRating entity.
func (*ProviderRatingClient) CreateBulk ¶
func (c *ProviderRatingClient) CreateBulk(builders ...*ProviderRatingCreate) *ProviderRatingCreateBulk
CreateBulk returns a builder for creating a bulk of ProviderRating entities.
func (*ProviderRatingClient) Delete ¶
func (c *ProviderRatingClient) Delete() *ProviderRatingDelete
Delete returns a delete builder for ProviderRating.
func (*ProviderRatingClient) DeleteOne ¶
func (c *ProviderRatingClient) DeleteOne(pr *ProviderRating) *ProviderRatingDeleteOne
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 ¶
func (c *ProviderRatingClient) Get(ctx context.Context, id int) (*ProviderRating, error)
Get returns a ProviderRating entity by its id.
func (*ProviderRatingClient) GetX ¶
func (c *ProviderRatingClient) GetX(ctx context.Context, id int) *ProviderRating
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 ¶
func (c *ProviderRatingClient) Query() *ProviderRatingQuery
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 ¶
func (c *ProviderRatingClient) Update() *ProviderRatingUpdate
Update returns an update builder for ProviderRating.
func (*ProviderRatingClient) UpdateOne ¶
func (c *ProviderRatingClient) UpdateOne(pr *ProviderRating) *ProviderRatingUpdateOne
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 ¶
func (prc *ProviderRatingCreate) Mutation() *ProviderRatingMutation
Mutation returns the ProviderRatingMutation object of the builder.
func (*ProviderRatingCreate) OnConflict ¶
func (prc *ProviderRatingCreate) OnConflict(opts ...sql.ConflictOption) *ProviderRatingUpsertOne
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 ¶
func (prc *ProviderRatingCreate) Save(ctx context.Context) (*ProviderRating, error)
Save creates the ProviderRating in the database.
func (*ProviderRatingCreate) SaveX ¶
func (prc *ProviderRatingCreate) SaveX(ctx context.Context) *ProviderRating
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 ¶
func (prc *ProviderRatingCreate) SetTrustScore(d decimal.Decimal) *ProviderRatingCreate
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 ¶
func (prcb *ProviderRatingCreateBulk) Exec(ctx context.Context) error
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 ¶
func (prcb *ProviderRatingCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProviderRatingUpsertBulk
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 ¶
func (prcb *ProviderRatingCreateBulk) Save(ctx context.Context) ([]*ProviderRating, error)
Save creates the ProviderRating entities in the database.
func (*ProviderRatingCreateBulk) SaveX ¶
func (prcb *ProviderRatingCreateBulk) SaveX(ctx context.Context) []*ProviderRating
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 ¶
func (prd *ProviderRatingDelete) Where(ps ...predicate.ProviderRating) *ProviderRatingDelete
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 ¶
func (prdo *ProviderRatingDeleteOne) Where(ps ...predicate.ProviderRating) *ProviderRatingDeleteOne
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 ¶
func (prgb *ProviderRatingGroupBy) Aggregate(fns ...AggregateFunc) *ProviderRatingGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProviderRatingGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProviderRatingGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProviderRatingGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProviderRatingGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProviderRatingGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*ProviderRatingGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProviderRatingGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (m *ProviderRatingMutation) Where(ps ...predicate.ProviderRating)
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 ¶
func (prq *ProviderRatingQuery) All(ctx context.Context) ([]*ProviderRating, error)
All executes the query and returns a list of ProviderRatings.
func (*ProviderRatingQuery) AllX ¶
func (prq *ProviderRatingQuery) AllX(ctx context.Context) []*ProviderRating
AllX is like All, but panics if an error occurs.
func (*ProviderRatingQuery) Clone ¶
func (prq *ProviderRatingQuery) Clone() *ProviderRatingQuery
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 ¶
func (prq *ProviderRatingQuery) First(ctx context.Context) (*ProviderRating, error)
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 ¶
func (prq *ProviderRatingQuery) FirstX(ctx context.Context) *ProviderRating
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 ¶
func (prq *ProviderRatingQuery) Only(ctx context.Context) (*ProviderRating, error)
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 ¶
func (prq *ProviderRatingQuery) OnlyX(ctx context.Context) *ProviderRating
OnlyX is like Only, but panics if an error occurs.
func (*ProviderRatingQuery) Order ¶
func (prq *ProviderRatingQuery) Order(o ...providerrating.OrderOption) *ProviderRatingQuery
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 ¶
func (prq *ProviderRatingQuery) Where(ps ...predicate.ProviderRating) *ProviderRatingQuery
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 ¶
func (prs *ProviderRatingSelect) Aggregate(fns ...AggregateFunc) *ProviderRatingSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ProviderRatingSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProviderRatingSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProviderRatingSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProviderRatingSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProviderRatingSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProviderRatingSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProviderRatingUpdate ¶
type ProviderRatingUpdate struct {
// contains filtered or unexported fields
}
ProviderRatingUpdate is the builder for updating ProviderRating entities.
func (*ProviderRatingUpdate) AddTrustScore ¶
func (pru *ProviderRatingUpdate) AddTrustScore(d decimal.Decimal) *ProviderRatingUpdate
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 ¶
func (pru *ProviderRatingUpdate) Mutation() *ProviderRatingMutation
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 ¶
func (pru *ProviderRatingUpdate) SetTrustScore(d decimal.Decimal) *ProviderRatingUpdate
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 ¶
func (pru *ProviderRatingUpdate) Where(ps ...predicate.ProviderRating) *ProviderRatingUpdate
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 ¶
func (pruo *ProviderRatingUpdateOne) AddTrustScore(d decimal.Decimal) *ProviderRatingUpdateOne
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 ¶
func (pruo *ProviderRatingUpdateOne) Mutation() *ProviderRatingMutation
Mutation returns the ProviderRatingMutation object of the builder.
func (*ProviderRatingUpdateOne) Save ¶
func (pruo *ProviderRatingUpdateOne) Save(ctx context.Context) (*ProviderRating, error)
Save executes the query and returns the updated ProviderRating entity.
func (*ProviderRatingUpdateOne) SaveX ¶
func (pruo *ProviderRatingUpdateOne) SaveX(ctx context.Context) *ProviderRating
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 ¶
func (pruo *ProviderRatingUpdateOne) SetTrustScore(d decimal.Decimal) *ProviderRatingUpdateOne
SetTrustScore sets the "trust_score" field.
func (*ProviderRatingUpdateOne) SetUpdatedAt ¶
func (pruo *ProviderRatingUpdateOne) SetUpdatedAt(t time.Time) *ProviderRatingUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ProviderRatingUpdateOne) Where ¶
func (pruo *ProviderRatingUpdateOne) Where(ps ...predicate.ProviderRating) *ProviderRatingUpdateOne
Where appends a list predicates to the ProviderRatingUpdate builder.
type ProviderRatingUpsert ¶
ProviderRatingUpsert is the "OnConflict" setter.
func (*ProviderRatingUpsert) AddTrustScore ¶
func (u *ProviderRatingUpsert) AddTrustScore(v decimal.Decimal) *ProviderRatingUpsert
AddTrustScore adds v to the "trust_score" field.
func (*ProviderRatingUpsert) SetTrustScore ¶
func (u *ProviderRatingUpsert) SetTrustScore(v decimal.Decimal) *ProviderRatingUpsert
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 ¶
func (u *ProviderRatingUpsertBulk) AddTrustScore(v decimal.Decimal) *ProviderRatingUpsertBulk
AddTrustScore adds v to the "trust_score" field.
func (*ProviderRatingUpsertBulk) DoNothing ¶
func (u *ProviderRatingUpsertBulk) DoNothing() *ProviderRatingUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProviderRatingUpsertBulk) Exec ¶
func (u *ProviderRatingUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProviderRatingUpsertBulk) ExecX ¶
func (u *ProviderRatingUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProviderRatingUpsertBulk) Ignore ¶
func (u *ProviderRatingUpsertBulk) Ignore() *ProviderRatingUpsertBulk
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 ¶
func (u *ProviderRatingUpsertBulk) SetTrustScore(v decimal.Decimal) *ProviderRatingUpsertBulk
SetTrustScore sets the "trust_score" field.
func (*ProviderRatingUpsertBulk) SetUpdatedAt ¶
func (u *ProviderRatingUpsertBulk) SetUpdatedAt(v time.Time) *ProviderRatingUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*ProviderRatingUpsertBulk) Update ¶
func (u *ProviderRatingUpsertBulk) Update(set func(*ProviderRatingUpsert)) *ProviderRatingUpsertBulk
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 ¶
func (u *ProviderRatingUpsertOne) AddTrustScore(v decimal.Decimal) *ProviderRatingUpsertOne
AddTrustScore adds v to the "trust_score" field.
func (*ProviderRatingUpsertOne) DoNothing ¶
func (u *ProviderRatingUpsertOne) DoNothing() *ProviderRatingUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProviderRatingUpsertOne) Exec ¶
func (u *ProviderRatingUpsertOne) Exec(ctx context.Context) error
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 ¶
func (u *ProviderRatingUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*ProviderRatingUpsertOne) Ignore ¶
func (u *ProviderRatingUpsertOne) Ignore() *ProviderRatingUpsertOne
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 ¶
func (u *ProviderRatingUpsertOne) SetTrustScore(v decimal.Decimal) *ProviderRatingUpsertOne
SetTrustScore sets the "trust_score" field.
func (*ProviderRatingUpsertOne) SetUpdatedAt ¶
func (u *ProviderRatingUpsertOne) SetUpdatedAt(v time.Time) *ProviderRatingUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*ProviderRatingUpsertOne) Update ¶
func (u *ProviderRatingUpsertOne) Update(set func(*ProviderRatingUpsert)) *ProviderRatingUpsertOne
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 ¶
func (pb *ProvisionBucket) Update() *ProvisionBucketUpdateOne
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.
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 ¶
func (c *ProvisionBucketClient) Create() *ProvisionBucketCreate
Create returns a builder for creating a ProvisionBucket entity.
func (*ProvisionBucketClient) CreateBulk ¶
func (c *ProvisionBucketClient) CreateBulk(builders ...*ProvisionBucketCreate) *ProvisionBucketCreateBulk
CreateBulk returns a builder for creating a bulk of ProvisionBucket entities.
func (*ProvisionBucketClient) Delete ¶
func (c *ProvisionBucketClient) Delete() *ProvisionBucketDelete
Delete returns a delete builder for ProvisionBucket.
func (*ProvisionBucketClient) DeleteOne ¶
func (c *ProvisionBucketClient) DeleteOne(pb *ProvisionBucket) *ProvisionBucketDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ProvisionBucketClient) DeleteOneID ¶
func (c *ProvisionBucketClient) DeleteOneID(id int) *ProvisionBucketDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ProvisionBucketClient) Get ¶
func (c *ProvisionBucketClient) Get(ctx context.Context, id int) (*ProvisionBucket, error)
Get returns a ProvisionBucket entity by its id.
func (*ProvisionBucketClient) GetX ¶
func (c *ProvisionBucketClient) GetX(ctx context.Context, id int) *ProvisionBucket
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 ¶
func (c *ProvisionBucketClient) Query() *ProvisionBucketQuery
Query returns a query builder for ProvisionBucket.
func (*ProvisionBucketClient) QueryCurrency ¶
func (c *ProvisionBucketClient) QueryCurrency(pb *ProvisionBucket) *FiatCurrencyQuery
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 ¶
func (c *ProvisionBucketClient) Update() *ProvisionBucketUpdate
Update returns an update builder for ProvisionBucket.
func (*ProvisionBucketClient) UpdateOne ¶
func (c *ProvisionBucketClient) UpdateOne(pb *ProvisionBucket) *ProvisionBucketUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProvisionBucketClient) UpdateOneID ¶
func (c *ProvisionBucketClient) UpdateOneID(id int) *ProvisionBucketUpdateOne
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 ¶
func (pbc *ProvisionBucketCreate) Mutation() *ProvisionBucketMutation
Mutation returns the ProvisionBucketMutation object of the builder.
func (*ProvisionBucketCreate) OnConflict ¶
func (pbc *ProvisionBucketCreate) OnConflict(opts ...sql.ConflictOption) *ProvisionBucketUpsertOne
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 ¶
func (pbc *ProvisionBucketCreate) Save(ctx context.Context) (*ProvisionBucket, error)
Save creates the ProvisionBucket in the database.
func (*ProvisionBucketCreate) SaveX ¶
func (pbc *ProvisionBucketCreate) SaveX(ctx context.Context) *ProvisionBucket
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 ¶
func (pbc *ProvisionBucketCreate) SetCurrency(f *FiatCurrency) *ProvisionBucketCreate
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 ¶
func (pbc *ProvisionBucketCreate) SetMaxAmount(d decimal.Decimal) *ProvisionBucketCreate
SetMaxAmount sets the "max_amount" field.
func (*ProvisionBucketCreate) SetMinAmount ¶
func (pbc *ProvisionBucketCreate) SetMinAmount(d decimal.Decimal) *ProvisionBucketCreate
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 ¶
func (pbcb *ProvisionBucketCreateBulk) Exec(ctx context.Context) error
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 ¶
func (pbcb *ProvisionBucketCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProvisionBucketUpsertBulk
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 ¶
func (pbcb *ProvisionBucketCreateBulk) Save(ctx context.Context) ([]*ProvisionBucket, error)
Save creates the ProvisionBucket entities in the database.
func (*ProvisionBucketCreateBulk) SaveX ¶
func (pbcb *ProvisionBucketCreateBulk) SaveX(ctx context.Context) []*ProvisionBucket
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 ¶
func (pbd *ProvisionBucketDelete) Where(ps ...predicate.ProvisionBucket) *ProvisionBucketDelete
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 ¶
func (pbdo *ProvisionBucketDeleteOne) Exec(ctx context.Context) error
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 ¶
func (pbdo *ProvisionBucketDeleteOne) Where(ps ...predicate.ProvisionBucket) *ProvisionBucketDeleteOne
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 ¶
func (pbgb *ProvisionBucketGroupBy) Aggregate(fns ...AggregateFunc) *ProvisionBucketGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProvisionBucketGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProvisionBucketGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProvisionBucketGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProvisionBucketGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProvisionBucketGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*ProvisionBucketGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProvisionBucketGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (m *ProvisionBucketMutation) Where(ps ...predicate.ProvisionBucket)
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 ¶
func (pbq *ProvisionBucketQuery) Aggregate(fns ...AggregateFunc) *ProvisionBucketSelect
Aggregate returns a ProvisionBucketSelect configured with the given aggregations.
func (*ProvisionBucketQuery) All ¶
func (pbq *ProvisionBucketQuery) All(ctx context.Context) ([]*ProvisionBucket, error)
All executes the query and returns a list of ProvisionBuckets.
func (*ProvisionBucketQuery) AllX ¶
func (pbq *ProvisionBucketQuery) AllX(ctx context.Context) []*ProvisionBucket
AllX is like All, but panics if an error occurs.
func (*ProvisionBucketQuery) Clone ¶
func (pbq *ProvisionBucketQuery) Clone() *ProvisionBucketQuery
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 ¶
func (pbq *ProvisionBucketQuery) First(ctx context.Context) (*ProvisionBucket, error)
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 ¶
func (pbq *ProvisionBucketQuery) FirstX(ctx context.Context) *ProvisionBucket
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 ¶
func (pbq *ProvisionBucketQuery) Only(ctx context.Context) (*ProvisionBucket, error)
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 ¶
func (pbq *ProvisionBucketQuery) OnlyX(ctx context.Context) *ProvisionBucket
OnlyX is like Only, but panics if an error occurs.
func (*ProvisionBucketQuery) Order ¶
func (pbq *ProvisionBucketQuery) Order(o ...provisionbucket.OrderOption) *ProvisionBucketQuery
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 ¶
func (pbq *ProvisionBucketQuery) Where(ps ...predicate.ProvisionBucket) *ProvisionBucketQuery
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 ¶
func (pbs *ProvisionBucketSelect) Aggregate(fns ...AggregateFunc) *ProvisionBucketSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ProvisionBucketSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProvisionBucketSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProvisionBucketSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProvisionBucketSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProvisionBucketSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*ProvisionBucketSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProvisionBucketSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (pbu *ProvisionBucketUpdate) AddMaxAmount(d decimal.Decimal) *ProvisionBucketUpdate
AddMaxAmount adds d to the "max_amount" field.
func (*ProvisionBucketUpdate) AddMinAmount ¶
func (pbu *ProvisionBucketUpdate) AddMinAmount(d decimal.Decimal) *ProvisionBucketUpdate
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 ¶
func (pbu *ProvisionBucketUpdate) Mutation() *ProvisionBucketMutation
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 ¶
func (pbu *ProvisionBucketUpdate) SetCurrency(f *FiatCurrency) *ProvisionBucketUpdate
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 ¶
func (pbu *ProvisionBucketUpdate) SetMaxAmount(d decimal.Decimal) *ProvisionBucketUpdate
SetMaxAmount sets the "max_amount" field.
func (*ProvisionBucketUpdate) SetMinAmount ¶
func (pbu *ProvisionBucketUpdate) SetMinAmount(d decimal.Decimal) *ProvisionBucketUpdate
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 ¶
func (pbu *ProvisionBucketUpdate) Where(ps ...predicate.ProvisionBucket) *ProvisionBucketUpdate
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 ¶
func (pbuo *ProvisionBucketUpdateOne) AddMaxAmount(d decimal.Decimal) *ProvisionBucketUpdateOne
AddMaxAmount adds d to the "max_amount" field.
func (*ProvisionBucketUpdateOne) AddMinAmount ¶
func (pbuo *ProvisionBucketUpdateOne) AddMinAmount(d decimal.Decimal) *ProvisionBucketUpdateOne
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 ¶
func (pbuo *ProvisionBucketUpdateOne) Exec(ctx context.Context) error
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 ¶
func (pbuo *ProvisionBucketUpdateOne) Mutation() *ProvisionBucketMutation
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 ¶
func (pbuo *ProvisionBucketUpdateOne) Save(ctx context.Context) (*ProvisionBucket, error)
Save executes the query and returns the updated ProvisionBucket entity.
func (*ProvisionBucketUpdateOne) SaveX ¶
func (pbuo *ProvisionBucketUpdateOne) SaveX(ctx context.Context) *ProvisionBucket
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 ¶
func (pbuo *ProvisionBucketUpdateOne) SetCurrency(f *FiatCurrency) *ProvisionBucketUpdateOne
SetCurrency sets the "currency" edge to the FiatCurrency entity.
func (*ProvisionBucketUpdateOne) SetCurrencyID ¶
func (pbuo *ProvisionBucketUpdateOne) SetCurrencyID(id uuid.UUID) *ProvisionBucketUpdateOne
SetCurrencyID sets the "currency" edge to the FiatCurrency entity by ID.
func (*ProvisionBucketUpdateOne) SetMaxAmount ¶
func (pbuo *ProvisionBucketUpdateOne) SetMaxAmount(d decimal.Decimal) *ProvisionBucketUpdateOne
SetMaxAmount sets the "max_amount" field.
func (*ProvisionBucketUpdateOne) SetMinAmount ¶
func (pbuo *ProvisionBucketUpdateOne) SetMinAmount(d decimal.Decimal) *ProvisionBucketUpdateOne
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 ¶
func (pbuo *ProvisionBucketUpdateOne) Where(ps ...predicate.ProvisionBucket) *ProvisionBucketUpdateOne
Where appends a list predicates to the ProvisionBucketUpdate builder.
type ProvisionBucketUpsert ¶
ProvisionBucketUpsert is the "OnConflict" setter.
func (*ProvisionBucketUpsert) AddMaxAmount ¶
func (u *ProvisionBucketUpsert) AddMaxAmount(v decimal.Decimal) *ProvisionBucketUpsert
AddMaxAmount adds v to the "max_amount" field.
func (*ProvisionBucketUpsert) AddMinAmount ¶
func (u *ProvisionBucketUpsert) AddMinAmount(v decimal.Decimal) *ProvisionBucketUpsert
AddMinAmount adds v to the "min_amount" field.
func (*ProvisionBucketUpsert) SetMaxAmount ¶
func (u *ProvisionBucketUpsert) SetMaxAmount(v decimal.Decimal) *ProvisionBucketUpsert
SetMaxAmount sets the "max_amount" field.
func (*ProvisionBucketUpsert) SetMinAmount ¶
func (u *ProvisionBucketUpsert) SetMinAmount(v decimal.Decimal) *ProvisionBucketUpsert
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 ¶
func (u *ProvisionBucketUpsertBulk) AddMaxAmount(v decimal.Decimal) *ProvisionBucketUpsertBulk
AddMaxAmount adds v to the "max_amount" field.
func (*ProvisionBucketUpsertBulk) AddMinAmount ¶
func (u *ProvisionBucketUpsertBulk) AddMinAmount(v decimal.Decimal) *ProvisionBucketUpsertBulk
AddMinAmount adds v to the "min_amount" field.
func (*ProvisionBucketUpsertBulk) DoNothing ¶
func (u *ProvisionBucketUpsertBulk) DoNothing() *ProvisionBucketUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProvisionBucketUpsertBulk) Exec ¶
func (u *ProvisionBucketUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProvisionBucketUpsertBulk) ExecX ¶
func (u *ProvisionBucketUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProvisionBucketUpsertBulk) Ignore ¶
func (u *ProvisionBucketUpsertBulk) Ignore() *ProvisionBucketUpsertBulk
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 ¶
func (u *ProvisionBucketUpsertBulk) SetMaxAmount(v decimal.Decimal) *ProvisionBucketUpsertBulk
SetMaxAmount sets the "max_amount" field.
func (*ProvisionBucketUpsertBulk) SetMinAmount ¶
func (u *ProvisionBucketUpsertBulk) SetMinAmount(v decimal.Decimal) *ProvisionBucketUpsertBulk
SetMinAmount sets the "min_amount" field.
func (*ProvisionBucketUpsertBulk) Update ¶
func (u *ProvisionBucketUpsertBulk) Update(set func(*ProvisionBucketUpsert)) *ProvisionBucketUpsertBulk
Update allows overriding fields `UPDATE` values. See the ProvisionBucketCreateBulk.OnConflict documentation for more info.
func (*ProvisionBucketUpsertBulk) UpdateMaxAmount ¶
func (u *ProvisionBucketUpsertBulk) UpdateMaxAmount() *ProvisionBucketUpsertBulk
UpdateMaxAmount sets the "max_amount" field to the value that was provided on create.
func (*ProvisionBucketUpsertBulk) UpdateMinAmount ¶
func (u *ProvisionBucketUpsertBulk) UpdateMinAmount() *ProvisionBucketUpsertBulk
UpdateMinAmount sets the "min_amount" field to the value that was provided on create.
func (*ProvisionBucketUpsertBulk) UpdateNewValues ¶
func (u *ProvisionBucketUpsertBulk) UpdateNewValues() *ProvisionBucketUpsertBulk
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 ¶
func (u *ProvisionBucketUpsertOne) AddMaxAmount(v decimal.Decimal) *ProvisionBucketUpsertOne
AddMaxAmount adds v to the "max_amount" field.
func (*ProvisionBucketUpsertOne) AddMinAmount ¶
func (u *ProvisionBucketUpsertOne) AddMinAmount(v decimal.Decimal) *ProvisionBucketUpsertOne
AddMinAmount adds v to the "min_amount" field.
func (*ProvisionBucketUpsertOne) DoNothing ¶
func (u *ProvisionBucketUpsertOne) DoNothing() *ProvisionBucketUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProvisionBucketUpsertOne) Exec ¶
func (u *ProvisionBucketUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ProvisionBucketUpsertOne) ExecX ¶
func (u *ProvisionBucketUpsertOne) ExecX(ctx context.Context)
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 ¶
func (u *ProvisionBucketUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*ProvisionBucketUpsertOne) Ignore ¶
func (u *ProvisionBucketUpsertOne) Ignore() *ProvisionBucketUpsertOne
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 ¶
func (u *ProvisionBucketUpsertOne) SetMaxAmount(v decimal.Decimal) *ProvisionBucketUpsertOne
SetMaxAmount sets the "max_amount" field.
func (*ProvisionBucketUpsertOne) SetMinAmount ¶
func (u *ProvisionBucketUpsertOne) SetMinAmount(v decimal.Decimal) *ProvisionBucketUpsertOne
SetMinAmount sets the "min_amount" field.
func (*ProvisionBucketUpsertOne) Update ¶
func (u *ProvisionBucketUpsertOne) Update(set func(*ProvisionBucketUpsert)) *ProvisionBucketUpsertOne
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 QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
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 ¶
func (ra *ReceiveAddress) Update() *ReceiveAddressUpdateOne
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.
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 ¶
func (c *ReceiveAddressClient) Create() *ReceiveAddressCreate
Create returns a builder for creating a ReceiveAddress entity.
func (*ReceiveAddressClient) CreateBulk ¶
func (c *ReceiveAddressClient) CreateBulk(builders ...*ReceiveAddressCreate) *ReceiveAddressCreateBulk
CreateBulk returns a builder for creating a bulk of ReceiveAddress entities.
func (*ReceiveAddressClient) Delete ¶
func (c *ReceiveAddressClient) Delete() *ReceiveAddressDelete
Delete returns a delete builder for ReceiveAddress.
func (*ReceiveAddressClient) DeleteOne ¶
func (c *ReceiveAddressClient) DeleteOne(ra *ReceiveAddress) *ReceiveAddressDeleteOne
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 ¶
func (c *ReceiveAddressClient) Get(ctx context.Context, id int) (*ReceiveAddress, error)
Get returns a ReceiveAddress entity by its id.
func (*ReceiveAddressClient) GetX ¶
func (c *ReceiveAddressClient) GetX(ctx context.Context, id int) *ReceiveAddress
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 ¶
func (c *ReceiveAddressClient) Query() *ReceiveAddressQuery
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 ¶
func (c *ReceiveAddressClient) Update() *ReceiveAddressUpdate
Update returns an update builder for ReceiveAddress.
func (*ReceiveAddressClient) UpdateOne ¶
func (c *ReceiveAddressClient) UpdateOne(ra *ReceiveAddress) *ReceiveAddressUpdateOne
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 ¶
func (rac *ReceiveAddressCreate) Mutation() *ReceiveAddressMutation
Mutation returns the ReceiveAddressMutation object of the builder.
func (*ReceiveAddressCreate) OnConflict ¶
func (rac *ReceiveAddressCreate) OnConflict(opts ...sql.ConflictOption) *ReceiveAddressUpsertOne
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 ¶
func (rac *ReceiveAddressCreate) Save(ctx context.Context) (*ReceiveAddress, error)
Save creates the ReceiveAddress in the database.
func (*ReceiveAddressCreate) SaveX ¶
func (rac *ReceiveAddressCreate) SaveX(ctx context.Context) *ReceiveAddress
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 ¶
func (rac *ReceiveAddressCreate) SetStatus(r receiveaddress.Status) *ReceiveAddressCreate
SetStatus sets the "status" field.
func (*ReceiveAddressCreate) SetTxHash ¶
func (rac *ReceiveAddressCreate) SetTxHash(s string) *ReceiveAddressCreate
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 ¶
func (racb *ReceiveAddressCreateBulk) Exec(ctx context.Context) error
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 ¶
func (racb *ReceiveAddressCreateBulk) OnConflict(opts ...sql.ConflictOption) *ReceiveAddressUpsertBulk
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 ¶
func (racb *ReceiveAddressCreateBulk) Save(ctx context.Context) ([]*ReceiveAddress, error)
Save creates the ReceiveAddress entities in the database.
func (*ReceiveAddressCreateBulk) SaveX ¶
func (racb *ReceiveAddressCreateBulk) SaveX(ctx context.Context) []*ReceiveAddress
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 ¶
func (rad *ReceiveAddressDelete) Where(ps ...predicate.ReceiveAddress) *ReceiveAddressDelete
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 ¶
func (rado *ReceiveAddressDeleteOne) Where(ps ...predicate.ReceiveAddress) *ReceiveAddressDeleteOne
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 ¶
func (ragb *ReceiveAddressGroupBy) Aggregate(fns ...AggregateFunc) *ReceiveAddressGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ReceiveAddressGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReceiveAddressGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReceiveAddressGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReceiveAddressGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReceiveAddressGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*ReceiveAddressGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReceiveAddressGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (m *ReceiveAddressMutation) SetStatus(r receiveaddress.Status)
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 ¶
func (m *ReceiveAddressMutation) Where(ps ...predicate.ReceiveAddress)
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 ¶
func (raq *ReceiveAddressQuery) All(ctx context.Context) ([]*ReceiveAddress, error)
All executes the query and returns a list of ReceiveAddresses.
func (*ReceiveAddressQuery) AllX ¶
func (raq *ReceiveAddressQuery) AllX(ctx context.Context) []*ReceiveAddress
AllX is like All, but panics if an error occurs.
func (*ReceiveAddressQuery) Clone ¶
func (raq *ReceiveAddressQuery) Clone() *ReceiveAddressQuery
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 ¶
func (raq *ReceiveAddressQuery) First(ctx context.Context) (*ReceiveAddress, error)
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 ¶
func (raq *ReceiveAddressQuery) FirstX(ctx context.Context) *ReceiveAddress
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 ¶
func (raq *ReceiveAddressQuery) Only(ctx context.Context) (*ReceiveAddress, error)
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 ¶
func (raq *ReceiveAddressQuery) OnlyX(ctx context.Context) *ReceiveAddress
OnlyX is like Only, but panics if an error occurs.
func (*ReceiveAddressQuery) Order ¶
func (raq *ReceiveAddressQuery) Order(o ...receiveaddress.OrderOption) *ReceiveAddressQuery
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 ¶
func (raq *ReceiveAddressQuery) Where(ps ...predicate.ReceiveAddress) *ReceiveAddressQuery
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 ¶
func (ras *ReceiveAddressSelect) Aggregate(fns ...AggregateFunc) *ReceiveAddressSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ReceiveAddressSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ReceiveAddressSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ReceiveAddressSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ReceiveAddressSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ReceiveAddressSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ReceiveAddressSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (rau *ReceiveAddressUpdate) Mutation() *ReceiveAddressMutation
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 ¶
func (rau *ReceiveAddressUpdate) SetStatus(r receiveaddress.Status) *ReceiveAddressUpdate
SetStatus sets the "status" field.
func (*ReceiveAddressUpdate) SetTxHash ¶
func (rau *ReceiveAddressUpdate) SetTxHash(s string) *ReceiveAddressUpdate
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 ¶
func (rau *ReceiveAddressUpdate) Where(ps ...predicate.ReceiveAddress) *ReceiveAddressUpdate
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 ¶
func (rauo *ReceiveAddressUpdateOne) ClearSalt() *ReceiveAddressUpdateOne
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 ¶
func (rauo *ReceiveAddressUpdateOne) Mutation() *ReceiveAddressMutation
Mutation returns the ReceiveAddressMutation object of the builder.
func (*ReceiveAddressUpdateOne) Save ¶
func (rauo *ReceiveAddressUpdateOne) Save(ctx context.Context) (*ReceiveAddress, error)
Save executes the query and returns the updated ReceiveAddress entity.
func (*ReceiveAddressUpdateOne) SaveX ¶
func (rauo *ReceiveAddressUpdateOne) SaveX(ctx context.Context) *ReceiveAddress
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 ¶
func (rauo *ReceiveAddressUpdateOne) SetAddress(s string) *ReceiveAddressUpdateOne
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 ¶
func (rauo *ReceiveAddressUpdateOne) SetLastUsed(t time.Time) *ReceiveAddressUpdateOne
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 ¶
func (rauo *ReceiveAddressUpdateOne) SetNillableStatus(r *receiveaddress.Status) *ReceiveAddressUpdateOne
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 ¶
func (rauo *ReceiveAddressUpdateOne) SetPaymentOrder(p *PaymentOrder) *ReceiveAddressUpdateOne
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 ¶
func (rauo *ReceiveAddressUpdateOne) SetSalt(b []byte) *ReceiveAddressUpdateOne
SetSalt sets the "salt" field.
func (*ReceiveAddressUpdateOne) SetStatus ¶
func (rauo *ReceiveAddressUpdateOne) SetStatus(r receiveaddress.Status) *ReceiveAddressUpdateOne
SetStatus sets the "status" field.
func (*ReceiveAddressUpdateOne) SetTxHash ¶
func (rauo *ReceiveAddressUpdateOne) SetTxHash(s string) *ReceiveAddressUpdateOne
SetTxHash sets the "tx_hash" field.
func (*ReceiveAddressUpdateOne) SetUpdatedAt ¶
func (rauo *ReceiveAddressUpdateOne) SetUpdatedAt(t time.Time) *ReceiveAddressUpdateOne
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 ¶
func (rauo *ReceiveAddressUpdateOne) Where(ps ...predicate.ReceiveAddress) *ReceiveAddressUpdateOne
Where appends a list predicates to the ReceiveAddressUpdate builder.
type ReceiveAddressUpsert ¶
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 ¶
func (u *ReceiveAddressUpsert) ClearSalt() *ReceiveAddressUpsert
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 ¶
func (u *ReceiveAddressUpsert) SetAddress(v string) *ReceiveAddressUpsert
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 ¶
func (u *ReceiveAddressUpsert) SetLastUsed(v time.Time) *ReceiveAddressUpsert
SetLastUsed sets the "last_used" field.
func (*ReceiveAddressUpsert) SetSalt ¶
func (u *ReceiveAddressUpsert) SetSalt(v []byte) *ReceiveAddressUpsert
SetSalt sets the "salt" field.
func (*ReceiveAddressUpsert) SetStatus ¶
func (u *ReceiveAddressUpsert) SetStatus(v receiveaddress.Status) *ReceiveAddressUpsert
SetStatus sets the "status" field.
func (*ReceiveAddressUpsert) SetTxHash ¶
func (u *ReceiveAddressUpsert) SetTxHash(v string) *ReceiveAddressUpsert
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 ¶
func (u *ReceiveAddressUpsertBulk) ClearLastUsed() *ReceiveAddressUpsertBulk
ClearLastUsed clears the value of the "last_used" field.
func (*ReceiveAddressUpsertBulk) ClearSalt ¶
func (u *ReceiveAddressUpsertBulk) ClearSalt() *ReceiveAddressUpsertBulk
ClearSalt clears the value of the "salt" field.
func (*ReceiveAddressUpsertBulk) ClearTxHash ¶
func (u *ReceiveAddressUpsertBulk) ClearTxHash() *ReceiveAddressUpsertBulk
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 ¶
func (u *ReceiveAddressUpsertBulk) DoNothing() *ReceiveAddressUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ReceiveAddressUpsertBulk) Exec ¶
func (u *ReceiveAddressUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ReceiveAddressUpsertBulk) ExecX ¶
func (u *ReceiveAddressUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ReceiveAddressUpsertBulk) Ignore ¶
func (u *ReceiveAddressUpsertBulk) Ignore() *ReceiveAddressUpsertBulk
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 ¶
func (u *ReceiveAddressUpsertBulk) SetAddress(v string) *ReceiveAddressUpsertBulk
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 ¶
func (u *ReceiveAddressUpsertBulk) SetLastUsed(v time.Time) *ReceiveAddressUpsertBulk
SetLastUsed sets the "last_used" field.
func (*ReceiveAddressUpsertBulk) SetSalt ¶
func (u *ReceiveAddressUpsertBulk) SetSalt(v []byte) *ReceiveAddressUpsertBulk
SetSalt sets the "salt" field.
func (*ReceiveAddressUpsertBulk) SetStatus ¶
func (u *ReceiveAddressUpsertBulk) SetStatus(v receiveaddress.Status) *ReceiveAddressUpsertBulk
SetStatus sets the "status" field.
func (*ReceiveAddressUpsertBulk) SetTxHash ¶
func (u *ReceiveAddressUpsertBulk) SetTxHash(v string) *ReceiveAddressUpsertBulk
SetTxHash sets the "tx_hash" field.
func (*ReceiveAddressUpsertBulk) SetUpdatedAt ¶
func (u *ReceiveAddressUpsertBulk) SetUpdatedAt(v time.Time) *ReceiveAddressUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*ReceiveAddressUpsertBulk) SetValidUntil ¶
func (u *ReceiveAddressUpsertBulk) SetValidUntil(v time.Time) *ReceiveAddressUpsertBulk
SetValidUntil sets the "valid_until" field.
func (*ReceiveAddressUpsertBulk) Update ¶
func (u *ReceiveAddressUpsertBulk) Update(set func(*ReceiveAddressUpsert)) *ReceiveAddressUpsertBulk
Update allows overriding fields `UPDATE` values. See the ReceiveAddressCreateBulk.OnConflict documentation for more info.
func (*ReceiveAddressUpsertBulk) UpdateAddress ¶
func (u *ReceiveAddressUpsertBulk) UpdateAddress() *ReceiveAddressUpsertBulk
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 ¶
func (u *ReceiveAddressUpsertBulk) UpdateLastUsed() *ReceiveAddressUpsertBulk
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 ¶
func (u *ReceiveAddressUpsertBulk) UpdateSalt() *ReceiveAddressUpsertBulk
UpdateSalt sets the "salt" field to the value that was provided on create.
func (*ReceiveAddressUpsertBulk) UpdateStatus ¶
func (u *ReceiveAddressUpsertBulk) UpdateStatus() *ReceiveAddressUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ReceiveAddressUpsertBulk) UpdateTxHash ¶
func (u *ReceiveAddressUpsertBulk) UpdateTxHash() *ReceiveAddressUpsertBulk
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 ¶
func (u *ReceiveAddressUpsertOne) ClearLastUsed() *ReceiveAddressUpsertOne
ClearLastUsed clears the value of the "last_used" field.
func (*ReceiveAddressUpsertOne) ClearSalt ¶
func (u *ReceiveAddressUpsertOne) ClearSalt() *ReceiveAddressUpsertOne
ClearSalt clears the value of the "salt" field.
func (*ReceiveAddressUpsertOne) ClearTxHash ¶
func (u *ReceiveAddressUpsertOne) ClearTxHash() *ReceiveAddressUpsertOne
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 ¶
func (u *ReceiveAddressUpsertOne) DoNothing() *ReceiveAddressUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ReceiveAddressUpsertOne) Exec ¶
func (u *ReceiveAddressUpsertOne) Exec(ctx context.Context) error
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 ¶
func (u *ReceiveAddressUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*ReceiveAddressUpsertOne) Ignore ¶
func (u *ReceiveAddressUpsertOne) Ignore() *ReceiveAddressUpsertOne
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 ¶
func (u *ReceiveAddressUpsertOne) SetAddress(v string) *ReceiveAddressUpsertOne
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 ¶
func (u *ReceiveAddressUpsertOne) SetLastUsed(v time.Time) *ReceiveAddressUpsertOne
SetLastUsed sets the "last_used" field.
func (*ReceiveAddressUpsertOne) SetSalt ¶
func (u *ReceiveAddressUpsertOne) SetSalt(v []byte) *ReceiveAddressUpsertOne
SetSalt sets the "salt" field.
func (*ReceiveAddressUpsertOne) SetStatus ¶
func (u *ReceiveAddressUpsertOne) SetStatus(v receiveaddress.Status) *ReceiveAddressUpsertOne
SetStatus sets the "status" field.
func (*ReceiveAddressUpsertOne) SetTxHash ¶
func (u *ReceiveAddressUpsertOne) SetTxHash(v string) *ReceiveAddressUpsertOne
SetTxHash sets the "tx_hash" field.
func (*ReceiveAddressUpsertOne) SetUpdatedAt ¶
func (u *ReceiveAddressUpsertOne) SetUpdatedAt(v time.Time) *ReceiveAddressUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*ReceiveAddressUpsertOne) SetValidUntil ¶
func (u *ReceiveAddressUpsertOne) SetValidUntil(v time.Time) *ReceiveAddressUpsertOne
SetValidUntil sets the "valid_until" field.
func (*ReceiveAddressUpsertOne) Update ¶
func (u *ReceiveAddressUpsertOne) Update(set func(*ReceiveAddressUpsert)) *ReceiveAddressUpsertOne
Update allows overriding fields `UPDATE` values. See the ReceiveAddressCreate.OnConflict documentation for more info.
func (*ReceiveAddressUpsertOne) UpdateAddress ¶
func (u *ReceiveAddressUpsertOne) UpdateAddress() *ReceiveAddressUpsertOne
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 ¶
func (u *ReceiveAddressUpsertOne) UpdateSalt() *ReceiveAddressUpsertOne
UpdateSalt sets the "salt" field to the value that was provided on create.
func (*ReceiveAddressUpsertOne) UpdateStatus ¶
func (u *ReceiveAddressUpsertOne) UpdateStatus() *ReceiveAddressUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*ReceiveAddressUpsertOne) UpdateTxHash ¶
func (u *ReceiveAddressUpsertOne) UpdateTxHash() *ReceiveAddressUpsertOne
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 ¶
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.
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 ¶
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 ¶
func (sot *SenderOrderToken) Update() *SenderOrderTokenUpdateOne
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.
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 ¶
func (c *SenderOrderTokenClient) Create() *SenderOrderTokenCreate
Create returns a builder for creating a SenderOrderToken entity.
func (*SenderOrderTokenClient) CreateBulk ¶
func (c *SenderOrderTokenClient) CreateBulk(builders ...*SenderOrderTokenCreate) *SenderOrderTokenCreateBulk
CreateBulk returns a builder for creating a bulk of SenderOrderToken entities.
func (*SenderOrderTokenClient) Delete ¶
func (c *SenderOrderTokenClient) Delete() *SenderOrderTokenDelete
Delete returns a delete builder for SenderOrderToken.
func (*SenderOrderTokenClient) DeleteOne ¶
func (c *SenderOrderTokenClient) DeleteOne(sot *SenderOrderToken) *SenderOrderTokenDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*SenderOrderTokenClient) DeleteOneID ¶
func (c *SenderOrderTokenClient) DeleteOneID(id int) *SenderOrderTokenDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*SenderOrderTokenClient) Get ¶
func (c *SenderOrderTokenClient) Get(ctx context.Context, id int) (*SenderOrderToken, error)
Get returns a SenderOrderToken entity by its id.
func (*SenderOrderTokenClient) GetX ¶
func (c *SenderOrderTokenClient) GetX(ctx context.Context, id int) *SenderOrderToken
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 ¶
func (c *SenderOrderTokenClient) Query() *SenderOrderTokenQuery
Query returns a query builder for SenderOrderToken.
func (*SenderOrderTokenClient) QuerySender ¶
func (c *SenderOrderTokenClient) QuerySender(sot *SenderOrderToken) *SenderProfileQuery
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 ¶
func (c *SenderOrderTokenClient) Update() *SenderOrderTokenUpdate
Update returns an update builder for SenderOrderToken.
func (*SenderOrderTokenClient) UpdateOne ¶
func (c *SenderOrderTokenClient) UpdateOne(sot *SenderOrderToken) *SenderOrderTokenUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SenderOrderTokenClient) UpdateOneID ¶
func (c *SenderOrderTokenClient) UpdateOneID(id int) *SenderOrderTokenUpdateOne
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 ¶
func (sotc *SenderOrderTokenCreate) Mutation() *SenderOrderTokenMutation
Mutation returns the SenderOrderTokenMutation object of the builder.
func (*SenderOrderTokenCreate) OnConflict ¶
func (sotc *SenderOrderTokenCreate) OnConflict(opts ...sql.ConflictOption) *SenderOrderTokenUpsertOne
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 ¶
func (sotc *SenderOrderTokenCreate) Save(ctx context.Context) (*SenderOrderToken, error)
Save creates the SenderOrderToken in the database.
func (*SenderOrderTokenCreate) SaveX ¶
func (sotc *SenderOrderTokenCreate) SaveX(ctx context.Context) *SenderOrderToken
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 ¶
func (sotc *SenderOrderTokenCreate) SetFeePercent(d decimal.Decimal) *SenderOrderTokenCreate
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 ¶
func (sotc *SenderOrderTokenCreate) SetSender(s *SenderProfile) *SenderOrderTokenCreate
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 ¶
func (sotc *SenderOrderTokenCreate) SetToken(t *Token) *SenderOrderTokenCreate
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 ¶
func (sotcb *SenderOrderTokenCreateBulk) Exec(ctx context.Context) error
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 ¶
func (sotcb *SenderOrderTokenCreateBulk) OnConflict(opts ...sql.ConflictOption) *SenderOrderTokenUpsertBulk
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 ¶
func (sotcb *SenderOrderTokenCreateBulk) Save(ctx context.Context) ([]*SenderOrderToken, error)
Save creates the SenderOrderToken entities in the database.
func (*SenderOrderTokenCreateBulk) SaveX ¶
func (sotcb *SenderOrderTokenCreateBulk) SaveX(ctx context.Context) []*SenderOrderToken
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 ¶
func (sotd *SenderOrderTokenDelete) Where(ps ...predicate.SenderOrderToken) *SenderOrderTokenDelete
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 ¶
func (sotdo *SenderOrderTokenDeleteOne) Exec(ctx context.Context) error
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 ¶
func (sotdo *SenderOrderTokenDeleteOne) Where(ps ...predicate.SenderOrderToken) *SenderOrderTokenDeleteOne
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 ¶
func (sotgb *SenderOrderTokenGroupBy) Aggregate(fns ...AggregateFunc) *SenderOrderTokenGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SenderOrderTokenGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SenderOrderTokenGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SenderOrderTokenGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SenderOrderTokenGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SenderOrderTokenGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*SenderOrderTokenGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SenderOrderTokenGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (m *SenderOrderTokenMutation) 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 (*SenderOrderTokenMutation) OldCreatedAt ¶
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 ¶
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 ¶
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 ¶
func (m *SenderOrderTokenMutation) Where(ps ...predicate.SenderOrderToken)
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 ¶
func (sotq *SenderOrderTokenQuery) Aggregate(fns ...AggregateFunc) *SenderOrderTokenSelect
Aggregate returns a SenderOrderTokenSelect configured with the given aggregations.
func (*SenderOrderTokenQuery) All ¶
func (sotq *SenderOrderTokenQuery) All(ctx context.Context) ([]*SenderOrderToken, error)
All executes the query and returns a list of SenderOrderTokens.
func (*SenderOrderTokenQuery) AllX ¶
func (sotq *SenderOrderTokenQuery) AllX(ctx context.Context) []*SenderOrderToken
AllX is like All, but panics if an error occurs.
func (*SenderOrderTokenQuery) Clone ¶
func (sotq *SenderOrderTokenQuery) Clone() *SenderOrderTokenQuery
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 ¶
func (sotq *SenderOrderTokenQuery) First(ctx context.Context) (*SenderOrderToken, error)
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 ¶
func (sotq *SenderOrderTokenQuery) FirstX(ctx context.Context) *SenderOrderToken
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 ¶
func (sotq *SenderOrderTokenQuery) Only(ctx context.Context) (*SenderOrderToken, error)
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 ¶
func (sotq *SenderOrderTokenQuery) OnlyX(ctx context.Context) *SenderOrderToken
OnlyX is like Only, but panics if an error occurs.
func (*SenderOrderTokenQuery) Order ¶
func (sotq *SenderOrderTokenQuery) Order(o ...senderordertoken.OrderOption) *SenderOrderTokenQuery
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 ¶
func (sotq *SenderOrderTokenQuery) Where(ps ...predicate.SenderOrderToken) *SenderOrderTokenQuery
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 ¶
func (sots *SenderOrderTokenSelect) Aggregate(fns ...AggregateFunc) *SenderOrderTokenSelect
Aggregate adds the given aggregation functions to the selector query.
func (*SenderOrderTokenSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SenderOrderTokenSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SenderOrderTokenSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SenderOrderTokenSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SenderOrderTokenSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*SenderOrderTokenSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SenderOrderTokenSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SenderOrderTokenUpdate ¶
type SenderOrderTokenUpdate struct {
// contains filtered or unexported fields
}
SenderOrderTokenUpdate is the builder for updating SenderOrderToken entities.
func (*SenderOrderTokenUpdate) AddFeePercent ¶
func (sotu *SenderOrderTokenUpdate) AddFeePercent(d decimal.Decimal) *SenderOrderTokenUpdate
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 ¶
func (sotu *SenderOrderTokenUpdate) Mutation() *SenderOrderTokenMutation
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 ¶
func (sotu *SenderOrderTokenUpdate) SetFeePercent(d decimal.Decimal) *SenderOrderTokenUpdate
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 ¶
func (sotu *SenderOrderTokenUpdate) SetSender(s *SenderProfile) *SenderOrderTokenUpdate
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 ¶
func (sotu *SenderOrderTokenUpdate) SetToken(t *Token) *SenderOrderTokenUpdate
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 ¶
func (sotu *SenderOrderTokenUpdate) Where(ps ...predicate.SenderOrderToken) *SenderOrderTokenUpdate
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 ¶
func (sotuo *SenderOrderTokenUpdateOne) AddFeePercent(d decimal.Decimal) *SenderOrderTokenUpdateOne
AddFeePercent adds d to the "fee_percent" field.
func (*SenderOrderTokenUpdateOne) ClearSender ¶
func (sotuo *SenderOrderTokenUpdateOne) ClearSender() *SenderOrderTokenUpdateOne
ClearSender clears the "sender" edge to the SenderProfile entity.
func (*SenderOrderTokenUpdateOne) ClearToken ¶
func (sotuo *SenderOrderTokenUpdateOne) ClearToken() *SenderOrderTokenUpdateOne
ClearToken clears the "token" edge to the Token entity.
func (*SenderOrderTokenUpdateOne) Exec ¶
func (sotuo *SenderOrderTokenUpdateOne) Exec(ctx context.Context) error
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 ¶
func (sotuo *SenderOrderTokenUpdateOne) Mutation() *SenderOrderTokenMutation
Mutation returns the SenderOrderTokenMutation object of the builder.
func (*SenderOrderTokenUpdateOne) Save ¶
func (sotuo *SenderOrderTokenUpdateOne) Save(ctx context.Context) (*SenderOrderToken, error)
Save executes the query and returns the updated SenderOrderToken entity.
func (*SenderOrderTokenUpdateOne) SaveX ¶
func (sotuo *SenderOrderTokenUpdateOne) SaveX(ctx context.Context) *SenderOrderToken
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 ¶
func (sotuo *SenderOrderTokenUpdateOne) SetFeeAddress(s string) *SenderOrderTokenUpdateOne
SetFeeAddress sets the "fee_address" field.
func (*SenderOrderTokenUpdateOne) SetFeePercent ¶
func (sotuo *SenderOrderTokenUpdateOne) SetFeePercent(d decimal.Decimal) *SenderOrderTokenUpdateOne
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 ¶
func (sotuo *SenderOrderTokenUpdateOne) SetSender(s *SenderProfile) *SenderOrderTokenUpdateOne
SetSender sets the "sender" edge to the SenderProfile entity.
func (*SenderOrderTokenUpdateOne) SetSenderID ¶
func (sotuo *SenderOrderTokenUpdateOne) SetSenderID(id uuid.UUID) *SenderOrderTokenUpdateOne
SetSenderID sets the "sender" edge to the SenderProfile entity by ID.
func (*SenderOrderTokenUpdateOne) SetToken ¶
func (sotuo *SenderOrderTokenUpdateOne) SetToken(t *Token) *SenderOrderTokenUpdateOne
SetToken sets the "token" edge to the Token entity.
func (*SenderOrderTokenUpdateOne) SetTokenID ¶
func (sotuo *SenderOrderTokenUpdateOne) SetTokenID(id int) *SenderOrderTokenUpdateOne
SetTokenID sets the "token" edge to the Token entity by ID.
func (*SenderOrderTokenUpdateOne) SetUpdatedAt ¶
func (sotuo *SenderOrderTokenUpdateOne) SetUpdatedAt(t time.Time) *SenderOrderTokenUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*SenderOrderTokenUpdateOne) Where ¶
func (sotuo *SenderOrderTokenUpdateOne) Where(ps ...predicate.SenderOrderToken) *SenderOrderTokenUpdateOne
Where appends a list predicates to the SenderOrderTokenUpdate builder.
type SenderOrderTokenUpsert ¶
SenderOrderTokenUpsert is the "OnConflict" setter.
func (*SenderOrderTokenUpsert) AddFeePercent ¶
func (u *SenderOrderTokenUpsert) AddFeePercent(v decimal.Decimal) *SenderOrderTokenUpsert
AddFeePercent adds v to the "fee_percent" field.
func (*SenderOrderTokenUpsert) SetFeeAddress ¶
func (u *SenderOrderTokenUpsert) SetFeeAddress(v string) *SenderOrderTokenUpsert
SetFeeAddress sets the "fee_address" field.
func (*SenderOrderTokenUpsert) SetFeePercent ¶
func (u *SenderOrderTokenUpsert) SetFeePercent(v decimal.Decimal) *SenderOrderTokenUpsert
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 ¶
func (u *SenderOrderTokenUpsert) SetUpdatedAt(v time.Time) *SenderOrderTokenUpsert
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 ¶
func (u *SenderOrderTokenUpsertBulk) AddFeePercent(v decimal.Decimal) *SenderOrderTokenUpsertBulk
AddFeePercent adds v to the "fee_percent" field.
func (*SenderOrderTokenUpsertBulk) DoNothing ¶
func (u *SenderOrderTokenUpsertBulk) DoNothing() *SenderOrderTokenUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SenderOrderTokenUpsertBulk) Exec ¶
func (u *SenderOrderTokenUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SenderOrderTokenUpsertBulk) ExecX ¶
func (u *SenderOrderTokenUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SenderOrderTokenUpsertBulk) Ignore ¶
func (u *SenderOrderTokenUpsertBulk) Ignore() *SenderOrderTokenUpsertBulk
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 ¶
func (u *SenderOrderTokenUpsertBulk) SetFeeAddress(v string) *SenderOrderTokenUpsertBulk
SetFeeAddress sets the "fee_address" field.
func (*SenderOrderTokenUpsertBulk) SetFeePercent ¶
func (u *SenderOrderTokenUpsertBulk) SetFeePercent(v decimal.Decimal) *SenderOrderTokenUpsertBulk
SetFeePercent sets the "fee_percent" field.
func (*SenderOrderTokenUpsertBulk) SetRefundAddress ¶
func (u *SenderOrderTokenUpsertBulk) SetRefundAddress(v string) *SenderOrderTokenUpsertBulk
SetRefundAddress sets the "refund_address" field.
func (*SenderOrderTokenUpsertBulk) SetUpdatedAt ¶
func (u *SenderOrderTokenUpsertBulk) SetUpdatedAt(v time.Time) *SenderOrderTokenUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*SenderOrderTokenUpsertBulk) Update ¶
func (u *SenderOrderTokenUpsertBulk) Update(set func(*SenderOrderTokenUpsert)) *SenderOrderTokenUpsertBulk
Update allows overriding fields `UPDATE` values. See the SenderOrderTokenCreateBulk.OnConflict documentation for more info.
func (*SenderOrderTokenUpsertBulk) UpdateFeeAddress ¶
func (u *SenderOrderTokenUpsertBulk) UpdateFeeAddress() *SenderOrderTokenUpsertBulk
UpdateFeeAddress sets the "fee_address" field to the value that was provided on create.
func (*SenderOrderTokenUpsertBulk) UpdateFeePercent ¶
func (u *SenderOrderTokenUpsertBulk) UpdateFeePercent() *SenderOrderTokenUpsertBulk
UpdateFeePercent sets the "fee_percent" field to the value that was provided on create.
func (*SenderOrderTokenUpsertBulk) UpdateNewValues ¶
func (u *SenderOrderTokenUpsertBulk) UpdateNewValues() *SenderOrderTokenUpsertBulk
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 ¶
func (u *SenderOrderTokenUpsertBulk) UpdateUpdatedAt() *SenderOrderTokenUpsertBulk
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 ¶
func (u *SenderOrderTokenUpsertOne) AddFeePercent(v decimal.Decimal) *SenderOrderTokenUpsertOne
AddFeePercent adds v to the "fee_percent" field.
func (*SenderOrderTokenUpsertOne) DoNothing ¶
func (u *SenderOrderTokenUpsertOne) DoNothing() *SenderOrderTokenUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SenderOrderTokenUpsertOne) Exec ¶
func (u *SenderOrderTokenUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*SenderOrderTokenUpsertOne) ExecX ¶
func (u *SenderOrderTokenUpsertOne) ExecX(ctx context.Context)
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 ¶
func (u *SenderOrderTokenUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*SenderOrderTokenUpsertOne) Ignore ¶
func (u *SenderOrderTokenUpsertOne) Ignore() *SenderOrderTokenUpsertOne
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 ¶
func (u *SenderOrderTokenUpsertOne) SetFeeAddress(v string) *SenderOrderTokenUpsertOne
SetFeeAddress sets the "fee_address" field.
func (*SenderOrderTokenUpsertOne) SetFeePercent ¶
func (u *SenderOrderTokenUpsertOne) SetFeePercent(v decimal.Decimal) *SenderOrderTokenUpsertOne
SetFeePercent sets the "fee_percent" field.
func (*SenderOrderTokenUpsertOne) SetRefundAddress ¶
func (u *SenderOrderTokenUpsertOne) SetRefundAddress(v string) *SenderOrderTokenUpsertOne
SetRefundAddress sets the "refund_address" field.
func (*SenderOrderTokenUpsertOne) SetUpdatedAt ¶
func (u *SenderOrderTokenUpsertOne) SetUpdatedAt(v time.Time) *SenderOrderTokenUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*SenderOrderTokenUpsertOne) Update ¶
func (u *SenderOrderTokenUpsertOne) Update(set func(*SenderOrderTokenUpsert)) *SenderOrderTokenUpsertOne
Update allows overriding fields `UPDATE` values. See the SenderOrderTokenCreate.OnConflict documentation for more info.
func (*SenderOrderTokenUpsertOne) UpdateFeeAddress ¶
func (u *SenderOrderTokenUpsertOne) UpdateFeeAddress() *SenderOrderTokenUpsertOne
UpdateFeeAddress sets the "fee_address" field to the value that was provided on create.
func (*SenderOrderTokenUpsertOne) UpdateFeePercent ¶
func (u *SenderOrderTokenUpsertOne) UpdateFeePercent() *SenderOrderTokenUpsertOne
UpdateFeePercent sets the "fee_percent" field to the value that was provided on create.
func (*SenderOrderTokenUpsertOne) UpdateNewValues ¶
func (u *SenderOrderTokenUpsertOne) UpdateNewValues() *SenderOrderTokenUpsertOne
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 ¶
func (u *SenderOrderTokenUpsertOne) UpdateUpdatedAt() *SenderOrderTokenUpsertOne
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.
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 ¶
func (c *SenderProfileClient) Create() *SenderProfileCreate
Create returns a builder for creating a SenderProfile entity.
func (*SenderProfileClient) CreateBulk ¶
func (c *SenderProfileClient) CreateBulk(builders ...*SenderProfileCreate) *SenderProfileCreateBulk
CreateBulk returns a builder for creating a bulk of SenderProfile entities.
func (*SenderProfileClient) Delete ¶
func (c *SenderProfileClient) Delete() *SenderProfileDelete
Delete returns a delete builder for SenderProfile.
func (*SenderProfileClient) DeleteOne ¶
func (c *SenderProfileClient) DeleteOne(sp *SenderProfile) *SenderProfileDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*SenderProfileClient) DeleteOneID ¶
func (c *SenderProfileClient) DeleteOneID(id uuid.UUID) *SenderProfileDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*SenderProfileClient) Get ¶
func (c *SenderProfileClient) Get(ctx context.Context, id uuid.UUID) (*SenderProfile, error)
Get returns a SenderProfile entity by its id.
func (*SenderProfileClient) GetX ¶
func (c *SenderProfileClient) GetX(ctx context.Context, id uuid.UUID) *SenderProfile
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 ¶
func (c *SenderProfileClient) Query() *SenderProfileQuery
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 ¶
func (c *SenderProfileClient) Update() *SenderProfileUpdate
Update returns an update builder for SenderProfile.
func (*SenderProfileClient) UpdateOne ¶
func (c *SenderProfileClient) UpdateOne(sp *SenderProfile) *SenderProfileUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SenderProfileClient) UpdateOneID ¶
func (c *SenderProfileClient) UpdateOneID(id uuid.UUID) *SenderProfileUpdateOne
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 ¶
func (spc *SenderProfileCreate) OnConflict(opts ...sql.ConflictOption) *SenderProfileUpsertOne
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 ¶
func (spc *SenderProfileCreate) Save(ctx context.Context) (*SenderProfile, error)
Save creates the SenderProfile in the database.
func (*SenderProfileCreate) SaveX ¶
func (spc *SenderProfileCreate) SaveX(ctx context.Context) *SenderProfile
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 ¶
func (spc *SenderProfileCreate) SetID(u uuid.UUID) *SenderProfileCreate
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 ¶
func (spcb *SenderProfileCreateBulk) OnConflict(opts ...sql.ConflictOption) *SenderProfileUpsertBulk
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 ¶
func (spcb *SenderProfileCreateBulk) Save(ctx context.Context) ([]*SenderProfile, error)
Save creates the SenderProfile entities in the database.
func (*SenderProfileCreateBulk) SaveX ¶
func (spcb *SenderProfileCreateBulk) SaveX(ctx context.Context) []*SenderProfile
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 ¶
func (spd *SenderProfileDelete) Where(ps ...predicate.SenderProfile) *SenderProfileDelete
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 ¶
func (spdo *SenderProfileDeleteOne) Where(ps ...predicate.SenderProfile) *SenderProfileDeleteOne
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SenderProfileGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SenderProfileGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SenderProfileGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SenderProfileGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SenderProfileGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
func (m *SenderProfileMutation) Where(ps ...predicate.SenderProfile)
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 ¶
func (spq *SenderProfileQuery) All(ctx context.Context) ([]*SenderProfile, error)
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 ¶
func (spq *SenderProfileQuery) First(ctx context.Context) (*SenderProfile, error)
First returns the first SenderProfile entity from the query. Returns a *NotFoundError when no SenderProfile was found.
func (*SenderProfileQuery) FirstID ¶
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) 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 ¶
func (spq *SenderProfileQuery) Only(ctx context.Context) (*SenderProfile, error)
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 ¶
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 ¶
func (spq *SenderProfileQuery) OnlyX(ctx context.Context) *SenderProfile
OnlyX is like Only, but panics if an error occurs.
func (*SenderProfileQuery) Order ¶
func (spq *SenderProfileQuery) Order(o ...senderprofile.OrderOption) *SenderProfileQuery
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 ¶
func (spq *SenderProfileQuery) Where(ps ...predicate.SenderProfile) *SenderProfileQuery
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SenderProfileSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SenderProfileSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SenderProfileSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SenderProfileSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SenderProfileSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (spu *SenderProfileUpdate) Where(ps ...predicate.SenderProfile) *SenderProfileUpdate
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 ¶
func (spuo *SenderProfileUpdateOne) Mutation() *SenderProfileMutation
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 ¶
func (spuo *SenderProfileUpdateOne) Save(ctx context.Context) (*SenderProfile, error)
Save executes the query and returns the updated SenderProfile entity.
func (*SenderProfileUpdateOne) SaveX ¶
func (spuo *SenderProfileUpdateOne) SaveX(ctx context.Context) *SenderProfile
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 ¶
func (spuo *SenderProfileUpdateOne) SetAPIKey(a *APIKey) *SenderProfileUpdateOne
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 ¶
func (spuo *SenderProfileUpdateOne) Where(ps ...predicate.SenderProfile) *SenderProfileUpdateOne
Where appends a list predicates to the SenderProfileUpdate builder.
type SenderProfileUpsert ¶
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 ¶
func (u *SenderProfileUpsertBulk) DoNothing() *SenderProfileUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SenderProfileUpsertBulk) Exec ¶
func (u *SenderProfileUpsertBulk) Exec(ctx context.Context) error
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 ¶
func (u *SenderProfileUpsertBulk) Ignore() *SenderProfileUpsertBulk
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 ¶
func (u *SenderProfileUpsertBulk) SetIsActive(v bool) *SenderProfileUpsertBulk
SetIsActive sets the "is_active" field.
func (*SenderProfileUpsertBulk) SetIsPartner ¶
func (u *SenderProfileUpsertBulk) SetIsPartner(v bool) *SenderProfileUpsertBulk
SetIsPartner sets the "is_partner" field.
func (*SenderProfileUpsertBulk) SetProviderID ¶
func (u *SenderProfileUpsertBulk) SetProviderID(v string) *SenderProfileUpsertBulk
SetProviderID sets the "provider_id" field.
func (*SenderProfileUpsertBulk) SetUpdatedAt ¶
func (u *SenderProfileUpsertBulk) SetUpdatedAt(v time.Time) *SenderProfileUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*SenderProfileUpsertBulk) SetWebhookURL ¶
func (u *SenderProfileUpsertBulk) SetWebhookURL(v string) *SenderProfileUpsertBulk
SetWebhookURL sets the "webhook_url" field.
func (*SenderProfileUpsertBulk) Update ¶
func (u *SenderProfileUpsertBulk) Update(set func(*SenderProfileUpsert)) *SenderProfileUpsertBulk
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 ¶
func (u *SenderProfileUpsertOne) DoNothing() *SenderProfileUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SenderProfileUpsertOne) Exec ¶
func (u *SenderProfileUpsertOne) Exec(ctx context.Context) error
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 ¶
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*SenderProfileUpsertOne) IDX ¶
func (u *SenderProfileUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*SenderProfileUpsertOne) Ignore ¶
func (u *SenderProfileUpsertOne) Ignore() *SenderProfileUpsertOne
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 ¶
func (u *SenderProfileUpsertOne) SetIsActive(v bool) *SenderProfileUpsertOne
SetIsActive sets the "is_active" field.
func (*SenderProfileUpsertOne) SetIsPartner ¶
func (u *SenderProfileUpsertOne) SetIsPartner(v bool) *SenderProfileUpsertOne
SetIsPartner sets the "is_partner" field.
func (*SenderProfileUpsertOne) SetProviderID ¶
func (u *SenderProfileUpsertOne) SetProviderID(v string) *SenderProfileUpsertOne
SetProviderID sets the "provider_id" field.
func (*SenderProfileUpsertOne) SetUpdatedAt ¶
func (u *SenderProfileUpsertOne) SetUpdatedAt(v time.Time) *SenderProfileUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*SenderProfileUpsertOne) SetWebhookURL ¶
func (u *SenderProfileUpsertOne) SetWebhookURL(v string) *SenderProfileUpsertOne
SetWebhookURL sets the "webhook_url" field.
func (*SenderProfileUpsertOne) Update ¶
func (u *SenderProfileUpsertOne) Update(set func(*SenderProfileUpsert)) *SenderProfileUpsertOne
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) Unwrap ¶
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.
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) GetX ¶
func (c *TokenClient) GetX(ctx context.Context, id int) *Token
GetX is like Get, but panics if an error occurs.
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)
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TokenGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TokenGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TokenGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TokenGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TokenGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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) 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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TokenSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TokenSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TokenSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TokenSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TokenSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 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 ¶
func (tl *TransactionLog) Update() *TransactionLogUpdateOne
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.
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 ¶
func (c *TransactionLogClient) Create() *TransactionLogCreate
Create returns a builder for creating a TransactionLog entity.
func (*TransactionLogClient) CreateBulk ¶
func (c *TransactionLogClient) CreateBulk(builders ...*TransactionLogCreate) *TransactionLogCreateBulk
CreateBulk returns a builder for creating a bulk of TransactionLog entities.
func (*TransactionLogClient) Delete ¶
func (c *TransactionLogClient) Delete() *TransactionLogDelete
Delete returns a delete builder for TransactionLog.
func (*TransactionLogClient) DeleteOne ¶
func (c *TransactionLogClient) DeleteOne(tl *TransactionLog) *TransactionLogDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*TransactionLogClient) DeleteOneID ¶
func (c *TransactionLogClient) DeleteOneID(id uuid.UUID) *TransactionLogDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*TransactionLogClient) Get ¶
func (c *TransactionLogClient) Get(ctx context.Context, id uuid.UUID) (*TransactionLog, error)
Get returns a TransactionLog entity by its id.
func (*TransactionLogClient) GetX ¶
func (c *TransactionLogClient) GetX(ctx context.Context, id uuid.UUID) *TransactionLog
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 ¶
func (c *TransactionLogClient) Query() *TransactionLogQuery
Query returns a query builder for TransactionLog.
func (*TransactionLogClient) Update ¶
func (c *TransactionLogClient) Update() *TransactionLogUpdate
Update returns an update builder for TransactionLog.
func (*TransactionLogClient) UpdateOne ¶
func (c *TransactionLogClient) UpdateOne(tl *TransactionLog) *TransactionLogUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TransactionLogClient) UpdateOneID ¶
func (c *TransactionLogClient) UpdateOneID(id uuid.UUID) *TransactionLogUpdateOne
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 ¶
func (tlc *TransactionLogCreate) Mutation() *TransactionLogMutation
Mutation returns the TransactionLogMutation object of the builder.
func (*TransactionLogCreate) OnConflict ¶
func (tlc *TransactionLogCreate) OnConflict(opts ...sql.ConflictOption) *TransactionLogUpsertOne
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 ¶
func (tlc *TransactionLogCreate) Save(ctx context.Context) (*TransactionLog, error)
Save creates the TransactionLog in the database.
func (*TransactionLogCreate) SaveX ¶
func (tlc *TransactionLogCreate) SaveX(ctx context.Context) *TransactionLog
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 ¶
func (tlc *TransactionLogCreate) SetID(u uuid.UUID) *TransactionLogCreate
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 ¶
func (tlc *TransactionLogCreate) SetStatus(t transactionlog.Status) *TransactionLogCreate
SetStatus sets the "status" field.
func (*TransactionLogCreate) SetTxHash ¶
func (tlc *TransactionLogCreate) SetTxHash(s string) *TransactionLogCreate
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 ¶
func (tlcb *TransactionLogCreateBulk) Exec(ctx context.Context) error
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 ¶
func (tlcb *TransactionLogCreateBulk) OnConflict(opts ...sql.ConflictOption) *TransactionLogUpsertBulk
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 ¶
func (tlcb *TransactionLogCreateBulk) Save(ctx context.Context) ([]*TransactionLog, error)
Save creates the TransactionLog entities in the database.
func (*TransactionLogCreateBulk) SaveX ¶
func (tlcb *TransactionLogCreateBulk) SaveX(ctx context.Context) []*TransactionLog
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 ¶
func (tld *TransactionLogDelete) Where(ps ...predicate.TransactionLog) *TransactionLogDelete
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 ¶
func (tldo *TransactionLogDeleteOne) Where(ps ...predicate.TransactionLog) *TransactionLogDeleteOne
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 ¶
func (tlgb *TransactionLogGroupBy) Aggregate(fns ...AggregateFunc) *TransactionLogGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TransactionLogGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TransactionLogGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TransactionLogGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TransactionLogGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TransactionLogGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*TransactionLogGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TransactionLogGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
func (m *TransactionLogMutation) SetStatus(t transactionlog.Status)
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 ¶
func (m *TransactionLogMutation) Where(ps ...predicate.TransactionLog)
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 ¶
func (tlq *TransactionLogQuery) All(ctx context.Context) ([]*TransactionLog, error)
All executes the query and returns a list of TransactionLogs.
func (*TransactionLogQuery) AllX ¶
func (tlq *TransactionLogQuery) AllX(ctx context.Context) []*TransactionLog
AllX is like All, but panics if an error occurs.
func (*TransactionLogQuery) Clone ¶
func (tlq *TransactionLogQuery) Clone() *TransactionLogQuery
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 ¶
func (tlq *TransactionLogQuery) First(ctx context.Context) (*TransactionLog, error)
First returns the first TransactionLog entity from the query. Returns a *NotFoundError when no TransactionLog was found.
func (*TransactionLogQuery) FirstID ¶
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 ¶
func (tlq *TransactionLogQuery) FirstX(ctx context.Context) *TransactionLog
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) 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 ¶
func (tlq *TransactionLogQuery) Only(ctx context.Context) (*TransactionLog, error)
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 ¶
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 ¶
func (tlq *TransactionLogQuery) OnlyX(ctx context.Context) *TransactionLog
OnlyX is like Only, but panics if an error occurs.
func (*TransactionLogQuery) Order ¶
func (tlq *TransactionLogQuery) Order(o ...transactionlog.OrderOption) *TransactionLogQuery
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 ¶
func (tlq *TransactionLogQuery) Where(ps ...predicate.TransactionLog) *TransactionLogQuery
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 ¶
func (tls *TransactionLogSelect) Aggregate(fns ...AggregateFunc) *TransactionLogSelect
Aggregate adds the given aggregation functions to the selector query.
func (*TransactionLogSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TransactionLogSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TransactionLogSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TransactionLogSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TransactionLogSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TransactionLogSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (tlu *TransactionLogUpdate) Mutation() *TransactionLogMutation
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 ¶
func (tlu *TransactionLogUpdate) SetTxHash(s string) *TransactionLogUpdate
SetTxHash sets the "tx_hash" field.
func (*TransactionLogUpdate) Where ¶
func (tlu *TransactionLogUpdate) Where(ps ...predicate.TransactionLog) *TransactionLogUpdate
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 ¶
func (tluo *TransactionLogUpdateOne) Mutation() *TransactionLogMutation
Mutation returns the TransactionLogMutation object of the builder.
func (*TransactionLogUpdateOne) Save ¶
func (tluo *TransactionLogUpdateOne) Save(ctx context.Context) (*TransactionLog, error)
Save executes the query and returns the updated TransactionLog entity.
func (*TransactionLogUpdateOne) SaveX ¶
func (tluo *TransactionLogUpdateOne) SaveX(ctx context.Context) *TransactionLog
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 ¶
func (tluo *TransactionLogUpdateOne) SetGatewayID(s string) *TransactionLogUpdateOne
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 ¶
func (tluo *TransactionLogUpdateOne) SetNetwork(s string) *TransactionLogUpdateOne
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 ¶
func (tluo *TransactionLogUpdateOne) SetTxHash(s string) *TransactionLogUpdateOne
SetTxHash sets the "tx_hash" field.
func (*TransactionLogUpdateOne) Where ¶
func (tluo *TransactionLogUpdateOne) Where(ps ...predicate.TransactionLog) *TransactionLogUpdateOne
Where appends a list predicates to the TransactionLogUpdate builder.
type TransactionLogUpsert ¶
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 ¶
func (u *TransactionLogUpsert) SetNetwork(v string) *TransactionLogUpsert
SetNetwork sets the "network" field.
func (*TransactionLogUpsert) SetTxHash ¶
func (u *TransactionLogUpsert) SetTxHash(v string) *TransactionLogUpsert
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 ¶
func (u *TransactionLogUpsertBulk) ClearGatewayID() *TransactionLogUpsertBulk
ClearGatewayID clears the value of the "gateway_id" field.
func (*TransactionLogUpsertBulk) ClearNetwork ¶
func (u *TransactionLogUpsertBulk) ClearNetwork() *TransactionLogUpsertBulk
ClearNetwork clears the value of the "network" field.
func (*TransactionLogUpsertBulk) ClearTxHash ¶
func (u *TransactionLogUpsertBulk) ClearTxHash() *TransactionLogUpsertBulk
ClearTxHash clears the value of the "tx_hash" field.
func (*TransactionLogUpsertBulk) DoNothing ¶
func (u *TransactionLogUpsertBulk) DoNothing() *TransactionLogUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*TransactionLogUpsertBulk) Exec ¶
func (u *TransactionLogUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TransactionLogUpsertBulk) ExecX ¶
func (u *TransactionLogUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TransactionLogUpsertBulk) Ignore ¶
func (u *TransactionLogUpsertBulk) Ignore() *TransactionLogUpsertBulk
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 ¶
func (u *TransactionLogUpsertBulk) SetGatewayID(v string) *TransactionLogUpsertBulk
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 ¶
func (u *TransactionLogUpsertBulk) SetNetwork(v string) *TransactionLogUpsertBulk
SetNetwork sets the "network" field.
func (*TransactionLogUpsertBulk) SetTxHash ¶
func (u *TransactionLogUpsertBulk) SetTxHash(v string) *TransactionLogUpsertBulk
SetTxHash sets the "tx_hash" field.
func (*TransactionLogUpsertBulk) Update ¶
func (u *TransactionLogUpsertBulk) Update(set func(*TransactionLogUpsert)) *TransactionLogUpsertBulk
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 ¶
func (u *TransactionLogUpsertBulk) UpdateMetadata() *TransactionLogUpsertBulk
UpdateMetadata sets the "metadata" field to the value that was provided on create.
func (*TransactionLogUpsertBulk) UpdateNetwork ¶
func (u *TransactionLogUpsertBulk) UpdateNetwork() *TransactionLogUpsertBulk
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 ¶
func (u *TransactionLogUpsertBulk) UpdateTxHash() *TransactionLogUpsertBulk
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 ¶
func (u *TransactionLogUpsertOne) ClearNetwork() *TransactionLogUpsertOne
ClearNetwork clears the value of the "network" field.
func (*TransactionLogUpsertOne) ClearTxHash ¶
func (u *TransactionLogUpsertOne) ClearTxHash() *TransactionLogUpsertOne
ClearTxHash clears the value of the "tx_hash" field.
func (*TransactionLogUpsertOne) DoNothing ¶
func (u *TransactionLogUpsertOne) DoNothing() *TransactionLogUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*TransactionLogUpsertOne) Exec ¶
func (u *TransactionLogUpsertOne) Exec(ctx context.Context) error
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 ¶
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*TransactionLogUpsertOne) IDX ¶
func (u *TransactionLogUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*TransactionLogUpsertOne) Ignore ¶
func (u *TransactionLogUpsertOne) Ignore() *TransactionLogUpsertOne
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 ¶
func (u *TransactionLogUpsertOne) SetGatewayID(v string) *TransactionLogUpsertOne
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 ¶
func (u *TransactionLogUpsertOne) SetNetwork(v string) *TransactionLogUpsertOne
SetNetwork sets the "network" field.
func (*TransactionLogUpsertOne) SetTxHash ¶
func (u *TransactionLogUpsertOne) SetTxHash(v string) *TransactionLogUpsertOne
SetTxHash sets the "tx_hash" field.
func (*TransactionLogUpsertOne) Update ¶
func (u *TransactionLogUpsertOne) Update(set func(*TransactionLogUpsert)) *TransactionLogUpsertOne
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 ¶
func (u *TransactionLogUpsertOne) UpdateNetwork() *TransactionLogUpsertOne
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 ¶
func (u *TransactionLogUpsertOne) UpdateTxHash() *TransactionLogUpsertOne
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 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 ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
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) Unwrap ¶
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.
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) 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)
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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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 ¶
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) 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) Clone ¶
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) First ¶
First returns the first User entity from the query. Returns a *NotFoundError when no User was found.
func (*UserQuery) FirstID ¶
FirstID returns the first User ID from the query. Returns a *NotFoundError when no User ID was found.
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) Only ¶
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 ¶
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) 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 ¶
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) 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 ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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) 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 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 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 ¶
func (vt *VerificationToken) Update() *VerificationTokenUpdateOne
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.
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 ¶
func (c *VerificationTokenClient) Create() *VerificationTokenCreate
Create returns a builder for creating a VerificationToken entity.
func (*VerificationTokenClient) CreateBulk ¶
func (c *VerificationTokenClient) CreateBulk(builders ...*VerificationTokenCreate) *VerificationTokenCreateBulk
CreateBulk returns a builder for creating a bulk of VerificationToken entities.
func (*VerificationTokenClient) Delete ¶
func (c *VerificationTokenClient) Delete() *VerificationTokenDelete
Delete returns a delete builder for VerificationToken.
func (*VerificationTokenClient) DeleteOne ¶
func (c *VerificationTokenClient) DeleteOne(vt *VerificationToken) *VerificationTokenDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*VerificationTokenClient) DeleteOneID ¶
func (c *VerificationTokenClient) DeleteOneID(id uuid.UUID) *VerificationTokenDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*VerificationTokenClient) Get ¶
func (c *VerificationTokenClient) Get(ctx context.Context, id uuid.UUID) (*VerificationToken, error)
Get returns a VerificationToken entity by its id.
func (*VerificationTokenClient) GetX ¶
func (c *VerificationTokenClient) GetX(ctx context.Context, id uuid.UUID) *VerificationToken
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 ¶
func (c *VerificationTokenClient) Query() *VerificationTokenQuery
Query returns a query builder for VerificationToken.
func (*VerificationTokenClient) QueryOwner ¶
func (c *VerificationTokenClient) QueryOwner(vt *VerificationToken) *UserQuery
QueryOwner queries the owner edge of a VerificationToken.
func (*VerificationTokenClient) Update ¶
func (c *VerificationTokenClient) Update() *VerificationTokenUpdate
Update returns an update builder for VerificationToken.
func (*VerificationTokenClient) UpdateOne ¶
func (c *VerificationTokenClient) UpdateOne(vt *VerificationToken) *VerificationTokenUpdateOne
UpdateOne returns an update builder for the given entity.
func (*VerificationTokenClient) UpdateOneID ¶
func (c *VerificationTokenClient) UpdateOneID(id uuid.UUID) *VerificationTokenUpdateOne
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 ¶
func (vtc *VerificationTokenCreate) Exec(ctx context.Context) error
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 ¶
func (vtc *VerificationTokenCreate) Mutation() *VerificationTokenMutation
Mutation returns the VerificationTokenMutation object of the builder.
func (*VerificationTokenCreate) OnConflict ¶
func (vtc *VerificationTokenCreate) OnConflict(opts ...sql.ConflictOption) *VerificationTokenUpsertOne
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 ¶
func (vtc *VerificationTokenCreate) Save(ctx context.Context) (*VerificationToken, error)
Save creates the VerificationToken in the database.
func (*VerificationTokenCreate) SaveX ¶
func (vtc *VerificationTokenCreate) SaveX(ctx context.Context) *VerificationToken
SaveX calls Save and panics if Save returns an error.
func (*VerificationTokenCreate) SetCreatedAt ¶
func (vtc *VerificationTokenCreate) SetCreatedAt(t time.Time) *VerificationTokenCreate
SetCreatedAt sets the "created_at" field.
func (*VerificationTokenCreate) SetExpiryAt ¶
func (vtc *VerificationTokenCreate) SetExpiryAt(t time.Time) *VerificationTokenCreate
SetExpiryAt sets the "expiry_at" field.
func (*VerificationTokenCreate) SetID ¶
func (vtc *VerificationTokenCreate) SetID(u uuid.UUID) *VerificationTokenCreate
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 ¶
func (vtc *VerificationTokenCreate) SetOwner(u *User) *VerificationTokenCreate
SetOwner sets the "owner" edge to the User entity.
func (*VerificationTokenCreate) SetOwnerID ¶
func (vtc *VerificationTokenCreate) SetOwnerID(id uuid.UUID) *VerificationTokenCreate
SetOwnerID sets the "owner" edge to the User entity by ID.
func (*VerificationTokenCreate) SetScope ¶
func (vtc *VerificationTokenCreate) SetScope(v verificationtoken.Scope) *VerificationTokenCreate
SetScope sets the "scope" field.
func (*VerificationTokenCreate) SetToken ¶
func (vtc *VerificationTokenCreate) SetToken(s string) *VerificationTokenCreate
SetToken sets the "token" field.
func (*VerificationTokenCreate) SetUpdatedAt ¶
func (vtc *VerificationTokenCreate) SetUpdatedAt(t time.Time) *VerificationTokenCreate
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 ¶
func (vtcb *VerificationTokenCreateBulk) Exec(ctx context.Context) error
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 ¶
func (vtcb *VerificationTokenCreateBulk) OnConflict(opts ...sql.ConflictOption) *VerificationTokenUpsertBulk
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 ¶
func (vtcb *VerificationTokenCreateBulk) Save(ctx context.Context) ([]*VerificationToken, error)
Save creates the VerificationToken entities in the database.
func (*VerificationTokenCreateBulk) SaveX ¶
func (vtcb *VerificationTokenCreateBulk) SaveX(ctx context.Context) []*VerificationToken
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 ¶
func (vtd *VerificationTokenDelete) Where(ps ...predicate.VerificationToken) *VerificationTokenDelete
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 ¶
func (vtdo *VerificationTokenDeleteOne) Exec(ctx context.Context) error
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 ¶
func (vtdo *VerificationTokenDeleteOne) Where(ps ...predicate.VerificationToken) *VerificationTokenDeleteOne
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 ¶
func (vtgb *VerificationTokenGroupBy) Aggregate(fns ...AggregateFunc) *VerificationTokenGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*VerificationTokenGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*VerificationTokenGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*VerificationTokenGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*VerificationTokenGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*VerificationTokenGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*VerificationTokenGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*VerificationTokenGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*VerificationTokenGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
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 ¶
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 ¶
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 ¶
func (m *VerificationTokenMutation) OldScope(ctx context.Context) (v verificationtoken.Scope, err error)
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 ¶
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 ¶
func (m *VerificationTokenMutation) SetScope(v verificationtoken.Scope)
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 ¶
func (m *VerificationTokenMutation) Type() string
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 ¶
func (m *VerificationTokenMutation) Where(ps ...predicate.VerificationToken)
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 ¶
func (vtq *VerificationTokenQuery) Aggregate(fns ...AggregateFunc) *VerificationTokenSelect
Aggregate returns a VerificationTokenSelect configured with the given aggregations.
func (*VerificationTokenQuery) All ¶
func (vtq *VerificationTokenQuery) All(ctx context.Context) ([]*VerificationToken, error)
All executes the query and returns a list of VerificationTokens.
func (*VerificationTokenQuery) AllX ¶
func (vtq *VerificationTokenQuery) AllX(ctx context.Context) []*VerificationToken
AllX is like All, but panics if an error occurs.
func (*VerificationTokenQuery) Clone ¶
func (vtq *VerificationTokenQuery) Clone() *VerificationTokenQuery
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 ¶
func (vtq *VerificationTokenQuery) First(ctx context.Context) (*VerificationToken, error)
First returns the first VerificationToken entity from the query. Returns a *NotFoundError when no VerificationToken was found.
func (*VerificationTokenQuery) FirstID ¶
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 ¶
func (vtq *VerificationTokenQuery) FirstX(ctx context.Context) *VerificationToken
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 ¶
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 ¶
func (vtq *VerificationTokenQuery) Limit(limit int) *VerificationTokenQuery
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 ¶
func (vtq *VerificationTokenQuery) Only(ctx context.Context) (*VerificationToken, error)
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 ¶
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 ¶
func (vtq *VerificationTokenQuery) OnlyX(ctx context.Context) *VerificationToken
OnlyX is like Only, but panics if an error occurs.
func (*VerificationTokenQuery) Order ¶
func (vtq *VerificationTokenQuery) Order(o ...verificationtoken.OrderOption) *VerificationTokenQuery
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 ¶
func (vtq *VerificationTokenQuery) Where(ps ...predicate.VerificationToken) *VerificationTokenQuery
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 ¶
func (vts *VerificationTokenSelect) Aggregate(fns ...AggregateFunc) *VerificationTokenSelect
Aggregate adds the given aggregation functions to the selector query.
func (*VerificationTokenSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*VerificationTokenSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*VerificationTokenSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*VerificationTokenSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*VerificationTokenSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*VerificationTokenSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*VerificationTokenSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type VerificationTokenUpdate ¶
type VerificationTokenUpdate struct {
// contains filtered or unexported fields
}
VerificationTokenUpdate is the builder for updating VerificationToken entities.
func (*VerificationTokenUpdate) Exec ¶
func (vtu *VerificationTokenUpdate) Exec(ctx context.Context) error
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 ¶
func (vtu *VerificationTokenUpdate) Mutation() *VerificationTokenMutation
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 ¶
func (vtu *VerificationTokenUpdate) SetNillableScope(v *verificationtoken.Scope) *VerificationTokenUpdate
SetNillableScope sets the "scope" field if the given value is not nil.
func (*VerificationTokenUpdate) SetScope ¶
func (vtu *VerificationTokenUpdate) SetScope(v verificationtoken.Scope) *VerificationTokenUpdate
SetScope sets the "scope" field.
func (*VerificationTokenUpdate) SetUpdatedAt ¶
func (vtu *VerificationTokenUpdate) SetUpdatedAt(t time.Time) *VerificationTokenUpdate
SetUpdatedAt sets the "updated_at" field.
func (*VerificationTokenUpdate) Where ¶
func (vtu *VerificationTokenUpdate) Where(ps ...predicate.VerificationToken) *VerificationTokenUpdate
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 ¶
func (vtuo *VerificationTokenUpdateOne) Exec(ctx context.Context) error
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 ¶
func (vtuo *VerificationTokenUpdateOne) Mutation() *VerificationTokenMutation
Mutation returns the VerificationTokenMutation object of the builder.
func (*VerificationTokenUpdateOne) Save ¶
func (vtuo *VerificationTokenUpdateOne) Save(ctx context.Context) (*VerificationToken, error)
Save executes the query and returns the updated VerificationToken entity.
func (*VerificationTokenUpdateOne) SaveX ¶
func (vtuo *VerificationTokenUpdateOne) SaveX(ctx context.Context) *VerificationToken
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 ¶
func (vtuo *VerificationTokenUpdateOne) SetNillableScope(v *verificationtoken.Scope) *VerificationTokenUpdateOne
SetNillableScope sets the "scope" field if the given value is not nil.
func (*VerificationTokenUpdateOne) SetScope ¶
func (vtuo *VerificationTokenUpdateOne) SetScope(v verificationtoken.Scope) *VerificationTokenUpdateOne
SetScope sets the "scope" field.
func (*VerificationTokenUpdateOne) SetUpdatedAt ¶
func (vtuo *VerificationTokenUpdateOne) SetUpdatedAt(t time.Time) *VerificationTokenUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*VerificationTokenUpdateOne) Where ¶
func (vtuo *VerificationTokenUpdateOne) Where(ps ...predicate.VerificationToken) *VerificationTokenUpdateOne
Where appends a list predicates to the VerificationTokenUpdate builder.
type VerificationTokenUpsert ¶
VerificationTokenUpsert is the "OnConflict" setter.
func (*VerificationTokenUpsert) SetScope ¶
func (u *VerificationTokenUpsert) SetScope(v verificationtoken.Scope) *VerificationTokenUpsert
SetScope sets the "scope" field.
func (*VerificationTokenUpsert) SetUpdatedAt ¶
func (u *VerificationTokenUpsert) SetUpdatedAt(v time.Time) *VerificationTokenUpsert
SetUpdatedAt sets the "updated_at" field.
func (*VerificationTokenUpsert) UpdateScope ¶
func (u *VerificationTokenUpsert) UpdateScope() *VerificationTokenUpsert
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 ¶
func (u *VerificationTokenUpsertBulk) DoNothing() *VerificationTokenUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*VerificationTokenUpsertBulk) Exec ¶
func (u *VerificationTokenUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*VerificationTokenUpsertBulk) ExecX ¶
func (u *VerificationTokenUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*VerificationTokenUpsertBulk) Ignore ¶
func (u *VerificationTokenUpsertBulk) Ignore() *VerificationTokenUpsertBulk
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 ¶
func (u *VerificationTokenUpsertBulk) SetScope(v verificationtoken.Scope) *VerificationTokenUpsertBulk
SetScope sets the "scope" field.
func (*VerificationTokenUpsertBulk) SetUpdatedAt ¶
func (u *VerificationTokenUpsertBulk) SetUpdatedAt(v time.Time) *VerificationTokenUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*VerificationTokenUpsertBulk) Update ¶
func (u *VerificationTokenUpsertBulk) Update(set func(*VerificationTokenUpsert)) *VerificationTokenUpsertBulk
Update allows overriding fields `UPDATE` values. See the VerificationTokenCreateBulk.OnConflict documentation for more info.
func (*VerificationTokenUpsertBulk) UpdateNewValues ¶
func (u *VerificationTokenUpsertBulk) UpdateNewValues() *VerificationTokenUpsertBulk
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 ¶
func (u *VerificationTokenUpsertBulk) UpdateScope() *VerificationTokenUpsertBulk
UpdateScope sets the "scope" field to the value that was provided on create.
func (*VerificationTokenUpsertBulk) UpdateUpdatedAt ¶
func (u *VerificationTokenUpsertBulk) UpdateUpdatedAt() *VerificationTokenUpsertBulk
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 ¶
func (u *VerificationTokenUpsertOne) DoNothing() *VerificationTokenUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*VerificationTokenUpsertOne) Exec ¶
func (u *VerificationTokenUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*VerificationTokenUpsertOne) ExecX ¶
func (u *VerificationTokenUpsertOne) ExecX(ctx context.Context)
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 ¶
func (u *VerificationTokenUpsertOne) IDX(ctx context.Context) uuid.UUID
IDX is like ID, but panics if an error occurs.
func (*VerificationTokenUpsertOne) Ignore ¶
func (u *VerificationTokenUpsertOne) Ignore() *VerificationTokenUpsertOne
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 ¶
func (u *VerificationTokenUpsertOne) SetScope(v verificationtoken.Scope) *VerificationTokenUpsertOne
SetScope sets the "scope" field.
func (*VerificationTokenUpsertOne) SetUpdatedAt ¶
func (u *VerificationTokenUpsertOne) SetUpdatedAt(v time.Time) *VerificationTokenUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*VerificationTokenUpsertOne) Update ¶
func (u *VerificationTokenUpsertOne) Update(set func(*VerificationTokenUpsert)) *VerificationTokenUpsertOne
Update allows overriding fields `UPDATE` values. See the VerificationTokenCreate.OnConflict documentation for more info.
func (*VerificationTokenUpsertOne) UpdateNewValues ¶
func (u *VerificationTokenUpsertOne) UpdateNewValues() *VerificationTokenUpsertOne
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 ¶
func (u *VerificationTokenUpsertOne) UpdateScope() *VerificationTokenUpsertOne
UpdateScope sets the "scope" field to the value that was provided on create.
func (*VerificationTokenUpsertOne) UpdateUpdatedAt ¶
func (u *VerificationTokenUpsertOne) UpdateUpdatedAt() *VerificationTokenUpsertOne
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 ¶
func (wra *WebhookRetryAttempt) Unwrap() *WebhookRetryAttempt
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 ¶
func (wra *WebhookRetryAttempt) Update() *WebhookRetryAttemptUpdateOne
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.
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 ¶
func (c *WebhookRetryAttemptClient) Create() *WebhookRetryAttemptCreate
Create returns a builder for creating a WebhookRetryAttempt entity.
func (*WebhookRetryAttemptClient) CreateBulk ¶
func (c *WebhookRetryAttemptClient) CreateBulk(builders ...*WebhookRetryAttemptCreate) *WebhookRetryAttemptCreateBulk
CreateBulk returns a builder for creating a bulk of WebhookRetryAttempt entities.
func (*WebhookRetryAttemptClient) Delete ¶
func (c *WebhookRetryAttemptClient) Delete() *WebhookRetryAttemptDelete
Delete returns a delete builder for WebhookRetryAttempt.
func (*WebhookRetryAttemptClient) DeleteOne ¶
func (c *WebhookRetryAttemptClient) DeleteOne(wra *WebhookRetryAttempt) *WebhookRetryAttemptDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*WebhookRetryAttemptClient) DeleteOneID ¶
func (c *WebhookRetryAttemptClient) DeleteOneID(id int) *WebhookRetryAttemptDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*WebhookRetryAttemptClient) Get ¶
func (c *WebhookRetryAttemptClient) Get(ctx context.Context, id int) (*WebhookRetryAttempt, error)
Get returns a WebhookRetryAttempt entity by its id.
func (*WebhookRetryAttemptClient) GetX ¶
func (c *WebhookRetryAttemptClient) GetX(ctx context.Context, id int) *WebhookRetryAttempt
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 ¶
func (c *WebhookRetryAttemptClient) MapCreateBulk(slice any, setFunc func(*WebhookRetryAttemptCreate, int)) *WebhookRetryAttemptCreateBulk
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 ¶
func (c *WebhookRetryAttemptClient) Query() *WebhookRetryAttemptQuery
Query returns a query builder for WebhookRetryAttempt.
func (*WebhookRetryAttemptClient) Update ¶
func (c *WebhookRetryAttemptClient) Update() *WebhookRetryAttemptUpdate
Update returns an update builder for WebhookRetryAttempt.
func (*WebhookRetryAttemptClient) UpdateOne ¶
func (c *WebhookRetryAttemptClient) UpdateOne(wra *WebhookRetryAttempt) *WebhookRetryAttemptUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WebhookRetryAttemptClient) UpdateOneID ¶
func (c *WebhookRetryAttemptClient) UpdateOneID(id int) *WebhookRetryAttemptUpdateOne
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 ¶
func (wrac *WebhookRetryAttemptCreate) Exec(ctx context.Context) error
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 ¶
func (wrac *WebhookRetryAttemptCreate) Mutation() *WebhookRetryAttemptMutation
Mutation returns the WebhookRetryAttemptMutation object of the builder.
func (*WebhookRetryAttemptCreate) OnConflict ¶
func (wrac *WebhookRetryAttemptCreate) OnConflict(opts ...sql.ConflictOption) *WebhookRetryAttemptUpsertOne
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 ¶
func (wrac *WebhookRetryAttemptCreate) Save(ctx context.Context) (*WebhookRetryAttempt, error)
Save creates the WebhookRetryAttempt in the database.
func (*WebhookRetryAttemptCreate) SaveX ¶
func (wrac *WebhookRetryAttemptCreate) SaveX(ctx context.Context) *WebhookRetryAttempt
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 ¶
func (wrac *WebhookRetryAttemptCreate) SetCreatedAt(t time.Time) *WebhookRetryAttemptCreate
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 ¶
func (wrac *WebhookRetryAttemptCreate) SetNillableStatus(w *webhookretryattempt.Status) *WebhookRetryAttemptCreate
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 ¶
func (wrac *WebhookRetryAttemptCreate) SetSignature(s string) *WebhookRetryAttemptCreate
SetSignature sets the "signature" field.
func (*WebhookRetryAttemptCreate) SetStatus ¶
func (wrac *WebhookRetryAttemptCreate) SetStatus(w webhookretryattempt.Status) *WebhookRetryAttemptCreate
SetStatus sets the "status" field.
func (*WebhookRetryAttemptCreate) SetUpdatedAt ¶
func (wrac *WebhookRetryAttemptCreate) SetUpdatedAt(t time.Time) *WebhookRetryAttemptCreate
SetUpdatedAt sets the "updated_at" field.
func (*WebhookRetryAttemptCreate) SetWebhookURL ¶
func (wrac *WebhookRetryAttemptCreate) SetWebhookURL(s string) *WebhookRetryAttemptCreate
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 ¶
func (wracb *WebhookRetryAttemptCreateBulk) Exec(ctx context.Context) error
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 ¶
func (wracb *WebhookRetryAttemptCreateBulk) OnConflict(opts ...sql.ConflictOption) *WebhookRetryAttemptUpsertBulk
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 ¶
func (wracb *WebhookRetryAttemptCreateBulk) Save(ctx context.Context) ([]*WebhookRetryAttempt, error)
Save creates the WebhookRetryAttempt entities in the database.
func (*WebhookRetryAttemptCreateBulk) SaveX ¶
func (wracb *WebhookRetryAttemptCreateBulk) SaveX(ctx context.Context) []*WebhookRetryAttempt
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 ¶
func (wrad *WebhookRetryAttemptDelete) Where(ps ...predicate.WebhookRetryAttempt) *WebhookRetryAttemptDelete
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 ¶
func (wrado *WebhookRetryAttemptDeleteOne) Exec(ctx context.Context) error
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 ¶
func (wrado *WebhookRetryAttemptDeleteOne) Where(ps ...predicate.WebhookRetryAttempt) *WebhookRetryAttemptDeleteOne
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 ¶
func (wragb *WebhookRetryAttemptGroupBy) Aggregate(fns ...AggregateFunc) *WebhookRetryAttemptGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WebhookRetryAttemptGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WebhookRetryAttemptGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WebhookRetryAttemptGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WebhookRetryAttemptGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*WebhookRetryAttemptGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WebhookRetryAttemptGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*WebhookRetryAttemptGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WebhookRetryAttemptGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (m *WebhookRetryAttemptMutation) 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 (*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 ¶
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 ¶
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 ¶
func (m *WebhookRetryAttemptMutation) OldStatus(ctx context.Context) (v webhookretryattempt.Status, err error)
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 ¶
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 ¶
func (m *WebhookRetryAttemptMutation) Op() 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 ¶
func (m *WebhookRetryAttemptMutation) SetStatus(w webhookretryattempt.Status)
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 ¶
func (m *WebhookRetryAttemptMutation) Status() (r webhookretryattempt.Status, exists bool)
Status returns the value of the "status" field in the mutation.
func (WebhookRetryAttemptMutation) Tx ¶
func (m WebhookRetryAttemptMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WebhookRetryAttemptMutation) Type ¶
func (m *WebhookRetryAttemptMutation) Type() string
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 ¶
func (m *WebhookRetryAttemptMutation) Where(ps ...predicate.WebhookRetryAttempt)
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 ¶
func (wraq *WebhookRetryAttemptQuery) Aggregate(fns ...AggregateFunc) *WebhookRetryAttemptSelect
Aggregate returns a WebhookRetryAttemptSelect configured with the given aggregations.
func (*WebhookRetryAttemptQuery) All ¶
func (wraq *WebhookRetryAttemptQuery) All(ctx context.Context) ([]*WebhookRetryAttempt, error)
All executes the query and returns a list of WebhookRetryAttempts.
func (*WebhookRetryAttemptQuery) AllX ¶
func (wraq *WebhookRetryAttemptQuery) AllX(ctx context.Context) []*WebhookRetryAttempt
AllX is like All, but panics if an error occurs.
func (*WebhookRetryAttemptQuery) Clone ¶
func (wraq *WebhookRetryAttemptQuery) Clone() *WebhookRetryAttemptQuery
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 ¶
func (wraq *WebhookRetryAttemptQuery) First(ctx context.Context) (*WebhookRetryAttempt, error)
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 ¶
func (wraq *WebhookRetryAttemptQuery) FirstX(ctx context.Context) *WebhookRetryAttempt
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 ¶
func (wraq *WebhookRetryAttemptQuery) Limit(limit int) *WebhookRetryAttemptQuery
Limit the number of records to be returned by this query.
func (*WebhookRetryAttemptQuery) Offset ¶
func (wraq *WebhookRetryAttemptQuery) Offset(offset int) *WebhookRetryAttemptQuery
Offset to start from.
func (*WebhookRetryAttemptQuery) Only ¶
func (wraq *WebhookRetryAttemptQuery) Only(ctx context.Context) (*WebhookRetryAttempt, error)
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 ¶
func (wraq *WebhookRetryAttemptQuery) OnlyX(ctx context.Context) *WebhookRetryAttempt
OnlyX is like Only, but panics if an error occurs.
func (*WebhookRetryAttemptQuery) Order ¶
func (wraq *WebhookRetryAttemptQuery) Order(o ...webhookretryattempt.OrderOption) *WebhookRetryAttemptQuery
Order specifies how the records should be ordered.
func (*WebhookRetryAttemptQuery) Select ¶
func (wraq *WebhookRetryAttemptQuery) Select(fields ...string) *WebhookRetryAttemptSelect
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 ¶
func (wraq *WebhookRetryAttemptQuery) Unique(unique bool) *WebhookRetryAttemptQuery
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 ¶
func (wraq *WebhookRetryAttemptQuery) Where(ps ...predicate.WebhookRetryAttempt) *WebhookRetryAttemptQuery
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 ¶
func (wras *WebhookRetryAttemptSelect) Aggregate(fns ...AggregateFunc) *WebhookRetryAttemptSelect
Aggregate adds the given aggregation functions to the selector query.
func (*WebhookRetryAttemptSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WebhookRetryAttemptSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WebhookRetryAttemptSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WebhookRetryAttemptSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*WebhookRetryAttemptSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WebhookRetryAttemptSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*WebhookRetryAttemptSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WebhookRetryAttemptSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
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) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
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 ¶
func (wrau *WebhookRetryAttemptUpdate) Exec(ctx context.Context) error
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 ¶
func (wrau *WebhookRetryAttemptUpdate) Mutation() *WebhookRetryAttemptMutation
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 ¶
func (wrau *WebhookRetryAttemptUpdate) SetNillableStatus(w *webhookretryattempt.Status) *WebhookRetryAttemptUpdate
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 ¶
func (wrau *WebhookRetryAttemptUpdate) SetSignature(s string) *WebhookRetryAttemptUpdate
SetSignature sets the "signature" field.
func (*WebhookRetryAttemptUpdate) SetStatus ¶
func (wrau *WebhookRetryAttemptUpdate) SetStatus(w webhookretryattempt.Status) *WebhookRetryAttemptUpdate
SetStatus sets the "status" field.
func (*WebhookRetryAttemptUpdate) SetUpdatedAt ¶
func (wrau *WebhookRetryAttemptUpdate) SetUpdatedAt(t time.Time) *WebhookRetryAttemptUpdate
SetUpdatedAt sets the "updated_at" field.
func (*WebhookRetryAttemptUpdate) SetWebhookURL ¶
func (wrau *WebhookRetryAttemptUpdate) SetWebhookURL(s string) *WebhookRetryAttemptUpdate
SetWebhookURL sets the "webhook_url" field.
func (*WebhookRetryAttemptUpdate) Where ¶
func (wrau *WebhookRetryAttemptUpdate) Where(ps ...predicate.WebhookRetryAttempt) *WebhookRetryAttemptUpdate
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 ¶
func (wrauo *WebhookRetryAttemptUpdateOne) AddAttemptNumber(i int) *WebhookRetryAttemptUpdateOne
AddAttemptNumber adds i to the "attempt_number" field.
func (*WebhookRetryAttemptUpdateOne) ClearSignature ¶
func (wrauo *WebhookRetryAttemptUpdateOne) ClearSignature() *WebhookRetryAttemptUpdateOne
ClearSignature clears the value of the "signature" field.
func (*WebhookRetryAttemptUpdateOne) Exec ¶
func (wrauo *WebhookRetryAttemptUpdateOne) Exec(ctx context.Context) error
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 ¶
func (wrauo *WebhookRetryAttemptUpdateOne) Mutation() *WebhookRetryAttemptMutation
Mutation returns the WebhookRetryAttemptMutation object of the builder.
func (*WebhookRetryAttemptUpdateOne) Save ¶
func (wrauo *WebhookRetryAttemptUpdateOne) Save(ctx context.Context) (*WebhookRetryAttempt, error)
Save executes the query and returns the updated WebhookRetryAttempt entity.
func (*WebhookRetryAttemptUpdateOne) SaveX ¶
func (wrauo *WebhookRetryAttemptUpdateOne) SaveX(ctx context.Context) *WebhookRetryAttempt
SaveX is like Save, but panics if an error occurs.
func (*WebhookRetryAttemptUpdateOne) Select ¶
func (wrauo *WebhookRetryAttemptUpdateOne) Select(field string, fields ...string) *WebhookRetryAttemptUpdateOne
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 ¶
func (wrauo *WebhookRetryAttemptUpdateOne) SetAttemptNumber(i int) *WebhookRetryAttemptUpdateOne
SetAttemptNumber sets the "attempt_number" field.
func (*WebhookRetryAttemptUpdateOne) SetNextRetryTime ¶
func (wrauo *WebhookRetryAttemptUpdateOne) SetNextRetryTime(t time.Time) *WebhookRetryAttemptUpdateOne
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 ¶
func (wrauo *WebhookRetryAttemptUpdateOne) SetNillableStatus(w *webhookretryattempt.Status) *WebhookRetryAttemptUpdateOne
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 ¶
func (wrauo *WebhookRetryAttemptUpdateOne) SetSignature(s string) *WebhookRetryAttemptUpdateOne
SetSignature sets the "signature" field.
func (*WebhookRetryAttemptUpdateOne) SetStatus ¶
func (wrauo *WebhookRetryAttemptUpdateOne) SetStatus(w webhookretryattempt.Status) *WebhookRetryAttemptUpdateOne
SetStatus sets the "status" field.
func (*WebhookRetryAttemptUpdateOne) SetUpdatedAt ¶
func (wrauo *WebhookRetryAttemptUpdateOne) SetUpdatedAt(t time.Time) *WebhookRetryAttemptUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*WebhookRetryAttemptUpdateOne) SetWebhookURL ¶
func (wrauo *WebhookRetryAttemptUpdateOne) SetWebhookURL(s string) *WebhookRetryAttemptUpdateOne
SetWebhookURL sets the "webhook_url" field.
func (*WebhookRetryAttemptUpdateOne) Where ¶
func (wrauo *WebhookRetryAttemptUpdateOne) Where(ps ...predicate.WebhookRetryAttempt) *WebhookRetryAttemptUpdateOne
Where appends a list predicates to the WebhookRetryAttemptUpdate builder.
type WebhookRetryAttemptUpsert ¶
WebhookRetryAttemptUpsert is the "OnConflict" setter.
func (*WebhookRetryAttemptUpsert) AddAttemptNumber ¶
func (u *WebhookRetryAttemptUpsert) AddAttemptNumber(v int) *WebhookRetryAttemptUpsert
AddAttemptNumber adds v to the "attempt_number" field.
func (*WebhookRetryAttemptUpsert) ClearSignature ¶
func (u *WebhookRetryAttemptUpsert) ClearSignature() *WebhookRetryAttemptUpsert
ClearSignature clears the value of the "signature" field.
func (*WebhookRetryAttemptUpsert) SetAttemptNumber ¶
func (u *WebhookRetryAttemptUpsert) SetAttemptNumber(v int) *WebhookRetryAttemptUpsert
SetAttemptNumber sets the "attempt_number" field.
func (*WebhookRetryAttemptUpsert) SetNextRetryTime ¶
func (u *WebhookRetryAttemptUpsert) SetNextRetryTime(v time.Time) *WebhookRetryAttemptUpsert
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 ¶
func (u *WebhookRetryAttemptUpsert) SetSignature(v string) *WebhookRetryAttemptUpsert
SetSignature sets the "signature" field.
func (*WebhookRetryAttemptUpsert) SetStatus ¶
func (u *WebhookRetryAttemptUpsert) SetStatus(v webhookretryattempt.Status) *WebhookRetryAttemptUpsert
SetStatus sets the "status" field.
func (*WebhookRetryAttemptUpsert) SetUpdatedAt ¶
func (u *WebhookRetryAttemptUpsert) SetUpdatedAt(v time.Time) *WebhookRetryAttemptUpsert
SetUpdatedAt sets the "updated_at" field.
func (*WebhookRetryAttemptUpsert) SetWebhookURL ¶
func (u *WebhookRetryAttemptUpsert) SetWebhookURL(v string) *WebhookRetryAttemptUpsert
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 ¶
func (u *WebhookRetryAttemptUpsert) UpdatePayload() *WebhookRetryAttemptUpsert
UpdatePayload sets the "payload" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsert) UpdateSignature ¶
func (u *WebhookRetryAttemptUpsert) UpdateSignature() *WebhookRetryAttemptUpsert
UpdateSignature sets the "signature" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsert) UpdateStatus ¶
func (u *WebhookRetryAttemptUpsert) UpdateStatus() *WebhookRetryAttemptUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsert) UpdateUpdatedAt ¶
func (u *WebhookRetryAttemptUpsert) UpdateUpdatedAt() *WebhookRetryAttemptUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsert) UpdateWebhookURL ¶
func (u *WebhookRetryAttemptUpsert) UpdateWebhookURL() *WebhookRetryAttemptUpsert
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 ¶
func (u *WebhookRetryAttemptUpsertBulk) AddAttemptNumber(v int) *WebhookRetryAttemptUpsertBulk
AddAttemptNumber adds v to the "attempt_number" field.
func (*WebhookRetryAttemptUpsertBulk) ClearSignature ¶
func (u *WebhookRetryAttemptUpsertBulk) ClearSignature() *WebhookRetryAttemptUpsertBulk
ClearSignature clears the value of the "signature" field.
func (*WebhookRetryAttemptUpsertBulk) DoNothing ¶
func (u *WebhookRetryAttemptUpsertBulk) DoNothing() *WebhookRetryAttemptUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*WebhookRetryAttemptUpsertBulk) Exec ¶
func (u *WebhookRetryAttemptUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WebhookRetryAttemptUpsertBulk) ExecX ¶
func (u *WebhookRetryAttemptUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WebhookRetryAttemptUpsertBulk) Ignore ¶
func (u *WebhookRetryAttemptUpsertBulk) Ignore() *WebhookRetryAttemptUpsertBulk
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 ¶
func (u *WebhookRetryAttemptUpsertBulk) SetAttemptNumber(v int) *WebhookRetryAttemptUpsertBulk
SetAttemptNumber sets the "attempt_number" field.
func (*WebhookRetryAttemptUpsertBulk) SetNextRetryTime ¶
func (u *WebhookRetryAttemptUpsertBulk) SetNextRetryTime(v time.Time) *WebhookRetryAttemptUpsertBulk
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 ¶
func (u *WebhookRetryAttemptUpsertBulk) SetSignature(v string) *WebhookRetryAttemptUpsertBulk
SetSignature sets the "signature" field.
func (*WebhookRetryAttemptUpsertBulk) SetStatus ¶
func (u *WebhookRetryAttemptUpsertBulk) SetStatus(v webhookretryattempt.Status) *WebhookRetryAttemptUpsertBulk
SetStatus sets the "status" field.
func (*WebhookRetryAttemptUpsertBulk) SetUpdatedAt ¶
func (u *WebhookRetryAttemptUpsertBulk) SetUpdatedAt(v time.Time) *WebhookRetryAttemptUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*WebhookRetryAttemptUpsertBulk) SetWebhookURL ¶
func (u *WebhookRetryAttemptUpsertBulk) SetWebhookURL(v string) *WebhookRetryAttemptUpsertBulk
SetWebhookURL sets the "webhook_url" field.
func (*WebhookRetryAttemptUpsertBulk) Update ¶
func (u *WebhookRetryAttemptUpsertBulk) Update(set func(*WebhookRetryAttemptUpsert)) *WebhookRetryAttemptUpsertBulk
Update allows overriding fields `UPDATE` values. See the WebhookRetryAttemptCreateBulk.OnConflict documentation for more info.
func (*WebhookRetryAttemptUpsertBulk) UpdateAttemptNumber ¶
func (u *WebhookRetryAttemptUpsertBulk) UpdateAttemptNumber() *WebhookRetryAttemptUpsertBulk
UpdateAttemptNumber sets the "attempt_number" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsertBulk) UpdateNewValues ¶
func (u *WebhookRetryAttemptUpsertBulk) UpdateNewValues() *WebhookRetryAttemptUpsertBulk
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 ¶
func (u *WebhookRetryAttemptUpsertBulk) UpdateNextRetryTime() *WebhookRetryAttemptUpsertBulk
UpdateNextRetryTime sets the "next_retry_time" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsertBulk) UpdatePayload ¶
func (u *WebhookRetryAttemptUpsertBulk) UpdatePayload() *WebhookRetryAttemptUpsertBulk
UpdatePayload sets the "payload" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsertBulk) UpdateSignature ¶
func (u *WebhookRetryAttemptUpsertBulk) UpdateSignature() *WebhookRetryAttemptUpsertBulk
UpdateSignature sets the "signature" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsertBulk) UpdateStatus ¶
func (u *WebhookRetryAttemptUpsertBulk) UpdateStatus() *WebhookRetryAttemptUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsertBulk) UpdateUpdatedAt ¶
func (u *WebhookRetryAttemptUpsertBulk) UpdateUpdatedAt() *WebhookRetryAttemptUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsertBulk) UpdateWebhookURL ¶
func (u *WebhookRetryAttemptUpsertBulk) UpdateWebhookURL() *WebhookRetryAttemptUpsertBulk
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 ¶
func (u *WebhookRetryAttemptUpsertOne) AddAttemptNumber(v int) *WebhookRetryAttemptUpsertOne
AddAttemptNumber adds v to the "attempt_number" field.
func (*WebhookRetryAttemptUpsertOne) ClearSignature ¶
func (u *WebhookRetryAttemptUpsertOne) ClearSignature() *WebhookRetryAttemptUpsertOne
ClearSignature clears the value of the "signature" field.
func (*WebhookRetryAttemptUpsertOne) DoNothing ¶
func (u *WebhookRetryAttemptUpsertOne) DoNothing() *WebhookRetryAttemptUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*WebhookRetryAttemptUpsertOne) Exec ¶
func (u *WebhookRetryAttemptUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*WebhookRetryAttemptUpsertOne) ExecX ¶
func (u *WebhookRetryAttemptUpsertOne) ExecX(ctx context.Context)
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 ¶
func (u *WebhookRetryAttemptUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*WebhookRetryAttemptUpsertOne) Ignore ¶
func (u *WebhookRetryAttemptUpsertOne) Ignore() *WebhookRetryAttemptUpsertOne
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 ¶
func (u *WebhookRetryAttemptUpsertOne) SetAttemptNumber(v int) *WebhookRetryAttemptUpsertOne
SetAttemptNumber sets the "attempt_number" field.
func (*WebhookRetryAttemptUpsertOne) SetNextRetryTime ¶
func (u *WebhookRetryAttemptUpsertOne) SetNextRetryTime(v time.Time) *WebhookRetryAttemptUpsertOne
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 ¶
func (u *WebhookRetryAttemptUpsertOne) SetSignature(v string) *WebhookRetryAttemptUpsertOne
SetSignature sets the "signature" field.
func (*WebhookRetryAttemptUpsertOne) SetStatus ¶
func (u *WebhookRetryAttemptUpsertOne) SetStatus(v webhookretryattempt.Status) *WebhookRetryAttemptUpsertOne
SetStatus sets the "status" field.
func (*WebhookRetryAttemptUpsertOne) SetUpdatedAt ¶
func (u *WebhookRetryAttemptUpsertOne) SetUpdatedAt(v time.Time) *WebhookRetryAttemptUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*WebhookRetryAttemptUpsertOne) SetWebhookURL ¶
func (u *WebhookRetryAttemptUpsertOne) SetWebhookURL(v string) *WebhookRetryAttemptUpsertOne
SetWebhookURL sets the "webhook_url" field.
func (*WebhookRetryAttemptUpsertOne) Update ¶
func (u *WebhookRetryAttemptUpsertOne) Update(set func(*WebhookRetryAttemptUpsert)) *WebhookRetryAttemptUpsertOne
Update allows overriding fields `UPDATE` values. See the WebhookRetryAttemptCreate.OnConflict documentation for more info.
func (*WebhookRetryAttemptUpsertOne) UpdateAttemptNumber ¶
func (u *WebhookRetryAttemptUpsertOne) UpdateAttemptNumber() *WebhookRetryAttemptUpsertOne
UpdateAttemptNumber sets the "attempt_number" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsertOne) UpdateNewValues ¶
func (u *WebhookRetryAttemptUpsertOne) UpdateNewValues() *WebhookRetryAttemptUpsertOne
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 ¶
func (u *WebhookRetryAttemptUpsertOne) UpdateNextRetryTime() *WebhookRetryAttemptUpsertOne
UpdateNextRetryTime sets the "next_retry_time" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsertOne) UpdatePayload ¶
func (u *WebhookRetryAttemptUpsertOne) UpdatePayload() *WebhookRetryAttemptUpsertOne
UpdatePayload sets the "payload" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsertOne) UpdateSignature ¶
func (u *WebhookRetryAttemptUpsertOne) UpdateSignature() *WebhookRetryAttemptUpsertOne
UpdateSignature sets the "signature" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsertOne) UpdateStatus ¶
func (u *WebhookRetryAttemptUpsertOne) UpdateStatus() *WebhookRetryAttemptUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsertOne) UpdateUpdatedAt ¶
func (u *WebhookRetryAttemptUpsertOne) UpdateUpdatedAt() *WebhookRetryAttemptUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*WebhookRetryAttemptUpsertOne) UpdateWebhookURL ¶
func (u *WebhookRetryAttemptUpsertOne) UpdateWebhookURL() *WebhookRetryAttemptUpsertOne
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
¶
- apikey.go
- apikey_create.go
- apikey_delete.go
- apikey_query.go
- apikey_update.go
- beneficialowner.go
- beneficialowner_create.go
- beneficialowner_delete.go
- beneficialowner_query.go
- beneficialowner_update.go
- client.go
- ent.go
- fiatcurrency.go
- fiatcurrency_create.go
- fiatcurrency_delete.go
- fiatcurrency_query.go
- fiatcurrency_update.go
- generate.go
- identityverificationrequest.go
- identityverificationrequest_create.go
- identityverificationrequest_delete.go
- identityverificationrequest_query.go
- identityverificationrequest_update.go
- institution.go
- institution_create.go
- institution_delete.go
- institution_query.go
- institution_update.go
- kybprofile.go
- kybprofile_create.go
- kybprofile_delete.go
- kybprofile_query.go
- kybprofile_update.go
- linkedaddress.go
- linkedaddress_create.go
- linkedaddress_delete.go
- linkedaddress_query.go
- linkedaddress_update.go
- lockorderfulfillment.go
- lockorderfulfillment_create.go
- lockorderfulfillment_delete.go
- lockorderfulfillment_query.go
- lockorderfulfillment_update.go
- lockpaymentorder.go
- lockpaymentorder_create.go
- lockpaymentorder_delete.go
- lockpaymentorder_query.go
- lockpaymentorder_update.go
- mutation.go
- network.go
- network_create.go
- network_delete.go
- network_query.go
- network_update.go
- paymentorder.go
- paymentorder_create.go
- paymentorder_delete.go
- paymentorder_query.go
- paymentorder_update.go
- paymentorderrecipient.go
- paymentorderrecipient_create.go
- paymentorderrecipient_delete.go
- paymentorderrecipient_query.go
- paymentorderrecipient_update.go
- paymentwebhook.go
- paymentwebhook_create.go
- paymentwebhook_delete.go
- paymentwebhook_query.go
- paymentwebhook_update.go
- providercurrencies.go
- providercurrencies_create.go
- providercurrencies_delete.go
- providercurrencies_query.go
- providercurrencies_update.go
- providerordertoken.go
- providerordertoken_create.go
- providerordertoken_delete.go
- providerordertoken_query.go
- providerordertoken_update.go
- providerprofile.go
- providerprofile_create.go
- providerprofile_delete.go
- providerprofile_query.go
- providerprofile_update.go
- providerrating.go
- providerrating_create.go
- providerrating_delete.go
- providerrating_query.go
- providerrating_update.go
- provisionbucket.go
- provisionbucket_create.go
- provisionbucket_delete.go
- provisionbucket_query.go
- provisionbucket_update.go
- receiveaddress.go
- receiveaddress_create.go
- receiveaddress_delete.go
- receiveaddress_query.go
- receiveaddress_update.go
- runtime.go
- senderordertoken.go
- senderordertoken_create.go
- senderordertoken_delete.go
- senderordertoken_query.go
- senderordertoken_update.go
- senderprofile.go
- senderprofile_create.go
- senderprofile_delete.go
- senderprofile_query.go
- senderprofile_update.go
- token.go
- token_create.go
- token_delete.go
- token_query.go
- token_update.go
- transactionlog.go
- transactionlog_create.go
- transactionlog_delete.go
- transactionlog_query.go
- transactionlog_update.go
- tx.go
- user.go
- user_create.go
- user_delete.go
- user_query.go
- user_update.go
- verificationtoken.go
- verificationtoken_create.go
- verificationtoken_delete.go
- verificationtoken_query.go
- verificationtoken_update.go
- webhookretryattempt.go
- webhookretryattempt_create.go
- webhookretryattempt_delete.go
- webhookretryattempt_query.go
- webhookretryattempt_update.go