package types

// Decimal holds a decimal value as a string.
type Decimal struct {
	Value string `bson:"value,omitempty" json:"value,omitempty"`
}

func (d *Decimal) GetValue() string {
	if d == nil {
		return ""
	}
	return d.Value
}

// Money represents a currency amount using decimal-safe strings.
type Money struct {
	Amount   string `bson:"amount,omitempty" json:"amount,omitempty"`
	Currency string `bson:"currency,omitempty" json:"currency,omitempty"`
}

func (m *Money) GetAmount() string {
	if m == nil {
		return ""
	}
	return m.Amount
}

func (m *Money) GetCurrency() string {
	if m == nil {
		return ""
	}
	return m.Currency
}
