externalid

package
v1.0.0-beta.228 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInvoiceExternalID

func CreateInvoiceExternalID[T InvoiceExternalIDCreator[T]](creator InvoiceExternalIDCreator[T], ids InvoiceExternalIDs) T

func CreateLineExternalID

func CreateLineExternalID[T LineExternalIDCreator[T]](creator LineExternalIDCreator[T], ids LineExternalIDs) T

func UpdateInvoiceExternalID

func UpdateInvoiceExternalID[T InvoiceExternalIDUpdater[T]](updater InvoiceExternalIDUpdater[T], ids InvoiceExternalIDs) T

func UpdateLineExternalID

func UpdateLineExternalID[T LineExternalIDUpdater[T]](updater LineExternalIDUpdater[T], ids LineExternalIDs) T

Types

type InvoiceExternalIDCreator

type InvoiceExternalIDCreator[T any] interface {
	SetNillableInvoicingAppExternalID(invoicingAppExternalID *string) T
	SetNillablePaymentAppExternalID(paymentAppExternalID *string) T
}

type InvoiceExternalIDGetter

type InvoiceExternalIDGetter interface {
	GetInvoicingAppExternalID() *string
	GetPaymentAppExternalID() *string
}

type InvoiceExternalIDUpdater

type InvoiceExternalIDUpdater[T any] interface {
	SetOrClearInvoicingAppExternalID(invoicingAppExternalID *string) T
	SetOrClearPaymentAppExternalID(paymentAppExternalID *string) T
}

type InvoiceExternalIDs

type InvoiceExternalIDs struct {
	Invoicing string `json:"invoicing,omitempty"`
	Payment   string `json:"payment,omitempty"`
}

func MapInvoiceExternalIDFromDB

func MapInvoiceExternalIDFromDB(dbEntity InvoiceExternalIDGetter) InvoiceExternalIDs

func (*InvoiceExternalIDs) GetInvoicingOrEmpty

func (i *InvoiceExternalIDs) GetInvoicingOrEmpty() string

type InvoiceMixin

type InvoiceMixin struct {
	mixin.Schema
}

func (InvoiceMixin) Fields

func (InvoiceMixin) Fields() []ent.Field

type LineExternalIDCreator

type LineExternalIDCreator[T any] interface {
	SetNillableInvoicingAppExternalID(invoicingAppExternalID *string) T
}

type LineExternalIDGetter

type LineExternalIDGetter interface {
	GetInvoicingAppExternalID() *string
}

type LineExternalIDUpdater

type LineExternalIDUpdater[T any] interface {
	SetOrClearInvoicingAppExternalID(invoicingAppExternalID *string) T
}

type LineExternalIDs

type LineExternalIDs struct {
	Invoicing string `json:"invoicing,omitempty"`
}

func MapLineExternalIDFromDB

func MapLineExternalIDFromDB(dbEntity LineExternalIDGetter) LineExternalIDs

func (LineExternalIDs) Equal

func (i LineExternalIDs) Equal(other LineExternalIDs) bool

type LineMixin

type LineMixin struct {
	mixin.Schema
}

func (LineMixin) Fields

func (LineMixin) Fields() []ent.Field

Jump to

Keyboard shortcuts

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