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): numberParameters
itemsPick<OfferItem, "quantity" | "unit_price">[]RequiredcurrencystringRequired
Returns
number
HTTP operation
Runs locally, with no request to the API.