paymenttx

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the paymenttx type in the database.
	Label = "payment_tx"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTxHash holds the string denoting the tx_hash field in the database.
	FieldTxHash = "tx_hash"
	// FieldFromAddress holds the string denoting the from_address field in the database.
	FieldFromAddress = "from_address"
	// FieldToAddress holds the string denoting the to_address field in the database.
	FieldToAddress = "to_address"
	// FieldAmount holds the string denoting the amount field in the database.
	FieldAmount = "amount"
	// FieldChainID holds the string denoting the chain_id field in the database.
	FieldChainID = "chain_id"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldSessionKey holds the string denoting the session_key field in the database.
	FieldSessionKey = "session_key"
	// FieldPurpose holds the string denoting the purpose field in the database.
	FieldPurpose = "purpose"
	// FieldX402URL holds the string denoting the x402_url field in the database.
	FieldX402URL = "x402_url"
	// FieldPaymentMethod holds the string denoting the payment_method field in the database.
	FieldPaymentMethod = "payment_method"
	// FieldErrorMessage holds the string denoting the error_message field in the database.
	FieldErrorMessage = "error_message"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// Table holds the table name of the paymenttx in the database.
	Table = "payment_txes"
)
View Source
const DefaultPaymentMethod = PaymentMethodDirectTransfer

PaymentMethodDirectTransfer is the default value of the PaymentMethod enum.

View Source
const DefaultStatus = StatusPending

StatusPending is the default value of the Status enum.

Variables

View Source
var (
	// FromAddressValidator is a validator for the "from_address" field. It is called by the builders before save.
	FromAddressValidator func(string) error
	// ToAddressValidator is a validator for the "to_address" field. It is called by the builders before save.
	ToAddressValidator func(string) error
	// AmountValidator is a validator for the "amount" field. It is called by the builders before save.
	AmountValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for paymenttx fields.

Functions

func Amount

func Amount(v string) predicate.PaymentTx

Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.

func AmountContains

func AmountContains(v string) predicate.PaymentTx

AmountContains applies the Contains predicate on the "amount" field.

func AmountContainsFold

func AmountContainsFold(v string) predicate.PaymentTx

AmountContainsFold applies the ContainsFold predicate on the "amount" field.

func AmountEQ

func AmountEQ(v string) predicate.PaymentTx

AmountEQ applies the EQ predicate on the "amount" field.

func AmountEqualFold

func AmountEqualFold(v string) predicate.PaymentTx

AmountEqualFold applies the EqualFold predicate on the "amount" field.

func AmountGT

func AmountGT(v string) predicate.PaymentTx

AmountGT applies the GT predicate on the "amount" field.

func AmountGTE

func AmountGTE(v string) predicate.PaymentTx

AmountGTE applies the GTE predicate on the "amount" field.

func AmountHasPrefix

func AmountHasPrefix(v string) predicate.PaymentTx

AmountHasPrefix applies the HasPrefix predicate on the "amount" field.

func AmountHasSuffix

func AmountHasSuffix(v string) predicate.PaymentTx

AmountHasSuffix applies the HasSuffix predicate on the "amount" field.

func AmountIn

func AmountIn(vs ...string) predicate.PaymentTx

AmountIn applies the In predicate on the "amount" field.

func AmountLT

func AmountLT(v string) predicate.PaymentTx

AmountLT applies the LT predicate on the "amount" field.

func AmountLTE

func AmountLTE(v string) predicate.PaymentTx

AmountLTE applies the LTE predicate on the "amount" field.

func AmountNEQ

func AmountNEQ(v string) predicate.PaymentTx

AmountNEQ applies the NEQ predicate on the "amount" field.

func AmountNotIn

func AmountNotIn(vs ...string) predicate.PaymentTx

AmountNotIn applies the NotIn predicate on the "amount" field.

func And

func And(predicates ...predicate.PaymentTx) predicate.PaymentTx

And groups predicates with the AND operator between them.

func ChainID

func ChainID(v int64) predicate.PaymentTx

ChainID applies equality check predicate on the "chain_id" field. It's identical to ChainIDEQ.

func ChainIDEQ

func ChainIDEQ(v int64) predicate.PaymentTx

ChainIDEQ applies the EQ predicate on the "chain_id" field.

func ChainIDGT

func ChainIDGT(v int64) predicate.PaymentTx

ChainIDGT applies the GT predicate on the "chain_id" field.

func ChainIDGTE

func ChainIDGTE(v int64) predicate.PaymentTx

ChainIDGTE applies the GTE predicate on the "chain_id" field.

func ChainIDIn

func ChainIDIn(vs ...int64) predicate.PaymentTx

ChainIDIn applies the In predicate on the "chain_id" field.

func ChainIDLT

func ChainIDLT(v int64) predicate.PaymentTx

ChainIDLT applies the LT predicate on the "chain_id" field.

func ChainIDLTE

func ChainIDLTE(v int64) predicate.PaymentTx

ChainIDLTE applies the LTE predicate on the "chain_id" field.

func ChainIDNEQ

func ChainIDNEQ(v int64) predicate.PaymentTx

ChainIDNEQ applies the NEQ predicate on the "chain_id" field.

func ChainIDNotIn

func ChainIDNotIn(vs ...int64) predicate.PaymentTx

ChainIDNotIn applies the NotIn predicate on the "chain_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.PaymentTx

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.PaymentTx

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.PaymentTx

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.PaymentTx

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.PaymentTx

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.PaymentTx

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.PaymentTx

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

func CreatedAtNotIn

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

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

func ErrorMessage

func ErrorMessage(v string) predicate.PaymentTx

ErrorMessage applies equality check predicate on the "error_message" field. It's identical to ErrorMessageEQ.

func ErrorMessageContains

func ErrorMessageContains(v string) predicate.PaymentTx

ErrorMessageContains applies the Contains predicate on the "error_message" field.

func ErrorMessageContainsFold

func ErrorMessageContainsFold(v string) predicate.PaymentTx

ErrorMessageContainsFold applies the ContainsFold predicate on the "error_message" field.

func ErrorMessageEQ

func ErrorMessageEQ(v string) predicate.PaymentTx

ErrorMessageEQ applies the EQ predicate on the "error_message" field.

func ErrorMessageEqualFold

func ErrorMessageEqualFold(v string) predicate.PaymentTx

ErrorMessageEqualFold applies the EqualFold predicate on the "error_message" field.

func ErrorMessageGT

func ErrorMessageGT(v string) predicate.PaymentTx

ErrorMessageGT applies the GT predicate on the "error_message" field.

func ErrorMessageGTE

func ErrorMessageGTE(v string) predicate.PaymentTx

ErrorMessageGTE applies the GTE predicate on the "error_message" field.

func ErrorMessageHasPrefix

func ErrorMessageHasPrefix(v string) predicate.PaymentTx

ErrorMessageHasPrefix applies the HasPrefix predicate on the "error_message" field.

func ErrorMessageHasSuffix

func ErrorMessageHasSuffix(v string) predicate.PaymentTx

ErrorMessageHasSuffix applies the HasSuffix predicate on the "error_message" field.

func ErrorMessageIn

func ErrorMessageIn(vs ...string) predicate.PaymentTx

ErrorMessageIn applies the In predicate on the "error_message" field.

func ErrorMessageIsNil

func ErrorMessageIsNil() predicate.PaymentTx

ErrorMessageIsNil applies the IsNil predicate on the "error_message" field.

func ErrorMessageLT

func ErrorMessageLT(v string) predicate.PaymentTx

ErrorMessageLT applies the LT predicate on the "error_message" field.

func ErrorMessageLTE

func ErrorMessageLTE(v string) predicate.PaymentTx

ErrorMessageLTE applies the LTE predicate on the "error_message" field.

func ErrorMessageNEQ

func ErrorMessageNEQ(v string) predicate.PaymentTx

ErrorMessageNEQ applies the NEQ predicate on the "error_message" field.

func ErrorMessageNotIn

func ErrorMessageNotIn(vs ...string) predicate.PaymentTx

ErrorMessageNotIn applies the NotIn predicate on the "error_message" field.

func ErrorMessageNotNil

func ErrorMessageNotNil() predicate.PaymentTx

ErrorMessageNotNil applies the NotNil predicate on the "error_message" field.

func FromAddress

func FromAddress(v string) predicate.PaymentTx

FromAddress applies equality check predicate on the "from_address" field. It's identical to FromAddressEQ.

func FromAddressContains

func FromAddressContains(v string) predicate.PaymentTx

FromAddressContains applies the Contains predicate on the "from_address" field.

func FromAddressContainsFold

func FromAddressContainsFold(v string) predicate.PaymentTx

FromAddressContainsFold applies the ContainsFold predicate on the "from_address" field.

func FromAddressEQ

func FromAddressEQ(v string) predicate.PaymentTx

FromAddressEQ applies the EQ predicate on the "from_address" field.

func FromAddressEqualFold

func FromAddressEqualFold(v string) predicate.PaymentTx

FromAddressEqualFold applies the EqualFold predicate on the "from_address" field.

func FromAddressGT

func FromAddressGT(v string) predicate.PaymentTx

FromAddressGT applies the GT predicate on the "from_address" field.

func FromAddressGTE

func FromAddressGTE(v string) predicate.PaymentTx

FromAddressGTE applies the GTE predicate on the "from_address" field.

func FromAddressHasPrefix

func FromAddressHasPrefix(v string) predicate.PaymentTx

FromAddressHasPrefix applies the HasPrefix predicate on the "from_address" field.

func FromAddressHasSuffix

func FromAddressHasSuffix(v string) predicate.PaymentTx

FromAddressHasSuffix applies the HasSuffix predicate on the "from_address" field.

func FromAddressIn

func FromAddressIn(vs ...string) predicate.PaymentTx

FromAddressIn applies the In predicate on the "from_address" field.

func FromAddressLT

func FromAddressLT(v string) predicate.PaymentTx

FromAddressLT applies the LT predicate on the "from_address" field.

func FromAddressLTE

func FromAddressLTE(v string) predicate.PaymentTx

FromAddressLTE applies the LTE predicate on the "from_address" field.

func FromAddressNEQ

func FromAddressNEQ(v string) predicate.PaymentTx

FromAddressNEQ applies the NEQ predicate on the "from_address" field.

func FromAddressNotIn

func FromAddressNotIn(vs ...string) predicate.PaymentTx

FromAddressNotIn applies the NotIn predicate on the "from_address" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.PaymentTx

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.PaymentTx

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.PaymentTx

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.PaymentTx

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.PaymentTx

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.PaymentTx

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.PaymentTx) predicate.PaymentTx

Or groups predicates with the OR operator between them.

func PaymentMethodEQ

func PaymentMethodEQ(v PaymentMethod) predicate.PaymentTx

PaymentMethodEQ applies the EQ predicate on the "payment_method" field.

func PaymentMethodIn

func PaymentMethodIn(vs ...PaymentMethod) predicate.PaymentTx

PaymentMethodIn applies the In predicate on the "payment_method" field.

func PaymentMethodNEQ

func PaymentMethodNEQ(v PaymentMethod) predicate.PaymentTx

PaymentMethodNEQ applies the NEQ predicate on the "payment_method" field.

func PaymentMethodNotIn

func PaymentMethodNotIn(vs ...PaymentMethod) predicate.PaymentTx

PaymentMethodNotIn applies the NotIn predicate on the "payment_method" field.

func PaymentMethodValidator

func PaymentMethodValidator(pm PaymentMethod) error

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

func Purpose

func Purpose(v string) predicate.PaymentTx

Purpose applies equality check predicate on the "purpose" field. It's identical to PurposeEQ.

func PurposeContains

func PurposeContains(v string) predicate.PaymentTx

PurposeContains applies the Contains predicate on the "purpose" field.

func PurposeContainsFold

func PurposeContainsFold(v string) predicate.PaymentTx

PurposeContainsFold applies the ContainsFold predicate on the "purpose" field.

func PurposeEQ

func PurposeEQ(v string) predicate.PaymentTx

PurposeEQ applies the EQ predicate on the "purpose" field.

func PurposeEqualFold

func PurposeEqualFold(v string) predicate.PaymentTx

PurposeEqualFold applies the EqualFold predicate on the "purpose" field.

func PurposeGT

func PurposeGT(v string) predicate.PaymentTx

PurposeGT applies the GT predicate on the "purpose" field.

func PurposeGTE

func PurposeGTE(v string) predicate.PaymentTx

PurposeGTE applies the GTE predicate on the "purpose" field.

func PurposeHasPrefix

func PurposeHasPrefix(v string) predicate.PaymentTx

PurposeHasPrefix applies the HasPrefix predicate on the "purpose" field.

func PurposeHasSuffix

func PurposeHasSuffix(v string) predicate.PaymentTx

PurposeHasSuffix applies the HasSuffix predicate on the "purpose" field.

func PurposeIn

func PurposeIn(vs ...string) predicate.PaymentTx

PurposeIn applies the In predicate on the "purpose" field.

func PurposeIsNil

func PurposeIsNil() predicate.PaymentTx

PurposeIsNil applies the IsNil predicate on the "purpose" field.

func PurposeLT

func PurposeLT(v string) predicate.PaymentTx

PurposeLT applies the LT predicate on the "purpose" field.

func PurposeLTE

func PurposeLTE(v string) predicate.PaymentTx

PurposeLTE applies the LTE predicate on the "purpose" field.

func PurposeNEQ

func PurposeNEQ(v string) predicate.PaymentTx

PurposeNEQ applies the NEQ predicate on the "purpose" field.

func PurposeNotIn

func PurposeNotIn(vs ...string) predicate.PaymentTx

PurposeNotIn applies the NotIn predicate on the "purpose" field.

func PurposeNotNil

func PurposeNotNil() predicate.PaymentTx

PurposeNotNil applies the NotNil predicate on the "purpose" field.

func SessionKey

func SessionKey(v string) predicate.PaymentTx

SessionKey applies equality check predicate on the "session_key" field. It's identical to SessionKeyEQ.

func SessionKeyContains

func SessionKeyContains(v string) predicate.PaymentTx

SessionKeyContains applies the Contains predicate on the "session_key" field.

func SessionKeyContainsFold

func SessionKeyContainsFold(v string) predicate.PaymentTx

SessionKeyContainsFold applies the ContainsFold predicate on the "session_key" field.

func SessionKeyEQ

func SessionKeyEQ(v string) predicate.PaymentTx

SessionKeyEQ applies the EQ predicate on the "session_key" field.

func SessionKeyEqualFold

func SessionKeyEqualFold(v string) predicate.PaymentTx

SessionKeyEqualFold applies the EqualFold predicate on the "session_key" field.

func SessionKeyGT

func SessionKeyGT(v string) predicate.PaymentTx

SessionKeyGT applies the GT predicate on the "session_key" field.

func SessionKeyGTE

func SessionKeyGTE(v string) predicate.PaymentTx

SessionKeyGTE applies the GTE predicate on the "session_key" field.

func SessionKeyHasPrefix

func SessionKeyHasPrefix(v string) predicate.PaymentTx

SessionKeyHasPrefix applies the HasPrefix predicate on the "session_key" field.

func SessionKeyHasSuffix

func SessionKeyHasSuffix(v string) predicate.PaymentTx

SessionKeyHasSuffix applies the HasSuffix predicate on the "session_key" field.

func SessionKeyIn

func SessionKeyIn(vs ...string) predicate.PaymentTx

SessionKeyIn applies the In predicate on the "session_key" field.

func SessionKeyIsNil

func SessionKeyIsNil() predicate.PaymentTx

SessionKeyIsNil applies the IsNil predicate on the "session_key" field.

func SessionKeyLT

func SessionKeyLT(v string) predicate.PaymentTx

SessionKeyLT applies the LT predicate on the "session_key" field.

func SessionKeyLTE

func SessionKeyLTE(v string) predicate.PaymentTx

SessionKeyLTE applies the LTE predicate on the "session_key" field.

func SessionKeyNEQ

func SessionKeyNEQ(v string) predicate.PaymentTx

SessionKeyNEQ applies the NEQ predicate on the "session_key" field.

func SessionKeyNotIn

func SessionKeyNotIn(vs ...string) predicate.PaymentTx

SessionKeyNotIn applies the NotIn predicate on the "session_key" field.

func SessionKeyNotNil

func SessionKeyNotNil() predicate.PaymentTx

SessionKeyNotNil applies the NotNil predicate on the "session_key" field.

func StatusEQ

func StatusEQ(v Status) predicate.PaymentTx

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.PaymentTx

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.PaymentTx

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.PaymentTx

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

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

func ToAddress

func ToAddress(v string) predicate.PaymentTx

ToAddress applies equality check predicate on the "to_address" field. It's identical to ToAddressEQ.

func ToAddressContains

func ToAddressContains(v string) predicate.PaymentTx

ToAddressContains applies the Contains predicate on the "to_address" field.

func ToAddressContainsFold

func ToAddressContainsFold(v string) predicate.PaymentTx

ToAddressContainsFold applies the ContainsFold predicate on the "to_address" field.

func ToAddressEQ

func ToAddressEQ(v string) predicate.PaymentTx

ToAddressEQ applies the EQ predicate on the "to_address" field.

func ToAddressEqualFold

func ToAddressEqualFold(v string) predicate.PaymentTx

ToAddressEqualFold applies the EqualFold predicate on the "to_address" field.

func ToAddressGT

func ToAddressGT(v string) predicate.PaymentTx

ToAddressGT applies the GT predicate on the "to_address" field.

func ToAddressGTE

func ToAddressGTE(v string) predicate.PaymentTx

ToAddressGTE applies the GTE predicate on the "to_address" field.

func ToAddressHasPrefix

func ToAddressHasPrefix(v string) predicate.PaymentTx

ToAddressHasPrefix applies the HasPrefix predicate on the "to_address" field.

func ToAddressHasSuffix

func ToAddressHasSuffix(v string) predicate.PaymentTx

ToAddressHasSuffix applies the HasSuffix predicate on the "to_address" field.

func ToAddressIn

func ToAddressIn(vs ...string) predicate.PaymentTx

ToAddressIn applies the In predicate on the "to_address" field.

func ToAddressLT

func ToAddressLT(v string) predicate.PaymentTx

ToAddressLT applies the LT predicate on the "to_address" field.

func ToAddressLTE

func ToAddressLTE(v string) predicate.PaymentTx

ToAddressLTE applies the LTE predicate on the "to_address" field.

func ToAddressNEQ

func ToAddressNEQ(v string) predicate.PaymentTx

ToAddressNEQ applies the NEQ predicate on the "to_address" field.

func ToAddressNotIn

func ToAddressNotIn(vs ...string) predicate.PaymentTx

ToAddressNotIn applies the NotIn predicate on the "to_address" field.

func TxHash

func TxHash(v string) predicate.PaymentTx

TxHash applies equality check predicate on the "tx_hash" field. It's identical to TxHashEQ.

func TxHashContains

func TxHashContains(v string) predicate.PaymentTx

TxHashContains applies the Contains predicate on the "tx_hash" field.

func TxHashContainsFold

func TxHashContainsFold(v string) predicate.PaymentTx

TxHashContainsFold applies the ContainsFold predicate on the "tx_hash" field.

func TxHashEQ

func TxHashEQ(v string) predicate.PaymentTx

TxHashEQ applies the EQ predicate on the "tx_hash" field.

func TxHashEqualFold

func TxHashEqualFold(v string) predicate.PaymentTx

TxHashEqualFold applies the EqualFold predicate on the "tx_hash" field.

func TxHashGT

func TxHashGT(v string) predicate.PaymentTx

TxHashGT applies the GT predicate on the "tx_hash" field.

func TxHashGTE

func TxHashGTE(v string) predicate.PaymentTx

TxHashGTE applies the GTE predicate on the "tx_hash" field.

func TxHashHasPrefix

func TxHashHasPrefix(v string) predicate.PaymentTx

TxHashHasPrefix applies the HasPrefix predicate on the "tx_hash" field.

func TxHashHasSuffix

func TxHashHasSuffix(v string) predicate.PaymentTx

TxHashHasSuffix applies the HasSuffix predicate on the "tx_hash" field.

func TxHashIn

func TxHashIn(vs ...string) predicate.PaymentTx

TxHashIn applies the In predicate on the "tx_hash" field.

func TxHashIsNil

func TxHashIsNil() predicate.PaymentTx

TxHashIsNil applies the IsNil predicate on the "tx_hash" field.

func TxHashLT

func TxHashLT(v string) predicate.PaymentTx

TxHashLT applies the LT predicate on the "tx_hash" field.

func TxHashLTE

func TxHashLTE(v string) predicate.PaymentTx

TxHashLTE applies the LTE predicate on the "tx_hash" field.

func TxHashNEQ

func TxHashNEQ(v string) predicate.PaymentTx

TxHashNEQ applies the NEQ predicate on the "tx_hash" field.

func TxHashNotIn

func TxHashNotIn(vs ...string) predicate.PaymentTx

TxHashNotIn applies the NotIn predicate on the "tx_hash" field.

func TxHashNotNil

func TxHashNotNil() predicate.PaymentTx

TxHashNotNil applies the NotNil predicate on the "tx_hash" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.PaymentTx

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.PaymentTx

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.PaymentTx

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.PaymentTx

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.PaymentTx

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.PaymentTx

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.PaymentTx

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func X402URL

func X402URL(v string) predicate.PaymentTx

X402URL applies equality check predicate on the "x402_url" field. It's identical to X402URLEQ.

func X402URLContains

func X402URLContains(v string) predicate.PaymentTx

X402URLContains applies the Contains predicate on the "x402_url" field.

func X402URLContainsFold

func X402URLContainsFold(v string) predicate.PaymentTx

X402URLContainsFold applies the ContainsFold predicate on the "x402_url" field.

func X402URLEQ

func X402URLEQ(v string) predicate.PaymentTx

X402URLEQ applies the EQ predicate on the "x402_url" field.

func X402URLEqualFold

func X402URLEqualFold(v string) predicate.PaymentTx

X402URLEqualFold applies the EqualFold predicate on the "x402_url" field.

func X402URLGT

func X402URLGT(v string) predicate.PaymentTx

X402URLGT applies the GT predicate on the "x402_url" field.

func X402URLGTE

func X402URLGTE(v string) predicate.PaymentTx

X402URLGTE applies the GTE predicate on the "x402_url" field.

func X402URLHasPrefix

func X402URLHasPrefix(v string) predicate.PaymentTx

X402URLHasPrefix applies the HasPrefix predicate on the "x402_url" field.

func X402URLHasSuffix

func X402URLHasSuffix(v string) predicate.PaymentTx

X402URLHasSuffix applies the HasSuffix predicate on the "x402_url" field.

func X402URLIn

func X402URLIn(vs ...string) predicate.PaymentTx

X402URLIn applies the In predicate on the "x402_url" field.

func X402URLIsNil

func X402URLIsNil() predicate.PaymentTx

X402URLIsNil applies the IsNil predicate on the "x402_url" field.

func X402URLLT

func X402URLLT(v string) predicate.PaymentTx

X402URLLT applies the LT predicate on the "x402_url" field.

func X402URLLTE

func X402URLLTE(v string) predicate.PaymentTx

X402URLLTE applies the LTE predicate on the "x402_url" field.

func X402URLNEQ

func X402URLNEQ(v string) predicate.PaymentTx

X402URLNEQ applies the NEQ predicate on the "x402_url" field.

func X402URLNotIn

func X402URLNotIn(vs ...string) predicate.PaymentTx

X402URLNotIn applies the NotIn predicate on the "x402_url" field.

func X402URLNotNil

func X402URLNotNil() predicate.PaymentTx

X402URLNotNil applies the NotNil predicate on the "x402_url" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the PaymentTx queries.

func ByAmount

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

ByAmount orders the results by the amount field.

func ByChainID

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

ByChainID orders the results by the chain_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByErrorMessage

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

ByErrorMessage orders the results by the error_message field.

func ByFromAddress

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

ByFromAddress orders the results by the from_address field.

func ByID

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

ByID orders the results by the id field.

func ByPaymentMethod

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

ByPaymentMethod orders the results by the payment_method field.

func ByPurpose

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

ByPurpose orders the results by the purpose field.

func BySessionKey

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

BySessionKey orders the results by the session_key field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByToAddress

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

ByToAddress orders the results by the to_address field.

func ByTxHash

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

ByTxHash orders the results by the tx_hash field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByX402URL

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

ByX402URL orders the results by the x402_url field.

type PaymentMethod

type PaymentMethod string

PaymentMethod defines the type for the "payment_method" enum field.

const (
	PaymentMethodDirectTransfer PaymentMethod = "direct_transfer"
	PaymentMethodX402V2         PaymentMethod = "x402_v2"
	PaymentMethodP2pSettlement  PaymentMethod = "p2p_settlement"
)

PaymentMethod values.

func (PaymentMethod) String

func (pm PaymentMethod) String() string

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusPending   Status = "pending"
	StatusSubmitted Status = "submitted"
	StatusConfirmed Status = "confirmed"
	StatusFailed    Status = "failed"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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