razorpay 3.2.2 → 3.2.4

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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/.cursorignore +174 -0
  3. data/.github/workflows/ci.yml +8 -7
  4. data/CHANGELOG.md +16 -0
  5. data/README.md +2 -0
  6. data/documents/customer.md +242 -0
  7. data/documents/dispute.md +301 -0
  8. data/documents/documents.md +65 -0
  9. data/documents/order.md +71 -0
  10. data/documents/payment.md +253 -0
  11. data/documents/transfers.md +40 -0
  12. data/lib/razorpay/constants.rb +1 -1
  13. data/lib/razorpay/customer.rb +16 -0
  14. data/lib/razorpay/dispute.rb +26 -0
  15. data/lib/razorpay/document.rb +19 -0
  16. data/lib/razorpay/order.rb +8 -0
  17. data/lib/razorpay/payment.rb +4 -0
  18. data/lib/razorpay/transfer.rb +4 -0
  19. data/lib/razorpay/utility.rb +8 -3
  20. data/lib/razorpay.rb +2 -0
  21. data/test/fixtures/dispute_collection.json +67 -0
  22. data/test/fixtures/dispute_error.json +10 -0
  23. data/test/fixtures/document_error.json +10 -0
  24. data/test/fixtures/error_customer.json +10 -0
  25. data/test/fixtures/error_eligibility.json +10 -0
  26. data/test/fixtures/error_eligibility_check.json +10 -0
  27. data/test/fixtures/fake_bank_account.json +9 -0
  28. data/test/fixtures/fake_dispute.json +29 -0
  29. data/test/fixtures/fake_document.json +9 -0
  30. data/test/fixtures/fake_eligiblity.json +79 -0
  31. data/test/fixtures/fake_fulfillment.json +10 -0
  32. data/test/fixtures/fake_payment_expanded_details.json +38 -0
  33. data/test/fixtures/fake_payment_expanded_details_card.json +50 -0
  34. data/test/fixtures/fake_rto.json +15 -0
  35. data/test/fixtures/order_error.json +10 -0
  36. data/test/fixtures/payment_error.json +10 -0
  37. data/test/fixtures/reversals_collection.json +22 -0
  38. data/test/fixtures/transfer_error.json +10 -0
  39. data/test/razorpay/test_customer.rb +105 -0
  40. data/test/razorpay/test_dispute.rb +98 -0
  41. data/test/razorpay/test_document.rb +27 -0
  42. data/test/razorpay/test_order.rb +43 -1
  43. data/test/razorpay/test_payment.rb +23 -1
  44. data/test/razorpay/test_transfer.rb +17 -0
  45. data/test/razorpay/test_utility.rb +2 -2
  46. metadata +51 -6
@@ -6,6 +6,8 @@ module Razorpay
6
6
  def setup
7
7
  @customer_id = 'cust_6vRXClWqnLhV14'
8
8
  @token_id = "token_FHfn3rIiM1Z8nr"
9
+ @bank_id = "ba_Evg09Ll05SIPSD"
10
+ @eligibilityId = "elig_F1cxDoHWD4fkQt"
9
11
  # Any request that ends with customers/customer_id
10
12
  stub_get(%r{customers/#{@customer_id}$}, 'fake_customer')
11
13
  end
@@ -65,5 +67,108 @@ module Razorpay
65
67
  token = Razorpay::Customer.fetch(@customer_id).deleteToken("token_FHfn3rIiM1Z8nr")
66
68
  assert token.deleted
67
69
  end
70
+
71
+ def test_customer_add_bank_account
72
+ para_attr = {
73
+ "ifsc_code": "UTIB0000194",
74
+ "account_number": "916010082985661",
75
+ "beneficiary_name": "Pratheek",
76
+ "beneficiary_address1": "address 1",
77
+ "beneficiary_address2": "address 2",
78
+ "beneficiary_address3": "address 3",
79
+ "beneficiary_address4": "address 4",
80
+ "beneficiary_email": "random@email.com",
81
+ "beneficiary_mobile": "8762489310",
82
+ "beneficiary_city": "Bangalore",
83
+ "beneficiary_state": "KA",
84
+ "beneficiary_country": "IN"
85
+ }
86
+
87
+ stub_post(%r{customers/#{@customer_id}/bank_account$}, 'fake_bank_account', para_attr.to_json)
88
+ bankAccount = Razorpay::Customer.add_bank_account(@customer_id, para_attr.to_json)
89
+ assert bankAccount.bank_name
90
+ end
91
+
92
+ def test_customer_add_bank_account_exception
93
+ para_attr = {}
94
+ stub_post(%r{customers/#{@customer_id}/bank_account$}, 'error_customer', para_attr.to_json)
95
+ assert_raises(Razorpay::Error) do
96
+ customer = Razorpay::Customer.add_bank_account(@customer_id, para_attr.to_json)
97
+ if customer.error
98
+ raise Razorpay::Error.new, customer.error['code']
99
+ end
100
+ end
101
+ end
102
+
103
+ def test_customer_delete_bank_account
104
+ stub_delete(%r{customers/#{@customer_id}/bank_account/#{@bank_id}$}, 'success')
105
+ bankAccount = Razorpay::Customer.delete_bank_account(@customer_id, @bank_id)
106
+ assert bankAccount.success
107
+ end
108
+
109
+ def test_customer_delete_bank_account_exception
110
+ stub_delete(%r{customers/#{@customer_id}/bank_account/#{@bank_id}$}, 'error_customer')
111
+ assert_raises(Razorpay::Error) do
112
+ customer = Razorpay::Customer.delete_bank_account(@customer_id,@bank_id)
113
+ if customer.error
114
+ raise Razorpay::Error.new, customer.error['code']
115
+ end
116
+ end
117
+ end
118
+
119
+ def test_customer_request_eligiblity_check
120
+ para_attr = {
121
+ "inquiry": "affordability",
122
+ "amount": 500000,
123
+ "currency": "INR",
124
+ "customer": {
125
+ "id": "cust_KhP5dO1dKmc0Rm",
126
+ "contact": "+918220276214",
127
+ "ip": "105.106.107.108",
128
+ "referrer": "https://merchansite.com/example/paybill",
129
+ "user_agent": "Mozilla/5.0"
130
+ }
131
+ }
132
+ stub_post(%r{customers/eligibility$}, 'fake_eligiblity', para_attr.to_json)
133
+ bankAccount = Razorpay::Customer.request_eligibility_check(para_attr.to_json)
134
+ assert bankAccount.amount
135
+ end
136
+
137
+ def test_customer_fetch_eligiblity_check_exception
138
+ para_attr = {
139
+ "inquiry": "affordability",
140
+ "currency": "INR",
141
+ "customer": {
142
+ "id": "cust_KhP5dO1dKmc0Rm",
143
+ "contact": "+918220276214",
144
+ "ip": "105.106.107.108",
145
+ "referrer": "https://merchansite.com/example/paybill",
146
+ "user_agent": "Mozilla/5.0"
147
+ }
148
+ }
149
+ stub_post(%r{customers/eligibility$}, 'error_eligibility_check', para_attr.to_json)
150
+ assert_raises(Razorpay::Error) do
151
+ customer = Razorpay::Customer.request_eligibility_check(para_attr.to_json)
152
+ if customer.error
153
+ raise Razorpay::Error.new, customer.error['code']
154
+ end
155
+ end
156
+ end
157
+
158
+ def test_customer_fetch_eligiblity
159
+ stub_get(%r{customers/eligibility/#{@eligibilityId}$}, 'fake_eligiblity')
160
+ bankAccount = Razorpay::Customer.fetch_eligibility(@eligibilityId)
161
+ assert bankAccount.amount
162
+ end
163
+
164
+ def test_customer_fetch_eligiblity_exception
165
+ stub_get(%r{customers/eligibility/#{@eligibilityId}$}, 'error_eligibility_check')
166
+ assert_raises(Razorpay::Error) do
167
+ customer = Razorpay::Customer.fetch_eligibility(@eligibilityId)
168
+ if customer.error
169
+ raise Razorpay::Error.new, customer.error['code']
170
+ end
171
+ end
172
+ end
68
173
  end
69
174
  end
@@ -0,0 +1,98 @@
1
+ require 'test_helper'
2
+
3
+ module Razorpay
4
+
5
+ class RazorpayDisputeonTest < Minitest::Test
6
+ class Dispute < Razorpay::Entity; end
7
+
8
+ def setup
9
+ @dispute_id = 'disp_XXXXXXXXXXXXX'
10
+
11
+ # Any request that ends with disputes/dispute_id
12
+ stub_get(%r{disputes\/#{Regexp.quote(@dispute_id)}$}, 'fake_dispute')
13
+ end
14
+
15
+ def test_dispute_should_be_defined
16
+ refute_nil Razorpay::Addon
17
+ end
18
+
19
+ def test_addon_should_be_available
20
+ dispute = Razorpay::Dispute.fetch(@dispute_id)
21
+ assert_instance_of Razorpay::Dispute, dispute, 'Dispute not an instance of Dispute class'
22
+ assert_equal @dispute_id, dispute.id
23
+ assert_equal 'INR', dispute.currency
24
+ end
25
+
26
+ def test_addon_should_be_available_failure
27
+ stub_get(%r{disputes\/#{Regexp.quote(@dispute_id)}$}, 'dispute_error')
28
+ assert_raises(Razorpay::Error) do
29
+ dispute = Razorpay::Dispute.fetch(@dispute_id)
30
+ if dispute.error
31
+ raise Razorpay::Error.new, dispute.error['code']
32
+ end
33
+ end
34
+ end
35
+
36
+ def test_fetch_all_dispute
37
+ stub_get(/disputes$/, 'dispute_collection')
38
+ dispute = Razorpay::Dispute.all
39
+ assert_instance_of Razorpay::Collection, dispute, 'Dispute should be an array'
40
+ refute_empty dispute.items, 'Dispute should be more than one'
41
+ end
42
+
43
+ def test_dispute_accept
44
+ param_attr = {}
45
+
46
+ stub_post(%r{disputes\/#{@dispute_id}\/accept$}, 'fake_dispute', param_attr.to_json)
47
+
48
+ dispute = Razorpay::Dispute.accept(@dispute_id, param_attr.to_json)
49
+ assert_instance_of Razorpay::Dispute, dispute, 'Dispute not an instance of Dispute class'
50
+
51
+ assert_equal @dispute_id, dispute.id, 'Dispute IDs do not match'
52
+ assert_equal 10000, dispute.amount
53
+ assert_equal 0, dispute.amount_deducted
54
+ end
55
+
56
+ def test_dispute_accept_failure
57
+ param_attr = {}
58
+ stub_post(%r{disputes\/#{@dispute_id}\/accept$}, 'dispute_error', param_attr.to_json)
59
+ assert_raises(Razorpay::Error) do
60
+ dispute = Razorpay::Dispute.accept(@dispute_id, param_attr.to_json)
61
+ if dispute.error
62
+ raise Razorpay::Error.new, dispute.error['code']
63
+ end
64
+ end
65
+ end
66
+
67
+ def test_dispute_contest
68
+
69
+ param_attr = {
70
+ "billing_proof": [
71
+ "doc_EFtmUsbwpXwBG9",
72
+ "doc_EFtmUsbwpXwBG8"
73
+ ],
74
+ "action": "submit"
75
+ }
76
+
77
+ stub_patch(%r{disputes\/#{@dispute_id}\/contest$}, 'fake_dispute', param_attr.to_json)
78
+
79
+ dispute = Razorpay::Dispute.contest(@dispute_id, param_attr.to_json)
80
+ assert_instance_of Razorpay::Dispute, dispute, 'Dispute not an instance of Dispute class'
81
+
82
+ assert_equal @dispute_id, dispute.id, 'Dispute IDs do not match'
83
+ assert_equal 10000, dispute.amount
84
+ assert_equal 0, dispute.amount_deducted
85
+ end
86
+
87
+ def test_dispute_contest_failure
88
+ param_attr = {}
89
+ stub_patch(%r{disputes\/#{@dispute_id}\/contest$}, 'dispute_error', param_attr.to_json)
90
+ assert_raises(Razorpay::Error) do
91
+ dispute = Razorpay::Dispute.contest(@dispute_id, param_attr.to_json)
92
+ if dispute.error
93
+ raise Razorpay::Error.new, dispute.error['code']
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,27 @@
1
+ require 'test_helper'
2
+
3
+ module Razorpay
4
+ # Tests for Razorpay::Document
5
+ class RazorpayDocumentTest < Minitest::Test
6
+ def setup
7
+ @document_id = 'doc_O4KCaSbX4BjA6I'
8
+ # Any request that ends with document/document_id
9
+ stub_get(%r{documents/#{@document_id}$}, 'fake_document')
10
+ end
11
+
12
+ def test_document_should_be_defined
13
+ refute_nil Razorpay::Document
14
+ end
15
+
16
+ def test_document_should_be_defined_exception
17
+ para_attr = {}
18
+ stub_get(%r{documents/#{@document_id}$}, 'document_error')
19
+ assert_raises(Razorpay::Error) do
20
+ document = Razorpay::Document.fetch(@document_id)
21
+ if document.error
22
+ raise Razorpay::Error.new, document.error['code']
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -66,6 +66,48 @@ module Razorpay
66
66
  assert_equal @order_id, order.id, 'order IDs do not match'
67
67
  refute_empty order.transfers["items"]
68
68
  assert_equal @transfer_id, order.transfers["items"][0]["id"]
69
- end
69
+ end
70
+
71
+ def test_view_rto
72
+ stub_post(%r{orders/#{@order_id}/rto_review$}, 'fake_rto', {})
73
+ order = Razorpay::Order.view_rto(@order_id)
74
+ assert !order.rto_reasons.empty?, 'orders should be more than one'
75
+ end
76
+
77
+ def test_view_rto_exception
78
+ stub_post(%r{orders/#{@order_id}/rto_review$}, 'order_error', {})
79
+ assert_raises(Razorpay::Error) do
80
+ order = Razorpay::Order.view_rto(@order_id)
81
+ if order.error
82
+ raise Razorpay::Error.new, order.error['code']
83
+ end
84
+ end
85
+ end
86
+
87
+ def test_fulfillment
88
+ param_attr = {
89
+ "payment_method": "upi",
90
+ "shipping": {
91
+ "waybill": "123456789",
92
+ "status": "rto",
93
+ "provider": "Bluedart"
94
+ }
95
+ }
96
+
97
+ stub_post(%r{orders/#{@order_id}/fulfillment$}, 'fake_fulfillment', param_attr.to_json)
98
+ order = Razorpay::Order.edit_fulfillment(@order_id, param_attr.to_json)
99
+ assert_equal "upi", order.payment_method, 'order payment method do not match'
100
+ end
101
+
102
+ def test_fulfillment_exception
103
+ para_attr = {}
104
+ stub_post(%r{orders/#{@order_id}/fulfillment$}, 'order_error', para_attr.to_json)
105
+ assert_raises(Razorpay::Error) do
106
+ order = Razorpay::Order.edit_fulfillment(@order_id, para_attr.to_json)
107
+ if order.error
108
+ raise Razorpay::Error.new, order.error['code']
109
+ end
110
+ end
111
+ end
70
112
  end
71
113
  end
@@ -298,6 +298,28 @@ module Razorpay
298
298
  stub_post(%r{payments/validate/vpa$}, 'fake_validate_vpa',param_attr.to_json)
299
299
  payment = Razorpay::Payment.validate_vpa param_attr.to_json
300
300
  assert_equal param_attr[:vpa], payment.vpa
301
- end
301
+ end
302
+
303
+ def test_expand_details_emi
304
+ stub_get("#{BASE_URI}/v1/payments/#{@payment_id}/?expand[]=emi", 'fake_payment_expanded_details')
305
+ payment = Razorpay::Payment.expand_details @payment_id
306
+ assert_equal @payment_id, payment.id
307
+ end
308
+
309
+ def test_expand_details_card
310
+ stub_get("#{BASE_URI}/v1/payments/#{@payment_id}/?expand[]=card", 'fake_payment_expanded_details')
311
+ payment = Razorpay::Payment.expand_details @payment_id
312
+ assert_equal @payment_id, payment.id
313
+ end
314
+
315
+ def test_expand_details_failure
316
+ stub_get(%r{payments\/#{@payment_id}$}, 'payment_error')
317
+ assert_raises(Razorpay::Error) do
318
+ payment = Razorpay::Payment.expand_details(@payment_id)
319
+ if payment.error
320
+ raise Razorpay::Error.new, payment.error['code']
321
+ end
322
+ end
323
+ end
302
324
  end
303
325
  end
@@ -73,5 +73,22 @@ module Razorpay
73
73
  assert_equal transfer.id, @transfer_id , 'Transfer transfer_id is accessible'
74
74
  refute transfer.on_hold
75
75
  end
76
+
77
+ def test_fetch_reversals
78
+ stub_get(%r{/transfers/#{@transfer_id}/reversals$}, 'reversals_collection')
79
+ transfer = Razorpay::Transfer.reversals(@transfer_id)
80
+ assert_instance_of Razorpay::Collection, transfer , 'Transfer should be an array'
81
+ refute_empty transfer.items , 'Transfer should be more than one'
82
+ end
83
+
84
+ def test_fetch_reversals_exception
85
+ stub_get(%r{/transfers/#{@transfer_id}/reversals$}, 'transfer_error')
86
+ assert_raises(Razorpay::Error) do
87
+ transfer = Razorpay::Transfer.reversals(@transfer_id)
88
+ if transfer.error
89
+ raise Razorpay::Error.new, transfer.error['code']
90
+ end
91
+ end
92
+ end
76
93
  end
77
94
  end
@@ -99,11 +99,11 @@ module Razorpay
99
99
  def decrypt(data, secret)
100
100
  combined_encrypted_data = [data].pack("H*")
101
101
 
102
- iv = secret[0, 12]
102
+ iv = combined_encrypted_data[0, 12]
103
103
  key = secret[0, 16]
104
104
  tag = combined_encrypted_data[-16..]
105
105
 
106
- encrypted_data = combined_encrypted_data[0...-16]
106
+ encrypted_data = combined_encrypted_data[12...-16]
107
107
 
108
108
  cipher = OpenSSL::Cipher.new('aes-128-gcm')
109
109
  cipher.decrypt
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.2.2
4
+ version: 3.2.4
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: 2024-04-16 00:00:00.000000000 Z
12
+ date: 2026-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -117,6 +117,7 @@ executables: []
117
117
  extensions: []
118
118
  extra_rdoc_files: []
119
119
  files:
120
+ - ".cursorignore"
120
121
  - ".editorconfig"
121
122
  - ".github/dependabot.yml"
122
123
  - ".github/pull_request_template.md"
@@ -135,6 +136,8 @@ files:
135
136
  - documents/addon.md
136
137
  - documents/card.md
137
138
  - documents/customer.md
139
+ - documents/dispute.md
140
+ - documents/documents.md
138
141
  - documents/emandate.md
139
142
  - documents/fund.md
140
143
  - documents/items.md
@@ -167,6 +170,8 @@ files:
167
170
  - lib/razorpay/collection.rb
168
171
  - lib/razorpay/constants.rb
169
172
  - lib/razorpay/customer.rb
173
+ - lib/razorpay/dispute.rb
174
+ - lib/razorpay/document.rb
170
175
  - lib/razorpay/entity.rb
171
176
  - lib/razorpay/errors.rb
172
177
  - lib/razorpay/errors/bad_request_error.rb
@@ -206,10 +211,17 @@ files:
206
211
  - test/fixtures/create_json_payment.json
207
212
  - test/fixtures/customer_collection.json
208
213
  - test/fixtures/delete_token.json
214
+ - test/fixtures/dispute_collection.json
215
+ - test/fixtures/dispute_error.json
216
+ - test/fixtures/document_error.json
209
217
  - test/fixtures/downtimes_collection.json
210
218
  - test/fixtures/empty.json
219
+ - test/fixtures/error_customer.json
220
+ - test/fixtures/error_eligibility.json
221
+ - test/fixtures/error_eligibility_check.json
211
222
  - test/fixtures/fake_account.json
212
223
  - test/fixtures/fake_addon.json
224
+ - test/fixtures/fake_bank_account.json
213
225
  - test/fixtures/fake_captured_payment.json
214
226
  - test/fixtures/fake_card.json
215
227
  - test/fixtures/fake_card_reference.json
@@ -217,7 +229,11 @@ files:
217
229
  - test/fixtures/fake_customer.json
218
230
  - test/fixtures/fake_customer_edited.json
219
231
  - test/fixtures/fake_direct_transfer.json
232
+ - test/fixtures/fake_dispute.json
233
+ - test/fixtures/fake_document.json
220
234
  - test/fixtures/fake_downtime.json
235
+ - test/fixtures/fake_eligiblity.json
236
+ - test/fixtures/fake_fulfillment.json
221
237
  - test/fixtures/fake_fund_account.json
222
238
  - test/fixtures/fake_iin_token.json
223
239
  - test/fixtures/fake_instant_settlement.json
@@ -232,6 +248,8 @@ files:
232
248
  - test/fixtures/fake_payment.json
233
249
  - test/fixtures/fake_payment_authorized_webhook.json
234
250
  - test/fixtures/fake_payment_bank_transfer.json
251
+ - test/fixtures/fake_payment_expanded_details.json
252
+ - test/fixtures/fake_payment_expanded_details_card.json
235
253
  - test/fixtures/fake_payment_link.json
236
254
  - test/fixtures/fake_pending_update.json
237
255
  - test/fixtures/fake_plan.json
@@ -242,6 +260,7 @@ files:
242
260
  - test/fixtures/fake_refund.json
243
261
  - test/fixtures/fake_refunded_payment.json
244
262
  - test/fixtures/fake_revoke_token.json
263
+ - test/fixtures/fake_rto.json
245
264
  - test/fixtures/fake_settlement.json
246
265
  - test/fixtures/fake_settlement_on_demand.json
247
266
  - test/fixtures/fake_stakeholder.json
@@ -269,9 +288,11 @@ files:
269
288
  - test/fixtures/issue_invoice.json
270
289
  - test/fixtures/item_collection.json
271
290
  - test/fixtures/order_collection.json
291
+ - test/fixtures/order_error.json
272
292
  - test/fixtures/order_payments.json
273
293
  - test/fixtures/payment_collection.json
274
294
  - test/fixtures/payment_collection_with_one_payment.json
295
+ - test/fixtures/payment_error.json
275
296
  - test/fixtures/payment_link_collection.json
276
297
  - test/fixtures/payment_link_response.json
277
298
  - test/fixtures/payment_methods_collection.json
@@ -280,6 +301,7 @@ files:
280
301
  - test/fixtures/qrcode_payments_collection.json
281
302
  - test/fixtures/refund_collection.json
282
303
  - test/fixtures/refund_collection_for_payment.json
304
+ - test/fixtures/reversals_collection.json
283
305
  - test/fixtures/settlement_collection.json
284
306
  - test/fixtures/settlement_instant_collection.json
285
307
  - test/fixtures/settlement_report_collection.json
@@ -287,6 +309,7 @@ files:
287
309
  - test/fixtures/subscription_collection.json
288
310
  - test/fixtures/success.json
289
311
  - test/fixtures/tokens_collection.json
312
+ - test/fixtures/transfer_error.json
290
313
  - test/fixtures/transfer_settlements_collection.json
291
314
  - test/fixtures/transfers_collection.json
292
315
  - test/fixtures/update_invoice.json
@@ -297,6 +320,8 @@ files:
297
320
  - test/razorpay/test_addon.rb
298
321
  - test/razorpay/test_card.rb
299
322
  - test/razorpay/test_customer.rb
323
+ - test/razorpay/test_dispute.rb
324
+ - test/razorpay/test_document.rb
300
325
  - test/razorpay/test_entity.rb
301
326
  - test/razorpay/test_fund_account.rb
302
327
  - test/razorpay/test_iin.rb
@@ -327,7 +352,7 @@ homepage: https://razorpay.com/
327
352
  licenses:
328
353
  - MIT
329
354
  metadata: {}
330
- post_install_message:
355
+ post_install_message:
331
356
  rdoc_options: []
332
357
  require_paths:
333
358
  - lib
@@ -342,8 +367,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
367
  - !ruby/object:Gem::Version
343
368
  version: '0'
344
369
  requirements: []
345
- rubygems_version: 3.3.26
346
- signing_key:
370
+ rubygems_version: 3.3.27
371
+ signing_key:
347
372
  specification_version: 4
348
373
  summary: Razorpay's Ruby API
349
374
  test_files:
@@ -354,10 +379,17 @@ test_files:
354
379
  - test/fixtures/create_json_payment.json
355
380
  - test/fixtures/customer_collection.json
356
381
  - test/fixtures/delete_token.json
382
+ - test/fixtures/dispute_collection.json
383
+ - test/fixtures/dispute_error.json
384
+ - test/fixtures/document_error.json
357
385
  - test/fixtures/downtimes_collection.json
358
386
  - test/fixtures/empty.json
387
+ - test/fixtures/error_customer.json
388
+ - test/fixtures/error_eligibility.json
389
+ - test/fixtures/error_eligibility_check.json
359
390
  - test/fixtures/fake_account.json
360
391
  - test/fixtures/fake_addon.json
392
+ - test/fixtures/fake_bank_account.json
361
393
  - test/fixtures/fake_captured_payment.json
362
394
  - test/fixtures/fake_card.json
363
395
  - test/fixtures/fake_card_reference.json
@@ -365,7 +397,11 @@ test_files:
365
397
  - test/fixtures/fake_customer.json
366
398
  - test/fixtures/fake_customer_edited.json
367
399
  - test/fixtures/fake_direct_transfer.json
400
+ - test/fixtures/fake_dispute.json
401
+ - test/fixtures/fake_document.json
368
402
  - test/fixtures/fake_downtime.json
403
+ - test/fixtures/fake_eligiblity.json
404
+ - test/fixtures/fake_fulfillment.json
369
405
  - test/fixtures/fake_fund_account.json
370
406
  - test/fixtures/fake_iin_token.json
371
407
  - test/fixtures/fake_instant_settlement.json
@@ -380,6 +416,8 @@ test_files:
380
416
  - test/fixtures/fake_payment.json
381
417
  - test/fixtures/fake_payment_authorized_webhook.json
382
418
  - test/fixtures/fake_payment_bank_transfer.json
419
+ - test/fixtures/fake_payment_expanded_details.json
420
+ - test/fixtures/fake_payment_expanded_details_card.json
383
421
  - test/fixtures/fake_payment_link.json
384
422
  - test/fixtures/fake_pending_update.json
385
423
  - test/fixtures/fake_plan.json
@@ -390,6 +428,7 @@ test_files:
390
428
  - test/fixtures/fake_refund.json
391
429
  - test/fixtures/fake_refunded_payment.json
392
430
  - test/fixtures/fake_revoke_token.json
431
+ - test/fixtures/fake_rto.json
393
432
  - test/fixtures/fake_settlement.json
394
433
  - test/fixtures/fake_settlement_on_demand.json
395
434
  - test/fixtures/fake_stakeholder.json
@@ -417,9 +456,11 @@ test_files:
417
456
  - test/fixtures/issue_invoice.json
418
457
  - test/fixtures/item_collection.json
419
458
  - test/fixtures/order_collection.json
459
+ - test/fixtures/order_error.json
420
460
  - test/fixtures/order_payments.json
421
461
  - test/fixtures/payment_collection.json
422
462
  - test/fixtures/payment_collection_with_one_payment.json
463
+ - test/fixtures/payment_error.json
423
464
  - test/fixtures/payment_link_collection.json
424
465
  - test/fixtures/payment_link_response.json
425
466
  - test/fixtures/payment_methods_collection.json
@@ -428,6 +469,7 @@ test_files:
428
469
  - test/fixtures/qrcode_payments_collection.json
429
470
  - test/fixtures/refund_collection.json
430
471
  - test/fixtures/refund_collection_for_payment.json
472
+ - test/fixtures/reversals_collection.json
431
473
  - test/fixtures/settlement_collection.json
432
474
  - test/fixtures/settlement_instant_collection.json
433
475
  - test/fixtures/settlement_report_collection.json
@@ -435,6 +477,7 @@ test_files:
435
477
  - test/fixtures/subscription_collection.json
436
478
  - test/fixtures/success.json
437
479
  - test/fixtures/tokens_collection.json
480
+ - test/fixtures/transfer_error.json
438
481
  - test/fixtures/transfer_settlements_collection.json
439
482
  - test/fixtures/transfers_collection.json
440
483
  - test/fixtures/update_invoice.json
@@ -445,6 +488,8 @@ test_files:
445
488
  - test/razorpay/test_addon.rb
446
489
  - test/razorpay/test_card.rb
447
490
  - test/razorpay/test_customer.rb
491
+ - test/razorpay/test_dispute.rb
492
+ - test/razorpay/test_document.rb
448
493
  - test/razorpay/test_entity.rb
449
494
  - test/razorpay/test_fund_account.rb
450
495
  - test/razorpay/test_iin.rb