Documentation
¶
Index ¶
- Constants
- Variables
- func ActiveFrom(v time.Time) predicate.Subscription
- func ActiveFromEQ(v time.Time) predicate.Subscription
- func ActiveFromGT(v time.Time) predicate.Subscription
- func ActiveFromGTE(v time.Time) predicate.Subscription
- func ActiveFromIn(vs ...time.Time) predicate.Subscription
- func ActiveFromLT(v time.Time) predicate.Subscription
- func ActiveFromLTE(v time.Time) predicate.Subscription
- func ActiveFromNEQ(v time.Time) predicate.Subscription
- func ActiveFromNotIn(vs ...time.Time) predicate.Subscription
- func ActiveTo(v time.Time) predicate.Subscription
- func ActiveToEQ(v time.Time) predicate.Subscription
- func ActiveToGT(v time.Time) predicate.Subscription
- func ActiveToGTE(v time.Time) predicate.Subscription
- func ActiveToIn(vs ...time.Time) predicate.Subscription
- func ActiveToIsNil() predicate.Subscription
- func ActiveToLT(v time.Time) predicate.Subscription
- func ActiveToLTE(v time.Time) predicate.Subscription
- func ActiveToNEQ(v time.Time) predicate.Subscription
- func ActiveToNotIn(vs ...time.Time) predicate.Subscription
- func ActiveToNotNil() predicate.Subscription
- func And(predicates ...predicate.Subscription) predicate.Subscription
- func AnnotationsIsNil() predicate.Subscription
- func AnnotationsNotNil() predicate.Subscription
- func BillingAnchor(v time.Time) predicate.Subscription
- func BillingAnchorEQ(v time.Time) predicate.Subscription
- func BillingAnchorGT(v time.Time) predicate.Subscription
- func BillingAnchorGTE(v time.Time) predicate.Subscription
- func BillingAnchorIn(vs ...time.Time) predicate.Subscription
- func BillingAnchorLT(v time.Time) predicate.Subscription
- func BillingAnchorLTE(v time.Time) predicate.Subscription
- func BillingAnchorNEQ(v time.Time) predicate.Subscription
- func BillingAnchorNotIn(vs ...time.Time) predicate.Subscription
- func BillingCadence(v datetime.ISODurationString) predicate.Subscription
- func BillingCadenceContains(v datetime.ISODurationString) predicate.Subscription
- func BillingCadenceContainsFold(v datetime.ISODurationString) predicate.Subscription
- func BillingCadenceEQ(v datetime.ISODurationString) predicate.Subscription
- func BillingCadenceEqualFold(v datetime.ISODurationString) predicate.Subscription
- func BillingCadenceGT(v datetime.ISODurationString) predicate.Subscription
- func BillingCadenceGTE(v datetime.ISODurationString) predicate.Subscription
- func BillingCadenceHasPrefix(v datetime.ISODurationString) predicate.Subscription
- func BillingCadenceHasSuffix(v datetime.ISODurationString) predicate.Subscription
- func BillingCadenceIn(vs ...datetime.ISODurationString) predicate.Subscription
- func BillingCadenceLT(v datetime.ISODurationString) predicate.Subscription
- func BillingCadenceLTE(v datetime.ISODurationString) predicate.Subscription
- func BillingCadenceNEQ(v datetime.ISODurationString) predicate.Subscription
- func BillingCadenceNotIn(vs ...datetime.ISODurationString) predicate.Subscription
- func CreatedAt(v time.Time) predicate.Subscription
- func CreatedAtEQ(v time.Time) predicate.Subscription
- func CreatedAtGT(v time.Time) predicate.Subscription
- func CreatedAtGTE(v time.Time) predicate.Subscription
- func CreatedAtIn(vs ...time.Time) predicate.Subscription
- func CreatedAtLT(v time.Time) predicate.Subscription
- func CreatedAtLTE(v time.Time) predicate.Subscription
- func CreatedAtNEQ(v time.Time) predicate.Subscription
- func CreatedAtNotIn(vs ...time.Time) predicate.Subscription
- func Currency(v currencyx.Code) predicate.Subscription
- func CurrencyContains(v currencyx.Code) predicate.Subscription
- func CurrencyContainsFold(v currencyx.Code) predicate.Subscription
- func CurrencyEQ(v currencyx.Code) predicate.Subscription
- func CurrencyEqualFold(v currencyx.Code) predicate.Subscription
- func CurrencyGT(v currencyx.Code) predicate.Subscription
- func CurrencyGTE(v currencyx.Code) predicate.Subscription
- func CurrencyHasPrefix(v currencyx.Code) predicate.Subscription
- func CurrencyHasSuffix(v currencyx.Code) predicate.Subscription
- func CurrencyIn(vs ...currencyx.Code) predicate.Subscription
- func CurrencyLT(v currencyx.Code) predicate.Subscription
- func CurrencyLTE(v currencyx.Code) predicate.Subscription
- func CurrencyNEQ(v currencyx.Code) predicate.Subscription
- func CurrencyNotIn(vs ...currencyx.Code) predicate.Subscription
- func CustomerID(v string) predicate.Subscription
- func CustomerIDContains(v string) predicate.Subscription
- func CustomerIDContainsFold(v string) predicate.Subscription
- func CustomerIDEQ(v string) predicate.Subscription
- func CustomerIDEqualFold(v string) predicate.Subscription
- func CustomerIDGT(v string) predicate.Subscription
- func CustomerIDGTE(v string) predicate.Subscription
- func CustomerIDHasPrefix(v string) predicate.Subscription
- func CustomerIDHasSuffix(v string) predicate.Subscription
- func CustomerIDIn(vs ...string) predicate.Subscription
- func CustomerIDLT(v string) predicate.Subscription
- func CustomerIDLTE(v string) predicate.Subscription
- func CustomerIDNEQ(v string) predicate.Subscription
- func CustomerIDNotIn(vs ...string) predicate.Subscription
- func DeletedAt(v time.Time) predicate.Subscription
- func DeletedAtEQ(v time.Time) predicate.Subscription
- func DeletedAtGT(v time.Time) predicate.Subscription
- func DeletedAtGTE(v time.Time) predicate.Subscription
- func DeletedAtIn(vs ...time.Time) predicate.Subscription
- func DeletedAtIsNil() predicate.Subscription
- func DeletedAtLT(v time.Time) predicate.Subscription
- func DeletedAtLTE(v time.Time) predicate.Subscription
- func DeletedAtNEQ(v time.Time) predicate.Subscription
- func DeletedAtNotIn(vs ...time.Time) predicate.Subscription
- func DeletedAtNotNil() predicate.Subscription
- func Description(v string) predicate.Subscription
- func DescriptionContains(v string) predicate.Subscription
- func DescriptionContainsFold(v string) predicate.Subscription
- func DescriptionEQ(v string) predicate.Subscription
- func DescriptionEqualFold(v string) predicate.Subscription
- func DescriptionGT(v string) predicate.Subscription
- func DescriptionGTE(v string) predicate.Subscription
- func DescriptionHasPrefix(v string) predicate.Subscription
- func DescriptionHasSuffix(v string) predicate.Subscription
- func DescriptionIn(vs ...string) predicate.Subscription
- func DescriptionIsNil() predicate.Subscription
- func DescriptionLT(v string) predicate.Subscription
- func DescriptionLTE(v string) predicate.Subscription
- func DescriptionNEQ(v string) predicate.Subscription
- func DescriptionNotIn(vs ...string) predicate.Subscription
- func DescriptionNotNil() predicate.Subscription
- func HasAddons() predicate.Subscription
- func HasAddonsWith(preds ...predicate.SubscriptionAddon) predicate.Subscription
- func HasBillingLines() predicate.Subscription
- func HasBillingLinesWith(preds ...predicate.BillingInvoiceLine) predicate.Subscription
- func HasBillingSplitLineGroups() predicate.Subscription
- func HasBillingSplitLineGroupsWith(preds ...predicate.BillingInvoiceSplitLineGroup) predicate.Subscription
- func HasBillingSyncState() predicate.Subscription
- func HasBillingSyncStateWith(preds ...predicate.SubscriptionBillingSyncState) predicate.Subscription
- func HasChargesCreditPurchase() predicate.Subscription
- func HasChargesCreditPurchaseWith(preds ...predicate.ChargeCreditPurchase) predicate.Subscription
- func HasChargesFlatFee() predicate.Subscription
- func HasChargesFlatFeeWith(preds ...predicate.ChargeFlatFee) predicate.Subscription
- func HasChargesUsageBased() predicate.Subscription
- func HasChargesUsageBasedWith(preds ...predicate.ChargeUsageBased) predicate.Subscription
- func HasCustomer() predicate.Subscription
- func HasCustomerWith(preds ...predicate.Customer) predicate.Subscription
- func HasPhases() predicate.Subscription
- func HasPhasesWith(preds ...predicate.SubscriptionPhase) predicate.Subscription
- func HasPlan() predicate.Subscription
- func HasPlanWith(preds ...predicate.Plan) predicate.Subscription
- func ID(id string) predicate.Subscription
- func IDContainsFold(id string) predicate.Subscription
- func IDEQ(id string) predicate.Subscription
- func IDEqualFold(id string) predicate.Subscription
- func IDGT(id string) predicate.Subscription
- func IDGTE(id string) predicate.Subscription
- func IDIn(ids ...string) predicate.Subscription
- func IDLT(id string) predicate.Subscription
- func IDLTE(id string) predicate.Subscription
- func IDNEQ(id string) predicate.Subscription
- func IDNotIn(ids ...string) predicate.Subscription
- func MetadataIsNil() predicate.Subscription
- func MetadataNotNil() predicate.Subscription
- func Name(v string) predicate.Subscription
- func NameContains(v string) predicate.Subscription
- func NameContainsFold(v string) predicate.Subscription
- func NameEQ(v string) predicate.Subscription
- func NameEqualFold(v string) predicate.Subscription
- func NameGT(v string) predicate.Subscription
- func NameGTE(v string) predicate.Subscription
- func NameHasPrefix(v string) predicate.Subscription
- func NameHasSuffix(v string) predicate.Subscription
- func NameIn(vs ...string) predicate.Subscription
- func NameLT(v string) predicate.Subscription
- func NameLTE(v string) predicate.Subscription
- func NameNEQ(v string) predicate.Subscription
- func NameNotIn(vs ...string) predicate.Subscription
- func Namespace(v string) predicate.Subscription
- func NamespaceContains(v string) predicate.Subscription
- func NamespaceContainsFold(v string) predicate.Subscription
- func NamespaceEQ(v string) predicate.Subscription
- func NamespaceEqualFold(v string) predicate.Subscription
- func NamespaceGT(v string) predicate.Subscription
- func NamespaceGTE(v string) predicate.Subscription
- func NamespaceHasPrefix(v string) predicate.Subscription
- func NamespaceHasSuffix(v string) predicate.Subscription
- func NamespaceIn(vs ...string) predicate.Subscription
- func NamespaceLT(v string) predicate.Subscription
- func NamespaceLTE(v string) predicate.Subscription
- func NamespaceNEQ(v string) predicate.Subscription
- func NamespaceNotIn(vs ...string) predicate.Subscription
- func Not(p predicate.Subscription) predicate.Subscription
- func Or(predicates ...predicate.Subscription) predicate.Subscription
- func PlanID(v string) predicate.Subscription
- func PlanIDContains(v string) predicate.Subscription
- func PlanIDContainsFold(v string) predicate.Subscription
- func PlanIDEQ(v string) predicate.Subscription
- func PlanIDEqualFold(v string) predicate.Subscription
- func PlanIDGT(v string) predicate.Subscription
- func PlanIDGTE(v string) predicate.Subscription
- func PlanIDHasPrefix(v string) predicate.Subscription
- func PlanIDHasSuffix(v string) predicate.Subscription
- func PlanIDIn(vs ...string) predicate.Subscription
- func PlanIDIsNil() predicate.Subscription
- func PlanIDLT(v string) predicate.Subscription
- func PlanIDLTE(v string) predicate.Subscription
- func PlanIDNEQ(v string) predicate.Subscription
- func PlanIDNotIn(vs ...string) predicate.Subscription
- func PlanIDNotNil() predicate.Subscription
- func SettlementModeEQ(v productcatalog.SettlementMode) predicate.Subscription
- func SettlementModeIn(vs ...productcatalog.SettlementMode) predicate.Subscription
- func SettlementModeNEQ(v productcatalog.SettlementMode) predicate.Subscription
- func SettlementModeNotIn(vs ...productcatalog.SettlementMode) predicate.Subscription
- func SettlementModeValidator(sm productcatalog.SettlementMode) error
- func UpdatedAt(v time.Time) predicate.Subscription
- func UpdatedAtEQ(v time.Time) predicate.Subscription
- func UpdatedAtGT(v time.Time) predicate.Subscription
- func UpdatedAtGTE(v time.Time) predicate.Subscription
- func UpdatedAtIn(vs ...time.Time) predicate.Subscription
- func UpdatedAtLT(v time.Time) predicate.Subscription
- func UpdatedAtLTE(v time.Time) predicate.Subscription
- func UpdatedAtNEQ(v time.Time) predicate.Subscription
- func UpdatedAtNotIn(vs ...time.Time) predicate.Subscription
- func ValidColumn(column string) bool
- type OrderOption
- func ByActiveFrom(opts ...sql.OrderTermOption) OrderOption
- func ByActiveTo(opts ...sql.OrderTermOption) OrderOption
- func ByAddons(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAddonsCount(opts ...sql.OrderTermOption) OrderOption
- func ByBillingAnchor(opts ...sql.OrderTermOption) OrderOption
- func ByBillingCadence(opts ...sql.OrderTermOption) OrderOption
- func ByBillingLines(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBillingLinesCount(opts ...sql.OrderTermOption) OrderOption
- func ByBillingSplitLineGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBillingSplitLineGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByBillingSyncStateField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByChargesCreditPurchase(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChargesCreditPurchaseCount(opts ...sql.OrderTermOption) OrderOption
- func ByChargesFlatFee(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChargesFlatFeeCount(opts ...sql.OrderTermOption) OrderOption
- func ByChargesUsageBased(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChargesUsageBasedCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCurrency(opts ...sql.OrderTermOption) OrderOption
- func ByCustomerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCustomerID(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByPhases(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPhasesCount(opts ...sql.OrderTermOption) OrderOption
- func ByPlanField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPlanID(opts ...sql.OrderTermOption) OrderOption
- func ByProRatingConfig(opts ...sql.OrderTermOption) OrderOption
- func BySettlementMode(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // FieldNamespace holds the string denoting the namespace field in the database. FieldNamespace = "namespace" // FieldAnnotations holds the string denoting the annotations field in the database. FieldAnnotations = "annotations" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // FieldActiveFrom holds the string denoting the active_from field in the database. FieldActiveFrom = "active_from" // FieldActiveTo holds the string denoting the active_to field in the database. FieldActiveTo = "active_to" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldPlanID holds the string denoting the plan_id field in the database. FieldPlanID = "plan_id" // FieldCustomerID holds the string denoting the customer_id field in the database. FieldCustomerID = "customer_id" // 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" // FieldBillingCadence holds the string denoting the billing_cadence field in the database. FieldBillingCadence = "billing_cadence" // FieldProRatingConfig holds the string denoting the pro_rating_config field in the database. FieldProRatingConfig = "pro_rating_config" // FieldSettlementMode holds the string denoting the settlement_mode field in the database. FieldSettlementMode = "settlement_mode" // EdgePlan holds the string denoting the plan edge name in mutations. EdgePlan = "plan" // EdgeCustomer holds the string denoting the customer edge name in mutations. EdgeCustomer = "customer" // EdgePhases holds the string denoting the phases edge name in mutations. EdgePhases = "phases" // EdgeBillingLines holds the string denoting the billing_lines edge name in mutations. EdgeBillingLines = "billing_lines" // EdgeBillingSplitLineGroups holds the string denoting the billing_split_line_groups edge name in mutations. EdgeBillingSplitLineGroups = "billing_split_line_groups" // EdgeChargesUsageBased holds the string denoting the charges_usage_based edge name in mutations. EdgeChargesUsageBased = "charges_usage_based" // EdgeChargesCreditPurchase holds the string denoting the charges_credit_purchase edge name in mutations. EdgeChargesCreditPurchase = "charges_credit_purchase" // EdgeChargesFlatFee holds the string denoting the charges_flat_fee edge name in mutations. EdgeChargesFlatFee = "charges_flat_fee" // EdgeAddons holds the string denoting the addons edge name in mutations. EdgeAddons = "addons" // EdgeBillingSyncState holds the string denoting the billing_sync_state edge name in mutations. EdgeBillingSyncState = "billing_sync_state" // Table holds the table name of the subscription in the database. Table = "subscriptions" // PlanTable is the table that holds the plan relation/edge. PlanTable = "subscriptions" // PlanInverseTable is the table name for the Plan entity. // It exists in this package in order to avoid circular dependency with the "plan" package. PlanInverseTable = "plans" // PlanColumn is the table column denoting the plan relation/edge. PlanColumn = "plan_id" // CustomerTable is the table that holds the customer relation/edge. CustomerTable = "subscriptions" // CustomerInverseTable is the table name for the Customer entity. // It exists in this package in order to avoid circular dependency with the "customer" package. CustomerInverseTable = "customers" // CustomerColumn is the table column denoting the customer relation/edge. CustomerColumn = "customer_id" // PhasesTable is the table that holds the phases relation/edge. PhasesTable = "subscription_phases" // PhasesInverseTable is the table name for the SubscriptionPhase entity. // It exists in this package in order to avoid circular dependency with the "subscriptionphase" package. PhasesInverseTable = "subscription_phases" // PhasesColumn is the table column denoting the phases relation/edge. PhasesColumn = "subscription_id" // BillingLinesTable is the table that holds the billing_lines relation/edge. BillingLinesTable = "billing_invoice_lines" // BillingLinesInverseTable is the table name for the BillingInvoiceLine entity. // It exists in this package in order to avoid circular dependency with the "billinginvoiceline" package. BillingLinesInverseTable = "billing_invoice_lines" // BillingLinesColumn is the table column denoting the billing_lines relation/edge. BillingLinesColumn = "subscription_id" // BillingSplitLineGroupsTable is the table that holds the billing_split_line_groups relation/edge. BillingSplitLineGroupsTable = "billing_invoice_split_line_groups" // BillingSplitLineGroupsInverseTable is the table name for the BillingInvoiceSplitLineGroup entity. // It exists in this package in order to avoid circular dependency with the "billinginvoicesplitlinegroup" package. BillingSplitLineGroupsInverseTable = "billing_invoice_split_line_groups" // BillingSplitLineGroupsColumn is the table column denoting the billing_split_line_groups relation/edge. BillingSplitLineGroupsColumn = "subscription_id" // ChargesUsageBasedTable is the table that holds the charges_usage_based relation/edge. ChargesUsageBasedTable = "charge_usage_based" // ChargesUsageBasedInverseTable is the table name for the ChargeUsageBased entity. // It exists in this package in order to avoid circular dependency with the "chargeusagebased" package. ChargesUsageBasedInverseTable = "charge_usage_based" // ChargesUsageBasedColumn is the table column denoting the charges_usage_based relation/edge. ChargesUsageBasedColumn = "subscription_id" // ChargesCreditPurchaseTable is the table that holds the charges_credit_purchase relation/edge. ChargesCreditPurchaseTable = "charge_credit_purchases" // ChargesCreditPurchaseInverseTable is the table name for the ChargeCreditPurchase entity. // It exists in this package in order to avoid circular dependency with the "chargecreditpurchase" package. ChargesCreditPurchaseInverseTable = "charge_credit_purchases" // ChargesCreditPurchaseColumn is the table column denoting the charges_credit_purchase relation/edge. ChargesCreditPurchaseColumn = "subscription_id" // ChargesFlatFeeTable is the table that holds the charges_flat_fee relation/edge. ChargesFlatFeeTable = "charge_flat_fees" // ChargesFlatFeeInverseTable is the table name for the ChargeFlatFee entity. // It exists in this package in order to avoid circular dependency with the "chargeflatfee" package. ChargesFlatFeeInverseTable = "charge_flat_fees" // ChargesFlatFeeColumn is the table column denoting the charges_flat_fee relation/edge. ChargesFlatFeeColumn = "subscription_id" // AddonsTable is the table that holds the addons relation/edge. AddonsTable = "subscription_addons" // AddonsInverseTable is the table name for the SubscriptionAddon entity. // It exists in this package in order to avoid circular dependency with the "subscriptionaddon" package. AddonsInverseTable = "subscription_addons" // AddonsColumn is the table column denoting the addons relation/edge. AddonsColumn = "subscription_id" // BillingSyncStateTable is the table that holds the billing_sync_state relation/edge. BillingSyncStateTable = "subscription_billing_sync_states" // BillingSyncStateInverseTable is the table name for the SubscriptionBillingSyncState entity. // It exists in this package in order to avoid circular dependency with the "subscriptionbillingsyncstate" package. BillingSyncStateInverseTable = "subscription_billing_sync_states" // BillingSyncStateColumn is the table column denoting the billing_sync_state relation/edge. BillingSyncStateColumn = "subscription_id" )
const DefaultSettlementMode productcatalog.SettlementMode = "credit_then_invoice"
Variables ¶
var ( // NamespaceValidator is a validator for the "namespace" field. It is called by the builders before save. NamespaceValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultName holds the default value on creation for the "name" field. DefaultName string // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // CustomerIDValidator is a validator for the "customer_id" field. It is called by the builders before save. CustomerIDValidator func(string) error // CurrencyValidator is a validator for the "currency" field. It is called by the builders before save. CurrencyValidator func(string) error // DefaultProRatingConfig holds the default value on creation for the "pro_rating_config" field. DefaultProRatingConfig func() productcatalog.ProRatingConfig // DefaultID holds the default value on creation for the "id" field. DefaultID func() string // ValueScanner of all Subscription fields. ValueScanner struct { ProRatingConfig field.TypeValueScanner[productcatalog.ProRatingConfig] } )
var Columns = []string{ FieldID, FieldNamespace, FieldAnnotations, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldMetadata, FieldActiveFrom, FieldActiveTo, FieldName, FieldDescription, FieldPlanID, FieldCustomerID, FieldCurrency, FieldBillingAnchor, FieldBillingCadence, FieldProRatingConfig, FieldSettlementMode, }
Columns holds all SQL columns for subscription fields.
Functions ¶
func ActiveFrom ¶
func ActiveFrom(v time.Time) predicate.Subscription
ActiveFrom applies equality check predicate on the "active_from" field. It's identical to ActiveFromEQ.
func ActiveFromEQ ¶
func ActiveFromEQ(v time.Time) predicate.Subscription
ActiveFromEQ applies the EQ predicate on the "active_from" field.
func ActiveFromGT ¶
func ActiveFromGT(v time.Time) predicate.Subscription
ActiveFromGT applies the GT predicate on the "active_from" field.
func ActiveFromGTE ¶
func ActiveFromGTE(v time.Time) predicate.Subscription
ActiveFromGTE applies the GTE predicate on the "active_from" field.
func ActiveFromIn ¶
func ActiveFromIn(vs ...time.Time) predicate.Subscription
ActiveFromIn applies the In predicate on the "active_from" field.
func ActiveFromLT ¶
func ActiveFromLT(v time.Time) predicate.Subscription
ActiveFromLT applies the LT predicate on the "active_from" field.
func ActiveFromLTE ¶
func ActiveFromLTE(v time.Time) predicate.Subscription
ActiveFromLTE applies the LTE predicate on the "active_from" field.
func ActiveFromNEQ ¶
func ActiveFromNEQ(v time.Time) predicate.Subscription
ActiveFromNEQ applies the NEQ predicate on the "active_from" field.
func ActiveFromNotIn ¶
func ActiveFromNotIn(vs ...time.Time) predicate.Subscription
ActiveFromNotIn applies the NotIn predicate on the "active_from" field.
func ActiveTo ¶
func ActiveTo(v time.Time) predicate.Subscription
ActiveTo applies equality check predicate on the "active_to" field. It's identical to ActiveToEQ.
func ActiveToEQ ¶
func ActiveToEQ(v time.Time) predicate.Subscription
ActiveToEQ applies the EQ predicate on the "active_to" field.
func ActiveToGT ¶
func ActiveToGT(v time.Time) predicate.Subscription
ActiveToGT applies the GT predicate on the "active_to" field.
func ActiveToGTE ¶
func ActiveToGTE(v time.Time) predicate.Subscription
ActiveToGTE applies the GTE predicate on the "active_to" field.
func ActiveToIn ¶
func ActiveToIn(vs ...time.Time) predicate.Subscription
ActiveToIn applies the In predicate on the "active_to" field.
func ActiveToIsNil ¶
func ActiveToIsNil() predicate.Subscription
ActiveToIsNil applies the IsNil predicate on the "active_to" field.
func ActiveToLT ¶
func ActiveToLT(v time.Time) predicate.Subscription
ActiveToLT applies the LT predicate on the "active_to" field.
func ActiveToLTE ¶
func ActiveToLTE(v time.Time) predicate.Subscription
ActiveToLTE applies the LTE predicate on the "active_to" field.
func ActiveToNEQ ¶
func ActiveToNEQ(v time.Time) predicate.Subscription
ActiveToNEQ applies the NEQ predicate on the "active_to" field.
func ActiveToNotIn ¶
func ActiveToNotIn(vs ...time.Time) predicate.Subscription
ActiveToNotIn applies the NotIn predicate on the "active_to" field.
func ActiveToNotNil ¶
func ActiveToNotNil() predicate.Subscription
ActiveToNotNil applies the NotNil predicate on the "active_to" field.
func And ¶
func And(predicates ...predicate.Subscription) predicate.Subscription
And groups predicates with the AND operator between them.
func AnnotationsIsNil ¶
func AnnotationsIsNil() predicate.Subscription
AnnotationsIsNil applies the IsNil predicate on the "annotations" field.
func AnnotationsNotNil ¶
func AnnotationsNotNil() predicate.Subscription
AnnotationsNotNil applies the NotNil predicate on the "annotations" field.
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 datetime.ISODurationString) predicate.Subscription
BillingCadence applies equality check predicate on the "billing_cadence" field. It's identical to BillingCadenceEQ.
func BillingCadenceContains ¶
func BillingCadenceContains(v datetime.ISODurationString) predicate.Subscription
BillingCadenceContains applies the Contains predicate on the "billing_cadence" field.
func BillingCadenceContainsFold ¶
func BillingCadenceContainsFold(v datetime.ISODurationString) predicate.Subscription
BillingCadenceContainsFold applies the ContainsFold predicate on the "billing_cadence" field.
func BillingCadenceEQ ¶
func BillingCadenceEQ(v datetime.ISODurationString) predicate.Subscription
BillingCadenceEQ applies the EQ predicate on the "billing_cadence" field.
func BillingCadenceEqualFold ¶
func BillingCadenceEqualFold(v datetime.ISODurationString) predicate.Subscription
BillingCadenceEqualFold applies the EqualFold predicate on the "billing_cadence" field.
func BillingCadenceGT ¶
func BillingCadenceGT(v datetime.ISODurationString) predicate.Subscription
BillingCadenceGT applies the GT predicate on the "billing_cadence" field.
func BillingCadenceGTE ¶
func BillingCadenceGTE(v datetime.ISODurationString) predicate.Subscription
BillingCadenceGTE applies the GTE predicate on the "billing_cadence" field.
func BillingCadenceHasPrefix ¶
func BillingCadenceHasPrefix(v datetime.ISODurationString) predicate.Subscription
BillingCadenceHasPrefix applies the HasPrefix predicate on the "billing_cadence" field.
func BillingCadenceHasSuffix ¶
func BillingCadenceHasSuffix(v datetime.ISODurationString) predicate.Subscription
BillingCadenceHasSuffix applies the HasSuffix predicate on the "billing_cadence" field.
func BillingCadenceIn ¶
func BillingCadenceIn(vs ...datetime.ISODurationString) predicate.Subscription
BillingCadenceIn applies the In predicate on the "billing_cadence" field.
func BillingCadenceLT ¶
func BillingCadenceLT(v datetime.ISODurationString) predicate.Subscription
BillingCadenceLT applies the LT predicate on the "billing_cadence" field.
func BillingCadenceLTE ¶
func BillingCadenceLTE(v datetime.ISODurationString) predicate.Subscription
BillingCadenceLTE applies the LTE predicate on the "billing_cadence" field.
func BillingCadenceNEQ ¶
func BillingCadenceNEQ(v datetime.ISODurationString) predicate.Subscription
BillingCadenceNEQ applies the NEQ predicate on the "billing_cadence" field.
func BillingCadenceNotIn ¶
func BillingCadenceNotIn(vs ...datetime.ISODurationString) predicate.Subscription
BillingCadenceNotIn applies the NotIn predicate on the "billing_cadence" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Subscription
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Subscription
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Subscription
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Subscription
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Subscription
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Subscription
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Subscription
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Subscription
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Subscription
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Currency ¶
func Currency(v currencyx.Code) predicate.Subscription
Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.
func CurrencyContains ¶
func CurrencyContains(v currencyx.Code) predicate.Subscription
CurrencyContains applies the Contains predicate on the "currency" field.
func CurrencyContainsFold ¶
func CurrencyContainsFold(v currencyx.Code) predicate.Subscription
CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.
func CurrencyEQ ¶
func CurrencyEQ(v currencyx.Code) predicate.Subscription
CurrencyEQ applies the EQ predicate on the "currency" field.
func CurrencyEqualFold ¶
func CurrencyEqualFold(v currencyx.Code) predicate.Subscription
CurrencyEqualFold applies the EqualFold predicate on the "currency" field.
func CurrencyGT ¶
func CurrencyGT(v currencyx.Code) predicate.Subscription
CurrencyGT applies the GT predicate on the "currency" field.
func CurrencyGTE ¶
func CurrencyGTE(v currencyx.Code) predicate.Subscription
CurrencyGTE applies the GTE predicate on the "currency" field.
func CurrencyHasPrefix ¶
func CurrencyHasPrefix(v currencyx.Code) predicate.Subscription
CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.
func CurrencyHasSuffix ¶
func CurrencyHasSuffix(v currencyx.Code) predicate.Subscription
CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.
func CurrencyIn ¶
func CurrencyIn(vs ...currencyx.Code) predicate.Subscription
CurrencyIn applies the In predicate on the "currency" field.
func CurrencyLT ¶
func CurrencyLT(v currencyx.Code) predicate.Subscription
CurrencyLT applies the LT predicate on the "currency" field.
func CurrencyLTE ¶
func CurrencyLTE(v currencyx.Code) predicate.Subscription
CurrencyLTE applies the LTE predicate on the "currency" field.
func CurrencyNEQ ¶
func CurrencyNEQ(v currencyx.Code) predicate.Subscription
CurrencyNEQ applies the NEQ predicate on the "currency" field.
func CurrencyNotIn ¶
func CurrencyNotIn(vs ...currencyx.Code) predicate.Subscription
CurrencyNotIn applies the NotIn predicate on the "currency" 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 DeletedAt ¶
func DeletedAt(v time.Time) predicate.Subscription
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.Subscription
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.Subscription
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.Subscription
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.Subscription
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.Subscription
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.Subscription
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.Subscription
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.Subscription
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.Subscription
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.Subscription
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Description ¶
func Description(v string) predicate.Subscription
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.Subscription
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.Subscription
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.Subscription
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.Subscription
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.Subscription
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.Subscription
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.Subscription
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.Subscription
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.Subscription
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
func DescriptionIsNil() predicate.Subscription
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.Subscription
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.Subscription
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.Subscription
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.Subscription
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
func DescriptionNotNil() predicate.Subscription
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasAddons ¶
func HasAddons() predicate.Subscription
HasAddons applies the HasEdge predicate on the "addons" edge.
func HasAddonsWith ¶
func HasAddonsWith(preds ...predicate.SubscriptionAddon) predicate.Subscription
HasAddonsWith applies the HasEdge predicate on the "addons" edge with a given conditions (other predicates).
func HasBillingLines ¶
func HasBillingLines() predicate.Subscription
HasBillingLines applies the HasEdge predicate on the "billing_lines" edge.
func HasBillingLinesWith ¶
func HasBillingLinesWith(preds ...predicate.BillingInvoiceLine) predicate.Subscription
HasBillingLinesWith applies the HasEdge predicate on the "billing_lines" edge with a given conditions (other predicates).
func HasBillingSplitLineGroups ¶
func HasBillingSplitLineGroups() predicate.Subscription
HasBillingSplitLineGroups applies the HasEdge predicate on the "billing_split_line_groups" edge.
func HasBillingSplitLineGroupsWith ¶
func HasBillingSplitLineGroupsWith(preds ...predicate.BillingInvoiceSplitLineGroup) predicate.Subscription
HasBillingSplitLineGroupsWith applies the HasEdge predicate on the "billing_split_line_groups" edge with a given conditions (other predicates).
func HasBillingSyncState ¶
func HasBillingSyncState() predicate.Subscription
HasBillingSyncState applies the HasEdge predicate on the "billing_sync_state" edge.
func HasBillingSyncStateWith ¶
func HasBillingSyncStateWith(preds ...predicate.SubscriptionBillingSyncState) predicate.Subscription
HasBillingSyncStateWith applies the HasEdge predicate on the "billing_sync_state" edge with a given conditions (other predicates).
func HasChargesCreditPurchase ¶
func HasChargesCreditPurchase() predicate.Subscription
HasChargesCreditPurchase applies the HasEdge predicate on the "charges_credit_purchase" edge.
func HasChargesCreditPurchaseWith ¶
func HasChargesCreditPurchaseWith(preds ...predicate.ChargeCreditPurchase) predicate.Subscription
HasChargesCreditPurchaseWith applies the HasEdge predicate on the "charges_credit_purchase" edge with a given conditions (other predicates).
func HasChargesFlatFee ¶
func HasChargesFlatFee() predicate.Subscription
HasChargesFlatFee applies the HasEdge predicate on the "charges_flat_fee" edge.
func HasChargesFlatFeeWith ¶
func HasChargesFlatFeeWith(preds ...predicate.ChargeFlatFee) predicate.Subscription
HasChargesFlatFeeWith applies the HasEdge predicate on the "charges_flat_fee" edge with a given conditions (other predicates).
func HasChargesUsageBased ¶
func HasChargesUsageBased() predicate.Subscription
HasChargesUsageBased applies the HasEdge predicate on the "charges_usage_based" edge.
func HasChargesUsageBasedWith ¶
func HasChargesUsageBasedWith(preds ...predicate.ChargeUsageBased) predicate.Subscription
HasChargesUsageBasedWith applies the HasEdge predicate on the "charges_usage_based" edge with a given conditions (other predicates).
func HasCustomer ¶
func HasCustomer() predicate.Subscription
HasCustomer applies the HasEdge predicate on the "customer" edge.
func HasCustomerWith ¶
func HasCustomerWith(preds ...predicate.Customer) predicate.Subscription
HasCustomerWith applies the HasEdge predicate on the "customer" edge with a given conditions (other predicates).
func HasPhases ¶
func HasPhases() predicate.Subscription
HasPhases applies the HasEdge predicate on the "phases" edge.
func HasPhasesWith ¶
func HasPhasesWith(preds ...predicate.SubscriptionPhase) predicate.Subscription
HasPhasesWith applies the HasEdge predicate on the "phases" edge with a given conditions (other predicates).
func HasPlan ¶
func HasPlan() predicate.Subscription
HasPlan applies the HasEdge predicate on the "plan" edge.
func HasPlanWith ¶
func HasPlanWith(preds ...predicate.Plan) predicate.Subscription
HasPlanWith applies the HasEdge predicate on the "plan" edge with a given conditions (other predicates).
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 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 Name ¶
func Name(v string) predicate.Subscription
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.Subscription
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.Subscription
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.Subscription
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.Subscription
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.Subscription
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.Subscription
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.Subscription
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.Subscription
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.Subscription
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.Subscription
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.Subscription
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.Subscription
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.Subscription
NameNotIn applies the NotIn predicate on the "name" field.
func Namespace ¶
func Namespace(v string) predicate.Subscription
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
func NamespaceContains(v string) predicate.Subscription
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
func NamespaceContainsFold(v string) predicate.Subscription
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
func NamespaceEQ(v string) predicate.Subscription
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
func NamespaceEqualFold(v string) predicate.Subscription
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
func NamespaceGT(v string) predicate.Subscription
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
func NamespaceGTE(v string) predicate.Subscription
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
func NamespaceHasPrefix(v string) predicate.Subscription
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
func NamespaceHasSuffix(v string) predicate.Subscription
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
func NamespaceIn(vs ...string) predicate.Subscription
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
func NamespaceLT(v string) predicate.Subscription
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
func NamespaceLTE(v string) predicate.Subscription
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
func NamespaceNEQ(v string) predicate.Subscription
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
func NamespaceNotIn(vs ...string) predicate.Subscription
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func Not ¶
func Not(p predicate.Subscription) predicate.Subscription
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 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 PlanIDIsNil ¶
func PlanIDIsNil() predicate.Subscription
PlanIDIsNil applies the IsNil 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 PlanIDNotNil ¶
func PlanIDNotNil() predicate.Subscription
PlanIDNotNil applies the NotNil predicate on the "plan_id" field.
func SettlementModeEQ ¶
func SettlementModeEQ(v productcatalog.SettlementMode) predicate.Subscription
SettlementModeEQ applies the EQ predicate on the "settlement_mode" field.
func SettlementModeIn ¶
func SettlementModeIn(vs ...productcatalog.SettlementMode) predicate.Subscription
SettlementModeIn applies the In predicate on the "settlement_mode" field.
func SettlementModeNEQ ¶
func SettlementModeNEQ(v productcatalog.SettlementMode) predicate.Subscription
SettlementModeNEQ applies the NEQ predicate on the "settlement_mode" field.
func SettlementModeNotIn ¶
func SettlementModeNotIn(vs ...productcatalog.SettlementMode) predicate.Subscription
SettlementModeNotIn applies the NotIn predicate on the "settlement_mode" field.
func SettlementModeValidator ¶
func SettlementModeValidator(sm productcatalog.SettlementMode) error
SettlementModeValidator is a validator for the "settlement_mode" field enum values. It is called by the builders before save.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Subscription
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Subscription
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Subscription
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Subscription
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Subscription
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Subscription
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Subscription
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Subscription
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Subscription
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Subscription queries.
func ByActiveFrom ¶
func ByActiveFrom(opts ...sql.OrderTermOption) OrderOption
ByActiveFrom orders the results by the active_from field.
func ByActiveTo ¶
func ByActiveTo(opts ...sql.OrderTermOption) OrderOption
ByActiveTo orders the results by the active_to field.
func ByAddons ¶
func ByAddons(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAddons orders the results by addons terms.
func ByAddonsCount ¶
func ByAddonsCount(opts ...sql.OrderTermOption) OrderOption
ByAddonsCount orders the results by addons count.
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 ByBillingLines ¶
func ByBillingLines(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBillingLines orders the results by billing_lines terms.
func ByBillingLinesCount ¶
func ByBillingLinesCount(opts ...sql.OrderTermOption) OrderOption
ByBillingLinesCount orders the results by billing_lines count.
func ByBillingSplitLineGroups ¶
func ByBillingSplitLineGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBillingSplitLineGroups orders the results by billing_split_line_groups terms.
func ByBillingSplitLineGroupsCount ¶
func ByBillingSplitLineGroupsCount(opts ...sql.OrderTermOption) OrderOption
ByBillingSplitLineGroupsCount orders the results by billing_split_line_groups count.
func ByBillingSyncStateField ¶
func ByBillingSyncStateField(field string, opts ...sql.OrderTermOption) OrderOption
ByBillingSyncStateField orders the results by billing_sync_state field.
func ByChargesCreditPurchase ¶
func ByChargesCreditPurchase(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChargesCreditPurchase orders the results by charges_credit_purchase terms.
func ByChargesCreditPurchaseCount ¶
func ByChargesCreditPurchaseCount(opts ...sql.OrderTermOption) OrderOption
ByChargesCreditPurchaseCount orders the results by charges_credit_purchase count.
func ByChargesFlatFee ¶
func ByChargesFlatFee(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChargesFlatFee orders the results by charges_flat_fee terms.
func ByChargesFlatFeeCount ¶
func ByChargesFlatFeeCount(opts ...sql.OrderTermOption) OrderOption
ByChargesFlatFeeCount orders the results by charges_flat_fee count.
func ByChargesUsageBased ¶
func ByChargesUsageBased(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChargesUsageBased orders the results by charges_usage_based terms.
func ByChargesUsageBasedCount ¶
func ByChargesUsageBasedCount(opts ...sql.OrderTermOption) OrderOption
ByChargesUsageBasedCount orders the results by charges_usage_based count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCurrency ¶
func ByCurrency(opts ...sql.OrderTermOption) OrderOption
ByCurrency orders the results by the currency field.
func ByCustomerField ¶
func ByCustomerField(field string, opts ...sql.OrderTermOption) OrderOption
ByCustomerField orders the results by customer field.
func ByCustomerID ¶
func ByCustomerID(opts ...sql.OrderTermOption) OrderOption
ByCustomerID orders the results by the customer_id field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNamespace ¶
func ByNamespace(opts ...sql.OrderTermOption) OrderOption
ByNamespace orders the results by the namespace field.
func ByPhases ¶
func ByPhases(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPhases orders the results by phases terms.
func ByPhasesCount ¶
func ByPhasesCount(opts ...sql.OrderTermOption) OrderOption
ByPhasesCount orders the results by phases count.
func ByPlanField ¶
func ByPlanField(field string, opts ...sql.OrderTermOption) OrderOption
ByPlanField orders the results by plan field.
func ByPlanID ¶
func ByPlanID(opts ...sql.OrderTermOption) OrderOption
ByPlanID orders the results by the plan_id field.
func ByProRatingConfig ¶
func ByProRatingConfig(opts ...sql.OrderTermOption) OrderOption
ByProRatingConfig orders the results by the pro_rating_config field.
func BySettlementMode ¶
func BySettlementMode(opts ...sql.OrderTermOption) OrderOption
BySettlementMode orders the results by the settlement_mode field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.