setExternalIdentifier static method
Provide a unique identifier that can be used to link different devices to the same customer in the Nami platform. This customer id will also be returned in any data sent from the Nami servers to your systems as well.
The ID
sent to Nami must be a valid UUID
or you may hash any other
identifier with SHA256
and provide it in this call.
Note that Nami platform will reject the externalIdentifier
, and it
will not get saved in case where externalIdentifier
value doesn't match
the format expected in the provided type
. For example, if you provide
a regular string instead of a proper UUID
formatted string and
use NamiExternalIdentifierType.uuid to set the value then it will get
rejected
Implementation
static Future<void> setExternalIdentifier(
String externalIdentifier, NamiExternalIdentifierType type) {
var variableMap = {
'externalIdentifier': externalIdentifier,
"type": describeEnum(type)
};
return channel.invokeMethod("setExternalIdentifier", variableMap);
}