         super.init(attributes: attributes)
     }
     
-    public func copy() -> MSAgent {
+    public func copy(with zone: NSZone? = nil) -> Any {
+        return copyAgent()
+    }
+    
+    public func copyAgent() -> MSAgent {
         return MSAgent(meta: meta,
                        id: id,
                        accountId: accountId,

 
 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 : MSAttributedEntity, Metable {
	public let meta: MSMeta
	public let id: MSID
	public let accountId: String

                       salesAmount: salesAmount,
                       attributes: attributes,
                       report: report)
    }
    
    public static func empty(withState state: MSEntity<MSState>? = nil) -> MSAgent {
