Documentation ¶
Index ¶
- Constants
- type Price
- func (a *Price) Add(value *Price)
- func (a *Price) Copy() *Price
- func (a Price) MarshalJSON() ([]byte, error)
- func (a *Price) Minus(value *Price)
- func (a *Price) Multiply(value *Price)
- func (a Price) RoundPriceStringFormatAtCheckout(roundOn float64, precision int) string
- func (a Price) ToAdyenInt() int
- func (a Price) ToAdyenString(adyenInt *int) string
- func (a Price) ToFloat64() float64
- func (a Price) ToString() string
- func (a Price) ToStringWithCurrencySymbol(currencySymbol string) string
- func (a *Price) UnmarshalJSON(data []byte) error
Constants ¶
View Source
const ( DefaultRoundOnFloat = 0.6 DefaultRoundPlacesFloat = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Price ¶
type Price float64
func (Price) MarshalJSON ¶
func (Price) RoundPriceStringFormatAtCheckout ¶
func (Price) ToAdyenInt ¶
func (Price) ToAdyenString ¶
func (Price) ToStringWithCurrencySymbol ¶
func (*Price) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.