From 75d344eab9255013cd75a33c98ef65b910269a38 Mon Sep 17 00:00:00 2001 From: InKwon James Kim Date: Mon, 10 Jun 2019 18:33:25 +0900 Subject: [PATCH] add Estimated earning points at SendMoneyVerification --- .../Model/SendMoneyExchangeRate.swift | 2 +- GMERemittance/Model/SendMoneyReciept.swift | 3 +- .../Model/SendMoneySubmitResponse.swift | 2 + .../View/BiometricAuthentication.storyboard | 5 +- .../SendMoneyExchangeRateViewController.swift | 59 ++++++++++--------- .../SendMoneyVerificationViewController.swift | 15 ++++- bn.lproj/Localizable.strings | 3 + en.lproj/Localizable.strings | 3 + id.lproj/Localizable.strings | 3 + km.lproj/Localizable.strings | 4 ++ ko.lproj/Localizable.strings | 4 ++ mn.lproj/Localizable.strings | 4 ++ my-MM.lproj/Localizable.strings | 3 + my.lproj/Localizable.strings | 4 ++ ne.lproj/Localizable.strings | 4 ++ ru-RU.lproj/Localizable.strings | 3 + si.lproj/Localizable.strings | 4 ++ th.lproj/Localizable.strings | 3 + uz.lproj/Localizable.strings | 4 ++ vi-VN.lproj/Localizable.strings | 3 + 20 files changed, 99 insertions(+), 36 deletions(-) diff --git a/GMERemittance/Model/SendMoneyExchangeRate.swift b/GMERemittance/Model/SendMoneyExchangeRate.swift index 1ff8d98b..12e96490 100644 --- a/GMERemittance/Model/SendMoneyExchangeRate.swift +++ b/GMERemittance/Model/SendMoneyExchangeRate.swift @@ -61,7 +61,7 @@ class SendMoneyExchangeRateModel: Mappable { schemeId != "", let name = couponName, let type = couponType, - let value = discountValue else { + let value = discountValue?.likeCommaMoney() else { return "0" } diff --git a/GMERemittance/Model/SendMoneyReciept.swift b/GMERemittance/Model/SendMoneyReciept.swift index 43c27132..7c8e5c81 100644 --- a/GMERemittance/Model/SendMoneyReciept.swift +++ b/GMERemittance/Model/SendMoneyReciept.swift @@ -76,11 +76,10 @@ class SendMoneyReciept: Mappable { let name = couponName, name != "", let type = discountType, - let value = discountValue else { + let value = discountValue?.likeCommaMoney() else { return "N/A" } - if type == "1", let percent = discountPercent { return "\(name) \(percent)% (-\(value) KRW)" } diff --git a/GMERemittance/Model/SendMoneySubmitResponse.swift b/GMERemittance/Model/SendMoneySubmitResponse.swift index b0e7544a..07292163 100644 --- a/GMERemittance/Model/SendMoneySubmitResponse.swift +++ b/GMERemittance/Model/SendMoneySubmitResponse.swift @@ -16,6 +16,7 @@ class SendMoneySubmitModelContainer: Mappable { var errorCode: String? var message: String? var id: String? + var extra2: String? var data: SendMoneySubmitModel? required init?(map: Map) { @@ -27,6 +28,7 @@ class SendMoneySubmitModelContainer: Mappable { id <- map["Id"] message <- map["Msg"] data <- map["Data"] + extra2 <- map["Extra2"] } } diff --git a/GMERemittance/Module/BiometricAuthModules/BiometricAuthentication/User Interface/View/BiometricAuthentication.storyboard b/GMERemittance/Module/BiometricAuthModules/BiometricAuthentication/User Interface/View/BiometricAuthentication.storyboard index 17518787..eda64ea9 100644 --- a/GMERemittance/Module/BiometricAuthModules/BiometricAuthentication/User Interface/View/BiometricAuthentication.storyboard +++ b/GMERemittance/Module/BiometricAuthModules/BiometricAuthentication/User Interface/View/BiometricAuthentication.storyboard @@ -24,7 +24,7 @@