InKwon James Kim
5 years ago
27 changed files with 322 additions and 187 deletions
-
28GME Remit.xcodeproj/project.pbxproj
-
3GME Remit/Models/Request/SendMoneyAccountValidationRequestModel.swift
-
3GME Remit/Models/Response/AccountEx.swift
-
7GME Remit/Models/Response/ReciepientEx.swift
-
29GME Remit/Models/Response/ResponseContainerWithArray.swift
-
2GME Remit/Modules/AutoDebitModules/AutoDebit/Application Logic/Service/AutoDebitService.swift
-
15GME Remit/Modules/RecipientModules/AddReciepient/User Interface/Presenter/AddReciepientPresenter.swift
-
5GME Remit/Modules/RecipientModules/AddReciepient/User Interface/View/AddReciepientViewController.swift
-
42GME Remit/Modules/RecipientModules/EditReciepient/User Interface/Presenter/EditReciepientPresenter.swift
-
3GME Remit/Modules/RecipientModules/EditReciepient/User Interface/Presenter/EditRecipientRecipientViewModel.swift
-
8GME Remit/Modules/RecipientModules/EditReciepient/User Interface/View/EditReciepientViewController.swift
-
28GME Remit/Modules/RecipientModules/Recipients/Application Logic/Interactor/RecipientsInteractor.swift
-
2GME Remit/Modules/RecipientModules/Recipients/Application Logic/Model/Account/AccountModel.swift
-
8GME Remit/Modules/RecipientModules/Recipients/Application Logic/Model/FetchRecipientsModel.swift
-
132GME Remit/Modules/RecipientModules/Recipients/Application Logic/Model/Recipient/Recipient.swift
-
27GME Remit/Modules/RecipientModules/Recipients/Application Logic/Model/Recipient/RecipientModel.swift
-
2GME Remit/Modules/RecipientModules/Recipients/Application Logic/Service/RecipientsService.swift
-
23GME Remit/Modules/RecipientModules/Recipients/User Interface/View/Cell/RecipientCell.swift
-
106GME Remit/Modules/RecipientModules/Recipients/User Interface/View/Recipients.storyboard
-
8GME Remit/Modules/SendMoneyModules/ResendExchange/User Interface/View/ResendExchangeViewController.swift
-
2GME Remit/Modules/SendMoneyModules/SendMoneyCode/Application Logic/Interactor/SendMoneyCodeInteractor.swift
-
2GME Remit/Modules/SendMoneyModules/SendMoneyExchangeRate/User Interface/View/SendMoneyExchangeRateViewController.swift
-
2GME Remit/Modules/SendMoneyModules/SendMoneyPaymentMode/Application Logic/Interactor/SendMoneyPaymentModeInteractor.swift
-
5GME Remit/Modules/SendMoneyModules/SendMoneyPaymentMode/User Interface/Presenter/SendMoneyPaymentModePresenter.swift
-
5GME Remit/Modules/SendMoneyModules/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift
-
8GME Remit/Modules/SendMoneyModules/SendMoneyVerification/Application Logic/Interactor/SendMoneyVerificationInteractor.swift
-
4GME Remit/Modules/SendMoneyModules/SendMoneyVerification/User Interface/View/SendMoneyVerificationViewController.swift
@ -1,29 +0,0 @@ |
|||
// |
|||
// ResponseContainer.swift |
|||
// GME Remit |
|||
// |
|||
// Created by InKwon James Kim on 16/08/2019. |
|||
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import ObjectMapper |
|||
|
|||
struct ResponseContainerWithArray: Mappable { |
|||
var errorCode: String? |
|||
var message: String? |
|||
var id: String? |
|||
var extra: String? |
|||
var extra2: String? |
|||
var data: [Mappable]? |
|||
|
|||
init?(map: Map) {} |
|||
|
|||
mutating func mapping(map: Map) { |
|||
errorCode <- map["ErrorCode"] |
|||
message <- map["Msg"] |
|||
id <- map["Id"] |
|||
extra <- map["Extra"] |
|||
extra2 <- map["Extra2"] |
|||
data <- map["Data"] |
|||
} |
|||
} |
@ -0,0 +1,132 @@ |
|||
// |
|||
// RecipientModel.swift |
|||
// GME Remit |
|||
// |
|||
// Created by InKwon James Kim on 16/08/2019. |
|||
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import ObjectMapper |
|||
|
|||
struct Recipient: Mappable { |
|||
var firstName: String? |
|||
var middleName: String? |
|||
var lastName1: String? |
|||
var lastName2: String? |
|||
var localFirstName: String? |
|||
var localMiddleName: String? |
|||
var localLastName1: String? |
|||
var localLastName2: String? |
|||
var id: String? |
|||
var name: String? |
|||
var localizedName: String? |
|||
var paymentMethod: PaymentMethodModel? |
|||
var agent: AgentModel? |
|||
var receiverID: String? |
|||
var membershipID: String? |
|||
var country: String? |
|||
var countryCode: String? |
|||
var countryID: String? |
|||
var address: String? |
|||
var state: String? |
|||
var stateID: String? |
|||
var zipCode: String? |
|||
var city: String? |
|||
var email: String? |
|||
var homePhone: String? |
|||
var workPhone: String? |
|||
var mobile: String? |
|||
var relationship: String? |
|||
var relationshipID: String? |
|||
var district: String? |
|||
var districtID: String? |
|||
var purposeOfRemit: String? |
|||
var purposeOfRemitID: String? |
|||
var fullName: String? |
|||
var idType: String? |
|||
var idNumber: String? |
|||
|
|||
init?(map: Map) {} |
|||
|
|||
init() {} |
|||
|
|||
mutating func mapping(map: Map) { |
|||
firstName <- map["firstName"] |
|||
middleName <- map["middleName"] |
|||
lastName1 <- map["lastName1"] |
|||
lastName2 <- map["lastName2"] |
|||
localFirstName <- map["localFirstName"] |
|||
localMiddleName <- map["localMiddleName"] |
|||
localLastName1 <- map["localLastName1"] |
|||
localLastName2 <- map["localLastName2"] |
|||
id <- map["id"] |
|||
name <- map["name"] |
|||
localizedName <- map["localizedName"] |
|||
paymentMethod <- map["paymentMethod"] |
|||
agent <- map["agent"] |
|||
receiverID <- map["receiverId"] |
|||
membershipID <- map["membershipId"] |
|||
country <- map["country"] |
|||
address <- map["address"] |
|||
state <- map["state"] |
|||
zipCode <- map["zipCode"] |
|||
city <- map["city"] |
|||
email <- map["email"] |
|||
homePhone <- map["homePhone"] |
|||
workPhone <- map["workPhone"] |
|||
mobile <- map["mobile"] |
|||
relationship <- map["relationship"] |
|||
district <- map["district"] |
|||
purposeOfRemit <- map["purposeOfRemit"] |
|||
fullName <- map["fullName"] |
|||
idType <- map["idType"] |
|||
idNumber <- map["idNumber"] |
|||
stateID <- map["stateId"] |
|||
countryCode <- map["countryCode"] |
|||
countryID <- map["countryId"] |
|||
relationshipID <- map["relationshipId"] |
|||
districtID <- map["districtId"] |
|||
purposeOfRemitID <- map["purposeOfRemitId"] |
|||
} |
|||
|
|||
func serialize() -> [String : String] { |
|||
return [ |
|||
"firstName": firstName ?? "", |
|||
"middleName": middleName ?? "", |
|||
"lastName1": lastName1 ?? "", |
|||
"lastName2": lastName2 ?? "", |
|||
"localFirstName": localFirstName ?? "", |
|||
"localMiddleName": localMiddleName ?? "", |
|||
"localLastName1": localLastName1 ?? "", |
|||
"localLastName2": localLastName2 ?? "", |
|||
"id": id ?? "", |
|||
"name": name ?? "", |
|||
"localizedName": localizedName ?? "", |
|||
// "paymentMethod": paymentMethod ?? "", |
|||
// "agent": agent ?? "", |
|||
"receiverId": receiverID ?? "", |
|||
"membershipId": membershipID ?? "", |
|||
"country": country ?? "", |
|||
"address": address ?? "", |
|||
"state": state ?? "", |
|||
"zipCode": zipCode ?? "", |
|||
"city": city ?? "", |
|||
"email": email ?? "", |
|||
"homePhone": homePhone ?? "", |
|||
"workPhone": workPhone ?? "", |
|||
"mobile": mobile ?? "", |
|||
"relationship": relationship ?? "", |
|||
"district": district ?? "", |
|||
"purposeOfRemit": purposeOfRemit ?? "", |
|||
"fullName": fullName ?? "", |
|||
"idType": idType ?? "", |
|||
"idNumber": idNumber ?? "", |
|||
"stateId": stateID ?? "", |
|||
"countryCode": countryCode ?? "", |
|||
"countryId": countryID ?? "", |
|||
"relationshipId": relationshipID ?? "", |
|||
"districtId": districtID ?? "", |
|||
"purposeOfRemitId": purposeOfRemitID ?? "", |
|||
] |
|||
} |
|||
} |
@ -1,27 +0,0 @@ |
|||
// |
|||
// RecipientModel.swift |
|||
// GME Remit |
|||
// |
|||
// Created by InKwon James Kim on 16/08/2019. |
|||
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import ObjectMapper |
|||
|
|||
struct RecipientModel: Mappable { |
|||
var id: String? |
|||
var name: String? |
|||
var localizedName: String? |
|||
var paymentMethod: PaymentMethodModel? |
|||
var agent: AgentModel? |
|||
|
|||
init?(map: Map) {} |
|||
|
|||
mutating func mapping(map: Map) { |
|||
id <- map["id"] |
|||
name <- map["name"] |
|||
localizedName <- map["localizedName"] |
|||
paymentMethod <- map["paymentMethod"] |
|||
agent <- map["agent"] |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue