| | |
| | | package com.pollex.pam.web.rest.vm; |
| | | |
| | | import java.util.Optional; |
| | | |
| | | import org.apache.http.util.Asserts; |
| | | import org.springframework.util.Assert; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import com.pollex.pam.domain.Customer; |
| | | |
| | | public class OtpAccount { |
| | | private String account; |
| | | private String indexKey; |
| | |
| | | public void setIndexKey(String indexKey) { |
| | | this.indexKey = indexKey; |
| | | } |
| | | |
| | | public static OtpAccount createOtpAccount(Customer customerAcct, String indexKey) { |
| | | String acct = customerAcct.toAccountString(); |
| | | |
| | | Assert.hasText(acct, "Customer phone or email must not null"); |
| | | |
| | | return new OtpAccount(acct, indexKey); |
| | | } |
| | | } |