getOrCreateLineItem
getOrCreateLineItem(
deps,lineItemsUrl,bearer,resourceLinkId,label,scoreMaximum):Promise<string>
Defined in: packages/core/src/ags.ts:292
Resolve a line item bound to a resource link, creating one if none exists.
Used when the launch carried only the lineitems container. bearer needs
both the lineitem scope (to list/create) — request it before calling.
Parameters
Section titled “Parameters”lineItemsUrl
Section titled “lineItemsUrl”string
bearer
Section titled “bearer”string
resourceLinkId
Section titled “resourceLinkId”string
string
scoreMaximum
Section titled “scoreMaximum”number
Returns
Section titled “Returns”Promise<string>