Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Charge) predicate.Charge
- func ChargeCreditPurchaseID(v string) predicate.Charge
- func ChargeCreditPurchaseIDContains(v string) predicate.Charge
- func ChargeCreditPurchaseIDContainsFold(v string) predicate.Charge
- func ChargeCreditPurchaseIDEQ(v string) predicate.Charge
- func ChargeCreditPurchaseIDEqualFold(v string) predicate.Charge
- func ChargeCreditPurchaseIDGT(v string) predicate.Charge
- func ChargeCreditPurchaseIDGTE(v string) predicate.Charge
- func ChargeCreditPurchaseIDHasPrefix(v string) predicate.Charge
- func ChargeCreditPurchaseIDHasSuffix(v string) predicate.Charge
- func ChargeCreditPurchaseIDIn(vs ...string) predicate.Charge
- func ChargeCreditPurchaseIDIsNil() predicate.Charge
- func ChargeCreditPurchaseIDLT(v string) predicate.Charge
- func ChargeCreditPurchaseIDLTE(v string) predicate.Charge
- func ChargeCreditPurchaseIDNEQ(v string) predicate.Charge
- func ChargeCreditPurchaseIDNotIn(vs ...string) predicate.Charge
- func ChargeCreditPurchaseIDNotNil() predicate.Charge
- func ChargeFlatFeeID(v string) predicate.Charge
- func ChargeFlatFeeIDContains(v string) predicate.Charge
- func ChargeFlatFeeIDContainsFold(v string) predicate.Charge
- func ChargeFlatFeeIDEQ(v string) predicate.Charge
- func ChargeFlatFeeIDEqualFold(v string) predicate.Charge
- func ChargeFlatFeeIDGT(v string) predicate.Charge
- func ChargeFlatFeeIDGTE(v string) predicate.Charge
- func ChargeFlatFeeIDHasPrefix(v string) predicate.Charge
- func ChargeFlatFeeIDHasSuffix(v string) predicate.Charge
- func ChargeFlatFeeIDIn(vs ...string) predicate.Charge
- func ChargeFlatFeeIDIsNil() predicate.Charge
- func ChargeFlatFeeIDLT(v string) predicate.Charge
- func ChargeFlatFeeIDLTE(v string) predicate.Charge
- func ChargeFlatFeeIDNEQ(v string) predicate.Charge
- func ChargeFlatFeeIDNotIn(vs ...string) predicate.Charge
- func ChargeFlatFeeIDNotNil() predicate.Charge
- func ChargeUsageBasedID(v string) predicate.Charge
- func ChargeUsageBasedIDContains(v string) predicate.Charge
- func ChargeUsageBasedIDContainsFold(v string) predicate.Charge
- func ChargeUsageBasedIDEQ(v string) predicate.Charge
- func ChargeUsageBasedIDEqualFold(v string) predicate.Charge
- func ChargeUsageBasedIDGT(v string) predicate.Charge
- func ChargeUsageBasedIDGTE(v string) predicate.Charge
- func ChargeUsageBasedIDHasPrefix(v string) predicate.Charge
- func ChargeUsageBasedIDHasSuffix(v string) predicate.Charge
- func ChargeUsageBasedIDIn(vs ...string) predicate.Charge
- func ChargeUsageBasedIDIsNil() predicate.Charge
- func ChargeUsageBasedIDLT(v string) predicate.Charge
- func ChargeUsageBasedIDLTE(v string) predicate.Charge
- func ChargeUsageBasedIDNEQ(v string) predicate.Charge
- func ChargeUsageBasedIDNotIn(vs ...string) predicate.Charge
- func ChargeUsageBasedIDNotNil() predicate.Charge
- func CreatedAt(v time.Time) predicate.Charge
- func CreatedAtEQ(v time.Time) predicate.Charge
- func CreatedAtGT(v time.Time) predicate.Charge
- func CreatedAtGTE(v time.Time) predicate.Charge
- func CreatedAtIn(vs ...time.Time) predicate.Charge
- func CreatedAtLT(v time.Time) predicate.Charge
- func CreatedAtLTE(v time.Time) predicate.Charge
- func CreatedAtNEQ(v time.Time) predicate.Charge
- func CreatedAtNotIn(vs ...time.Time) predicate.Charge
- func DeletedAt(v time.Time) predicate.Charge
- func DeletedAtEQ(v time.Time) predicate.Charge
- func DeletedAtGT(v time.Time) predicate.Charge
- func DeletedAtGTE(v time.Time) predicate.Charge
- func DeletedAtIn(vs ...time.Time) predicate.Charge
- func DeletedAtIsNil() predicate.Charge
- func DeletedAtLT(v time.Time) predicate.Charge
- func DeletedAtLTE(v time.Time) predicate.Charge
- func DeletedAtNEQ(v time.Time) predicate.Charge
- func DeletedAtNotIn(vs ...time.Time) predicate.Charge
- func DeletedAtNotNil() predicate.Charge
- func HasBillingInvoiceLines() predicate.Charge
- func HasBillingInvoiceLinesWith(preds ...predicate.BillingInvoiceLine) predicate.Charge
- func HasBillingSplitLineGroups() predicate.Charge
- func HasBillingSplitLineGroupsWith(preds ...predicate.BillingInvoiceSplitLineGroup) predicate.Charge
- func HasCreditPurchase() predicate.Charge
- func HasCreditPurchaseWith(preds ...predicate.ChargeCreditPurchase) predicate.Charge
- func HasCreditRealizationLineages() predicate.Charge
- func HasCreditRealizationLineagesWith(preds ...predicate.CreditRealizationLineage) predicate.Charge
- func HasFlatFee() predicate.Charge
- func HasFlatFeeWith(preds ...predicate.ChargeFlatFee) predicate.Charge
- func HasUsageBased() predicate.Charge
- func HasUsageBasedWith(preds ...predicate.ChargeUsageBased) predicate.Charge
- func ID(id string) predicate.Charge
- func IDContainsFold(id string) predicate.Charge
- func IDEQ(id string) predicate.Charge
- func IDEqualFold(id string) predicate.Charge
- func IDGT(id string) predicate.Charge
- func IDGTE(id string) predicate.Charge
- func IDIn(ids ...string) predicate.Charge
- func IDLT(id string) predicate.Charge
- func IDLTE(id string) predicate.Charge
- func IDNEQ(id string) predicate.Charge
- func IDNotIn(ids ...string) predicate.Charge
- func Namespace(v string) predicate.Charge
- func NamespaceContains(v string) predicate.Charge
- func NamespaceContainsFold(v string) predicate.Charge
- func NamespaceEQ(v string) predicate.Charge
- func NamespaceEqualFold(v string) predicate.Charge
- func NamespaceGT(v string) predicate.Charge
- func NamespaceGTE(v string) predicate.Charge
- func NamespaceHasPrefix(v string) predicate.Charge
- func NamespaceHasSuffix(v string) predicate.Charge
- func NamespaceIn(vs ...string) predicate.Charge
- func NamespaceLT(v string) predicate.Charge
- func NamespaceLTE(v string) predicate.Charge
- func NamespaceNEQ(v string) predicate.Charge
- func NamespaceNotIn(vs ...string) predicate.Charge
- func Not(p predicate.Charge) predicate.Charge
- func Or(predicates ...predicate.Charge) predicate.Charge
- func Type(v meta.ChargeType) predicate.Charge
- func TypeContains(v meta.ChargeType) predicate.Charge
- func TypeContainsFold(v meta.ChargeType) predicate.Charge
- func TypeEQ(v meta.ChargeType) predicate.Charge
- func TypeEqualFold(v meta.ChargeType) predicate.Charge
- func TypeGT(v meta.ChargeType) predicate.Charge
- func TypeGTE(v meta.ChargeType) predicate.Charge
- func TypeHasPrefix(v meta.ChargeType) predicate.Charge
- func TypeHasSuffix(v meta.ChargeType) predicate.Charge
- func TypeIn(vs ...meta.ChargeType) predicate.Charge
- func TypeLT(v meta.ChargeType) predicate.Charge
- func TypeLTE(v meta.ChargeType) predicate.Charge
- func TypeNEQ(v meta.ChargeType) predicate.Charge
- func TypeNotIn(vs ...meta.ChargeType) predicate.Charge
- func UniqueReferenceID(v string) predicate.Charge
- func UniqueReferenceIDContains(v string) predicate.Charge
- func UniqueReferenceIDContainsFold(v string) predicate.Charge
- func UniqueReferenceIDEQ(v string) predicate.Charge
- func UniqueReferenceIDEqualFold(v string) predicate.Charge
- func UniqueReferenceIDGT(v string) predicate.Charge
- func UniqueReferenceIDGTE(v string) predicate.Charge
- func UniqueReferenceIDHasPrefix(v string) predicate.Charge
- func UniqueReferenceIDHasSuffix(v string) predicate.Charge
- func UniqueReferenceIDIn(vs ...string) predicate.Charge
- func UniqueReferenceIDIsNil() predicate.Charge
- func UniqueReferenceIDLT(v string) predicate.Charge
- func UniqueReferenceIDLTE(v string) predicate.Charge
- func UniqueReferenceIDNEQ(v string) predicate.Charge
- func UniqueReferenceIDNotIn(vs ...string) predicate.Charge
- func UniqueReferenceIDNotNil() predicate.Charge
- func ValidColumn(column string) bool
- type OrderOption
- func ByBillingInvoiceLines(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBillingInvoiceLinesCount(opts ...sql.OrderTermOption) OrderOption
- func ByBillingSplitLineGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBillingSplitLineGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByChargeCreditPurchaseID(opts ...sql.OrderTermOption) OrderOption
- func ByChargeFlatFeeID(opts ...sql.OrderTermOption) OrderOption
- func ByChargeUsageBasedID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreditPurchaseField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCreditRealizationLineages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCreditRealizationLineagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFlatFeeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNamespace(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUniqueReferenceID(opts ...sql.OrderTermOption) OrderOption
- func ByUsageBasedField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the charge type in the database. Label = "charge" // 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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldUniqueReferenceID holds the string denoting the unique_reference_id field in the database. FieldUniqueReferenceID = "unique_reference_id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldChargeFlatFeeID holds the string denoting the charge_flat_fee_id field in the database. FieldChargeFlatFeeID = "charge_flat_fee_id" // FieldChargeCreditPurchaseID holds the string denoting the charge_credit_purchase_id field in the database. FieldChargeCreditPurchaseID = "charge_credit_purchase_id" // FieldChargeUsageBasedID holds the string denoting the charge_usage_based_id field in the database. FieldChargeUsageBasedID = "charge_usage_based_id" // EdgeFlatFee holds the string denoting the flat_fee edge name in mutations. EdgeFlatFee = "flat_fee" // EdgeCreditPurchase holds the string denoting the credit_purchase edge name in mutations. EdgeCreditPurchase = "credit_purchase" // EdgeUsageBased holds the string denoting the usage_based edge name in mutations. EdgeUsageBased = "usage_based" // EdgeBillingInvoiceLines holds the string denoting the billing_invoice_lines edge name in mutations. EdgeBillingInvoiceLines = "billing_invoice_lines" // EdgeBillingSplitLineGroups holds the string denoting the billing_split_line_groups edge name in mutations. EdgeBillingSplitLineGroups = "billing_split_line_groups" // EdgeCreditRealizationLineages holds the string denoting the credit_realization_lineages edge name in mutations. EdgeCreditRealizationLineages = "credit_realization_lineages" // Table holds the table name of the charge in the database. Table = "charges" // FlatFeeTable is the table that holds the flat_fee relation/edge. FlatFeeTable = "charges" // FlatFeeInverseTable is the table name for the ChargeFlatFee entity. // It exists in this package in order to avoid circular dependency with the "chargeflatfee" package. FlatFeeInverseTable = "charge_flat_fees" // FlatFeeColumn is the table column denoting the flat_fee relation/edge. FlatFeeColumn = "charge_flat_fee_id" // CreditPurchaseTable is the table that holds the credit_purchase relation/edge. CreditPurchaseTable = "charges" // CreditPurchaseInverseTable is the table name for the ChargeCreditPurchase entity. // It exists in this package in order to avoid circular dependency with the "chargecreditpurchase" package. CreditPurchaseInverseTable = "charge_credit_purchases" // CreditPurchaseColumn is the table column denoting the credit_purchase relation/edge. CreditPurchaseColumn = "charge_credit_purchase_id" // UsageBasedTable is the table that holds the usage_based relation/edge. UsageBasedTable = "charges" // UsageBasedInverseTable is the table name for the ChargeUsageBased entity. // It exists in this package in order to avoid circular dependency with the "chargeusagebased" package. UsageBasedInverseTable = "charge_usage_based" // UsageBasedColumn is the table column denoting the usage_based relation/edge. UsageBasedColumn = "charge_usage_based_id" // BillingInvoiceLinesTable is the table that holds the billing_invoice_lines relation/edge. BillingInvoiceLinesTable = "billing_invoice_lines" // BillingInvoiceLinesInverseTable is the table name for the BillingInvoiceLine entity. // It exists in this package in order to avoid circular dependency with the "billinginvoiceline" package. BillingInvoiceLinesInverseTable = "billing_invoice_lines" // BillingInvoiceLinesColumn is the table column denoting the billing_invoice_lines relation/edge. BillingInvoiceLinesColumn = "charge_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 = "charge_id" // CreditRealizationLineagesTable is the table that holds the credit_realization_lineages relation/edge. CreditRealizationLineagesTable = "credit_realization_lineages" // CreditRealizationLineagesInverseTable is the table name for the CreditRealizationLineage entity. // It exists in this package in order to avoid circular dependency with the "creditrealizationlineage" package. CreditRealizationLineagesInverseTable = "credit_realization_lineages" // CreditRealizationLineagesColumn is the table column denoting the credit_realization_lineages relation/edge. CreditRealizationLineagesColumn = "charge_id" )
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 // UniqueReferenceIDValidator is a validator for the "unique_reference_id" field. It is called by the builders before save. UniqueReferenceIDValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
var Columns = []string{ FieldID, FieldNamespace, FieldCreatedAt, FieldDeletedAt, FieldUniqueReferenceID, FieldType, FieldChargeFlatFeeID, FieldChargeCreditPurchaseID, FieldChargeUsageBasedID, }
Columns holds all SQL columns for charge fields.
Functions ¶
func ChargeCreditPurchaseID ¶
ChargeCreditPurchaseID applies equality check predicate on the "charge_credit_purchase_id" field. It's identical to ChargeCreditPurchaseIDEQ.
func ChargeCreditPurchaseIDContains ¶
ChargeCreditPurchaseIDContains applies the Contains predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDContainsFold ¶
ChargeCreditPurchaseIDContainsFold applies the ContainsFold predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDEQ ¶
ChargeCreditPurchaseIDEQ applies the EQ predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDEqualFold ¶
ChargeCreditPurchaseIDEqualFold applies the EqualFold predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDGT ¶
ChargeCreditPurchaseIDGT applies the GT predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDGTE ¶
ChargeCreditPurchaseIDGTE applies the GTE predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDHasPrefix ¶
ChargeCreditPurchaseIDHasPrefix applies the HasPrefix predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDHasSuffix ¶
ChargeCreditPurchaseIDHasSuffix applies the HasSuffix predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDIn ¶
ChargeCreditPurchaseIDIn applies the In predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDIsNil ¶
ChargeCreditPurchaseIDIsNil applies the IsNil predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDLT ¶
ChargeCreditPurchaseIDLT applies the LT predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDLTE ¶
ChargeCreditPurchaseIDLTE applies the LTE predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDNEQ ¶
ChargeCreditPurchaseIDNEQ applies the NEQ predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDNotIn ¶
ChargeCreditPurchaseIDNotIn applies the NotIn predicate on the "charge_credit_purchase_id" field.
func ChargeCreditPurchaseIDNotNil ¶
ChargeCreditPurchaseIDNotNil applies the NotNil predicate on the "charge_credit_purchase_id" field.
func ChargeFlatFeeID ¶
ChargeFlatFeeID applies equality check predicate on the "charge_flat_fee_id" field. It's identical to ChargeFlatFeeIDEQ.
func ChargeFlatFeeIDContains ¶
ChargeFlatFeeIDContains applies the Contains predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDContainsFold ¶
ChargeFlatFeeIDContainsFold applies the ContainsFold predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDEQ ¶
ChargeFlatFeeIDEQ applies the EQ predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDEqualFold ¶
ChargeFlatFeeIDEqualFold applies the EqualFold predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDGT ¶
ChargeFlatFeeIDGT applies the GT predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDGTE ¶
ChargeFlatFeeIDGTE applies the GTE predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDHasPrefix ¶
ChargeFlatFeeIDHasPrefix applies the HasPrefix predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDHasSuffix ¶
ChargeFlatFeeIDHasSuffix applies the HasSuffix predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDIn ¶
ChargeFlatFeeIDIn applies the In predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDIsNil ¶
ChargeFlatFeeIDIsNil applies the IsNil predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDLT ¶
ChargeFlatFeeIDLT applies the LT predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDLTE ¶
ChargeFlatFeeIDLTE applies the LTE predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDNEQ ¶
ChargeFlatFeeIDNEQ applies the NEQ predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDNotIn ¶
ChargeFlatFeeIDNotIn applies the NotIn predicate on the "charge_flat_fee_id" field.
func ChargeFlatFeeIDNotNil ¶
ChargeFlatFeeIDNotNil applies the NotNil predicate on the "charge_flat_fee_id" field.
func ChargeUsageBasedID ¶
ChargeUsageBasedID applies equality check predicate on the "charge_usage_based_id" field. It's identical to ChargeUsageBasedIDEQ.
func ChargeUsageBasedIDContains ¶
ChargeUsageBasedIDContains applies the Contains predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDContainsFold ¶
ChargeUsageBasedIDContainsFold applies the ContainsFold predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDEQ ¶
ChargeUsageBasedIDEQ applies the EQ predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDEqualFold ¶
ChargeUsageBasedIDEqualFold applies the EqualFold predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDGT ¶
ChargeUsageBasedIDGT applies the GT predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDGTE ¶
ChargeUsageBasedIDGTE applies the GTE predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDHasPrefix ¶
ChargeUsageBasedIDHasPrefix applies the HasPrefix predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDHasSuffix ¶
ChargeUsageBasedIDHasSuffix applies the HasSuffix predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDIn ¶
ChargeUsageBasedIDIn applies the In predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDIsNil ¶
ChargeUsageBasedIDIsNil applies the IsNil predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDLT ¶
ChargeUsageBasedIDLT applies the LT predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDLTE ¶
ChargeUsageBasedIDLTE applies the LTE predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDNEQ ¶
ChargeUsageBasedIDNEQ applies the NEQ predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDNotIn ¶
ChargeUsageBasedIDNotIn applies the NotIn predicate on the "charge_usage_based_id" field.
func ChargeUsageBasedIDNotNil ¶
ChargeUsageBasedIDNotNil applies the NotNil predicate on the "charge_usage_based_id" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasBillingInvoiceLines ¶
HasBillingInvoiceLines applies the HasEdge predicate on the "billing_invoice_lines" edge.
func HasBillingInvoiceLinesWith ¶
func HasBillingInvoiceLinesWith(preds ...predicate.BillingInvoiceLine) predicate.Charge
HasBillingInvoiceLinesWith applies the HasEdge predicate on the "billing_invoice_lines" edge with a given conditions (other predicates).
func HasBillingSplitLineGroups ¶
HasBillingSplitLineGroups applies the HasEdge predicate on the "billing_split_line_groups" edge.
func HasBillingSplitLineGroupsWith ¶
func HasBillingSplitLineGroupsWith(preds ...predicate.BillingInvoiceSplitLineGroup) predicate.Charge
HasBillingSplitLineGroupsWith applies the HasEdge predicate on the "billing_split_line_groups" edge with a given conditions (other predicates).
func HasCreditPurchase ¶
HasCreditPurchase applies the HasEdge predicate on the "credit_purchase" edge.
func HasCreditPurchaseWith ¶
func HasCreditPurchaseWith(preds ...predicate.ChargeCreditPurchase) predicate.Charge
HasCreditPurchaseWith applies the HasEdge predicate on the "credit_purchase" edge with a given conditions (other predicates).
func HasCreditRealizationLineages ¶
HasCreditRealizationLineages applies the HasEdge predicate on the "credit_realization_lineages" edge.
func HasCreditRealizationLineagesWith ¶
func HasCreditRealizationLineagesWith(preds ...predicate.CreditRealizationLineage) predicate.Charge
HasCreditRealizationLineagesWith applies the HasEdge predicate on the "credit_realization_lineages" edge with a given conditions (other predicates).
func HasFlatFee ¶
HasFlatFee applies the HasEdge predicate on the "flat_fee" edge.
func HasFlatFeeWith ¶
func HasFlatFeeWith(preds ...predicate.ChargeFlatFee) predicate.Charge
HasFlatFeeWith applies the HasEdge predicate on the "flat_fee" edge with a given conditions (other predicates).
func HasUsageBased ¶
HasUsageBased applies the HasEdge predicate on the "usage_based" edge.
func HasUsageBasedWith ¶
func HasUsageBasedWith(preds ...predicate.ChargeUsageBased) predicate.Charge
HasUsageBasedWith applies the HasEdge predicate on the "usage_based" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func Namespace ¶
Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.
func NamespaceContains ¶
NamespaceContains applies the Contains predicate on the "namespace" field.
func NamespaceContainsFold ¶
NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.
func NamespaceEQ ¶
NamespaceEQ applies the EQ predicate on the "namespace" field.
func NamespaceEqualFold ¶
NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.
func NamespaceGT ¶
NamespaceGT applies the GT predicate on the "namespace" field.
func NamespaceGTE ¶
NamespaceGTE applies the GTE predicate on the "namespace" field.
func NamespaceHasPrefix ¶
NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.
func NamespaceHasSuffix ¶
NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.
func NamespaceIn ¶
NamespaceIn applies the In predicate on the "namespace" field.
func NamespaceLT ¶
NamespaceLT applies the LT predicate on the "namespace" field.
func NamespaceLTE ¶
NamespaceLTE applies the LTE predicate on the "namespace" field.
func NamespaceNEQ ¶
NamespaceNEQ applies the NEQ predicate on the "namespace" field.
func NamespaceNotIn ¶
NamespaceNotIn applies the NotIn predicate on the "namespace" field.
func Type ¶
func Type(v meta.ChargeType) predicate.Charge
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeContains ¶
func TypeContains(v meta.ChargeType) predicate.Charge
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
func TypeContainsFold(v meta.ChargeType) predicate.Charge
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEQ ¶
func TypeEQ(v meta.ChargeType) predicate.Charge
TypeEQ applies the EQ predicate on the "type" field.
func TypeEqualFold ¶
func TypeEqualFold(v meta.ChargeType) predicate.Charge
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeGT ¶
func TypeGT(v meta.ChargeType) predicate.Charge
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v meta.ChargeType) predicate.Charge
TypeGTE applies the GTE predicate on the "type" field.
func TypeHasPrefix ¶
func TypeHasPrefix(v meta.ChargeType) predicate.Charge
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
func TypeHasSuffix(v meta.ChargeType) predicate.Charge
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...meta.ChargeType) predicate.Charge
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶
func TypeLT(v meta.ChargeType) predicate.Charge
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v meta.ChargeType) predicate.Charge
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v meta.ChargeType) predicate.Charge
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...meta.ChargeType) predicate.Charge
TypeNotIn applies the NotIn predicate on the "type" field.
func UniqueReferenceID ¶
UniqueReferenceID applies equality check predicate on the "unique_reference_id" field. It's identical to UniqueReferenceIDEQ.
func UniqueReferenceIDContains ¶
UniqueReferenceIDContains applies the Contains predicate on the "unique_reference_id" field.
func UniqueReferenceIDContainsFold ¶
UniqueReferenceIDContainsFold applies the ContainsFold predicate on the "unique_reference_id" field.
func UniqueReferenceIDEQ ¶
UniqueReferenceIDEQ applies the EQ predicate on the "unique_reference_id" field.
func UniqueReferenceIDEqualFold ¶
UniqueReferenceIDEqualFold applies the EqualFold predicate on the "unique_reference_id" field.
func UniqueReferenceIDGT ¶
UniqueReferenceIDGT applies the GT predicate on the "unique_reference_id" field.
func UniqueReferenceIDGTE ¶
UniqueReferenceIDGTE applies the GTE predicate on the "unique_reference_id" field.
func UniqueReferenceIDHasPrefix ¶
UniqueReferenceIDHasPrefix applies the HasPrefix predicate on the "unique_reference_id" field.
func UniqueReferenceIDHasSuffix ¶
UniqueReferenceIDHasSuffix applies the HasSuffix predicate on the "unique_reference_id" field.
func UniqueReferenceIDIn ¶
UniqueReferenceIDIn applies the In predicate on the "unique_reference_id" field.
func UniqueReferenceIDIsNil ¶
UniqueReferenceIDIsNil applies the IsNil predicate on the "unique_reference_id" field.
func UniqueReferenceIDLT ¶
UniqueReferenceIDLT applies the LT predicate on the "unique_reference_id" field.
func UniqueReferenceIDLTE ¶
UniqueReferenceIDLTE applies the LTE predicate on the "unique_reference_id" field.
func UniqueReferenceIDNEQ ¶
UniqueReferenceIDNEQ applies the NEQ predicate on the "unique_reference_id" field.
func UniqueReferenceIDNotIn ¶
UniqueReferenceIDNotIn applies the NotIn predicate on the "unique_reference_id" field.
func UniqueReferenceIDNotNil ¶
UniqueReferenceIDNotNil applies the NotNil predicate on the "unique_reference_id" 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 Charge queries.
func ByBillingInvoiceLines ¶
func ByBillingInvoiceLines(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBillingInvoiceLines orders the results by billing_invoice_lines terms.
func ByBillingInvoiceLinesCount ¶
func ByBillingInvoiceLinesCount(opts ...sql.OrderTermOption) OrderOption
ByBillingInvoiceLinesCount orders the results by billing_invoice_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 ByChargeCreditPurchaseID ¶
func ByChargeCreditPurchaseID(opts ...sql.OrderTermOption) OrderOption
ByChargeCreditPurchaseID orders the results by the charge_credit_purchase_id field.
func ByChargeFlatFeeID ¶
func ByChargeFlatFeeID(opts ...sql.OrderTermOption) OrderOption
ByChargeFlatFeeID orders the results by the charge_flat_fee_id field.
func ByChargeUsageBasedID ¶
func ByChargeUsageBasedID(opts ...sql.OrderTermOption) OrderOption
ByChargeUsageBasedID orders the results by the charge_usage_based_id field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreditPurchaseField ¶
func ByCreditPurchaseField(field string, opts ...sql.OrderTermOption) OrderOption
ByCreditPurchaseField orders the results by credit_purchase field.
func ByCreditRealizationLineages ¶
func ByCreditRealizationLineages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCreditRealizationLineages orders the results by credit_realization_lineages terms.
func ByCreditRealizationLineagesCount ¶
func ByCreditRealizationLineagesCount(opts ...sql.OrderTermOption) OrderOption
ByCreditRealizationLineagesCount orders the results by credit_realization_lineages count.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByFlatFeeField ¶
func ByFlatFeeField(field string, opts ...sql.OrderTermOption) OrderOption
ByFlatFeeField orders the results by flat_fee field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNamespace ¶
func ByNamespace(opts ...sql.OrderTermOption) OrderOption
ByNamespace orders the results by the namespace field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUniqueReferenceID ¶
func ByUniqueReferenceID(opts ...sql.OrderTermOption) OrderOption
ByUniqueReferenceID orders the results by the unique_reference_id field.
func ByUsageBasedField ¶
func ByUsageBasedField(field string, opts ...sql.OrderTermOption) OrderOption
ByUsageBasedField orders the results by usage_based field.