Interface QapiClaimLineItem
- All Superinterfaces:
Map<String,,SelectableExpression> PersistedObjectColumns,Tables.Columns,Tables.Table
Table of the lines of one Claim. Each row is one Claim line, usually one row of the uploaded file, with the
results of its validation and calculation.
Example:
def q = api.queryApi()
def t = q.tables().claimLineItems("CL-11")
return q.source(t, [t.sku(), t.quantity(), t.totalAmount(), t.validationState()],
t.calculationStatus().notEqual(0))
.stream { it.collect { it } }
- Since:
- 15.3.14 - Southside, 16.1.1 - Black Cat
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the result of the last calculation of the Claim line.Returns the unique name of the Agreement or Promotion that the Claim line is validated against.Returns the ID of the end customer to whom the distributor sold the product.quantity()Returns the claimed quantity of the product.Returns the unique name of the Quote that the Claim line is validated against.sku()Returns the Stock Keeping Unit (SKU) of the product claimed by the distributor.Returns the amount of money claimed by the distributor on the line.Returns whether the Claim line is validated or rejected.Methods inherited from interface Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from interface PersistedObjectColumns
createDate, createdBy, id, lastUpdateBy, lastUpdateDate, version
-
Method Details
-
sku
SelectableExpression sku()Returns the Stock Keeping Unit (SKU) of the product claimed by the distributor.- Returns:
- the sku column as a String expression
-
endCustomerId
SelectableExpression endCustomerId()Returns the ID of the end customer to whom the distributor sold the product.- Returns:
- the endCustomerId column as a String expression
-
quoteUniqueName
SelectableExpression quoteUniqueName()Returns the unique name of the Quote that the Claim line is validated against.- Returns:
- the quoteUniqueName column as a String expression
- See Also:
-
contractUniqueName
SelectableExpression contractUniqueName()Returns the unique name of the Agreement or Promotion that the Claim line is validated against.- Returns:
- the contractUniqueName column as a String expression
- See Also:
-
quantity
SelectableExpression quantity()Returns the claimed quantity of the product.- Returns:
- the quantity column as a Real expression
-
totalAmount
SelectableExpression totalAmount()Returns the amount of money claimed by the distributor on the line.- Returns:
- the totalAmount column as a Real expression
-
calculationStatus
SelectableExpression calculationStatus()Returns the result of the last calculation of the Claim line.The value is a bit mask.
0means the line was calculated without any message. Otherwise the value is the sum of flags such as1(error) and2(warning).- Returns:
- the calculationStatus column as an Integer expression
-
validationState
SelectableExpression validationState()Returns whether the Claim line is validated or rejected.NOT_VALIDATEDmarks a line that a user must validate or reject manually; it is the default when the Claim Type does not define a validation state element.AUTO_VALIDATEDandAUTO_REJECTEDare set by the validation logic, and a user can still change them.VALIDATEDandREJECTEDare set manually by a user.- Returns:
- the validationState column as an Enum expression
-