subscription

package
v0.0.0-...-667ef6b Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the subscription type in the database.
	Label = "subscription"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldProviderSubscriptionID holds the string denoting the provider_subscription_id field in the database.
	FieldProviderSubscriptionID = "provider_subscription_id"
	// FieldProvider holds the string denoting the provider field in the database.
	FieldProvider = "provider"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldPriceID holds the string denoting the price_id field in the database.
	FieldPriceID = "price_id"
	// FieldAmount holds the string denoting the amount field in the database.
	FieldAmount = "amount"
	// FieldCurrency holds the string denoting the currency field in the database.
	FieldCurrency = "currency"
	// FieldInterval holds the string denoting the interval field in the database.
	FieldInterval = "interval"
	// FieldIntervalCount holds the string denoting the interval_count field in the database.
	FieldIntervalCount = "interval_count"
	// FieldCurrentPeriodStart holds the string denoting the current_period_start field in the database.
	FieldCurrentPeriodStart = "current_period_start"
	// FieldCurrentPeriodEnd holds the string denoting the current_period_end field in the database.
	FieldCurrentPeriodEnd = "current_period_end"
	// FieldTrialStart holds the string denoting the trial_start field in the database.
	FieldTrialStart = "trial_start"
	// FieldTrialEnd holds the string denoting the trial_end field in the database.
	FieldTrialEnd = "trial_end"
	// FieldCanceledAt holds the string denoting the canceled_at field in the database.
	FieldCanceledAt = "canceled_at"
	// FieldEndedAt holds the string denoting the ended_at field in the database.
	FieldEndedAt = "ended_at"
	// 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 subscription in the database.
	Table = "subscriptions"
	// CustomerTable is the table that holds the customer relation/edge.
	CustomerTable = "subscriptions"
	// 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_subscriptions"
)
View Source
const DefaultStatus = StatusIncomplete

StatusIncomplete is the default value of the Status enum.

Variables

View Source
var (
	// ProviderSubscriptionIDValidator is a validator for the "provider_subscription_id" field. It is called by the builders before save.
	ProviderSubscriptionIDValidator 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
	// PriceIDValidator is a validator for the "price_id" field. It is called by the builders before save.
	PriceIDValidator func(string) error
	// AmountValidator is a validator for the "amount" field. It is called by the builders before save.
	AmountValidator func(int64) error
	// DefaultCurrency holds the default value on creation for the "currency" field.
	DefaultCurrency string
	// CurrencyValidator is a validator for the "currency" field. It is called by the builders before save.
	CurrencyValidator func(string) error
	// DefaultIntervalCount holds the default value on creation for the "interval_count" field.
	DefaultIntervalCount int
	// IntervalCountValidator is a validator for the "interval_count" field. It is called by the builders before save.
	IntervalCountValidator func(int) 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
)

Columns holds all SQL columns for subscription fields.

View Source
var ForeignKeys = []string{
	"payment_customer_subscriptions",
}

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

Functions

func Amount

func Amount(v int64) predicate.Subscription

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

func AmountEQ

func AmountEQ(v int64) predicate.Subscription

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

func AmountGT

func AmountGT(v int64) predicate.Subscription

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

func AmountGTE

func AmountGTE(v int64) predicate.Subscription

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

func AmountIn

func AmountIn(vs ...int64) predicate.Subscription

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

func AmountLT

func AmountLT(v int64) predicate.Subscription

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

func AmountLTE

func AmountLTE(v int64) predicate.Subscription

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

func AmountNEQ

func AmountNEQ(v int64) predicate.Subscription

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

func AmountNotIn

func AmountNotIn(vs ...int64) predicate.Subscription

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

func And

func And(predicates ...predicate.Subscription) predicate.Subscription

And groups predicates with the AND operator between them.

func CanceledAt

func CanceledAt(v time.Time) predicate.Subscription

CanceledAt applies equality check predicate on the "canceled_at" field. It's identical to CanceledAtEQ.

func CanceledAtEQ

func CanceledAtEQ(v time.Time) predicate.Subscription

CanceledAtEQ applies the EQ predicate on the "canceled_at" field.

func CanceledAtGT

func CanceledAtGT(v time.Time) predicate.Subscription

CanceledAtGT applies the GT predicate on the "canceled_at" field.

func CanceledAtGTE

func CanceledAtGTE(v time.Time) predicate.Subscription

CanceledAtGTE applies the GTE predicate on the "canceled_at" field.

func CanceledAtIn

func CanceledAtIn(vs ...time.Time) predicate.Subscription

CanceledAtIn applies the In predicate on the "canceled_at" field.

func CanceledAtIsNil

func CanceledAtIsNil() predicate.Subscription

CanceledAtIsNil applies the IsNil predicate on the "canceled_at" field.

func CanceledAtLT

func CanceledAtLT(v time.Time) predicate.Subscription

CanceledAtLT applies the LT predicate on the "canceled_at" field.

func CanceledAtLTE

func CanceledAtLTE(v time.Time) predicate.Subscription

CanceledAtLTE applies the LTE predicate on the "canceled_at" field.

func CanceledAtNEQ

func CanceledAtNEQ(v time.Time) predicate.Subscription

CanceledAtNEQ applies the NEQ predicate on the "canceled_at" field.

func CanceledAtNotIn

func CanceledAtNotIn(vs ...time.Time) predicate.Subscription

CanceledAtNotIn applies the NotIn predicate on the "canceled_at" field.

func CanceledAtNotNil

func CanceledAtNotNil() predicate.Subscription

CanceledAtNotNil applies the NotNil predicate on the "canceled_at" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Subscription

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Subscription

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Subscription

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Subscription

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Subscription

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Subscription

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Subscription

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

func CreatedAtNotIn

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

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

func Currency

func Currency(v string) predicate.Subscription

Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.

func CurrencyContains

func CurrencyContains(v string) predicate.Subscription

CurrencyContains applies the Contains predicate on the "currency" field.

func CurrencyContainsFold

func CurrencyContainsFold(v string) predicate.Subscription

CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.

func CurrencyEQ

func CurrencyEQ(v string) predicate.Subscription

CurrencyEQ applies the EQ predicate on the "currency" field.

func CurrencyEqualFold

func CurrencyEqualFold(v string) predicate.Subscription

CurrencyEqualFold applies the EqualFold predicate on the "currency" field.

func CurrencyGT

func CurrencyGT(v string) predicate.Subscription

CurrencyGT applies the GT predicate on the "currency" field.

func CurrencyGTE

func CurrencyGTE(v string) predicate.Subscription

CurrencyGTE applies the GTE predicate on the "currency" field.

func CurrencyHasPrefix

func CurrencyHasPrefix(v string) predicate.Subscription

CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.

func CurrencyHasSuffix

func CurrencyHasSuffix(v string) predicate.Subscription

CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.

func CurrencyIn

func CurrencyIn(vs ...string) predicate.Subscription

CurrencyIn applies the In predicate on the "currency" field.

func CurrencyLT

func CurrencyLT(v string) predicate.Subscription

CurrencyLT applies the LT predicate on the "currency" field.

func CurrencyLTE

func CurrencyLTE(v string) predicate.Subscription

CurrencyLTE applies the LTE predicate on the "currency" field.

func CurrencyNEQ

func CurrencyNEQ(v string) predicate.Subscription

CurrencyNEQ applies the NEQ predicate on the "currency" field.

func CurrencyNotIn

func CurrencyNotIn(vs ...string) predicate.Subscription

CurrencyNotIn applies the NotIn predicate on the "currency" field.

func CurrentPeriodEnd

func CurrentPeriodEnd(v time.Time) predicate.Subscription

CurrentPeriodEnd applies equality check predicate on the "current_period_end" field. It's identical to CurrentPeriodEndEQ.

func CurrentPeriodEndEQ

func CurrentPeriodEndEQ(v time.Time) predicate.Subscription

CurrentPeriodEndEQ applies the EQ predicate on the "current_period_end" field.

func CurrentPeriodEndGT

func CurrentPeriodEndGT(v time.Time) predicate.Subscription

CurrentPeriodEndGT applies the GT predicate on the "current_period_end" field.

func CurrentPeriodEndGTE

func CurrentPeriodEndGTE(v time.Time) predicate.Subscription

CurrentPeriodEndGTE applies the GTE predicate on the "current_period_end" field.

func CurrentPeriodEndIn

func CurrentPeriodEndIn(vs ...time.Time) predicate.Subscription

CurrentPeriodEndIn applies the In predicate on the "current_period_end" field.

func CurrentPeriodEndIsNil

func CurrentPeriodEndIsNil() predicate.Subscription

CurrentPeriodEndIsNil applies the IsNil predicate on the "current_period_end" field.

func CurrentPeriodEndLT

func CurrentPeriodEndLT(v time.Time) predicate.Subscription

CurrentPeriodEndLT applies the LT predicate on the "current_period_end" field.

func CurrentPeriodEndLTE

func CurrentPeriodEndLTE(v time.Time) predicate.Subscription

CurrentPeriodEndLTE applies the LTE predicate on the "current_period_end" field.

func CurrentPeriodEndNEQ

func CurrentPeriodEndNEQ(v time.Time) predicate.Subscription

CurrentPeriodEndNEQ applies the NEQ predicate on the "current_period_end" field.

func CurrentPeriodEndNotIn

func CurrentPeriodEndNotIn(vs ...time.Time) predicate.Subscription

CurrentPeriodEndNotIn applies the NotIn predicate on the "current_period_end" field.

func CurrentPeriodEndNotNil

func CurrentPeriodEndNotNil() predicate.Subscription

CurrentPeriodEndNotNil applies the NotNil predicate on the "current_period_end" field.

func CurrentPeriodStart

func CurrentPeriodStart(v time.Time) predicate.Subscription

CurrentPeriodStart applies equality check predicate on the "current_period_start" field. It's identical to CurrentPeriodStartEQ.

func CurrentPeriodStartEQ

func CurrentPeriodStartEQ(v time.Time) predicate.Subscription

CurrentPeriodStartEQ applies the EQ predicate on the "current_period_start" field.

func CurrentPeriodStartGT

func CurrentPeriodStartGT(v time.Time) predicate.Subscription

CurrentPeriodStartGT applies the GT predicate on the "current_period_start" field.

func CurrentPeriodStartGTE

func CurrentPeriodStartGTE(v time.Time) predicate.Subscription

CurrentPeriodStartGTE applies the GTE predicate on the "current_period_start" field.

func CurrentPeriodStartIn

func CurrentPeriodStartIn(vs ...time.Time) predicate.Subscription

CurrentPeriodStartIn applies the In predicate on the "current_period_start" field.

func CurrentPeriodStartIsNil

func CurrentPeriodStartIsNil() predicate.Subscription

CurrentPeriodStartIsNil applies the IsNil predicate on the "current_period_start" field.

func CurrentPeriodStartLT

func CurrentPeriodStartLT(v time.Time) predicate.Subscription

CurrentPeriodStartLT applies the LT predicate on the "current_period_start" field.

func CurrentPeriodStartLTE

func CurrentPeriodStartLTE(v time.Time) predicate.Subscription

CurrentPeriodStartLTE applies the LTE predicate on the "current_period_start" field.

func CurrentPeriodStartNEQ

func CurrentPeriodStartNEQ(v time.Time) predicate.Subscription

CurrentPeriodStartNEQ applies the NEQ predicate on the "current_period_start" field.

func CurrentPeriodStartNotIn

func CurrentPeriodStartNotIn(vs ...time.Time) predicate.Subscription

CurrentPeriodStartNotIn applies the NotIn predicate on the "current_period_start" field.

func CurrentPeriodStartNotNil

func CurrentPeriodStartNotNil() predicate.Subscription

CurrentPeriodStartNotNil applies the NotNil predicate on the "current_period_start" field.

func EndedAt

func EndedAt(v time.Time) predicate.Subscription

EndedAt applies equality check predicate on the "ended_at" field. It's identical to EndedAtEQ.

func EndedAtEQ

func EndedAtEQ(v time.Time) predicate.Subscription

EndedAtEQ applies the EQ predicate on the "ended_at" field.

func EndedAtGT

func EndedAtGT(v time.Time) predicate.Subscription

EndedAtGT applies the GT predicate on the "ended_at" field.

func EndedAtGTE

func EndedAtGTE(v time.Time) predicate.Subscription

EndedAtGTE applies the GTE predicate on the "ended_at" field.

func EndedAtIn

func EndedAtIn(vs ...time.Time) predicate.Subscription

EndedAtIn applies the In predicate on the "ended_at" field.

func EndedAtIsNil

func EndedAtIsNil() predicate.Subscription

EndedAtIsNil applies the IsNil predicate on the "ended_at" field.

func EndedAtLT

func EndedAtLT(v time.Time) predicate.Subscription

EndedAtLT applies the LT predicate on the "ended_at" field.

func EndedAtLTE

func EndedAtLTE(v time.Time) predicate.Subscription

EndedAtLTE applies the LTE predicate on the "ended_at" field.

func EndedAtNEQ

func EndedAtNEQ(v time.Time) predicate.Subscription

EndedAtNEQ applies the NEQ predicate on the "ended_at" field.

func EndedAtNotIn

func EndedAtNotIn(vs ...time.Time) predicate.Subscription

EndedAtNotIn applies the NotIn predicate on the "ended_at" field.

func EndedAtNotNil

func EndedAtNotNil() predicate.Subscription

EndedAtNotNil applies the NotNil predicate on the "ended_at" field.

func HasCustomer

func HasCustomer() predicate.Subscription

HasCustomer applies the HasEdge predicate on the "customer" edge.

func HasCustomerWith

func HasCustomerWith(preds ...predicate.PaymentCustomer) predicate.Subscription

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

func ID

func ID(id int) predicate.Subscription

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Subscription

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Subscription

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Subscription

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Subscription

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Subscription

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Subscription

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Subscription

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Subscription

IDNotIn applies the NotIn predicate on the ID field.

func IntervalCount

func IntervalCount(v int) predicate.Subscription

IntervalCount applies equality check predicate on the "interval_count" field. It's identical to IntervalCountEQ.

func IntervalCountEQ

func IntervalCountEQ(v int) predicate.Subscription

IntervalCountEQ applies the EQ predicate on the "interval_count" field.

func IntervalCountGT

func IntervalCountGT(v int) predicate.Subscription

IntervalCountGT applies the GT predicate on the "interval_count" field.

func IntervalCountGTE

func IntervalCountGTE(v int) predicate.Subscription

IntervalCountGTE applies the GTE predicate on the "interval_count" field.

func IntervalCountIn

func IntervalCountIn(vs ...int) predicate.Subscription

IntervalCountIn applies the In predicate on the "interval_count" field.

func IntervalCountLT

func IntervalCountLT(v int) predicate.Subscription

IntervalCountLT applies the LT predicate on the "interval_count" field.

func IntervalCountLTE

func IntervalCountLTE(v int) predicate.Subscription

IntervalCountLTE applies the LTE predicate on the "interval_count" field.

func IntervalCountNEQ

func IntervalCountNEQ(v int) predicate.Subscription

IntervalCountNEQ applies the NEQ predicate on the "interval_count" field.

func IntervalCountNotIn

func IntervalCountNotIn(vs ...int) predicate.Subscription

IntervalCountNotIn applies the NotIn predicate on the "interval_count" field.

func IntervalEQ

func IntervalEQ(v Interval) predicate.Subscription

IntervalEQ applies the EQ predicate on the "interval" field.

func IntervalIn

func IntervalIn(vs ...Interval) predicate.Subscription

IntervalIn applies the In predicate on the "interval" field.

func IntervalNEQ

func IntervalNEQ(v Interval) predicate.Subscription

IntervalNEQ applies the NEQ predicate on the "interval" field.

func IntervalNotIn

func IntervalNotIn(vs ...Interval) predicate.Subscription

IntervalNotIn applies the NotIn predicate on the "interval" field.

func IntervalValidator

func IntervalValidator(i Interval) error

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

func MetadataIsNil

func MetadataIsNil() predicate.Subscription

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Subscription

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Subscription) predicate.Subscription

Or groups predicates with the OR operator between them.

func PriceID

func PriceID(v string) predicate.Subscription

PriceID applies equality check predicate on the "price_id" field. It's identical to PriceIDEQ.

func PriceIDContains

func PriceIDContains(v string) predicate.Subscription

PriceIDContains applies the Contains predicate on the "price_id" field.

func PriceIDContainsFold

func PriceIDContainsFold(v string) predicate.Subscription

PriceIDContainsFold applies the ContainsFold predicate on the "price_id" field.

func PriceIDEQ

func PriceIDEQ(v string) predicate.Subscription

PriceIDEQ applies the EQ predicate on the "price_id" field.

func PriceIDEqualFold

func PriceIDEqualFold(v string) predicate.Subscription

PriceIDEqualFold applies the EqualFold predicate on the "price_id" field.

func PriceIDGT

func PriceIDGT(v string) predicate.Subscription

PriceIDGT applies the GT predicate on the "price_id" field.

func PriceIDGTE

func PriceIDGTE(v string) predicate.Subscription

PriceIDGTE applies the GTE predicate on the "price_id" field.

func PriceIDHasPrefix

func PriceIDHasPrefix(v string) predicate.Subscription

PriceIDHasPrefix applies the HasPrefix predicate on the "price_id" field.

func PriceIDHasSuffix

func PriceIDHasSuffix(v string) predicate.Subscription

PriceIDHasSuffix applies the HasSuffix predicate on the "price_id" field.

func PriceIDIn

func PriceIDIn(vs ...string) predicate.Subscription

PriceIDIn applies the In predicate on the "price_id" field.

func PriceIDLT

func PriceIDLT(v string) predicate.Subscription

PriceIDLT applies the LT predicate on the "price_id" field.

func PriceIDLTE

func PriceIDLTE(v string) predicate.Subscription

PriceIDLTE applies the LTE predicate on the "price_id" field.

func PriceIDNEQ

func PriceIDNEQ(v string) predicate.Subscription

PriceIDNEQ applies the NEQ predicate on the "price_id" field.

func PriceIDNotIn

func PriceIDNotIn(vs ...string) predicate.Subscription

PriceIDNotIn applies the NotIn predicate on the "price_id" field.

func Provider

func Provider(v string) predicate.Subscription

Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.

func ProviderContains

func ProviderContains(v string) predicate.Subscription

ProviderContains applies the Contains predicate on the "provider" field.

func ProviderContainsFold

func ProviderContainsFold(v string) predicate.Subscription

ProviderContainsFold applies the ContainsFold predicate on the "provider" field.

func ProviderEQ

func ProviderEQ(v string) predicate.Subscription

ProviderEQ applies the EQ predicate on the "provider" field.

func ProviderEqualFold

func ProviderEqualFold(v string) predicate.Subscription

ProviderEqualFold applies the EqualFold predicate on the "provider" field.

func ProviderGT

func ProviderGT(v string) predicate.Subscription

ProviderGT applies the GT predicate on the "provider" field.

func ProviderGTE

func ProviderGTE(v string) predicate.Subscription

ProviderGTE applies the GTE predicate on the "provider" field.

func ProviderHasPrefix

func ProviderHasPrefix(v string) predicate.Subscription

ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.

func ProviderHasSuffix

func ProviderHasSuffix(v string) predicate.Subscription

ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.

func ProviderIn

func ProviderIn(vs ...string) predicate.Subscription

ProviderIn applies the In predicate on the "provider" field.

func ProviderLT

func ProviderLT(v string) predicate.Subscription

ProviderLT applies the LT predicate on the "provider" field.

func ProviderLTE

func ProviderLTE(v string) predicate.Subscription

ProviderLTE applies the LTE predicate on the "provider" field.

func ProviderNEQ

func ProviderNEQ(v string) predicate.Subscription

ProviderNEQ applies the NEQ predicate on the "provider" field.

func ProviderNotIn

func ProviderNotIn(vs ...string) predicate.Subscription

ProviderNotIn applies the NotIn predicate on the "provider" field.

func ProviderSubscriptionID

func ProviderSubscriptionID(v string) predicate.Subscription

ProviderSubscriptionID applies equality check predicate on the "provider_subscription_id" field. It's identical to ProviderSubscriptionIDEQ.

func ProviderSubscriptionIDContains

func ProviderSubscriptionIDContains(v string) predicate.Subscription

ProviderSubscriptionIDContains applies the Contains predicate on the "provider_subscription_id" field.

func ProviderSubscriptionIDContainsFold

func ProviderSubscriptionIDContainsFold(v string) predicate.Subscription

ProviderSubscriptionIDContainsFold applies the ContainsFold predicate on the "provider_subscription_id" field.

func ProviderSubscriptionIDEQ

func ProviderSubscriptionIDEQ(v string) predicate.Subscription

ProviderSubscriptionIDEQ applies the EQ predicate on the "provider_subscription_id" field.

func ProviderSubscriptionIDEqualFold

func ProviderSubscriptionIDEqualFold(v string) predicate.Subscription

ProviderSubscriptionIDEqualFold applies the EqualFold predicate on the "provider_subscription_id" field.

func ProviderSubscriptionIDGT

func ProviderSubscriptionIDGT(v string) predicate.Subscription

ProviderSubscriptionIDGT applies the GT predicate on the "provider_subscription_id" field.

func ProviderSubscriptionIDGTE

func ProviderSubscriptionIDGTE(v string) predicate.Subscription

ProviderSubscriptionIDGTE applies the GTE predicate on the "provider_subscription_id" field.

func ProviderSubscriptionIDHasPrefix

func ProviderSubscriptionIDHasPrefix(v string) predicate.Subscription

ProviderSubscriptionIDHasPrefix applies the HasPrefix predicate on the "provider_subscription_id" field.

func ProviderSubscriptionIDHasSuffix

func ProviderSubscriptionIDHasSuffix(v string) predicate.Subscription

ProviderSubscriptionIDHasSuffix applies the HasSuffix predicate on the "provider_subscription_id" field.

func ProviderSubscriptionIDIn

func ProviderSubscriptionIDIn(vs ...string) predicate.Subscription

ProviderSubscriptionIDIn applies the In predicate on the "provider_subscription_id" field.

func ProviderSubscriptionIDLT

func ProviderSubscriptionIDLT(v string) predicate.Subscription

ProviderSubscriptionIDLT applies the LT predicate on the "provider_subscription_id" field.

func ProviderSubscriptionIDLTE

func ProviderSubscriptionIDLTE(v string) predicate.Subscription

ProviderSubscriptionIDLTE applies the LTE predicate on the "provider_subscription_id" field.

func ProviderSubscriptionIDNEQ

func ProviderSubscriptionIDNEQ(v string) predicate.Subscription

ProviderSubscriptionIDNEQ applies the NEQ predicate on the "provider_subscription_id" field.

func ProviderSubscriptionIDNotIn

func ProviderSubscriptionIDNotIn(vs ...string) predicate.Subscription

ProviderSubscriptionIDNotIn applies the NotIn predicate on the "provider_subscription_id" field.

func StatusEQ

func StatusEQ(v Status) predicate.Subscription

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

func StatusIn

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

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

func StatusNEQ

func StatusNEQ(v Status) predicate.Subscription

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

func StatusNotIn

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

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 TrialEnd

func TrialEnd(v time.Time) predicate.Subscription

TrialEnd applies equality check predicate on the "trial_end" field. It's identical to TrialEndEQ.

func TrialEndEQ

func TrialEndEQ(v time.Time) predicate.Subscription

TrialEndEQ applies the EQ predicate on the "trial_end" field.

func TrialEndGT

func TrialEndGT(v time.Time) predicate.Subscription

TrialEndGT applies the GT predicate on the "trial_end" field.

func TrialEndGTE

func TrialEndGTE(v time.Time) predicate.Subscription

TrialEndGTE applies the GTE predicate on the "trial_end" field.

func TrialEndIn

func TrialEndIn(vs ...time.Time) predicate.Subscription

TrialEndIn applies the In predicate on the "trial_end" field.

func TrialEndIsNil

func TrialEndIsNil() predicate.Subscription

TrialEndIsNil applies the IsNil predicate on the "trial_end" field.

func TrialEndLT

func TrialEndLT(v time.Time) predicate.Subscription

TrialEndLT applies the LT predicate on the "trial_end" field.

func TrialEndLTE

func TrialEndLTE(v time.Time) predicate.Subscription

TrialEndLTE applies the LTE predicate on the "trial_end" field.

func TrialEndNEQ

func TrialEndNEQ(v time.Time) predicate.Subscription

TrialEndNEQ applies the NEQ predicate on the "trial_end" field.

func TrialEndNotIn

func TrialEndNotIn(vs ...time.Time) predicate.Subscription

TrialEndNotIn applies the NotIn predicate on the "trial_end" field.

func TrialEndNotNil

func TrialEndNotNil() predicate.Subscription

TrialEndNotNil applies the NotNil predicate on the "trial_end" field.

func TrialStart

func TrialStart(v time.Time) predicate.Subscription

TrialStart applies equality check predicate on the "trial_start" field. It's identical to TrialStartEQ.

func TrialStartEQ

func TrialStartEQ(v time.Time) predicate.Subscription

TrialStartEQ applies the EQ predicate on the "trial_start" field.

func TrialStartGT

func TrialStartGT(v time.Time) predicate.Subscription

TrialStartGT applies the GT predicate on the "trial_start" field.

func TrialStartGTE

func TrialStartGTE(v time.Time) predicate.Subscription

TrialStartGTE applies the GTE predicate on the "trial_start" field.

func TrialStartIn

func TrialStartIn(vs ...time.Time) predicate.Subscription

TrialStartIn applies the In predicate on the "trial_start" field.

func TrialStartIsNil

func TrialStartIsNil() predicate.Subscription

TrialStartIsNil applies the IsNil predicate on the "trial_start" field.

func TrialStartLT

func TrialStartLT(v time.Time) predicate.Subscription

TrialStartLT applies the LT predicate on the "trial_start" field.

func TrialStartLTE

func TrialStartLTE(v time.Time) predicate.Subscription

TrialStartLTE applies the LTE predicate on the "trial_start" field.

func TrialStartNEQ

func TrialStartNEQ(v time.Time) predicate.Subscription

TrialStartNEQ applies the NEQ predicate on the "trial_start" field.

func TrialStartNotIn

func TrialStartNotIn(vs ...time.Time) predicate.Subscription

TrialStartNotIn applies the NotIn predicate on the "trial_start" field.

func TrialStartNotNil

func TrialStartNotNil() predicate.Subscription

TrialStartNotNil applies the NotNil predicate on the "trial_start" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Subscription

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Subscription

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Subscription

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Subscription

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Subscription

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Subscription

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Subscription

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

func UpdatedAtNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Interval

type Interval string

Interval defines the type for the "interval" enum field.

const (
	IntervalDay   Interval = "day"
	IntervalWeek  Interval = "week"
	IntervalMonth Interval = "month"
	IntervalYear  Interval = "year"
)

Interval values.

func (Interval) String

func (i Interval) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Subscription queries.

func ByAmount

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

ByAmount orders the results by the amount field.

func ByCanceledAt

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

ByCanceledAt orders the results by the canceled_at field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCurrency

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

ByCurrency orders the results by the currency field.

func ByCurrentPeriodEnd

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

ByCurrentPeriodEnd orders the results by the current_period_end field.

func ByCurrentPeriodStart

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

ByCurrentPeriodStart orders the results by the current_period_start field.

func ByCustomerField

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

ByCustomerField orders the results by customer field.

func ByEndedAt

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

ByEndedAt orders the results by the ended_at field.

func ByID

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

ByID orders the results by the id field.

func ByInterval

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

ByInterval orders the results by the interval field.

func ByIntervalCount

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

ByIntervalCount orders the results by the interval_count field.

func ByPriceID

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

ByPriceID orders the results by the price_id field.

func ByProvider

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

ByProvider orders the results by the provider field.

func ByProviderSubscriptionID

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

ByProviderSubscriptionID orders the results by the provider_subscription_id field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTrialEnd

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

ByTrialEnd orders the results by the trial_end field.

func ByTrialStart

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

ByTrialStart orders the results by the trial_start field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

type Status

type Status string

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

const (
	StatusIncomplete        Status = "incomplete"
	StatusIncompleteExpired Status = "incomplete_expired"
	StatusTrialing          Status = "trialing"
	StatusActive            Status = "active"
	StatusPastDue           Status = "past_due"
	StatusCanceled          Status = "canceled"
	StatusUnpaid            Status = "unpaid"
	StatusPaused            Status = "paused"
)

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