Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PaymentMethod) predicate.PaymentMethod
- func Brand(v string) predicate.PaymentMethod
- func BrandContains(v string) predicate.PaymentMethod
- func BrandContainsFold(v string) predicate.PaymentMethod
- func BrandEQ(v string) predicate.PaymentMethod
- func BrandEqualFold(v string) predicate.PaymentMethod
- func BrandGT(v string) predicate.PaymentMethod
- func BrandGTE(v string) predicate.PaymentMethod
- func BrandHasPrefix(v string) predicate.PaymentMethod
- func BrandHasSuffix(v string) predicate.PaymentMethod
- func BrandIn(vs ...string) predicate.PaymentMethod
- func BrandIsNil() predicate.PaymentMethod
- func BrandLT(v string) predicate.PaymentMethod
- func BrandLTE(v string) predicate.PaymentMethod
- func BrandNEQ(v string) predicate.PaymentMethod
- func BrandNotIn(vs ...string) predicate.PaymentMethod
- func BrandNotNil() predicate.PaymentMethod
- func CreatedAt(v time.Time) predicate.PaymentMethod
- func CreatedAtEQ(v time.Time) predicate.PaymentMethod
- func CreatedAtGT(v time.Time) predicate.PaymentMethod
- func CreatedAtGTE(v time.Time) predicate.PaymentMethod
- func CreatedAtIn(vs ...time.Time) predicate.PaymentMethod
- func CreatedAtLT(v time.Time) predicate.PaymentMethod
- func CreatedAtLTE(v time.Time) predicate.PaymentMethod
- func CreatedAtNEQ(v time.Time) predicate.PaymentMethod
- func CreatedAtNotIn(vs ...time.Time) predicate.PaymentMethod
- func ExpMonth(v int) predicate.PaymentMethod
- func ExpMonthEQ(v int) predicate.PaymentMethod
- func ExpMonthGT(v int) predicate.PaymentMethod
- func ExpMonthGTE(v int) predicate.PaymentMethod
- func ExpMonthIn(vs ...int) predicate.PaymentMethod
- func ExpMonthIsNil() predicate.PaymentMethod
- func ExpMonthLT(v int) predicate.PaymentMethod
- func ExpMonthLTE(v int) predicate.PaymentMethod
- func ExpMonthNEQ(v int) predicate.PaymentMethod
- func ExpMonthNotIn(vs ...int) predicate.PaymentMethod
- func ExpMonthNotNil() predicate.PaymentMethod
- func ExpYear(v int) predicate.PaymentMethod
- func ExpYearEQ(v int) predicate.PaymentMethod
- func ExpYearGT(v int) predicate.PaymentMethod
- func ExpYearGTE(v int) predicate.PaymentMethod
- func ExpYearIn(vs ...int) predicate.PaymentMethod
- func ExpYearIsNil() predicate.PaymentMethod
- func ExpYearLT(v int) predicate.PaymentMethod
- func ExpYearLTE(v int) predicate.PaymentMethod
- func ExpYearNEQ(v int) predicate.PaymentMethod
- func ExpYearNotIn(vs ...int) predicate.PaymentMethod
- func ExpYearNotNil() predicate.PaymentMethod
- func HasCustomer() predicate.PaymentMethod
- func HasCustomerWith(preds ...predicate.PaymentCustomer) predicate.PaymentMethod
- func ID(id int) predicate.PaymentMethod
- func IDEQ(id int) predicate.PaymentMethod
- func IDGT(id int) predicate.PaymentMethod
- func IDGTE(id int) predicate.PaymentMethod
- func IDIn(ids ...int) predicate.PaymentMethod
- func IDLT(id int) predicate.PaymentMethod
- func IDLTE(id int) predicate.PaymentMethod
- func IDNEQ(id int) predicate.PaymentMethod
- func IDNotIn(ids ...int) predicate.PaymentMethod
- func IsDefault(v bool) predicate.PaymentMethod
- func IsDefaultEQ(v bool) predicate.PaymentMethod
- func IsDefaultNEQ(v bool) predicate.PaymentMethod
- func LastFour(v string) predicate.PaymentMethod
- func LastFourContains(v string) predicate.PaymentMethod
- func LastFourContainsFold(v string) predicate.PaymentMethod
- func LastFourEQ(v string) predicate.PaymentMethod
- func LastFourEqualFold(v string) predicate.PaymentMethod
- func LastFourGT(v string) predicate.PaymentMethod
- func LastFourGTE(v string) predicate.PaymentMethod
- func LastFourHasPrefix(v string) predicate.PaymentMethod
- func LastFourHasSuffix(v string) predicate.PaymentMethod
- func LastFourIn(vs ...string) predicate.PaymentMethod
- func LastFourIsNil() predicate.PaymentMethod
- func LastFourLT(v string) predicate.PaymentMethod
- func LastFourLTE(v string) predicate.PaymentMethod
- func LastFourNEQ(v string) predicate.PaymentMethod
- func LastFourNotIn(vs ...string) predicate.PaymentMethod
- func LastFourNotNil() predicate.PaymentMethod
- func MetadataIsNil() predicate.PaymentMethod
- func MetadataNotNil() predicate.PaymentMethod
- func Not(p predicate.PaymentMethod) predicate.PaymentMethod
- func Or(predicates ...predicate.PaymentMethod) predicate.PaymentMethod
- func Provider(v string) predicate.PaymentMethod
- func ProviderContains(v string) predicate.PaymentMethod
- func ProviderContainsFold(v string) predicate.PaymentMethod
- func ProviderEQ(v string) predicate.PaymentMethod
- func ProviderEqualFold(v string) predicate.PaymentMethod
- func ProviderGT(v string) predicate.PaymentMethod
- func ProviderGTE(v string) predicate.PaymentMethod
- func ProviderHasPrefix(v string) predicate.PaymentMethod
- func ProviderHasSuffix(v string) predicate.PaymentMethod
- func ProviderIn(vs ...string) predicate.PaymentMethod
- func ProviderLT(v string) predicate.PaymentMethod
- func ProviderLTE(v string) predicate.PaymentMethod
- func ProviderNEQ(v string) predicate.PaymentMethod
- func ProviderNotIn(vs ...string) predicate.PaymentMethod
- func ProviderPaymentMethodID(v string) predicate.PaymentMethod
- func ProviderPaymentMethodIDContains(v string) predicate.PaymentMethod
- func ProviderPaymentMethodIDContainsFold(v string) predicate.PaymentMethod
- func ProviderPaymentMethodIDEQ(v string) predicate.PaymentMethod
- func ProviderPaymentMethodIDEqualFold(v string) predicate.PaymentMethod
- func ProviderPaymentMethodIDGT(v string) predicate.PaymentMethod
- func ProviderPaymentMethodIDGTE(v string) predicate.PaymentMethod
- func ProviderPaymentMethodIDHasPrefix(v string) predicate.PaymentMethod
- func ProviderPaymentMethodIDHasSuffix(v string) predicate.PaymentMethod
- func ProviderPaymentMethodIDIn(vs ...string) predicate.PaymentMethod
- func ProviderPaymentMethodIDLT(v string) predicate.PaymentMethod
- func ProviderPaymentMethodIDLTE(v string) predicate.PaymentMethod
- func ProviderPaymentMethodIDNEQ(v string) predicate.PaymentMethod
- func ProviderPaymentMethodIDNotIn(vs ...string) predicate.PaymentMethod
- func TypeEQ(v Type) predicate.PaymentMethod
- func TypeIn(vs ...Type) predicate.PaymentMethod
- func TypeNEQ(v Type) predicate.PaymentMethod
- func TypeNotIn(vs ...Type) predicate.PaymentMethod
- func TypeValidator(_type Type) error
- func UpdatedAt(v time.Time) predicate.PaymentMethod
- func UpdatedAtEQ(v time.Time) predicate.PaymentMethod
- func UpdatedAtGT(v time.Time) predicate.PaymentMethod
- func UpdatedAtGTE(v time.Time) predicate.PaymentMethod
- func UpdatedAtIn(vs ...time.Time) predicate.PaymentMethod
- func UpdatedAtLT(v time.Time) predicate.PaymentMethod
- func UpdatedAtLTE(v time.Time) predicate.PaymentMethod
- func UpdatedAtNEQ(v time.Time) predicate.PaymentMethod
- func UpdatedAtNotIn(vs ...time.Time) predicate.PaymentMethod
- func ValidColumn(column string) bool
- type OrderOption
- func ByBrand(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCustomerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByExpMonth(opts ...sql.OrderTermOption) OrderOption
- func ByExpYear(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
- func ByLastFour(opts ...sql.OrderTermOption) OrderOption
- func ByProvider(opts ...sql.OrderTermOption) OrderOption
- func ByProviderPaymentMethodID(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the paymentmethod type in the database. Label = "payment_method" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldProviderPaymentMethodID holds the string denoting the provider_payment_method_id field in the database. FieldProviderPaymentMethodID = "provider_payment_method_id" // FieldProvider holds the string denoting the provider field in the database. FieldProvider = "provider" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldLastFour holds the string denoting the last_four field in the database. FieldLastFour = "last_four" // FieldBrand holds the string denoting the brand field in the database. FieldBrand = "brand" // FieldExpMonth holds the string denoting the exp_month field in the database. FieldExpMonth = "exp_month" // FieldExpYear holds the string denoting the exp_year field in the database. FieldExpYear = "exp_year" // FieldIsDefault holds the string denoting the is_default field in the database. FieldIsDefault = "is_default" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // 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" // EdgeCustomer holds the string denoting the customer edge name in mutations. EdgeCustomer = "customer" // Table holds the table name of the paymentmethod in the database. Table = "payment_methods" // CustomerTable is the table that holds the customer relation/edge. CustomerTable = "payment_methods" // CustomerInverseTable is the table name for the PaymentCustomer entity. // It exists in this package in order to avoid circular dependency with the "paymentcustomer" package. CustomerInverseTable = "payment_customers" // CustomerColumn is the table column denoting the customer relation/edge. CustomerColumn = "payment_customer_payment_methods" )
const DefaultType = TypeCard
TypeCard is the default value of the Type enum.
Variables ¶
var ( // ProviderPaymentMethodIDValidator is a validator for the "provider_payment_method_id" field. It is called by the builders before save. ProviderPaymentMethodIDValidator func(string) error // DefaultProvider holds the default value on creation for the "provider" field. DefaultProvider string // ProviderValidator is a validator for the "provider" field. It is called by the builders before save. ProviderValidator func(string) error // ExpMonthValidator is a validator for the "exp_month" field. It is called by the builders before save. ExpMonthValidator func(int) error // DefaultIsDefault holds the default value on creation for the "is_default" field. DefaultIsDefault bool // 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 )
var Columns = []string{ FieldID, FieldProviderPaymentMethodID, FieldProvider, FieldType, FieldLastFour, FieldBrand, FieldExpMonth, FieldExpYear, FieldIsDefault, FieldMetadata, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for paymentmethod fields.
var ForeignKeys = []string{
"payment_customer_payment_methods",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "payment_methods" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.PaymentMethod) predicate.PaymentMethod
And groups predicates with the AND operator between them.
func Brand ¶
func Brand(v string) predicate.PaymentMethod
Brand applies equality check predicate on the "brand" field. It's identical to BrandEQ.
func BrandContains ¶
func BrandContains(v string) predicate.PaymentMethod
BrandContains applies the Contains predicate on the "brand" field.
func BrandContainsFold ¶
func BrandContainsFold(v string) predicate.PaymentMethod
BrandContainsFold applies the ContainsFold predicate on the "brand" field.
func BrandEQ ¶
func BrandEQ(v string) predicate.PaymentMethod
BrandEQ applies the EQ predicate on the "brand" field.
func BrandEqualFold ¶
func BrandEqualFold(v string) predicate.PaymentMethod
BrandEqualFold applies the EqualFold predicate on the "brand" field.
func BrandGT ¶
func BrandGT(v string) predicate.PaymentMethod
BrandGT applies the GT predicate on the "brand" field.
func BrandGTE ¶
func BrandGTE(v string) predicate.PaymentMethod
BrandGTE applies the GTE predicate on the "brand" field.
func BrandHasPrefix ¶
func BrandHasPrefix(v string) predicate.PaymentMethod
BrandHasPrefix applies the HasPrefix predicate on the "brand" field.
func BrandHasSuffix ¶
func BrandHasSuffix(v string) predicate.PaymentMethod
BrandHasSuffix applies the HasSuffix predicate on the "brand" field.
func BrandIn ¶
func BrandIn(vs ...string) predicate.PaymentMethod
BrandIn applies the In predicate on the "brand" field.
func BrandIsNil ¶
func BrandIsNil() predicate.PaymentMethod
BrandIsNil applies the IsNil predicate on the "brand" field.
func BrandLT ¶
func BrandLT(v string) predicate.PaymentMethod
BrandLT applies the LT predicate on the "brand" field.
func BrandLTE ¶
func BrandLTE(v string) predicate.PaymentMethod
BrandLTE applies the LTE predicate on the "brand" field.
func BrandNEQ ¶
func BrandNEQ(v string) predicate.PaymentMethod
BrandNEQ applies the NEQ predicate on the "brand" field.
func BrandNotIn ¶
func BrandNotIn(vs ...string) predicate.PaymentMethod
BrandNotIn applies the NotIn predicate on the "brand" field.
func BrandNotNil ¶
func BrandNotNil() predicate.PaymentMethod
BrandNotNil applies the NotNil predicate on the "brand" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.PaymentMethod
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.PaymentMethod
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.PaymentMethod
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.PaymentMethod
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.PaymentMethod
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.PaymentMethod
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.PaymentMethod
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.PaymentMethod
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.PaymentMethod
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func ExpMonth ¶
func ExpMonth(v int) predicate.PaymentMethod
ExpMonth applies equality check predicate on the "exp_month" field. It's identical to ExpMonthEQ.
func ExpMonthEQ ¶
func ExpMonthEQ(v int) predicate.PaymentMethod
ExpMonthEQ applies the EQ predicate on the "exp_month" field.
func ExpMonthGT ¶
func ExpMonthGT(v int) predicate.PaymentMethod
ExpMonthGT applies the GT predicate on the "exp_month" field.
func ExpMonthGTE ¶
func ExpMonthGTE(v int) predicate.PaymentMethod
ExpMonthGTE applies the GTE predicate on the "exp_month" field.
func ExpMonthIn ¶
func ExpMonthIn(vs ...int) predicate.PaymentMethod
ExpMonthIn applies the In predicate on the "exp_month" field.
func ExpMonthIsNil ¶
func ExpMonthIsNil() predicate.PaymentMethod
ExpMonthIsNil applies the IsNil predicate on the "exp_month" field.
func ExpMonthLT ¶
func ExpMonthLT(v int) predicate.PaymentMethod
ExpMonthLT applies the LT predicate on the "exp_month" field.
func ExpMonthLTE ¶
func ExpMonthLTE(v int) predicate.PaymentMethod
ExpMonthLTE applies the LTE predicate on the "exp_month" field.
func ExpMonthNEQ ¶
func ExpMonthNEQ(v int) predicate.PaymentMethod
ExpMonthNEQ applies the NEQ predicate on the "exp_month" field.
func ExpMonthNotIn ¶
func ExpMonthNotIn(vs ...int) predicate.PaymentMethod
ExpMonthNotIn applies the NotIn predicate on the "exp_month" field.
func ExpMonthNotNil ¶
func ExpMonthNotNil() predicate.PaymentMethod
ExpMonthNotNil applies the NotNil predicate on the "exp_month" field.
func ExpYear ¶
func ExpYear(v int) predicate.PaymentMethod
ExpYear applies equality check predicate on the "exp_year" field. It's identical to ExpYearEQ.
func ExpYearEQ ¶
func ExpYearEQ(v int) predicate.PaymentMethod
ExpYearEQ applies the EQ predicate on the "exp_year" field.
func ExpYearGT ¶
func ExpYearGT(v int) predicate.PaymentMethod
ExpYearGT applies the GT predicate on the "exp_year" field.
func ExpYearGTE ¶
func ExpYearGTE(v int) predicate.PaymentMethod
ExpYearGTE applies the GTE predicate on the "exp_year" field.
func ExpYearIn ¶
func ExpYearIn(vs ...int) predicate.PaymentMethod
ExpYearIn applies the In predicate on the "exp_year" field.
func ExpYearIsNil ¶
func ExpYearIsNil() predicate.PaymentMethod
ExpYearIsNil applies the IsNil predicate on the "exp_year" field.
func ExpYearLT ¶
func ExpYearLT(v int) predicate.PaymentMethod
ExpYearLT applies the LT predicate on the "exp_year" field.
func ExpYearLTE ¶
func ExpYearLTE(v int) predicate.PaymentMethod
ExpYearLTE applies the LTE predicate on the "exp_year" field.
func ExpYearNEQ ¶
func ExpYearNEQ(v int) predicate.PaymentMethod
ExpYearNEQ applies the NEQ predicate on the "exp_year" field.
func ExpYearNotIn ¶
func ExpYearNotIn(vs ...int) predicate.PaymentMethod
ExpYearNotIn applies the NotIn predicate on the "exp_year" field.
func ExpYearNotNil ¶
func ExpYearNotNil() predicate.PaymentMethod
ExpYearNotNil applies the NotNil predicate on the "exp_year" field.
func HasCustomer ¶
func HasCustomer() predicate.PaymentMethod
HasCustomer applies the HasEdge predicate on the "customer" edge.
func HasCustomerWith ¶
func HasCustomerWith(preds ...predicate.PaymentCustomer) predicate.PaymentMethod
HasCustomerWith applies the HasEdge predicate on the "customer" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.PaymentMethod
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.PaymentMethod
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.PaymentMethod
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.PaymentMethod
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.PaymentMethod
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.PaymentMethod
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.PaymentMethod
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.PaymentMethod
IDNotIn applies the NotIn predicate on the ID field.
func IsDefault ¶
func IsDefault(v bool) predicate.PaymentMethod
IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.
func IsDefaultEQ ¶
func IsDefaultEQ(v bool) predicate.PaymentMethod
IsDefaultEQ applies the EQ predicate on the "is_default" field.
func IsDefaultNEQ ¶
func IsDefaultNEQ(v bool) predicate.PaymentMethod
IsDefaultNEQ applies the NEQ predicate on the "is_default" field.
func LastFour ¶
func LastFour(v string) predicate.PaymentMethod
LastFour applies equality check predicate on the "last_four" field. It's identical to LastFourEQ.
func LastFourContains ¶
func LastFourContains(v string) predicate.PaymentMethod
LastFourContains applies the Contains predicate on the "last_four" field.
func LastFourContainsFold ¶
func LastFourContainsFold(v string) predicate.PaymentMethod
LastFourContainsFold applies the ContainsFold predicate on the "last_four" field.
func LastFourEQ ¶
func LastFourEQ(v string) predicate.PaymentMethod
LastFourEQ applies the EQ predicate on the "last_four" field.
func LastFourEqualFold ¶
func LastFourEqualFold(v string) predicate.PaymentMethod
LastFourEqualFold applies the EqualFold predicate on the "last_four" field.
func LastFourGT ¶
func LastFourGT(v string) predicate.PaymentMethod
LastFourGT applies the GT predicate on the "last_four" field.
func LastFourGTE ¶
func LastFourGTE(v string) predicate.PaymentMethod
LastFourGTE applies the GTE predicate on the "last_four" field.
func LastFourHasPrefix ¶
func LastFourHasPrefix(v string) predicate.PaymentMethod
LastFourHasPrefix applies the HasPrefix predicate on the "last_four" field.
func LastFourHasSuffix ¶
func LastFourHasSuffix(v string) predicate.PaymentMethod
LastFourHasSuffix applies the HasSuffix predicate on the "last_four" field.
func LastFourIn ¶
func LastFourIn(vs ...string) predicate.PaymentMethod
LastFourIn applies the In predicate on the "last_four" field.
func LastFourIsNil ¶
func LastFourIsNil() predicate.PaymentMethod
LastFourIsNil applies the IsNil predicate on the "last_four" field.
func LastFourLT ¶
func LastFourLT(v string) predicate.PaymentMethod
LastFourLT applies the LT predicate on the "last_four" field.
func LastFourLTE ¶
func LastFourLTE(v string) predicate.PaymentMethod
LastFourLTE applies the LTE predicate on the "last_four" field.
func LastFourNEQ ¶
func LastFourNEQ(v string) predicate.PaymentMethod
LastFourNEQ applies the NEQ predicate on the "last_four" field.
func LastFourNotIn ¶
func LastFourNotIn(vs ...string) predicate.PaymentMethod
LastFourNotIn applies the NotIn predicate on the "last_four" field.
func LastFourNotNil ¶
func LastFourNotNil() predicate.PaymentMethod
LastFourNotNil applies the NotNil predicate on the "last_four" field.
func MetadataIsNil ¶
func MetadataIsNil() predicate.PaymentMethod
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
func MetadataNotNil() predicate.PaymentMethod
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func Not ¶
func Not(p predicate.PaymentMethod) predicate.PaymentMethod
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.PaymentMethod) predicate.PaymentMethod
Or groups predicates with the OR operator between them.
func Provider ¶
func Provider(v string) predicate.PaymentMethod
Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.
func ProviderContains ¶
func ProviderContains(v string) predicate.PaymentMethod
ProviderContains applies the Contains predicate on the "provider" field.
func ProviderContainsFold ¶
func ProviderContainsFold(v string) predicate.PaymentMethod
ProviderContainsFold applies the ContainsFold predicate on the "provider" field.
func ProviderEQ ¶
func ProviderEQ(v string) predicate.PaymentMethod
ProviderEQ applies the EQ predicate on the "provider" field.
func ProviderEqualFold ¶
func ProviderEqualFold(v string) predicate.PaymentMethod
ProviderEqualFold applies the EqualFold predicate on the "provider" field.
func ProviderGT ¶
func ProviderGT(v string) predicate.PaymentMethod
ProviderGT applies the GT predicate on the "provider" field.
func ProviderGTE ¶
func ProviderGTE(v string) predicate.PaymentMethod
ProviderGTE applies the GTE predicate on the "provider" field.
func ProviderHasPrefix ¶
func ProviderHasPrefix(v string) predicate.PaymentMethod
ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.
func ProviderHasSuffix ¶
func ProviderHasSuffix(v string) predicate.PaymentMethod
ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.
func ProviderIn ¶
func ProviderIn(vs ...string) predicate.PaymentMethod
ProviderIn applies the In predicate on the "provider" field.
func ProviderLT ¶
func ProviderLT(v string) predicate.PaymentMethod
ProviderLT applies the LT predicate on the "provider" field.
func ProviderLTE ¶
func ProviderLTE(v string) predicate.PaymentMethod
ProviderLTE applies the LTE predicate on the "provider" field.
func ProviderNEQ ¶
func ProviderNEQ(v string) predicate.PaymentMethod
ProviderNEQ applies the NEQ predicate on the "provider" field.
func ProviderNotIn ¶
func ProviderNotIn(vs ...string) predicate.PaymentMethod
ProviderNotIn applies the NotIn predicate on the "provider" field.
func ProviderPaymentMethodID ¶
func ProviderPaymentMethodID(v string) predicate.PaymentMethod
ProviderPaymentMethodID applies equality check predicate on the "provider_payment_method_id" field. It's identical to ProviderPaymentMethodIDEQ.
func ProviderPaymentMethodIDContains ¶
func ProviderPaymentMethodIDContains(v string) predicate.PaymentMethod
ProviderPaymentMethodIDContains applies the Contains predicate on the "provider_payment_method_id" field.
func ProviderPaymentMethodIDContainsFold ¶
func ProviderPaymentMethodIDContainsFold(v string) predicate.PaymentMethod
ProviderPaymentMethodIDContainsFold applies the ContainsFold predicate on the "provider_payment_method_id" field.
func ProviderPaymentMethodIDEQ ¶
func ProviderPaymentMethodIDEQ(v string) predicate.PaymentMethod
ProviderPaymentMethodIDEQ applies the EQ predicate on the "provider_payment_method_id" field.
func ProviderPaymentMethodIDEqualFold ¶
func ProviderPaymentMethodIDEqualFold(v string) predicate.PaymentMethod
ProviderPaymentMethodIDEqualFold applies the EqualFold predicate on the "provider_payment_method_id" field.
func ProviderPaymentMethodIDGT ¶
func ProviderPaymentMethodIDGT(v string) predicate.PaymentMethod
ProviderPaymentMethodIDGT applies the GT predicate on the "provider_payment_method_id" field.
func ProviderPaymentMethodIDGTE ¶
func ProviderPaymentMethodIDGTE(v string) predicate.PaymentMethod
ProviderPaymentMethodIDGTE applies the GTE predicate on the "provider_payment_method_id" field.
func ProviderPaymentMethodIDHasPrefix ¶
func ProviderPaymentMethodIDHasPrefix(v string) predicate.PaymentMethod
ProviderPaymentMethodIDHasPrefix applies the HasPrefix predicate on the "provider_payment_method_id" field.
func ProviderPaymentMethodIDHasSuffix ¶
func ProviderPaymentMethodIDHasSuffix(v string) predicate.PaymentMethod
ProviderPaymentMethodIDHasSuffix applies the HasSuffix predicate on the "provider_payment_method_id" field.
func ProviderPaymentMethodIDIn ¶
func ProviderPaymentMethodIDIn(vs ...string) predicate.PaymentMethod
ProviderPaymentMethodIDIn applies the In predicate on the "provider_payment_method_id" field.
func ProviderPaymentMethodIDLT ¶
func ProviderPaymentMethodIDLT(v string) predicate.PaymentMethod
ProviderPaymentMethodIDLT applies the LT predicate on the "provider_payment_method_id" field.
func ProviderPaymentMethodIDLTE ¶
func ProviderPaymentMethodIDLTE(v string) predicate.PaymentMethod
ProviderPaymentMethodIDLTE applies the LTE predicate on the "provider_payment_method_id" field.
func ProviderPaymentMethodIDNEQ ¶
func ProviderPaymentMethodIDNEQ(v string) predicate.PaymentMethod
ProviderPaymentMethodIDNEQ applies the NEQ predicate on the "provider_payment_method_id" field.
func ProviderPaymentMethodIDNotIn ¶
func ProviderPaymentMethodIDNotIn(vs ...string) predicate.PaymentMethod
ProviderPaymentMethodIDNotIn applies the NotIn predicate on the "provider_payment_method_id" field.
func TypeEQ ¶
func TypeEQ(v Type) predicate.PaymentMethod
TypeEQ applies the EQ predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...Type) predicate.PaymentMethod
TypeIn applies the In predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v Type) predicate.PaymentMethod
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...Type) predicate.PaymentMethod
TypeNotIn applies the NotIn predicate on the "type" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.PaymentMethod
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.PaymentMethod
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.PaymentMethod
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.PaymentMethod
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.PaymentMethod
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.PaymentMethod
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.PaymentMethod
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.PaymentMethod
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.PaymentMethod
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the PaymentMethod queries.
func ByBrand ¶
func ByBrand(opts ...sql.OrderTermOption) OrderOption
ByBrand orders the results by the brand field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCustomerField ¶
func ByCustomerField(field string, opts ...sql.OrderTermOption) OrderOption
ByCustomerField orders the results by customer field.
func ByExpMonth ¶
func ByExpMonth(opts ...sql.OrderTermOption) OrderOption
ByExpMonth orders the results by the exp_month field.
func ByExpYear ¶
func ByExpYear(opts ...sql.OrderTermOption) OrderOption
ByExpYear orders the results by the exp_year field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsDefault ¶
func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
ByIsDefault orders the results by the is_default field.
func ByLastFour ¶
func ByLastFour(opts ...sql.OrderTermOption) OrderOption
ByLastFour orders the results by the last_four field.
func ByProvider ¶
func ByProvider(opts ...sql.OrderTermOption) OrderOption
ByProvider orders the results by the provider field.
func ByProviderPaymentMethodID ¶
func ByProviderPaymentMethodID(opts ...sql.OrderTermOption) OrderOption
ByProviderPaymentMethodID orders the results by the provider_payment_method_id field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.