subscription

package
v1.0.28 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: AGPL-3.0 Imports: 6 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"
	// FieldTenantID holds the string denoting the tenant_id field in the database.
	FieldTenantID = "tenant_id"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// 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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldEnvironmentID holds the string denoting the environment_id field in the database.
	FieldEnvironmentID = "environment_id"
	// FieldLookupKey holds the string denoting the lookup_key field in the database.
	FieldLookupKey = "lookup_key"
	// FieldCustomerID holds the string denoting the customer_id field in the database.
	FieldCustomerID = "customer_id"
	// FieldPlanID holds the string denoting the plan_id field in the database.
	FieldPlanID = "plan_id"
	// FieldSubscriptionStatus holds the string denoting the subscription_status field in the database.
	FieldSubscriptionStatus = "subscription_status"
	// FieldCurrency holds the string denoting the currency field in the database.
	FieldCurrency = "currency"
	// FieldBillingAnchor holds the string denoting the billing_anchor field in the database.
	FieldBillingAnchor = "billing_anchor"
	// FieldStartDate holds the string denoting the start_date field in the database.
	FieldStartDate = "start_date"
	// FieldEndDate holds the string denoting the end_date field in the database.
	FieldEndDate = "end_date"
	// 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"
	// FieldCancelledAt holds the string denoting the cancelled_at field in the database.
	FieldCancelledAt = "cancelled_at"
	// FieldCancelAt holds the string denoting the cancel_at field in the database.
	FieldCancelAt = "cancel_at"
	// FieldCancelAtPeriodEnd holds the string denoting the cancel_at_period_end field in the database.
	FieldCancelAtPeriodEnd = "cancel_at_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"
	// FieldBillingCadence holds the string denoting the billing_cadence field in the database.
	FieldBillingCadence = "billing_cadence"
	// FieldBillingPeriod holds the string denoting the billing_period field in the database.
	FieldBillingPeriod = "billing_period"
	// FieldBillingPeriodCount holds the string denoting the billing_period_count field in the database.
	FieldBillingPeriodCount = "billing_period_count"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldPauseStatus holds the string denoting the pause_status field in the database.
	FieldPauseStatus = "pause_status"
	// FieldActivePauseID holds the string denoting the active_pause_id field in the database.
	FieldActivePauseID = "active_pause_id"
	// FieldBillingCycle holds the string denoting the billing_cycle field in the database.
	FieldBillingCycle = "billing_cycle"
	// FieldCommitmentAmount holds the string denoting the commitment_amount field in the database.
	FieldCommitmentAmount = "commitment_amount"
	// FieldOverageFactor holds the string denoting the overage_factor field in the database.
	FieldOverageFactor = "overage_factor"
	// FieldPaymentBehavior holds the string denoting the payment_behavior field in the database.
	FieldPaymentBehavior = "payment_behavior"
	// FieldCollectionMethod holds the string denoting the collection_method field in the database.
	FieldCollectionMethod = "collection_method"
	// FieldGatewayPaymentMethodID holds the string denoting the gateway_payment_method_id field in the database.
	FieldGatewayPaymentMethodID = "gateway_payment_method_id"
	// FieldCustomerTimezone holds the string denoting the customer_timezone field in the database.
	FieldCustomerTimezone = "customer_timezone"
	// FieldProrationBehavior holds the string denoting the proration_behavior field in the database.
	FieldProrationBehavior = "proration_behavior"
	// EdgeLineItems holds the string denoting the line_items edge name in mutations.
	EdgeLineItems = "line_items"
	// EdgePauses holds the string denoting the pauses edge name in mutations.
	EdgePauses = "pauses"
	// EdgeCreditGrants holds the string denoting the credit_grants edge name in mutations.
	EdgeCreditGrants = "credit_grants"
	// EdgeSchedule holds the string denoting the schedule edge name in mutations.
	EdgeSchedule = "schedule"
	// EdgeCouponAssociations holds the string denoting the coupon_associations edge name in mutations.
	EdgeCouponAssociations = "coupon_associations"
	// EdgeCouponApplications holds the string denoting the coupon_applications edge name in mutations.
	EdgeCouponApplications = "coupon_applications"
	// Table holds the table name of the subscription in the database.
	Table = "subscriptions"
	// LineItemsTable is the table that holds the line_items relation/edge.
	LineItemsTable = "subscription_line_items"
	// LineItemsInverseTable is the table name for the SubscriptionLineItem entity.
	// It exists in this package in order to avoid circular dependency with the "subscriptionlineitem" package.
	LineItemsInverseTable = "subscription_line_items"
	// LineItemsColumn is the table column denoting the line_items relation/edge.
	LineItemsColumn = "subscription_id"
	// PausesTable is the table that holds the pauses relation/edge.
	PausesTable = "subscription_pauses"
	// PausesInverseTable is the table name for the SubscriptionPause entity.
	// It exists in this package in order to avoid circular dependency with the "subscriptionpause" package.
	PausesInverseTable = "subscription_pauses"
	// PausesColumn is the table column denoting the pauses relation/edge.
	PausesColumn = "subscription_id"
	// CreditGrantsTable is the table that holds the credit_grants relation/edge.
	CreditGrantsTable = "credit_grants"
	// CreditGrantsInverseTable is the table name for the CreditGrant entity.
	// It exists in this package in order to avoid circular dependency with the "creditgrant" package.
	CreditGrantsInverseTable = "credit_grants"
	// CreditGrantsColumn is the table column denoting the credit_grants relation/edge.
	CreditGrantsColumn = "subscription_id"
	// ScheduleTable is the table that holds the schedule relation/edge.
	ScheduleTable = "subscription_schedules"
	// ScheduleInverseTable is the table name for the SubscriptionSchedule entity.
	// It exists in this package in order to avoid circular dependency with the "subscriptionschedule" package.
	ScheduleInverseTable = "subscription_schedules"
	// ScheduleColumn is the table column denoting the schedule relation/edge.
	ScheduleColumn = "subscription_id"
	// CouponAssociationsTable is the table that holds the coupon_associations relation/edge.
	CouponAssociationsTable = "coupon_associations"
	// CouponAssociationsInverseTable is the table name for the CouponAssociation entity.
	// It exists in this package in order to avoid circular dependency with the "couponassociation" package.
	CouponAssociationsInverseTable = "coupon_associations"
	// CouponAssociationsColumn is the table column denoting the coupon_associations relation/edge.
	CouponAssociationsColumn = "subscription_id"
	// CouponApplicationsTable is the table that holds the coupon_applications relation/edge.
	CouponApplicationsTable = "coupon_applications"
	// CouponApplicationsInverseTable is the table name for the CouponApplication entity.
	// It exists in this package in order to avoid circular dependency with the "couponapplication" package.
	CouponApplicationsInverseTable = "coupon_applications"
	// CouponApplicationsColumn is the table column denoting the coupon_applications relation/edge.
	CouponApplicationsColumn = "subscription_id"
)
View Source
const DefaultCollectionMethod = CollectionMethodChargeAutomatically

CollectionMethodChargeAutomatically is the default value of the CollectionMethod enum.

View Source
const DefaultPaymentBehavior = PaymentBehaviorDefaultActive

PaymentBehaviorDefaultActive is the default value of the PaymentBehavior enum.

Variables

View Source
var (
	// TenantIDValidator is a validator for the "tenant_id" field. It is called by the builders before save.
	TenantIDValidator func(string) error
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// 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
	// DefaultEnvironmentID holds the default value on creation for the "environment_id" field.
	DefaultEnvironmentID string
	// CustomerIDValidator is a validator for the "customer_id" field. It is called by the builders before save.
	CustomerIDValidator func(string) error
	// PlanIDValidator is a validator for the "plan_id" field. It is called by the builders before save.
	PlanIDValidator func(string) error
	// DefaultSubscriptionStatus holds the default value on creation for the "subscription_status" field.
	DefaultSubscriptionStatus string
	// CurrencyValidator is a validator for the "currency" field. It is called by the builders before save.
	CurrencyValidator func(string) error
	// DefaultBillingAnchor holds the default value on creation for the "billing_anchor" field.
	DefaultBillingAnchor func() time.Time
	// DefaultStartDate holds the default value on creation for the "start_date" field.
	DefaultStartDate func() time.Time
	// DefaultCurrentPeriodStart holds the default value on creation for the "current_period_start" field.
	DefaultCurrentPeriodStart func() time.Time
	// DefaultCurrentPeriodEnd holds the default value on creation for the "current_period_end" field.
	DefaultCurrentPeriodEnd func() time.Time
	// DefaultCancelAtPeriodEnd holds the default value on creation for the "cancel_at_period_end" field.
	DefaultCancelAtPeriodEnd bool
	// BillingCadenceValidator is a validator for the "billing_cadence" field. It is called by the builders before save.
	BillingCadenceValidator func(string) error
	// BillingPeriodValidator is a validator for the "billing_period" field. It is called by the builders before save.
	BillingPeriodValidator func(string) error
	// DefaultBillingPeriodCount holds the default value on creation for the "billing_period_count" field.
	DefaultBillingPeriodCount int
	// DefaultVersion holds the default value on creation for the "version" field.
	DefaultVersion int
	// DefaultPauseStatus holds the default value on creation for the "pause_status" field.
	DefaultPauseStatus string
	// DefaultBillingCycle holds the default value on creation for the "billing_cycle" field.
	DefaultBillingCycle string
	// BillingCycleValidator is a validator for the "billing_cycle" field. It is called by the builders before save.
	BillingCycleValidator func(string) error
	// DefaultOverageFactor holds the default value on creation for the "overage_factor" field.
	DefaultOverageFactor decimal.Decimal
	// DefaultCustomerTimezone holds the default value on creation for the "customer_timezone" field.
	DefaultCustomerTimezone string
	// DefaultProrationBehavior holds the default value on creation for the "proration_behavior" field.
	DefaultProrationBehavior string
	// ProrationBehaviorValidator is a validator for the "proration_behavior" field. It is called by the builders before save.
	ProrationBehaviorValidator func(string) error
)

Columns holds all SQL columns for subscription fields.

Functions

func ActivePauseID

func ActivePauseID(v string) predicate.Subscription

ActivePauseID applies equality check predicate on the "active_pause_id" field. It's identical to ActivePauseIDEQ.

func ActivePauseIDContains

func ActivePauseIDContains(v string) predicate.Subscription

ActivePauseIDContains applies the Contains predicate on the "active_pause_id" field.

func ActivePauseIDContainsFold

func ActivePauseIDContainsFold(v string) predicate.Subscription

ActivePauseIDContainsFold applies the ContainsFold predicate on the "active_pause_id" field.

func ActivePauseIDEQ

func ActivePauseIDEQ(v string) predicate.Subscription

ActivePauseIDEQ applies the EQ predicate on the "active_pause_id" field.

func ActivePauseIDEqualFold

func ActivePauseIDEqualFold(v string) predicate.Subscription

ActivePauseIDEqualFold applies the EqualFold predicate on the "active_pause_id" field.

func ActivePauseIDGT

func ActivePauseIDGT(v string) predicate.Subscription

ActivePauseIDGT applies the GT predicate on the "active_pause_id" field.

func ActivePauseIDGTE

func ActivePauseIDGTE(v string) predicate.Subscription

ActivePauseIDGTE applies the GTE predicate on the "active_pause_id" field.

func ActivePauseIDHasPrefix

func ActivePauseIDHasPrefix(v string) predicate.Subscription

ActivePauseIDHasPrefix applies the HasPrefix predicate on the "active_pause_id" field.

func ActivePauseIDHasSuffix

func ActivePauseIDHasSuffix(v string) predicate.Subscription

ActivePauseIDHasSuffix applies the HasSuffix predicate on the "active_pause_id" field.

func ActivePauseIDIn

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

ActivePauseIDIn applies the In predicate on the "active_pause_id" field.

func ActivePauseIDIsNil

func ActivePauseIDIsNil() predicate.Subscription

ActivePauseIDIsNil applies the IsNil predicate on the "active_pause_id" field.

func ActivePauseIDLT

func ActivePauseIDLT(v string) predicate.Subscription

ActivePauseIDLT applies the LT predicate on the "active_pause_id" field.

func ActivePauseIDLTE

func ActivePauseIDLTE(v string) predicate.Subscription

ActivePauseIDLTE applies the LTE predicate on the "active_pause_id" field.

func ActivePauseIDNEQ

func ActivePauseIDNEQ(v string) predicate.Subscription

ActivePauseIDNEQ applies the NEQ predicate on the "active_pause_id" field.

func ActivePauseIDNotIn

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

ActivePauseIDNotIn applies the NotIn predicate on the "active_pause_id" field.

func ActivePauseIDNotNil

func ActivePauseIDNotNil() predicate.Subscription

ActivePauseIDNotNil applies the NotNil predicate on the "active_pause_id" field.

func And

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

And groups predicates with the AND operator between them.

func BillingAnchor

func BillingAnchor(v time.Time) predicate.Subscription

BillingAnchor applies equality check predicate on the "billing_anchor" field. It's identical to BillingAnchorEQ.

func BillingAnchorEQ

func BillingAnchorEQ(v time.Time) predicate.Subscription

BillingAnchorEQ applies the EQ predicate on the "billing_anchor" field.

func BillingAnchorGT

func BillingAnchorGT(v time.Time) predicate.Subscription

BillingAnchorGT applies the GT predicate on the "billing_anchor" field.

func BillingAnchorGTE

func BillingAnchorGTE(v time.Time) predicate.Subscription

BillingAnchorGTE applies the GTE predicate on the "billing_anchor" field.

func BillingAnchorIn

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

BillingAnchorIn applies the In predicate on the "billing_anchor" field.

func BillingAnchorLT

func BillingAnchorLT(v time.Time) predicate.Subscription

BillingAnchorLT applies the LT predicate on the "billing_anchor" field.

func BillingAnchorLTE

func BillingAnchorLTE(v time.Time) predicate.Subscription

BillingAnchorLTE applies the LTE predicate on the "billing_anchor" field.

func BillingAnchorNEQ

func BillingAnchorNEQ(v time.Time) predicate.Subscription

BillingAnchorNEQ applies the NEQ predicate on the "billing_anchor" field.

func BillingAnchorNotIn

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

BillingAnchorNotIn applies the NotIn predicate on the "billing_anchor" field.

func BillingCadence

func BillingCadence(v string) predicate.Subscription

BillingCadence applies equality check predicate on the "billing_cadence" field. It's identical to BillingCadenceEQ.

func BillingCadenceContains

func BillingCadenceContains(v string) predicate.Subscription

BillingCadenceContains applies the Contains predicate on the "billing_cadence" field.

func BillingCadenceContainsFold

func BillingCadenceContainsFold(v string) predicate.Subscription

BillingCadenceContainsFold applies the ContainsFold predicate on the "billing_cadence" field.

func BillingCadenceEQ

func BillingCadenceEQ(v string) predicate.Subscription

BillingCadenceEQ applies the EQ predicate on the "billing_cadence" field.

func BillingCadenceEqualFold

func BillingCadenceEqualFold(v string) predicate.Subscription

BillingCadenceEqualFold applies the EqualFold predicate on the "billing_cadence" field.

func BillingCadenceGT

func BillingCadenceGT(v string) predicate.Subscription

BillingCadenceGT applies the GT predicate on the "billing_cadence" field.

func BillingCadenceGTE

func BillingCadenceGTE(v string) predicate.Subscription

BillingCadenceGTE applies the GTE predicate on the "billing_cadence" field.

func BillingCadenceHasPrefix

func BillingCadenceHasPrefix(v string) predicate.Subscription

BillingCadenceHasPrefix applies the HasPrefix predicate on the "billing_cadence" field.

func BillingCadenceHasSuffix

func BillingCadenceHasSuffix(v string) predicate.Subscription

BillingCadenceHasSuffix applies the HasSuffix predicate on the "billing_cadence" field.

func BillingCadenceIn

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

BillingCadenceIn applies the In predicate on the "billing_cadence" field.

func BillingCadenceLT

func BillingCadenceLT(v string) predicate.Subscription

BillingCadenceLT applies the LT predicate on the "billing_cadence" field.

func BillingCadenceLTE

func BillingCadenceLTE(v string) predicate.Subscription

BillingCadenceLTE applies the LTE predicate on the "billing_cadence" field.

func BillingCadenceNEQ

func BillingCadenceNEQ(v string) predicate.Subscription

BillingCadenceNEQ applies the NEQ predicate on the "billing_cadence" field.

func BillingCadenceNotIn

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

BillingCadenceNotIn applies the NotIn predicate on the "billing_cadence" field.

func BillingCycle added in v1.0.17

func BillingCycle(v string) predicate.Subscription

BillingCycle applies equality check predicate on the "billing_cycle" field. It's identical to BillingCycleEQ.

func BillingCycleContains added in v1.0.17

func BillingCycleContains(v string) predicate.Subscription

BillingCycleContains applies the Contains predicate on the "billing_cycle" field.

func BillingCycleContainsFold added in v1.0.17

func BillingCycleContainsFold(v string) predicate.Subscription

BillingCycleContainsFold applies the ContainsFold predicate on the "billing_cycle" field.

func BillingCycleEQ added in v1.0.17

func BillingCycleEQ(v string) predicate.Subscription

BillingCycleEQ applies the EQ predicate on the "billing_cycle" field.

func BillingCycleEqualFold added in v1.0.17

func BillingCycleEqualFold(v string) predicate.Subscription

BillingCycleEqualFold applies the EqualFold predicate on the "billing_cycle" field.

func BillingCycleGT added in v1.0.17

func BillingCycleGT(v string) predicate.Subscription

BillingCycleGT applies the GT predicate on the "billing_cycle" field.

func BillingCycleGTE added in v1.0.17

func BillingCycleGTE(v string) predicate.Subscription

BillingCycleGTE applies the GTE predicate on the "billing_cycle" field.

func BillingCycleHasPrefix added in v1.0.17

func BillingCycleHasPrefix(v string) predicate.Subscription

BillingCycleHasPrefix applies the HasPrefix predicate on the "billing_cycle" field.

func BillingCycleHasSuffix added in v1.0.17

func BillingCycleHasSuffix(v string) predicate.Subscription

BillingCycleHasSuffix applies the HasSuffix predicate on the "billing_cycle" field.

func BillingCycleIn added in v1.0.17

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

BillingCycleIn applies the In predicate on the "billing_cycle" field.

func BillingCycleLT added in v1.0.17

func BillingCycleLT(v string) predicate.Subscription

BillingCycleLT applies the LT predicate on the "billing_cycle" field.

func BillingCycleLTE added in v1.0.17

func BillingCycleLTE(v string) predicate.Subscription

BillingCycleLTE applies the LTE predicate on the "billing_cycle" field.

func BillingCycleNEQ added in v1.0.17

func BillingCycleNEQ(v string) predicate.Subscription

BillingCycleNEQ applies the NEQ predicate on the "billing_cycle" field.

func BillingCycleNotIn added in v1.0.17

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

BillingCycleNotIn applies the NotIn predicate on the "billing_cycle" field.

func BillingPeriod

func BillingPeriod(v string) predicate.Subscription

BillingPeriod applies equality check predicate on the "billing_period" field. It's identical to BillingPeriodEQ.

func BillingPeriodContains

func BillingPeriodContains(v string) predicate.Subscription

BillingPeriodContains applies the Contains predicate on the "billing_period" field.

func BillingPeriodContainsFold

func BillingPeriodContainsFold(v string) predicate.Subscription

BillingPeriodContainsFold applies the ContainsFold predicate on the "billing_period" field.

func BillingPeriodCount

func BillingPeriodCount(v int) predicate.Subscription

BillingPeriodCount applies equality check predicate on the "billing_period_count" field. It's identical to BillingPeriodCountEQ.

func BillingPeriodCountEQ

func BillingPeriodCountEQ(v int) predicate.Subscription

BillingPeriodCountEQ applies the EQ predicate on the "billing_period_count" field.

func BillingPeriodCountGT

func BillingPeriodCountGT(v int) predicate.Subscription

BillingPeriodCountGT applies the GT predicate on the "billing_period_count" field.

func BillingPeriodCountGTE

func BillingPeriodCountGTE(v int) predicate.Subscription

BillingPeriodCountGTE applies the GTE predicate on the "billing_period_count" field.

func BillingPeriodCountIn

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

BillingPeriodCountIn applies the In predicate on the "billing_period_count" field.

func BillingPeriodCountLT

func BillingPeriodCountLT(v int) predicate.Subscription

BillingPeriodCountLT applies the LT predicate on the "billing_period_count" field.

func BillingPeriodCountLTE

func BillingPeriodCountLTE(v int) predicate.Subscription

BillingPeriodCountLTE applies the LTE predicate on the "billing_period_count" field.

func BillingPeriodCountNEQ

func BillingPeriodCountNEQ(v int) predicate.Subscription

BillingPeriodCountNEQ applies the NEQ predicate on the "billing_period_count" field.

func BillingPeriodCountNotIn

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

BillingPeriodCountNotIn applies the NotIn predicate on the "billing_period_count" field.

func BillingPeriodEQ

func BillingPeriodEQ(v string) predicate.Subscription

BillingPeriodEQ applies the EQ predicate on the "billing_period" field.

func BillingPeriodEqualFold

func BillingPeriodEqualFold(v string) predicate.Subscription

BillingPeriodEqualFold applies the EqualFold predicate on the "billing_period" field.

func BillingPeriodGT

func BillingPeriodGT(v string) predicate.Subscription

BillingPeriodGT applies the GT predicate on the "billing_period" field.

func BillingPeriodGTE

func BillingPeriodGTE(v string) predicate.Subscription

BillingPeriodGTE applies the GTE predicate on the "billing_period" field.

func BillingPeriodHasPrefix

func BillingPeriodHasPrefix(v string) predicate.Subscription

BillingPeriodHasPrefix applies the HasPrefix predicate on the "billing_period" field.

func BillingPeriodHasSuffix

func BillingPeriodHasSuffix(v string) predicate.Subscription

BillingPeriodHasSuffix applies the HasSuffix predicate on the "billing_period" field.

func BillingPeriodIn

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

BillingPeriodIn applies the In predicate on the "billing_period" field.

func BillingPeriodLT

func BillingPeriodLT(v string) predicate.Subscription

BillingPeriodLT applies the LT predicate on the "billing_period" field.

func BillingPeriodLTE

func BillingPeriodLTE(v string) predicate.Subscription

BillingPeriodLTE applies the LTE predicate on the "billing_period" field.

func BillingPeriodNEQ

func BillingPeriodNEQ(v string) predicate.Subscription

BillingPeriodNEQ applies the NEQ predicate on the "billing_period" field.

func BillingPeriodNotIn

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

BillingPeriodNotIn applies the NotIn predicate on the "billing_period" field.

func CancelAt

func CancelAt(v time.Time) predicate.Subscription

CancelAt applies equality check predicate on the "cancel_at" field. It's identical to CancelAtEQ.

func CancelAtEQ

func CancelAtEQ(v time.Time) predicate.Subscription

CancelAtEQ applies the EQ predicate on the "cancel_at" field.

func CancelAtGT

func CancelAtGT(v time.Time) predicate.Subscription

CancelAtGT applies the GT predicate on the "cancel_at" field.

func CancelAtGTE

func CancelAtGTE(v time.Time) predicate.Subscription

CancelAtGTE applies the GTE predicate on the "cancel_at" field.

func CancelAtIn

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

CancelAtIn applies the In predicate on the "cancel_at" field.

func CancelAtIsNil

func CancelAtIsNil() predicate.Subscription

CancelAtIsNil applies the IsNil predicate on the "cancel_at" field.

func CancelAtLT

func CancelAtLT(v time.Time) predicate.Subscription

CancelAtLT applies the LT predicate on the "cancel_at" field.

func CancelAtLTE

func CancelAtLTE(v time.Time) predicate.Subscription

CancelAtLTE applies the LTE predicate on the "cancel_at" field.

func CancelAtNEQ

func CancelAtNEQ(v time.Time) predicate.Subscription

CancelAtNEQ applies the NEQ predicate on the "cancel_at" field.

func CancelAtNotIn

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

CancelAtNotIn applies the NotIn predicate on the "cancel_at" field.

func CancelAtNotNil

func CancelAtNotNil() predicate.Subscription

CancelAtNotNil applies the NotNil predicate on the "cancel_at" field.

func CancelAtPeriodEnd

func CancelAtPeriodEnd(v bool) predicate.Subscription

CancelAtPeriodEnd applies equality check predicate on the "cancel_at_period_end" field. It's identical to CancelAtPeriodEndEQ.

func CancelAtPeriodEndEQ

func CancelAtPeriodEndEQ(v bool) predicate.Subscription

CancelAtPeriodEndEQ applies the EQ predicate on the "cancel_at_period_end" field.

func CancelAtPeriodEndNEQ

func CancelAtPeriodEndNEQ(v bool) predicate.Subscription

CancelAtPeriodEndNEQ applies the NEQ predicate on the "cancel_at_period_end" field.

func CancelledAt

func CancelledAt(v time.Time) predicate.Subscription

CancelledAt applies equality check predicate on the "cancelled_at" field. It's identical to CancelledAtEQ.

func CancelledAtEQ

func CancelledAtEQ(v time.Time) predicate.Subscription

CancelledAtEQ applies the EQ predicate on the "cancelled_at" field.

func CancelledAtGT

func CancelledAtGT(v time.Time) predicate.Subscription

CancelledAtGT applies the GT predicate on the "cancelled_at" field.

func CancelledAtGTE

func CancelledAtGTE(v time.Time) predicate.Subscription

CancelledAtGTE applies the GTE predicate on the "cancelled_at" field.

func CancelledAtIn

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

CancelledAtIn applies the In predicate on the "cancelled_at" field.

func CancelledAtIsNil

func CancelledAtIsNil() predicate.Subscription

CancelledAtIsNil applies the IsNil predicate on the "cancelled_at" field.

func CancelledAtLT

func CancelledAtLT(v time.Time) predicate.Subscription

CancelledAtLT applies the LT predicate on the "cancelled_at" field.

func CancelledAtLTE

func CancelledAtLTE(v time.Time) predicate.Subscription

CancelledAtLTE applies the LTE predicate on the "cancelled_at" field.

func CancelledAtNEQ

func CancelledAtNEQ(v time.Time) predicate.Subscription

CancelledAtNEQ applies the NEQ predicate on the "cancelled_at" field.

func CancelledAtNotIn

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

CancelledAtNotIn applies the NotIn predicate on the "cancelled_at" field.

func CancelledAtNotNil

func CancelledAtNotNil() predicate.Subscription

CancelledAtNotNil applies the NotNil predicate on the "cancelled_at" field.

func CollectionMethodEQ added in v1.0.25

func CollectionMethodEQ(v CollectionMethod) predicate.Subscription

CollectionMethodEQ applies the EQ predicate on the "collection_method" field.

func CollectionMethodIn added in v1.0.25

func CollectionMethodIn(vs ...CollectionMethod) predicate.Subscription

CollectionMethodIn applies the In predicate on the "collection_method" field.

func CollectionMethodNEQ added in v1.0.25

func CollectionMethodNEQ(v CollectionMethod) predicate.Subscription

CollectionMethodNEQ applies the NEQ predicate on the "collection_method" field.

func CollectionMethodNotIn added in v1.0.25

func CollectionMethodNotIn(vs ...CollectionMethod) predicate.Subscription

CollectionMethodNotIn applies the NotIn predicate on the "collection_method" field.

func CollectionMethodValidator added in v1.0.25

func CollectionMethodValidator(cm CollectionMethod) error

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

func CommitmentAmount added in v1.0.18

func CommitmentAmount(v decimal.Decimal) predicate.Subscription

CommitmentAmount applies equality check predicate on the "commitment_amount" field. It's identical to CommitmentAmountEQ.

func CommitmentAmountEQ added in v1.0.18

func CommitmentAmountEQ(v decimal.Decimal) predicate.Subscription

CommitmentAmountEQ applies the EQ predicate on the "commitment_amount" field.

func CommitmentAmountGT added in v1.0.18

func CommitmentAmountGT(v decimal.Decimal) predicate.Subscription

CommitmentAmountGT applies the GT predicate on the "commitment_amount" field.

func CommitmentAmountGTE added in v1.0.18

func CommitmentAmountGTE(v decimal.Decimal) predicate.Subscription

CommitmentAmountGTE applies the GTE predicate on the "commitment_amount" field.

func CommitmentAmountIn added in v1.0.18

func CommitmentAmountIn(vs ...decimal.Decimal) predicate.Subscription

CommitmentAmountIn applies the In predicate on the "commitment_amount" field.

func CommitmentAmountIsNil added in v1.0.18

func CommitmentAmountIsNil() predicate.Subscription

CommitmentAmountIsNil applies the IsNil predicate on the "commitment_amount" field.

func CommitmentAmountLT added in v1.0.18

func CommitmentAmountLT(v decimal.Decimal) predicate.Subscription

CommitmentAmountLT applies the LT predicate on the "commitment_amount" field.

func CommitmentAmountLTE added in v1.0.18

func CommitmentAmountLTE(v decimal.Decimal) predicate.Subscription

CommitmentAmountLTE applies the LTE predicate on the "commitment_amount" field.

func CommitmentAmountNEQ added in v1.0.18

func CommitmentAmountNEQ(v decimal.Decimal) predicate.Subscription

CommitmentAmountNEQ applies the NEQ predicate on the "commitment_amount" field.

func CommitmentAmountNotIn added in v1.0.18

func CommitmentAmountNotIn(vs ...decimal.Decimal) predicate.Subscription

CommitmentAmountNotIn applies the NotIn predicate on the "commitment_amount" field.

func CommitmentAmountNotNil added in v1.0.18

func CommitmentAmountNotNil() predicate.Subscription

CommitmentAmountNotNil applies the NotNil predicate on the "commitment_amount" 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 CreatedBy

func CreatedBy(v string) predicate.Subscription

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.Subscription

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.Subscription

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.Subscription

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.Subscription

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.Subscription

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.Subscription

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.Subscription

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.Subscription

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

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

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.Subscription

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.Subscription

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.Subscription

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.Subscription

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

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

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.Subscription

CreatedByNotNil applies the NotNil predicate on the "created_by" 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 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 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 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 CustomerID

func CustomerID(v string) predicate.Subscription

CustomerID applies equality check predicate on the "customer_id" field. It's identical to CustomerIDEQ.

func CustomerIDContains

func CustomerIDContains(v string) predicate.Subscription

CustomerIDContains applies the Contains predicate on the "customer_id" field.

func CustomerIDContainsFold

func CustomerIDContainsFold(v string) predicate.Subscription

CustomerIDContainsFold applies the ContainsFold predicate on the "customer_id" field.

func CustomerIDEQ

func CustomerIDEQ(v string) predicate.Subscription

CustomerIDEQ applies the EQ predicate on the "customer_id" field.

func CustomerIDEqualFold

func CustomerIDEqualFold(v string) predicate.Subscription

CustomerIDEqualFold applies the EqualFold predicate on the "customer_id" field.

func CustomerIDGT

func CustomerIDGT(v string) predicate.Subscription

CustomerIDGT applies the GT predicate on the "customer_id" field.

func CustomerIDGTE

func CustomerIDGTE(v string) predicate.Subscription

CustomerIDGTE applies the GTE predicate on the "customer_id" field.

func CustomerIDHasPrefix

func CustomerIDHasPrefix(v string) predicate.Subscription

CustomerIDHasPrefix applies the HasPrefix predicate on the "customer_id" field.

func CustomerIDHasSuffix

func CustomerIDHasSuffix(v string) predicate.Subscription

CustomerIDHasSuffix applies the HasSuffix predicate on the "customer_id" field.

func CustomerIDIn

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

CustomerIDIn applies the In predicate on the "customer_id" field.

func CustomerIDLT

func CustomerIDLT(v string) predicate.Subscription

CustomerIDLT applies the LT predicate on the "customer_id" field.

func CustomerIDLTE

func CustomerIDLTE(v string) predicate.Subscription

CustomerIDLTE applies the LTE predicate on the "customer_id" field.

func CustomerIDNEQ

func CustomerIDNEQ(v string) predicate.Subscription

CustomerIDNEQ applies the NEQ predicate on the "customer_id" field.

func CustomerIDNotIn

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

CustomerIDNotIn applies the NotIn predicate on the "customer_id" field.

func CustomerTimezone added in v1.0.25

func CustomerTimezone(v string) predicate.Subscription

CustomerTimezone applies equality check predicate on the "customer_timezone" field. It's identical to CustomerTimezoneEQ.

func CustomerTimezoneContains added in v1.0.25

func CustomerTimezoneContains(v string) predicate.Subscription

CustomerTimezoneContains applies the Contains predicate on the "customer_timezone" field.

func CustomerTimezoneContainsFold added in v1.0.25

func CustomerTimezoneContainsFold(v string) predicate.Subscription

CustomerTimezoneContainsFold applies the ContainsFold predicate on the "customer_timezone" field.

func CustomerTimezoneEQ added in v1.0.25

func CustomerTimezoneEQ(v string) predicate.Subscription

CustomerTimezoneEQ applies the EQ predicate on the "customer_timezone" field.

func CustomerTimezoneEqualFold added in v1.0.25

func CustomerTimezoneEqualFold(v string) predicate.Subscription

CustomerTimezoneEqualFold applies the EqualFold predicate on the "customer_timezone" field.

func CustomerTimezoneGT added in v1.0.25

func CustomerTimezoneGT(v string) predicate.Subscription

CustomerTimezoneGT applies the GT predicate on the "customer_timezone" field.

func CustomerTimezoneGTE added in v1.0.25

func CustomerTimezoneGTE(v string) predicate.Subscription

CustomerTimezoneGTE applies the GTE predicate on the "customer_timezone" field.

func CustomerTimezoneHasPrefix added in v1.0.25

func CustomerTimezoneHasPrefix(v string) predicate.Subscription

CustomerTimezoneHasPrefix applies the HasPrefix predicate on the "customer_timezone" field.

func CustomerTimezoneHasSuffix added in v1.0.25

func CustomerTimezoneHasSuffix(v string) predicate.Subscription

CustomerTimezoneHasSuffix applies the HasSuffix predicate on the "customer_timezone" field.

func CustomerTimezoneIn added in v1.0.25

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

CustomerTimezoneIn applies the In predicate on the "customer_timezone" field.

func CustomerTimezoneLT added in v1.0.25

func CustomerTimezoneLT(v string) predicate.Subscription

CustomerTimezoneLT applies the LT predicate on the "customer_timezone" field.

func CustomerTimezoneLTE added in v1.0.25

func CustomerTimezoneLTE(v string) predicate.Subscription

CustomerTimezoneLTE applies the LTE predicate on the "customer_timezone" field.

func CustomerTimezoneNEQ added in v1.0.25

func CustomerTimezoneNEQ(v string) predicate.Subscription

CustomerTimezoneNEQ applies the NEQ predicate on the "customer_timezone" field.

func CustomerTimezoneNotIn added in v1.0.25

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

CustomerTimezoneNotIn applies the NotIn predicate on the "customer_timezone" field.

func EndDate

func EndDate(v time.Time) predicate.Subscription

EndDate applies equality check predicate on the "end_date" field. It's identical to EndDateEQ.

func EndDateEQ

func EndDateEQ(v time.Time) predicate.Subscription

EndDateEQ applies the EQ predicate on the "end_date" field.

func EndDateGT

func EndDateGT(v time.Time) predicate.Subscription

EndDateGT applies the GT predicate on the "end_date" field.

func EndDateGTE

func EndDateGTE(v time.Time) predicate.Subscription

EndDateGTE applies the GTE predicate on the "end_date" field.

func EndDateIn

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

EndDateIn applies the In predicate on the "end_date" field.

func EndDateIsNil

func EndDateIsNil() predicate.Subscription

EndDateIsNil applies the IsNil predicate on the "end_date" field.

func EndDateLT

func EndDateLT(v time.Time) predicate.Subscription

EndDateLT applies the LT predicate on the "end_date" field.

func EndDateLTE

func EndDateLTE(v time.Time) predicate.Subscription

EndDateLTE applies the LTE predicate on the "end_date" field.

func EndDateNEQ

func EndDateNEQ(v time.Time) predicate.Subscription

EndDateNEQ applies the NEQ predicate on the "end_date" field.

func EndDateNotIn

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

EndDateNotIn applies the NotIn predicate on the "end_date" field.

func EndDateNotNil

func EndDateNotNil() predicate.Subscription

EndDateNotNil applies the NotNil predicate on the "end_date" field.

func EnvironmentID

func EnvironmentID(v string) predicate.Subscription

EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.

func EnvironmentIDContains

func EnvironmentIDContains(v string) predicate.Subscription

EnvironmentIDContains applies the Contains predicate on the "environment_id" field.

func EnvironmentIDContainsFold

func EnvironmentIDContainsFold(v string) predicate.Subscription

EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.

func EnvironmentIDEQ

func EnvironmentIDEQ(v string) predicate.Subscription

EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.

func EnvironmentIDEqualFold

func EnvironmentIDEqualFold(v string) predicate.Subscription

EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.

func EnvironmentIDGT

func EnvironmentIDGT(v string) predicate.Subscription

EnvironmentIDGT applies the GT predicate on the "environment_id" field.

func EnvironmentIDGTE

func EnvironmentIDGTE(v string) predicate.Subscription

EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.

func EnvironmentIDHasPrefix

func EnvironmentIDHasPrefix(v string) predicate.Subscription

EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.

func EnvironmentIDHasSuffix

func EnvironmentIDHasSuffix(v string) predicate.Subscription

EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.

func EnvironmentIDIn

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

EnvironmentIDIn applies the In predicate on the "environment_id" field.

func EnvironmentIDIsNil

func EnvironmentIDIsNil() predicate.Subscription

EnvironmentIDIsNil applies the IsNil predicate on the "environment_id" field.

func EnvironmentIDLT

func EnvironmentIDLT(v string) predicate.Subscription

EnvironmentIDLT applies the LT predicate on the "environment_id" field.

func EnvironmentIDLTE

func EnvironmentIDLTE(v string) predicate.Subscription

EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.

func EnvironmentIDNEQ

func EnvironmentIDNEQ(v string) predicate.Subscription

EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.

func EnvironmentIDNotIn

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

EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.

func EnvironmentIDNotNil

func EnvironmentIDNotNil() predicate.Subscription

EnvironmentIDNotNil applies the NotNil predicate on the "environment_id" field.

func GatewayPaymentMethodID added in v1.0.25

func GatewayPaymentMethodID(v string) predicate.Subscription

GatewayPaymentMethodID applies equality check predicate on the "gateway_payment_method_id" field. It's identical to GatewayPaymentMethodIDEQ.

func GatewayPaymentMethodIDContains added in v1.0.25

func GatewayPaymentMethodIDContains(v string) predicate.Subscription

GatewayPaymentMethodIDContains applies the Contains predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDContainsFold added in v1.0.25

func GatewayPaymentMethodIDContainsFold(v string) predicate.Subscription

GatewayPaymentMethodIDContainsFold applies the ContainsFold predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDEQ added in v1.0.25

func GatewayPaymentMethodIDEQ(v string) predicate.Subscription

GatewayPaymentMethodIDEQ applies the EQ predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDEqualFold added in v1.0.25

func GatewayPaymentMethodIDEqualFold(v string) predicate.Subscription

GatewayPaymentMethodIDEqualFold applies the EqualFold predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDGT added in v1.0.25

func GatewayPaymentMethodIDGT(v string) predicate.Subscription

GatewayPaymentMethodIDGT applies the GT predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDGTE added in v1.0.25

func GatewayPaymentMethodIDGTE(v string) predicate.Subscription

GatewayPaymentMethodIDGTE applies the GTE predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDHasPrefix added in v1.0.25

func GatewayPaymentMethodIDHasPrefix(v string) predicate.Subscription

GatewayPaymentMethodIDHasPrefix applies the HasPrefix predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDHasSuffix added in v1.0.25

func GatewayPaymentMethodIDHasSuffix(v string) predicate.Subscription

GatewayPaymentMethodIDHasSuffix applies the HasSuffix predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDIn added in v1.0.25

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

GatewayPaymentMethodIDIn applies the In predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDIsNil added in v1.0.25

func GatewayPaymentMethodIDIsNil() predicate.Subscription

GatewayPaymentMethodIDIsNil applies the IsNil predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDLT added in v1.0.25

func GatewayPaymentMethodIDLT(v string) predicate.Subscription

GatewayPaymentMethodIDLT applies the LT predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDLTE added in v1.0.25

func GatewayPaymentMethodIDLTE(v string) predicate.Subscription

GatewayPaymentMethodIDLTE applies the LTE predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDNEQ added in v1.0.25

func GatewayPaymentMethodIDNEQ(v string) predicate.Subscription

GatewayPaymentMethodIDNEQ applies the NEQ predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDNotIn added in v1.0.25

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

GatewayPaymentMethodIDNotIn applies the NotIn predicate on the "gateway_payment_method_id" field.

func GatewayPaymentMethodIDNotNil added in v1.0.25

func GatewayPaymentMethodIDNotNil() predicate.Subscription

GatewayPaymentMethodIDNotNil applies the NotNil predicate on the "gateway_payment_method_id" field.

func HasCouponApplications added in v1.0.21

func HasCouponApplications() predicate.Subscription

HasCouponApplications applies the HasEdge predicate on the "coupon_applications" edge.

func HasCouponApplicationsWith added in v1.0.21

func HasCouponApplicationsWith(preds ...predicate.CouponApplication) predicate.Subscription

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

func HasCouponAssociations added in v1.0.21

func HasCouponAssociations() predicate.Subscription

HasCouponAssociations applies the HasEdge predicate on the "coupon_associations" edge.

func HasCouponAssociationsWith added in v1.0.21

func HasCouponAssociationsWith(preds ...predicate.CouponAssociation) predicate.Subscription

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

func HasCreditGrants added in v1.0.18

func HasCreditGrants() predicate.Subscription

HasCreditGrants applies the HasEdge predicate on the "credit_grants" edge.

func HasCreditGrantsWith added in v1.0.18

func HasCreditGrantsWith(preds ...predicate.CreditGrant) predicate.Subscription

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

func HasLineItems

func HasLineItems() predicate.Subscription

HasLineItems applies the HasEdge predicate on the "line_items" edge.

func HasLineItemsWith

func HasLineItemsWith(preds ...predicate.SubscriptionLineItem) predicate.Subscription

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

func HasPauses

func HasPauses() predicate.Subscription

HasPauses applies the HasEdge predicate on the "pauses" edge.

func HasPausesWith

func HasPausesWith(preds ...predicate.SubscriptionPause) predicate.Subscription

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

func HasSchedule added in v1.0.18

func HasSchedule() predicate.Subscription

HasSchedule applies the HasEdge predicate on the "schedule" edge.

func HasScheduleWith added in v1.0.18

func HasScheduleWith(preds ...predicate.SubscriptionSchedule) predicate.Subscription

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

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Subscription

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Subscription

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Subscription

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Subscription

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Subscription

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Subscription

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Subscription

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Subscription

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LookupKey

func LookupKey(v string) predicate.Subscription

LookupKey applies equality check predicate on the "lookup_key" field. It's identical to LookupKeyEQ.

func LookupKeyContains

func LookupKeyContains(v string) predicate.Subscription

LookupKeyContains applies the Contains predicate on the "lookup_key" field.

func LookupKeyContainsFold

func LookupKeyContainsFold(v string) predicate.Subscription

LookupKeyContainsFold applies the ContainsFold predicate on the "lookup_key" field.

func LookupKeyEQ

func LookupKeyEQ(v string) predicate.Subscription

LookupKeyEQ applies the EQ predicate on the "lookup_key" field.

func LookupKeyEqualFold

func LookupKeyEqualFold(v string) predicate.Subscription

LookupKeyEqualFold applies the EqualFold predicate on the "lookup_key" field.

func LookupKeyGT

func LookupKeyGT(v string) predicate.Subscription

LookupKeyGT applies the GT predicate on the "lookup_key" field.

func LookupKeyGTE

func LookupKeyGTE(v string) predicate.Subscription

LookupKeyGTE applies the GTE predicate on the "lookup_key" field.

func LookupKeyHasPrefix

func LookupKeyHasPrefix(v string) predicate.Subscription

LookupKeyHasPrefix applies the HasPrefix predicate on the "lookup_key" field.

func LookupKeyHasSuffix

func LookupKeyHasSuffix(v string) predicate.Subscription

LookupKeyHasSuffix applies the HasSuffix predicate on the "lookup_key" field.

func LookupKeyIn

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

LookupKeyIn applies the In predicate on the "lookup_key" field.

func LookupKeyIsNil

func LookupKeyIsNil() predicate.Subscription

LookupKeyIsNil applies the IsNil predicate on the "lookup_key" field.

func LookupKeyLT

func LookupKeyLT(v string) predicate.Subscription

LookupKeyLT applies the LT predicate on the "lookup_key" field.

func LookupKeyLTE

func LookupKeyLTE(v string) predicate.Subscription

LookupKeyLTE applies the LTE predicate on the "lookup_key" field.

func LookupKeyNEQ

func LookupKeyNEQ(v string) predicate.Subscription

LookupKeyNEQ applies the NEQ predicate on the "lookup_key" field.

func LookupKeyNotIn

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

LookupKeyNotIn applies the NotIn predicate on the "lookup_key" field.

func LookupKeyNotNil

func LookupKeyNotNil() predicate.Subscription

LookupKeyNotNil applies the NotNil predicate on the "lookup_key" field.

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 OverageFactor added in v1.0.18

func OverageFactor(v decimal.Decimal) predicate.Subscription

OverageFactor applies equality check predicate on the "overage_factor" field. It's identical to OverageFactorEQ.

func OverageFactorEQ added in v1.0.18

func OverageFactorEQ(v decimal.Decimal) predicate.Subscription

OverageFactorEQ applies the EQ predicate on the "overage_factor" field.

func OverageFactorGT added in v1.0.18

func OverageFactorGT(v decimal.Decimal) predicate.Subscription

OverageFactorGT applies the GT predicate on the "overage_factor" field.

func OverageFactorGTE added in v1.0.18

func OverageFactorGTE(v decimal.Decimal) predicate.Subscription

OverageFactorGTE applies the GTE predicate on the "overage_factor" field.

func OverageFactorIn added in v1.0.18

func OverageFactorIn(vs ...decimal.Decimal) predicate.Subscription

OverageFactorIn applies the In predicate on the "overage_factor" field.

func OverageFactorIsNil added in v1.0.18

func OverageFactorIsNil() predicate.Subscription

OverageFactorIsNil applies the IsNil predicate on the "overage_factor" field.

func OverageFactorLT added in v1.0.18

func OverageFactorLT(v decimal.Decimal) predicate.Subscription

OverageFactorLT applies the LT predicate on the "overage_factor" field.

func OverageFactorLTE added in v1.0.18

func OverageFactorLTE(v decimal.Decimal) predicate.Subscription

OverageFactorLTE applies the LTE predicate on the "overage_factor" field.

func OverageFactorNEQ added in v1.0.18

func OverageFactorNEQ(v decimal.Decimal) predicate.Subscription

OverageFactorNEQ applies the NEQ predicate on the "overage_factor" field.

func OverageFactorNotIn added in v1.0.18

func OverageFactorNotIn(vs ...decimal.Decimal) predicate.Subscription

OverageFactorNotIn applies the NotIn predicate on the "overage_factor" field.

func OverageFactorNotNil added in v1.0.18

func OverageFactorNotNil() predicate.Subscription

OverageFactorNotNil applies the NotNil predicate on the "overage_factor" field.

func PauseStatus

func PauseStatus(v string) predicate.Subscription

PauseStatus applies equality check predicate on the "pause_status" field. It's identical to PauseStatusEQ.

func PauseStatusContains

func PauseStatusContains(v string) predicate.Subscription

PauseStatusContains applies the Contains predicate on the "pause_status" field.

func PauseStatusContainsFold

func PauseStatusContainsFold(v string) predicate.Subscription

PauseStatusContainsFold applies the ContainsFold predicate on the "pause_status" field.

func PauseStatusEQ

func PauseStatusEQ(v string) predicate.Subscription

PauseStatusEQ applies the EQ predicate on the "pause_status" field.

func PauseStatusEqualFold

func PauseStatusEqualFold(v string) predicate.Subscription

PauseStatusEqualFold applies the EqualFold predicate on the "pause_status" field.

func PauseStatusGT

func PauseStatusGT(v string) predicate.Subscription

PauseStatusGT applies the GT predicate on the "pause_status" field.

func PauseStatusGTE

func PauseStatusGTE(v string) predicate.Subscription

PauseStatusGTE applies the GTE predicate on the "pause_status" field.

func PauseStatusHasPrefix

func PauseStatusHasPrefix(v string) predicate.Subscription

PauseStatusHasPrefix applies the HasPrefix predicate on the "pause_status" field.

func PauseStatusHasSuffix

func PauseStatusHasSuffix(v string) predicate.Subscription

PauseStatusHasSuffix applies the HasSuffix predicate on the "pause_status" field.

func PauseStatusIn

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

PauseStatusIn applies the In predicate on the "pause_status" field.

func PauseStatusLT

func PauseStatusLT(v string) predicate.Subscription

PauseStatusLT applies the LT predicate on the "pause_status" field.

func PauseStatusLTE

func PauseStatusLTE(v string) predicate.Subscription

PauseStatusLTE applies the LTE predicate on the "pause_status" field.

func PauseStatusNEQ

func PauseStatusNEQ(v string) predicate.Subscription

PauseStatusNEQ applies the NEQ predicate on the "pause_status" field.

func PauseStatusNotIn

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

PauseStatusNotIn applies the NotIn predicate on the "pause_status" field.

func PaymentBehaviorEQ added in v1.0.25

func PaymentBehaviorEQ(v PaymentBehavior) predicate.Subscription

PaymentBehaviorEQ applies the EQ predicate on the "payment_behavior" field.

func PaymentBehaviorIn added in v1.0.25

func PaymentBehaviorIn(vs ...PaymentBehavior) predicate.Subscription

PaymentBehaviorIn applies the In predicate on the "payment_behavior" field.

func PaymentBehaviorNEQ added in v1.0.25

func PaymentBehaviorNEQ(v PaymentBehavior) predicate.Subscription

PaymentBehaviorNEQ applies the NEQ predicate on the "payment_behavior" field.

func PaymentBehaviorNotIn added in v1.0.25

func PaymentBehaviorNotIn(vs ...PaymentBehavior) predicate.Subscription

PaymentBehaviorNotIn applies the NotIn predicate on the "payment_behavior" field.

func PaymentBehaviorValidator added in v1.0.25

func PaymentBehaviorValidator(pb PaymentBehavior) error

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

func PlanID

func PlanID(v string) predicate.Subscription

PlanID applies equality check predicate on the "plan_id" field. It's identical to PlanIDEQ.

func PlanIDContains

func PlanIDContains(v string) predicate.Subscription

PlanIDContains applies the Contains predicate on the "plan_id" field.

func PlanIDContainsFold

func PlanIDContainsFold(v string) predicate.Subscription

PlanIDContainsFold applies the ContainsFold predicate on the "plan_id" field.

func PlanIDEQ

func PlanIDEQ(v string) predicate.Subscription

PlanIDEQ applies the EQ predicate on the "plan_id" field.

func PlanIDEqualFold

func PlanIDEqualFold(v string) predicate.Subscription

PlanIDEqualFold applies the EqualFold predicate on the "plan_id" field.

func PlanIDGT

func PlanIDGT(v string) predicate.Subscription

PlanIDGT applies the GT predicate on the "plan_id" field.

func PlanIDGTE

func PlanIDGTE(v string) predicate.Subscription

PlanIDGTE applies the GTE predicate on the "plan_id" field.

func PlanIDHasPrefix

func PlanIDHasPrefix(v string) predicate.Subscription

PlanIDHasPrefix applies the HasPrefix predicate on the "plan_id" field.

func PlanIDHasSuffix

func PlanIDHasSuffix(v string) predicate.Subscription

PlanIDHasSuffix applies the HasSuffix predicate on the "plan_id" field.

func PlanIDIn

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

PlanIDIn applies the In predicate on the "plan_id" field.

func PlanIDLT

func PlanIDLT(v string) predicate.Subscription

PlanIDLT applies the LT predicate on the "plan_id" field.

func PlanIDLTE

func PlanIDLTE(v string) predicate.Subscription

PlanIDLTE applies the LTE predicate on the "plan_id" field.

func PlanIDNEQ

func PlanIDNEQ(v string) predicate.Subscription

PlanIDNEQ applies the NEQ predicate on the "plan_id" field.

func PlanIDNotIn

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

PlanIDNotIn applies the NotIn predicate on the "plan_id" field.

func ProrationBehavior added in v1.0.25

func ProrationBehavior(v string) predicate.Subscription

ProrationBehavior applies equality check predicate on the "proration_behavior" field. It's identical to ProrationBehaviorEQ.

func ProrationBehaviorContains added in v1.0.25

func ProrationBehaviorContains(v string) predicate.Subscription

ProrationBehaviorContains applies the Contains predicate on the "proration_behavior" field.

func ProrationBehaviorContainsFold added in v1.0.25

func ProrationBehaviorContainsFold(v string) predicate.Subscription

ProrationBehaviorContainsFold applies the ContainsFold predicate on the "proration_behavior" field.

func ProrationBehaviorEQ added in v1.0.25

func ProrationBehaviorEQ(v string) predicate.Subscription

ProrationBehaviorEQ applies the EQ predicate on the "proration_behavior" field.

func ProrationBehaviorEqualFold added in v1.0.25

func ProrationBehaviorEqualFold(v string) predicate.Subscription

ProrationBehaviorEqualFold applies the EqualFold predicate on the "proration_behavior" field.

func ProrationBehaviorGT added in v1.0.25

func ProrationBehaviorGT(v string) predicate.Subscription

ProrationBehaviorGT applies the GT predicate on the "proration_behavior" field.

func ProrationBehaviorGTE added in v1.0.25

func ProrationBehaviorGTE(v string) predicate.Subscription

ProrationBehaviorGTE applies the GTE predicate on the "proration_behavior" field.

func ProrationBehaviorHasPrefix added in v1.0.25

func ProrationBehaviorHasPrefix(v string) predicate.Subscription

ProrationBehaviorHasPrefix applies the HasPrefix predicate on the "proration_behavior" field.

func ProrationBehaviorHasSuffix added in v1.0.25

func ProrationBehaviorHasSuffix(v string) predicate.Subscription

ProrationBehaviorHasSuffix applies the HasSuffix predicate on the "proration_behavior" field.

func ProrationBehaviorIn added in v1.0.25

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

ProrationBehaviorIn applies the In predicate on the "proration_behavior" field.

func ProrationBehaviorLT added in v1.0.25

func ProrationBehaviorLT(v string) predicate.Subscription

ProrationBehaviorLT applies the LT predicate on the "proration_behavior" field.

func ProrationBehaviorLTE added in v1.0.25

func ProrationBehaviorLTE(v string) predicate.Subscription

ProrationBehaviorLTE applies the LTE predicate on the "proration_behavior" field.

func ProrationBehaviorNEQ added in v1.0.25

func ProrationBehaviorNEQ(v string) predicate.Subscription

ProrationBehaviorNEQ applies the NEQ predicate on the "proration_behavior" field.

func ProrationBehaviorNotIn added in v1.0.25

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

ProrationBehaviorNotIn applies the NotIn predicate on the "proration_behavior" field.

func StartDate

func StartDate(v time.Time) predicate.Subscription

StartDate applies equality check predicate on the "start_date" field. It's identical to StartDateEQ.

func StartDateEQ

func StartDateEQ(v time.Time) predicate.Subscription

StartDateEQ applies the EQ predicate on the "start_date" field.

func StartDateGT

func StartDateGT(v time.Time) predicate.Subscription

StartDateGT applies the GT predicate on the "start_date" field.

func StartDateGTE

func StartDateGTE(v time.Time) predicate.Subscription

StartDateGTE applies the GTE predicate on the "start_date" field.

func StartDateIn

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

StartDateIn applies the In predicate on the "start_date" field.

func StartDateLT

func StartDateLT(v time.Time) predicate.Subscription

StartDateLT applies the LT predicate on the "start_date" field.

func StartDateLTE

func StartDateLTE(v time.Time) predicate.Subscription

StartDateLTE applies the LTE predicate on the "start_date" field.

func StartDateNEQ

func StartDateNEQ(v time.Time) predicate.Subscription

StartDateNEQ applies the NEQ predicate on the "start_date" field.

func StartDateNotIn

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

StartDateNotIn applies the NotIn predicate on the "start_date" field.

func Status

func Status(v string) predicate.Subscription

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Subscription

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Subscription

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Subscription

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

func StatusEqualFold

func StatusEqualFold(v string) predicate.Subscription

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Subscription

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Subscription

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Subscription

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Subscription

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

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

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

func StatusLT

func StatusLT(v string) predicate.Subscription

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Subscription

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Subscription

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

func StatusNotIn

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

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

func SubscriptionStatus

func SubscriptionStatus(v string) predicate.Subscription

SubscriptionStatus applies equality check predicate on the "subscription_status" field. It's identical to SubscriptionStatusEQ.

func SubscriptionStatusContains

func SubscriptionStatusContains(v string) predicate.Subscription

SubscriptionStatusContains applies the Contains predicate on the "subscription_status" field.

func SubscriptionStatusContainsFold

func SubscriptionStatusContainsFold(v string) predicate.Subscription

SubscriptionStatusContainsFold applies the ContainsFold predicate on the "subscription_status" field.

func SubscriptionStatusEQ

func SubscriptionStatusEQ(v string) predicate.Subscription

SubscriptionStatusEQ applies the EQ predicate on the "subscription_status" field.

func SubscriptionStatusEqualFold

func SubscriptionStatusEqualFold(v string) predicate.Subscription

SubscriptionStatusEqualFold applies the EqualFold predicate on the "subscription_status" field.

func SubscriptionStatusGT

func SubscriptionStatusGT(v string) predicate.Subscription

SubscriptionStatusGT applies the GT predicate on the "subscription_status" field.

func SubscriptionStatusGTE

func SubscriptionStatusGTE(v string) predicate.Subscription

SubscriptionStatusGTE applies the GTE predicate on the "subscription_status" field.

func SubscriptionStatusHasPrefix

func SubscriptionStatusHasPrefix(v string) predicate.Subscription

SubscriptionStatusHasPrefix applies the HasPrefix predicate on the "subscription_status" field.

func SubscriptionStatusHasSuffix

func SubscriptionStatusHasSuffix(v string) predicate.Subscription

SubscriptionStatusHasSuffix applies the HasSuffix predicate on the "subscription_status" field.

func SubscriptionStatusIn

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

SubscriptionStatusIn applies the In predicate on the "subscription_status" field.

func SubscriptionStatusLT

func SubscriptionStatusLT(v string) predicate.Subscription

SubscriptionStatusLT applies the LT predicate on the "subscription_status" field.

func SubscriptionStatusLTE

func SubscriptionStatusLTE(v string) predicate.Subscription

SubscriptionStatusLTE applies the LTE predicate on the "subscription_status" field.

func SubscriptionStatusNEQ

func SubscriptionStatusNEQ(v string) predicate.Subscription

SubscriptionStatusNEQ applies the NEQ predicate on the "subscription_status" field.

func SubscriptionStatusNotIn

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

SubscriptionStatusNotIn applies the NotIn predicate on the "subscription_status" field.

func TenantID

func TenantID(v string) predicate.Subscription

TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.

func TenantIDContains

func TenantIDContains(v string) predicate.Subscription

TenantIDContains applies the Contains predicate on the "tenant_id" field.

func TenantIDContainsFold

func TenantIDContainsFold(v string) predicate.Subscription

TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.

func TenantIDEQ

func TenantIDEQ(v string) predicate.Subscription

TenantIDEQ applies the EQ predicate on the "tenant_id" field.

func TenantIDEqualFold

func TenantIDEqualFold(v string) predicate.Subscription

TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.

func TenantIDGT

func TenantIDGT(v string) predicate.Subscription

TenantIDGT applies the GT predicate on the "tenant_id" field.

func TenantIDGTE

func TenantIDGTE(v string) predicate.Subscription

TenantIDGTE applies the GTE predicate on the "tenant_id" field.

func TenantIDHasPrefix

func TenantIDHasPrefix(v string) predicate.Subscription

TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.

func TenantIDHasSuffix

func TenantIDHasSuffix(v string) predicate.Subscription

TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.

func TenantIDIn

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

TenantIDIn applies the In predicate on the "tenant_id" field.

func TenantIDLT

func TenantIDLT(v string) predicate.Subscription

TenantIDLT applies the LT predicate on the "tenant_id" field.

func TenantIDLTE

func TenantIDLTE(v string) predicate.Subscription

TenantIDLTE applies the LTE predicate on the "tenant_id" field.

func TenantIDNEQ

func TenantIDNEQ(v string) predicate.Subscription

TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.

func TenantIDNotIn

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

TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.

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 UpdatedBy

func UpdatedBy(v string) predicate.Subscription

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.Subscription

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.Subscription

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.Subscription

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.Subscription

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.Subscription

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.Subscription

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.Subscription

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.Subscription

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

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

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Subscription

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.Subscription

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.Subscription

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.Subscription

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

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

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Subscription

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Version

func Version(v int) predicate.Subscription

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionEQ

func VersionEQ(v int) predicate.Subscription

VersionEQ applies the EQ predicate on the "version" field.

func VersionGT

func VersionGT(v int) predicate.Subscription

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v int) predicate.Subscription

VersionGTE applies the GTE predicate on the "version" field.

func VersionIn

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

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v int) predicate.Subscription

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v int) predicate.Subscription

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v int) predicate.Subscription

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

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

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type CollectionMethod added in v1.0.25

type CollectionMethod string

CollectionMethod defines the type for the "collection_method" enum field.

const (
	CollectionMethodChargeAutomatically CollectionMethod = "charge_automatically"
	CollectionMethodSendInvoice         CollectionMethod = "send_invoice"
)

CollectionMethod values.

func (CollectionMethod) String added in v1.0.25

func (cm CollectionMethod) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Subscription queries.

func ByActivePauseID

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

ByActivePauseID orders the results by the active_pause_id field.

func ByBillingAnchor

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

ByBillingAnchor orders the results by the billing_anchor field.

func ByBillingCadence

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

ByBillingCadence orders the results by the billing_cadence field.

func ByBillingCycle added in v1.0.17

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

ByBillingCycle orders the results by the billing_cycle field.

func ByBillingPeriod

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

ByBillingPeriod orders the results by the billing_period field.

func ByBillingPeriodCount

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

ByBillingPeriodCount orders the results by the billing_period_count field.

func ByCancelAt

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

ByCancelAt orders the results by the cancel_at field.

func ByCancelAtPeriodEnd

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

ByCancelAtPeriodEnd orders the results by the cancel_at_period_end field.

func ByCancelledAt

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

ByCancelledAt orders the results by the cancelled_at field.

func ByCollectionMethod added in v1.0.25

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

ByCollectionMethod orders the results by the collection_method field.

func ByCommitmentAmount added in v1.0.18

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

ByCommitmentAmount orders the results by the commitment_amount field.

func ByCouponApplications added in v1.0.21

func ByCouponApplications(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByCouponApplications orders the results by coupon_applications terms.

func ByCouponApplicationsCount added in v1.0.21

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

ByCouponApplicationsCount orders the results by coupon_applications count.

func ByCouponAssociations added in v1.0.21

func ByCouponAssociations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByCouponAssociations orders the results by coupon_associations terms.

func ByCouponAssociationsCount added in v1.0.21

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

ByCouponAssociationsCount orders the results by coupon_associations count.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByCreditGrants added in v1.0.18

func ByCreditGrants(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByCreditGrants orders the results by credit_grants terms.

func ByCreditGrantsCount added in v1.0.18

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

ByCreditGrantsCount orders the results by credit_grants count.

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 ByCustomerID

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

ByCustomerID orders the results by the customer_id field.

func ByCustomerTimezone added in v1.0.25

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

ByCustomerTimezone orders the results by the customer_timezone field.

func ByEndDate

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

ByEndDate orders the results by the end_date field.

func ByEnvironmentID

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

ByEnvironmentID orders the results by the environment_id field.

func ByGatewayPaymentMethodID added in v1.0.25

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

ByGatewayPaymentMethodID orders the results by the gateway_payment_method_id field.

func ByID

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

ByID orders the results by the id field.

func ByLineItems

func ByLineItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByLineItems orders the results by line_items terms.

func ByLineItemsCount

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

ByLineItemsCount orders the results by line_items count.

func ByLookupKey

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

ByLookupKey orders the results by the lookup_key field.

func ByOverageFactor added in v1.0.18

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

ByOverageFactor orders the results by the overage_factor field.

func ByPauseStatus

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

ByPauseStatus orders the results by the pause_status field.

func ByPauses

func ByPauses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPauses orders the results by pauses terms.

func ByPausesCount

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

ByPausesCount orders the results by pauses count.

func ByPaymentBehavior added in v1.0.25

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

ByPaymentBehavior orders the results by the payment_behavior field.

func ByPlanID

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

ByPlanID orders the results by the plan_id field.

func ByProrationBehavior added in v1.0.25

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

ByProrationBehavior orders the results by the proration_behavior field.

func ByScheduleField added in v1.0.18

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

ByScheduleField orders the results by schedule field.

func ByStartDate

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

ByStartDate orders the results by the start_date field.

func ByStatus

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

ByStatus orders the results by the status field.

func BySubscriptionStatus

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

BySubscriptionStatus orders the results by the subscription_status field.

func ByTenantID

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

ByTenantID orders the results by the tenant_id 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.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

func ByVersion

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

ByVersion orders the results by the version field.

type PaymentBehavior added in v1.0.25

type PaymentBehavior string

PaymentBehavior defines the type for the "payment_behavior" enum field.

const (
	PaymentBehaviorAllowIncomplete   PaymentBehavior = "allow_incomplete"
	PaymentBehaviorDefaultIncomplete PaymentBehavior = "default_incomplete"
	PaymentBehaviorErrorIfIncomplete PaymentBehavior = "error_if_incomplete"
	PaymentBehaviorDefaultActive     PaymentBehavior = "default_active"
)

PaymentBehavior values.

func (PaymentBehavior) String added in v1.0.25

func (pb PaymentBehavior) String() string

Jump to

Keyboard shortcuts

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