Manos Chorianopoulos

update saveCustomerState

......@@ -1948,6 +1948,18 @@ public class swiftApi {
public func saveCustomerState(_ customer: CustomerStateModel) -> Void {
GlobalVariables.customerState = customer
swiftApi().consumerIntegrationAsync(nonTelco: customer._nonTelco, acceptedConsent: customer._acceptedConsent, msisdnList: customer._msisdnList, guid: customer._guid, consumerIntegrationCallback)
func consumerIntegrationCallback (_ response: swiftApi.GenericResponseModel?) -> Void {
if (response != nil) {
DispatchQueue.main.async {
print("CUSTOMER STATE SUCCESS")
}
} else {
print("CUSTOMER STATE ERROR")
}
}
}
......