{"modulePath":"github.com/MAX-API-Next/MAX-API","version":"v1.0.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package task_billing_setting\n\n## Functions\n\n```go\nfunc Calculate(input types.TaskBillingInput, groupRatio float64) (*types.TaskBillingResult, error)\n```\n\n```go\nfunc GetRateCardsCopy() map[string]RateCard\n```\n\n```go\nfunc HasRateCard(models ...string) bool\n```\n\n```go\nfunc ValidateRateCardsJSON(raw string) error\n```\n\n## Types\n\n```go\ntype RateCard struct {\n\tVendor          string            `json:\"vendor,omitempty\"`\n\tUnit            string            `json:\"unit,omitempty\"`\n\tQuantityField   string            `json:\"quantity_field,omitempty\"`\n\tDefaultQuantity float64           `json:\"default_quantity,omitempty\"`\n\tStrict          bool              `json:\"strict\"`\n\tDefaults        map[string]string `json:\"defaults,omitempty\"`\n\tRows            []RateCardRow     `json:\"rows\"`\n}\n```\n\n```go\nfunc GetRateCardCopy(models ...string) (*RateCard, string)\n```\n\n```go\ntype RateCardRow struct {\n\tID        string            `json:\"id,omitempty\"`\n\tMatch     map[string]string `json:\"match\"`\n\tUnitPrice float64           `json:\"unit_price\"`\n}\n```\n\n```go\ntype TaskBillingSetting struct {\n\tRateCards *types.RWMap[string, RateCard] `json:\"rate_cards\"`\n}\n```\n\n","path":"github.com/MAX-API-Next/MAX-API/setting/task_billing_setting","name":"task_billing_setting","synopsis":"","isRedistributable":true}
