Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CouponApplication) predicate.CouponApplication
- func AppliedAt(v time.Time) predicate.CouponApplication
- func AppliedAtEQ(v time.Time) predicate.CouponApplication
- func AppliedAtGT(v time.Time) predicate.CouponApplication
- func AppliedAtGTE(v time.Time) predicate.CouponApplication
- func AppliedAtIn(vs ...time.Time) predicate.CouponApplication
- func AppliedAtLT(v time.Time) predicate.CouponApplication
- func AppliedAtLTE(v time.Time) predicate.CouponApplication
- func AppliedAtNEQ(v time.Time) predicate.CouponApplication
- func AppliedAtNotIn(vs ...time.Time) predicate.CouponApplication
- func CouponAssociationID(v string) predicate.CouponApplication
- func CouponAssociationIDContains(v string) predicate.CouponApplication
- func CouponAssociationIDContainsFold(v string) predicate.CouponApplication
- func CouponAssociationIDEQ(v string) predicate.CouponApplication
- func CouponAssociationIDEqualFold(v string) predicate.CouponApplication
- func CouponAssociationIDGT(v string) predicate.CouponApplication
- func CouponAssociationIDGTE(v string) predicate.CouponApplication
- func CouponAssociationIDHasPrefix(v string) predicate.CouponApplication
- func CouponAssociationIDHasSuffix(v string) predicate.CouponApplication
- func CouponAssociationIDIn(vs ...string) predicate.CouponApplication
- func CouponAssociationIDIsNil() predicate.CouponApplication
- func CouponAssociationIDLT(v string) predicate.CouponApplication
- func CouponAssociationIDLTE(v string) predicate.CouponApplication
- func CouponAssociationIDNEQ(v string) predicate.CouponApplication
- func CouponAssociationIDNotIn(vs ...string) predicate.CouponApplication
- func CouponAssociationIDNotNil() predicate.CouponApplication
- func CouponID(v string) predicate.CouponApplication
- func CouponIDContains(v string) predicate.CouponApplication
- func CouponIDContainsFold(v string) predicate.CouponApplication
- func CouponIDEQ(v string) predicate.CouponApplication
- func CouponIDEqualFold(v string) predicate.CouponApplication
- func CouponIDGT(v string) predicate.CouponApplication
- func CouponIDGTE(v string) predicate.CouponApplication
- func CouponIDHasPrefix(v string) predicate.CouponApplication
- func CouponIDHasSuffix(v string) predicate.CouponApplication
- func CouponIDIn(vs ...string) predicate.CouponApplication
- func CouponIDLT(v string) predicate.CouponApplication
- func CouponIDLTE(v string) predicate.CouponApplication
- func CouponIDNEQ(v string) predicate.CouponApplication
- func CouponIDNotIn(vs ...string) predicate.CouponApplication
- func CouponSnapshotIsNil() predicate.CouponApplication
- func CouponSnapshotNotNil() predicate.CouponApplication
- func CreatedAt(v time.Time) predicate.CouponApplication
- func CreatedAtEQ(v time.Time) predicate.CouponApplication
- func CreatedAtGT(v time.Time) predicate.CouponApplication
- func CreatedAtGTE(v time.Time) predicate.CouponApplication
- func CreatedAtIn(vs ...time.Time) predicate.CouponApplication
- func CreatedAtLT(v time.Time) predicate.CouponApplication
- func CreatedAtLTE(v time.Time) predicate.CouponApplication
- func CreatedAtNEQ(v time.Time) predicate.CouponApplication
- func CreatedAtNotIn(vs ...time.Time) predicate.CouponApplication
- func CreatedBy(v string) predicate.CouponApplication
- func CreatedByContains(v string) predicate.CouponApplication
- func CreatedByContainsFold(v string) predicate.CouponApplication
- func CreatedByEQ(v string) predicate.CouponApplication
- func CreatedByEqualFold(v string) predicate.CouponApplication
- func CreatedByGT(v string) predicate.CouponApplication
- func CreatedByGTE(v string) predicate.CouponApplication
- func CreatedByHasPrefix(v string) predicate.CouponApplication
- func CreatedByHasSuffix(v string) predicate.CouponApplication
- func CreatedByIn(vs ...string) predicate.CouponApplication
- func CreatedByIsNil() predicate.CouponApplication
- func CreatedByLT(v string) predicate.CouponApplication
- func CreatedByLTE(v string) predicate.CouponApplication
- func CreatedByNEQ(v string) predicate.CouponApplication
- func CreatedByNotIn(vs ...string) predicate.CouponApplication
- func CreatedByNotNil() predicate.CouponApplication
- func Currency(v string) predicate.CouponApplication
- func CurrencyContains(v string) predicate.CouponApplication
- func CurrencyContainsFold(v string) predicate.CouponApplication
- func CurrencyEQ(v string) predicate.CouponApplication
- func CurrencyEqualFold(v string) predicate.CouponApplication
- func CurrencyGT(v string) predicate.CouponApplication
- func CurrencyGTE(v string) predicate.CouponApplication
- func CurrencyHasPrefix(v string) predicate.CouponApplication
- func CurrencyHasSuffix(v string) predicate.CouponApplication
- func CurrencyIn(vs ...string) predicate.CouponApplication
- func CurrencyIsNil() predicate.CouponApplication
- func CurrencyLT(v string) predicate.CouponApplication
- func CurrencyLTE(v string) predicate.CouponApplication
- func CurrencyNEQ(v string) predicate.CouponApplication
- func CurrencyNotIn(vs ...string) predicate.CouponApplication
- func CurrencyNotNil() predicate.CouponApplication
- func DiscountPercentage(v decimal.Decimal) predicate.CouponApplication
- func DiscountPercentageEQ(v decimal.Decimal) predicate.CouponApplication
- func DiscountPercentageGT(v decimal.Decimal) predicate.CouponApplication
- func DiscountPercentageGTE(v decimal.Decimal) predicate.CouponApplication
- func DiscountPercentageIn(vs ...decimal.Decimal) predicate.CouponApplication
- func DiscountPercentageIsNil() predicate.CouponApplication
- func DiscountPercentageLT(v decimal.Decimal) predicate.CouponApplication
- func DiscountPercentageLTE(v decimal.Decimal) predicate.CouponApplication
- func DiscountPercentageNEQ(v decimal.Decimal) predicate.CouponApplication
- func DiscountPercentageNotIn(vs ...decimal.Decimal) predicate.CouponApplication
- func DiscountPercentageNotNil() predicate.CouponApplication
- func DiscountType(v string) predicate.CouponApplication
- func DiscountTypeContains(v string) predicate.CouponApplication
- func DiscountTypeContainsFold(v string) predicate.CouponApplication
- func DiscountTypeEQ(v string) predicate.CouponApplication
- func DiscountTypeEqualFold(v string) predicate.CouponApplication
- func DiscountTypeGT(v string) predicate.CouponApplication
- func DiscountTypeGTE(v string) predicate.CouponApplication
- func DiscountTypeHasPrefix(v string) predicate.CouponApplication
- func DiscountTypeHasSuffix(v string) predicate.CouponApplication
- func DiscountTypeIn(vs ...string) predicate.CouponApplication
- func DiscountTypeLT(v string) predicate.CouponApplication
- func DiscountTypeLTE(v string) predicate.CouponApplication
- func DiscountTypeNEQ(v string) predicate.CouponApplication
- func DiscountTypeNotIn(vs ...string) predicate.CouponApplication
- func DiscountedAmount(v decimal.Decimal) predicate.CouponApplication
- func DiscountedAmountEQ(v decimal.Decimal) predicate.CouponApplication
- func DiscountedAmountGT(v decimal.Decimal) predicate.CouponApplication
- func DiscountedAmountGTE(v decimal.Decimal) predicate.CouponApplication
- func DiscountedAmountIn(vs ...decimal.Decimal) predicate.CouponApplication
- func DiscountedAmountLT(v decimal.Decimal) predicate.CouponApplication
- func DiscountedAmountLTE(v decimal.Decimal) predicate.CouponApplication
- func DiscountedAmountNEQ(v decimal.Decimal) predicate.CouponApplication
- func DiscountedAmountNotIn(vs ...decimal.Decimal) predicate.CouponApplication
- func EnvironmentID(v string) predicate.CouponApplication
- func EnvironmentIDContains(v string) predicate.CouponApplication
- func EnvironmentIDContainsFold(v string) predicate.CouponApplication
- func EnvironmentIDEQ(v string) predicate.CouponApplication
- func EnvironmentIDEqualFold(v string) predicate.CouponApplication
- func EnvironmentIDGT(v string) predicate.CouponApplication
- func EnvironmentIDGTE(v string) predicate.CouponApplication
- func EnvironmentIDHasPrefix(v string) predicate.CouponApplication
- func EnvironmentIDHasSuffix(v string) predicate.CouponApplication
- func EnvironmentIDIn(vs ...string) predicate.CouponApplication
- func EnvironmentIDIsNil() predicate.CouponApplication
- func EnvironmentIDLT(v string) predicate.CouponApplication
- func EnvironmentIDLTE(v string) predicate.CouponApplication
- func EnvironmentIDNEQ(v string) predicate.CouponApplication
- func EnvironmentIDNotIn(vs ...string) predicate.CouponApplication
- func EnvironmentIDNotNil() predicate.CouponApplication
- func FinalPrice(v decimal.Decimal) predicate.CouponApplication
- func FinalPriceEQ(v decimal.Decimal) predicate.CouponApplication
- func FinalPriceGT(v decimal.Decimal) predicate.CouponApplication
- func FinalPriceGTE(v decimal.Decimal) predicate.CouponApplication
- func FinalPriceIn(vs ...decimal.Decimal) predicate.CouponApplication
- func FinalPriceLT(v decimal.Decimal) predicate.CouponApplication
- func FinalPriceLTE(v decimal.Decimal) predicate.CouponApplication
- func FinalPriceNEQ(v decimal.Decimal) predicate.CouponApplication
- func FinalPriceNotIn(vs ...decimal.Decimal) predicate.CouponApplication
- func HasCoupon() predicate.CouponApplication
- func HasCouponAssociation() predicate.CouponApplication
- func HasCouponAssociationWith(preds ...predicate.CouponAssociation) predicate.CouponApplication
- func HasCouponWith(preds ...predicate.Coupon) predicate.CouponApplication
- func HasInvoice() predicate.CouponApplication
- func HasInvoiceLineItem() predicate.CouponApplication
- func HasInvoiceLineItemWith(preds ...predicate.InvoiceLineItem) predicate.CouponApplication
- func HasInvoiceWith(preds ...predicate.Invoice) predicate.CouponApplication
- func HasSubscription() predicate.CouponApplication
- func HasSubscriptionWith(preds ...predicate.Subscription) predicate.CouponApplication
- func ID(id string) predicate.CouponApplication
- func IDContainsFold(id string) predicate.CouponApplication
- func IDEQ(id string) predicate.CouponApplication
- func IDEqualFold(id string) predicate.CouponApplication
- func IDGT(id string) predicate.CouponApplication
- func IDGTE(id string) predicate.CouponApplication
- func IDIn(ids ...string) predicate.CouponApplication
- func IDLT(id string) predicate.CouponApplication
- func IDLTE(id string) predicate.CouponApplication
- func IDNEQ(id string) predicate.CouponApplication
- func IDNotIn(ids ...string) predicate.CouponApplication
- func InvoiceID(v string) predicate.CouponApplication
- func InvoiceIDContains(v string) predicate.CouponApplication
- func InvoiceIDContainsFold(v string) predicate.CouponApplication
- func InvoiceIDEQ(v string) predicate.CouponApplication
- func InvoiceIDEqualFold(v string) predicate.CouponApplication
- func InvoiceIDGT(v string) predicate.CouponApplication
- func InvoiceIDGTE(v string) predicate.CouponApplication
- func InvoiceIDHasPrefix(v string) predicate.CouponApplication
- func InvoiceIDHasSuffix(v string) predicate.CouponApplication
- func InvoiceIDIn(vs ...string) predicate.CouponApplication
- func InvoiceIDLT(v string) predicate.CouponApplication
- func InvoiceIDLTE(v string) predicate.CouponApplication
- func InvoiceIDNEQ(v string) predicate.CouponApplication
- func InvoiceIDNotIn(vs ...string) predicate.CouponApplication
- func InvoiceLineItemID(v string) predicate.CouponApplication
- func InvoiceLineItemIDContains(v string) predicate.CouponApplication
- func InvoiceLineItemIDContainsFold(v string) predicate.CouponApplication
- func InvoiceLineItemIDEQ(v string) predicate.CouponApplication
- func InvoiceLineItemIDEqualFold(v string) predicate.CouponApplication
- func InvoiceLineItemIDGT(v string) predicate.CouponApplication
- func InvoiceLineItemIDGTE(v string) predicate.CouponApplication
- func InvoiceLineItemIDHasPrefix(v string) predicate.CouponApplication
- func InvoiceLineItemIDHasSuffix(v string) predicate.CouponApplication
- func InvoiceLineItemIDIn(vs ...string) predicate.CouponApplication
- func InvoiceLineItemIDIsNil() predicate.CouponApplication
- func InvoiceLineItemIDLT(v string) predicate.CouponApplication
- func InvoiceLineItemIDLTE(v string) predicate.CouponApplication
- func InvoiceLineItemIDNEQ(v string) predicate.CouponApplication
- func InvoiceLineItemIDNotIn(vs ...string) predicate.CouponApplication
- func InvoiceLineItemIDNotNil() predicate.CouponApplication
- func MetadataIsNil() predicate.CouponApplication
- func MetadataNotNil() predicate.CouponApplication
- func Not(p predicate.CouponApplication) predicate.CouponApplication
- func Or(predicates ...predicate.CouponApplication) predicate.CouponApplication
- func OriginalPrice(v decimal.Decimal) predicate.CouponApplication
- func OriginalPriceEQ(v decimal.Decimal) predicate.CouponApplication
- func OriginalPriceGT(v decimal.Decimal) predicate.CouponApplication
- func OriginalPriceGTE(v decimal.Decimal) predicate.CouponApplication
- func OriginalPriceIn(vs ...decimal.Decimal) predicate.CouponApplication
- func OriginalPriceLT(v decimal.Decimal) predicate.CouponApplication
- func OriginalPriceLTE(v decimal.Decimal) predicate.CouponApplication
- func OriginalPriceNEQ(v decimal.Decimal) predicate.CouponApplication
- func OriginalPriceNotIn(vs ...decimal.Decimal) predicate.CouponApplication
- func Status(v string) predicate.CouponApplication
- func StatusContains(v string) predicate.CouponApplication
- func StatusContainsFold(v string) predicate.CouponApplication
- func StatusEQ(v string) predicate.CouponApplication
- func StatusEqualFold(v string) predicate.CouponApplication
- func StatusGT(v string) predicate.CouponApplication
- func StatusGTE(v string) predicate.CouponApplication
- func StatusHasPrefix(v string) predicate.CouponApplication
- func StatusHasSuffix(v string) predicate.CouponApplication
- func StatusIn(vs ...string) predicate.CouponApplication
- func StatusLT(v string) predicate.CouponApplication
- func StatusLTE(v string) predicate.CouponApplication
- func StatusNEQ(v string) predicate.CouponApplication
- func StatusNotIn(vs ...string) predicate.CouponApplication
- func SubscriptionID(v string) predicate.CouponApplication
- func SubscriptionIDContains(v string) predicate.CouponApplication
- func SubscriptionIDContainsFold(v string) predicate.CouponApplication
- func SubscriptionIDEQ(v string) predicate.CouponApplication
- func SubscriptionIDEqualFold(v string) predicate.CouponApplication
- func SubscriptionIDGT(v string) predicate.CouponApplication
- func SubscriptionIDGTE(v string) predicate.CouponApplication
- func SubscriptionIDHasPrefix(v string) predicate.CouponApplication
- func SubscriptionIDHasSuffix(v string) predicate.CouponApplication
- func SubscriptionIDIn(vs ...string) predicate.CouponApplication
- func SubscriptionIDIsNil() predicate.CouponApplication
- func SubscriptionIDLT(v string) predicate.CouponApplication
- func SubscriptionIDLTE(v string) predicate.CouponApplication
- func SubscriptionIDNEQ(v string) predicate.CouponApplication
- func SubscriptionIDNotIn(vs ...string) predicate.CouponApplication
- func SubscriptionIDNotNil() predicate.CouponApplication
- func TenantID(v string) predicate.CouponApplication
- func TenantIDContains(v string) predicate.CouponApplication
- func TenantIDContainsFold(v string) predicate.CouponApplication
- func TenantIDEQ(v string) predicate.CouponApplication
- func TenantIDEqualFold(v string) predicate.CouponApplication
- func TenantIDGT(v string) predicate.CouponApplication
- func TenantIDGTE(v string) predicate.CouponApplication
- func TenantIDHasPrefix(v string) predicate.CouponApplication
- func TenantIDHasSuffix(v string) predicate.CouponApplication
- func TenantIDIn(vs ...string) predicate.CouponApplication
- func TenantIDLT(v string) predicate.CouponApplication
- func TenantIDLTE(v string) predicate.CouponApplication
- func TenantIDNEQ(v string) predicate.CouponApplication
- func TenantIDNotIn(vs ...string) predicate.CouponApplication
- func UpdatedAt(v time.Time) predicate.CouponApplication
- func UpdatedAtEQ(v time.Time) predicate.CouponApplication
- func UpdatedAtGT(v time.Time) predicate.CouponApplication
- func UpdatedAtGTE(v time.Time) predicate.CouponApplication
- func UpdatedAtIn(vs ...time.Time) predicate.CouponApplication
- func UpdatedAtLT(v time.Time) predicate.CouponApplication
- func UpdatedAtLTE(v time.Time) predicate.CouponApplication
- func UpdatedAtNEQ(v time.Time) predicate.CouponApplication
- func UpdatedAtNotIn(vs ...time.Time) predicate.CouponApplication
- func UpdatedBy(v string) predicate.CouponApplication
- func UpdatedByContains(v string) predicate.CouponApplication
- func UpdatedByContainsFold(v string) predicate.CouponApplication
- func UpdatedByEQ(v string) predicate.CouponApplication
- func UpdatedByEqualFold(v string) predicate.CouponApplication
- func UpdatedByGT(v string) predicate.CouponApplication
- func UpdatedByGTE(v string) predicate.CouponApplication
- func UpdatedByHasPrefix(v string) predicate.CouponApplication
- func UpdatedByHasSuffix(v string) predicate.CouponApplication
- func UpdatedByIn(vs ...string) predicate.CouponApplication
- func UpdatedByIsNil() predicate.CouponApplication
- func UpdatedByLT(v string) predicate.CouponApplication
- func UpdatedByLTE(v string) predicate.CouponApplication
- func UpdatedByNEQ(v string) predicate.CouponApplication
- func UpdatedByNotIn(vs ...string) predicate.CouponApplication
- func UpdatedByNotNil() predicate.CouponApplication
- func ValidColumn(column string) bool
- type OrderOption
- func ByAppliedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCouponAssociation(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCouponAssociationCount(opts ...sql.OrderTermOption) OrderOption
- func ByCouponAssociationID(opts ...sql.OrderTermOption) OrderOption
- func ByCouponField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCouponID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByCurrency(opts ...sql.OrderTermOption) OrderOption
- func ByDiscountPercentage(opts ...sql.OrderTermOption) OrderOption
- func ByDiscountType(opts ...sql.OrderTermOption) OrderOption
- func ByDiscountedAmount(opts ...sql.OrderTermOption) OrderOption
- func ByEnvironmentID(opts ...sql.OrderTermOption) OrderOption
- func ByFinalPrice(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceID(opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceLineItemField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceLineItemID(opts ...sql.OrderTermOption) OrderOption
- func ByOriginalPrice(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func BySubscriptionField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySubscriptionID(opts ...sql.OrderTermOption) OrderOption
- func ByTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the couponapplication type in the database. Label = "coupon_application" // 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" // FieldCouponID holds the string denoting the coupon_id field in the database. FieldCouponID = "coupon_id" // FieldCouponAssociationID holds the string denoting the coupon_association_id field in the database. FieldCouponAssociationID = "coupon_association_id" // FieldInvoiceID holds the string denoting the invoice_id field in the database. FieldInvoiceID = "invoice_id" // FieldInvoiceLineItemID holds the string denoting the invoice_line_item_id field in the database. FieldInvoiceLineItemID = "invoice_line_item_id" // FieldAppliedAt holds the string denoting the applied_at field in the database. FieldAppliedAt = "applied_at" // FieldOriginalPrice holds the string denoting the original_price field in the database. FieldOriginalPrice = "original_price" // FieldFinalPrice holds the string denoting the final_price field in the database. FieldFinalPrice = "final_price" // FieldDiscountedAmount holds the string denoting the discounted_amount field in the database. FieldDiscountedAmount = "discounted_amount" // FieldDiscountType holds the string denoting the discount_type field in the database. FieldDiscountType = "discount_type" // FieldDiscountPercentage holds the string denoting the discount_percentage field in the database. FieldDiscountPercentage = "discount_percentage" // FieldCurrency holds the string denoting the currency field in the database. FieldCurrency = "currency" // FieldCouponSnapshot holds the string denoting the coupon_snapshot field in the database. FieldCouponSnapshot = "coupon_snapshot" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // FieldSubscriptionID holds the string denoting the subscription_id field in the database. FieldSubscriptionID = "subscription_id" // EdgeCoupon holds the string denoting the coupon edge name in mutations. EdgeCoupon = "coupon" // EdgeCouponAssociation holds the string denoting the coupon_association edge name in mutations. EdgeCouponAssociation = "coupon_association" // EdgeInvoice holds the string denoting the invoice edge name in mutations. EdgeInvoice = "invoice" // EdgeInvoiceLineItem holds the string denoting the invoice_line_item edge name in mutations. EdgeInvoiceLineItem = "invoice_line_item" // EdgeSubscription holds the string denoting the subscription edge name in mutations. EdgeSubscription = "subscription" // Table holds the table name of the couponapplication in the database. Table = "coupon_applications" // CouponTable is the table that holds the coupon relation/edge. CouponTable = "coupon_applications" // CouponInverseTable is the table name for the Coupon entity. // It exists in this package in order to avoid circular dependency with the "coupon" package. CouponInverseTable = "coupons" // CouponColumn is the table column denoting the coupon relation/edge. CouponColumn = "coupon_id" // CouponAssociationTable is the table that holds the coupon_association relation/edge. The primary key declared below. CouponAssociationTable = "coupon_association_coupon_applications" // CouponAssociationInverseTable is the table name for the CouponAssociation entity. // It exists in this package in order to avoid circular dependency with the "couponassociation" package. CouponAssociationInverseTable = "coupon_associations" // InvoiceTable is the table that holds the invoice relation/edge. InvoiceTable = "coupon_applications" // InvoiceInverseTable is the table name for the Invoice entity. // It exists in this package in order to avoid circular dependency with the "invoice" package. InvoiceInverseTable = "invoices" // InvoiceColumn is the table column denoting the invoice relation/edge. InvoiceColumn = "invoice_id" // InvoiceLineItemTable is the table that holds the invoice_line_item relation/edge. InvoiceLineItemTable = "coupon_applications" // InvoiceLineItemInverseTable is the table name for the InvoiceLineItem entity. // It exists in this package in order to avoid circular dependency with the "invoicelineitem" package. InvoiceLineItemInverseTable = "invoice_line_items" // InvoiceLineItemColumn is the table column denoting the invoice_line_item relation/edge. InvoiceLineItemColumn = "invoice_line_item_id" // SubscriptionTable is the table that holds the subscription relation/edge. SubscriptionTable = "coupon_applications" // SubscriptionInverseTable is the table name for the Subscription entity. // It exists in this package in order to avoid circular dependency with the "subscription" package. SubscriptionInverseTable = "subscriptions" // SubscriptionColumn is the table column denoting the subscription relation/edge. SubscriptionColumn = "subscription_id" )
Variables ¶
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 // CouponIDValidator is a validator for the "coupon_id" field. It is called by the builders before save. CouponIDValidator func(string) error // InvoiceIDValidator is a validator for the "invoice_id" field. It is called by the builders before save. InvoiceIDValidator func(string) error // DefaultAppliedAt holds the default value on creation for the "applied_at" field. DefaultAppliedAt func() time.Time // DiscountTypeValidator is a validator for the "discount_type" field. It is called by the builders before save. DiscountTypeValidator func(string) error )
var Columns = []string{ FieldID, FieldTenantID, FieldStatus, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldEnvironmentID, FieldCouponID, FieldCouponAssociationID, FieldInvoiceID, FieldInvoiceLineItemID, FieldAppliedAt, FieldOriginalPrice, FieldFinalPrice, FieldDiscountedAmount, FieldDiscountType, FieldDiscountPercentage, FieldCurrency, FieldCouponSnapshot, FieldMetadata, FieldSubscriptionID, }
Columns holds all SQL columns for couponapplication fields.
var ( // CouponAssociationPrimaryKey and CouponAssociationColumn2 are the table columns denoting the // primary key for the coupon_association relation (M2M). CouponAssociationPrimaryKey = []string{"coupon_association_id", "coupon_application_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.CouponApplication) predicate.CouponApplication
And groups predicates with the AND operator between them.
func AppliedAt ¶
func AppliedAt(v time.Time) predicate.CouponApplication
AppliedAt applies equality check predicate on the "applied_at" field. It's identical to AppliedAtEQ.
func AppliedAtEQ ¶
func AppliedAtEQ(v time.Time) predicate.CouponApplication
AppliedAtEQ applies the EQ predicate on the "applied_at" field.
func AppliedAtGT ¶
func AppliedAtGT(v time.Time) predicate.CouponApplication
AppliedAtGT applies the GT predicate on the "applied_at" field.
func AppliedAtGTE ¶
func AppliedAtGTE(v time.Time) predicate.CouponApplication
AppliedAtGTE applies the GTE predicate on the "applied_at" field.
func AppliedAtIn ¶
func AppliedAtIn(vs ...time.Time) predicate.CouponApplication
AppliedAtIn applies the In predicate on the "applied_at" field.
func AppliedAtLT ¶
func AppliedAtLT(v time.Time) predicate.CouponApplication
AppliedAtLT applies the LT predicate on the "applied_at" field.
func AppliedAtLTE ¶
func AppliedAtLTE(v time.Time) predicate.CouponApplication
AppliedAtLTE applies the LTE predicate on the "applied_at" field.
func AppliedAtNEQ ¶
func AppliedAtNEQ(v time.Time) predicate.CouponApplication
AppliedAtNEQ applies the NEQ predicate on the "applied_at" field.
func AppliedAtNotIn ¶
func AppliedAtNotIn(vs ...time.Time) predicate.CouponApplication
AppliedAtNotIn applies the NotIn predicate on the "applied_at" field.
func CouponAssociationID ¶
func CouponAssociationID(v string) predicate.CouponApplication
CouponAssociationID applies equality check predicate on the "coupon_association_id" field. It's identical to CouponAssociationIDEQ.
func CouponAssociationIDContains ¶
func CouponAssociationIDContains(v string) predicate.CouponApplication
CouponAssociationIDContains applies the Contains predicate on the "coupon_association_id" field.
func CouponAssociationIDContainsFold ¶
func CouponAssociationIDContainsFold(v string) predicate.CouponApplication
CouponAssociationIDContainsFold applies the ContainsFold predicate on the "coupon_association_id" field.
func CouponAssociationIDEQ ¶
func CouponAssociationIDEQ(v string) predicate.CouponApplication
CouponAssociationIDEQ applies the EQ predicate on the "coupon_association_id" field.
func CouponAssociationIDEqualFold ¶
func CouponAssociationIDEqualFold(v string) predicate.CouponApplication
CouponAssociationIDEqualFold applies the EqualFold predicate on the "coupon_association_id" field.
func CouponAssociationIDGT ¶
func CouponAssociationIDGT(v string) predicate.CouponApplication
CouponAssociationIDGT applies the GT predicate on the "coupon_association_id" field.
func CouponAssociationIDGTE ¶
func CouponAssociationIDGTE(v string) predicate.CouponApplication
CouponAssociationIDGTE applies the GTE predicate on the "coupon_association_id" field.
func CouponAssociationIDHasPrefix ¶
func CouponAssociationIDHasPrefix(v string) predicate.CouponApplication
CouponAssociationIDHasPrefix applies the HasPrefix predicate on the "coupon_association_id" field.
func CouponAssociationIDHasSuffix ¶
func CouponAssociationIDHasSuffix(v string) predicate.CouponApplication
CouponAssociationIDHasSuffix applies the HasSuffix predicate on the "coupon_association_id" field.
func CouponAssociationIDIn ¶
func CouponAssociationIDIn(vs ...string) predicate.CouponApplication
CouponAssociationIDIn applies the In predicate on the "coupon_association_id" field.
func CouponAssociationIDIsNil ¶
func CouponAssociationIDIsNil() predicate.CouponApplication
CouponAssociationIDIsNil applies the IsNil predicate on the "coupon_association_id" field.
func CouponAssociationIDLT ¶
func CouponAssociationIDLT(v string) predicate.CouponApplication
CouponAssociationIDLT applies the LT predicate on the "coupon_association_id" field.
func CouponAssociationIDLTE ¶
func CouponAssociationIDLTE(v string) predicate.CouponApplication
CouponAssociationIDLTE applies the LTE predicate on the "coupon_association_id" field.
func CouponAssociationIDNEQ ¶
func CouponAssociationIDNEQ(v string) predicate.CouponApplication
CouponAssociationIDNEQ applies the NEQ predicate on the "coupon_association_id" field.
func CouponAssociationIDNotIn ¶
func CouponAssociationIDNotIn(vs ...string) predicate.CouponApplication
CouponAssociationIDNotIn applies the NotIn predicate on the "coupon_association_id" field.
func CouponAssociationIDNotNil ¶
func CouponAssociationIDNotNil() predicate.CouponApplication
CouponAssociationIDNotNil applies the NotNil predicate on the "coupon_association_id" field.
func CouponID ¶
func CouponID(v string) predicate.CouponApplication
CouponID applies equality check predicate on the "coupon_id" field. It's identical to CouponIDEQ.
func CouponIDContains ¶
func CouponIDContains(v string) predicate.CouponApplication
CouponIDContains applies the Contains predicate on the "coupon_id" field.
func CouponIDContainsFold ¶
func CouponIDContainsFold(v string) predicate.CouponApplication
CouponIDContainsFold applies the ContainsFold predicate on the "coupon_id" field.
func CouponIDEQ ¶
func CouponIDEQ(v string) predicate.CouponApplication
CouponIDEQ applies the EQ predicate on the "coupon_id" field.
func CouponIDEqualFold ¶
func CouponIDEqualFold(v string) predicate.CouponApplication
CouponIDEqualFold applies the EqualFold predicate on the "coupon_id" field.
func CouponIDGT ¶
func CouponIDGT(v string) predicate.CouponApplication
CouponIDGT applies the GT predicate on the "coupon_id" field.
func CouponIDGTE ¶
func CouponIDGTE(v string) predicate.CouponApplication
CouponIDGTE applies the GTE predicate on the "coupon_id" field.
func CouponIDHasPrefix ¶
func CouponIDHasPrefix(v string) predicate.CouponApplication
CouponIDHasPrefix applies the HasPrefix predicate on the "coupon_id" field.
func CouponIDHasSuffix ¶
func CouponIDHasSuffix(v string) predicate.CouponApplication
CouponIDHasSuffix applies the HasSuffix predicate on the "coupon_id" field.
func CouponIDIn ¶
func CouponIDIn(vs ...string) predicate.CouponApplication
CouponIDIn applies the In predicate on the "coupon_id" field.
func CouponIDLT ¶
func CouponIDLT(v string) predicate.CouponApplication
CouponIDLT applies the LT predicate on the "coupon_id" field.
func CouponIDLTE ¶
func CouponIDLTE(v string) predicate.CouponApplication
CouponIDLTE applies the LTE predicate on the "coupon_id" field.
func CouponIDNEQ ¶
func CouponIDNEQ(v string) predicate.CouponApplication
CouponIDNEQ applies the NEQ predicate on the "coupon_id" field.
func CouponIDNotIn ¶
func CouponIDNotIn(vs ...string) predicate.CouponApplication
CouponIDNotIn applies the NotIn predicate on the "coupon_id" field.
func CouponSnapshotIsNil ¶
func CouponSnapshotIsNil() predicate.CouponApplication
CouponSnapshotIsNil applies the IsNil predicate on the "coupon_snapshot" field.
func CouponSnapshotNotNil ¶
func CouponSnapshotNotNil() predicate.CouponApplication
CouponSnapshotNotNil applies the NotNil predicate on the "coupon_snapshot" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.CouponApplication
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.CouponApplication
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.CouponApplication
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.CouponApplication
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.CouponApplication
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.CouponApplication
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.CouponApplication
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.CouponApplication
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.CouponApplication
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.CouponApplication
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.CouponApplication
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.CouponApplication
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.CouponApplication
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.CouponApplication
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.CouponApplication
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.CouponApplication
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.CouponApplication
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.CouponApplication
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.CouponApplication
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.CouponApplication
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.CouponApplication
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.CouponApplication
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.CouponApplication
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.CouponApplication
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.CouponApplication
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func Currency ¶
func Currency(v string) predicate.CouponApplication
Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.
func CurrencyContains ¶
func CurrencyContains(v string) predicate.CouponApplication
CurrencyContains applies the Contains predicate on the "currency" field.
func CurrencyContainsFold ¶
func CurrencyContainsFold(v string) predicate.CouponApplication
CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.
func CurrencyEQ ¶
func CurrencyEQ(v string) predicate.CouponApplication
CurrencyEQ applies the EQ predicate on the "currency" field.
func CurrencyEqualFold ¶
func CurrencyEqualFold(v string) predicate.CouponApplication
CurrencyEqualFold applies the EqualFold predicate on the "currency" field.
func CurrencyGT ¶
func CurrencyGT(v string) predicate.CouponApplication
CurrencyGT applies the GT predicate on the "currency" field.
func CurrencyGTE ¶
func CurrencyGTE(v string) predicate.CouponApplication
CurrencyGTE applies the GTE predicate on the "currency" field.
func CurrencyHasPrefix ¶
func CurrencyHasPrefix(v string) predicate.CouponApplication
CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.
func CurrencyHasSuffix ¶
func CurrencyHasSuffix(v string) predicate.CouponApplication
CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.
func CurrencyIn ¶
func CurrencyIn(vs ...string) predicate.CouponApplication
CurrencyIn applies the In predicate on the "currency" field.
func CurrencyIsNil ¶
func CurrencyIsNil() predicate.CouponApplication
CurrencyIsNil applies the IsNil predicate on the "currency" field.
func CurrencyLT ¶
func CurrencyLT(v string) predicate.CouponApplication
CurrencyLT applies the LT predicate on the "currency" field.
func CurrencyLTE ¶
func CurrencyLTE(v string) predicate.CouponApplication
CurrencyLTE applies the LTE predicate on the "currency" field.
func CurrencyNEQ ¶
func CurrencyNEQ(v string) predicate.CouponApplication
CurrencyNEQ applies the NEQ predicate on the "currency" field.
func CurrencyNotIn ¶
func CurrencyNotIn(vs ...string) predicate.CouponApplication
CurrencyNotIn applies the NotIn predicate on the "currency" field.
func CurrencyNotNil ¶
func CurrencyNotNil() predicate.CouponApplication
CurrencyNotNil applies the NotNil predicate on the "currency" field.
func DiscountPercentage ¶
func DiscountPercentage(v decimal.Decimal) predicate.CouponApplication
DiscountPercentage applies equality check predicate on the "discount_percentage" field. It's identical to DiscountPercentageEQ.
func DiscountPercentageEQ ¶
func DiscountPercentageEQ(v decimal.Decimal) predicate.CouponApplication
DiscountPercentageEQ applies the EQ predicate on the "discount_percentage" field.
func DiscountPercentageGT ¶
func DiscountPercentageGT(v decimal.Decimal) predicate.CouponApplication
DiscountPercentageGT applies the GT predicate on the "discount_percentage" field.
func DiscountPercentageGTE ¶
func DiscountPercentageGTE(v decimal.Decimal) predicate.CouponApplication
DiscountPercentageGTE applies the GTE predicate on the "discount_percentage" field.
func DiscountPercentageIn ¶
func DiscountPercentageIn(vs ...decimal.Decimal) predicate.CouponApplication
DiscountPercentageIn applies the In predicate on the "discount_percentage" field.
func DiscountPercentageIsNil ¶
func DiscountPercentageIsNil() predicate.CouponApplication
DiscountPercentageIsNil applies the IsNil predicate on the "discount_percentage" field.
func DiscountPercentageLT ¶
func DiscountPercentageLT(v decimal.Decimal) predicate.CouponApplication
DiscountPercentageLT applies the LT predicate on the "discount_percentage" field.
func DiscountPercentageLTE ¶
func DiscountPercentageLTE(v decimal.Decimal) predicate.CouponApplication
DiscountPercentageLTE applies the LTE predicate on the "discount_percentage" field.
func DiscountPercentageNEQ ¶
func DiscountPercentageNEQ(v decimal.Decimal) predicate.CouponApplication
DiscountPercentageNEQ applies the NEQ predicate on the "discount_percentage" field.
func DiscountPercentageNotIn ¶
func DiscountPercentageNotIn(vs ...decimal.Decimal) predicate.CouponApplication
DiscountPercentageNotIn applies the NotIn predicate on the "discount_percentage" field.
func DiscountPercentageNotNil ¶
func DiscountPercentageNotNil() predicate.CouponApplication
DiscountPercentageNotNil applies the NotNil predicate on the "discount_percentage" field.
func DiscountType ¶
func DiscountType(v string) predicate.CouponApplication
DiscountType applies equality check predicate on the "discount_type" field. It's identical to DiscountTypeEQ.
func DiscountTypeContains ¶
func DiscountTypeContains(v string) predicate.CouponApplication
DiscountTypeContains applies the Contains predicate on the "discount_type" field.
func DiscountTypeContainsFold ¶
func DiscountTypeContainsFold(v string) predicate.CouponApplication
DiscountTypeContainsFold applies the ContainsFold predicate on the "discount_type" field.
func DiscountTypeEQ ¶
func DiscountTypeEQ(v string) predicate.CouponApplication
DiscountTypeEQ applies the EQ predicate on the "discount_type" field.
func DiscountTypeEqualFold ¶
func DiscountTypeEqualFold(v string) predicate.CouponApplication
DiscountTypeEqualFold applies the EqualFold predicate on the "discount_type" field.
func DiscountTypeGT ¶
func DiscountTypeGT(v string) predicate.CouponApplication
DiscountTypeGT applies the GT predicate on the "discount_type" field.
func DiscountTypeGTE ¶
func DiscountTypeGTE(v string) predicate.CouponApplication
DiscountTypeGTE applies the GTE predicate on the "discount_type" field.
func DiscountTypeHasPrefix ¶
func DiscountTypeHasPrefix(v string) predicate.CouponApplication
DiscountTypeHasPrefix applies the HasPrefix predicate on the "discount_type" field.
func DiscountTypeHasSuffix ¶
func DiscountTypeHasSuffix(v string) predicate.CouponApplication
DiscountTypeHasSuffix applies the HasSuffix predicate on the "discount_type" field.
func DiscountTypeIn ¶
func DiscountTypeIn(vs ...string) predicate.CouponApplication
DiscountTypeIn applies the In predicate on the "discount_type" field.
func DiscountTypeLT ¶
func DiscountTypeLT(v string) predicate.CouponApplication
DiscountTypeLT applies the LT predicate on the "discount_type" field.
func DiscountTypeLTE ¶
func DiscountTypeLTE(v string) predicate.CouponApplication
DiscountTypeLTE applies the LTE predicate on the "discount_type" field.
func DiscountTypeNEQ ¶
func DiscountTypeNEQ(v string) predicate.CouponApplication
DiscountTypeNEQ applies the NEQ predicate on the "discount_type" field.
func DiscountTypeNotIn ¶
func DiscountTypeNotIn(vs ...string) predicate.CouponApplication
DiscountTypeNotIn applies the NotIn predicate on the "discount_type" field.
func DiscountedAmount ¶
func DiscountedAmount(v decimal.Decimal) predicate.CouponApplication
DiscountedAmount applies equality check predicate on the "discounted_amount" field. It's identical to DiscountedAmountEQ.
func DiscountedAmountEQ ¶
func DiscountedAmountEQ(v decimal.Decimal) predicate.CouponApplication
DiscountedAmountEQ applies the EQ predicate on the "discounted_amount" field.
func DiscountedAmountGT ¶
func DiscountedAmountGT(v decimal.Decimal) predicate.CouponApplication
DiscountedAmountGT applies the GT predicate on the "discounted_amount" field.
func DiscountedAmountGTE ¶
func DiscountedAmountGTE(v decimal.Decimal) predicate.CouponApplication
DiscountedAmountGTE applies the GTE predicate on the "discounted_amount" field.
func DiscountedAmountIn ¶
func DiscountedAmountIn(vs ...decimal.Decimal) predicate.CouponApplication
DiscountedAmountIn applies the In predicate on the "discounted_amount" field.
func DiscountedAmountLT ¶
func DiscountedAmountLT(v decimal.Decimal) predicate.CouponApplication
DiscountedAmountLT applies the LT predicate on the "discounted_amount" field.
func DiscountedAmountLTE ¶
func DiscountedAmountLTE(v decimal.Decimal) predicate.CouponApplication
DiscountedAmountLTE applies the LTE predicate on the "discounted_amount" field.
func DiscountedAmountNEQ ¶
func DiscountedAmountNEQ(v decimal.Decimal) predicate.CouponApplication
DiscountedAmountNEQ applies the NEQ predicate on the "discounted_amount" field.
func DiscountedAmountNotIn ¶
func DiscountedAmountNotIn(vs ...decimal.Decimal) predicate.CouponApplication
DiscountedAmountNotIn applies the NotIn predicate on the "discounted_amount" field.
func EnvironmentID ¶
func EnvironmentID(v string) predicate.CouponApplication
EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.
func EnvironmentIDContains ¶
func EnvironmentIDContains(v string) predicate.CouponApplication
EnvironmentIDContains applies the Contains predicate on the "environment_id" field.
func EnvironmentIDContainsFold ¶
func EnvironmentIDContainsFold(v string) predicate.CouponApplication
EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.
func EnvironmentIDEQ ¶
func EnvironmentIDEQ(v string) predicate.CouponApplication
EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.
func EnvironmentIDEqualFold ¶
func EnvironmentIDEqualFold(v string) predicate.CouponApplication
EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.
func EnvironmentIDGT ¶
func EnvironmentIDGT(v string) predicate.CouponApplication
EnvironmentIDGT applies the GT predicate on the "environment_id" field.
func EnvironmentIDGTE ¶
func EnvironmentIDGTE(v string) predicate.CouponApplication
EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.
func EnvironmentIDHasPrefix ¶
func EnvironmentIDHasPrefix(v string) predicate.CouponApplication
EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.
func EnvironmentIDHasSuffix ¶
func EnvironmentIDHasSuffix(v string) predicate.CouponApplication
EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.
func EnvironmentIDIn ¶
func EnvironmentIDIn(vs ...string) predicate.CouponApplication
EnvironmentIDIn applies the In predicate on the "environment_id" field.
func EnvironmentIDIsNil ¶
func EnvironmentIDIsNil() predicate.CouponApplication
EnvironmentIDIsNil applies the IsNil predicate on the "environment_id" field.
func EnvironmentIDLT ¶
func EnvironmentIDLT(v string) predicate.CouponApplication
EnvironmentIDLT applies the LT predicate on the "environment_id" field.
func EnvironmentIDLTE ¶
func EnvironmentIDLTE(v string) predicate.CouponApplication
EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.
func EnvironmentIDNEQ ¶
func EnvironmentIDNEQ(v string) predicate.CouponApplication
EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.
func EnvironmentIDNotIn ¶
func EnvironmentIDNotIn(vs ...string) predicate.CouponApplication
EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.
func EnvironmentIDNotNil ¶
func EnvironmentIDNotNil() predicate.CouponApplication
EnvironmentIDNotNil applies the NotNil predicate on the "environment_id" field.
func FinalPrice ¶
func FinalPrice(v decimal.Decimal) predicate.CouponApplication
FinalPrice applies equality check predicate on the "final_price" field. It's identical to FinalPriceEQ.
func FinalPriceEQ ¶
func FinalPriceEQ(v decimal.Decimal) predicate.CouponApplication
FinalPriceEQ applies the EQ predicate on the "final_price" field.
func FinalPriceGT ¶
func FinalPriceGT(v decimal.Decimal) predicate.CouponApplication
FinalPriceGT applies the GT predicate on the "final_price" field.
func FinalPriceGTE ¶
func FinalPriceGTE(v decimal.Decimal) predicate.CouponApplication
FinalPriceGTE applies the GTE predicate on the "final_price" field.
func FinalPriceIn ¶
func FinalPriceIn(vs ...decimal.Decimal) predicate.CouponApplication
FinalPriceIn applies the In predicate on the "final_price" field.
func FinalPriceLT ¶
func FinalPriceLT(v decimal.Decimal) predicate.CouponApplication
FinalPriceLT applies the LT predicate on the "final_price" field.
func FinalPriceLTE ¶
func FinalPriceLTE(v decimal.Decimal) predicate.CouponApplication
FinalPriceLTE applies the LTE predicate on the "final_price" field.
func FinalPriceNEQ ¶
func FinalPriceNEQ(v decimal.Decimal) predicate.CouponApplication
FinalPriceNEQ applies the NEQ predicate on the "final_price" field.
func FinalPriceNotIn ¶
func FinalPriceNotIn(vs ...decimal.Decimal) predicate.CouponApplication
FinalPriceNotIn applies the NotIn predicate on the "final_price" field.
func HasCoupon ¶
func HasCoupon() predicate.CouponApplication
HasCoupon applies the HasEdge predicate on the "coupon" edge.
func HasCouponAssociation ¶
func HasCouponAssociation() predicate.CouponApplication
HasCouponAssociation applies the HasEdge predicate on the "coupon_association" edge.
func HasCouponAssociationWith ¶
func HasCouponAssociationWith(preds ...predicate.CouponAssociation) predicate.CouponApplication
HasCouponAssociationWith applies the HasEdge predicate on the "coupon_association" edge with a given conditions (other predicates).
func HasCouponWith ¶
func HasCouponWith(preds ...predicate.Coupon) predicate.CouponApplication
HasCouponWith applies the HasEdge predicate on the "coupon" edge with a given conditions (other predicates).
func HasInvoice ¶
func HasInvoice() predicate.CouponApplication
HasInvoice applies the HasEdge predicate on the "invoice" edge.
func HasInvoiceLineItem ¶
func HasInvoiceLineItem() predicate.CouponApplication
HasInvoiceLineItem applies the HasEdge predicate on the "invoice_line_item" edge.
func HasInvoiceLineItemWith ¶
func HasInvoiceLineItemWith(preds ...predicate.InvoiceLineItem) predicate.CouponApplication
HasInvoiceLineItemWith applies the HasEdge predicate on the "invoice_line_item" edge with a given conditions (other predicates).
func HasInvoiceWith ¶
func HasInvoiceWith(preds ...predicate.Invoice) predicate.CouponApplication
HasInvoiceWith applies the HasEdge predicate on the "invoice" edge with a given conditions (other predicates).
func HasSubscription ¶
func HasSubscription() predicate.CouponApplication
HasSubscription applies the HasEdge predicate on the "subscription" edge.
func HasSubscriptionWith ¶
func HasSubscriptionWith(preds ...predicate.Subscription) predicate.CouponApplication
HasSubscriptionWith applies the HasEdge predicate on the "subscription" edge with a given conditions (other predicates).
func ID ¶
func ID(id string) predicate.CouponApplication
ID filters vertices based on their ID field.
func IDContainsFold ¶
func IDContainsFold(id string) predicate.CouponApplication
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.CouponApplication
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.CouponApplication
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.CouponApplication
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.CouponApplication
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.CouponApplication
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.CouponApplication
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.CouponApplication
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.CouponApplication
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.CouponApplication
IDNotIn applies the NotIn predicate on the ID field.
func InvoiceID ¶
func InvoiceID(v string) predicate.CouponApplication
InvoiceID applies equality check predicate on the "invoice_id" field. It's identical to InvoiceIDEQ.
func InvoiceIDContains ¶
func InvoiceIDContains(v string) predicate.CouponApplication
InvoiceIDContains applies the Contains predicate on the "invoice_id" field.
func InvoiceIDContainsFold ¶
func InvoiceIDContainsFold(v string) predicate.CouponApplication
InvoiceIDContainsFold applies the ContainsFold predicate on the "invoice_id" field.
func InvoiceIDEQ ¶
func InvoiceIDEQ(v string) predicate.CouponApplication
InvoiceIDEQ applies the EQ predicate on the "invoice_id" field.
func InvoiceIDEqualFold ¶
func InvoiceIDEqualFold(v string) predicate.CouponApplication
InvoiceIDEqualFold applies the EqualFold predicate on the "invoice_id" field.
func InvoiceIDGT ¶
func InvoiceIDGT(v string) predicate.CouponApplication
InvoiceIDGT applies the GT predicate on the "invoice_id" field.
func InvoiceIDGTE ¶
func InvoiceIDGTE(v string) predicate.CouponApplication
InvoiceIDGTE applies the GTE predicate on the "invoice_id" field.
func InvoiceIDHasPrefix ¶
func InvoiceIDHasPrefix(v string) predicate.CouponApplication
InvoiceIDHasPrefix applies the HasPrefix predicate on the "invoice_id" field.
func InvoiceIDHasSuffix ¶
func InvoiceIDHasSuffix(v string) predicate.CouponApplication
InvoiceIDHasSuffix applies the HasSuffix predicate on the "invoice_id" field.
func InvoiceIDIn ¶
func InvoiceIDIn(vs ...string) predicate.CouponApplication
InvoiceIDIn applies the In predicate on the "invoice_id" field.
func InvoiceIDLT ¶
func InvoiceIDLT(v string) predicate.CouponApplication
InvoiceIDLT applies the LT predicate on the "invoice_id" field.
func InvoiceIDLTE ¶
func InvoiceIDLTE(v string) predicate.CouponApplication
InvoiceIDLTE applies the LTE predicate on the "invoice_id" field.
func InvoiceIDNEQ ¶
func InvoiceIDNEQ(v string) predicate.CouponApplication
InvoiceIDNEQ applies the NEQ predicate on the "invoice_id" field.
func InvoiceIDNotIn ¶
func InvoiceIDNotIn(vs ...string) predicate.CouponApplication
InvoiceIDNotIn applies the NotIn predicate on the "invoice_id" field.
func InvoiceLineItemID ¶
func InvoiceLineItemID(v string) predicate.CouponApplication
InvoiceLineItemID applies equality check predicate on the "invoice_line_item_id" field. It's identical to InvoiceLineItemIDEQ.
func InvoiceLineItemIDContains ¶
func InvoiceLineItemIDContains(v string) predicate.CouponApplication
InvoiceLineItemIDContains applies the Contains predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDContainsFold ¶
func InvoiceLineItemIDContainsFold(v string) predicate.CouponApplication
InvoiceLineItemIDContainsFold applies the ContainsFold predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDEQ ¶
func InvoiceLineItemIDEQ(v string) predicate.CouponApplication
InvoiceLineItemIDEQ applies the EQ predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDEqualFold ¶
func InvoiceLineItemIDEqualFold(v string) predicate.CouponApplication
InvoiceLineItemIDEqualFold applies the EqualFold predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDGT ¶
func InvoiceLineItemIDGT(v string) predicate.CouponApplication
InvoiceLineItemIDGT applies the GT predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDGTE ¶
func InvoiceLineItemIDGTE(v string) predicate.CouponApplication
InvoiceLineItemIDGTE applies the GTE predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDHasPrefix ¶
func InvoiceLineItemIDHasPrefix(v string) predicate.CouponApplication
InvoiceLineItemIDHasPrefix applies the HasPrefix predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDHasSuffix ¶
func InvoiceLineItemIDHasSuffix(v string) predicate.CouponApplication
InvoiceLineItemIDHasSuffix applies the HasSuffix predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDIn ¶
func InvoiceLineItemIDIn(vs ...string) predicate.CouponApplication
InvoiceLineItemIDIn applies the In predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDIsNil ¶
func InvoiceLineItemIDIsNil() predicate.CouponApplication
InvoiceLineItemIDIsNil applies the IsNil predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDLT ¶
func InvoiceLineItemIDLT(v string) predicate.CouponApplication
InvoiceLineItemIDLT applies the LT predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDLTE ¶
func InvoiceLineItemIDLTE(v string) predicate.CouponApplication
InvoiceLineItemIDLTE applies the LTE predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDNEQ ¶
func InvoiceLineItemIDNEQ(v string) predicate.CouponApplication
InvoiceLineItemIDNEQ applies the NEQ predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDNotIn ¶
func InvoiceLineItemIDNotIn(vs ...string) predicate.CouponApplication
InvoiceLineItemIDNotIn applies the NotIn predicate on the "invoice_line_item_id" field.
func InvoiceLineItemIDNotNil ¶
func InvoiceLineItemIDNotNil() predicate.CouponApplication
InvoiceLineItemIDNotNil applies the NotNil predicate on the "invoice_line_item_id" field.
func MetadataIsNil ¶
func MetadataIsNil() predicate.CouponApplication
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
func MetadataNotNil() predicate.CouponApplication
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func Not ¶
func Not(p predicate.CouponApplication) predicate.CouponApplication
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CouponApplication) predicate.CouponApplication
Or groups predicates with the OR operator between them.
func OriginalPrice ¶
func OriginalPrice(v decimal.Decimal) predicate.CouponApplication
OriginalPrice applies equality check predicate on the "original_price" field. It's identical to OriginalPriceEQ.
func OriginalPriceEQ ¶
func OriginalPriceEQ(v decimal.Decimal) predicate.CouponApplication
OriginalPriceEQ applies the EQ predicate on the "original_price" field.
func OriginalPriceGT ¶
func OriginalPriceGT(v decimal.Decimal) predicate.CouponApplication
OriginalPriceGT applies the GT predicate on the "original_price" field.
func OriginalPriceGTE ¶
func OriginalPriceGTE(v decimal.Decimal) predicate.CouponApplication
OriginalPriceGTE applies the GTE predicate on the "original_price" field.
func OriginalPriceIn ¶
func OriginalPriceIn(vs ...decimal.Decimal) predicate.CouponApplication
OriginalPriceIn applies the In predicate on the "original_price" field.
func OriginalPriceLT ¶
func OriginalPriceLT(v decimal.Decimal) predicate.CouponApplication
OriginalPriceLT applies the LT predicate on the "original_price" field.
func OriginalPriceLTE ¶
func OriginalPriceLTE(v decimal.Decimal) predicate.CouponApplication
OriginalPriceLTE applies the LTE predicate on the "original_price" field.
func OriginalPriceNEQ ¶
func OriginalPriceNEQ(v decimal.Decimal) predicate.CouponApplication
OriginalPriceNEQ applies the NEQ predicate on the "original_price" field.
func OriginalPriceNotIn ¶
func OriginalPriceNotIn(vs ...decimal.Decimal) predicate.CouponApplication
OriginalPriceNotIn applies the NotIn predicate on the "original_price" field.
func Status ¶
func Status(v string) predicate.CouponApplication
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
func StatusContains(v string) predicate.CouponApplication
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
func StatusContainsFold(v string) predicate.CouponApplication
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEQ ¶
func StatusEQ(v string) predicate.CouponApplication
StatusEQ applies the EQ predicate on the "status" field.
func StatusEqualFold ¶
func StatusEqualFold(v string) predicate.CouponApplication
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusGT ¶
func StatusGT(v string) predicate.CouponApplication
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v string) predicate.CouponApplication
StatusGTE applies the GTE predicate on the "status" field.
func StatusHasPrefix ¶
func StatusHasPrefix(v string) predicate.CouponApplication
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
func StatusHasSuffix(v string) predicate.CouponApplication
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...string) predicate.CouponApplication
StatusIn applies the In predicate on the "status" field.
func StatusLT ¶
func StatusLT(v string) predicate.CouponApplication
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v string) predicate.CouponApplication
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v string) predicate.CouponApplication
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...string) predicate.CouponApplication
StatusNotIn applies the NotIn predicate on the "status" field.
func SubscriptionID ¶
func SubscriptionID(v string) predicate.CouponApplication
SubscriptionID applies equality check predicate on the "subscription_id" field. It's identical to SubscriptionIDEQ.
func SubscriptionIDContains ¶
func SubscriptionIDContains(v string) predicate.CouponApplication
SubscriptionIDContains applies the Contains predicate on the "subscription_id" field.
func SubscriptionIDContainsFold ¶
func SubscriptionIDContainsFold(v string) predicate.CouponApplication
SubscriptionIDContainsFold applies the ContainsFold predicate on the "subscription_id" field.
func SubscriptionIDEQ ¶
func SubscriptionIDEQ(v string) predicate.CouponApplication
SubscriptionIDEQ applies the EQ predicate on the "subscription_id" field.
func SubscriptionIDEqualFold ¶
func SubscriptionIDEqualFold(v string) predicate.CouponApplication
SubscriptionIDEqualFold applies the EqualFold predicate on the "subscription_id" field.
func SubscriptionIDGT ¶
func SubscriptionIDGT(v string) predicate.CouponApplication
SubscriptionIDGT applies the GT predicate on the "subscription_id" field.
func SubscriptionIDGTE ¶
func SubscriptionIDGTE(v string) predicate.CouponApplication
SubscriptionIDGTE applies the GTE predicate on the "subscription_id" field.
func SubscriptionIDHasPrefix ¶
func SubscriptionIDHasPrefix(v string) predicate.CouponApplication
SubscriptionIDHasPrefix applies the HasPrefix predicate on the "subscription_id" field.
func SubscriptionIDHasSuffix ¶
func SubscriptionIDHasSuffix(v string) predicate.CouponApplication
SubscriptionIDHasSuffix applies the HasSuffix predicate on the "subscription_id" field.
func SubscriptionIDIn ¶
func SubscriptionIDIn(vs ...string) predicate.CouponApplication
SubscriptionIDIn applies the In predicate on the "subscription_id" field.
func SubscriptionIDIsNil ¶
func SubscriptionIDIsNil() predicate.CouponApplication
SubscriptionIDIsNil applies the IsNil predicate on the "subscription_id" field.
func SubscriptionIDLT ¶
func SubscriptionIDLT(v string) predicate.CouponApplication
SubscriptionIDLT applies the LT predicate on the "subscription_id" field.
func SubscriptionIDLTE ¶
func SubscriptionIDLTE(v string) predicate.CouponApplication
SubscriptionIDLTE applies the LTE predicate on the "subscription_id" field.
func SubscriptionIDNEQ ¶
func SubscriptionIDNEQ(v string) predicate.CouponApplication
SubscriptionIDNEQ applies the NEQ predicate on the "subscription_id" field.
func SubscriptionIDNotIn ¶
func SubscriptionIDNotIn(vs ...string) predicate.CouponApplication
SubscriptionIDNotIn applies the NotIn predicate on the "subscription_id" field.
func SubscriptionIDNotNil ¶
func SubscriptionIDNotNil() predicate.CouponApplication
SubscriptionIDNotNil applies the NotNil predicate on the "subscription_id" field.
func TenantID ¶
func TenantID(v string) predicate.CouponApplication
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDContains ¶
func TenantIDContains(v string) predicate.CouponApplication
TenantIDContains applies the Contains predicate on the "tenant_id" field.
func TenantIDContainsFold ¶
func TenantIDContainsFold(v string) predicate.CouponApplication
TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.
func TenantIDEQ ¶
func TenantIDEQ(v string) predicate.CouponApplication
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDEqualFold ¶
func TenantIDEqualFold(v string) predicate.CouponApplication
TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.
func TenantIDGT ¶
func TenantIDGT(v string) predicate.CouponApplication
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
func TenantIDGTE(v string) predicate.CouponApplication
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDHasPrefix ¶
func TenantIDHasPrefix(v string) predicate.CouponApplication
TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.
func TenantIDHasSuffix ¶
func TenantIDHasSuffix(v string) predicate.CouponApplication
TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.
func TenantIDIn ¶
func TenantIDIn(vs ...string) predicate.CouponApplication
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
func TenantIDLT(v string) predicate.CouponApplication
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
func TenantIDLTE(v string) predicate.CouponApplication
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
func TenantIDNEQ(v string) predicate.CouponApplication
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
func TenantIDNotIn(vs ...string) predicate.CouponApplication
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.CouponApplication
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.CouponApplication
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.CouponApplication
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.CouponApplication
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.CouponApplication
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.CouponApplication
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.CouponApplication
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.CouponApplication
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.CouponApplication
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.CouponApplication
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.CouponApplication
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.CouponApplication
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.CouponApplication
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.CouponApplication
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.CouponApplication
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.CouponApplication
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.CouponApplication
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.CouponApplication
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.CouponApplication
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.CouponApplication
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.CouponApplication
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.CouponApplication
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.CouponApplication
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.CouponApplication
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.CouponApplication
UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 CouponApplication queries.
func ByAppliedAt ¶
func ByAppliedAt(opts ...sql.OrderTermOption) OrderOption
ByAppliedAt orders the results by the applied_at field.
func ByCouponAssociation ¶
func ByCouponAssociation(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCouponAssociation orders the results by coupon_association terms.
func ByCouponAssociationCount ¶
func ByCouponAssociationCount(opts ...sql.OrderTermOption) OrderOption
ByCouponAssociationCount orders the results by coupon_association count.
func ByCouponAssociationID ¶
func ByCouponAssociationID(opts ...sql.OrderTermOption) OrderOption
ByCouponAssociationID orders the results by the coupon_association_id field.
func ByCouponField ¶
func ByCouponField(field string, opts ...sql.OrderTermOption) OrderOption
ByCouponField orders the results by coupon field.
func ByCouponID ¶
func ByCouponID(opts ...sql.OrderTermOption) OrderOption
ByCouponID orders the results by the coupon_id field.
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 ByCurrency ¶
func ByCurrency(opts ...sql.OrderTermOption) OrderOption
ByCurrency orders the results by the currency field.
func ByDiscountPercentage ¶
func ByDiscountPercentage(opts ...sql.OrderTermOption) OrderOption
ByDiscountPercentage orders the results by the discount_percentage field.
func ByDiscountType ¶
func ByDiscountType(opts ...sql.OrderTermOption) OrderOption
ByDiscountType orders the results by the discount_type field.
func ByDiscountedAmount ¶
func ByDiscountedAmount(opts ...sql.OrderTermOption) OrderOption
ByDiscountedAmount orders the results by the discounted_amount field.
func ByEnvironmentID ¶
func ByEnvironmentID(opts ...sql.OrderTermOption) OrderOption
ByEnvironmentID orders the results by the environment_id field.
func ByFinalPrice ¶
func ByFinalPrice(opts ...sql.OrderTermOption) OrderOption
ByFinalPrice orders the results by the final_price field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInvoiceField ¶
func ByInvoiceField(field string, opts ...sql.OrderTermOption) OrderOption
ByInvoiceField orders the results by invoice field.
func ByInvoiceID ¶
func ByInvoiceID(opts ...sql.OrderTermOption) OrderOption
ByInvoiceID orders the results by the invoice_id field.
func ByInvoiceLineItemField ¶
func ByInvoiceLineItemField(field string, opts ...sql.OrderTermOption) OrderOption
ByInvoiceLineItemField orders the results by invoice_line_item field.
func ByInvoiceLineItemID ¶
func ByInvoiceLineItemID(opts ...sql.OrderTermOption) OrderOption
ByInvoiceLineItemID orders the results by the invoice_line_item_id field.
func ByOriginalPrice ¶
func ByOriginalPrice(opts ...sql.OrderTermOption) OrderOption
ByOriginalPrice orders the results by the original_price field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func BySubscriptionField ¶
func BySubscriptionField(field string, opts ...sql.OrderTermOption) OrderOption
BySubscriptionField orders the results by subscription field.
func BySubscriptionID ¶
func BySubscriptionID(opts ...sql.OrderTermOption) OrderOption
BySubscriptionID orders the results by the subscription_id field.
func ByTenantID ¶
func ByTenantID(opts ...sql.OrderTermOption) OrderOption
ByTenantID orders the results by the tenant_id 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.