chicken-sloths / bangazon-api-sprint1

API for a mock Amazon + Etsy platform providing developers access to the company's employee & product data
0 stars 0 forks source link

added a way to randomize payment types for our payment options #126

Closed joechesney closed 6 years ago

joechesney commented 6 years ago

Description

This adds a small function to generate random paymentTypes for each paymentOption.

Number of Fixes

1

Related Ticket(s)

75

Problem to Solve

Faker did not give us a method to generate payment types such as "Visa", "Mastercard".

Expected Behavior

When you run node data/build-db.js, it will give you some nice payment types

Steps to Test Solution

  1. run node data/build-db.js, and look at the json file for paymentOptions and look at the type property for each payment option object.