class Faker::Finance
def vat_number(legacy_country = NOT_GIVEN, country: 'BR')
-
(String)
-
Parameters:
-
country
(String
) -- Two capital letter country code to use for the vat number.
def vat_number(legacy_country = NOT_GIVEN, country: 'BR') warn_for_deprecated_arguments do |keywords| keywords << :country if legacy_country != NOT_GIVEN end numerify(fetch("finance.vat_number.#{country}")) rescue I18n::MissingTranslationData raise ArgumentError, "Could not find vat number for #{country}" end