View as Markdown

SDK reference · Rails

itemsTotal

itemsTotal in @provenanceauth/rails/deals, Rails. The total of an offer's items, rounded to the currency's minor unit.

Signature

itemsTotal(items: Pick<OfferItem, "quantity" | "unit_price">[], currency: string): number

Parameters

itemsPick<OfferItem, "quantity" | "unit_price">[]Required
currencystringRequired

Returns

number

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.