model

package
v0.0.0-...-47cfc89 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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"
)

type Issuer

type Issuer struct {
	ID      uuid.UUID
	Name    string
	Wallet  *Wallet
	Created time.Time
	Updated time.Time
}

Issuer model

type Paging

type Paging struct {
	Page  int
	Limit int
}

Paging model

type Wallet

type Wallet struct {
	ID      uuid.UUID
	Money   *gomoney.Money
	Created time.Time
	Updated time.Time
}

Wallet model

Jump to

Keyboard shortcuts

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