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.
 
 
 
 

61 lines
1.2 KiB

//
// TransactionModel.swift
// GMERemittance
//
// Created by gme_2 on 28/09/2018.
// Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
//
import Foundation
import ObjectMapper
class TransactionModelContainer: Mappable {
var errorCode: String?
var message: String?
var id: String?
var data: [TransactionModel]?
required init?(map: Map) {
}
func mapping(map: Map) {
errorCode <- map["ErrorCode"]
message <- map["Msg"]
id <- map["Id"]
data <- map["Data"]
}
}
class TransactionModel: Mappable {
var user: String?
var transactionId: String?
var controlNumber: String?
var pAmt: String?
var pCurrency: String?
var cCurrency: String?
var cAmt: String?
var payStatus: String?
var payOutMode: String?
var sendDate: String?
var paidDate: String?
required init?(map: Map) {
}
func mapping(map: Map) {
user <- map["User"]
transactionId <- map["TranId"]
controlNumber <- map["ControlNo"]
pAmt <- map["PayoutAmt"]
pCurrency <- map["PCurr"]
cAmt <- map["CollAmt"]
cCurrency <- map["CollCurr"]
payStatus <- map["PayStatus"]
payOutMode <- map["PayoutMode"]
sendDate <- map["SendDate"]
paidDate <- map["PaidDate"]
}
}