Customer Creation and Update

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
            }

for example:

Indigitall.assignOrUpdateValueToCustomerFields(withFields: [
    "email": "[email protected]",
    "phone": "123456",
    "name": "Peter",
    "last_name": "Brice"
]) { 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
            }