turkish_bin_numbers 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -7
- data/lib/turkish_bin_numbers.rb +5 -0
- data/lib/turkish_bin_numbers/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c03cbf46740e2b2b402806f37ca3f3dd6f44725
|
4
|
+
data.tar.gz: 175de975f7649e4397134bfa1a79ea7aff6c3ed0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88a11bc45d032988c5a68fee3d68922c146b64060bc9ffe8f68644ce02ca951619532d9eaab3b2f003a73c2bcb79f70af854bccf3fce5b80e602efc8ae0a0fae
|
7
|
+
data.tar.gz: bb095630a276c649b8cd16c39c79eaa74fa1939c70c5dd0c345d89bb6102b2b324b976f01d2e3b98f71308d6b2b04b323b624e1bc8c08193acddd20fb3791835
|
data/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# Bin Numbers for Turkish Banks
|
2
2
|
[](http://badge.fury.io/rb/turkish_bin_numbers)
|
3
3
|
|
4
|
-
|
4
|
+
Bin numbers used by Turkish Banks. You can query by bin number and get info (bank name, credit card type, etc.) or you can query by bank and card type and get list of bins.
|
5
5
|
|
6
6
|
## Requirements
|
7
7
|
|
8
|
-
The only
|
8
|
+
The only requirement is a working Ruby installation.
|
9
9
|
|
10
10
|
## Installation
|
11
11
|
|
@@ -26,7 +26,7 @@ or install the gem on terminal.
|
|
26
26
|
|
27
27
|
## Usage
|
28
28
|
|
29
|
-
**Get bin number
|
29
|
+
**Get info by bin number**
|
30
30
|
|
31
31
|
```ruby
|
32
32
|
TurkishBinNumbers.get(418342)
|
@@ -38,11 +38,19 @@ TurkishBinNumbers.get(418342)
|
|
38
38
|
|
39
39
|
```ruby
|
40
40
|
TurkishBinNumbers.bins_of_bank("Ziraat Bankası")
|
41
|
-
# => [454672, 444678, 444676,
|
41
|
+
# => [454672, 444678, 444676, ...]
|
42
42
|
```
|
43
43
|
|
44
44
|
|
45
|
-
**Get
|
45
|
+
**Get bank list**
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
TurkishBinNumbers.banks
|
49
|
+
# => ["ABank", "Akbank", "Aktifbank", ...]
|
50
|
+
```
|
51
|
+
|
52
|
+
|
53
|
+
**Get bin numbers for non-debit credit cards**
|
46
54
|
|
47
55
|
```ruby
|
48
56
|
TurkishBinNumbers.credit_card_bins
|
@@ -50,7 +58,7 @@ TurkishBinNumbers.credit_card_bins
|
|
50
58
|
```
|
51
59
|
|
52
60
|
|
53
|
-
**Get bin numbers
|
61
|
+
**Get bin numbers for debit credit cards**
|
54
62
|
|
55
63
|
```ruby
|
56
64
|
TurkishBinNumbers.debit_card_bins
|
@@ -58,7 +66,7 @@ TurkishBinNumbers.debit_card_bins
|
|
58
66
|
```
|
59
67
|
|
60
68
|
|
61
|
-
**Get card type of bin number**
|
69
|
+
**Get card type of bin number (Visa, MasterCard, American Express, Maestro)**
|
62
70
|
|
63
71
|
```ruby
|
64
72
|
TurkishBinNumbers.detect_card_type(418342)
|
data/lib/turkish_bin_numbers.rb
CHANGED