data

package
v0.0.0-...-27f08da Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	B2B         = "B2B"
	B2C         = "B2C"
	Marketplace = "Marketplace"
)

Market type constants

Variables

This section is empty.

Functions

func AdjustOrganizationMarket

func AdjustOrganizationMarket(newValue string) string

func InSmallestCurrencyUnit

func InSmallestCurrencyUnit(code string, amount float64) (int64, error)

InSmallestCurrencyUnit converts an amount in float64 to the smallest unit of the given currency

Types

type Currency

type Currency struct {
	Code               string
	Symbol             string
	Name               string
	SmallestUnitFactor int // The factor to convert to the smallest unit
}

Currency represents a currency with its 3-letter code, symbol (if available), and full name

Jump to

Keyboard shortcuts

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