Faker Elixir (octopus) v1.0.2 FakerElixir.Commerce

Generate fake data for the domain Commerce

Summary

Functions

Return discount code

Return discount code with the number of digits wanted

Return product name

Return a common Stock-keeping unit

Functions

coupon()

Return discount code

Example

iex> FakerElixir.Commerce.coupon
"StellarDeal683"
coupon(nb_digits)

Return discount code with the number of digits wanted

Example

FakerElixir.Commerce.coupon(4)
"PremiumSale5496"
product()

Return product name

Example

FakerElixir.Commerce.product
"Tasty Fresh Skirt"
sku()

Return a common Stock-keeping unit

Example

FakerElixir.Commerce.sku
"3YW9Q3S6"