import Foundation
import Cordova
import IndigitallCordovaObjC

@objc(CDVIndigitallCustomerSwift)
class CDVIndigitallCustomerSwift: CDVPlugin {

    @objc(getCustomer:)
    public func getCustomer(_ command: CDVInvokedUrlCommand) {
        INDIndigitallCustomerBridge.getCustomerWith(self, command: command)
    }
    
    @objc(getCustomerInformation:)
    public func getCustomerInformation(_ command: CDVInvokedUrlCommand) {
        INDIndigitallCustomerBridge.getCustomerInformation(with: self, command: command)
    }
    
    @objc(assignOrUpdateValueToCustomerFields:)
    public func assignOrUpdateValueToCustomerFields(_ command: CDVInvokedUrlCommand) {
        INDIndigitallCustomerBridge.assignOrUpdateValueToCustomerFields(with: self, command: command)
    }
    
    @objc(deleteValuesFromCustomerFields:)
    public func deleteValuesFromCustomerFields(_ command: CDVInvokedUrlCommand) {
        INDIndigitallCustomerBridge.deleteValuesFromCustomerFields(with: self, command: command)
    }
    
    @objc(link:)
    public func link(_ command: CDVInvokedUrlCommand) {
        INDIndigitallCustomerBridge.link(with: self, command: command)
    }
    
    @objc(unlink:)
    public func unlink(_ command: CDVInvokedUrlCommand) {
        INDIndigitallCustomerBridge.unlink(with: self, command: command)
    }
    
    @objc(sendCustomEvent:)
    public func sendCustomEvent(_ command: CDVInvokedUrlCommand) {
        INDIndigitallCustomerBridge.sendCustomEvent(with: self, command: command)
    }
    
}
