Skip to content

Commit bbb7188

Browse files
authored
Rollback: generic changes (#239)
1 parent df0bf21 commit bbb7188

File tree

7 files changed

+1
-335
lines changed

7 files changed

+1
-335
lines changed

.github/workflows/ruby.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
ruby-version: ['2.6', '2.7', '3.0']
25+
ruby-version: ['3.0']
2626

2727
steps:
2828
- uses: actions/checkout@v3

documents/generic.md

Lines changed: 0 additions & 150 deletions
This file was deleted.

lib/razorpay.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
require 'razorpay/product'
2727
require 'razorpay/stakeholder'
2828
require 'razorpay/account'
29-
require 'razorpay/generic'
3029

3130
# Base Razorpay module
3231
module Razorpay

lib/razorpay/constants.rb

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,4 @@ module Razorpay
33
BASE_URI = 'https://api.razorpay.com'.freeze
44
TEST_URL = 'https://api.razorpay.com/'.freeze
55
VERSION = '3.2.0'.freeze
6-
ENTITIES_LIST = {
7-
"cards" => "card",
8-
"invoices" => "invoice",
9-
"refunds" => "refund",
10-
"orders" => "order",
11-
"payments" => "payment",
12-
"customers" => "customer",
13-
"plans" => "plan",
14-
"virtual_accounts" => "virtualAccount",
15-
"addons" => "addon",
16-
"subscriptions" => "subscriptions",
17-
"subscription_registrations" => "subscription_registrations",
18-
"transfers" => "transfers",
19-
"payment_links" => "payment_links",
20-
"settlements" => "settlements",
21-
"qr_codes" => "qr_codes",
22-
"items" => "items",
23-
"fund_accounts" => "fund_accounts",
24-
"webhooks" => "webhook",
25-
"payment_methods" => "payment_methods",
26-
"products" => "products",
27-
"tokens" => "tokens",
28-
"iins" => "iins",
29-
"stakeholders" => "stakeholders",
30-
"accounts" => "accounts"
31-
}
326
end

lib/razorpay/generic.rb

Lines changed: 0 additions & 39 deletions
This file was deleted.

lib/razorpay/request.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,5 @@ def raise_error(error, status)
115115
# We got an unknown error, cast it to Error for now
116116
raise Razorpay::Error.new, 'Unknown Error'
117117
end
118-
119-
def doesEntityExist(entity)
120-
if (Razorpay::ENTITIES_LIST.include?(entity))
121-
warn("Warning: The entity already has a specific function. Consider using it instead.")
122-
end
123-
end
124118
end
125119
end

test/razorpay/test_generic.rb

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)