charge

package
v1.0.0-beta.231 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for charge fields.

Functions

func And

func And(predicates ...predicate.Charge) predicate.Charge

And groups predicates with the AND operator between them.

func ChargeCreditPurchaseID

func ChargeCreditPurchaseID(v string) predicate.Charge

ChargeCreditPurchaseID applies equality check predicate on the "charge_credit_purchase_id" field. It's identical to ChargeCreditPurchaseIDEQ.

func ChargeCreditPurchaseIDContains

func ChargeCreditPurchaseIDContains(v string) predicate.Charge

ChargeCreditPurchaseIDContains applies the Contains predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDContainsFold

func ChargeCreditPurchaseIDContainsFold(v string) predicate.Charge

ChargeCreditPurchaseIDContainsFold applies the ContainsFold predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDEQ

func ChargeCreditPurchaseIDEQ(v string) predicate.Charge

ChargeCreditPurchaseIDEQ applies the EQ predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDEqualFold

func ChargeCreditPurchaseIDEqualFold(v string) predicate.Charge

ChargeCreditPurchaseIDEqualFold applies the EqualFold predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDGT

func ChargeCreditPurchaseIDGT(v string) predicate.Charge

ChargeCreditPurchaseIDGT applies the GT predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDGTE

func ChargeCreditPurchaseIDGTE(v string) predicate.Charge

ChargeCreditPurchaseIDGTE applies the GTE predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDHasPrefix

func ChargeCreditPurchaseIDHasPrefix(v string) predicate.Charge

ChargeCreditPurchaseIDHasPrefix applies the HasPrefix predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDHasSuffix

func ChargeCreditPurchaseIDHasSuffix(v string) predicate.Charge

ChargeCreditPurchaseIDHasSuffix applies the HasSuffix predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDIn

func ChargeCreditPurchaseIDIn(vs ...string) predicate.Charge

ChargeCreditPurchaseIDIn applies the In predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDIsNil

func ChargeCreditPurchaseIDIsNil() predicate.Charge

ChargeCreditPurchaseIDIsNil applies the IsNil predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDLT

func ChargeCreditPurchaseIDLT(v string) predicate.Charge

ChargeCreditPurchaseIDLT applies the LT predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDLTE

func ChargeCreditPurchaseIDLTE(v string) predicate.Charge

ChargeCreditPurchaseIDLTE applies the LTE predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDNEQ

func ChargeCreditPurchaseIDNEQ(v string) predicate.Charge

ChargeCreditPurchaseIDNEQ applies the NEQ predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDNotIn

func ChargeCreditPurchaseIDNotIn(vs ...string) predicate.Charge

ChargeCreditPurchaseIDNotIn applies the NotIn predicate on the "charge_credit_purchase_id" field.

func ChargeCreditPurchaseIDNotNil

func ChargeCreditPurchaseIDNotNil() predicate.Charge

ChargeCreditPurchaseIDNotNil applies the NotNil predicate on the "charge_credit_purchase_id" field.

func ChargeFlatFeeID

func ChargeFlatFeeID(v string) predicate.Charge

ChargeFlatFeeID applies equality check predicate on the "charge_flat_fee_id" field. It's identical to ChargeFlatFeeIDEQ.

func ChargeFlatFeeIDContains

func ChargeFlatFeeIDContains(v string) predicate.Charge

ChargeFlatFeeIDContains applies the Contains predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDContainsFold

func ChargeFlatFeeIDContainsFold(v string) predicate.Charge

ChargeFlatFeeIDContainsFold applies the ContainsFold predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDEQ

func ChargeFlatFeeIDEQ(v string) predicate.Charge

ChargeFlatFeeIDEQ applies the EQ predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDEqualFold

func ChargeFlatFeeIDEqualFold(v string) predicate.Charge

ChargeFlatFeeIDEqualFold applies the EqualFold predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDGT

func ChargeFlatFeeIDGT(v string) predicate.Charge

ChargeFlatFeeIDGT applies the GT predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDGTE

func ChargeFlatFeeIDGTE(v string) predicate.Charge

ChargeFlatFeeIDGTE applies the GTE predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDHasPrefix

func ChargeFlatFeeIDHasPrefix(v string) predicate.Charge

ChargeFlatFeeIDHasPrefix applies the HasPrefix predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDHasSuffix

func ChargeFlatFeeIDHasSuffix(v string) predicate.Charge

ChargeFlatFeeIDHasSuffix applies the HasSuffix predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDIn

func ChargeFlatFeeIDIn(vs ...string) predicate.Charge

ChargeFlatFeeIDIn applies the In predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDIsNil

func ChargeFlatFeeIDIsNil() predicate.Charge

ChargeFlatFeeIDIsNil applies the IsNil predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDLT

func ChargeFlatFeeIDLT(v string) predicate.Charge

ChargeFlatFeeIDLT applies the LT predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDLTE

func ChargeFlatFeeIDLTE(v string) predicate.Charge

ChargeFlatFeeIDLTE applies the LTE predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDNEQ

func ChargeFlatFeeIDNEQ(v string) predicate.Charge

ChargeFlatFeeIDNEQ applies the NEQ predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDNotIn

func ChargeFlatFeeIDNotIn(vs ...string) predicate.Charge

ChargeFlatFeeIDNotIn applies the NotIn predicate on the "charge_flat_fee_id" field.

func ChargeFlatFeeIDNotNil

func ChargeFlatFeeIDNotNil() predicate.Charge

ChargeFlatFeeIDNotNil applies the NotNil predicate on the "charge_flat_fee_id" field.

func ChargeUsageBasedID

func ChargeUsageBasedID(v string) predicate.Charge

ChargeUsageBasedID applies equality check predicate on the "charge_usage_based_id" field. It's identical to ChargeUsageBasedIDEQ.

func ChargeUsageBasedIDContains

func ChargeUsageBasedIDContains(v string) predicate.Charge

ChargeUsageBasedIDContains applies the Contains predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDContainsFold

func ChargeUsageBasedIDContainsFold(v string) predicate.Charge

ChargeUsageBasedIDContainsFold applies the ContainsFold predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDEQ

func ChargeUsageBasedIDEQ(v string) predicate.Charge

ChargeUsageBasedIDEQ applies the EQ predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDEqualFold

func ChargeUsageBasedIDEqualFold(v string) predicate.Charge

ChargeUsageBasedIDEqualFold applies the EqualFold predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDGT

func ChargeUsageBasedIDGT(v string) predicate.Charge

ChargeUsageBasedIDGT applies the GT predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDGTE

func ChargeUsageBasedIDGTE(v string) predicate.Charge

ChargeUsageBasedIDGTE applies the GTE predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDHasPrefix

func ChargeUsageBasedIDHasPrefix(v string) predicate.Charge

ChargeUsageBasedIDHasPrefix applies the HasPrefix predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDHasSuffix

func ChargeUsageBasedIDHasSuffix(v string) predicate.Charge

ChargeUsageBasedIDHasSuffix applies the HasSuffix predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDIn

func ChargeUsageBasedIDIn(vs ...string) predicate.Charge

ChargeUsageBasedIDIn applies the In predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDIsNil

func ChargeUsageBasedIDIsNil() predicate.Charge

ChargeUsageBasedIDIsNil applies the IsNil predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDLT

func ChargeUsageBasedIDLT(v string) predicate.Charge

ChargeUsageBasedIDLT applies the LT predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDLTE

func ChargeUsageBasedIDLTE(v string) predicate.Charge

ChargeUsageBasedIDLTE applies the LTE predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDNEQ

func ChargeUsageBasedIDNEQ(v string) predicate.Charge

ChargeUsageBasedIDNEQ applies the NEQ predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDNotIn

func ChargeUsageBasedIDNotIn(vs ...string) predicate.Charge

ChargeUsageBasedIDNotIn applies the NotIn predicate on the "charge_usage_based_id" field.

func ChargeUsageBasedIDNotNil

func ChargeUsageBasedIDNotNil() predicate.Charge

ChargeUsageBasedIDNotNil applies the NotNil predicate on the "charge_usage_based_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Charge

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Charge

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Charge

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Charge

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Charge

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Charge

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Charge

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Charge

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Charge

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Charge

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Charge

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Charge

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Charge

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Charge

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Charge

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Charge

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Charge

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Charge

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func HasBillingInvoiceLines

func HasBillingInvoiceLines() predicate.Charge

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

func HasBillingSplitLineGroups() predicate.Charge

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

func HasCreditPurchase() predicate.Charge

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

func HasCreditRealizationLineages() predicate.Charge

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

func HasFlatFee() predicate.Charge

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

func HasUsageBased() predicate.Charge

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 ID

func ID(id string) predicate.Charge

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Charge

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Charge

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Charge

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Charge

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Charge

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Charge

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Charge

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Charge

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Namespace

func Namespace(v string) predicate.Charge

Namespace applies equality check predicate on the "namespace" field. It's identical to NamespaceEQ.

func NamespaceContains

func NamespaceContains(v string) predicate.Charge

NamespaceContains applies the Contains predicate on the "namespace" field.

func NamespaceContainsFold

func NamespaceContainsFold(v string) predicate.Charge

NamespaceContainsFold applies the ContainsFold predicate on the "namespace" field.

func NamespaceEQ

func NamespaceEQ(v string) predicate.Charge

NamespaceEQ applies the EQ predicate on the "namespace" field.

func NamespaceEqualFold

func NamespaceEqualFold(v string) predicate.Charge

NamespaceEqualFold applies the EqualFold predicate on the "namespace" field.

func NamespaceGT

func NamespaceGT(v string) predicate.Charge

NamespaceGT applies the GT predicate on the "namespace" field.

func NamespaceGTE

func NamespaceGTE(v string) predicate.Charge

NamespaceGTE applies the GTE predicate on the "namespace" field.

func NamespaceHasPrefix

func NamespaceHasPrefix(v string) predicate.Charge

NamespaceHasPrefix applies the HasPrefix predicate on the "namespace" field.

func NamespaceHasSuffix

func NamespaceHasSuffix(v string) predicate.Charge

NamespaceHasSuffix applies the HasSuffix predicate on the "namespace" field.

func NamespaceIn

func NamespaceIn(vs ...string) predicate.Charge

NamespaceIn applies the In predicate on the "namespace" field.

func NamespaceLT

func NamespaceLT(v string) predicate.Charge

NamespaceLT applies the LT predicate on the "namespace" field.

func NamespaceLTE

func NamespaceLTE(v string) predicate.Charge

NamespaceLTE applies the LTE predicate on the "namespace" field.

func NamespaceNEQ

func NamespaceNEQ(v string) predicate.Charge

NamespaceNEQ applies the NEQ predicate on the "namespace" field.

func NamespaceNotIn

func NamespaceNotIn(vs ...string) predicate.Charge

NamespaceNotIn applies the NotIn predicate on the "namespace" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Charge) predicate.Charge

Or groups predicates with the OR operator between them.

func Type

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

func UniqueReferenceID(v string) predicate.Charge

UniqueReferenceID applies equality check predicate on the "unique_reference_id" field. It's identical to UniqueReferenceIDEQ.

func UniqueReferenceIDContains

func UniqueReferenceIDContains(v string) predicate.Charge

UniqueReferenceIDContains applies the Contains predicate on the "unique_reference_id" field.

func UniqueReferenceIDContainsFold

func UniqueReferenceIDContainsFold(v string) predicate.Charge

UniqueReferenceIDContainsFold applies the ContainsFold predicate on the "unique_reference_id" field.

func UniqueReferenceIDEQ

func UniqueReferenceIDEQ(v string) predicate.Charge

UniqueReferenceIDEQ applies the EQ predicate on the "unique_reference_id" field.

func UniqueReferenceIDEqualFold

func UniqueReferenceIDEqualFold(v string) predicate.Charge

UniqueReferenceIDEqualFold applies the EqualFold predicate on the "unique_reference_id" field.

func UniqueReferenceIDGT

func UniqueReferenceIDGT(v string) predicate.Charge

UniqueReferenceIDGT applies the GT predicate on the "unique_reference_id" field.

func UniqueReferenceIDGTE

func UniqueReferenceIDGTE(v string) predicate.Charge

UniqueReferenceIDGTE applies the GTE predicate on the "unique_reference_id" field.

func UniqueReferenceIDHasPrefix

func UniqueReferenceIDHasPrefix(v string) predicate.Charge

UniqueReferenceIDHasPrefix applies the HasPrefix predicate on the "unique_reference_id" field.

func UniqueReferenceIDHasSuffix

func UniqueReferenceIDHasSuffix(v string) predicate.Charge

UniqueReferenceIDHasSuffix applies the HasSuffix predicate on the "unique_reference_id" field.

func UniqueReferenceIDIn

func UniqueReferenceIDIn(vs ...string) predicate.Charge

UniqueReferenceIDIn applies the In predicate on the "unique_reference_id" field.

func UniqueReferenceIDIsNil

func UniqueReferenceIDIsNil() predicate.Charge

UniqueReferenceIDIsNil applies the IsNil predicate on the "unique_reference_id" field.

func UniqueReferenceIDLT

func UniqueReferenceIDLT(v string) predicate.Charge

UniqueReferenceIDLT applies the LT predicate on the "unique_reference_id" field.

func UniqueReferenceIDLTE

func UniqueReferenceIDLTE(v string) predicate.Charge

UniqueReferenceIDLTE applies the LTE predicate on the "unique_reference_id" field.

func UniqueReferenceIDNEQ

func UniqueReferenceIDNEQ(v string) predicate.Charge

UniqueReferenceIDNEQ applies the NEQ predicate on the "unique_reference_id" field.

func UniqueReferenceIDNotIn

func UniqueReferenceIDNotIn(vs ...string) predicate.Charge

UniqueReferenceIDNotIn applies the NotIn predicate on the "unique_reference_id" field.

func UniqueReferenceIDNotNil

func UniqueReferenceIDNotNil() predicate.Charge

UniqueReferenceIDNotNil applies the NotNil predicate on the "unique_reference_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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