//
//  Conformity_Raport.swift
//  iPOS
//
//  Created by BBC on 28/02/17.
//  Copyright © 2017 BBC. All rights reserved.
//

import Foundation
import UIKit
import ObjectMapper

class ConformityReportRequest: Report, Mappable{
    var storeId: Int = 0
    var orderDetailId: UUID = UUID.init()
    
    override init() {
        super.init()
        super.jobName = "Conformity"
    }
    
    required init?(map: Map) {
    }
    
    func mapping(map: Map) {
        storeId <- map["StoreId"]
        orderDetailId <- (map["OrderDetailId"], Util.CustomUuidTransform())
    }
}
class ConformityReportResult: Mappable{
    var resultCode: Int = -1
    var errorMessage: String = ""
    var document: String = ""
    
    init() {
    }
    
    required init?(map: Map) {
    }
    
    func mapping(map: Map) {
        resultCode <- map["ResultCode"]
        errorMessage <- map["ErrorMessage"]
        document <- map["Document"]
    }
}

