You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Renuka Srishti (JIRA)" <ji...@apache.org> on 2017/07/08 21:06:01 UTC

[jira] [Updated] (OFBIZ-9358) Integrating google phone number library for validating telecom numbers

     [ https://issues.apache.org/jira/browse/OFBIZ-9358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Renuka Srishti updated OFBIZ-9358:
----------------------------------
    Attachment: OFBIZ-9358.patch

This patch contains following methods:

splitPhoneNumber(String phoneNumber, Delegator delegator):
It accepts a phoneNumber as a string and split the phoneNumber into countryCode, areaCode, and contactNumber. It returns a map which contains countryCode, areaCode, and contactNumber.

isValidPhoneNumber(String phoneNumber, Delegator delegator):
It returns true if parsed number is valid, or the number is either a possible fully-qualified number (containing the area code and country code), or if the number could be a possible local number (with a country code, but missing an area code).

> Integrating google phone number library for validating telecom numbers
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-9358
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9358
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>    Affects Versions: Upcoming Release
>            Reporter: Suraj Khurana
>            Assignee: Renuka Srishti
>         Attachments: OFBIZ-9358.patch
>
>
> As per discussion at 
> https://lists.apache.org/list.html?dev@ofbiz.apache.org:lte=1M:Validating%20telecom%20numbers
> Need to integrate Google telephone number to validate telephone numbers formats of various countries.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)