  
  For more information, see API reference for [counterparty](https://online.moysklad.ru/api/remap/1.1/doc/index.html#контрагент-контрагенты) and [organization](https://online.moysklad.ru/api/remap/1.1/doc/index.html#юрлицо)
 */
-public class MSAgent : Metable {
+public class MSAgent : Metable, MSGeneralCounterparty {
 	public let meta: MSMeta
 	public let id: MSID
 	public let accountId: String

//

import Foundation

public enum MSCompanyType : String {
	case legal

        self.accounts = accounts
        self.agentInfo = agentInfo
    }
    
    public func copy() -> MSAgent {
        return MSAgent(meta: meta,
                       id: id,
                       accountId: accountId,
                       owner: owner,
                       shared: shared,
                       group: group,
                       info : info,
                       code: code,
                       externalCode: externalCode,
                       archived: archived,
                       actualAddress: actualAddress,
                       companyType: companyType,
                       email: email,
                       phone: phone,
                       fax: fax,
                       legalTitle: legalTitle,
                       legalAddress: legalAddress,
                       inn: inn,
                       kpp: kpp,
                       ogrn: ogrn,
                       ogrnip: ogrnip,
                       okpo: okpo,
                       certificateNumber: certificateNumber,
                       certificateDate: certificateDate,
                       accounts: accounts,
                       agentInfo: agentInfo)
    }
    
    public func copyAgent() -> MSGeneralCounterparty {
        return copy()
    }
}


