Support CVV with leading zeroes

Support CVV with leading zeroes
Trim whitespace from string values
This (NumericOrNull) should be doing the same thing StringOrNull and
IntegerOrNull are doing. The diff is that this one ensures all the
characters in a String are digits - which is what you want for CVV.


On Fri, Aug 15, 2014 at 5:40 AM, Pierre-Alexandre Meyer <
notifications@github.com> wrote:

> In src/main/java/com/ning/billing/recurly/model/RecurlyObject.java:
>
> >
> > +        String value = object.toString().trim();
> > +        return value.matches("[0-9]+") ? value : null;
>
> What's the utility of this check? It seems dangerous to silently ignore
> data stored in Recurly when it's corrupted. Shouldn't we just let the
> client decide what to do?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/killbilling/recurly-java-library/pull/44/files#r16285818>
> .
>



-- 
Eric Simmerman
President | Tempest Strings Enterprises, Inc.
ets@tempeststrings.com
US Tollfree: (888) 568-8585