//
//  GetRedemptionRulesRequest.swift
//  iPOS
//
//  Created by Apple iMac on 06/07/2018.
//  Copyright © 2018 BBC. All rights reserved.
//

import Foundation
import ObjectMapper

class GetRedemptionRulesRequest: Mappable{
    var storeId: Int = Int(settings.StoreId)!
    var cashRegister: Int = Int(settings.CashRegister)!
    var barcode: String = ""
    var points: Int = 0
    var usedPoints: Int?
    
    func mapping(map: Map) {
        storeId <- map["StoreId"]
        cashRegister <- map["CashRegister"]
        barcode <- map["Barcode"]
        points <- map["Points"]
        usedPoints <- map["UsedPoints"]
    }
    
    required init?(map: Map) {
    }
    
    init() {
    }
    
    init(barcode: String, points: Int) {
        self.barcode = barcode
        self.points = points
    }
    
    init(barcode: String, points: Int, usedPoints: Int?) {
        self.barcode = barcode
        self.points = points
        self.usedPoints = usedPoints
    }
}
