razorpay 3.0.0 → 3.1.0

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.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/.github/pull_request_template.md +8 -0
  3. data/.github/workflows/ci.yml +79 -0
  4. data/CHANGELOG.md +21 -0
  5. data/README.md +5 -1
  6. data/documents/Invoice.md +11 -3
  7. data/documents/account.md +449 -0
  8. data/documents/addon.md +23 -1
  9. data/documents/card.md +73 -29
  10. data/documents/customer.md +2 -0
  11. data/documents/emandate.md +20 -12
  12. data/documents/fund.md +19 -17
  13. data/documents/items.md +65 -41
  14. data/documents/order.md +51 -0
  15. data/documents/papernach.md +40 -20
  16. data/documents/payment.md +247 -14
  17. data/documents/paymentLink.md +37 -19
  18. data/documents/plan.md +3 -3
  19. data/documents/productConfiguration.md +444 -0
  20. data/documents/qrcode.md +17 -19
  21. data/documents/refund.md +11 -10
  22. data/documents/registerEmandate.md +25 -18
  23. data/documents/registerNach.md +49 -57
  24. data/documents/settlement.md +1 -0
  25. data/documents/stakeholder.md +334 -0
  26. data/documents/subscriptions.md +3 -1
  27. data/documents/tokens.md +201 -2
  28. data/documents/transfers.md +292 -195
  29. data/documents/upi.md +25 -28
  30. data/documents/virtualAccount.md +18 -13
  31. data/documents/webhook.md +224 -0
  32. data/lib/razorpay/account.rb +39 -0
  33. data/lib/razorpay/addon.rb +5 -1
  34. data/lib/razorpay/card.rb +4 -0
  35. data/lib/razorpay/constants.rb +2 -2
  36. data/lib/razorpay/iin.rb +15 -0
  37. data/lib/razorpay/order.rb +1 -1
  38. data/lib/razorpay/payment.rb +8 -0
  39. data/lib/razorpay/payment_method.rb +17 -0
  40. data/lib/razorpay/product.rb +37 -0
  41. data/lib/razorpay/request.rb +16 -16
  42. data/lib/razorpay/stakeholder.rb +39 -0
  43. data/lib/razorpay/token.rb +28 -0
  44. data/lib/razorpay/virtual_account.rb +1 -1
  45. data/lib/razorpay/webhook.rb +50 -0
  46. data/lib/razorpay.rb +7 -0
  47. data/razorpay-ruby.gemspec +2 -1
  48. data/test/fixtures/fake_account.json +78 -0
  49. data/test/fixtures/fake_card_reference.json +5 -0
  50. data/test/fixtures/fake_create_upi_payment.json +3 -0
  51. data/test/fixtures/fake_iin_token.json +23 -0
  52. data/test/fixtures/fake_product.json +138 -0
  53. data/test/fixtures/fake_stakeholder.json +29 -0
  54. data/test/fixtures/fake_tokenise_customer.json +40 -0
  55. data/test/fixtures/fake_validate_vpa.json +5 -0
  56. data/test/fixtures/fake_webhook.json +79 -0
  57. data/test/fixtures/fake_webhook_by_account_id.json +22 -0
  58. data/test/fixtures/fetch_tnc.json +11 -0
  59. data/test/fixtures/payment_methods_collection.json +149 -0
  60. data/test/fixtures/stakeholder_collection.json +35 -0
  61. data/test/fixtures/webhook_by_account_collection.json +35 -0
  62. data/test/fixtures/webhook_collection.json +85 -0
  63. data/test/razorpay/test_account.rb +134 -0
  64. data/test/razorpay/test_addon.rb +6 -2
  65. data/test/razorpay/test_card.rb +6 -0
  66. data/test/razorpay/test_customer.rb +8 -8
  67. data/test/razorpay/test_iin.rb +23 -0
  68. data/test/razorpay/test_order.rb +1 -1
  69. data/test/razorpay/test_payment.rb +46 -2
  70. data/test/razorpay/test_product.rb +67 -0
  71. data/test/razorpay/test_settlement.rb +1 -1
  72. data/test/razorpay/test_stakeholder.rb +87 -0
  73. data/test/razorpay/test_token.rb +66 -0
  74. data/test/razorpay/test_transfer.rb +1 -1
  75. data/test/razorpay/test_webhook.rb +132 -0
  76. data/test/test_helper.rb +2 -0
  77. metadata +76 -7
@@ -0,0 +1,87 @@
1
+ require 'test_helper'
2
+
3
+ module Razorpay
4
+ # Tests for Razorpay::Account
5
+ class RazorpayStakeholderonTest < Minitest::Test
6
+ class Stakeholder < Razorpay::Entity; end
7
+
8
+ def setup
9
+ @stakeholder_id = 'sth_00000000000001'
10
+ @account_id = 'acc_00000000000001'
11
+ @email = 'gaurav.kumar@example.com'
12
+ # Any request that ends with stakeholder_id
13
+ stub_get(%r{/v2/accounts\/#{Regexp.quote(@account_id)}/stakeholders\/#{Regexp.quote(@stakeholder_id)}$}, 'fake_stakeholder')
14
+ end
15
+
16
+ def test_stakeholder_should_be_defined
17
+ refute_nil Razorpay::Stakeholder
18
+ end
19
+
20
+ def test_stakeholder_should_be_available
21
+ stakeholder = Razorpay::Stakeholder.fetch(@account_id, @stakeholder_id)
22
+ assert_instance_of Razorpay::Stakeholder, stakeholder, 'Stakeholder not an instance of Entity class'
23
+ assert_equal @stakeholder_id, stakeholder.id, 'Stakeholder IDs do not match'
24
+ assert_equal @email, stakeholder.email, 'Stakeholder email is accessible'
25
+ end
26
+
27
+ def test_stakeholder_should_be_create
28
+
29
+ payload = create_stakeholder_payload()
30
+ stub_post(%r{accounts/#{@account_id}/stakeholders$}, 'fake_stakeholder', payload.to_json)
31
+
32
+ stakeholder = Razorpay::Stakeholder.create(@account_id, payload.to_json)
33
+ assert_instance_of Razorpay::Stakeholder, stakeholder, 'Stakeholder not an instance of Entity class'
34
+ assert_equal @stakeholder_id, stakeholder.id, 'Stakeholder IDs do not match'
35
+ assert_equal @email, stakeholder.email, 'Stakeholder email is accessible'
36
+ end
37
+
38
+ def test_stakeholder_edit
39
+
40
+ payload = create_stakeholder_payload()
41
+ stub_patch(%r{accounts/#{@account_id}/stakeholders/#{@stakeholder_id}$}, 'fake_stakeholder', payload.to_json)
42
+
43
+ stakeholder = Razorpay::Stakeholder.edit(@account_id, @stakeholder_id, payload.to_json)
44
+ assert_instance_of Razorpay::Stakeholder, stakeholder, 'Stakeholder not an instance of Entity class'
45
+ assert_equal @stakeholder_id, stakeholder.id, 'Stakeholder IDs do not match'
46
+ assert_equal @email, stakeholder.email, 'Stakeholder email is accessible'
47
+ end
48
+
49
+ def test_fetching_all_stakeholder
50
+ stub_get(%r{accounts/#{@account_id}/stakeholders$}, 'stakeholder_collection')
51
+ orders = Razorpay::Stakeholder.all(@account_id)
52
+ assert_instance_of Razorpay::Collection, orders, 'Orders should be an array'
53
+ assert !orders.items.empty?, 'orders should be more than one'
54
+ end
55
+
56
+ def create_stakeholder_payload
57
+ return {
58
+ "percentage_ownership": 10,
59
+ "name": "Gaurav Kumar",
60
+ "email": "gaurav.kumar@example.com",
61
+ "relationship": {
62
+ "director": true,
63
+ "executive": false
64
+ },
65
+ "phone": {
66
+ "primary": "9000090000",
67
+ "secondary": "9000090000"
68
+ },
69
+ "addresses": {
70
+ "residential": {
71
+ "street": "506, Koramangala 1st block",
72
+ "city": "Bengaluru",
73
+ "state": "Karnataka",
74
+ "postal_code": "560034",
75
+ "country": "IN"
76
+ }
77
+ },
78
+ "kyc": {
79
+ "pan": "AVOPB1111K"
80
+ },
81
+ "notes": {
82
+ "random_key_by_partner": "random_value"
83
+ }
84
+ }
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,66 @@
1
+ require 'test_helper'
2
+
3
+ module Razorpay
4
+ # Tests for Razorpay::Token
5
+ class RazorpayTokenTest < Minitest::Test
6
+ class Token < Razorpay::Entity; end
7
+
8
+ def setup
9
+ @token_id = 'token_00000000000001'
10
+ @customer_id = 'cust_1Aa00000000001'
11
+ @method = 'card'
12
+ end
13
+
14
+ def test_token_should_be_defined
15
+ refute_nil Razorpay::Token
16
+ end
17
+
18
+ def test_token_should_be_available
19
+ payload = {
20
+ "id": @token_id
21
+ }
22
+ stub_post(%r{/tokens/fetch$}, 'fake_tokenise_customer', payload.to_json)
23
+ token = Razorpay::Token.fetch(payload.to_json)
24
+ assert_instance_of Razorpay::Token, token, 'token not an instance of Token class'
25
+ assert_equal @token_id, token.id, 'Token IDs do not match'
26
+ end
27
+
28
+ def test_token_should_be_delete
29
+ payload = {
30
+ "id": @token_id
31
+ }
32
+ stub_post(%r{/tokens/delete$}, 'empty', payload.to_json)
33
+ token = Razorpay::Token.delete(payload.to_json)
34
+ assert_instance_of Razorpay::Entity, token, 'token not an instance of Entity class'
35
+ end
36
+
37
+ def test_token_create
38
+
39
+ payload = create_token_payload()
40
+ stub_post(%r{/tokens$}, 'fake_tokenise_customer', payload.to_json)
41
+
42
+ token = Razorpay::Token.create(payload.to_json)
43
+ assert_instance_of Razorpay::Token, token, 'Token not an instance of Token class'
44
+ assert_equal @token_id, token.id, 'Token IDs do not match'
45
+ end
46
+
47
+ def create_token_payload
48
+ return {
49
+ "customer_id": "cust_00000000000002",
50
+ "method": "card",
51
+ "card": {
52
+ "number": "4854000000708430",
53
+ "cvv": "123",
54
+ "expiry_month": "12",
55
+ "expiry_year": "24",
56
+ "name": "Gaurav Kumar"
57
+ },
58
+ "authentication": {
59
+ "provider": "razorpay",
60
+ "provider_reference_id": "pay_000000000000"
61
+ },
62
+ "notes": []
63
+ }
64
+ end
65
+ end
66
+ end
@@ -45,7 +45,7 @@ module Razorpay
45
45
  end
46
46
 
47
47
  def test_transfer_fetch_settlement_details
48
- stub_get("#{BASE_URI}transfers/?expand[]=recipient_settlement", 'transfers_collection')
48
+ stub_get("#{BASE_URI}/v1/transfers/?expand[]=recipient_settlement", 'transfers_collection')
49
49
  transfer = Razorpay::Transfer.fetch_settlements
50
50
  assert_instance_of Razorpay::Collection, transfer , 'Transfer should be an array'
51
51
  refute_empty transfer.items , 'Transfer should be more than one'
@@ -0,0 +1,132 @@
1
+ require 'test_helper'
2
+
3
+ module Razorpay
4
+ # Tests for Razorpay::Webhook
5
+ class RazorpayWebhookonTest < Minitest::Test
6
+ class Webhook < Razorpay::Entity; end
7
+
8
+ def setup
9
+ @webhook_id = 'H000000000000H'
10
+ @account_id = 'acc_00000000000001'
11
+ @alert_email = 'gaurav.kumar@example.com'
12
+ # Any request that ends with webhook_id
13
+ end
14
+
15
+ def test_product_should_be_defined
16
+ refute_nil Razorpay::Webhook
17
+ end
18
+
19
+ def test_webhook_with_account_id_should_be_available
20
+ stub_get(%r{/v2/accounts\/#{Regexp.quote(@account_id)}/webhooks\/#{Regexp.quote(@webhook_id)}$}, 'fake_webhook_by_account_id')
21
+ webhook = Razorpay::Webhook.fetch(@webhook_id, @account_id)
22
+ assert_instance_of Razorpay::Webhook, webhook, 'webhook not an instance of Webhook class'
23
+ assert_equal @webhook_id, webhook.id, 'Webhook IDs do not match'
24
+ assert_equal @alert_email, webhook.alert_email, 'webhook alert_email is accessible'
25
+ end
26
+
27
+ def test_webhook_with_account_id_should_be_create
28
+ payload = create_webhook_payload_by_account()
29
+ stub_post(%r{/v2/accounts/#{@account_id}/webhooks$}, 'fake_webhook_by_account_id', payload.to_json)
30
+
31
+ webhook = Razorpay::Webhook.create(payload.to_json, @account_id)
32
+ assert_instance_of Razorpay::Webhook, webhook, 'Webhook not an instance of Webhook class'
33
+ assert_equal @webhook_id, webhook.id, 'Webhook IDs do not match'
34
+ assert_equal @alert_email, webhook.alert_email, 'webhook alert_email is accessible'
35
+ end
36
+
37
+ def test_webhook_should_be_create
38
+ payload = create_webhook_payload()
39
+ stub_post(%r{/webhooks$}, 'fake_webhook', payload.to_json)
40
+
41
+ webhook = Razorpay::Webhook.create(payload.to_json)
42
+ assert_instance_of Razorpay::Webhook, webhook, 'Webhook not an instance of Webhook class'
43
+ assert_equal @webhook_id, webhook.id, 'Webhook IDs do not match'
44
+ assert_equal @alert_email, webhook.created_by_email, 'webhook alert_email is accessible'
45
+ end
46
+
47
+ def test_webhook_with_account_id_should_be_edit
48
+ payload = edit_webhook_payload_by_account()
49
+ stub_patch(%r{/v2/accounts/#{@account_id}/webhooks/#{@webhook_id}$}, 'fake_webhook_by_account_id', payload.to_json)
50
+
51
+ webhook = Razorpay::Webhook.edit(payload.to_json, @webhook_id, @account_id)
52
+ assert_instance_of Razorpay::Webhook, webhook, 'Webhook not an instance of Webhook class'
53
+ assert_equal @webhook_id, webhook.id, 'Webhook IDs do not match'
54
+ assert_equal @alert_email, webhook.alert_email, 'webhook alert_email is accessible'
55
+ end
56
+
57
+ def test_webhook_should_be_edit
58
+ payload = edit_webhook_payload()
59
+ stub_put(%r{/webhooks/#{@webhook_id}$}, 'fake_webhook', payload.to_json)
60
+
61
+ webhook = Razorpay::Webhook.edit(payload.to_json, @webhook_id)
62
+ assert_instance_of Razorpay::Webhook, webhook, 'Webhook not an instance of Webhook class'
63
+ assert_equal @webhook_id, webhook.id, 'Webhook IDs do not match'
64
+ assert_equal @alert_email, webhook.created_by_email, 'webhook alert_email is accessible'
65
+ end
66
+
67
+ def test_webhook_fetch_webhooks_by_account
68
+ stub_get(%r{/v2/accounts/#{@account_id}/webhooks$}, 'webhook_by_account_collection', {})
69
+
70
+ webhook = Razorpay::Webhook.all({}, @account_id)
71
+ assert_instance_of Razorpay::Collection, webhook, 'Webhook not an instance of Webhook class'
72
+ refute_empty webhook.items , 'Webhook should be more than one'
73
+ end
74
+
75
+ def test_webhook_fetch_webhooks
76
+ stub_get(%r{/webhooks$}, 'webhook_collection')
77
+
78
+ webhook = Razorpay::Webhook.all()
79
+ assert_instance_of Razorpay::Collection, webhook, 'Webhook not an instance of Webhook class'
80
+ refute_empty webhook.items , 'Webhook should be more than one'
81
+ end
82
+
83
+ def create_webhook_payload_by_account
84
+ return {
85
+ "url": "https://google.com",
86
+ "alert_email": "gaurav.kumar@example.com",
87
+ "secret": "12345",
88
+ "events": [
89
+ "payment.authorized",
90
+ "payment.failed",
91
+ "payment.captured",
92
+ "payment.dispute.created",
93
+ "refund.failed",
94
+ "refund.created"
95
+ ]
96
+ }
97
+ end
98
+
99
+ def edit_webhook_payload_by_account
100
+ return {
101
+ "url": "https://google.com",
102
+ "alert_email": "gaurav.kumar@example.com",
103
+ "secret": "12345",
104
+ "events": [
105
+ "payment.authorized"
106
+ ]
107
+ }
108
+ end
109
+
110
+ def create_webhook_payload
111
+ return {
112
+ "url": "https://google.com",
113
+ "alert_email": "gaurav.kumar@example.com",
114
+ "secret": "12345",
115
+ "events": {
116
+ "payment.authorized": "true",
117
+ "refund.created": "true",
118
+ "subscription.charged": "true"
119
+ }
120
+ }
121
+ end
122
+
123
+ def edit_webhook_payload
124
+ return {
125
+ "url": "https://google.com",
126
+ "events": {
127
+ "payment.authorized": "true",
128
+ }
129
+ }
130
+ end
131
+ end
132
+ end
data/test/test_helper.rb CHANGED
@@ -3,8 +3,10 @@ require 'simplecov'
3
3
  require 'minitest/autorun'
4
4
  require 'webmock/minitest'
5
5
  require 'razorpay'
6
+ require 'simplecov-cobertura'
6
7
 
7
8
  Coveralls.wear! if ENV['CI']
9
+ SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
8
10
 
9
11
  def fixture_file(filename)
10
12
  return '' if filename == ''
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: razorpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhay Rana
8
8
  - Harman Singh
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-06-03 00:00:00.000000000 Z
12
+ date: 2023-10-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -26,7 +26,7 @@ dependencies:
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0.14'
28
28
  - !ruby/object:Gem::Dependency
29
- name: coveralls
29
+ name: coveralls_reborn
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
@@ -67,6 +67,20 @@ dependencies:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '12.0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: simplecov-cobertura
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: rubocop
72
86
  requirement: !ruby/object:Gem::Requirement
@@ -105,6 +119,8 @@ extra_rdoc_files: []
105
119
  files:
106
120
  - ".editorconfig"
107
121
  - ".github/dependabot.yml"
122
+ - ".github/pull_request_template.md"
123
+ - ".github/workflows/ci.yml"
108
124
  - ".github/workflows/ruby.yml"
109
125
  - ".gitignore"
110
126
  - ".rubocop.yml"
@@ -115,6 +131,7 @@ files:
115
131
  - README.md
116
132
  - Rakefile
117
133
  - documents/Invoice.md
134
+ - documents/account.md
118
135
  - documents/addon.md
119
136
  - documents/card.md
120
137
  - documents/customer.md
@@ -127,19 +144,23 @@ files:
127
144
  - documents/paymentLink.md
128
145
  - documents/paymentVerification.md
129
146
  - documents/plan.md
147
+ - documents/productConfiguration.md
130
148
  - documents/qrcode.md
131
149
  - documents/refund.md
132
150
  - documents/registerEmandate.md
133
151
  - documents/registerNach.md
134
152
  - documents/settlement.md
153
+ - documents/stakeholder.md
135
154
  - documents/subscriptions.md
136
155
  - documents/tokens.md
137
156
  - documents/transfers.md
138
157
  - documents/upi.md
139
158
  - documents/virtualAccount.md
159
+ - documents/webhook.md
140
160
  - lib/ca-bundle.crt
141
161
  - lib/extensions/httparty/hash_conversions.rb
142
162
  - lib/razorpay.rb
163
+ - lib/razorpay/account.rb
143
164
  - lib/razorpay/addon.rb
144
165
  - lib/razorpay/card.rb
145
166
  - lib/razorpay/collection.rb
@@ -152,21 +173,27 @@ files:
152
173
  - lib/razorpay/errors/razorpay_error.rb
153
174
  - lib/razorpay/errors/server_error.rb
154
175
  - lib/razorpay/fund_account.rb
176
+ - lib/razorpay/iin.rb
155
177
  - lib/razorpay/invoice.rb
156
178
  - lib/razorpay/item.rb
157
179
  - lib/razorpay/order.rb
158
180
  - lib/razorpay/payment.rb
159
181
  - lib/razorpay/payment_link.rb
182
+ - lib/razorpay/payment_method.rb
160
183
  - lib/razorpay/plan.rb
184
+ - lib/razorpay/product.rb
161
185
  - lib/razorpay/qr_code.rb
162
186
  - lib/razorpay/refund.rb
163
187
  - lib/razorpay/request.rb
164
188
  - lib/razorpay/settlement.rb
189
+ - lib/razorpay/stakeholder.rb
165
190
  - lib/razorpay/subscription.rb
166
191
  - lib/razorpay/subscription_registration.rb
192
+ - lib/razorpay/token.rb
167
193
  - lib/razorpay/transfer.rb
168
194
  - lib/razorpay/utility.rb
169
195
  - lib/razorpay/virtual_account.rb
196
+ - lib/razorpay/webhook.rb
170
197
  - razorpay-ruby.gemspec
171
198
  - test/fixtures/addon_collection.json
172
199
  - test/fixtures/bad_request_error.json
@@ -177,14 +204,18 @@ files:
177
204
  - test/fixtures/delete_token.json
178
205
  - test/fixtures/downtimes_collection.json
179
206
  - test/fixtures/empty.json
207
+ - test/fixtures/fake_account.json
180
208
  - test/fixtures/fake_addon.json
181
209
  - test/fixtures/fake_captured_payment.json
182
210
  - test/fixtures/fake_card.json
211
+ - test/fixtures/fake_card_reference.json
212
+ - test/fixtures/fake_create_upi_payment.json
183
213
  - test/fixtures/fake_customer.json
184
214
  - test/fixtures/fake_customer_edited.json
185
215
  - test/fixtures/fake_direct_transfer.json
186
216
  - test/fixtures/fake_downtime.json
187
217
  - test/fixtures/fake_fund_account.json
218
+ - test/fixtures/fake_iin_token.json
188
219
  - test/fixtures/fake_instant_settlement.json
189
220
  - test/fixtures/fake_invoice.json
190
221
  - test/fixtures/fake_item.json
@@ -199,6 +230,7 @@ files:
199
230
  - test/fixtures/fake_payment_link.json
200
231
  - test/fixtures/fake_pending_update.json
201
232
  - test/fixtures/fake_plan.json
233
+ - test/fixtures/fake_product.json
202
234
  - test/fixtures/fake_qrcode.json
203
235
  - test/fixtures/fake_qrcode_close.json
204
236
  - test/fixtures/fake_recurring.json
@@ -206,19 +238,25 @@ files:
206
238
  - test/fixtures/fake_refunded_payment.json
207
239
  - test/fixtures/fake_settlement.json
208
240
  - test/fixtures/fake_settlement_on_demand.json
241
+ - test/fixtures/fake_stakeholder.json
209
242
  - test/fixtures/fake_subscription.json
210
243
  - test/fixtures/fake_subscription_pause.json
211
244
  - test/fixtures/fake_subscription_registration.json
212
245
  - test/fixtures/fake_subscription_resume.json
213
246
  - test/fixtures/fake_token.json
247
+ - test/fixtures/fake_tokenise_customer.json
214
248
  - test/fixtures/fake_transfer.json
215
249
  - test/fixtures/fake_transfer_reverse.json
216
250
  - test/fixtures/fake_update_payment.json
251
+ - test/fixtures/fake_validate_vpa.json
217
252
  - test/fixtures/fake_virtual_account.json
218
253
  - test/fixtures/fake_virtual_account_allowed.json
219
254
  - test/fixtures/fake_virtual_account_closed.json
220
255
  - test/fixtures/fake_virtual_account_collection.json
221
256
  - test/fixtures/fake_virtual_account_receiver.json
257
+ - test/fixtures/fake_webhook.json
258
+ - test/fixtures/fake_webhook_by_account_id.json
259
+ - test/fixtures/fetch_tnc.json
222
260
  - test/fixtures/fund_collection.json
223
261
  - test/fixtures/hello_response.json
224
262
  - test/fixtures/invoice_collection.json
@@ -230,6 +268,7 @@ files:
230
268
  - test/fixtures/payment_collection_with_one_payment.json
231
269
  - test/fixtures/payment_link_collection.json
232
270
  - test/fixtures/payment_link_response.json
271
+ - test/fixtures/payment_methods_collection.json
233
272
  - test/fixtures/plan_collection.json
234
273
  - test/fixtures/qrcode_collection.json
235
274
  - test/fixtures/qrcode_payments_collection.json
@@ -238,40 +277,49 @@ files:
238
277
  - test/fixtures/settlement_collection.json
239
278
  - test/fixtures/settlement_instant_collection.json
240
279
  - test/fixtures/settlement_report_collection.json
280
+ - test/fixtures/stakeholder_collection.json
241
281
  - test/fixtures/subscription_collection.json
242
282
  - test/fixtures/success.json
243
283
  - test/fixtures/tokens_collection.json
244
284
  - test/fixtures/transfer_settlements_collection.json
245
285
  - test/fixtures/transfers_collection.json
246
286
  - test/fixtures/update_invoice.json
287
+ - test/fixtures/webhook_by_account_collection.json
288
+ - test/fixtures/webhook_collection.json
247
289
  - test/fixtures/welcome.json
290
+ - test/razorpay/test_account.rb
248
291
  - test/razorpay/test_addon.rb
249
292
  - test/razorpay/test_card.rb
250
293
  - test/razorpay/test_customer.rb
251
294
  - test/razorpay/test_entity.rb
252
295
  - test/razorpay/test_fund_account.rb
296
+ - test/razorpay/test_iin.rb
253
297
  - test/razorpay/test_invoice.rb
254
298
  - test/razorpay/test_item.rb
255
299
  - test/razorpay/test_order.rb
256
300
  - test/razorpay/test_payment.rb
257
301
  - test/razorpay/test_payment_link.rb
258
302
  - test/razorpay/test_plan.rb
303
+ - test/razorpay/test_product.rb
259
304
  - test/razorpay/test_qr_code.rb
260
305
  - test/razorpay/test_razorpay.rb
261
306
  - test/razorpay/test_refund.rb
262
307
  - test/razorpay/test_request.rb
263
308
  - test/razorpay/test_settlement.rb
309
+ - test/razorpay/test_stakeholder.rb
264
310
  - test/razorpay/test_subscription.rb
265
311
  - test/razorpay/test_subscription_registration.rb
312
+ - test/razorpay/test_token.rb
266
313
  - test/razorpay/test_transfer.rb
267
314
  - test/razorpay/test_utility.rb
268
315
  - test/razorpay/test_virtual_account.rb
316
+ - test/razorpay/test_webhook.rb
269
317
  - test/test_helper.rb
270
318
  homepage: https://razorpay.com/
271
319
  licenses:
272
320
  - MIT
273
321
  metadata: {}
274
- post_install_message:
322
+ post_install_message:
275
323
  rdoc_options: []
276
324
  require_paths:
277
325
  - lib
@@ -286,8 +334,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
334
  - !ruby/object:Gem::Version
287
335
  version: '0'
288
336
  requirements: []
289
- rubygems_version: 3.3.8
290
- signing_key:
337
+ rubygems_version: 3.3.26
338
+ signing_key:
291
339
  specification_version: 4
292
340
  summary: Razorpay's Ruby API
293
341
  test_files:
@@ -300,14 +348,18 @@ test_files:
300
348
  - test/fixtures/delete_token.json
301
349
  - test/fixtures/downtimes_collection.json
302
350
  - test/fixtures/empty.json
351
+ - test/fixtures/fake_account.json
303
352
  - test/fixtures/fake_addon.json
304
353
  - test/fixtures/fake_captured_payment.json
305
354
  - test/fixtures/fake_card.json
355
+ - test/fixtures/fake_card_reference.json
356
+ - test/fixtures/fake_create_upi_payment.json
306
357
  - test/fixtures/fake_customer.json
307
358
  - test/fixtures/fake_customer_edited.json
308
359
  - test/fixtures/fake_direct_transfer.json
309
360
  - test/fixtures/fake_downtime.json
310
361
  - test/fixtures/fake_fund_account.json
362
+ - test/fixtures/fake_iin_token.json
311
363
  - test/fixtures/fake_instant_settlement.json
312
364
  - test/fixtures/fake_invoice.json
313
365
  - test/fixtures/fake_item.json
@@ -322,6 +374,7 @@ test_files:
322
374
  - test/fixtures/fake_payment_link.json
323
375
  - test/fixtures/fake_pending_update.json
324
376
  - test/fixtures/fake_plan.json
377
+ - test/fixtures/fake_product.json
325
378
  - test/fixtures/fake_qrcode.json
326
379
  - test/fixtures/fake_qrcode_close.json
327
380
  - test/fixtures/fake_recurring.json
@@ -329,19 +382,25 @@ test_files:
329
382
  - test/fixtures/fake_refunded_payment.json
330
383
  - test/fixtures/fake_settlement.json
331
384
  - test/fixtures/fake_settlement_on_demand.json
385
+ - test/fixtures/fake_stakeholder.json
332
386
  - test/fixtures/fake_subscription.json
333
387
  - test/fixtures/fake_subscription_pause.json
334
388
  - test/fixtures/fake_subscription_registration.json
335
389
  - test/fixtures/fake_subscription_resume.json
336
390
  - test/fixtures/fake_token.json
391
+ - test/fixtures/fake_tokenise_customer.json
337
392
  - test/fixtures/fake_transfer.json
338
393
  - test/fixtures/fake_transfer_reverse.json
339
394
  - test/fixtures/fake_update_payment.json
395
+ - test/fixtures/fake_validate_vpa.json
340
396
  - test/fixtures/fake_virtual_account.json
341
397
  - test/fixtures/fake_virtual_account_allowed.json
342
398
  - test/fixtures/fake_virtual_account_closed.json
343
399
  - test/fixtures/fake_virtual_account_collection.json
344
400
  - test/fixtures/fake_virtual_account_receiver.json
401
+ - test/fixtures/fake_webhook.json
402
+ - test/fixtures/fake_webhook_by_account_id.json
403
+ - test/fixtures/fetch_tnc.json
345
404
  - test/fixtures/fund_collection.json
346
405
  - test/fixtures/hello_response.json
347
406
  - test/fixtures/invoice_collection.json
@@ -353,6 +412,7 @@ test_files:
353
412
  - test/fixtures/payment_collection_with_one_payment.json
354
413
  - test/fixtures/payment_link_collection.json
355
414
  - test/fixtures/payment_link_response.json
415
+ - test/fixtures/payment_methods_collection.json
356
416
  - test/fixtures/plan_collection.json
357
417
  - test/fixtures/qrcode_collection.json
358
418
  - test/fixtures/qrcode_payments_collection.json
@@ -361,32 +421,41 @@ test_files:
361
421
  - test/fixtures/settlement_collection.json
362
422
  - test/fixtures/settlement_instant_collection.json
363
423
  - test/fixtures/settlement_report_collection.json
424
+ - test/fixtures/stakeholder_collection.json
364
425
  - test/fixtures/subscription_collection.json
365
426
  - test/fixtures/success.json
366
427
  - test/fixtures/tokens_collection.json
367
428
  - test/fixtures/transfer_settlements_collection.json
368
429
  - test/fixtures/transfers_collection.json
369
430
  - test/fixtures/update_invoice.json
431
+ - test/fixtures/webhook_by_account_collection.json
432
+ - test/fixtures/webhook_collection.json
370
433
  - test/fixtures/welcome.json
434
+ - test/razorpay/test_account.rb
371
435
  - test/razorpay/test_addon.rb
372
436
  - test/razorpay/test_card.rb
373
437
  - test/razorpay/test_customer.rb
374
438
  - test/razorpay/test_entity.rb
375
439
  - test/razorpay/test_fund_account.rb
440
+ - test/razorpay/test_iin.rb
376
441
  - test/razorpay/test_invoice.rb
377
442
  - test/razorpay/test_item.rb
378
443
  - test/razorpay/test_order.rb
379
444
  - test/razorpay/test_payment.rb
380
445
  - test/razorpay/test_payment_link.rb
381
446
  - test/razorpay/test_plan.rb
447
+ - test/razorpay/test_product.rb
382
448
  - test/razorpay/test_qr_code.rb
383
449
  - test/razorpay/test_razorpay.rb
384
450
  - test/razorpay/test_refund.rb
385
451
  - test/razorpay/test_request.rb
386
452
  - test/razorpay/test_settlement.rb
453
+ - test/razorpay/test_stakeholder.rb
387
454
  - test/razorpay/test_subscription.rb
388
455
  - test/razorpay/test_subscription_registration.rb
456
+ - test/razorpay/test_token.rb
389
457
  - test/razorpay/test_transfer.rb
390
458
  - test/razorpay/test_utility.rb
391
459
  - test/razorpay/test_virtual_account.rb
460
+ - test/razorpay/test_webhook.rb
392
461
  - test/test_helper.rb