// // Payment+Serializable.swift // PSCB-OOS-iOS // // Created by Antonov Ilia on 21.10.2020. // import Foundation extension Payment: Serializable { public func serializeToJSON() -> JSONDict { var json = JSONDict() json["orderId"] = self.orderId json["amount"] = self.amount json["showOrderId"] = self.showOrderId json["details"] = self.details json["recurrentable"] = self.recurrentable json["customerAccount"] = self.customer?.account json["customerComment"] = self.customer?.comment json["customerEmail"] = self.customer?.email json["customerPhone"] = self.customer?.phone return json } }