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.
 
 
 
 

84 lines
2.0 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?
// Inbound
var inboundStatus: String?
var inboundReceivedAmount: String?
var inboundServiceFee: String?
var inboundBankCode: String?
var inboundAccountNo: String?
var inboundBankName: String?
var inboundTranDate: String?
var inboundSenderName: String?
var inboundMobileNo: String?
var inboundControlNo: 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"]
inboundStatus <- map["status"]
inboundReceivedAmount <- map["receivedAmount"]
inboundServiceFee <- map["serviceFee"]
inboundBankCode <- map["bankCode"]
inboundAccountNo <- map["accountNo"]
inboundBankName <- map["bank"]
inboundTranDate <- map["tranDate"]
inboundSenderName <- map["senderName"]
inboundMobileNo <- map["MobileNo"]
inboundControlNo <- map["controlNo"]
}
}