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.
38 lines
1.2 KiB
38 lines
1.2 KiB
//
|
|
// ProfileChangePhoneNumberService.swift
|
|
// GME Remit
|
|
//
|
|
// Created by Jeongbae Kong on 21/01/2020.
|
|
//Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
class ChangePersonalInformationService: ChangePersonalInformationServiceType {
|
|
func verifyPasswordForChangePersonalInformation(
|
|
model: ChangePersonalInformationModel,
|
|
target: String,
|
|
success: @escaping ((ChangePersonalInformationModel?) -> Void),
|
|
failure: @escaping ((Error) -> Void)
|
|
) {
|
|
APIRouter.profileCheckPassword(model: model, target: target).json(success: success, failure: failure)
|
|
}
|
|
|
|
func profileValidateOTP(
|
|
OTPPassword: String,
|
|
success: @escaping (() -> Void),
|
|
failure: @escaping ((Error) -> Void)
|
|
) {
|
|
APIRouter.profileValidationOTP(OTPPassword: OTPPassword).json(success: success, failure: failure)
|
|
}
|
|
|
|
func profileChangeInformation(
|
|
newValue: String,
|
|
target: String,
|
|
success: @escaping ((ChangePersonalInformationModel?) -> Void),
|
|
failure: @escaping ((Error) -> Void)
|
|
) {
|
|
APIRouter.profileChangeInformation(newValue: newValue, target: target)
|
|
.json(success: success, failure: failure)
|
|
}
|
|
}
|