|
|
@ -9,6 +9,7 @@ import com.gmeremit.online.gmeremittance_native.recipientV3.model.recipientadded |
|
|
|
import com.gmeremit.online.gmeremittance_native.recipientV3.model.recipientaddeditV3.dynamicvalidation.PaymentBankModel; |
|
|
|
import com.gmeremit.online.gmeremittance_native.recipientV3.model.recipientaddeditV3.dynamicvalidation.PayoutProvincesModel; |
|
|
|
import com.gmeremit.online.gmeremittance_native.sendmoneyV2.model.payoutmode.BankBranchDTO; |
|
|
|
import com.gmeremit.online.gmeremittance_native.utils.Utils; |
|
|
|
import com.google.gson.annotations.Expose; |
|
|
|
import com.google.gson.annotations.SerializedName; |
|
|
|
|
|
|
@ -581,4 +582,83 @@ public class ReceiverInfoV3Model implements Parcelable { |
|
|
|
if(this.lastName!=null&&this.lastName.length()>0) |
|
|
|
this.lastName=lastName.toUpperCase(); |
|
|
|
} |
|
|
|
|
|
|
|
public ReceiverInfoV3Model(String firstName, String middleName, String lastName, String localFirstName, String localMiddleName, String localLastName, String fullName, String localFullName, PaymentMethodV3Model paymentMethod, AgentV3Model agent, String receiverId, String country, String countryId, String countryCode, String address, String state, String stateId, String city, String email, String mobile, String relationship, String relationshipId, String district, String districtId, String purposeOfRemit, String purposeOfRemitId, String idType, String idNumber, String payoutPartner, String nativeCountry, String nativeCountryId, String nativeCountryCode, String isPartnerChanged) { |
|
|
|
this.firstName = firstName; |
|
|
|
this.middleName = middleName; |
|
|
|
this.lastName = lastName; |
|
|
|
this.localFirstName = localFirstName; |
|
|
|
this.localMiddleName = localMiddleName; |
|
|
|
this.localLastName = localLastName; |
|
|
|
this.fullName = fullName; |
|
|
|
this.localFullName = localFullName; |
|
|
|
this.paymentMethod = paymentMethod; |
|
|
|
this.agent = agent; |
|
|
|
this.receiverId = receiverId; |
|
|
|
this.country = country; |
|
|
|
this.countryId = countryId; |
|
|
|
this.countryCode = countryCode; |
|
|
|
this.address = address; |
|
|
|
this.state = state; |
|
|
|
this.stateId = stateId; |
|
|
|
this.city = city; |
|
|
|
this.email = email; |
|
|
|
this.mobile = mobile; |
|
|
|
this.relationship = relationship; |
|
|
|
this.relationshipId = relationshipId; |
|
|
|
this.district = district; |
|
|
|
this.districtId = districtId; |
|
|
|
this.purposeOfRemit = purposeOfRemit; |
|
|
|
this.purposeOfRemitId = purposeOfRemitId; |
|
|
|
this.idType = idType; |
|
|
|
this.idNumber = idNumber; |
|
|
|
this.payoutPartner = payoutPartner; |
|
|
|
this.nativeCountry = nativeCountry; |
|
|
|
this.nativeCountryId = nativeCountryId; |
|
|
|
this.nativeCountryCode = nativeCountryCode; |
|
|
|
this.isPartnerChanged = isPartnerChanged; |
|
|
|
} |
|
|
|
|
|
|
|
public ReceiverInfoV3Model formatToAllFieldsToUpperCase() { |
|
|
|
return new ReceiverInfoV3Model( |
|
|
|
Utils.formatToUpperCaseSafely(this.firstName), |
|
|
|
Utils.formatToUpperCaseSafely(this.middleName), |
|
|
|
Utils.formatToUpperCaseSafely(this.lastName), |
|
|
|
|
|
|
|
Utils.formatToUpperCaseSafely(this.localFirstName), |
|
|
|
Utils.formatToUpperCaseSafely(this.localMiddleName), |
|
|
|
Utils.formatToUpperCaseSafely(this.localLastName), |
|
|
|
|
|
|
|
Utils.formatToUpperCaseSafely(this.fullName), |
|
|
|
Utils.formatToUpperCaseSafely(this.localFullName), |
|
|
|
this.paymentMethod.formatToAllFieldsToUpperCase(), |
|
|
|
this.agent.formatToAllFieldsToUpperCase(), |
|
|
|
Utils.formatToUpperCaseSafely(this.receiverId), |
|
|
|
Utils.formatToUpperCaseSafely(this.country), |
|
|
|
this.countryId, |
|
|
|
this.countryCode, |
|
|
|
Utils.formatToUpperCaseSafely(this.address), |
|
|
|
Utils.formatToUpperCaseSafely(this.state), |
|
|
|
this.stateId, |
|
|
|
Utils.formatToUpperCaseSafely(this.city), |
|
|
|
|
|
|
|
Utils.formatToUpperCaseSafely(this.email), |
|
|
|
Utils.formatToUpperCaseSafely(this.mobile), |
|
|
|
Utils.formatToUpperCaseSafely(this.relationship), |
|
|
|
this.relationshipId, |
|
|
|
Utils.formatToUpperCaseSafely(this.district), |
|
|
|
this.districtId, |
|
|
|
Utils.formatToUpperCaseSafely(this.purposeOfRemit), |
|
|
|
this.purposeOfRemitId, |
|
|
|
Utils.formatToUpperCaseSafely(this.idType), |
|
|
|
Utils.formatToUpperCaseSafely(this.idNumber), |
|
|
|
Utils.formatToUpperCaseSafely(this.payoutPartner), |
|
|
|
Utils.formatToUpperCaseSafely(this.nativeCountry), |
|
|
|
this.nativeCountryId, |
|
|
|
this.nativeCountryCode, |
|
|
|
this.isPartnerChanged |
|
|
|
|
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |