From 0792a7567d4e8a7debd8d3a37ff02668e8e783b7 Mon Sep 17 00:00:00 2001 From: Bradley Marques Date: Wed, 5 Sep 2018 15:07:21 +0200 Subject: [PATCH] Fix South Africa documentation (#1357) * Moves gs * Fixes doc/south_africa.md --- doc/company.md | 1 - doc/finance.md | 3 ++- doc/south_africa.md | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/doc/company.md b/doc/company.md index ad5e0c0d00..dce4e982ba 100644 --- a/doc/company.md +++ b/doc/company.md @@ -56,5 +56,4 @@ Faker::Company.south_african_pty_ltd_registration_number #=> "5301/714689/07" Faker::Company.south_african_close_corporation_registration_number #=> "CK74/7585/23" Faker::Company.south_african_listed_company_registration_number #=> "7039/3135/06" Faker::Company.south_african_trust_registration_number #=> "IT38/6489900" -Faker::Company.south_african_vat_number #=> "ZA79494416181" ``` diff --git a/doc/finance.md b/doc/finance.md index ca0b3ad191..c04d7981d6 100644 --- a/doc/finance.md +++ b/doc/finance.md @@ -9,4 +9,5 @@ Faker::Finance.credit_card(:mastercard, :visa) #=> "4448-8934-1277-7195" # Random vat_number Faker::Finance.vat_number #=> "BR38.395.329/2471-83" Faker::Finance.vat_number('DE') #=> "DE593306671" -``` \ No newline at end of file +Faker::Finance.vat_number('ZA') #=> "ZA79494416181" +``` diff --git a/doc/south_africa.md b/doc/south_africa.md index 19f56d3f60..6a9b196858 100644 --- a/doc/south_africa.md +++ b/doc/south_africa.md @@ -7,23 +7,25 @@ numbers. Delegates as needed to `Faker::IdNumber`, `Faker::PhoneNumber` and `Faker::Company` ```ruby -# Generate a valid South African ID Number +# Generate a valid South African ID Number: Faker::SouthAfrica.id_number #=> "6110311856083" # or Faker::SouthAfrica.valid_id_number #=> "6110311856083" -# Generate an invalid South African ID Number +# Generate an invalid South African ID Number: Faker::SouthAfrica.invalid_id_number #=> "7018356904081" -# Generate phone numbers +# Generate phone numbers: Faker::SouthAfrica.phone_number #=> "010 788 5009" Faker::SouthAfrica.cell_phone #=> "082 946 7470" -# Generate South African company registration numbers: +# Generate company registration numbers: Faker::SouthAfrica.pty_ltd_registration_number #=> "5301/714689/07" Faker::SouthAfrica.close_corporation_registration_number #=> "CK74/7585/23" Faker::SouthAfrica.listed_company_registration_number #=> "7039/3135/06" Faker::SouthAfrica.trust_registration_number #=> "IT38/6489900" + +# Generate VAT number: Faker::SouthAfrica.vat_number #=> "ZA79494416181" ```