Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CreditNote) predicate.CreditNote
- func CreatedAt(v time.Time) predicate.CreditNote
- func CreatedAtEQ(v time.Time) predicate.CreditNote
- func CreatedAtGT(v time.Time) predicate.CreditNote
- func CreatedAtGTE(v time.Time) predicate.CreditNote
- func CreatedAtIn(vs ...time.Time) predicate.CreditNote
- func CreatedAtLT(v time.Time) predicate.CreditNote
- func CreatedAtLTE(v time.Time) predicate.CreditNote
- func CreatedAtNEQ(v time.Time) predicate.CreditNote
- func CreatedAtNotIn(vs ...time.Time) predicate.CreditNote
- func CreatedBy(v string) predicate.CreditNote
- func CreatedByContains(v string) predicate.CreditNote
- func CreatedByContainsFold(v string) predicate.CreditNote
- func CreatedByEQ(v string) predicate.CreditNote
- func CreatedByEqualFold(v string) predicate.CreditNote
- func CreatedByGT(v string) predicate.CreditNote
- func CreatedByGTE(v string) predicate.CreditNote
- func CreatedByHasPrefix(v string) predicate.CreditNote
- func CreatedByHasSuffix(v string) predicate.CreditNote
- func CreatedByIn(vs ...string) predicate.CreditNote
- func CreatedByIsNil() predicate.CreditNote
- func CreatedByLT(v string) predicate.CreditNote
- func CreatedByLTE(v string) predicate.CreditNote
- func CreatedByNEQ(v string) predicate.CreditNote
- func CreatedByNotIn(vs ...string) predicate.CreditNote
- func CreatedByNotNil() predicate.CreditNote
- func CreditNoteNumber(v string) predicate.CreditNote
- func CreditNoteNumberContains(v string) predicate.CreditNote
- func CreditNoteNumberContainsFold(v string) predicate.CreditNote
- func CreditNoteNumberEQ(v string) predicate.CreditNote
- func CreditNoteNumberEqualFold(v string) predicate.CreditNote
- func CreditNoteNumberGT(v string) predicate.CreditNote
- func CreditNoteNumberGTE(v string) predicate.CreditNote
- func CreditNoteNumberHasPrefix(v string) predicate.CreditNote
- func CreditNoteNumberHasSuffix(v string) predicate.CreditNote
- func CreditNoteNumberIn(vs ...string) predicate.CreditNote
- func CreditNoteNumberLT(v string) predicate.CreditNote
- func CreditNoteNumberLTE(v string) predicate.CreditNote
- func CreditNoteNumberNEQ(v string) predicate.CreditNote
- func CreditNoteNumberNotIn(vs ...string) predicate.CreditNote
- func CreditNoteStatus(v types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusContains(v types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusContainsFold(v types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusEQ(v types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusEqualFold(v types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusGT(v types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusGTE(v types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusHasPrefix(v types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusHasSuffix(v types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusIn(vs ...types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusLT(v types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusLTE(v types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusNEQ(v types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteStatusNotIn(vs ...types.CreditNoteStatus) predicate.CreditNote
- func CreditNoteType(v types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeContains(v types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeContainsFold(v types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeEQ(v types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeEqualFold(v types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeGT(v types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeGTE(v types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeHasPrefix(v types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeHasSuffix(v types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeIn(vs ...types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeLT(v types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeLTE(v types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeNEQ(v types.CreditNoteType) predicate.CreditNote
- func CreditNoteTypeNotIn(vs ...types.CreditNoteType) predicate.CreditNote
- func Currency(v string) predicate.CreditNote
- func CurrencyContains(v string) predicate.CreditNote
- func CurrencyContainsFold(v string) predicate.CreditNote
- func CurrencyEQ(v string) predicate.CreditNote
- func CurrencyEqualFold(v string) predicate.CreditNote
- func CurrencyGT(v string) predicate.CreditNote
- func CurrencyGTE(v string) predicate.CreditNote
- func CurrencyHasPrefix(v string) predicate.CreditNote
- func CurrencyHasSuffix(v string) predicate.CreditNote
- func CurrencyIn(vs ...string) predicate.CreditNote
- func CurrencyLT(v string) predicate.CreditNote
- func CurrencyLTE(v string) predicate.CreditNote
- func CurrencyNEQ(v string) predicate.CreditNote
- func CurrencyNotIn(vs ...string) predicate.CreditNote
- func CustomerID(v string) predicate.CreditNote
- func CustomerIDContains(v string) predicate.CreditNote
- func CustomerIDContainsFold(v string) predicate.CreditNote
- func CustomerIDEQ(v string) predicate.CreditNote
- func CustomerIDEqualFold(v string) predicate.CreditNote
- func CustomerIDGT(v string) predicate.CreditNote
- func CustomerIDGTE(v string) predicate.CreditNote
- func CustomerIDHasPrefix(v string) predicate.CreditNote
- func CustomerIDHasSuffix(v string) predicate.CreditNote
- func CustomerIDIn(vs ...string) predicate.CreditNote
- func CustomerIDLT(v string) predicate.CreditNote
- func CustomerIDLTE(v string) predicate.CreditNote
- func CustomerIDNEQ(v string) predicate.CreditNote
- func CustomerIDNotIn(vs ...string) predicate.CreditNote
- func EnvironmentID(v string) predicate.CreditNote
- func EnvironmentIDContains(v string) predicate.CreditNote
- func EnvironmentIDContainsFold(v string) predicate.CreditNote
- func EnvironmentIDEQ(v string) predicate.CreditNote
- func EnvironmentIDEqualFold(v string) predicate.CreditNote
- func EnvironmentIDGT(v string) predicate.CreditNote
- func EnvironmentIDGTE(v string) predicate.CreditNote
- func EnvironmentIDHasPrefix(v string) predicate.CreditNote
- func EnvironmentIDHasSuffix(v string) predicate.CreditNote
- func EnvironmentIDIn(vs ...string) predicate.CreditNote
- func EnvironmentIDIsNil() predicate.CreditNote
- func EnvironmentIDLT(v string) predicate.CreditNote
- func EnvironmentIDLTE(v string) predicate.CreditNote
- func EnvironmentIDNEQ(v string) predicate.CreditNote
- func EnvironmentIDNotIn(vs ...string) predicate.CreditNote
- func EnvironmentIDNotNil() predicate.CreditNote
- func FinalizedAt(v time.Time) predicate.CreditNote
- func FinalizedAtEQ(v time.Time) predicate.CreditNote
- func FinalizedAtGT(v time.Time) predicate.CreditNote
- func FinalizedAtGTE(v time.Time) predicate.CreditNote
- func FinalizedAtIn(vs ...time.Time) predicate.CreditNote
- func FinalizedAtIsNil() predicate.CreditNote
- func FinalizedAtLT(v time.Time) predicate.CreditNote
- func FinalizedAtLTE(v time.Time) predicate.CreditNote
- func FinalizedAtNEQ(v time.Time) predicate.CreditNote
- func FinalizedAtNotIn(vs ...time.Time) predicate.CreditNote
- func FinalizedAtNotNil() predicate.CreditNote
- func HasLineItems() predicate.CreditNote
- func HasLineItemsWith(preds ...predicate.CreditNoteLineItem) predicate.CreditNote
- func ID(id string) predicate.CreditNote
- func IDContainsFold(id string) predicate.CreditNote
- func IDEQ(id string) predicate.CreditNote
- func IDEqualFold(id string) predicate.CreditNote
- func IDGT(id string) predicate.CreditNote
- func IDGTE(id string) predicate.CreditNote
- func IDIn(ids ...string) predicate.CreditNote
- func IDLT(id string) predicate.CreditNote
- func IDLTE(id string) predicate.CreditNote
- func IDNEQ(id string) predicate.CreditNote
- func IDNotIn(ids ...string) predicate.CreditNote
- func IdempotencyKey(v string) predicate.CreditNote
- func IdempotencyKeyContains(v string) predicate.CreditNote
- func IdempotencyKeyContainsFold(v string) predicate.CreditNote
- func IdempotencyKeyEQ(v string) predicate.CreditNote
- func IdempotencyKeyEqualFold(v string) predicate.CreditNote
- func IdempotencyKeyGT(v string) predicate.CreditNote
- func IdempotencyKeyGTE(v string) predicate.CreditNote
- func IdempotencyKeyHasPrefix(v string) predicate.CreditNote
- func IdempotencyKeyHasSuffix(v string) predicate.CreditNote
- func IdempotencyKeyIn(vs ...string) predicate.CreditNote
- func IdempotencyKeyIsNil() predicate.CreditNote
- func IdempotencyKeyLT(v string) predicate.CreditNote
- func IdempotencyKeyLTE(v string) predicate.CreditNote
- func IdempotencyKeyNEQ(v string) predicate.CreditNote
- func IdempotencyKeyNotIn(vs ...string) predicate.CreditNote
- func IdempotencyKeyNotNil() predicate.CreditNote
- func InvoiceID(v string) predicate.CreditNote
- func InvoiceIDContains(v string) predicate.CreditNote
- func InvoiceIDContainsFold(v string) predicate.CreditNote
- func InvoiceIDEQ(v string) predicate.CreditNote
- func InvoiceIDEqualFold(v string) predicate.CreditNote
- func InvoiceIDGT(v string) predicate.CreditNote
- func InvoiceIDGTE(v string) predicate.CreditNote
- func InvoiceIDHasPrefix(v string) predicate.CreditNote
- func InvoiceIDHasSuffix(v string) predicate.CreditNote
- func InvoiceIDIn(vs ...string) predicate.CreditNote
- func InvoiceIDLT(v string) predicate.CreditNote
- func InvoiceIDLTE(v string) predicate.CreditNote
- func InvoiceIDNEQ(v string) predicate.CreditNote
- func InvoiceIDNotIn(vs ...string) predicate.CreditNote
- func Memo(v string) predicate.CreditNote
- func MemoContains(v string) predicate.CreditNote
- func MemoContainsFold(v string) predicate.CreditNote
- func MemoEQ(v string) predicate.CreditNote
- func MemoEqualFold(v string) predicate.CreditNote
- func MemoGT(v string) predicate.CreditNote
- func MemoGTE(v string) predicate.CreditNote
- func MemoHasPrefix(v string) predicate.CreditNote
- func MemoHasSuffix(v string) predicate.CreditNote
- func MemoIn(vs ...string) predicate.CreditNote
- func MemoLT(v string) predicate.CreditNote
- func MemoLTE(v string) predicate.CreditNote
- func MemoNEQ(v string) predicate.CreditNote
- func MemoNotIn(vs ...string) predicate.CreditNote
- func MetadataIsNil() predicate.CreditNote
- func MetadataNotNil() predicate.CreditNote
- func Not(p predicate.CreditNote) predicate.CreditNote
- func Or(predicates ...predicate.CreditNote) predicate.CreditNote
- func Reason(v types.CreditNoteReason) predicate.CreditNote
- func ReasonContains(v types.CreditNoteReason) predicate.CreditNote
- func ReasonContainsFold(v types.CreditNoteReason) predicate.CreditNote
- func ReasonEQ(v types.CreditNoteReason) predicate.CreditNote
- func ReasonEqualFold(v types.CreditNoteReason) predicate.CreditNote
- func ReasonGT(v types.CreditNoteReason) predicate.CreditNote
- func ReasonGTE(v types.CreditNoteReason) predicate.CreditNote
- func ReasonHasPrefix(v types.CreditNoteReason) predicate.CreditNote
- func ReasonHasSuffix(v types.CreditNoteReason) predicate.CreditNote
- func ReasonIn(vs ...types.CreditNoteReason) predicate.CreditNote
- func ReasonLT(v types.CreditNoteReason) predicate.CreditNote
- func ReasonLTE(v types.CreditNoteReason) predicate.CreditNote
- func ReasonNEQ(v types.CreditNoteReason) predicate.CreditNote
- func ReasonNotIn(vs ...types.CreditNoteReason) predicate.CreditNote
- func RefundStatus(v types.PaymentStatus) predicate.CreditNote
- func RefundStatusContains(v types.PaymentStatus) predicate.CreditNote
- func RefundStatusContainsFold(v types.PaymentStatus) predicate.CreditNote
- func RefundStatusEQ(v types.PaymentStatus) predicate.CreditNote
- func RefundStatusEqualFold(v types.PaymentStatus) predicate.CreditNote
- func RefundStatusGT(v types.PaymentStatus) predicate.CreditNote
- func RefundStatusGTE(v types.PaymentStatus) predicate.CreditNote
- func RefundStatusHasPrefix(v types.PaymentStatus) predicate.CreditNote
- func RefundStatusHasSuffix(v types.PaymentStatus) predicate.CreditNote
- func RefundStatusIn(vs ...types.PaymentStatus) predicate.CreditNote
- func RefundStatusIsNil() predicate.CreditNote
- func RefundStatusLT(v types.PaymentStatus) predicate.CreditNote
- func RefundStatusLTE(v types.PaymentStatus) predicate.CreditNote
- func RefundStatusNEQ(v types.PaymentStatus) predicate.CreditNote
- func RefundStatusNotIn(vs ...types.PaymentStatus) predicate.CreditNote
- func RefundStatusNotNil() predicate.CreditNote
- func Status(v string) predicate.CreditNote
- func StatusContains(v string) predicate.CreditNote
- func StatusContainsFold(v string) predicate.CreditNote
- func StatusEQ(v string) predicate.CreditNote
- func StatusEqualFold(v string) predicate.CreditNote
- func StatusGT(v string) predicate.CreditNote
- func StatusGTE(v string) predicate.CreditNote
- func StatusHasPrefix(v string) predicate.CreditNote
- func StatusHasSuffix(v string) predicate.CreditNote
- func StatusIn(vs ...string) predicate.CreditNote
- func StatusLT(v string) predicate.CreditNote
- func StatusLTE(v string) predicate.CreditNote
- func StatusNEQ(v string) predicate.CreditNote
- func StatusNotIn(vs ...string) predicate.CreditNote
- func SubscriptionID(v string) predicate.CreditNote
- func SubscriptionIDContains(v string) predicate.CreditNote
- func SubscriptionIDContainsFold(v string) predicate.CreditNote
- func SubscriptionIDEQ(v string) predicate.CreditNote
- func SubscriptionIDEqualFold(v string) predicate.CreditNote
- func SubscriptionIDGT(v string) predicate.CreditNote
- func SubscriptionIDGTE(v string) predicate.CreditNote
- func SubscriptionIDHasPrefix(v string) predicate.CreditNote
- func SubscriptionIDHasSuffix(v string) predicate.CreditNote
- func SubscriptionIDIn(vs ...string) predicate.CreditNote
- func SubscriptionIDIsNil() predicate.CreditNote
- func SubscriptionIDLT(v string) predicate.CreditNote
- func SubscriptionIDLTE(v string) predicate.CreditNote
- func SubscriptionIDNEQ(v string) predicate.CreditNote
- func SubscriptionIDNotIn(vs ...string) predicate.CreditNote
- func SubscriptionIDNotNil() predicate.CreditNote
- func TenantID(v string) predicate.CreditNote
- func TenantIDContains(v string) predicate.CreditNote
- func TenantIDContainsFold(v string) predicate.CreditNote
- func TenantIDEQ(v string) predicate.CreditNote
- func TenantIDEqualFold(v string) predicate.CreditNote
- func TenantIDGT(v string) predicate.CreditNote
- func TenantIDGTE(v string) predicate.CreditNote
- func TenantIDHasPrefix(v string) predicate.CreditNote
- func TenantIDHasSuffix(v string) predicate.CreditNote
- func TenantIDIn(vs ...string) predicate.CreditNote
- func TenantIDLT(v string) predicate.CreditNote
- func TenantIDLTE(v string) predicate.CreditNote
- func TenantIDNEQ(v string) predicate.CreditNote
- func TenantIDNotIn(vs ...string) predicate.CreditNote
- func TotalAmount(v decimal.Decimal) predicate.CreditNote
- func TotalAmountEQ(v decimal.Decimal) predicate.CreditNote
- func TotalAmountGT(v decimal.Decimal) predicate.CreditNote
- func TotalAmountGTE(v decimal.Decimal) predicate.CreditNote
- func TotalAmountIn(vs ...decimal.Decimal) predicate.CreditNote
- func TotalAmountLT(v decimal.Decimal) predicate.CreditNote
- func TotalAmountLTE(v decimal.Decimal) predicate.CreditNote
- func TotalAmountNEQ(v decimal.Decimal) predicate.CreditNote
- func TotalAmountNotIn(vs ...decimal.Decimal) predicate.CreditNote
- func UpdatedAt(v time.Time) predicate.CreditNote
- func UpdatedAtEQ(v time.Time) predicate.CreditNote
- func UpdatedAtGT(v time.Time) predicate.CreditNote
- func UpdatedAtGTE(v time.Time) predicate.CreditNote
- func UpdatedAtIn(vs ...time.Time) predicate.CreditNote
- func UpdatedAtLT(v time.Time) predicate.CreditNote
- func UpdatedAtLTE(v time.Time) predicate.CreditNote
- func UpdatedAtNEQ(v time.Time) predicate.CreditNote
- func UpdatedAtNotIn(vs ...time.Time) predicate.CreditNote
- func UpdatedBy(v string) predicate.CreditNote
- func UpdatedByContains(v string) predicate.CreditNote
- func UpdatedByContainsFold(v string) predicate.CreditNote
- func UpdatedByEQ(v string) predicate.CreditNote
- func UpdatedByEqualFold(v string) predicate.CreditNote
- func UpdatedByGT(v string) predicate.CreditNote
- func UpdatedByGTE(v string) predicate.CreditNote
- func UpdatedByHasPrefix(v string) predicate.CreditNote
- func UpdatedByHasSuffix(v string) predicate.CreditNote
- func UpdatedByIn(vs ...string) predicate.CreditNote
- func UpdatedByIsNil() predicate.CreditNote
- func UpdatedByLT(v string) predicate.CreditNote
- func UpdatedByLTE(v string) predicate.CreditNote
- func UpdatedByNEQ(v string) predicate.CreditNote
- func UpdatedByNotIn(vs ...string) predicate.CreditNote
- func UpdatedByNotNil() predicate.CreditNote
- func ValidColumn(column string) bool
- func VoidedAt(v time.Time) predicate.CreditNote
- func VoidedAtEQ(v time.Time) predicate.CreditNote
- func VoidedAtGT(v time.Time) predicate.CreditNote
- func VoidedAtGTE(v time.Time) predicate.CreditNote
- func VoidedAtIn(vs ...time.Time) predicate.CreditNote
- func VoidedAtIsNil() predicate.CreditNote
- func VoidedAtLT(v time.Time) predicate.CreditNote
- func VoidedAtLTE(v time.Time) predicate.CreditNote
- func VoidedAtNEQ(v time.Time) predicate.CreditNote
- func VoidedAtNotIn(vs ...time.Time) predicate.CreditNote
- func VoidedAtNotNil() predicate.CreditNote
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByCreditNoteNumber(opts ...sql.OrderTermOption) OrderOption
- func ByCreditNoteStatus(opts ...sql.OrderTermOption) OrderOption
- func ByCreditNoteType(opts ...sql.OrderTermOption) OrderOption
- func ByCurrency(opts ...sql.OrderTermOption) OrderOption
- func ByCustomerID(opts ...sql.OrderTermOption) OrderOption
- func ByEnvironmentID(opts ...sql.OrderTermOption) OrderOption
- func ByFinalizedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIdempotencyKey(opts ...sql.OrderTermOption) OrderOption
- func ByInvoiceID(opts ...sql.OrderTermOption) OrderOption
- func ByLineItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLineItemsCount(opts ...sql.OrderTermOption) OrderOption
- func ByMemo(opts ...sql.OrderTermOption) OrderOption
- func ByReason(opts ...sql.OrderTermOption) OrderOption
- func ByRefundStatus(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func BySubscriptionID(opts ...sql.OrderTermOption) OrderOption
- func ByTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByTotalAmount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByVoidedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the creditnote type in the database. Label = "credit_note" // 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" // FieldInvoiceID holds the string denoting the invoice_id field in the database. FieldInvoiceID = "invoice_id" // FieldCustomerID holds the string denoting the customer_id field in the database. FieldCustomerID = "customer_id" // FieldSubscriptionID holds the string denoting the subscription_id field in the database. FieldSubscriptionID = "subscription_id" // FieldCreditNoteNumber holds the string denoting the credit_note_number field in the database. FieldCreditNoteNumber = "credit_note_number" // FieldCreditNoteStatus holds the string denoting the credit_note_status field in the database. FieldCreditNoteStatus = "credit_note_status" // FieldCreditNoteType holds the string denoting the credit_note_type field in the database. FieldCreditNoteType = "credit_note_type" // FieldRefundStatus holds the string denoting the refund_status field in the database. FieldRefundStatus = "refund_status" // FieldReason holds the string denoting the reason field in the database. FieldReason = "reason" // FieldMemo holds the string denoting the memo field in the database. FieldMemo = "memo" // FieldCurrency holds the string denoting the currency field in the database. FieldCurrency = "currency" // FieldIdempotencyKey holds the string denoting the idempotency_key field in the database. FieldIdempotencyKey = "idempotency_key" // FieldVoidedAt holds the string denoting the voided_at field in the database. FieldVoidedAt = "voided_at" // FieldFinalizedAt holds the string denoting the finalized_at field in the database. FieldFinalizedAt = "finalized_at" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // FieldTotalAmount holds the string denoting the total_amount field in the database. FieldTotalAmount = "total_amount" // EdgeLineItems holds the string denoting the line_items edge name in mutations. EdgeLineItems = "line_items" // Table holds the table name of the creditnote in the database. Table = "credit_notes" // LineItemsTable is the table that holds the line_items relation/edge. LineItemsTable = "credit_note_line_items" // LineItemsInverseTable is the table name for the CreditNoteLineItem entity. // It exists in this package in order to avoid circular dependency with the "creditnotelineitem" package. LineItemsInverseTable = "credit_note_line_items" // LineItemsColumn is the table column denoting the line_items relation/edge. LineItemsColumn = "credit_note_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 // InvoiceIDValidator is a validator for the "invoice_id" field. It is called by the builders before save. InvoiceIDValidator func(string) error // CustomerIDValidator is a validator for the "customer_id" field. It is called by the builders before save. CustomerIDValidator func(string) error // DefaultCreditNoteStatus holds the default value on creation for the "credit_note_status" field. DefaultCreditNoteStatus types.CreditNoteStatus // CreditNoteTypeValidator is a validator for the "credit_note_type" field. It is called by the builders before save. CreditNoteTypeValidator func(string) error // ReasonValidator is a validator for the "reason" field. It is called by the builders before save. ReasonValidator func(string) error // DefaultTotalAmount holds the default value on creation for the "total_amount" field. DefaultTotalAmount decimal.Decimal )
var Columns = []string{ FieldID, FieldTenantID, FieldStatus, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldEnvironmentID, FieldInvoiceID, FieldCustomerID, FieldSubscriptionID, FieldCreditNoteNumber, FieldCreditNoteStatus, FieldCreditNoteType, FieldRefundStatus, FieldReason, FieldMemo, FieldCurrency, FieldIdempotencyKey, FieldVoidedAt, FieldFinalizedAt, FieldMetadata, FieldTotalAmount, }
Columns holds all SQL columns for creditnote fields.
Functions ¶
func And ¶
func And(predicates ...predicate.CreditNote) predicate.CreditNote
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.CreditNote
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.CreditNote
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.CreditNote
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.CreditNote
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.CreditNote
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.CreditNote
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.CreditNote
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.CreditNote
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.CreditNote
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.CreditNote
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.CreditNote
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.CreditNote
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.CreditNote
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.CreditNote
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.CreditNote
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.CreditNote
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.CreditNote
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.CreditNote
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.CreditNote
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.CreditNote
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.CreditNote
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.CreditNote
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.CreditNote
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.CreditNote
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.CreditNote
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func CreditNoteNumber ¶
func CreditNoteNumber(v string) predicate.CreditNote
CreditNoteNumber applies equality check predicate on the "credit_note_number" field. It's identical to CreditNoteNumberEQ.
func CreditNoteNumberContains ¶
func CreditNoteNumberContains(v string) predicate.CreditNote
CreditNoteNumberContains applies the Contains predicate on the "credit_note_number" field.
func CreditNoteNumberContainsFold ¶
func CreditNoteNumberContainsFold(v string) predicate.CreditNote
CreditNoteNumberContainsFold applies the ContainsFold predicate on the "credit_note_number" field.
func CreditNoteNumberEQ ¶
func CreditNoteNumberEQ(v string) predicate.CreditNote
CreditNoteNumberEQ applies the EQ predicate on the "credit_note_number" field.
func CreditNoteNumberEqualFold ¶
func CreditNoteNumberEqualFold(v string) predicate.CreditNote
CreditNoteNumberEqualFold applies the EqualFold predicate on the "credit_note_number" field.
func CreditNoteNumberGT ¶
func CreditNoteNumberGT(v string) predicate.CreditNote
CreditNoteNumberGT applies the GT predicate on the "credit_note_number" field.
func CreditNoteNumberGTE ¶
func CreditNoteNumberGTE(v string) predicate.CreditNote
CreditNoteNumberGTE applies the GTE predicate on the "credit_note_number" field.
func CreditNoteNumberHasPrefix ¶
func CreditNoteNumberHasPrefix(v string) predicate.CreditNote
CreditNoteNumberHasPrefix applies the HasPrefix predicate on the "credit_note_number" field.
func CreditNoteNumberHasSuffix ¶
func CreditNoteNumberHasSuffix(v string) predicate.CreditNote
CreditNoteNumberHasSuffix applies the HasSuffix predicate on the "credit_note_number" field.
func CreditNoteNumberIn ¶
func CreditNoteNumberIn(vs ...string) predicate.CreditNote
CreditNoteNumberIn applies the In predicate on the "credit_note_number" field.
func CreditNoteNumberLT ¶
func CreditNoteNumberLT(v string) predicate.CreditNote
CreditNoteNumberLT applies the LT predicate on the "credit_note_number" field.
func CreditNoteNumberLTE ¶
func CreditNoteNumberLTE(v string) predicate.CreditNote
CreditNoteNumberLTE applies the LTE predicate on the "credit_note_number" field.
func CreditNoteNumberNEQ ¶
func CreditNoteNumberNEQ(v string) predicate.CreditNote
CreditNoteNumberNEQ applies the NEQ predicate on the "credit_note_number" field.
func CreditNoteNumberNotIn ¶
func CreditNoteNumberNotIn(vs ...string) predicate.CreditNote
CreditNoteNumberNotIn applies the NotIn predicate on the "credit_note_number" field.
func CreditNoteStatus ¶
func CreditNoteStatus(v types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatus applies equality check predicate on the "credit_note_status" field. It's identical to CreditNoteStatusEQ.
func CreditNoteStatusContains ¶
func CreditNoteStatusContains(v types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusContains applies the Contains predicate on the "credit_note_status" field.
func CreditNoteStatusContainsFold ¶
func CreditNoteStatusContainsFold(v types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusContainsFold applies the ContainsFold predicate on the "credit_note_status" field.
func CreditNoteStatusEQ ¶
func CreditNoteStatusEQ(v types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusEQ applies the EQ predicate on the "credit_note_status" field.
func CreditNoteStatusEqualFold ¶
func CreditNoteStatusEqualFold(v types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusEqualFold applies the EqualFold predicate on the "credit_note_status" field.
func CreditNoteStatusGT ¶
func CreditNoteStatusGT(v types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusGT applies the GT predicate on the "credit_note_status" field.
func CreditNoteStatusGTE ¶
func CreditNoteStatusGTE(v types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusGTE applies the GTE predicate on the "credit_note_status" field.
func CreditNoteStatusHasPrefix ¶
func CreditNoteStatusHasPrefix(v types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusHasPrefix applies the HasPrefix predicate on the "credit_note_status" field.
func CreditNoteStatusHasSuffix ¶
func CreditNoteStatusHasSuffix(v types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusHasSuffix applies the HasSuffix predicate on the "credit_note_status" field.
func CreditNoteStatusIn ¶
func CreditNoteStatusIn(vs ...types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusIn applies the In predicate on the "credit_note_status" field.
func CreditNoteStatusLT ¶
func CreditNoteStatusLT(v types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusLT applies the LT predicate on the "credit_note_status" field.
func CreditNoteStatusLTE ¶
func CreditNoteStatusLTE(v types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusLTE applies the LTE predicate on the "credit_note_status" field.
func CreditNoteStatusNEQ ¶
func CreditNoteStatusNEQ(v types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusNEQ applies the NEQ predicate on the "credit_note_status" field.
func CreditNoteStatusNotIn ¶
func CreditNoteStatusNotIn(vs ...types.CreditNoteStatus) predicate.CreditNote
CreditNoteStatusNotIn applies the NotIn predicate on the "credit_note_status" field.
func CreditNoteType ¶
func CreditNoteType(v types.CreditNoteType) predicate.CreditNote
CreditNoteType applies equality check predicate on the "credit_note_type" field. It's identical to CreditNoteTypeEQ.
func CreditNoteTypeContains ¶
func CreditNoteTypeContains(v types.CreditNoteType) predicate.CreditNote
CreditNoteTypeContains applies the Contains predicate on the "credit_note_type" field.
func CreditNoteTypeContainsFold ¶
func CreditNoteTypeContainsFold(v types.CreditNoteType) predicate.CreditNote
CreditNoteTypeContainsFold applies the ContainsFold predicate on the "credit_note_type" field.
func CreditNoteTypeEQ ¶
func CreditNoteTypeEQ(v types.CreditNoteType) predicate.CreditNote
CreditNoteTypeEQ applies the EQ predicate on the "credit_note_type" field.
func CreditNoteTypeEqualFold ¶
func CreditNoteTypeEqualFold(v types.CreditNoteType) predicate.CreditNote
CreditNoteTypeEqualFold applies the EqualFold predicate on the "credit_note_type" field.
func CreditNoteTypeGT ¶
func CreditNoteTypeGT(v types.CreditNoteType) predicate.CreditNote
CreditNoteTypeGT applies the GT predicate on the "credit_note_type" field.
func CreditNoteTypeGTE ¶
func CreditNoteTypeGTE(v types.CreditNoteType) predicate.CreditNote
CreditNoteTypeGTE applies the GTE predicate on the "credit_note_type" field.
func CreditNoteTypeHasPrefix ¶
func CreditNoteTypeHasPrefix(v types.CreditNoteType) predicate.CreditNote
CreditNoteTypeHasPrefix applies the HasPrefix predicate on the "credit_note_type" field.
func CreditNoteTypeHasSuffix ¶
func CreditNoteTypeHasSuffix(v types.CreditNoteType) predicate.CreditNote
CreditNoteTypeHasSuffix applies the HasSuffix predicate on the "credit_note_type" field.
func CreditNoteTypeIn ¶
func CreditNoteTypeIn(vs ...types.CreditNoteType) predicate.CreditNote
CreditNoteTypeIn applies the In predicate on the "credit_note_type" field.
func CreditNoteTypeLT ¶
func CreditNoteTypeLT(v types.CreditNoteType) predicate.CreditNote
CreditNoteTypeLT applies the LT predicate on the "credit_note_type" field.
func CreditNoteTypeLTE ¶
func CreditNoteTypeLTE(v types.CreditNoteType) predicate.CreditNote
CreditNoteTypeLTE applies the LTE predicate on the "credit_note_type" field.
func CreditNoteTypeNEQ ¶
func CreditNoteTypeNEQ(v types.CreditNoteType) predicate.CreditNote
CreditNoteTypeNEQ applies the NEQ predicate on the "credit_note_type" field.
func CreditNoteTypeNotIn ¶
func CreditNoteTypeNotIn(vs ...types.CreditNoteType) predicate.CreditNote
CreditNoteTypeNotIn applies the NotIn predicate on the "credit_note_type" field.
func Currency ¶
func Currency(v string) predicate.CreditNote
Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.
func CurrencyContains ¶
func CurrencyContains(v string) predicate.CreditNote
CurrencyContains applies the Contains predicate on the "currency" field.
func CurrencyContainsFold ¶
func CurrencyContainsFold(v string) predicate.CreditNote
CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.
func CurrencyEQ ¶
func CurrencyEQ(v string) predicate.CreditNote
CurrencyEQ applies the EQ predicate on the "currency" field.
func CurrencyEqualFold ¶
func CurrencyEqualFold(v string) predicate.CreditNote
CurrencyEqualFold applies the EqualFold predicate on the "currency" field.
func CurrencyGT ¶
func CurrencyGT(v string) predicate.CreditNote
CurrencyGT applies the GT predicate on the "currency" field.
func CurrencyGTE ¶
func CurrencyGTE(v string) predicate.CreditNote
CurrencyGTE applies the GTE predicate on the "currency" field.
func CurrencyHasPrefix ¶
func CurrencyHasPrefix(v string) predicate.CreditNote
CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.
func CurrencyHasSuffix ¶
func CurrencyHasSuffix(v string) predicate.CreditNote
CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.
func CurrencyIn ¶
func CurrencyIn(vs ...string) predicate.CreditNote
CurrencyIn applies the In predicate on the "currency" field.
func CurrencyLT ¶
func CurrencyLT(v string) predicate.CreditNote
CurrencyLT applies the LT predicate on the "currency" field.
func CurrencyLTE ¶
func CurrencyLTE(v string) predicate.CreditNote
CurrencyLTE applies the LTE predicate on the "currency" field.
func CurrencyNEQ ¶
func CurrencyNEQ(v string) predicate.CreditNote
CurrencyNEQ applies the NEQ predicate on the "currency" field.
func CurrencyNotIn ¶
func CurrencyNotIn(vs ...string) predicate.CreditNote
CurrencyNotIn applies the NotIn predicate on the "currency" field.
func CustomerID ¶
func CustomerID(v string) predicate.CreditNote
CustomerID applies equality check predicate on the "customer_id" field. It's identical to CustomerIDEQ.
func CustomerIDContains ¶
func CustomerIDContains(v string) predicate.CreditNote
CustomerIDContains applies the Contains predicate on the "customer_id" field.
func CustomerIDContainsFold ¶
func CustomerIDContainsFold(v string) predicate.CreditNote
CustomerIDContainsFold applies the ContainsFold predicate on the "customer_id" field.
func CustomerIDEQ ¶
func CustomerIDEQ(v string) predicate.CreditNote
CustomerIDEQ applies the EQ predicate on the "customer_id" field.
func CustomerIDEqualFold ¶
func CustomerIDEqualFold(v string) predicate.CreditNote
CustomerIDEqualFold applies the EqualFold predicate on the "customer_id" field.
func CustomerIDGT ¶
func CustomerIDGT(v string) predicate.CreditNote
CustomerIDGT applies the GT predicate on the "customer_id" field.
func CustomerIDGTE ¶
func CustomerIDGTE(v string) predicate.CreditNote
CustomerIDGTE applies the GTE predicate on the "customer_id" field.
func CustomerIDHasPrefix ¶
func CustomerIDHasPrefix(v string) predicate.CreditNote
CustomerIDHasPrefix applies the HasPrefix predicate on the "customer_id" field.
func CustomerIDHasSuffix ¶
func CustomerIDHasSuffix(v string) predicate.CreditNote
CustomerIDHasSuffix applies the HasSuffix predicate on the "customer_id" field.
func CustomerIDIn ¶
func CustomerIDIn(vs ...string) predicate.CreditNote
CustomerIDIn applies the In predicate on the "customer_id" field.
func CustomerIDLT ¶
func CustomerIDLT(v string) predicate.CreditNote
CustomerIDLT applies the LT predicate on the "customer_id" field.
func CustomerIDLTE ¶
func CustomerIDLTE(v string) predicate.CreditNote
CustomerIDLTE applies the LTE predicate on the "customer_id" field.
func CustomerIDNEQ ¶
func CustomerIDNEQ(v string) predicate.CreditNote
CustomerIDNEQ applies the NEQ predicate on the "customer_id" field.
func CustomerIDNotIn ¶
func CustomerIDNotIn(vs ...string) predicate.CreditNote
CustomerIDNotIn applies the NotIn predicate on the "customer_id" field.
func EnvironmentID ¶
func EnvironmentID(v string) predicate.CreditNote
EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.
func EnvironmentIDContains ¶
func EnvironmentIDContains(v string) predicate.CreditNote
EnvironmentIDContains applies the Contains predicate on the "environment_id" field.
func EnvironmentIDContainsFold ¶
func EnvironmentIDContainsFold(v string) predicate.CreditNote
EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.
func EnvironmentIDEQ ¶
func EnvironmentIDEQ(v string) predicate.CreditNote
EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.
func EnvironmentIDEqualFold ¶
func EnvironmentIDEqualFold(v string) predicate.CreditNote
EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.
func EnvironmentIDGT ¶
func EnvironmentIDGT(v string) predicate.CreditNote
EnvironmentIDGT applies the GT predicate on the "environment_id" field.
func EnvironmentIDGTE ¶
func EnvironmentIDGTE(v string) predicate.CreditNote
EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.
func EnvironmentIDHasPrefix ¶
func EnvironmentIDHasPrefix(v string) predicate.CreditNote
EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.
func EnvironmentIDHasSuffix ¶
func EnvironmentIDHasSuffix(v string) predicate.CreditNote
EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.
func EnvironmentIDIn ¶
func EnvironmentIDIn(vs ...string) predicate.CreditNote
EnvironmentIDIn applies the In predicate on the "environment_id" field.
func EnvironmentIDIsNil ¶
func EnvironmentIDIsNil() predicate.CreditNote
EnvironmentIDIsNil applies the IsNil predicate on the "environment_id" field.
func EnvironmentIDLT ¶
func EnvironmentIDLT(v string) predicate.CreditNote
EnvironmentIDLT applies the LT predicate on the "environment_id" field.
func EnvironmentIDLTE ¶
func EnvironmentIDLTE(v string) predicate.CreditNote
EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.
func EnvironmentIDNEQ ¶
func EnvironmentIDNEQ(v string) predicate.CreditNote
EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.
func EnvironmentIDNotIn ¶
func EnvironmentIDNotIn(vs ...string) predicate.CreditNote
EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.
func EnvironmentIDNotNil ¶
func EnvironmentIDNotNil() predicate.CreditNote
EnvironmentIDNotNil applies the NotNil predicate on the "environment_id" field.
func FinalizedAt ¶
func FinalizedAt(v time.Time) predicate.CreditNote
FinalizedAt applies equality check predicate on the "finalized_at" field. It's identical to FinalizedAtEQ.
func FinalizedAtEQ ¶
func FinalizedAtEQ(v time.Time) predicate.CreditNote
FinalizedAtEQ applies the EQ predicate on the "finalized_at" field.
func FinalizedAtGT ¶
func FinalizedAtGT(v time.Time) predicate.CreditNote
FinalizedAtGT applies the GT predicate on the "finalized_at" field.
func FinalizedAtGTE ¶
func FinalizedAtGTE(v time.Time) predicate.CreditNote
FinalizedAtGTE applies the GTE predicate on the "finalized_at" field.
func FinalizedAtIn ¶
func FinalizedAtIn(vs ...time.Time) predicate.CreditNote
FinalizedAtIn applies the In predicate on the "finalized_at" field.
func FinalizedAtIsNil ¶
func FinalizedAtIsNil() predicate.CreditNote
FinalizedAtIsNil applies the IsNil predicate on the "finalized_at" field.
func FinalizedAtLT ¶
func FinalizedAtLT(v time.Time) predicate.CreditNote
FinalizedAtLT applies the LT predicate on the "finalized_at" field.
func FinalizedAtLTE ¶
func FinalizedAtLTE(v time.Time) predicate.CreditNote
FinalizedAtLTE applies the LTE predicate on the "finalized_at" field.
func FinalizedAtNEQ ¶
func FinalizedAtNEQ(v time.Time) predicate.CreditNote
FinalizedAtNEQ applies the NEQ predicate on the "finalized_at" field.
func FinalizedAtNotIn ¶
func FinalizedAtNotIn(vs ...time.Time) predicate.CreditNote
FinalizedAtNotIn applies the NotIn predicate on the "finalized_at" field.
func FinalizedAtNotNil ¶
func FinalizedAtNotNil() predicate.CreditNote
FinalizedAtNotNil applies the NotNil predicate on the "finalized_at" field.
func HasLineItems ¶
func HasLineItems() predicate.CreditNote
HasLineItems applies the HasEdge predicate on the "line_items" edge.
func HasLineItemsWith ¶
func HasLineItemsWith(preds ...predicate.CreditNoteLineItem) predicate.CreditNote
HasLineItemsWith applies the HasEdge predicate on the "line_items" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.CreditNote
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.CreditNote
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.CreditNote
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.CreditNote
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.CreditNote
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.CreditNote
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.CreditNote
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.CreditNote
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.CreditNote
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.CreditNote
IDNotIn applies the NotIn predicate on the ID field.
func IdempotencyKey ¶
func IdempotencyKey(v string) predicate.CreditNote
IdempotencyKey applies equality check predicate on the "idempotency_key" field. It's identical to IdempotencyKeyEQ.
func IdempotencyKeyContains ¶
func IdempotencyKeyContains(v string) predicate.CreditNote
IdempotencyKeyContains applies the Contains predicate on the "idempotency_key" field.
func IdempotencyKeyContainsFold ¶
func IdempotencyKeyContainsFold(v string) predicate.CreditNote
IdempotencyKeyContainsFold applies the ContainsFold predicate on the "idempotency_key" field.
func IdempotencyKeyEQ ¶
func IdempotencyKeyEQ(v string) predicate.CreditNote
IdempotencyKeyEQ applies the EQ predicate on the "idempotency_key" field.
func IdempotencyKeyEqualFold ¶
func IdempotencyKeyEqualFold(v string) predicate.CreditNote
IdempotencyKeyEqualFold applies the EqualFold predicate on the "idempotency_key" field.
func IdempotencyKeyGT ¶
func IdempotencyKeyGT(v string) predicate.CreditNote
IdempotencyKeyGT applies the GT predicate on the "idempotency_key" field.
func IdempotencyKeyGTE ¶
func IdempotencyKeyGTE(v string) predicate.CreditNote
IdempotencyKeyGTE applies the GTE predicate on the "idempotency_key" field.
func IdempotencyKeyHasPrefix ¶
func IdempotencyKeyHasPrefix(v string) predicate.CreditNote
IdempotencyKeyHasPrefix applies the HasPrefix predicate on the "idempotency_key" field.
func IdempotencyKeyHasSuffix ¶
func IdempotencyKeyHasSuffix(v string) predicate.CreditNote
IdempotencyKeyHasSuffix applies the HasSuffix predicate on the "idempotency_key" field.
func IdempotencyKeyIn ¶
func IdempotencyKeyIn(vs ...string) predicate.CreditNote
IdempotencyKeyIn applies the In predicate on the "idempotency_key" field.
func IdempotencyKeyIsNil ¶
func IdempotencyKeyIsNil() predicate.CreditNote
IdempotencyKeyIsNil applies the IsNil predicate on the "idempotency_key" field.
func IdempotencyKeyLT ¶
func IdempotencyKeyLT(v string) predicate.CreditNote
IdempotencyKeyLT applies the LT predicate on the "idempotency_key" field.
func IdempotencyKeyLTE ¶
func IdempotencyKeyLTE(v string) predicate.CreditNote
IdempotencyKeyLTE applies the LTE predicate on the "idempotency_key" field.
func IdempotencyKeyNEQ ¶
func IdempotencyKeyNEQ(v string) predicate.CreditNote
IdempotencyKeyNEQ applies the NEQ predicate on the "idempotency_key" field.
func IdempotencyKeyNotIn ¶
func IdempotencyKeyNotIn(vs ...string) predicate.CreditNote
IdempotencyKeyNotIn applies the NotIn predicate on the "idempotency_key" field.
func IdempotencyKeyNotNil ¶
func IdempotencyKeyNotNil() predicate.CreditNote
IdempotencyKeyNotNil applies the NotNil predicate on the "idempotency_key" field.
func InvoiceID ¶
func InvoiceID(v string) predicate.CreditNote
InvoiceID applies equality check predicate on the "invoice_id" field. It's identical to InvoiceIDEQ.
func InvoiceIDContains ¶
func InvoiceIDContains(v string) predicate.CreditNote
InvoiceIDContains applies the Contains predicate on the "invoice_id" field.
func InvoiceIDContainsFold ¶
func InvoiceIDContainsFold(v string) predicate.CreditNote
InvoiceIDContainsFold applies the ContainsFold predicate on the "invoice_id" field.
func InvoiceIDEQ ¶
func InvoiceIDEQ(v string) predicate.CreditNote
InvoiceIDEQ applies the EQ predicate on the "invoice_id" field.
func InvoiceIDEqualFold ¶
func InvoiceIDEqualFold(v string) predicate.CreditNote
InvoiceIDEqualFold applies the EqualFold predicate on the "invoice_id" field.
func InvoiceIDGT ¶
func InvoiceIDGT(v string) predicate.CreditNote
InvoiceIDGT applies the GT predicate on the "invoice_id" field.
func InvoiceIDGTE ¶
func InvoiceIDGTE(v string) predicate.CreditNote
InvoiceIDGTE applies the GTE predicate on the "invoice_id" field.
func InvoiceIDHasPrefix ¶
func InvoiceIDHasPrefix(v string) predicate.CreditNote
InvoiceIDHasPrefix applies the HasPrefix predicate on the "invoice_id" field.
func InvoiceIDHasSuffix ¶
func InvoiceIDHasSuffix(v string) predicate.CreditNote
InvoiceIDHasSuffix applies the HasSuffix predicate on the "invoice_id" field.
func InvoiceIDIn ¶
func InvoiceIDIn(vs ...string) predicate.CreditNote
InvoiceIDIn applies the In predicate on the "invoice_id" field.
func InvoiceIDLT ¶
func InvoiceIDLT(v string) predicate.CreditNote
InvoiceIDLT applies the LT predicate on the "invoice_id" field.
func InvoiceIDLTE ¶
func InvoiceIDLTE(v string) predicate.CreditNote
InvoiceIDLTE applies the LTE predicate on the "invoice_id" field.
func InvoiceIDNEQ ¶
func InvoiceIDNEQ(v string) predicate.CreditNote
InvoiceIDNEQ applies the NEQ predicate on the "invoice_id" field.
func InvoiceIDNotIn ¶
func InvoiceIDNotIn(vs ...string) predicate.CreditNote
InvoiceIDNotIn applies the NotIn predicate on the "invoice_id" field.
func Memo ¶
func Memo(v string) predicate.CreditNote
Memo applies equality check predicate on the "memo" field. It's identical to MemoEQ.
func MemoContains ¶
func MemoContains(v string) predicate.CreditNote
MemoContains applies the Contains predicate on the "memo" field.
func MemoContainsFold ¶
func MemoContainsFold(v string) predicate.CreditNote
MemoContainsFold applies the ContainsFold predicate on the "memo" field.
func MemoEQ ¶
func MemoEQ(v string) predicate.CreditNote
MemoEQ applies the EQ predicate on the "memo" field.
func MemoEqualFold ¶
func MemoEqualFold(v string) predicate.CreditNote
MemoEqualFold applies the EqualFold predicate on the "memo" field.
func MemoGT ¶
func MemoGT(v string) predicate.CreditNote
MemoGT applies the GT predicate on the "memo" field.
func MemoGTE ¶
func MemoGTE(v string) predicate.CreditNote
MemoGTE applies the GTE predicate on the "memo" field.
func MemoHasPrefix ¶
func MemoHasPrefix(v string) predicate.CreditNote
MemoHasPrefix applies the HasPrefix predicate on the "memo" field.
func MemoHasSuffix ¶
func MemoHasSuffix(v string) predicate.CreditNote
MemoHasSuffix applies the HasSuffix predicate on the "memo" field.
func MemoIn ¶
func MemoIn(vs ...string) predicate.CreditNote
MemoIn applies the In predicate on the "memo" field.
func MemoLT ¶
func MemoLT(v string) predicate.CreditNote
MemoLT applies the LT predicate on the "memo" field.
func MemoLTE ¶
func MemoLTE(v string) predicate.CreditNote
MemoLTE applies the LTE predicate on the "memo" field.
func MemoNEQ ¶
func MemoNEQ(v string) predicate.CreditNote
MemoNEQ applies the NEQ predicate on the "memo" field.
func MemoNotIn ¶
func MemoNotIn(vs ...string) predicate.CreditNote
MemoNotIn applies the NotIn predicate on the "memo" field.
func MetadataIsNil ¶
func MetadataIsNil() predicate.CreditNote
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
func MetadataNotNil() predicate.CreditNote
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func Not ¶
func Not(p predicate.CreditNote) predicate.CreditNote
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CreditNote) predicate.CreditNote
Or groups predicates with the OR operator between them.
func Reason ¶
func Reason(v types.CreditNoteReason) predicate.CreditNote
Reason applies equality check predicate on the "reason" field. It's identical to ReasonEQ.
func ReasonContains ¶
func ReasonContains(v types.CreditNoteReason) predicate.CreditNote
ReasonContains applies the Contains predicate on the "reason" field.
func ReasonContainsFold ¶
func ReasonContainsFold(v types.CreditNoteReason) predicate.CreditNote
ReasonContainsFold applies the ContainsFold predicate on the "reason" field.
func ReasonEQ ¶
func ReasonEQ(v types.CreditNoteReason) predicate.CreditNote
ReasonEQ applies the EQ predicate on the "reason" field.
func ReasonEqualFold ¶
func ReasonEqualFold(v types.CreditNoteReason) predicate.CreditNote
ReasonEqualFold applies the EqualFold predicate on the "reason" field.
func ReasonGT ¶
func ReasonGT(v types.CreditNoteReason) predicate.CreditNote
ReasonGT applies the GT predicate on the "reason" field.
func ReasonGTE ¶
func ReasonGTE(v types.CreditNoteReason) predicate.CreditNote
ReasonGTE applies the GTE predicate on the "reason" field.
func ReasonHasPrefix ¶
func ReasonHasPrefix(v types.CreditNoteReason) predicate.CreditNote
ReasonHasPrefix applies the HasPrefix predicate on the "reason" field.
func ReasonHasSuffix ¶
func ReasonHasSuffix(v types.CreditNoteReason) predicate.CreditNote
ReasonHasSuffix applies the HasSuffix predicate on the "reason" field.
func ReasonIn ¶
func ReasonIn(vs ...types.CreditNoteReason) predicate.CreditNote
ReasonIn applies the In predicate on the "reason" field.
func ReasonLT ¶
func ReasonLT(v types.CreditNoteReason) predicate.CreditNote
ReasonLT applies the LT predicate on the "reason" field.
func ReasonLTE ¶
func ReasonLTE(v types.CreditNoteReason) predicate.CreditNote
ReasonLTE applies the LTE predicate on the "reason" field.
func ReasonNEQ ¶
func ReasonNEQ(v types.CreditNoteReason) predicate.CreditNote
ReasonNEQ applies the NEQ predicate on the "reason" field.
func ReasonNotIn ¶
func ReasonNotIn(vs ...types.CreditNoteReason) predicate.CreditNote
ReasonNotIn applies the NotIn predicate on the "reason" field.
func RefundStatus ¶
func RefundStatus(v types.PaymentStatus) predicate.CreditNote
RefundStatus applies equality check predicate on the "refund_status" field. It's identical to RefundStatusEQ.
func RefundStatusContains ¶
func RefundStatusContains(v types.PaymentStatus) predicate.CreditNote
RefundStatusContains applies the Contains predicate on the "refund_status" field.
func RefundStatusContainsFold ¶
func RefundStatusContainsFold(v types.PaymentStatus) predicate.CreditNote
RefundStatusContainsFold applies the ContainsFold predicate on the "refund_status" field.
func RefundStatusEQ ¶
func RefundStatusEQ(v types.PaymentStatus) predicate.CreditNote
RefundStatusEQ applies the EQ predicate on the "refund_status" field.
func RefundStatusEqualFold ¶
func RefundStatusEqualFold(v types.PaymentStatus) predicate.CreditNote
RefundStatusEqualFold applies the EqualFold predicate on the "refund_status" field.
func RefundStatusGT ¶
func RefundStatusGT(v types.PaymentStatus) predicate.CreditNote
RefundStatusGT applies the GT predicate on the "refund_status" field.
func RefundStatusGTE ¶
func RefundStatusGTE(v types.PaymentStatus) predicate.CreditNote
RefundStatusGTE applies the GTE predicate on the "refund_status" field.
func RefundStatusHasPrefix ¶
func RefundStatusHasPrefix(v types.PaymentStatus) predicate.CreditNote
RefundStatusHasPrefix applies the HasPrefix predicate on the "refund_status" field.
func RefundStatusHasSuffix ¶
func RefundStatusHasSuffix(v types.PaymentStatus) predicate.CreditNote
RefundStatusHasSuffix applies the HasSuffix predicate on the "refund_status" field.
func RefundStatusIn ¶
func RefundStatusIn(vs ...types.PaymentStatus) predicate.CreditNote
RefundStatusIn applies the In predicate on the "refund_status" field.
func RefundStatusIsNil ¶
func RefundStatusIsNil() predicate.CreditNote
RefundStatusIsNil applies the IsNil predicate on the "refund_status" field.
func RefundStatusLT ¶
func RefundStatusLT(v types.PaymentStatus) predicate.CreditNote
RefundStatusLT applies the LT predicate on the "refund_status" field.
func RefundStatusLTE ¶
func RefundStatusLTE(v types.PaymentStatus) predicate.CreditNote
RefundStatusLTE applies the LTE predicate on the "refund_status" field.
func RefundStatusNEQ ¶
func RefundStatusNEQ(v types.PaymentStatus) predicate.CreditNote
RefundStatusNEQ applies the NEQ predicate on the "refund_status" field.
func RefundStatusNotIn ¶
func RefundStatusNotIn(vs ...types.PaymentStatus) predicate.CreditNote
RefundStatusNotIn applies the NotIn predicate on the "refund_status" field.
func RefundStatusNotNil ¶
func RefundStatusNotNil() predicate.CreditNote
RefundStatusNotNil applies the NotNil predicate on the "refund_status" field.
func Status ¶
func Status(v string) predicate.CreditNote
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
func StatusContains(v string) predicate.CreditNote
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
func StatusContainsFold(v string) predicate.CreditNote
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEQ ¶
func StatusEQ(v string) predicate.CreditNote
StatusEQ applies the EQ predicate on the "status" field.
func StatusEqualFold ¶
func StatusEqualFold(v string) predicate.CreditNote
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusGT ¶
func StatusGT(v string) predicate.CreditNote
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v string) predicate.CreditNote
StatusGTE applies the GTE predicate on the "status" field.
func StatusHasPrefix ¶
func StatusHasPrefix(v string) predicate.CreditNote
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
func StatusHasSuffix(v string) predicate.CreditNote
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...string) predicate.CreditNote
StatusIn applies the In predicate on the "status" field.
func StatusLT ¶
func StatusLT(v string) predicate.CreditNote
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v string) predicate.CreditNote
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v string) predicate.CreditNote
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...string) predicate.CreditNote
StatusNotIn applies the NotIn predicate on the "status" field.
func SubscriptionID ¶
func SubscriptionID(v string) predicate.CreditNote
SubscriptionID applies equality check predicate on the "subscription_id" field. It's identical to SubscriptionIDEQ.
func SubscriptionIDContains ¶
func SubscriptionIDContains(v string) predicate.CreditNote
SubscriptionIDContains applies the Contains predicate on the "subscription_id" field.
func SubscriptionIDContainsFold ¶
func SubscriptionIDContainsFold(v string) predicate.CreditNote
SubscriptionIDContainsFold applies the ContainsFold predicate on the "subscription_id" field.
func SubscriptionIDEQ ¶
func SubscriptionIDEQ(v string) predicate.CreditNote
SubscriptionIDEQ applies the EQ predicate on the "subscription_id" field.
func SubscriptionIDEqualFold ¶
func SubscriptionIDEqualFold(v string) predicate.CreditNote
SubscriptionIDEqualFold applies the EqualFold predicate on the "subscription_id" field.
func SubscriptionIDGT ¶
func SubscriptionIDGT(v string) predicate.CreditNote
SubscriptionIDGT applies the GT predicate on the "subscription_id" field.
func SubscriptionIDGTE ¶
func SubscriptionIDGTE(v string) predicate.CreditNote
SubscriptionIDGTE applies the GTE predicate on the "subscription_id" field.
func SubscriptionIDHasPrefix ¶
func SubscriptionIDHasPrefix(v string) predicate.CreditNote
SubscriptionIDHasPrefix applies the HasPrefix predicate on the "subscription_id" field.
func SubscriptionIDHasSuffix ¶
func SubscriptionIDHasSuffix(v string) predicate.CreditNote
SubscriptionIDHasSuffix applies the HasSuffix predicate on the "subscription_id" field.
func SubscriptionIDIn ¶
func SubscriptionIDIn(vs ...string) predicate.CreditNote
SubscriptionIDIn applies the In predicate on the "subscription_id" field.
func SubscriptionIDIsNil ¶
func SubscriptionIDIsNil() predicate.CreditNote
SubscriptionIDIsNil applies the IsNil predicate on the "subscription_id" field.
func SubscriptionIDLT ¶
func SubscriptionIDLT(v string) predicate.CreditNote
SubscriptionIDLT applies the LT predicate on the "subscription_id" field.
func SubscriptionIDLTE ¶
func SubscriptionIDLTE(v string) predicate.CreditNote
SubscriptionIDLTE applies the LTE predicate on the "subscription_id" field.
func SubscriptionIDNEQ ¶
func SubscriptionIDNEQ(v string) predicate.CreditNote
SubscriptionIDNEQ applies the NEQ predicate on the "subscription_id" field.
func SubscriptionIDNotIn ¶
func SubscriptionIDNotIn(vs ...string) predicate.CreditNote
SubscriptionIDNotIn applies the NotIn predicate on the "subscription_id" field.
func SubscriptionIDNotNil ¶
func SubscriptionIDNotNil() predicate.CreditNote
SubscriptionIDNotNil applies the NotNil predicate on the "subscription_id" field.
func TenantID ¶
func TenantID(v string) predicate.CreditNote
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDContains ¶
func TenantIDContains(v string) predicate.CreditNote
TenantIDContains applies the Contains predicate on the "tenant_id" field.
func TenantIDContainsFold ¶
func TenantIDContainsFold(v string) predicate.CreditNote
TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.
func TenantIDEQ ¶
func TenantIDEQ(v string) predicate.CreditNote
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDEqualFold ¶
func TenantIDEqualFold(v string) predicate.CreditNote
TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.
func TenantIDGT ¶
func TenantIDGT(v string) predicate.CreditNote
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
func TenantIDGTE(v string) predicate.CreditNote
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDHasPrefix ¶
func TenantIDHasPrefix(v string) predicate.CreditNote
TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.
func TenantIDHasSuffix ¶
func TenantIDHasSuffix(v string) predicate.CreditNote
TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.
func TenantIDIn ¶
func TenantIDIn(vs ...string) predicate.CreditNote
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
func TenantIDLT(v string) predicate.CreditNote
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
func TenantIDLTE(v string) predicate.CreditNote
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
func TenantIDNEQ(v string) predicate.CreditNote
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
func TenantIDNotIn(vs ...string) predicate.CreditNote
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
func TotalAmount ¶
func TotalAmount(v decimal.Decimal) predicate.CreditNote
TotalAmount applies equality check predicate on the "total_amount" field. It's identical to TotalAmountEQ.
func TotalAmountEQ ¶
func TotalAmountEQ(v decimal.Decimal) predicate.CreditNote
TotalAmountEQ applies the EQ predicate on the "total_amount" field.
func TotalAmountGT ¶
func TotalAmountGT(v decimal.Decimal) predicate.CreditNote
TotalAmountGT applies the GT predicate on the "total_amount" field.
func TotalAmountGTE ¶
func TotalAmountGTE(v decimal.Decimal) predicate.CreditNote
TotalAmountGTE applies the GTE predicate on the "total_amount" field.
func TotalAmountIn ¶
func TotalAmountIn(vs ...decimal.Decimal) predicate.CreditNote
TotalAmountIn applies the In predicate on the "total_amount" field.
func TotalAmountLT ¶
func TotalAmountLT(v decimal.Decimal) predicate.CreditNote
TotalAmountLT applies the LT predicate on the "total_amount" field.
func TotalAmountLTE ¶
func TotalAmountLTE(v decimal.Decimal) predicate.CreditNote
TotalAmountLTE applies the LTE predicate on the "total_amount" field.
func TotalAmountNEQ ¶
func TotalAmountNEQ(v decimal.Decimal) predicate.CreditNote
TotalAmountNEQ applies the NEQ predicate on the "total_amount" field.
func TotalAmountNotIn ¶
func TotalAmountNotIn(vs ...decimal.Decimal) predicate.CreditNote
TotalAmountNotIn applies the NotIn predicate on the "total_amount" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.CreditNote
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.CreditNote
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.CreditNote
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.CreditNote
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.CreditNote
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.CreditNote
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.CreditNote
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.CreditNote
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.CreditNote
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.CreditNote
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.CreditNote
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.CreditNote
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.CreditNote
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.CreditNote
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.CreditNote
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.CreditNote
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.CreditNote
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.CreditNote
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.CreditNote
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.CreditNote
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.CreditNote
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.CreditNote
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.CreditNote
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.CreditNote
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.CreditNote
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).
func VoidedAt ¶
func VoidedAt(v time.Time) predicate.CreditNote
VoidedAt applies equality check predicate on the "voided_at" field. It's identical to VoidedAtEQ.
func VoidedAtEQ ¶
func VoidedAtEQ(v time.Time) predicate.CreditNote
VoidedAtEQ applies the EQ predicate on the "voided_at" field.
func VoidedAtGT ¶
func VoidedAtGT(v time.Time) predicate.CreditNote
VoidedAtGT applies the GT predicate on the "voided_at" field.
func VoidedAtGTE ¶
func VoidedAtGTE(v time.Time) predicate.CreditNote
VoidedAtGTE applies the GTE predicate on the "voided_at" field.
func VoidedAtIn ¶
func VoidedAtIn(vs ...time.Time) predicate.CreditNote
VoidedAtIn applies the In predicate on the "voided_at" field.
func VoidedAtIsNil ¶
func VoidedAtIsNil() predicate.CreditNote
VoidedAtIsNil applies the IsNil predicate on the "voided_at" field.
func VoidedAtLT ¶
func VoidedAtLT(v time.Time) predicate.CreditNote
VoidedAtLT applies the LT predicate on the "voided_at" field.
func VoidedAtLTE ¶
func VoidedAtLTE(v time.Time) predicate.CreditNote
VoidedAtLTE applies the LTE predicate on the "voided_at" field.
func VoidedAtNEQ ¶
func VoidedAtNEQ(v time.Time) predicate.CreditNote
VoidedAtNEQ applies the NEQ predicate on the "voided_at" field.
func VoidedAtNotIn ¶
func VoidedAtNotIn(vs ...time.Time) predicate.CreditNote
VoidedAtNotIn applies the NotIn predicate on the "voided_at" field.
func VoidedAtNotNil ¶
func VoidedAtNotNil() predicate.CreditNote
VoidedAtNotNil applies the NotNil predicate on the "voided_at" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the CreditNote queries.
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 ByCreditNoteNumber ¶
func ByCreditNoteNumber(opts ...sql.OrderTermOption) OrderOption
ByCreditNoteNumber orders the results by the credit_note_number field.
func ByCreditNoteStatus ¶
func ByCreditNoteStatus(opts ...sql.OrderTermOption) OrderOption
ByCreditNoteStatus orders the results by the credit_note_status field.
func ByCreditNoteType ¶
func ByCreditNoteType(opts ...sql.OrderTermOption) OrderOption
ByCreditNoteType orders the results by the credit_note_type field.
func ByCurrency ¶
func ByCurrency(opts ...sql.OrderTermOption) OrderOption
ByCurrency orders the results by the currency field.
func ByCustomerID ¶
func ByCustomerID(opts ...sql.OrderTermOption) OrderOption
ByCustomerID orders the results by the customer_id field.
func ByEnvironmentID ¶
func ByEnvironmentID(opts ...sql.OrderTermOption) OrderOption
ByEnvironmentID orders the results by the environment_id field.
func ByFinalizedAt ¶
func ByFinalizedAt(opts ...sql.OrderTermOption) OrderOption
ByFinalizedAt orders the results by the finalized_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIdempotencyKey ¶
func ByIdempotencyKey(opts ...sql.OrderTermOption) OrderOption
ByIdempotencyKey orders the results by the idempotency_key field.
func ByInvoiceID ¶
func ByInvoiceID(opts ...sql.OrderTermOption) OrderOption
ByInvoiceID orders the results by the invoice_id field.
func ByLineItems ¶
func ByLineItems(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByLineItems orders the results by line_items terms.
func ByLineItemsCount ¶
func ByLineItemsCount(opts ...sql.OrderTermOption) OrderOption
ByLineItemsCount orders the results by line_items count.
func ByMemo ¶
func ByMemo(opts ...sql.OrderTermOption) OrderOption
ByMemo orders the results by the memo field.
func ByReason ¶
func ByReason(opts ...sql.OrderTermOption) OrderOption
ByReason orders the results by the reason field.
func ByRefundStatus ¶
func ByRefundStatus(opts ...sql.OrderTermOption) OrderOption
ByRefundStatus orders the results by the refund_status field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status 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 ByTotalAmount ¶
func ByTotalAmount(opts ...sql.OrderTermOption) OrderOption
ByTotalAmount orders the results by the total_amount field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.
func ByVoidedAt ¶
func ByVoidedAt(opts ...sql.OrderTermOption) OrderOption
ByVoidedAt orders the results by the voided_at field.