You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

44 lines
1.1 KiB

//
// CouponBoxModel.swift
// GME Remit
//
// Created by Jeongbae Kong on 04/12/2019.
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
//
import Foundation
import ObjectMapper
struct CouponBoxModel: Mappable {
var schemeId: String?
var couponType: String?
var couponName: String?
var discountType: String?
var discountValue: String?
var expireDate: String?
var buyDate: String?
init?(map: Map) { }
mutating func mapping(map: Map) {
schemeId <- map["schemeId"]
couponType <- map["couponType"]
couponName <- map["couponName"]
discountType <- map["discountType"]
discountValue <- map["discountValue"]
expireDate <- map["expireDate"]
buyDate <- map["buyDate"]
}
}
extension CouponBoxModel: Equatable {
static func == (lhs: CouponBoxModel, rhs: CouponBoxModel) -> Bool {
return lhs.schemeId == rhs.schemeId &&
lhs.couponType == rhs.couponType &&
lhs.couponName == rhs.couponName &&
lhs.discountType == rhs.discountType &&
lhs.discountValue == rhs.discountValue &&
lhs.expireDate == rhs.expireDate &&
lhs.buyDate == rhs.buyDate
}
}