pscbonline-ios/PSCBOnline/Sources/Serializable/Payment+Serializable.swift

28 lines
712 B
Swift
Raw Normal View History

2024-07-08 15:20:00 +03:00
//
// 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
}
}