Browse Source

Merge branch 'developer'

pull/1/head
InKwon James Kim 5 years ago
parent
commit
1faedd9069
  1. 4
      GMERemittance/Info.plist
  2. 3
      GMERemittance/Model/SendMoneyAccountValidationRequestModel.swift
  3. 8
      GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/Presenter/SendMoneyPaymentModePresenter.swift
  4. 4
      GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentMode.storyboard
  5. 5
      GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift

4
GMERemittance/Info.plist

@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.23</string>
<string>1.0.24</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
@ -30,7 +30,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<string>0</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>

3
GMERemittance/Model/SendMoneyAccountValidationRequestModel.swift

@ -37,4 +37,7 @@ class SendMoneyAccountValidationRequestModel {
var bankCode: String?
var payoutPartner: String?
var processId :String?
var BankId: String?
var ReceiverCountryId: String?
var deliveryMethodId: String?
}

8
GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/Presenter/SendMoneyPaymentModePresenter.swift

@ -29,7 +29,7 @@ extension SendMoneyPaymentModePresenter: SendMoneyPaymentModeModuleInterface {
}
func validate(model: SendMoneyAccountValidationRequestModel) {
view?.showLoading()
let params: [String: String] =
[
"IdType" : model.idType ?? "",
@ -45,7 +45,10 @@ extension SendMoneyPaymentModePresenter: SendMoneyPaymentModeModuleInterface {
"BankCode": model.bankCode ?? "",
"Amount": model.amount ?? "",
"PayoutPartner": model.payoutPartner ?? "",
"ProcessId": model.processId ?? ""
"ProcessId": model.processId ?? "",
"BankId": model.BankId ?? "",
"ReceiverCountryId": model.ReceiverCountryId ?? "",
"deliveryMethodId": model.deliveryMethodId ?? ""
]
self.interactor?.validateAccountNumber(params: params)
@ -67,6 +70,7 @@ extension SendMoneyPaymentModePresenter: SendMoneyPaymentModeInteractorOutput {
}
func success() {
view?.hideLoading()
self.view?.success()
}
}

4
GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentMode.storyboard

@ -192,11 +192,11 @@
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" translatesAutoresizingMaskIntoConstraints="NO" id="XD6-uC-3cA">
<rect key="frame" x="0.0" y="110" width="355" height="44"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Account Number" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="hUc-L0-iaO">
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="Account Number" textAlignment="natural" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="hUc-L0-iaO">
<rect key="frame" x="0.0" y="0.0" width="355" height="44"/>
<color key="textColor" red="0.29019607843137252" green="0.29019607843137252" blue="0.29019607843137252" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="12"/>
<textInputTraits key="textInputTraits" keyboardType="namePhonePad"/>
<textInputTraits key="textInputTraits" keyboardType="numberPad"/>
</textField>
</subviews>
<constraints>

5
GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift

@ -219,6 +219,11 @@ class SendMoneyPaymentModeViewController: UIViewController {
validationRequest.payoutPartner = self.selectedPayoutMode?.payoutPartner
validationRequest.amount = "10000.0"
validationRequest.processId = ""
validationRequest.BankId = self.selectedBank?.id
validationRequest.ReceiverCountryId = self.recipient?.countryId
validationRequest.deliveryMethodId = self.selectedPayoutMode?.id
//TODO
callingApi = true
self.presenter?.validate(model: validationRequest)
}

Loading…
Cancel
Save