The MonetaryValue method

Version:

To define the monetary value property for the Outcome event, use the MonetaryValue() method.

PropertyDetails
UT SDK methodMonetaryValue(decimal)
Required/optionalOptional
Multiple invocationsMultiple invocations are forbidden and cause an InvalidOperationException exception
Value validationOnly decimal numbers allowed

For example:


var outcome = UTRequestBuilder.OutcomeWithDefinitionId("01f8ffbf-d662-4a87-beee-413307055c48")
                              .CurrencyCode("usd")
                              .MonetaryValue(42)

If you have suggestions for improving this article, let us know!