Skip to content

Commit

Permalink
[elixir] Drop Elixir completely
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo committed Aug 10, 2021
1 parent 96da215 commit 0f7b0e1
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 522 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
strategy:
matrix:
node: ["16", "14", "12"]
name: Run Node tests
name: Node.js
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -19,7 +19,7 @@ jobs:
matrix:
# https://www.php.net/supported-versions.php
php: ["7.3", "7.4", "8.0"]
name: Run PHP tests
name: PHP
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -33,7 +33,7 @@ jobs:
strategy:
matrix:
ruby: ["3.0", "2.6", "2.7"]
name: Run Ruby Tests
name: Ruby
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
55 changes: 0 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ Only the latest version of each SDK is considered.
| -------- | ---------- | ---------- | ----------------------- | -------------- |
| PHP ||| ✅ (✅) ||
| Ruby ||| ✅ (✅) ||
| Elixir ||| ✅ (❎) ||
| Node.js ||| ❎ (❎) ||

## API Documentation
Expand Down Expand Up @@ -281,60 +280,6 @@ Razorpay::IFSC::IFSC.find '...'
code = Razorpay::IFSC::IFSC.new '...'; code.get
```

### Elixir

Documentation: [https://hexdocs.pm/ifsc](https://hexdocs.pm/ifsc)

Online validation

```elixir
iex> IFSC.get("KKBK0000261")
{:ok,
%Razorpay.IFSC{
address: "JMD REGENT SQUARE,MEHRAULI GURGAON ROAD,OPPOSITE BRISTOL HOTEL,",
bank: "Kotak Mahindra Bank",
bank_code: "KKBK",
branch: "GURGAON",
city: "GURGAON",
contact: "4131000",
district: "GURGAON",
ifsc: "KKBK0000261",
rtgs: true,
state: "HARYANA"
}}

iex> IFSC.get("foobar")
{:error, :invalid_ifsc}
```

Offline validation

```elixir
iex> IFSC.validate("KKBK0000261")
{:ok,
%Razorpay.IFSC{
address: nil,
bank: "Kotak Mahindra Bank",
bank_code: "KKBK",
branch: nil,
city: nil,
contact: nil,
district: nil,
ifsc: "KKBK0000261",
rtgs: nil,
state: nil
}}

iex> IFSC.validate("foobar")
{:error, :invalid_format}

iex> IFSC.validate("AAAA0000000")
{:error, :invalid_bank_code}

iex(> IFSC.validate("HDFC0000000")
{:error, :invalid_branch_code}
```

### Code Notes

Both the packages ship with a 300kb JSON file, that
Expand Down
4 changes: 0 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,12 @@
"/node_modules/",
"/src/node/",
"/src/ruby/",
"/src/elixir/",
"/tests/ruby/",
"/tests/node/",
"/tests/elixir/",
"/tests/fixture/exvcr/",
"/.npmignore",
"/Gemfile*",
"/package.json",
"/mix.exs",
"/mix.lock",
"/priv/ifsc-data/"
]
},
Expand Down
77 changes: 0 additions & 77 deletions mix.exs

This file was deleted.

36 changes: 0 additions & 36 deletions src/elixir/README.md

This file was deleted.

1 change: 0 additions & 1 deletion src/elixir/config/config.exs

This file was deleted.

11 changes: 0 additions & 11 deletions src/elixir/lib/mix/tasks/copy_json.ex

This file was deleted.

Loading

0 comments on commit 0f7b0e1

Please sign in to comment.