function
GetPaymentTotal
Apply matching arithmetic conditions in order with finite-number checks.
Arguments
| Argument | Type | Description |
|---|---|---|
basePrice | float64 | The basePrice value. |
conditions | []PriceCondition | The conditions value. |
values | map[string]store.Value | The values value. |
Returns
The declared result.
(float64, error)Full signature
func GetPaymentTotal(
basePrice float64,
conditions []PriceCondition,
values map[string]store.Value,
) (float64, error)Related types
PriceConditionOne conditional arithmetic adjustment to a payment base price.
ValueAn immutable scalar, object, list, or populated document value.