Faker C++
Loading...
Searching...
No Matches
faker::commerce Namespace Reference

Functions

FAKER_CXX_EXPORT std::string_view department ()
 Returns a random commerce department.
 
FAKER_CXX_EXPORT std::string sku (unsigned length=4)
 Generates a random sku by default only with digits.
 
FAKER_CXX_EXPORT std::string_view productAdjective ()
 Returns a random product adjective.
 
FAKER_CXX_EXPORT std::string_view productMaterial ()
 Returns a random product material.
 
FAKER_CXX_EXPORT std::string_view productName ()
 Returns a random product short name.
 
FAKER_CXX_EXPORT std::string productFullName ()
 Returns a random product full name.
 
FAKER_CXX_EXPORT std::string EAN13 ()
 Returns a random valid ean13 code.
 
FAKER_CXX_EXPORT std::string EAN8 ()
 Returns a random valid ean8 code.
 
FAKER_CXX_EXPORT std::string ISBN13 ()
 Returns a random valid isbn13 code.
 
FAKER_CXX_EXPORT std::string ISBN10 ()
 Returns a random valid ISBN10 code.
 
FAKER_CXX_EXPORT std::string_view paymentType ()
 Returns a random payment type.
 
FAKER_CXX_EXPORT std::string_view paymentProvider ()
 Returns a random payment provider.
 
FAKER_CXX_EXPORT std::string_view productDescription ()
 Returns a random product description.
 
FAKER_CXX_EXPORT std::string_view productCategory ()
 Returns a random product category.
 
FAKER_CXX_EXPORT std::string_view productReview ()
 Returns a random product review.
 
FAKER_CXX_EXPORT std::string_view discountType ()
 Returns a random discount type.
 
FAKER_CXX_EXPORT std::string_view orderStatus ()
 Returns a random order status.
 
FAKER_CXX_EXPORT std::string_view shippingCarrier ()
 Returns a random shipping carrier.
 

Function Documentation

◆ department()

FAKER_CXX_EXPORT std::string_view faker::commerce::department ( )

Returns a random commerce department.

Returns
Commerce department name.
FAKER_CXX_EXPORT std::string_view department()
Returns a random commerce department.

◆ discountType()

FAKER_CXX_EXPORT std::string_view faker::commerce::discountType ( )

Returns a random discount type.

Returns
Discount type.
FAKER_CXX_EXPORT std::string_view discountType()
Returns a random discount type.

◆ EAN13()

FAKER_CXX_EXPORT std::string faker::commerce::EAN13 ( )

Returns a random valid ean13 code.

Returns
EAN13 code.
faker::commerce::EAN13() // "1234567890128"
FAKER_CXX_EXPORT std::string EAN13()
Returns a random valid ean13 code.

◆ EAN8()

FAKER_CXX_EXPORT std::string faker::commerce::EAN8 ( )

Returns a random valid ean8 code.

Returns
EAN8 code.
faker::commerce::EAN8() // "90311017"
FAKER_CXX_EXPORT std::string EAN8()
Returns a random valid ean8 code.

◆ ISBN10()

FAKER_CXX_EXPORT std::string faker::commerce::ISBN10 ( )

Returns a random valid ISBN10 code.

Returns
ISBN10 code.
faker::commerce::ISBN10() // "0200716018"
FAKER_CXX_EXPORT std::string ISBN10()
Returns a random valid ISBN10 code.

◆ ISBN13()

FAKER_CXX_EXPORT std::string faker::commerce::ISBN13 ( )

Returns a random valid isbn13 code.

Returns
ISBN13 code.
faker::commerce::ISBN13() // "9781234567897"
FAKER_CXX_EXPORT std::string ISBN13()
Returns a random valid isbn13 code.

◆ orderStatus()

FAKER_CXX_EXPORT std::string_view faker::commerce::orderStatus ( )

Returns a random order status.

Returns
Order status.
FAKER_CXX_EXPORT std::string_view orderStatus()
Returns a random order status.

◆ paymentProvider()

FAKER_CXX_EXPORT std::string_view faker::commerce::paymentProvider ( )

Returns a random payment provider.

Returns
Payment provider.
FAKER_CXX_EXPORT std::string_view paymentProvider()
Returns a random payment provider.

◆ paymentType()

FAKER_CXX_EXPORT std::string_view faker::commerce::paymentType ( )

Returns a random payment type.

Returns
Payment type.
faker::commerce::paymentType() // "Credit Card"
FAKER_CXX_EXPORT std::string_view paymentType()
Returns a random payment type.

◆ productAdjective()

FAKER_CXX_EXPORT std::string_view faker::commerce::productAdjective ( )

Returns a random product adjective.

Returns
Product adjective.
FAKER_CXX_EXPORT std::string_view productAdjective()
Returns a random product adjective.

◆ productCategory()

FAKER_CXX_EXPORT std::string_view faker::commerce::productCategory ( )

Returns a random product category.

Returns
Product category.
FAKER_CXX_EXPORT std::string_view productCategory()
Returns a random product category.

◆ productDescription()

FAKER_CXX_EXPORT std::string_view faker::commerce::productDescription ( )

Returns a random product description.

Returns
Product description.
faker::commerce::productDescription() // "Elevate your lifestyle with premium quality product."
FAKER_CXX_EXPORT std::string_view productDescription()
Returns a random product description.

◆ productFullName()

FAKER_CXX_EXPORT std::string faker::commerce::productFullName ( )

Returns a random product full name.

Returns
Product full name.
faker::commerce::productFullName() // "Incredible Soft Gloves"
FAKER_CXX_EXPORT std::string productFullName()
Returns a random product full name.

◆ productMaterial()

FAKER_CXX_EXPORT std::string_view faker::commerce::productMaterial ( )

Returns a random product material.

Returns
Product material.
FAKER_CXX_EXPORT std::string_view productMaterial()
Returns a random product material.

◆ productName()

FAKER_CXX_EXPORT std::string_view faker::commerce::productName ( )

Returns a random product short name.

Returns
Product short name.
FAKER_CXX_EXPORT std::string_view productName()
Returns a random product short name.

◆ productReview()

FAKER_CXX_EXPORT std::string_view faker::commerce::productReview ( )

Returns a random product review.

Returns
Product review.
faker::commerce::productReview() // "Unfortunately, it broke shortly after I started using it."
FAKER_CXX_EXPORT std::string_view productReview()
Returns a random product review.

◆ shippingCarrier()

FAKER_CXX_EXPORT std::string_view faker::commerce::shippingCarrier ( )

Returns a random shipping carrier.

Returns
Shipping carrier.
faker::commerce::shippingMethod() // "FedEx"

◆ sku()

FAKER_CXX_EXPORT std::string faker::commerce::sku ( unsigned length = 4)

Generates a random sku by default only with digits.

Parameters
lengthThe length of the sku.
faker::commerce::sku(8) // "10512056"
FAKER_CXX_EXPORT std::string sku(unsigned length=4)
Generates a random sku by default only with digits.
Definition airline.h:9