Customization

To add or update customer fields on JSON object, please do the following:

Indigitall.assignOrUpdateValueToCustomerFields(withFields: [AnyHashable : Any]) { INCustomer in
                //do something
            } onError: { INError in
                //do something
            }

Otherwise, if you want to eliminate a field, you have to do this with an arrayList of the fieldNames:

Indigitall.deleteValuesFromCustomerFields(withFieldNames: [String]) { INCustomer in
                //do something
            } onError: { INError in
                //do something
            }

To send a custom data to a Customer Journey event, you have to do this with with the event code and customData:

CustomerIndigitall.sendCustomerCustomEvent(["dataKey":"dataValue"], eventCode: "eventCode") { INCustomer in
            print("event ok")
        } failed: { INError in
            print("event error")
        }