Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InvoiceStatusMap = map[string]InvoiceStatus{ "DRAFT": DRAFT, "OPEN": OPEN, "FILLED": FILLED, "LOCKED": LOCKED, "APPROVED": APPROVED, }
InvoiceStatusMap is used for mapping Invoice status
Functions ¶
This section is empty.
Types ¶
type Bid ¶
type Bid struct { ID uuid.UUID InvoiceID uuid.UUID InvestorID uuid.UUID BidAmount *gomoney.Money Created time.Time Updated time.Time }
Bid model
type Investor ¶
type Investor struct { ID uuid.UUID VatNumber string Name string Wallet *Wallet Created time.Time Updated time.Time }
Investor model
type Invoice ¶
type Invoice struct { ID uuid.UUID IssuerID uuid.UUID Number string Description string Status InvoiceStatus Money *gomoney.Money Created time.Time Updated time.Time }
Invoice model
type InvoiceStatus ¶
type InvoiceStatus string
InvoiceStatus model enum
const ( // DRAFT represents a InvoiceStatus DRAFT InvoiceStatus = "DRAFT" // OPEN represents a InvoiceStatus OPEN InvoiceStatus = "OPEN" // FILLED represents a InvoiceStatus FILLED InvoiceStatus = "FILLED" // LOCKED represents a InvoiceStatus LOCKED InvoiceStatus = "LOCKED" // APPROVED represents a InvoiceStatus APPROVED InvoiceStatus = "APPROVED" )
Click to show internal directories.
Click to hide internal directories.