//
//  StoreDayClosesFiscalDayVats.swift
//  iPOS
//
//  Created by bbc on 09/10/2017.
//  Copyright © 2017 BBC. All rights reserved.
//

import Foundation
import ObjectMapper

class  StoreDayClosesFiscalDayVats: Mappable{
    var storeDayCloseVatId: UUID
    var storeDayCloseId: UUID
    var storeId: Int!
    var vatId: Int!
    var vatRate: Int!
    var code: String!
    var description: String!
    var documentType: String!
    var vatValue: Double!
    var valueVatExcluded: Double!
    var valueVatIncluded: Double!
    var pcValueVatIncluded: Double!
    var fpValueVatIncluded: Double!
    
    
    required init?(map: Map){
        self.storeDayCloseId = UUID.init()
        self.storeDayCloseVatId = UUID.init()
    }
    
    func mapping(map: Map) {
        storeDayCloseVatId <- (map["StoreDayCloseVatId"], Util.CustomUuidTransform())
        storeDayCloseId <- (map["StoreDayCloseId"], Util.CustomUuidTransform())
        storeId <- map["StoreId"]
        vatId <- map["VatId"]
        vatRate <- map["VatRate"]
        code <- map["Code"]
        description <- map["Description"]
        documentType <- map["DocumentType"]
        vatValue <- map["VatValue"]
        valueVatExcluded <- map["ValueVatExcluded"]
        valueVatIncluded <- map["ValueVatIncluded"]
        pcValueVatIncluded <- map["PCValueVatIncluded"]
        fpValueVatIncluded <- map["FPValueVatIncluded"]
    }
}
