Add some credit card factories nested under fake.creditCard:
number: generate a credit card number conforming to the format of the major U.S. credit card providers
- (?)
verificationCode (or something other name): generate a CVV/CSC/etc. conforming to the format of the major U.S. credit card providers
- (?)
expiry generate a reasonable credit card expiry date in the MM/YYYY string format
Are these last two useful? Either way, I'd propose to nest the CC number method under fake.creditCard.number() for future extensibility.
Add some credit card factories nested under
fake.creditCard:number: generate a credit card number conforming to the format of the major U.S. credit card providersverificationCode(or something other name): generate a CVV/CSC/etc. conforming to the format of the major U.S. credit card providersexpirygenerate a reasonable credit card expiry date in the MM/YYYY string formatAre these last two useful? Either way, I'd propose to nest the CC number method under
fake.creditCard.number()for future extensibility.