types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CopUnit currency.Unit

Functions

This section is empty.

Types

type Date

type Date time.Time

func (Date) String

func (v Date) String() string

func (*Date) UnmarshalJSON

func (v *Date) UnmarshalJSON(b []byte) error

type InvestmentFund

type InvestmentFund struct {
	InvestmentFundBasicInfo
	Score         string `json:"calificacion"`
	Term          string `json:"plazo"`
	UnitValue     Money  `json:"valorDeUnidad"`
	CurrentValue  Money  `json:"valorEnPesos"`
	Profitability struct {
		Days struct {
			WeeklyPercentage   Percentage `json:"semanal"`
			MonthlyPercentage  Percentage `json:"mensual"`
			SemesterPercentage Percentage `json:"semestral"`
		} `json:"dias"`
		Years struct {
			Current        Percentage `json:"anioCorrido"`
			LastYear       Percentage `json:"ultimoAnio"`
			LastTwoYears   Percentage `json:"ultimos2Anios"`
			LastThreeYears Percentage `json:"ultimos3Anios"`
		} `json:"anios"`
	} `json:"rentabilidad"`
	ClosingDate   Date   `json:"fechaCierre"`
	Administrator string `json:"sociedadAdministradora"`
}

type InvestmentFundBasicInfo

type InvestmentFundBasicInfo struct {
	Nit  InvestmentFundId `json:"nit"`
	Name string           `json:"nombre"`
}

type InvestmentFundId

type InvestmentFundId string

type Money

type Money currency.Amount

func (Money) String

func (v Money) String() string

func (*Money) UnmarshalJSON

func (v *Money) UnmarshalJSON(b []byte) error

type Percentage

type Percentage float64

func (*Percentage) UnmarshalJSON

func (v *Percentage) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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