NormalizedCurrency (pricing/quote.go)

DeepSeek-Reasonix · benchmarks/realrepo/tasks/rt-cache-write-rate/solution/internal/contract/pricing/quote.go · go · MIT
payments, tag:knn-classified

Module exposing: NormalizedCurrency, OriginalCostAmount, PricingFingerprint, BuildQuote, newQuoteBuildState, applyOfficialSchedule, quoteDisplayRequest, usageHasFacts

// Source: https://github.com/esengine/DeepSeek-Reasonix | License: MIT | Copyright 2026 Reasonix Contributors
// Provided via justclaw.it.com; keep this notice with the code.
package pricing

import (
	"crypto/sha256"
	"encoding/hex"
	"fmt"
	"slices"
	"strings"
	"time"
)

// Billing modes.
const (
	BillingModePAYG                   = "payg"
	BillingModeSubscriptionEquivalent = "subscription_equivalent"
)

// Valuation basis values.
const (
	BasisIdentity      = "identity"
	BasisOfficialTable = "official_table"
	// BasisFX is retained for decoding pre-v6 persisted quotes only. New
	// quotes never create FX valuations.
	BasisFX = "fx"
)

// DisplayStatus describes whether a quote can satisfy its requested display.
// It is deliberately separate from CostComplete: a known price-book amount


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key