Skip to content

Commit

Permalink
Fix South Africa documentation (#1357)
Browse files Browse the repository at this point in the history
* Moves gs

* Fixes doc/south_africa.md
  • Loading branch information
Bradley Marques authored and vbrazo committed Sep 5, 2018
1 parent 3160293 commit 0792a75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion doc/company.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```
3 changes: 2 additions & 1 deletion doc/finance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```
Faker::Finance.vat_number('ZA') #=> "ZA79494416181"
```
10 changes: 6 additions & 4 deletions doc/south_africa.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

0 comments on commit 0792a75

Please sign in to comment.