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.
81 lines
1.6 KiB
81 lines
1.6 KiB
//
|
|
// ResendListModel.swift
|
|
// GME Remit
|
|
//
|
|
// Created by gme_2 on 19/03/2019.
|
|
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import ObjectMapper
|
|
|
|
class ResendListModelContainer: Mappable {
|
|
var errorCode: String?
|
|
var message: String?
|
|
var id: String?
|
|
var data: ResendListModel?
|
|
|
|
required init?(map: Map) {
|
|
|
|
}
|
|
|
|
func mapping(map: Map) {
|
|
errorCode <- map["ErrorCode"]
|
|
message <- map["Msg"]
|
|
id <- map["Id"]
|
|
data <- map["Data"]
|
|
}
|
|
}
|
|
|
|
class ResendListModel: Mappable {
|
|
|
|
var account: [Account]?
|
|
var transactions: [ResendTransactionModel]?
|
|
|
|
required init?(map: Map) {}
|
|
|
|
init() {}
|
|
|
|
func mapping(map: Map) {
|
|
account <- map["Accounts"]
|
|
transactions <- map["Transactions"]
|
|
|
|
}
|
|
}
|
|
|
|
class ResendTransactionModel: Mappable {
|
|
var transactionId: String?
|
|
var cCurrency: String?
|
|
var pAmt: String?
|
|
var cAmt: String?
|
|
var pCurrency: String?
|
|
var sendDate: String?
|
|
var paidDate: String?
|
|
var controlNumber: String?
|
|
var recieverName: String?
|
|
|
|
var payStatus: String?
|
|
var payOutMode: String?
|
|
var bankName: String?
|
|
var senderName: String?
|
|
|
|
required init?(map: Map) {}
|
|
|
|
init() {}
|
|
|
|
func mapping(map: Map) {
|
|
|
|
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"]
|
|
recieverName <- map["ReceiverName"]
|
|
bankName <- map["BankName"]
|
|
}
|
|
}
|